2015-06-23 23:05:46 +00:00
|
|
|
# Copyright 2015 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.
|
|
|
|
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module TagmanagerV1
|
|
|
|
# Tag Manager API
|
|
|
|
#
|
2019-06-21 00:37:42 +00:00
|
|
|
# This API allows clients to access and modify container and tag
|
|
|
|
# configuration.
|
2015-06-23 23:05:46 +00:00
|
|
|
#
|
|
|
|
# @example
|
|
|
|
# require 'google/apis/tagmanager_v1'
|
|
|
|
#
|
|
|
|
# Tagmanager = Google::Apis::TagmanagerV1 # Alias the module
|
|
|
|
# service = Tagmanager::TagManagerService.new
|
|
|
|
#
|
2019-06-21 00:37:42 +00:00
|
|
|
# @see https://developers.google.com/tag-manager
|
2015-06-23 23:05:46 +00:00
|
|
|
class TagManagerService < Google::Apis::Core::BaseService
|
|
|
|
# @return [String]
|
|
|
|
# API key. Your API key identifies your project and provides you with API access,
|
|
|
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
|
|
attr_accessor :key
|
|
|
|
|
|
|
|
# @return [String]
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
attr_accessor :quota_user
|
|
|
|
|
|
|
|
def initialize
|
2019-06-21 00:37:42 +00:00
|
|
|
super('https://www.googleapis.com/', '')
|
2020-05-07 20:07:42 +00:00
|
|
|
@batch_path = 'batch/tagmanager/v1'
|
2015-06-23 23:05:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a GTM Account.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Account] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Account]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_account(account_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Account
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Lists all GTM Accounts that a user has access to.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListAccountsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListAccountsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_accounts(fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListAccountsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListAccountsResponse
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a GTM Account.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Account] account_object
|
|
|
|
# @param [String] fingerprint
|
2019-06-21 00:37:42 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the account
|
|
|
|
# in storage.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Account] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Account]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_account(account_id, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Account::Representation
|
|
|
|
command.request_object = account_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Account
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Creates a Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Container] container_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Container]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_container(account_id, container_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
|
|
|
|
command.request_object = container_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Container
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deletes a Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_container(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Container]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_container(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Container
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Lists all Containers that belongs to a GTM Account.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListContainersResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListContainersResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_containers(account_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListContainersResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListContainersResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Container] container_object
|
|
|
|
# @param [String] fingerprint
|
2019-06-21 00:37:42 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the
|
|
|
|
# container in storage.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Container] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Container]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_container(account_id, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
|
|
|
|
command.request_object = container_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Container
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
# Creates a GTM Environment.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Environment] environment_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Environment]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_account_container_environment(account_id, container_id, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments', options)
|
2016-02-25 23:16:53 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
|
|
|
|
command.request_object = environment_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Environment
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deletes a GTM Environment.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] environment_id
|
|
|
|
# The GTM Environment ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
|
2016-02-25 23:16:53 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['environmentId'] = environment_id unless environment_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a GTM Environment.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] environment_id
|
|
|
|
# The GTM Environment ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Environment]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
|
2016-02-25 23:16:53 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Environment
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['environmentId'] = environment_id unless environment_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Lists all GTM Environments of a GTM Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListEnvironmentsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListEnvironmentsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_account_container_environments(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments', options)
|
2016-02-25 23:16:53 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListEnvironmentsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListEnvironmentsResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a GTM Environment.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] environment_id
|
|
|
|
# The GTM Environment ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Environment] environment_object
|
|
|
|
# @param [String] fingerprint
|
2019-06-21 00:37:42 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the
|
|
|
|
# environment in storage.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Environment]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
|
2016-02-25 23:16:53 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
|
|
|
|
command.request_object = environment_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Environment
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['environmentId'] = environment_id unless environment_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
# Creates a GTM Folder.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [Google::Apis::TagmanagerV1::Folder] folder_object
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2015-12-03 01:10:07 +00:00
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
|
2015-06-23 23:05:46 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2015-12-03 01:10:07 +00:00
|
|
|
# @return [Google::Apis::TagmanagerV1::Folder]
|
2015-06-23 23:05:46 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_account_container_folder(account_id, container_id, folder_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders', options)
|
2015-12-03 01:10:07 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
|
|
|
|
command.request_object = folder_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Folder
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
# Deletes a GTM Folder.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [String] folder_id
|
|
|
|
# The GTM Folder ID.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
2015-12-03 01:10:07 +00:00
|
|
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
# Gets a GTM Folder.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [String] folder_id
|
|
|
|
# The GTM Folder ID.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2015-12-03 01:10:07 +00:00
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
|
2015-06-23 23:05:46 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2015-12-03 01:10:07 +00:00
|
|
|
# @return [Google::Apis::TagmanagerV1::Folder]
|
2015-06-23 23:05:46 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
|
2015-12-03 01:10:07 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Folder
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
2015-12-03 01:10:07 +00:00
|
|
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
# Lists all GTM Folders of a Container.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2015-12-03 01:10:07 +00:00
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListFoldersResponse] parsed result object
|
2015-06-23 23:05:46 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2015-12-03 01:10:07 +00:00
|
|
|
# @return [Google::Apis::TagmanagerV1::ListFoldersResponse]
|
2015-06-23 23:05:46 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_account_container_folders(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders', options)
|
2015-12-03 01:10:07 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListFoldersResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListFoldersResponse
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
# Updates a GTM Folder.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [String] folder_id
|
|
|
|
# The GTM Folder ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Folder] folder_object
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fingerprint
|
2015-12-03 01:10:07 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the folder in
|
2015-06-23 23:05:46 +00:00
|
|
|
# storage.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2015-12-03 01:10:07 +00:00
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Folder] parsed result object
|
2015-06-23 23:05:46 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2015-12-03 01:10:07 +00:00
|
|
|
# @return [Google::Apis::TagmanagerV1::Folder]
|
2015-06-23 23:05:46 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_account_container_folder(account_id, container_id, folder_id, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
|
2015-12-03 01:10:07 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
|
|
|
|
command.request_object = folder_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Folder
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
2015-12-03 01:10:07 +00:00
|
|
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
# List all entities in a GTM Folder.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [String] folder_id
|
|
|
|
# The GTM Folder ID.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2015-12-03 01:10:07 +00:00
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::FolderEntities] parsed result object
|
2015-06-23 23:05:46 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2015-12-03 01:10:07 +00:00
|
|
|
# @return [Google::Apis::TagmanagerV1::FolderEntities]
|
2015-06-23 23:05:46 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_account_container_folder_entities(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', options)
|
2015-12-03 01:10:07 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::FolderEntities::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::FolderEntities
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
2015-12-03 01:10:07 +00:00
|
|
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-12-03 01:10:07 +00:00
|
|
|
# Moves entities to a GTM Folder.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [String] folder_id
|
|
|
|
# The GTM Folder ID.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [Google::Apis::TagmanagerV1::Folder] folder_object
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [Array<String>, String] tag_id
|
|
|
|
# The tags to be moved to the folder.
|
|
|
|
# @param [Array<String>, String] trigger_id
|
|
|
|
# The triggers to be moved to the folder.
|
|
|
|
# @param [Array<String>, String] variable_id
|
|
|
|
# The variables to be moved to the folder.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_account_container_move_folder(account_id, container_id, folder_id, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options)
|
2016-02-25 23:16:53 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
|
|
|
|
command.request_object = folder_object
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
2015-12-03 01:10:07 +00:00
|
|
|
command.params['folderId'] = folder_id unless folder_id.nil?
|
|
|
|
command.query['tagId'] = tag_id unless tag_id.nil?
|
|
|
|
command.query['triggerId'] = trigger_id unless trigger_id.nil?
|
|
|
|
command.query['variableId'] = variable_id unless variable_id.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
# Re-generates the authorization code for a GTM Environment.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] environment_id
|
|
|
|
# The GTM Environment ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Environment] environment_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2016-02-25 23:16:53 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Environment] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Environment]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_account_container_reauthorize_environment(account_id, container_id, environment_id, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', options)
|
2016-02-25 23:16:53 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
|
|
|
|
command.request_object = environment_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Environment
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['environmentId'] = environment_id unless environment_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2015-06-23 23:05:46 +00:00
|
|
|
# Creates a GTM Tag.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Tag] tag_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Tag]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
|
|
|
command.request_object = tag_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Tag
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deletes a GTM Tag.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] tag_id
|
|
|
|
# The GTM Tag ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['tagId'] = tag_id unless tag_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a GTM Tag.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] tag_id
|
|
|
|
# The GTM Tag ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Tag]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Tag
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['tagId'] = tag_id unless tag_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Lists all GTM Tags of a Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListTagsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListTagsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_tags(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListTagsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListTagsResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a GTM Tag.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] tag_id
|
|
|
|
# The GTM Tag ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Tag] tag_object
|
|
|
|
# @param [String] fingerprint
|
|
|
|
# When provided, this fingerprint must match the fingerprint of the tag in
|
|
|
|
# storage.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Tag] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Tag]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_tag(account_id, container_id, tag_id, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
|
|
|
command.request_object = tag_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Tag
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['tagId'] = tag_id unless tag_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Creates a GTM Trigger.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Trigger]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
|
|
|
command.request_object = trigger_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Trigger
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deletes a GTM Trigger.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] trigger_id
|
|
|
|
# The GTM Trigger ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a GTM Trigger.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] trigger_id
|
|
|
|
# The GTM Trigger ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Trigger]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Trigger
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Lists all GTM Triggers of a Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListTriggersResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListTriggersResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_triggers(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListTriggersResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListTriggersResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a GTM Trigger.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] trigger_id
|
|
|
|
# The GTM Trigger ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Trigger] trigger_object
|
|
|
|
# @param [String] fingerprint
|
2019-06-21 00:37:42 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the trigger
|
|
|
|
# in storage.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Trigger] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Trigger]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_trigger(account_id, container_id, trigger_id, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
|
|
|
command.request_object = trigger_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Trigger
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Creates a GTM Variable.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Variable] variable_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Variable]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
|
|
|
command.request_object = variable_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Variable
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deletes a GTM Variable.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] variable_id
|
|
|
|
# The GTM Variable ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['variableId'] = variable_id unless variable_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a GTM Variable.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] variable_id
|
|
|
|
# The GTM Variable ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Variable]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Variable
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['variableId'] = variable_id unless variable_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Lists all GTM Variables of a Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListVariablesResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListVariablesResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_variables(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListVariablesResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListVariablesResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a GTM Variable.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] variable_id
|
|
|
|
# The GTM Variable ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::Variable] variable_object
|
|
|
|
# @param [String] fingerprint
|
2019-06-21 00:37:42 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the variable
|
|
|
|
# in storage.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::Variable] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::Variable]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_variable(account_id, container_id, variable_id, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
|
|
|
command.request_object = variable_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::Variable
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['variableId'] = variable_id unless variable_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Creates a Container Version.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions] create_container_version_request_version_options_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::CreateContainerVersionResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::CreateContainerVersionResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_version(account_id, container_id, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions::Representation
|
|
|
|
command.request_object = create_container_version_request_version_options_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::CreateContainerVersionResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::CreateContainerVersionResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deletes a Container Version.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] container_version_id
|
|
|
|
# The GTM Container Version ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a Container Version.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] container_version_id
|
2019-06-21 00:37:42 +00:00
|
|
|
# The GTM Container Version ID. Specify <code>published</code> to retrieve
|
|
|
|
# the currently published version.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Lists all Container Versions of a GTM Container.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [Boolean] headers
|
|
|
|
# Retrieve headers only when true.
|
2015-12-03 01:10:07 +00:00
|
|
|
# @param [Boolean] include_deleted
|
|
|
|
# Also retrieve deleted (archived) versions when true.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListContainerVersionsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListContainerVersionsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_versions(account_id, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListContainerVersionsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListContainerVersionsResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.query['headers'] = headers unless headers.nil?
|
2015-12-03 01:10:07 +00:00
|
|
|
command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
|
2015-06-23 23:05:46 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Publishes a Container Version.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] container_version_id
|
|
|
|
# The GTM Container Version ID.
|
|
|
|
# @param [String] fingerprint
|
2019-06-21 00:37:42 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the
|
|
|
|
# container version in storage.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::PublishContainerVersionResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::PublishContainerVersionResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::PublishContainerVersionResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::PublishContainerVersionResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Restores a Container Version. This will overwrite the container's current
|
2019-06-21 00:37:42 +00:00
|
|
|
# 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).
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] container_version_id
|
|
|
|
# The GTM Container Version ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Undeletes a Container Version.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] container_version_id
|
|
|
|
# The GTM Container Version ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a Container Version.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] container_id
|
|
|
|
# The GTM Container ID.
|
|
|
|
# @param [String] container_version_id
|
|
|
|
# The GTM Container Version ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::ContainerVersion] container_version_object
|
|
|
|
# @param [String] fingerprint
|
2019-06-21 00:37:42 +00:00
|
|
|
# When provided, this fingerprint must match the fingerprint of the
|
|
|
|
# container version in storage.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ContainerVersion] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ContainerVersion]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_version(account_id, container_id, container_version_id, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
|
|
|
command.request_object = container_version_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['containerId'] = container_id unless container_id.nil?
|
|
|
|
command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
|
|
|
|
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Creates a user's Account & Container Permissions.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::UserAccess]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/permissions', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
|
|
|
command.request_object = user_access_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::UserAccess
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Removes a user from the account, revoking access to it and all of its
|
|
|
|
# containers.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] permission_id
|
|
|
|
# The GTM User ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [NilClass] No result returned for this method
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [void]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def delete_permission(account_id, permission_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Gets a user's Account & Container Permissions.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] permission_id
|
|
|
|
# The GTM User ID.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::UserAccess]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def get_permission(account_id, permission_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::UserAccess
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# List all users that have access to the account along with Account and
|
|
|
|
# Container Permissions granted to each of them.
|
|
|
|
# @param [String] account_id
|
2019-06-21 00:37:42 +00:00
|
|
|
# The GTM Account ID.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::ListAccountUsersResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::ListAccountUsersResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def list_permissions(account_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/permissions', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::ListAccountUsersResponse::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::ListAccountUsersResponse
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Updates a user's Account & Container Permissions.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The GTM Account ID.
|
|
|
|
# @param [String] permission_id
|
|
|
|
# The GTM User ID.
|
|
|
|
# @param [Google::Apis::TagmanagerV1::UserAccess] user_access_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
2019-06-21 00:37:42 +00:00
|
|
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
|
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015-06-23 23:05:46 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::TagmanagerV1::UserAccess] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::TagmanagerV1::UserAccess]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2019-06-21 00:37:42 +00:00
|
|
|
def update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options)
|
2015-06-23 23:05:46 +00:00
|
|
|
command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
|
|
|
command.request_object = user_access_object
|
|
|
|
command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
|
|
|
|
command.response_class = Google::Apis::TagmanagerV1::UserAccess
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def apply_command_defaults(command)
|
|
|
|
command.query['key'] = key unless key.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|