ProjectsLocationsTemplates
class ProjectsLocationsTemplates extends Resource (View source)
The "templates" collection of methods.
Typical usage is:
$integrationsService = new Google\Service\Integrations(...);
$templates = $integrationsService->projects_locations_templates;
Methods
Creates a new template (templates.create)
Deletes a template (templates.delete)
Downloads a template. Retrieves the Template
and returns the response as a
string. (templates.download)
Get a template in the specified project. (templates.get)
Import the template to an existing integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client. (templates.import)
Lists all templates matching the filter.
Updates the template by given id. (templates.patch)
Search templates based on user query and filters. This api would query the templates and return a list of templates based on the user filter.
Share a template with other clients. Only the template owner can share the templates with other projects. PERMISSION_DENIED would be thrown if the request is not from the owner. (templates.share)
Unshare a template from given clients. Owner of the template can unshare template with clients. Shared client can only unshare the template from itself. PERMISSION_DENIED would be thrown if request is not from owner or for unsharing itself. (templates.unshare)
Uploads a template. The content can be a previously downloaded template.
Use the template to create integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client. (templates.useProjectsLocationsTemplates)
Details
GoogleCloudIntegrationsV1alphaTemplate
create(string $parent, GoogleCloudIntegrationsV1alphaTemplate $postBody, array $optParams = [])
Creates a new template (templates.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes a template (templates.delete)
GoogleCloudIntegrationsV1alphaDownloadTemplateResponse
download(string $name, array $optParams = [])
Downloads a template. Retrieves the Template
and returns the response as a
string. (templates.download)
GoogleCloudIntegrationsV1alphaTemplate
get(string $name, array $optParams = [])
Get a template in the specified project. (templates.get)
GoogleCloudIntegrationsV1alphaImportTemplateResponse
import(string $name, GoogleCloudIntegrationsV1alphaImportTemplateRequest $postBody, array $optParams = [])
Import the template to an existing integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client. (templates.import)
GoogleCloudIntegrationsV1alphaListTemplatesResponse
listProjectsLocationsTemplates(string $parent, array $optParams = [])
Lists all templates matching the filter.
(templates.listProjectsLocationsTemplates)
GoogleCloudIntegrationsV1alphaTemplate
patch(string $name, GoogleCloudIntegrationsV1alphaTemplate $postBody, array $optParams = [])
Updates the template by given id. (templates.patch)
GoogleCloudIntegrationsV1alphaSearchTemplatesResponse
search(string $parent, array $optParams = [])
Search templates based on user query and filters. This api would query the templates and return a list of templates based on the user filter.
(templates.search)
GoogleProtobufEmpty
share(string $name, GoogleCloudIntegrationsV1alphaShareTemplateRequest $postBody, array $optParams = [])
Share a template with other clients. Only the template owner can share the templates with other projects. PERMISSION_DENIED would be thrown if the request is not from the owner. (templates.share)
GoogleProtobufEmpty
unshare(string $name, GoogleCloudIntegrationsV1alphaUnshareTemplateRequest $postBody, array $optParams = [])
Unshare a template from given clients. Owner of the template can unshare template with clients. Shared client can only unshare the template from itself. PERMISSION_DENIED would be thrown if request is not from owner or for unsharing itself. (templates.unshare)
GoogleCloudIntegrationsV1alphaUploadTemplateResponse
upload(string $parent, GoogleCloudIntegrationsV1alphaUploadTemplateRequest $postBody, array $optParams = [])
Uploads a template. The content can be a previously downloaded template.
Performs the same function as CreateTemplate, but accepts input in a string format, which holds the complete representation of the Template content. (templates.upload)
GoogleCloudIntegrationsV1alphaUseTemplateResponse
useProjectsLocationsTemplates(string $name, GoogleCloudIntegrationsV1alphaUseTemplateRequest $postBody, array $optParams = [])
Use the template to create integration. This api would keep track of usage_count and last_used_time. PERMISSION_DENIED would be thrown if template is not accessible by client. (templates.useProjectsLocationsTemplates)