# 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 TagmanagerV2 # Tag Manager API # # Accesses Tag Manager accounts and containers. # # @example # require 'google/apis/tagmanager_v2' # # Tagmanager = Google::Apis::TagmanagerV2 # Alias the module # service = Tagmanager::TagManagerService.new # # @see https://developers.google.com/tag-manager/api/v2/ 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] # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. attr_accessor :quota_user # @return [String] # Deprecated. Please use quotaUser instead. attr_accessor :user_ip def initialize super('https://www.googleapis.com/', 'tagmanager/v2/') @batch_path = 'batch/tagmanager/v2' end # Gets a GTM Account. # @param [String] path # GTM Accounts's API relative path. Example: accounts/`account_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Account] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def get_account(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Account::Representation command.response_class = Google::Apis::TagmanagerV2::Account command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all GTM Accounts that a user has access to. # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListAccountsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def list_accounts(page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'accounts', options) command.response_representation = Google::Apis::TagmanagerV2::ListAccountsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListAccountsResponse command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a GTM Account. # @param [String] path # GTM Accounts's API relative path. Example: accounts/`account_id` # @param [Google::Apis::TagmanagerV2::Account] account_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the account in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Account] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def update_account(path, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::TagmanagerV2::Account::Representation command.response_class = Google::Apis::TagmanagerV2::Account command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a Container. # @param [String] parent # GTM Account's API relative path. Example: accounts/`account_id`. # @param [Google::Apis::TagmanagerV2::Container] container_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def create_account_container(parent, container_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/containers', options) command.request_representation = Google::Apis::TagmanagerV2::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV2::Container::Representation command.response_class = Google::Apis::TagmanagerV2::Container command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a Container. # @param [String] path # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a Container. # @param [String] path # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def get_account_container(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Container::Representation command.response_class = Google::Apis::TagmanagerV2::Container command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all Containers that belongs to a GTM Account. # @param [String] parent # GTM Accounts's API relative path. Example: accounts/`account_id`. # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListContainersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def list_account_containers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/containers', options) command.response_representation = Google::Apis::TagmanagerV2::ListContainersResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListContainersResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a Container. # @param [String] path # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [Google::Apis::TagmanagerV2::Container] container_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the container in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def update_account_container(path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV2::Container::Representation command.response_class = Google::Apis::TagmanagerV2::Container command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a GTM Environment. # @param [String] parent # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [Google::Apis::TagmanagerV2::Environment] environment_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def create_account_container_environment(parent, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/environments', options) command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation command.response_class = Google::Apis::TagmanagerV2::Environment command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a GTM Environment. # @param [String] path # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ # `container_id`/environments/`environment_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_environment(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a GTM Environment. # @param [String] path # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ # `container_id`/environments/`environment_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def get_account_container_environment(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation command.response_class = Google::Apis::TagmanagerV2::Environment command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all GTM Environments of a GTM Container. # @param [String] parent # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListEnvironmentsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def list_account_container_environments(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/environments', options) command.response_representation = Google::Apis::TagmanagerV2::ListEnvironmentsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListEnvironmentsResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Re-generates the authorization code for a GTM Environment. # @param [String] path # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ # `container_id`/environments/`environment_id` # @param [Google::Apis::TagmanagerV2::Environment] environment_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def reauthorize_account_container_environment(path, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:reauthorize', options) command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation command.response_class = Google::Apis::TagmanagerV2::Environment command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a GTM Environment. # @param [String] path # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ # `container_id`/environments/`environment_id` # @param [Google::Apis::TagmanagerV2::Environment] environment_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the environment # in storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def update_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation command.response_class = Google::Apis::TagmanagerV2::Environment command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets the latest container version header # @param [String] parent # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersionHeader] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::ContainerVersionHeader] # # @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 def latest_account_container_version_header(parent, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/version_headers:latest', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersionHeader::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersionHeader command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all Container Versions of a GTM Container. # @param [String] parent # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [Boolean] include_deleted # Also retrieve deleted (archived) versions when true. # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListContainerVersionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def list_account_container_version_headers(parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/version_headers', options) command.response_representation = Google::Apis::TagmanagerV2::ListContainerVersionsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListContainerVersionsResponse command.params['parent'] = parent unless parent.nil? command.query['includeDeleted'] = include_deleted unless include_deleted.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a Container Version. # @param [String] path # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/versions/`version_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_version(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a Container Version. # @param [String] path # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/versions/`version_id` # @param [String] container_version_id # The GTM ContainerVersion ID. Specify published to retrieve the currently # published version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def get_account_container_version(path, container_version_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion command.params['path'] = path unless path.nil? command.query['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? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets the live (i.e. published) container version # @param [String] parent # GTM Container's API relative path. Example: accounts/`account_id`/containers/` # container_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def live_account_container_version(parent, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/versions:live', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Publishes a Container Version. # @param [String] path # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/versions/`version_id` # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the container # version in storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::PublishContainerVersionResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def publish_account_container_version(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:publish', options) command.response_representation = Google::Apis::TagmanagerV2::PublishContainerVersionResponse::Representation command.response_class = Google::Apis::TagmanagerV2::PublishContainerVersionResponse command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Sets the latest version used for synchronization of workspaces when detecting # conflicts and errors. # @param [String] path # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/versions/`version_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def set_account_container_version_latest(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:set_latest', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Undeletes a Container Version. # @param [String] path # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/versions/`version_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def undelete_account_container_version(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:undelete', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a Container Version. # @param [String] path # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/versions/`version_id` # @param [Google::Apis::TagmanagerV2::ContainerVersion] container_version_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the container # version in storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def update_account_container_version(path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.request_object = container_version_object command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a Workspace. # @param [String] parent # GTM parent Container's API relative path. Example: accounts/`account_id`/ # containers/`container_id` # @param [Google::Apis::TagmanagerV2::Workspace] workspace_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Workspace] # # @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 def create_account_container_workspace(parent, workspace_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/workspaces', options) command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.request_object = workspace_object command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.response_class = Google::Apis::TagmanagerV2::Workspace command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a Container Version from the entities present in the workspace, # deletes the workspace, and sets the base container version to the newly # created version. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::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 # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::CreateContainerVersionResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def create_account_container_workspace_version(path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:create_version', options) command.request_representation = Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions::Representation command.request_object = create_container_version_request_version_options_object command.response_representation = Google::Apis::TagmanagerV2::CreateContainerVersionResponse::Representation command.response_class = Google::Apis::TagmanagerV2::CreateContainerVersionResponse command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a Workspace. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a Workspace. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Workspace] # # @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 def get_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.response_class = Google::Apis::TagmanagerV2::Workspace command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Finds conflicting and modified entities in the workspace. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse] # # @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 def get_account_container_workspace_status(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}/status', options) command.response_representation = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse::Representation command.response_class = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all Workspaces that belong to a GTM Container. # @param [String] parent # GTM parent Container's API relative path. Example: accounts/`account_id`/ # containers/`container_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListWorkspacesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::ListWorkspacesResponse] # # @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 def list_account_container_workspaces(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/workspaces', options) command.response_representation = Google::Apis::TagmanagerV2::ListWorkspacesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListWorkspacesResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Quick previews a workspace by creating a fake container version from all # entities in the provided workspace. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::QuickPreviewResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::QuickPreviewResponse] # # @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 def quick_account_container_workspace_preview(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:quick_preview', options) command.response_representation = Google::Apis::TagmanagerV2::QuickPreviewResponse::Representation command.response_class = Google::Apis::TagmanagerV2::QuickPreviewResponse command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Resolves a merge conflict for a workspace entity by updating it to the # resolved entity passed in the request. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Entity] entity_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the # entity_in_workspace in the merge conflict. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def resolve_account_container_workspace_conflict(path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:resolve_conflict', options) command.request_representation = Google::Apis::TagmanagerV2::Entity::Representation command.request_object = entity_object command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Syncs a workspace to the latest container version by updating all unmodified # workspace entities and displaying conflicts for modified entities. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::SyncWorkspaceResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::SyncWorkspaceResponse] # # @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 def sync_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:sync', options) command.response_representation = Google::Apis::TagmanagerV2::SyncWorkspaceResponse::Representation command.response_class = Google::Apis::TagmanagerV2::SyncWorkspaceResponse command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a Workspace. # @param [String] path # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Workspace] workspace_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the workspace in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Workspace] # # @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 def update_account_container_workspace(path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.request_object = workspace_object command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.response_class = Google::Apis::TagmanagerV2::Workspace command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates one or more GTM Built-In Variables. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Array, String] type # The types of built-in variables to enable. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse] # # @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 def create_account_container_workspace_built_in_variable(parent, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/built_in_variables', options) command.response_representation = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse::Representation command.response_class = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse command.params['parent'] = parent unless parent.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes one or more GTM Built-In Variables. # @param [String] path # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/workspaces/`workspace_id`/built_in_variables # @param [Array, String] type # The types of built-in variables to delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all the enabled Built-In Variables of a GTM Container. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse] # # @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 def list_account_container_workspace_built_in_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/built_in_variables', options) command.response_representation = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Reverts changes to a GTM Built-In Variables in a GTM Workspace. # @param [String] path # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/ # containers/`container_id`/workspaces/`workspace_id`/built_in_variables # @param [String] type # The type of built-in variable to revert. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse] # # @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 def revert_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}/built_in_variables:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse command.params['path'] = path unless path.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a GTM Folder. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Folder] folder_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Folder] # # @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 def create_account_container_workspace_folder(parent, folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/folders', options) command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation command.request_object = folder_object command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation command.response_class = Google::Apis::TagmanagerV2::Folder command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a GTM Folder. # @param [String] path # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/folders/`folder_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # List all entities in a GTM Folder. # @param [String] path # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/folders/`folder_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::FolderEntities] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::FolderEntities] # # @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 def entities_account_container_workspace_folder(path, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:entities', options) command.response_representation = Google::Apis::TagmanagerV2::FolderEntities::Representation command.response_class = Google::Apis::TagmanagerV2::FolderEntities command.params['path'] = path unless path.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a GTM Folder. # @param [String] path # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/folders/`folder_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Folder] # # @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 def get_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation command.response_class = Google::Apis::TagmanagerV2::Folder command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all GTM Folders of a Container. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListFoldersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::ListFoldersResponse] # # @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 def list_account_container_workspace_folders(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/folders', options) command.response_representation = Google::Apis::TagmanagerV2::ListFoldersResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListFoldersResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Moves entities to a GTM Folder. # @param [String] path # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/folders/`folder_id` # @param [Google::Apis::TagmanagerV2::Folder] folder_object # @param [Array, String] tag_id # The tags to be moved to the folder. # @param [Array, String] trigger_id # The triggers to be moved to the folder. # @param [Array, String] variable_id # The variables to be moved to the folder. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def move_account_container_workspace_folder_entities_to_folder(path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:move_entities_to_folder', options) command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation command.request_object = folder_object command.params['path'] = path unless path.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? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Reverts changes to a GTM Folder in a GTM Workspace. # @param [String] path # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/folders/`folder_id` # @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 # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::RevertFolderResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::RevertFolderResponse] # # @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 def revert_account_container_workspace_folder(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertFolderResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertFolderResponse command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a GTM Folder. # @param [String] path # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/folders/`folder_id` # @param [Google::Apis::TagmanagerV2::Folder] folder_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the folder in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Folder] # # @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 def update_account_container_workspace_folder(path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation command.request_object = folder_object command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation command.response_class = Google::Apis::TagmanagerV2::Folder command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a GTM Tag. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Tag] tag_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def create_account_container_workspace_tag(parent, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/tags', options) command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation command.response_class = Google::Apis::TagmanagerV2::Tag command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a GTM Tag. # @param [String] path # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/tags/`tag_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a GTM Tag. # @param [String] path # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/tags/`tag_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def get_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation command.response_class = Google::Apis::TagmanagerV2::Tag command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all GTM Tags of a Container. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListTagsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def list_account_container_workspace_tags(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/tags', options) command.response_representation = Google::Apis::TagmanagerV2::ListTagsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListTagsResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Reverts changes to a GTM Tag in a GTM Workspace. # @param [String] path # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/tags/`tag_id` # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of thetag in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::RevertTagResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::RevertTagResponse] # # @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 def revert_account_container_workspace_tag(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertTagResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertTagResponse command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a GTM Tag. # @param [String] path # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/tags/`tag_id` # @param [Google::Apis::TagmanagerV2::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 # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def update_account_container_workspace_tag(path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation command.response_class = Google::Apis::TagmanagerV2::Tag command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a GTM Trigger. # @param [String] parent # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Trigger] trigger_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def create_account_container_workspace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/triggers', options) command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.response_class = Google::Apis::TagmanagerV2::Trigger command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a GTM Trigger. # @param [String] path # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a GTM Trigger. # @param [String] path # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def get_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.response_class = Google::Apis::TagmanagerV2::Trigger command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all GTM Triggers of a Container. # @param [String] parent # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListTriggersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def list_account_container_workspace_triggers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/triggers', options) command.response_representation = Google::Apis::TagmanagerV2::ListTriggersResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListTriggersResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Reverts changes to a GTM Trigger in a GTM Workspace. # @param [String] path # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the trigger in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::RevertTriggerResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::RevertTriggerResponse] # # @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 def revert_account_container_workspace_trigger(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertTriggerResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertTriggerResponse command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a GTM Trigger. # @param [String] path # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` # @param [Google::Apis::TagmanagerV2::Trigger] trigger_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the trigger in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def update_account_container_workspace_trigger(path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.response_class = Google::Apis::TagmanagerV2::Trigger command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a GTM Variable. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Variable] variable_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def create_account_container_workspace_variable(parent, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/variables', options) command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation command.response_class = Google::Apis::TagmanagerV2::Variable command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a GTM Variable. # @param [String] path # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/variables/`variable_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a GTM Variable. # @param [String] path # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/variables/`variable_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def get_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation command.response_class = Google::Apis::TagmanagerV2::Variable command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all GTM Variables of a Container. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListVariablesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def list_account_container_workspace_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/variables', options) command.response_representation = Google::Apis::TagmanagerV2::ListVariablesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListVariablesResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Reverts changes to a GTM Variable in a GTM Workspace. # @param [String] path # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/variables/`variable_id` # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the variable in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::RevertVariableResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::RevertVariableResponse] # # @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 def revert_account_container_workspace_variable(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertVariableResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertVariableResponse command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a GTM Variable. # @param [String] path # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/variables/`variable_id` # @param [Google::Apis::TagmanagerV2::Variable] variable_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the variable in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::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 def update_account_container_workspace_variable(path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation command.response_class = Google::Apis::TagmanagerV2::Variable command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a GTM Zone. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Zone] zone_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Zone] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Zone] # # @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 def create_account_container_workspace_zone(parent, zone_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/zones', options) command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation command.request_object = zone_object command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation command.response_class = Google::Apis::TagmanagerV2::Zone command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a GTM Zone. # @param [String] path # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/zones/`zone_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_container_workspace_zone(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a GTM Zone. # @param [String] path # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/zones/`zone_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Zone] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Zone] # # @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 def get_account_container_workspace_zone(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation command.response_class = Google::Apis::TagmanagerV2::Zone command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all GTM Zones of a GTM container workspace. # @param [String] parent # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListZonesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::ListZonesResponse] # # @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 def list_account_container_workspace_zones(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/zones', options) command.response_representation = Google::Apis::TagmanagerV2::ListZonesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListZonesResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Reverts changes to a GTM Zone in a GTM Workspace. # @param [String] path # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/zones/`zone_id` # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the zone in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::RevertZoneResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::RevertZoneResponse] # # @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 def revert_account_container_workspace_zone(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertZoneResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertZoneResponse command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a GTM Zone. # @param [String] path # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` # container_id`/workspaces/`workspace_id`/zones/`zone_id` # @param [Google::Apis::TagmanagerV2::Zone] zone_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the zone in # storage. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::Zone] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::Zone] # # @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 def update_account_container_workspace_zone(path, zone_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation command.request_object = zone_object command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation command.response_class = Google::Apis::TagmanagerV2::Zone command.params['path'] = path unless path.nil? command.query['fingerprint'] = fingerprint unless fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Creates a user's Account & Container access. # @param [String] parent # GTM Account's API relative path. Example: accounts/`account_id` # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::UserPermission] # # @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 def create_account_user_permission(parent, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{+parent}/user_permissions', options) command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.request_object = user_permission_object command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.response_class = Google::Apis::TagmanagerV2::UserPermission command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.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] path # GTM UserPermission's API relative path. Example: accounts/`account_id`/ # user_permissions/`user_permission_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @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 def delete_account_user_permission(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, '{+path}', options) command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets a user's Account & Container access. # @param [String] path # GTM UserPermission's API relative path. Example: accounts/`account_id`/ # user_permissions/`user_permission_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::UserPermission] # # @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 def get_account_user_permission(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.response_class = Google::Apis::TagmanagerV2::UserPermission command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # List all users that have access to the account along with Account and # Container user access granted to each of them. # @param [String] parent # GTM Accounts's API relative path. Example: accounts/`account_id` # @param [String] page_token # Continuation token for fetching the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::ListUserPermissionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::ListUserPermissionsResponse] # # @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 def list_account_user_permissions(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{+parent}/user_permissions', options) command.response_representation = Google::Apis::TagmanagerV2::ListUserPermissionsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListUserPermissionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Updates a user's Account & Container access. # @param [String] path # GTM UserPermission's API relative path. Example: accounts/`account_id`/ # user_permissions/`user_permission_id` # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # An opaque string that represents a user for quota purposes. Must not exceed 40 # characters. # @param [String] user_ip # Deprecated. Please use quotaUser instead. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::TagmanagerV2::UserPermission] # # @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 def update_account_user_permission(path, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, '{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.request_object = user_permission_object command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.response_class = Google::Apis::TagmanagerV2::UserPermission command.params['path'] = path unless path.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.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? command.query['userIp'] = user_ip unless user_ip.nil? end end end end end