Class AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource
The "templates" collection of methods.
Inherited Members
Namespace: Google.Apis.TagManager.v2
Assembly: Google.Apis.TagManager.v2.dll
Syntax
public class AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource
Constructors
TemplatesResource(IClientService)
Constructs a new resource.
Declaration
public TemplatesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CustomTemplate, string)
Creates a GTM Custom Template.
Declaration
public virtual AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.CreateRequest Create(CustomTemplate body, string parent)
Parameters
Type | Name | Description |
---|---|---|
CustomTemplate | body | The body of the request. |
string | parent | GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.CreateRequest |
Delete(string)
Deletes a GTM Template.
Declaration
public virtual AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.DeleteRequest Delete(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.DeleteRequest |
Get(string)
Gets a GTM Template.
Declaration
public virtual AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.GetRequest Get(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.GetRequest |
List(string)
Lists all GTM Templates of a GTM container workspace.
Declaration
public virtual AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.ListRequest |
Revert(string)
Reverts changes to a GTM Template in a GTM Workspace.
Declaration
public virtual AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.RevertRequest Revert(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.RevertRequest |
Update(CustomTemplate, string)
Updates a GTM Template.
Declaration
public virtual AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.UpdateRequest Update(CustomTemplate body, string path)
Parameters
Type | Name | Description |
---|---|---|
CustomTemplate | body | The body of the request. |
string | path | GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.WorkspacesResource.TemplatesResource.UpdateRequest |