class AccountsContainersEnvironments extends Resource (View source)

The "environments" collection of methods.

Typical usage is:

 $tagmanagerService = new Google\Service\TagManager(...);
 $environments = $tagmanagerService->accounts_containers_environments;

Methods

create(string $parent, Environment $postBody, array $optParams = [])

Creates a GTM Environment. (environments.create)

delete(string $path, array $optParams = [])

Deletes a GTM Environment. (environments.delete)

get(string $path, array $optParams = [])

Gets a GTM Environment. (environments.get)

listAccountsContainersEnvironments(string $parent, array $optParams = [])

Lists all GTM Environments of a GTM Container.

reauthorize(string $path, Environment $postBody, array $optParams = [])

Re-generates the authorization code for a GTM Environment.

update(string $path, Environment $postBody, array $optParams = [])

Updates a GTM Environment. (environments.update)

Details

Environment create(string $parent, Environment $postBody, array $optParams = [])

Creates a GTM Environment. (environments.create)

Parameters

string $parent

GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

Environment $postBody
array $optParams

Optional parameters.

Return Value

Environment

Exceptions

Exception

delete(string $path, array $optParams = [])

Deletes a GTM Environment. (environments.delete)

Parameters

string $path

GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id}

array $optParams

Optional parameters.

Exceptions

Exception

Environment get(string $path, array $optParams = [])

Gets a GTM Environment. (environments.get)

Parameters

string $path

GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id}

array $optParams

Optional parameters.

Return Value

Environment

Exceptions

Exception

ListEnvironmentsResponse listAccountsContainersEnvironments(string $parent, array $optParams = [])

Lists all GTM Environments of a GTM Container.

(environments.listAccountsContainersEnvironments)

Parameters

string $parent

GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id}

array $optParams

Optional parameters.

Return Value

ListEnvironmentsResponse

Exceptions

Exception

Environment reauthorize(string $path, Environment $postBody, array $optParams = [])

Re-generates the authorization code for a GTM Environment.

(environments.reauthorize)

Parameters

string $path

GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id}

Environment $postBody
array $optParams

Optional parameters.

Return Value

Environment

Exceptions

Exception

Environment update(string $path, Environment $postBody, array $optParams = [])

Updates a GTM Environment. (environments.update)

Parameters

string $path

GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id}

Environment $postBody
array $optParams

Optional parameters.

Return Value

Environment

Exceptions

Exception