Class: Google::Apis::TagmanagerV2::TagManagerService

Inherits:
Core::BaseService show all
Defined in:
generated/google/apis/tagmanager_v2/service.rb

Overview

Tag Manager API

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

Examples:

require 'google/apis/tagmanager_v2'

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

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeTagManagerService

Returns a new instance of TagManagerService.



46
47
48
49
# File 'generated/google/apis/tagmanager_v2/service.rb', line 46

def initialize
  super('https://www.googleapis.com/', '')
  @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.



39
40
41
# File 'generated/google/apis/tagmanager_v2/service.rb', line 39

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.



44
45
46
# File 'generated/google/apis/tagmanager_v2/service.rb', line 44

def quota_user
  @quota_user
end

Instance Method Details

#create_account_container(parent, container_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Container

Creates a Container.

Parameters:

  • parent (String)

    GTM Account's API relative path. Example: accounts/account_id.

  • container_object (Google::Apis::TagmanagerV2::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:



172
173
174
175
176
177
178
179
180
181
182
# File 'generated/google/apis/tagmanager_v2/service.rb', line 172

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

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

Creates a GTM Environment.

Parameters:

  • parent (String)

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

  • environment_object (Google::Apis::TagmanagerV2::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:



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

def (parent, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/environments', options)
  command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
  command.request_object = environment_object
  command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV2::Environment
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace(parent, workspace_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Workspace

Creates a Workspace.

Parameters:

  • parent (String)

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

  • workspace_object (Google::Apis::TagmanagerV2::Workspace) (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:



847
848
849
850
851
852
853
854
855
856
857
# File 'generated/google/apis/tagmanager_v2/service.rb', line 847

def (parent, workspace_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/workspaces', options)
  command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation
  command.request_object = workspace_object
  command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
  command.response_class = Google::Apis::TagmanagerV2::Workspace
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace_built_in_variable(parent, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse

Creates one or more GTM Built-In Variables.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

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

    The types of built-in variables to enable.

  • 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:



1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1192

def (parent, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/built_in_variables', options)
  command.response_representation = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace_folder(parent, folder_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Folder

Creates a GTM Folder.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • folder_object (Google::Apis::TagmanagerV2::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:



1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1331

def (parent, folder_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/folders', options)
  command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
  command.request_object = folder_object
  command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
  command.response_class = Google::Apis::TagmanagerV2::Folder
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace_tag(parent, tag_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Tag

Creates a GTM Tag.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • tag_object (Google::Apis::TagmanagerV2::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:



1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1621

def (parent, tag_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/tags', options)
  command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation
  command.request_object = tag_object
  command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
  command.response_class = Google::Apis::TagmanagerV2::Tag
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace_template(parent, custom_template_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::CustomTemplate

Creates a GTM Custom Template.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • custom_template_object (Google::Apis::TagmanagerV2::CustomTemplate) (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:



1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1832

def (parent, custom_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/templates', options)
  command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
  command.request_object = custom_template_object
  command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
  command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
  command.params['parent'] = parent unless parent.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_workspace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Trigger

Creates a GTM Trigger.

Parameters:

  • parent (String)

    GTM Workspaces's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • trigger_object (Google::Apis::TagmanagerV2::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:



2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2043

def (parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/triggers', options)
  command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation
  command.request_object = trigger_object
  command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
  command.response_class = Google::Apis::TagmanagerV2::Trigger
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace_variable(parent, variable_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Variable

Creates a GTM Variable.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • variable_object (Google::Apis::TagmanagerV2::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:



2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2254

def (parent, variable_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/variables', options)
  command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation
  command.request_object = variable_object
  command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
  command.response_class = Google::Apis::TagmanagerV2::Variable
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace_version(path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::CreateContainerVersionResponse

Creates a Container Version from the entities present in the workspace, deletes the workspace, and sets the base container version to the newly created version.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • create_container_version_request_version_options_object (Google::Apis::TagmanagerV2::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:



884
885
886
887
888
889
890
891
892
893
894
# File 'generated/google/apis/tagmanager_v2/service.rb', line 884

def (path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:create_version', options)
  command.request_representation = Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions::Representation
  command.request_object = create_container_version_request_version_options_object
  command.response_representation = Google::Apis::TagmanagerV2::CreateContainerVersionResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::CreateContainerVersionResponse
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_container_workspace_zone(parent, zone_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Zone

Creates a GTM Zone.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • zone_object (Google::Apis::TagmanagerV2::Zone) (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:



2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2465

def (parent, zone_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/zones', options)
  command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation
  command.request_object = zone_object
  command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation
  command.response_class = Google::Apis::TagmanagerV2::Zone
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_account_user_permission(parent, user_permission_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::UserPermission

Creates a user's Account & Container access.

Parameters:

  • parent (String)

    GTM Account's API relative path. Example: accounts/account_id

  • user_permission_object (Google::Apis::TagmanagerV2::UserPermission) (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:



2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2675

def (parent, user_permission_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+parent}/user_permissions', options)
  command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
  command.request_object = user_permission_object
  command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
  command.response_class = Google::Apis::TagmanagerV2::UserPermission
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a Container.

Parameters:

  • path (String)

    GTM Container's API relative path. Example: accounts/account_id/containers/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:



205
206
207
208
209
210
211
# File 'generated/google/apis/tagmanager_v2/service.rb', line 205

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

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

This method returns an undefined value.

Deletes a GTM Environment.

Parameters:

  • path (String)

    GTM Environment's API relative path. Example: accounts/account_id/containers/container_id/environments/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:



372
373
374
375
376
377
378
# File 'generated/google/apis/tagmanager_v2/service.rb', line 372

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_version(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a Container Version.

Parameters:

  • path (String)

    GTM ContainerVersion's API relative path. Example: accounts/account_id/containers/container_id/versions/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:



610
611
612
613
614
615
616
# File 'generated/google/apis/tagmanager_v2/service.rb', line 610

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a Workspace.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_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:



918
919
920
921
922
923
924
# File 'generated/google/apis/tagmanager_v2/service.rb', line 918

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes one or more GTM Built-In Variables.

Parameters:

  • path (String)

    GTM BuiltInVariable's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ built_in_variables

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

    The types of built-in variables to delete.

  • 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:



1228
1229
1230
1231
1232
1233
1234
1235
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1228

def (path, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace_folder(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Folder.

Parameters:

  • path (String)

    GTM Folder's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ folders/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:



1366
1367
1368
1369
1370
1371
1372
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1366

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace_tag(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Tag.

Parameters:

  • path (String)

    GTM Tag's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/tags/ 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:



1656
1657
1658
1659
1660
1661
1662
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1656

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace_template(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Template.

Parameters:

  • path (String)

    GTM Custom Template's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ templates/template_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:



1867
1868
1869
1870
1871
1872
1873
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1867

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace_trigger(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Trigger.

Parameters:

  • path (String)

    GTM Trigger's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ triggers/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:



2078
2079
2080
2081
2082
2083
2084
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2078

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace_variable(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Variable.

Parameters:

  • path (String)

    GTM Variable's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ variables/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:



2289
2290
2291
2292
2293
2294
2295
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2289

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container_workspace_zone(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a GTM Zone.

Parameters:

  • path (String)

    GTM Zone's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ zones/zone_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:



2500
2501
2502
2503
2504
2505
2506
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2500

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_user_permission(path, 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:

  • path (String)

    GTM UserPermission's API relative path. Example: accounts/account_id/user_permissions/user_permission_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:



2709
2710
2711
2712
2713
2714
2715
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2709

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#entities_account_container_workspace_folder(path, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::FolderEntities

List all entities in a GTM Folder.

Parameters:

  • path (String)

    GTM Folder's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ folders/folder_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1399

def (path, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:entities', options)
  command.response_representation = Google::Apis::TagmanagerV2::FolderEntities::Representation
  command.response_class = Google::Apis::TagmanagerV2::FolderEntities
  command.params['path'] = path unless path.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

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

Gets a GTM Account.

Parameters:

  • path (String)

    GTM Accounts's API relative path. Example: accounts/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:



72
73
74
75
76
77
78
79
80
# File 'generated/google/apis/tagmanager_v2/service.rb', line 72

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

#get_account_container(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Container

Gets a Container.

Parameters:

  • path (String)

    GTM Container's API relative path. Example: accounts/account_id/containers/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:



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

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
  command.response_class = Google::Apis::TagmanagerV2::Container
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_environment(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Environment

Gets a GTM Environment.

Parameters:

  • path (String)

    GTM Environment's API relative path. Example: accounts/account_id/containers/container_id/environments/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:



402
403
404
405
406
407
408
409
410
# File 'generated/google/apis/tagmanager_v2/service.rb', line 402

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV2::Environment
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_version(path, container_version_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ContainerVersion

Gets a Container Version.

Parameters:

  • path (String)

    GTM ContainerVersion's API relative path. Example: accounts/account_id/containers/container_id/versions/version_id

  • container_version_id (String) (defaults to: nil)

    The GTM ContainerVersion 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:



643
644
645
646
647
648
649
650
651
652
# File 'generated/google/apis/tagmanager_v2/service.rb', line 643

def (path, container_version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
  command.params['path'] = path unless path.nil?
  command.query['containerVersionId'] = container_version_id unless container_version_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_workspace(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Workspace

Gets a Workspace.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_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:



948
949
950
951
952
953
954
955
956
# File 'generated/google/apis/tagmanager_v2/service.rb', line 948

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
  command.response_class = Google::Apis::TagmanagerV2::Workspace
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_workspace_folder(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Folder

Gets a GTM Folder.

Parameters:

  • path (String)

    GTM Folder's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ folders/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:



1433
1434
1435
1436
1437
1438
1439
1440
1441
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1433

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
  command.response_class = Google::Apis::TagmanagerV2::Folder
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_workspace_status(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse

Finds conflicting and modified entities in the workspace.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_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:



980
981
982
983
984
985
986
987
988
# File 'generated/google/apis/tagmanager_v2/service.rb', line 980

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}/status', options)
  command.response_representation = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_workspace_tag(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Tag

Gets a GTM Tag.

Parameters:

  • path (String)

    GTM Tag's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/tags/ 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:



1687
1688
1689
1690
1691
1692
1693
1694
1695
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1687

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
  command.response_class = Google::Apis::TagmanagerV2::Tag
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_workspace_template(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::CustomTemplate

Gets a GTM Template.

Parameters:

  • path (String)

    GTM Custom Template's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ templates/template_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:



1898
1899
1900
1901
1902
1903
1904
1905
1906
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1898

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
  command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
  command.params['path'] = path unless path.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_workspace_trigger(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Trigger

Gets a GTM Trigger.

Parameters:

  • path (String)

    GTM Trigger's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ triggers/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:



2109
2110
2111
2112
2113
2114
2115
2116
2117
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2109

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
  command.response_class = Google::Apis::TagmanagerV2::Trigger
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_workspace_variable(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Variable

Gets a GTM Variable.

Parameters:

  • path (String)

    GTM Variable's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ variables/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:



2320
2321
2322
2323
2324
2325
2326
2327
2328
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2320

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
  command.response_class = Google::Apis::TagmanagerV2::Variable
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_container_workspace_zone(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Zone

Gets a GTM Zone.

Parameters:

  • path (String)

    GTM Zone's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ zones/zone_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:



2531
2532
2533
2534
2535
2536
2537
2538
2539
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2531

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation
  command.response_class = Google::Apis::TagmanagerV2::Zone
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_account_user_permission(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::UserPermission

Gets a user's Account & Container access.

Parameters:

  • path (String)

    GTM UserPermission's API relative path. Example: accounts/account_id/user_permissions/user_permission_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:



2738
2739
2740
2741
2742
2743
2744
2745
2746
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2738

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
  command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
  command.response_class = Google::Apis::TagmanagerV2::UserPermission
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#latest_account_container_version_header(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ContainerVersionHeader

Gets the latest container version header

Parameters:

  • parent (String)

    GTM Container's API relative path. Example: accounts/account_id/containers/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:



541
542
543
544
545
546
547
548
549
# File 'generated/google/apis/tagmanager_v2/service.rb', line 541

def (parent, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/version_headers:latest', options)
  command.response_representation = Google::Apis::TagmanagerV2::ContainerVersionHeader::Representation
  command.response_class = Google::Apis::TagmanagerV2::ContainerVersionHeader
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_environments(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListEnvironmentsResponse

Lists all GTM Environments of a GTM Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



435
436
437
438
439
440
441
442
443
444
# File 'generated/google/apis/tagmanager_v2/service.rb', line 435

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/environments', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListEnvironmentsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListEnvironmentsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_version_headers(parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListContainerVersionsResponse

Lists all Container Versions of a GTM Container.

Parameters:

  • parent (String)

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

  • include_deleted (Boolean) (defaults to: nil)

    Also retrieve deleted (archived) versions when true.

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



576
577
578
579
580
581
582
583
584
585
586
# File 'generated/google/apis/tagmanager_v2/service.rb', line 576

def (parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/version_headers', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListContainerVersionsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListContainerVersionsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspace_built_in_variables(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse

Lists all the enabled Built-In Variables of a GTM Container.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1261

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/built_in_variables', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspace_folders(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListFoldersResponse

Lists all GTM Folders of a Container.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1467

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/folders', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListFoldersResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListFoldersResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspace_tags(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListTagsResponse

Lists all GTM Tags of a Container.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1721

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/tags', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListTagsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListTagsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspace_templates(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListTemplatesResponse

Lists all GTM Templates of a GTM container workspace.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1932

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/templates', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListTemplatesResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspace_triggers(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListTriggersResponse

Lists all GTM Triggers of a Container.

Parameters:

  • parent (String)

    GTM Workspaces's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2143

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/triggers', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListTriggersResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListTriggersResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspace_variables(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListVariablesResponse

Lists all GTM Variables of a Container.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2354

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/variables', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListVariablesResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListVariablesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspace_zones(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListZonesResponse

Lists all GTM Zones of a GTM container workspace.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2565

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/zones', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListZonesResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListZonesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_container_workspaces(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListWorkspacesResponse

Lists all Workspaces that belong to a GTM Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1013

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/workspaces', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListWorkspacesResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListWorkspacesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_containers(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListContainersResponse

Lists all Containers that belongs to a GTM Account.

Parameters:

  • parent (String)

    GTM Accounts's API relative path. Example: accounts/account_id.

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



267
268
269
270
271
272
273
274
275
276
# File 'generated/google/apis/tagmanager_v2/service.rb', line 267

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/containers', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListContainersResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListContainersResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_account_user_permissions(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ListUserPermissionsResponse

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

Parameters:

  • parent (String)

    GTM Accounts's API relative path. Example: accounts/account_id

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2772

def (parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/user_permissions', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListUserPermissionsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListUserPermissionsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

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

Lists all GTM Accounts that a user has access to.

Parameters:

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • 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:



102
103
104
105
106
107
108
109
110
# File 'generated/google/apis/tagmanager_v2/service.rb', line 102

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

#live_account_container_version(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ContainerVersion

Gets the live (i.e. published) container version

Parameters:

  • parent (String)

    GTM Container's API relative path. Example: accounts/account_id/containers/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:



675
676
677
678
679
680
681
682
683
# File 'generated/google/apis/tagmanager_v2/service.rb', line 675

def (parent, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'tagmanager/v2/{+parent}/versions:live', options)
  command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#move_account_container_workspace_folder_entities_to_folder(path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Moves entities to a GTM Folder.

Parameters:

  • path (String)

    GTM Folder's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ folders/folder_id

  • folder_object (Google::Apis::TagmanagerV2::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:



1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1508

def (path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:move_entities_to_folder', options)
  command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
  command.request_object = folder_object
  command.params['path'] = path unless path.nil?
  command.query['tagId'] = tag_id unless tag_id.nil?
  command.query['triggerId'] = trigger_id unless trigger_id.nil?
  command.query['variableId'] = variable_id unless variable_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#publish_account_container_version(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::PublishContainerVersionResponse

Publishes a Container Version.

Parameters:

  • path (String)

    GTM ContainerVersion's API relative path. Example: accounts/account_id/containers/container_id/versions/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:



710
711
712
713
714
715
716
717
718
719
# File 'generated/google/apis/tagmanager_v2/service.rb', line 710

def (path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:publish', options)
  command.response_representation = Google::Apis::TagmanagerV2::PublishContainerVersionResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::PublishContainerVersionResponse
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#quick_account_container_workspace_preview(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::QuickPreviewResponse

Quick previews a workspace by creating a fake container version from all entities in the provided workspace.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_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:



1047
1048
1049
1050
1051
1052
1053
1054
1055
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1047

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:quick_preview', options)
  command.response_representation = Google::Apis::TagmanagerV2::QuickPreviewResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::QuickPreviewResponse
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#reauthorize_account_container_environment(path, environment_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Environment

Re-generates the authorization code for a GTM Environment.

Parameters:

  • path (String)

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

  • environment_object (Google::Apis::TagmanagerV2::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:



469
470
471
472
473
474
475
476
477
478
479
# File 'generated/google/apis/tagmanager_v2/service.rb', line 469

def (path, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:reauthorize', options)
  command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
  command.request_object = environment_object
  command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV2::Environment
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#resolve_account_container_workspace_conflict(path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Resolves a merge conflict for a workspace entity by updating it to the resolved entity passed in the request.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • entity_object (Google::Apis::TagmanagerV2::Entity) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the entity_in_workspace in the merge conflict.

  • 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:



1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1084

def (path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:resolve_conflict', options)
  command.request_representation = Google::Apis::TagmanagerV2::Entity::Representation
  command.request_object = entity_object
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#revert_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse

Reverts changes to a GTM Built-In Variables in a GTM Workspace.

Parameters:

  • path (String)

    GTM BuiltInVariable's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ built_in_variables

  • type (String) (defaults to: nil)

    The type of built-in variable to revert.

  • 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:



1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1297

def (path, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}/built_in_variables:revert', options)
  command.response_representation = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse
  command.params['path'] = path unless path.nil?
  command.query['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#revert_account_container_workspace_folder(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::RevertFolderResponse

Reverts changes to a GTM Folder in a GTM Workspace.

Parameters:

  • path (String)

    GTM Folder's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ folders/folder_id

  • 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:



1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1547

def (path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
  command.response_representation = Google::Apis::TagmanagerV2::RevertFolderResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::RevertFolderResponse
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#revert_account_container_workspace_tag(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::RevertTagResponse

Reverts changes to a GTM Tag in a GTM Workspace.

Parameters:

  • path (String)

    GTM Tag's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/tags/ tag_id

  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of thetag 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:



1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1758

def (path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
  command.response_representation = Google::Apis::TagmanagerV2::RevertTagResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::RevertTagResponse
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#revert_account_container_workspace_template(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::RevertTemplateResponse

Reverts changes to a GTM Template in a GTM Workspace.

Parameters:

  • path (String)

    GTM Custom Template's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ templates/template_id

  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the template 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:



1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1969

def (path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
  command.response_representation = Google::Apis::TagmanagerV2::RevertTemplateResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::RevertTemplateResponse
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#revert_account_container_workspace_trigger(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::RevertTriggerResponse

Reverts changes to a GTM Trigger in a GTM Workspace.

Parameters:

  • path (String)

    GTM Trigger's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ triggers/trigger_id

  • 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:



2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2180

def (path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
  command.response_representation = Google::Apis::TagmanagerV2::RevertTriggerResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::RevertTriggerResponse
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#revert_account_container_workspace_variable(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::RevertVariableResponse

Reverts changes to a GTM Variable in a GTM Workspace.

Parameters:

  • path (String)

    GTM Variable's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ variables/variable_id

  • 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:



2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2391

def (path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
  command.response_representation = Google::Apis::TagmanagerV2::RevertVariableResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::RevertVariableResponse
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#revert_account_container_workspace_zone(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::RevertZoneResponse

Reverts changes to a GTM Zone in a GTM Workspace.

Parameters:

  • path (String)

    GTM Zone's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ zones/zone_id

  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the zone 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:



2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2602

def (path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
  command.response_representation = Google::Apis::TagmanagerV2::RevertZoneResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::RevertZoneResponse
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#set_account_container_version_latest(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ContainerVersion

Sets the latest version used for synchronization of workspaces when detecting conflicts and errors.

Parameters:

  • path (String)

    GTM ContainerVersion's API relative path. Example: accounts/account_id/containers/container_id/versions/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:



744
745
746
747
748
749
750
751
752
# File 'generated/google/apis/tagmanager_v2/service.rb', line 744

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:set_latest', options)
  command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#sync_account_container_workspace(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::SyncWorkspaceResponse

Syncs a workspace to the latest container version by updating all unmodified workspace entities and displaying conflicts for modified entities.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_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:



1119
1120
1121
1122
1123
1124
1125
1126
1127
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1119

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:sync', options)
  command.response_representation = Google::Apis::TagmanagerV2::SyncWorkspaceResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::SyncWorkspaceResponse
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#undelete_account_container_version(path, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ContainerVersion

Undeletes a Container Version.

Parameters:

  • path (String)

    GTM ContainerVersion's API relative path. Example: accounts/account_id/containers/container_id/versions/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:



776
777
778
779
780
781
782
783
784
# File 'generated/google/apis/tagmanager_v2/service.rb', line 776

def (path, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'tagmanager/v2/{+path}:undelete', options)
  command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

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

Updates a GTM Account.

Parameters:

  • path (String)

    GTM Accounts's API relative path. Example: accounts/account_id

  • account_object (Google::Apis::TagmanagerV2::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:



137
138
139
140
141
142
143
144
145
146
147
148
# File 'generated/google/apis/tagmanager_v2/service.rb', line 137

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

#update_account_container(path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Container

Updates a Container.

Parameters:

  • path (String)

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

  • container_object (Google::Apis::TagmanagerV2::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:



303
304
305
306
307
308
309
310
311
312
313
314
# File 'generated/google/apis/tagmanager_v2/service.rb', line 303

def (path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Container::Representation
  command.request_object = container_object
  command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
  command.response_class = Google::Apis::TagmanagerV2::Container
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Environment

Updates a GTM Environment.

Parameters:

  • path (String)

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

  • environment_object (Google::Apis::TagmanagerV2::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:



507
508
509
510
511
512
513
514
515
516
517
518
# File 'generated/google/apis/tagmanager_v2/service.rb', line 507

def (path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
  command.request_object = environment_object
  command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
  command.response_class = Google::Apis::TagmanagerV2::Environment
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_version(path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::ContainerVersion

Updates a Container Version.

Parameters:

  • path (String)

    GTM ContainerVersion's API relative path. Example: accounts/account_id/containers/container_id/versions/version_id

  • container_version_object (Google::Apis::TagmanagerV2::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:



812
813
814
815
816
817
818
819
820
821
822
823
# File 'generated/google/apis/tagmanager_v2/service.rb', line 812

def (path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
  command.request_object = container_version_object
  command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
  command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace(path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Workspace

Updates a Workspace.

Parameters:

  • path (String)

    GTM Workspace's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id

  • workspace_object (Google::Apis::TagmanagerV2::Workspace) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the workspace 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:



1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1155

def (path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation
  command.request_object = workspace_object
  command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
  command.response_class = Google::Apis::TagmanagerV2::Workspace
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace_folder(path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Folder

Updates a GTM Folder.

Parameters:

  • path (String)

    GTM Folder's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ folders/folder_id

  • folder_object (Google::Apis::TagmanagerV2::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:



1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1585

def (path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
  command.request_object = folder_object
  command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
  command.response_class = Google::Apis::TagmanagerV2::Folder
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace_tag(path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Tag

Updates a GTM Tag.

Parameters:

  • path (String)

    GTM Tag's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/tags/ tag_id

  • tag_object (Google::Apis::TagmanagerV2::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:



1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1796

def (path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation
  command.request_object = tag_object
  command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
  command.response_class = Google::Apis::TagmanagerV2::Tag
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace_template(path, custom_template_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::CustomTemplate

Updates a GTM Template.

Parameters:

  • path (String)

    GTM Custom Template's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ templates/template_id

  • custom_template_object (Google::Apis::TagmanagerV2::CustomTemplate) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the templates 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:



2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2007

def (path, custom_template_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
  command.request_object = custom_template_object
  command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
  command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace_trigger(path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Trigger

Updates a GTM Trigger.

Parameters:

  • path (String)

    GTM Trigger's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ triggers/trigger_id

  • trigger_object (Google::Apis::TagmanagerV2::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:



2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2218

def (path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation
  command.request_object = trigger_object
  command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
  command.response_class = Google::Apis::TagmanagerV2::Trigger
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace_variable(path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Variable

Updates a GTM Variable.

Parameters:

  • path (String)

    GTM Variable's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ variables/variable_id

  • variable_object (Google::Apis::TagmanagerV2::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:



2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2429

def (path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation
  command.request_object = variable_object
  command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
  command.response_class = Google::Apis::TagmanagerV2::Variable
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace_zone(path, zone_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::Zone

Updates a GTM Zone.

Parameters:

  • path (String)

    GTM Zone's API relative path. Example: accounts/account_id/containers/container_id/workspaces/workspace_id/ zones/zone_id

  • zone_object (Google::Apis::TagmanagerV2::Zone) (defaults to: nil)
  • fingerprint (String) (defaults to: nil)

    When provided, this fingerprint must match the fingerprint of the zone 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:



2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2640

def (path, zone_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation
  command.request_object = zone_object
  command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation
  command.response_class = Google::Apis::TagmanagerV2::Zone
  command.params['path'] = path unless path.nil?
  command.query['fingerprint'] = fingerprint unless fingerprint.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_account_user_permission(path, user_permission_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::UserPermission

Updates a user's Account & Container access.

Parameters:

  • path (String)

    GTM UserPermission's API relative path. Example: accounts/account_id/user_permissions/user_permission_id

  • user_permission_object (Google::Apis::TagmanagerV2::UserPermission) (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:



2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2805

def (path, user_permission_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
  command.request_object = user_permission_object
  command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
  command.response_class = Google::Apis::TagmanagerV2::UserPermission
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end