/lib/google/src/Google/Service/TagManager.php
PHP | 3445 lines | 2776 code | 143 blank | 526 comment | 0 complexity | 3e09d1fc5197b0579da87cf78bcc565c MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0
Large files files are truncated, but you can click here to view the full file
- <?php
- /*
- * Copyright 2010 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- /**
- * Service definition for TagManager (v1).
- *
- * <p>
- * API for accessing Tag Manager accounts and containers.</p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/tag-manager/api/v1/" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_TagManager extends Google_Service
- {
- /** Delete your Google Tag Manager containers. */
- const TAGMANAGER_DELETE_CONTAINERS =
- "https://www.googleapis.com/auth/tagmanager.delete.containers";
- /** Manage your Google Tag Manager containers. */
- const TAGMANAGER_EDIT_CONTAINERS =
- "https://www.googleapis.com/auth/tagmanager.edit.containers";
- /** Manage your Google Tag Manager container versions. */
- const TAGMANAGER_EDIT_CONTAINERVERSIONS =
- "https://www.googleapis.com/auth/tagmanager.edit.containerversions";
- /** Manage your Google Tag Manager accounts. */
- const TAGMANAGER_MANAGE_ACCOUNTS =
- "https://www.googleapis.com/auth/tagmanager.manage.accounts";
- /** Manage user permissions of your Google Tag Manager data. */
- const TAGMANAGER_MANAGE_USERS =
- "https://www.googleapis.com/auth/tagmanager.manage.users";
- /** Publish your Google Tag Manager containers. */
- const TAGMANAGER_PUBLISH =
- "https://www.googleapis.com/auth/tagmanager.publish";
- /** View your Google Tag Manager containers. */
- const TAGMANAGER_READONLY =
- "https://www.googleapis.com/auth/tagmanager.readonly";
- public $accounts;
- public $accounts_containers;
- public $accounts_containers_folders;
- public $accounts_containers_folders_entities;
- public $accounts_containers_move_folders;
- public $accounts_containers_tags;
- public $accounts_containers_triggers;
- public $accounts_containers_variables;
- public $accounts_containers_versions;
- public $accounts_permissions;
-
- /**
- * Constructs the internal representation of the TagManager service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->rootUrl = 'https://www.googleapis.com/';
- $this->servicePath = 'tagmanager/v1/';
- $this->version = 'v1';
- $this->serviceName = 'tagmanager';
- $this->accounts = new Google_Service_TagManager_Accounts_Resource(
- $this,
- $this->serviceName,
- 'accounts',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'accounts/{accountId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts',
- 'httpMethod' => 'GET',
- 'parameters' => array(),
- ),'update' => array(
- 'path' => 'accounts/{accountId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers = new Google_Service_TagManager_AccountsContainers_Resource(
- $this,
- $this->serviceName,
- 'containers',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'accounts/{accountId}/containers',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts/{accountId}/containers',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers_folders = new Google_Service_TagManager_AccountsContainersFolders_Resource(
- $this,
- $this->serviceName,
- 'folders',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/folders',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/folders',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers_folders_entities = new Google_Service_TagManager_AccountsContainersFoldersEntities_Resource(
- $this,
- $this->serviceName,
- 'entities',
- array(
- 'methods' => array(
- 'list' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers_move_folders = new Google_Service_TagManager_AccountsContainersMoveFolders_Resource(
- $this,
- $this->serviceName,
- 'move_folders',
- array(
- 'methods' => array(
- 'update' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'variableId' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- 'tagId' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- 'triggerId' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers_tags = new Google_Service_TagManager_AccountsContainersTags_Resource(
- $this,
- $this->serviceName,
- 'tags',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/tags',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'tagId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'tagId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/tags',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'tagId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers_triggers = new Google_Service_TagManager_AccountsContainersTriggers_Resource(
- $this,
- $this->serviceName,
- 'triggers',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/triggers',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'triggerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'triggerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/triggers',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'triggerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers_variables = new Google_Service_TagManager_AccountsContainersVariables_Resource(
- $this,
- $this->serviceName,
- 'variables',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/variables',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'variableId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'variableId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/variables',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'variableId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_containers_versions = new Google_Service_TagManager_AccountsContainersVersions_Resource(
- $this,
- $this->serviceName,
- 'versions',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerVersionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerVersionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'headers' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'publish' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerVersionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'restore' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerVersionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'undelete' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerVersionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'containerVersionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'fingerprint' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->accounts_permissions = new Google_Service_TagManager_AccountsPermissions_Resource(
- $this,
- $this->serviceName,
- 'permissions',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'accounts/{accountId}/permissions',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'accounts/{accountId}/permissions/{permissionId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'permissionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'accounts/{accountId}/permissions/{permissionId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'permissionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'accounts/{accountId}/permissions',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'accounts/{accountId}/permissions/{permissionId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'permissionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- }
- }
- /**
- * The "accounts" collection of methods.
- * Typical usage is:
- * <code>
- * $tagmanagerService = new Google_Service_TagManager(...);
- * $accounts = $tagmanagerService->accounts;
- * </code>
- */
- class Google_Service_TagManager_Accounts_Resource extends Google_Service_Resource
- {
- /**
- * Gets a GTM Account. (accounts.get)
- *
- * @param string $accountId The GTM Account ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Account
- */
- public function get($accountId, $optParams = array())
- {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_TagManager_Account");
- }
- /**
- * Lists all GTM Accounts that a user has access to. (accounts.listAccounts)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_ListAccountsResponse
- */
- public function listAccounts($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_TagManager_ListAccountsResponse");
- }
- /**
- * Updates a GTM Account. (accounts.update)
- *
- * @param string $accountId The GTM Account ID.
- * @param Google_Account $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string fingerprint When provided, this fingerprint must match the
- * fingerprint of the account in storage.
- * @return Google_Service_TagManager_Account
- */
- public function update($accountId, Google_Service_TagManager_Account $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_TagManager_Account");
- }
- }
- /**
- * The "containers" collection of methods.
- * Typical usage is:
- * <code>
- * $tagmanagerService = new Google_Service_TagManager(...);
- * $containers = $tagmanagerService->containers;
- * </code>
- */
- class Google_Service_TagManager_AccountsContainers_Resource extends Google_Service_Resource
- {
- /**
- * Creates a Container. (containers.create)
- *
- * @param string $accountId The GTM Account ID.
- * @param Google_Container $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Container
- */
- public function create($accountId, Google_Service_TagManager_Container $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('create', array($params), "Google_Service_TagManager_Container");
- }
- /**
- * Deletes a Container. (containers.delete)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param array $optParams Optional parameters.
- */
- public function delete($accountId, $containerId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Gets a Container. (containers.get)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Container
- */
- public function get($accountId, $containerId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_TagManager_Container");
- }
- /**
- * Lists all Containers that belongs to a GTM Account.
- * (containers.listAccountsContainers)
- *
- * @param string $accountId The GTM Account ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_ListContainersResponse
- */
- public function listAccountsContainers($accountId, $optParams = array())
- {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_TagManager_ListContainersResponse");
- }
- /**
- * Updates a Container. (containers.update)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param Google_Container $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string fingerprint When provided, this fingerprint must match the
- * fingerprint of the container in storage.
- * @return Google_Service_TagManager_Container
- */
- public function update($accountId, $containerId, Google_Service_TagManager_Container $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_TagManager_Container");
- }
- }
- /**
- * The "folders" collection of methods.
- * Typical usage is:
- * <code>
- * $tagmanagerService = new Google_Service_TagManager(...);
- * $folders = $tagmanagerService->folders;
- * </code>
- */
- class Google_Service_TagManager_AccountsContainersFolders_Resource extends Google_Service_Resource
- {
- /**
- * Creates a GTM Folder. (folders.create)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param Google_Folder $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Folder
- */
- public function create($accountId, $containerId, Google_Service_TagManager_Folder $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('create', array($params), "Google_Service_TagManager_Folder");
- }
- /**
- * Deletes a GTM Folder. (folders.delete)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $folderId The GTM Folder ID.
- * @param array $optParams Optional parameters.
- */
- public function delete($accountId, $containerId, $folderId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Gets a GTM Folder. (folders.get)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $folderId The GTM Folder ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Folder
- */
- public function get($accountId, $containerId, $folderId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_TagManager_Folder");
- }
- /**
- * Lists all GTM Folders of a Container. (folders.listAccountsContainersFolders)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_ListFoldersResponse
- */
- public function listAccountsContainersFolders($accountId, $containerId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_TagManager_ListFoldersResponse");
- }
- /**
- * Updates a GTM Folder. (folders.update)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $folderId The GTM Folder ID.
- * @param Google_Folder $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string fingerprint When provided, this fingerprint must match the
- * fingerprint of the folder in storage.
- * @return Google_Service_TagManager_Folder
- */
- public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_TagManager_Folder");
- }
- }
- /**
- * The "entities" collection of methods.
- * Typical usage is:
- * <code>
- * $tagmanagerService = new Google_Service_TagManager(...);
- * $entities = $tagmanagerService->entities;
- * </code>
- */
- class Google_Service_TagManager_AccountsContainersFoldersEntities_Resource extends Google_Service_Resource
- {
- /**
- * List all entities in a GTM Folder.
- * (entities.listAccountsContainersFoldersEntities)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $folderId The GTM Folder ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_FolderEntities
- */
- public function listAccountsContainersFoldersEntities($accountId, $containerId, $folderId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_TagManager_FolderEntities");
- }
- }
- /**
- * The "move_folders" collection of methods.
- * Typical usage is:
- * <code>
- * $tagmanagerService = new Google_Service_TagManager(...);
- * $move_folders = $tagmanagerService->move_folders;
- * </code>
- */
- class Google_Service_TagManager_AccountsContainersMoveFolders_Resource extends Google_Service_Resource
- {
- /**
- * Moves entities to a GTM Folder. (move_folders.update)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $folderId The GTM Folder ID.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string variableId The variables to be moved to the folder.
- * @opt_param string tagId The tags to be moved to the folder.
- * @opt_param string triggerId The triggers to be moved to the folder.
- */
- public function update($accountId, $containerId, $folderId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params));
- }
- }
- /**
- * The "tags" collection of methods.
- * Typical usage is:
- * <code>
- * $tagmanagerService = new Google_Service_TagManager(...);
- * $tags = $tagmanagerService->tags;
- * </code>
- */
- class Google_Service_TagManager_AccountsContainersTags_Resource extends Google_Service_Resource
- {
- /**
- * Creates a GTM Tag. (tags.create)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param Google_Tag $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Tag
- */
- public function create($accountId, $containerId, Google_Service_TagManager_Tag $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('create', array($params), "Google_Service_TagManager_Tag");
- }
- /**
- * Deletes a GTM Tag. (tags.delete)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $tagId The GTM Tag ID.
- * @param array $optParams Optional parameters.
- */
- public function delete($accountId, $containerId, $tagId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Gets a GTM Tag. (tags.get)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $tagId The GTM Tag ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Tag
- */
- public function get($accountId, $containerId, $tagId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_TagManager_Tag");
- }
- /**
- * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_ListTagsResponse
- */
- public function listAccountsContainersTags($accountId, $containerId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_TagManager_ListTagsResponse");
- }
- /**
- * Updates a GTM Tag. (tags.update)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $tagId The GTM Tag ID.
- * @param Google_Tag $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string fingerprint When provided, this fingerprint must match the
- * fingerprint of the tag in storage.
- * @return Google_Service_TagManager_Tag
- */
- public function update($accountId, $containerId, $tagId, Google_Service_TagManager_Tag $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_TagManager_Tag");
- }
- }
- /**
- * The "triggers" collection of methods.
- * Typical usage is:
- * <code>
- * $tagmanagerService = new Google_Service_TagManager(...);
- * $triggers = $tagmanagerService->triggers;
- * </code>
- */
- class Google_Service_TagManager_AccountsContainersTriggers_Resource extends Google_Service_Resource
- {
- /**
- * Creates a GTM Trigger. (triggers.create)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param Google_Trigger $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Trigger
- */
- public function create($accountId, $containerId, Google_Service_TagManager_Trigger $postBody, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('create', array($params), "Google_Service_TagManager_Trigger");
- }
- /**
- * Deletes a GTM Trigger. (triggers.delete)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $triggerId The GTM Trigger ID.
- * @param array $optParams Optional parameters.
- */
- public function delete($accountId, $containerId, $triggerId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Gets a GTM Trigger. (triggers.get)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param string $triggerId The GTM Trigger ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_TagManager_Trigger
- */
- public function get($accountId, $containerId, $triggerId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_TagManager_Trigger");
- }
- /**
- * Lists all GTM Triggers of a Container.
- * (triggers.listAccountsContainersTriggers)
- *
- * @param string $accountId The GTM Account ID.
- * @param string $containerId The GTM Container ID.
- * @param array $optParams …
Large files files are truncated, but you can click here to view the full file