Class: Google::Apis::TagmanagerV1::TagManagerService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
lib/google/apis/tagmanager_v1/service.rb

Overview

Tag Manager API

This API allows clients to access and modify container and tag configuration.

Examples:

require 'google/apis/tagmanager_v1'

Tagmanager = Google::Apis::TagmanagerV1 # Alias the module
service = Tagmanager::TagManagerService.new

See Also:

Constant Summary collapse

DEFAULT_ENDPOINT_TEMPLATE =
"https://tagmanager.$UNIVERSE_DOMAIN$/"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTagManagerService

Returns a new instance of TagManagerService.



47
48
49
50
51
52
# File 'lib/google/apis/tagmanager_v1/service.rb', line 47

def initialize
  super(DEFAULT_ENDPOINT_TEMPLATE, '',
        client_name: 'google-apis-tagmanager_v1',
        client_version: Google::Apis::TagmanagerV1::GEM_VERSION)
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString

Returns 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.

Returns:

  • (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.



40
41
42
# File 'lib/google/apis/tagmanager_v1/service.rb', line 40

def key
  @key
end

#quota_userString

Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

Returns:

  • (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.



45
46
47
# File 'lib/google/apis/tagmanager_v1/service.rb', line 45

def quota_user
  @quota_user
end

Instance Method Details

#create_account_container_environment(account_id, container_id, environment_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Environment

Creates a GTM Environment.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • environment_object (Google::Apis::TagmanagerV1::Environment) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/google/apis/tagmanager_v1/service.rb', line 338

def (, container_id, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments', options)
  command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
  command.request_object = environment_object
  command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV1::Environment
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_folder(account_id, container_id, folder_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Folder

Creates a GTM Folder.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • folder_object (Google::Apis::TagmanagerV1::Folder) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



520
521
522
523
524
525
526
527
528
529
530
531
# File 'lib/google/apis/tagmanager_v1/service.rb', line 520

def (, container_id, folder_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders', options)
  command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
  command.request_object = folder_object
  command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
  command.response_class = Google::Apis::TagmanagerV1::Folder
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_container(account_id, container_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Container

Creates a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_object (Google::Apis::TagmanagerV1::Container) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



169
170
171
172
173
174
175
176
177
178
179
# File 'lib/google/apis/tagmanager_v1/service.rb', line 169

def create_container(, container_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers', options)
  command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
  command.request_object = container_object
  command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
  command.response_class = Google::Apis::TagmanagerV1::Container
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::UserAccess

Creates a user's Account & Container Permissions.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • user_access_object (Google::Apis::TagmanagerV1::UserAccess) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1671

def create_permission(, user_access_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/permissions', options)
  command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
  command.request_object = user_access_object
  command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
  command.response_class = Google::Apis::TagmanagerV1::UserAccess
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Tag

Creates a GTM Tag.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • tag_object (Google::Apis::TagmanagerV1::Tag) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



823
824
825
826
827
828
829
830
831
832
833
834
# File 'lib/google/apis/tagmanager_v1/service.rb', line 823

def create_tag(, container_id, tag_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags', options)
  command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
  command.request_object = tag_object
  command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
  command.response_class = Google::Apis::TagmanagerV1::Tag
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Trigger

Creates a GTM Trigger.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • trigger_object (Google::Apis::TagmanagerV1::Trigger) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1005

def create_trigger(, container_id, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers', options)
  command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
  command.request_object = trigger_object
  command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
  command.response_class = Google::Apis::TagmanagerV1::Trigger
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Variable

Creates a GTM Variable.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • variable_object (Google::Apis::TagmanagerV1::Variable) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1187

def create_variable(, container_id, variable_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables', options)
  command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
  command.request_object = variable_object
  command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
  command.response_class = Google::Apis::TagmanagerV1::Variable
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_version(account_id, container_id, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::CreateContainerVersionResponse

Creates a Container Version.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • create_container_version_request_version_options_object (Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1369

def create_version(, container_id, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions', options)
  command.request_representation = Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions::Representation
  command.request_object = create_container_version_request_version_options_object
  command.response_representation = Google::Apis::TagmanagerV1::CreateContainerVersionResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::CreateContainerVersionResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Environment.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • environment_id (String)

    The GTM Environment ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



375
376
377
378
379
380
381
382
383
# File 'lib/google/apis/tagmanager_v1/service.rb', line 375

def (, container_id, environment_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['environmentId'] = environment_id unless environment_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Folder.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • folder_id (String)

    The GTM Folder ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



557
558
559
560
561
562
563
564
565
# File 'lib/google/apis/tagmanager_v1/service.rb', line 557

def (, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['folderId'] = folder_id unless folder_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_container(account_id, container_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



203
204
205
206
207
208
209
210
# File 'lib/google/apis/tagmanager_v1/service.rb', line 203

def delete_container(, container_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_permission(account_id, permission_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Removes a user from the account, revoking access to it and all of its containers.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • permission_id (String)

    The GTM User ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1706
1707
1708
1709
1710
1711
1712
1713
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1706

def delete_permission(, permission_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['permissionId'] = permission_id unless permission_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Tag.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • tag_id (String)

    The GTM Tag ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



860
861
862
863
864
865
866
867
868
# File 'lib/google/apis/tagmanager_v1/service.rb', line 860

def delete_tag(, container_id, tag_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['tagId'] = tag_id unless tag_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Trigger.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • trigger_id (String)

    The GTM Trigger ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1042
1043
1044
1045
1046
1047
1048
1049
1050
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1042

def delete_trigger(, container_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Variable.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • variable_id (String)

    The GTM Variable ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1224
1225
1226
1227
1228
1229
1230
1231
1232
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1224

def delete_variable(, container_id, variable_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['variableId'] = variable_id unless variable_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a Container Version.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • container_version_id (String)

    The GTM Container Version ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1406
1407
1408
1409
1410
1411
1412
1413
1414
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1406

def delete_version(, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account(account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Account

Gets a GTM Account.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



74
75
76
77
78
79
80
81
82
# File 'lib/google/apis/tagmanager_v1/service.rb', line 74

def (, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
  command.response_class = Google::Apis::TagmanagerV1::Account
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Environment

Gets a GTM Environment.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • environment_id (String)

    The GTM Environment ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



409
410
411
412
413
414
415
416
417
418
419
# File 'lib/google/apis/tagmanager_v1/service.rb', line 409

def (, container_id, environment_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV1::Environment
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['environmentId'] = environment_id unless environment_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Folder

Gets a GTM Folder.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • folder_id (String)

    The GTM Folder ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



591
592
593
594
595
596
597
598
599
600
601
# File 'lib/google/apis/tagmanager_v1/service.rb', line 591

def (, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
  command.response_class = Google::Apis::TagmanagerV1::Folder
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['folderId'] = folder_id unless folder_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_container(account_id, container_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Container

Gets a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



234
235
236
237
238
239
240
241
242
243
# File 'lib/google/apis/tagmanager_v1/service.rb', line 234

def get_container(, container_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
  command.response_class = Google::Apis::TagmanagerV1::Container
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_permission(account_id, permission_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::UserAccess

Gets a user's Account & Container Permissions.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • permission_id (String)

    The GTM User ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1737

def get_permission(, permission_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
  command.response_class = Google::Apis::TagmanagerV1::UserAccess
  command.params['accountId'] =  unless .nil?
  command.params['permissionId'] = permission_id unless permission_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Tag

Gets a GTM Tag.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • tag_id (String)

    The GTM Tag ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



894
895
896
897
898
899
900
901
902
903
904
# File 'lib/google/apis/tagmanager_v1/service.rb', line 894

def get_tag(, container_id, tag_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
  command.response_class = Google::Apis::TagmanagerV1::Tag
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['tagId'] = tag_id unless tag_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Trigger

Gets a GTM Trigger.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • trigger_id (String)

    The GTM Trigger ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1076

def get_trigger(, container_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
  command.response_class = Google::Apis::TagmanagerV1::Trigger
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Variable

Gets a GTM Variable.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • variable_id (String)

    The GTM Variable ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1258

def get_variable(, container_id, variable_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
  command.response_class = Google::Apis::TagmanagerV1::Variable
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['variableId'] = variable_id unless variable_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ContainerVersion

Gets a Container Version.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • container_version_id (String)

    The GTM Container Version ID. Specify published to retrieve the currently published version.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1441

def get_version(, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
  command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_environments(account_id, container_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListEnvironmentsResponse

Lists all GTM Environments of a GTM Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



443
444
445
446
447
448
449
450
451
452
# File 'lib/google/apis/tagmanager_v1/service.rb', line 443

def (, container_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListEnvironmentsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListEnvironmentsResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_folder_entities(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::FolderEntities

List all entities in a GTM Folder.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • folder_id (String)

    The GTM Folder ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



703
704
705
706
707
708
709
710
711
712
713
# File 'lib/google/apis/tagmanager_v1/service.rb', line 703

def (, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', options)
  command.response_representation = Google::Apis::TagmanagerV1::FolderEntities::Representation
  command.response_class = Google::Apis::TagmanagerV1::FolderEntities
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['folderId'] = folder_id unless folder_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_folders(account_id, container_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListFoldersResponse

Lists all GTM Folders of a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



625
626
627
628
629
630
631
632
633
634
# File 'lib/google/apis/tagmanager_v1/service.rb', line 625

def (, container_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListFoldersResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListFoldersResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_accounts(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListAccountsResponse

Lists all GTM Accounts that a user has access to.

Parameters:

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



102
103
104
105
106
107
108
109
# File 'lib/google/apis/tagmanager_v1/service.rb', line 102

def list_accounts(fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListAccountsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListAccountsResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_containers(account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListContainersResponse

Lists all Containers that belongs to a GTM Account.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



265
266
267
268
269
270
271
272
273
# File 'lib/google/apis/tagmanager_v1/service.rb', line 265

def list_containers(, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListContainersResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListContainersResponse
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_permissions(account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListAccountUsersResponse

List all users that have access to the account along with Account and Container Permissions granted to each of them.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1769
1770
1771
1772
1773
1774
1775
1776
1777
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1769

def list_permissions(, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/permissions', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListAccountUsersResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListAccountUsersResponse
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_tags(account_id, container_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListTagsResponse

Lists all GTM Tags of a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



928
929
930
931
932
933
934
935
936
937
# File 'lib/google/apis/tagmanager_v1/service.rb', line 928

def list_tags(, container_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListTagsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListTagsResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_triggers(account_id, container_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListTriggersResponse

Lists all GTM Triggers of a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1110

def list_triggers(, container_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListTriggersResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListTriggersResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_variables(account_id, container_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListVariablesResponse

Lists all GTM Variables of a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1292

def list_variables(, container_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListVariablesResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListVariablesResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_versions(account_id, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ListContainerVersionsResponse

Lists all Container Versions of a GTM Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • headers (Boolean) (defaults to: nil)

    Retrieve headers only when true.

  • include_deleted (Boolean) (defaults to: nil)

    Also retrieve deleted (archived) versions when true.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1479

def list_versions(, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions', options)
  command.response_representation = Google::Apis::TagmanagerV1::ListContainerVersionsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::ListContainerVersionsResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['headers'] = headers unless headers.nil?
  command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::PublishContainerVersionResponse

Publishes a Container Version.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • container_version_id (String)

    The GTM Container Version ID.

  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the container version in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1519

def publish_version(, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', options)
  command.response_representation = Google::Apis::TagmanagerV1::PublishContainerVersionResponse::Representation
  command.response_class = Google::Apis::TagmanagerV1::PublishContainerVersionResponse
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ContainerVersion

Restores a Container Version. This will overwrite the container's current configuration (including its variables, triggers and tags). The operation will not have any effect on the version that is being served (i.e. the published version).

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • container_version_id (String)

    The GTM Container Version ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1559

def restore_version(, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', options)
  command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ContainerVersion

Undeletes a Container Version.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • container_version_id (String)

    The GTM Container Version ID.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1595

def undelete_version(, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', options)
  command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account(account_id, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Account

Updates a GTM Account.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • account_object (Google::Apis::TagmanagerV1::Account) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the account in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



135
136
137
138
139
140
141
142
143
144
145
146
# File 'lib/google/apis/tagmanager_v1/service.rb', line 135

def (,  = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Account::Representation
  command.request_object = 
  command.response_representation = Google::Apis::TagmanagerV1::Account::Representation
  command.response_class = Google::Apis::TagmanagerV1::Account
  command.params['accountId'] =  unless .nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Environment

Updates a GTM Environment.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • environment_id (String)

    The GTM Environment ID.

  • environment_object (Google::Apis::TagmanagerV1::Environment) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the environment in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



482
483
484
485
486
487
488
489
490
491
492
493
494
495
# File 'lib/google/apis/tagmanager_v1/service.rb', line 482

def (, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
  command.request_object = environment_object
  command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV1::Environment
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['environmentId'] = environment_id unless environment_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_folder(account_id, container_id, folder_id, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Folder

Updates a GTM Folder.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • folder_id (String)

    The GTM Folder ID.

  • folder_object (Google::Apis::TagmanagerV1::Folder) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the folder in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



664
665
666
667
668
669
670
671
672
673
674
675
676
677
# File 'lib/google/apis/tagmanager_v1/service.rb', line 664

def (, container_id, folder_id, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
  command.request_object = folder_object
  command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation
  command.response_class = Google::Apis::TagmanagerV1::Folder
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['folderId'] = folder_id unless folder_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_move_folder(account_id, container_id, folder_id, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Moves entities to a GTM Folder.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • folder_id (String)

    The GTM Folder ID.

  • folder_object (Google::Apis::TagmanagerV1::Folder) (defaults to: nil)
  • tag_id (Array<String>, String) (defaults to: nil)

    The tags to be moved to the folder.

  • trigger_id (Array<String>, String) (defaults to: nil)

    The triggers to be moved to the folder.

  • variable_id (Array<String>, String) (defaults to: nil)

    The variables to be moved to the folder.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



746
747
748
749
750
751
752
753
754
755
756
757
758
759
# File 'lib/google/apis/tagmanager_v1/service.rb', line 746

def (, container_id, folder_id, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation
  command.request_object = folder_object
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['folderId'] = folder_id unless folder_id.nil?
  command.query['tagId'] = tag_id unless tag_id.nil?
  command.query['triggerId'] = trigger_id unless trigger_id.nil?
  command.query['variableId'] = variable_id unless variable_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_reauthorize_environment(account_id, container_id, environment_id, environment_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Environment

Re-generates the authorization code for a GTM Environment.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • environment_id (String)

    The GTM Environment ID.

  • environment_object (Google::Apis::TagmanagerV1::Environment) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'lib/google/apis/tagmanager_v1/service.rb', line 786

def (, container_id, environment_id, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation
  command.request_object = environment_object
  command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV1::Environment
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['environmentId'] = environment_id unless environment_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_container(account_id, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Container

Updates a Container.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • container_object (Google::Apis::TagmanagerV1::Container) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the container in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



301
302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/google/apis/tagmanager_v1/service.rb', line 301

def update_container(, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Container::Representation
  command.request_object = container_object
  command.response_representation = Google::Apis::TagmanagerV1::Container::Representation
  command.response_class = Google::Apis::TagmanagerV1::Container
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::UserAccess

Updates a user's Account & Container Permissions.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • permission_id (String)

    The GTM User ID.

  • user_access_object (Google::Apis::TagmanagerV1::UserAccess) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1802

def update_permission(, permission_id, user_access_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
  command.request_object = user_access_object
  command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation
  command.response_class = Google::Apis::TagmanagerV1::UserAccess
  command.params['accountId'] =  unless .nil?
  command.params['permissionId'] = permission_id unless permission_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_tag(account_id, container_id, tag_id, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Tag

Updates a GTM Tag.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • tag_id (String)

    The GTM Tag ID.

  • tag_object (Google::Apis::TagmanagerV1::Tag) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the tag in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



967
968
969
970
971
972
973
974
975
976
977
978
979
980
# File 'lib/google/apis/tagmanager_v1/service.rb', line 967

def update_tag(, container_id, tag_id, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation
  command.request_object = tag_object
  command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation
  command.response_class = Google::Apis::TagmanagerV1::Tag
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['tagId'] = tag_id unless tag_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_trigger(account_id, container_id, trigger_id, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Trigger

Updates a GTM Trigger.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • trigger_id (String)

    The GTM Trigger ID.

  • trigger_object (Google::Apis::TagmanagerV1::Trigger) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the trigger in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1149

def update_trigger(, container_id, trigger_id, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation
  command.request_object = trigger_object
  command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation
  command.response_class = Google::Apis::TagmanagerV1::Trigger
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_variable(account_id, container_id, variable_id, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::Variable

Updates a GTM Variable.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • variable_id (String)

    The GTM Variable ID.

  • variable_object (Google::Apis::TagmanagerV1::Variable) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the variable in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1331

def update_variable(, container_id, variable_id, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation
  command.request_object = variable_object
  command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation
  command.response_class = Google::Apis::TagmanagerV1::Variable
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['variableId'] = variable_id unless variable_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_version(account_id, container_id, container_version_id, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV1::ContainerVersion

Updates a Container Version.

Parameters:

  • account_id (String)

    The GTM Account ID.

  • container_id (String)

    The GTM Container ID.

  • container_version_id (String)

    The GTM Container Version ID.

  • container_version_object (Google::Apis::TagmanagerV1::ContainerVersion) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the container version in storage.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
# File 'lib/google/apis/tagmanager_v1/service.rb', line 1635

def update_version(, container_id, container_version_id, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options)
  command.request_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
  command.request_object = container_version_object
  command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV1::ContainerVersion
  command.params['accountId'] =  unless .nil?
  command.params['containerId'] = container_id unless container_id.nil?
  command.params['containerVersionId'] = container_version_id unless container_version_id.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end