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

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

Overview

Tag Manager API

Accesses Tag Manager accounts and containers.

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



51
52
53
54
# File 'generated/google/apis/tagmanager_v2/service.rb', line 51

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



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

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. Overrides userIp if both are provided.

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. Overrides userIp if both are provided.



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

def quota_user
  @quota_user
end

#user_ipString

Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.

Returns:

  • (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.



49
50
51
# File 'generated/google/apis/tagmanager_v2/service.rb', line 49

def user_ip
  @user_ip
end

Instance Method Details

#create_account_container(parent, container_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



193
194
195
196
197
198
199
200
201
202
203
204
# File 'generated/google/apis/tagmanager_v2/service.rb', line 193

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

#create_account_container_environment(parent, environment_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



383
384
385
386
387
388
389
390
391
392
393
394
# File 'generated/google/apis/tagmanager_v2/service.rb', line 383

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

#create_account_container_workspace(parent, workspace_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1000

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

#create_account_container_workspace_built_in_variable(parent, type: nil, fields: nil, quota_user: nil, user_ip: 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)

    The types of built-in variables to enable.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1460

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

#create_account_container_workspace_folder(parent, folder_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1613

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

#create_account_container_workspace_tag(parent, tag_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2002

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

#create_account_container_workspace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2233

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

#create_account_container_workspace_variable(parent, variable_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



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

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

#create_account_container_workspace_version(path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1041

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

#create_account_user_permission(parent, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2694

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

#create_workspace_proposal(parent, create_workspace_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::WorkspaceProposal

Creates a GTM Workspace Proposal.

Parameters:

  • parent (String)

    GTM Workspace's API relative path. Example: accounts/aid/containers/cid/ workspace/wid

  • create_workspace_proposal_request_object (Google::Apis::TagmanagerV2::CreateWorkspaceProposalRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



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

def create_workspace_proposal(parent, create_workspace_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{+parent}/proposal', options)
  command.request_representation = Google::Apis::TagmanagerV2::CreateWorkspaceProposalRequest::Representation
  command.request_object = create_workspace_proposal_request_object
  command.response_representation = Google::Apis::TagmanagerV2::WorkspaceProposal::Representation
  command.response_class = Google::Apis::TagmanagerV2::WorkspaceProposal
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_account_container(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



231
232
233
234
235
236
237
238
# File 'generated/google/apis/tagmanager_v2/service.rb', line 231

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

#delete_account_container_environment(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



421
422
423
424
425
426
427
428
# File 'generated/google/apis/tagmanager_v2/service.rb', line 421

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

#delete_account_container_version(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



733
734
735
736
737
738
739
740
# File 'generated/google/apis/tagmanager_v2/service.rb', line 733

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

#delete_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



1079
1080
1081
1082
1083
1084
1085
1086
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1079

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

#delete_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: 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)

    The types of built-in variables to delete.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



1499
1500
1501
1502
1503
1504
1505
1506
1507
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1499

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

#delete_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



1651
1652
1653
1654
1655
1656
1657
1658
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1651

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

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

This method returns an undefined value.

Deletes a GTM Workspace Proposal.

Parameters:

  • path (String)

    GTM workspace proposal's relative path: Example: accounts/aid/containers/ cid/workspace/wid/workspace_proposal

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



1967
1968
1969
1970
1971
1972
1973
1974
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1967

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

#delete_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



2040
2041
2042
2043
2044
2045
2046
2047
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2040

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

#delete_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



2271
2272
2273
2274
2275
2276
2277
2278
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2271

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

#delete_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



2502
2503
2504
2505
2506
2507
2508
2509
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2502

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

#delete_account_user_permission(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



2733
2734
2735
2736
2737
2738
2739
2740
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2733

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

#entities_account_container_workspace_folder(path, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



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

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

#get_account(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



80
81
82
83
84
85
86
87
88
89
# File 'generated/google/apis/tagmanager_v2/service.rb', line 80

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

#get_account_container(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



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

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

#get_account_container_environment(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



455
456
457
458
459
460
461
462
463
464
# File 'generated/google/apis/tagmanager_v2/service.rb', line 455

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

#get_account_container_version(path, container_version_id: nil, fields: nil, quota_user: nil, user_ip: 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)

    The GTM ContainerVersion ID. Specify published to retrieve the currently published version.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



770
771
772
773
774
775
776
777
778
779
780
# File 'generated/google/apis/tagmanager_v2/service.rb', line 770

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

#get_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1113

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

#get_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1724

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

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

Gets a GTM Workspace Proposal.

Parameters:

  • path (String)

    GTM workspace proposal's relative path: Example: accounts/aid/containers/ cid/workspace/wid/workspace_proposal

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1149

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

#get_account_container_workspace_status(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1185

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

#get_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2074

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

#get_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2305

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

#get_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2536

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

#get_account_user_permission(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2767

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

#latest_account_container_version_header(parent, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



655
656
657
658
659
660
661
662
663
664
# File 'generated/google/apis/tagmanager_v2/service.rb', line 655

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

#list_account_container_environments(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



493
494
495
496
497
498
499
500
501
502
503
# File 'generated/google/apis/tagmanager_v2/service.rb', line 493

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

#list_account_container_version_headers(parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Also retrieve deleted (archived) versions when true.

  • page_token (String)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



695
696
697
698
699
700
701
702
703
704
705
706
# File 'generated/google/apis/tagmanager_v2/service.rb', line 695

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

#list_account_container_workspace_built_in_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1536

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

#list_account_container_workspace_folders(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1762

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

#list_account_container_workspace_tags(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2112

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

#list_account_container_workspace_triggers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2343

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

#list_account_container_workspace_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2574

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

#list_account_container_workspaces(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1223

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

#list_account_containers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



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

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

#list_account_user_permissions(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: 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)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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 (parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{+parent}/user_permissions', options)
  command.response_representation = Google::Apis::TagmanagerV2::ListUserPermissionsResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::ListUserPermissionsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

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

Lists all GTM Accounts that a user has access to.

Parameters:

  • page_token (String)

    Continuation token for fetching the next page of results.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



115
116
117
118
119
120
121
122
123
124
# File 'generated/google/apis/tagmanager_v2/service.rb', line 115

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

#live_account_container_version(parent, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



807
808
809
810
811
812
813
814
815
816
# File 'generated/google/apis/tagmanager_v2/service.rb', line 807

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

#move_account_container_workspace_folder_entities_to_folder(path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|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)

    The tags to be moved to the folder.

  • trigger_id (Array<String>, String)

    The triggers to be moved to the folder.

  • variable_id (Array<String>, String)

    The variables to be moved to the folder.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1806

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

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

Updates a GTM Environment. This method supports patch semantics.

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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



534
535
536
537
538
539
540
541
542
543
544
545
546
# File 'generated/google/apis/tagmanager_v2/service.rb', line 534

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

#publish_account_container_version(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



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

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

#quick_account_container_workspace_preview(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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 (path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{+path}:quick_preview', options)
  command.response_representation = Google::Apis::TagmanagerV2::QuickPreviewResponse::Representation
  command.response_class = Google::Apis::TagmanagerV2::QuickPreviewResponse
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#reauthorize_account_container_environment(path, environment_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



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

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

#resolve_account_container_workspace_conflict(path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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:



1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1302

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

#revert_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: 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)

    The type of built-in variable to revert.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1575

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

#revert_account_container_workspace_folder(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1848

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

#revert_account_container_workspace_tag(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2152

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

#revert_account_container_workspace_trigger(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2383

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

#revert_account_container_workspace_variable(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2614

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

#set_account_container_version_latest(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    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
# File 'generated/google/apis/tagmanager_v2/service.rb', line 884

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

#sync_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1340

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

#undelete_account_container_version(path, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



920
921
922
923
924
925
926
927
928
929
# File 'generated/google/apis/tagmanager_v2/service.rb', line 920

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

#update_account(path, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'generated/google/apis/tagmanager_v2/service.rb', line 154

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

#update_account_container(path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



343
344
345
346
347
348
349
350
351
352
353
354
355
# File 'generated/google/apis/tagmanager_v2/service.rb', line 343

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

#update_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



616
617
618
619
620
621
622
623
624
625
626
627
628
# File 'generated/google/apis/tagmanager_v2/service.rb', line 616

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

#update_account_container_version(path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



960
961
962
963
964
965
966
967
968
969
970
971
972
# File 'generated/google/apis/tagmanager_v2/service.rb', line 960

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

#update_account_container_workspace(path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1380

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

#update_account_container_workspace_folder(path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1889

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

#update_account_container_workspace_proposal(path, update_workspace_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TagmanagerV2::WorkspaceProposal

Updates a GTM Workspace Proposal.

Parameters:

  • path (String)

    GTM workspace proposal's relative path: Example: accounts/aid/containers/ cid/workspace/wid/workspace_proposal

  • update_workspace_proposal_request_object (Google::Apis::TagmanagerV2::UpdateWorkspaceProposalRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1420

def (path, update_workspace_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, '{+path}', options)
  command.request_representation = Google::Apis::TagmanagerV2::UpdateWorkspaceProposalRequest::Representation
  command.request_object = update_workspace_proposal_request_object
  command.response_representation = Google::Apis::TagmanagerV2::WorkspaceProposal::Representation
  command.response_class = Google::Apis::TagmanagerV2::WorkspaceProposal
  command.params['path'] = path unless path.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_account_container_workspace_tag(path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2193

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

#update_account_container_workspace_trigger(path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2424

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

#update_account_container_workspace_variable(path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: 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)

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2655

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

#update_account_user_permission(path, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: 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)

    Selector specifying which fields to include in a partial response.

  • quota_user (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. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2843

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