Class AccountsResource.ContainersResource.VersionsResource
The "versions" collection of methods.
Inherited Members
Namespace: Google.Apis.TagManager.v1
Assembly: Google.Apis.TagManager.v1.dll
Syntax
public class AccountsResource.ContainersResource.VersionsResource
Constructors
VersionsResource(IClientService)
Constructs a new resource.
Declaration
public VersionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CreateContainerVersionRequestVersionOptions, string, string)
Creates a Container Version.
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.CreateRequest Create(CreateContainerVersionRequestVersionOptions body, string accountId, string containerId)
Parameters
Type | Name | Description |
---|---|---|
CreateContainerVersionRequestVersionOptions | body | The body of the request. |
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.CreateRequest |
Delete(string, string, string)
Deletes a Container Version.
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.DeleteRequest Delete(string accountId, string containerId, string containerVersionId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
string | containerVersionId | The GTM Container Version ID. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.DeleteRequest |
Get(string, string, string)
Gets a Container Version.
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.GetRequest Get(string accountId, string containerId, string containerVersionId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
string | containerVersionId | The GTM Container Version ID. Specify published to retrieve the currently published version. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.GetRequest |
List(string, string)
Lists all Container Versions of a GTM Container.
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.ListRequest List(string accountId, string containerId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.ListRequest |
Publish(string, string, string)
Publishes a Container Version.
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.PublishRequest Publish(string accountId, string containerId, string containerVersionId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
string | containerVersionId | The GTM Container Version ID. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.PublishRequest |
Restore(string, string, string)
Restores a Container Version. This will overwrite the container's current configuration (including its variables, triggers and tags). The operation will not have any effect on the version that is being served (i.e. the published version).
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.RestoreRequest Restore(string accountId, string containerId, string containerVersionId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
string | containerVersionId | The GTM Container Version ID. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.RestoreRequest |
Undelete(string, string, string)
Undeletes a Container Version.
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.UndeleteRequest Undelete(string accountId, string containerId, string containerVersionId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
string | containerVersionId | The GTM Container Version ID. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.UndeleteRequest |
Update(ContainerVersion, string, string, string)
Updates a Container Version.
Declaration
public virtual AccountsResource.ContainersResource.VersionsResource.UpdateRequest Update(ContainerVersion body, string accountId, string containerId, string containerVersionId)
Parameters
Type | Name | Description |
---|---|---|
ContainerVersion | body | The body of the request. |
string | accountId | The GTM Account ID. |
string | containerId | The GTM Container ID. |
string | containerVersionId | The GTM Container Version ID. |
Returns
Type | Description |
---|---|
AccountsResource.ContainersResource.VersionsResource.UpdateRequest |