Tag Manager API . accounts . containers . reauthorize_environments

Instance Methods

close()

Close httplib2 connections.

update(accountId, containerId, environmentId, body=None, x__xgafv=None)

Re-generates the authorization code for a GTM Environment.

Method Details

close()
Close httplib2 connections.
update(accountId, containerId, environmentId, body=None, x__xgafv=None)
Re-generates the authorization code for a GTM Environment.

Args:
  accountId: string, The GTM Account ID. (required)
  containerId: string, The GTM Container ID. (required)
  environmentId: string, The GTM Environment ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # Represents a Google Tag Manager Environment. Note that a user can create, delete and update environments of type USER, but can only update the enable_debug and url fields of environments of other types.
  "accountId": "A String", # GTM Account ID.
  "authorizationCode": "A String", # The environment authorization code.
  "authorizationTimestampMs": "A String", # The last update time-stamp for the authorization code.
  "containerId": "A String", # GTM Container ID.
  "containerVersionId": "A String",
  "description": "A String", # The environment description. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
  "enableDebug": True or False, # Whether or not to enable debug by default on for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
  "environmentId": "A String", # GTM Environment ID uniquely identifies the GTM Environment.
  "fingerprint": "A String", # The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified.
  "name": "A String", # The environment display name. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
  "type": "A String", # The type of this environment.
  "url": "A String", # Default preview page url for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a Google Tag Manager Environment. Note that a user can create, delete and update environments of type USER, but can only update the enable_debug and url fields of environments of other types.
  "accountId": "A String", # GTM Account ID.
  "authorizationCode": "A String", # The environment authorization code.
  "authorizationTimestampMs": "A String", # The last update time-stamp for the authorization code.
  "containerId": "A String", # GTM Container ID.
  "containerVersionId": "A String",
  "description": "A String", # The environment description. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
  "enableDebug": True or False, # Whether or not to enable debug by default on for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
  "environmentId": "A String", # GTM Environment ID uniquely identifies the GTM Environment.
  "fingerprint": "A String", # The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified.
  "name": "A String", # The environment display name. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
  "type": "A String", # The type of this environment.
  "url": "A String", # Default preview page url for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
}