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

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

Overview

Tag Manager API

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

Examples:

require 'google/apis/tagmanager_v2'

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

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTagManagerService

Returns a new instance of TagManagerService.



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

def initialize
  super('https://tagmanager.googleapis.com/', '')
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString

Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Returns:

  • (String)

    API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.



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.

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.



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

def quota_user
  @quota_user
end

Instance Method Details

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

Creates a Container.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



168
169
170
171
172
173
174
175
176
177
178
# File 'generated/google/apis/tagmanager_v2/service.rb', line 168

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

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

Creates a GTM Environment.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



333
334
335
336
337
338
339
340
341
342
343
# File 'generated/google/apis/tagmanager_v2/service.rb', line 333

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

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

Creates a Workspace.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



832
833
834
835
836
837
838
839
840
841
842
# File 'generated/google/apis/tagmanager_v2/service.rb', line 832

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

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

Creates one or more GTM Built-In Variables.

Parameters:

  • parent (String)

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

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

    The types of built-in variables to enable.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1167

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

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

Creates a GTM Folder.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Creates a GTM Tag.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Creates a GTM Custom Template.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1777

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

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

Creates a GTM Trigger.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1978

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

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

Creates a GTM Variable.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

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

Parameters:

  • path (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



868
869
870
871
872
873
874
875
876
877
878
# File 'generated/google/apis/tagmanager_v2/service.rb', line 868

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

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

Creates a GTM Zone.

Parameters:

  • parent (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2380

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

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

Creates a user's Account & Container access.

Parameters:

  • parent (String)

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

  • user_permission_object (Google::Apis::TagmanagerV2::UserPermission) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2580

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

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

This method returns an undefined value.

Deletes a Container.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



201
202
203
204
205
206
207
# File 'generated/google/apis/tagmanager_v2/service.rb', line 201

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

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

This method returns an undefined value.

Deletes a GTM Environment.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



366
367
368
369
370
371
372
# File 'generated/google/apis/tagmanager_v2/service.rb', line 366

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

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

This method returns an undefined value.

Deletes a Container Version.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



600
601
602
603
604
605
606
# File 'generated/google/apis/tagmanager_v2/service.rb', line 600

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

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

This method returns an undefined value.

Deletes a Workspace.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



901
902
903
904
905
906
907
# File 'generated/google/apis/tagmanager_v2/service.rb', line 901

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

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

This method returns an undefined value.

Deletes one or more GTM Built-In Variables.

Parameters:

  • path (String)

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

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

    The types of built-in variables to delete.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1201
1202
1203
1204
1205
1206
1207
1208
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1201

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

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

This method returns an undefined value.

Deletes a GTM Folder.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

This method returns an undefined value.

Deletes a GTM Tag.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1609
1610
1611
1612
1613
1614
1615
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1609

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

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

This method returns an undefined value.

Deletes a GTM Template.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1810
1811
1812
1813
1814
1815
1816
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1810

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

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

This method returns an undefined value.

Deletes a GTM Trigger.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

This method returns an undefined value.

Deletes a GTM Variable.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2212
2213
2214
2215
2216
2217
2218
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2212

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

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

This method returns an undefined value.

Deletes a GTM Zone.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2413
2414
2415
2416
2417
2418
2419
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2413

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

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

This method returns an undefined value.

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

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

List all entities in a GTM Folder.

Parameters:

  • path (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Gets a GTM Account.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Gets a Container.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Gets a GTM Environment.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



395
396
397
398
399
400
401
402
403
# File 'generated/google/apis/tagmanager_v2/service.rb', line 395

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

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

Gets a Container Version.

Parameters:

  • path (String)

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

  • container_version_id (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



632
633
634
635
636
637
638
639
640
641
# File 'generated/google/apis/tagmanager_v2/service.rb', line 632

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

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

Gets a Workspace.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



930
931
932
933
934
935
936
937
938
# File 'generated/google/apis/tagmanager_v2/service.rb', line 930

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

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

Gets a GTM Folder.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1396
1397
1398
1399
1400
1401
1402
1403
1404
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1396

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

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

Finds conflicting and modified entities in the workspace.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Gets a GTM Tag.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1638
1639
1640
1641
1642
1643
1644
1645
1646
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1638

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

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

Gets a GTM Template.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1839
1840
1841
1842
1843
1844
1845
1846
1847
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1839

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

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

Gets a GTM Trigger.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Gets a GTM Variable.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2241
2242
2243
2244
2245
2246
2247
2248
2249
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2241

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

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

Gets a GTM Zone.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2442
2443
2444
2445
2446
2447
2448
2449
2450
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2442

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

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

Gets a user's Account & Container access.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Gets the latest container version header

Parameters:

  • parent (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



532
533
534
535
536
537
538
539
540
# File 'generated/google/apis/tagmanager_v2/service.rb', line 532

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

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

Lists all GTM Environments of a GTM Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



428
429
430
431
432
433
434
435
436
437
# File 'generated/google/apis/tagmanager_v2/service.rb', line 428

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

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

Lists all Container Versions of a GTM Container.

Parameters:

  • parent (String)

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

  • include_deleted (Boolean) (defaults to: nil)

    Also retrieve deleted (archived) versions when true.

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



567
568
569
570
571
572
573
574
575
576
577
# File 'generated/google/apis/tagmanager_v2/service.rb', line 567

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

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

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

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1233

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

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

Lists all GTM Folders of a Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1429

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

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

Lists all GTM Tags of a Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Lists all GTM Templates of a GTM container workspace.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1872

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

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

Lists all GTM Triggers of a Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Lists all GTM Variables of a Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2274

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

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

Lists all GTM Zones of a GTM container workspace.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2475

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

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

Lists all Workspaces that belong to a GTM Container.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



994
995
996
997
998
999
1000
1001
1002
1003
# File 'generated/google/apis/tagmanager_v2/service.rb', line 994

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

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

Lists all Containers that belongs to a GTM Account.

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



262
263
264
265
266
267
268
269
270
271
# File 'generated/google/apis/tagmanager_v2/service.rb', line 262

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

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

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

Parameters:

  • parent (String)

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

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Lists all GTM Accounts that a user has access to.

Parameters:

  • page_token (String) (defaults to: nil)

    Continuation token for fetching the next page of results.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

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

Parameters:

  • parent (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



664
665
666
667
668
669
670
671
672
# File 'generated/google/apis/tagmanager_v2/service.rb', line 664

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

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

This method returns an undefined value.

Moves entities to a GTM Folder.

Parameters:

  • path (String)

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

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

    The tags to be moved to the folder.

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

    The triggers to be moved to the folder.

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

    The variables to be moved to the folder.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Publishes a Container Version.

Parameters:

  • path (String)

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

  • fingerprint (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

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

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1027
1028
1029
1030
1031
1032
1033
1034
1035
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1027

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

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

Re-generates the authorization code for a GTM Environment.

Parameters:

  • path (String)

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

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



461
462
463
464
465
466
467
468
469
470
471
# File 'generated/google/apis/tagmanager_v2/service.rb', line 461

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

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

This method returns an undefined value.

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

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1063

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

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

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

Parameters:

  • path (String)

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

  • type (String) (defaults to: nil)

    The type of built-in variable to revert.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1267

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

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

Reverts changes to a GTM Folder in a GTM Workspace.

Parameters:

  • path (String)

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

  • fingerprint (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1505

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

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

Reverts changes to a GTM Tag in a GTM Workspace.

Parameters:

  • path (String)

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

  • fingerprint (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1706

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

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

Reverts changes to a GTM Template in a GTM Workspace.

Parameters:

  • path (String)

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

  • fingerprint (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1907

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

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

Reverts changes to a GTM Trigger in a GTM Workspace.

Parameters:

  • path (String)

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

  • fingerprint (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Reverts changes to a GTM Variable in a GTM Workspace.

Parameters:

  • path (String)

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

  • fingerprint (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2309

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

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

Reverts changes to a GTM Zone in a GTM Workspace.

Parameters:

  • path (String)

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

  • fingerprint (String) (defaults to: nil)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2510

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

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

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

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

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

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1096
1097
1098
1099
1100
1101
1102
1103
1104
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1096

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

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

Undeletes a Container Version.

Parameters:

  • path (String)

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



762
763
764
765
766
767
768
769
770
# File 'generated/google/apis/tagmanager_v2/service.rb', line 762

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

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

Updates a GTM Account.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



134
135
136
137
138
139
140
141
142
143
144
145
# File 'generated/google/apis/tagmanager_v2/service.rb', line 134

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

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

Updates a Container.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



298
299
300
301
302
303
304
305
306
307
308
309
# File 'generated/google/apis/tagmanager_v2/service.rb', line 298

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

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

Updates a GTM Environment.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



498
499
500
501
502
503
504
505
506
507
508
509
# File 'generated/google/apis/tagmanager_v2/service.rb', line 498

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

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

Updates a Container Version.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



797
798
799
800
801
802
803
804
805
806
807
808
# File 'generated/google/apis/tagmanager_v2/service.rb', line 797

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

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

Updates a Workspace.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1131

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

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

Updates a GTM Folder.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1541

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

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

Updates a GTM Tag.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1742

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

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

Updates a GTM Template.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
# File 'generated/google/apis/tagmanager_v2/service.rb', line 1943

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

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

Updates a GTM Trigger.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Updates a GTM Variable.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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

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

Updates a GTM Zone.

Parameters:

  • path (String)

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

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

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

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
# File 'generated/google/apis/tagmanager_v2/service.rb', line 2546

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

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

Updates a user's Account & Container access.

Parameters:

  • path (String)

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

  • user_permission_object (Google::Apis::TagmanagerV2::UserPermission) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

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

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

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

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

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



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

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