google-apis-tagmanager_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2732 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module TagmanagerV2
23
+ # Tag Manager API
24
+ #
25
+ # This API allows clients to access and modify container and tag configuration.
26
+ #
27
+ # @example
28
+ # require 'google/apis/tagmanager_v2'
29
+ #
30
+ # Tagmanager = Google::Apis::TagmanagerV2 # Alias the module
31
+ # service = Tagmanager::TagManagerService.new
32
+ #
33
+ # @see https://developers.google.com/tag-manager
34
+ class TagManagerService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://tagmanager.googleapis.com/', '',
47
+ client_name: 'google-apis-tagmanager_v2',
48
+ client_version: Google::Apis::TagmanagerV2::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Gets a GTM Account.
53
+ # @param [String] path
54
+ # GTM Accounts's API relative path. Example: accounts/`account_id`
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::TagmanagerV2::Account] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::TagmanagerV2::Account]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_account(path, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
74
+ command.response_representation = Google::Apis::TagmanagerV2::Account::Representation
75
+ command.response_class = Google::Apis::TagmanagerV2::Account
76
+ command.params['path'] = path unless path.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Lists all GTM Accounts that a user has access to.
83
+ # @param [String] page_token
84
+ # Continuation token for fetching the next page of results.
85
+ # @param [String] fields
86
+ # Selector specifying which fields to include in a partial response.
87
+ # @param [String] quota_user
88
+ # Available to use for quota purposes for server-side applications. Can be any
89
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ # @param [Google::Apis::RequestOptions] options
91
+ # Request-specific options
92
+ #
93
+ # @yield [result, err] Result & error if block supplied
94
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListAccountsResponse] parsed result object
95
+ # @yieldparam err [StandardError] error object if request failed
96
+ #
97
+ # @return [Google::Apis::TagmanagerV2::ListAccountsResponse]
98
+ #
99
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
102
+ def list_accounts(page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
103
+ command = make_simple_command(:get, 'tagmanager/v2/accounts', options)
104
+ command.response_representation = Google::Apis::TagmanagerV2::ListAccountsResponse::Representation
105
+ command.response_class = Google::Apis::TagmanagerV2::ListAccountsResponse
106
+ command.query['pageToken'] = page_token unless page_token.nil?
107
+ command.query['fields'] = fields unless fields.nil?
108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
109
+ execute_or_queue_command(command, &block)
110
+ end
111
+
112
+ # Updates a GTM Account.
113
+ # @param [String] path
114
+ # GTM Accounts's API relative path. Example: accounts/`account_id`
115
+ # @param [Google::Apis::TagmanagerV2::Account] account_object
116
+ # @param [String] fingerprint
117
+ # When provided, this fingerprint must match the fingerprint of the account in
118
+ # storage.
119
+ # @param [String] fields
120
+ # Selector specifying which fields to include in a partial response.
121
+ # @param [String] quota_user
122
+ # Available to use for quota purposes for server-side applications. Can be any
123
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
124
+ # @param [Google::Apis::RequestOptions] options
125
+ # Request-specific options
126
+ #
127
+ # @yield [result, err] Result & error if block supplied
128
+ # @yieldparam result [Google::Apis::TagmanagerV2::Account] parsed result object
129
+ # @yieldparam err [StandardError] error object if request failed
130
+ #
131
+ # @return [Google::Apis::TagmanagerV2::Account]
132
+ #
133
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
134
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
135
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
136
+ def update_account(path, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
137
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
138
+ command.request_representation = Google::Apis::TagmanagerV2::Account::Representation
139
+ command.request_object = account_object
140
+ command.response_representation = Google::Apis::TagmanagerV2::Account::Representation
141
+ command.response_class = Google::Apis::TagmanagerV2::Account
142
+ command.params['path'] = path unless path.nil?
143
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
144
+ command.query['fields'] = fields unless fields.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ execute_or_queue_command(command, &block)
147
+ end
148
+
149
+ # Creates a Container.
150
+ # @param [String] parent
151
+ # GTM Account's API relative path. Example: accounts/`account_id`.
152
+ # @param [Google::Apis::TagmanagerV2::Container] container_object
153
+ # @param [String] fields
154
+ # Selector specifying which fields to include in a partial response.
155
+ # @param [String] quota_user
156
+ # Available to use for quota purposes for server-side applications. Can be any
157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
158
+ # @param [Google::Apis::RequestOptions] options
159
+ # Request-specific options
160
+ #
161
+ # @yield [result, err] Result & error if block supplied
162
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
163
+ # @yieldparam err [StandardError] error object if request failed
164
+ #
165
+ # @return [Google::Apis::TagmanagerV2::Container]
166
+ #
167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
170
+ def create_account_container(parent, container_object = nil, fields: nil, quota_user: nil, options: nil, &block)
171
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/containers', options)
172
+ command.request_representation = Google::Apis::TagmanagerV2::Container::Representation
173
+ command.request_object = container_object
174
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
175
+ command.response_class = Google::Apis::TagmanagerV2::Container
176
+ command.params['parent'] = parent unless parent.nil?
177
+ command.query['fields'] = fields unless fields.nil?
178
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
179
+ execute_or_queue_command(command, &block)
180
+ end
181
+
182
+ # Deletes a Container.
183
+ # @param [String] path
184
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
185
+ # container_id`
186
+ # @param [String] fields
187
+ # Selector specifying which fields to include in a partial response.
188
+ # @param [String] quota_user
189
+ # Available to use for quota purposes for server-side applications. Can be any
190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [Google::Apis::RequestOptions] options
192
+ # Request-specific options
193
+ #
194
+ # @yield [result, err] Result & error if block supplied
195
+ # @yieldparam result [NilClass] No result returned for this method
196
+ # @yieldparam err [StandardError] error object if request failed
197
+ #
198
+ # @return [void]
199
+ #
200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
203
+ def delete_account_container(path, fields: nil, quota_user: nil, options: nil, &block)
204
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
205
+ command.params['path'] = path unless path.nil?
206
+ command.query['fields'] = fields unless fields.nil?
207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
208
+ execute_or_queue_command(command, &block)
209
+ end
210
+
211
+ # Gets a Container.
212
+ # @param [String] path
213
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
214
+ # container_id`
215
+ # @param [String] fields
216
+ # Selector specifying which fields to include in a partial response.
217
+ # @param [String] quota_user
218
+ # Available to use for quota purposes for server-side applications. Can be any
219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
220
+ # @param [Google::Apis::RequestOptions] options
221
+ # Request-specific options
222
+ #
223
+ # @yield [result, err] Result & error if block supplied
224
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
225
+ # @yieldparam err [StandardError] error object if request failed
226
+ #
227
+ # @return [Google::Apis::TagmanagerV2::Container]
228
+ #
229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
232
+ def get_account_container(path, fields: nil, quota_user: nil, options: nil, &block)
233
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
234
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
235
+ command.response_class = Google::Apis::TagmanagerV2::Container
236
+ command.params['path'] = path unless path.nil?
237
+ command.query['fields'] = fields unless fields.nil?
238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ execute_or_queue_command(command, &block)
240
+ end
241
+
242
+ # Lists all Containers that belongs to a GTM Account.
243
+ # @param [String] parent
244
+ # GTM Accounts's API relative path. Example: accounts/`account_id`.
245
+ # @param [String] page_token
246
+ # Continuation token for fetching the next page of results.
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
249
+ # @param [String] quota_user
250
+ # Available to use for quota purposes for server-side applications. Can be any
251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListContainersResponse] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::TagmanagerV2::ListContainersResponse]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def list_account_containers(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/containers', options)
266
+ command.response_representation = Google::Apis::TagmanagerV2::ListContainersResponse::Representation
267
+ command.response_class = Google::Apis::TagmanagerV2::ListContainersResponse
268
+ command.params['parent'] = parent unless parent.nil?
269
+ command.query['pageToken'] = page_token unless page_token.nil?
270
+ command.query['fields'] = fields unless fields.nil?
271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
272
+ execute_or_queue_command(command, &block)
273
+ end
274
+
275
+ # Updates a Container.
276
+ # @param [String] path
277
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
278
+ # container_id`
279
+ # @param [Google::Apis::TagmanagerV2::Container] container_object
280
+ # @param [String] fingerprint
281
+ # When provided, this fingerprint must match the fingerprint of the container in
282
+ # storage.
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
+ # @param [String] quota_user
286
+ # Available to use for quota purposes for server-side applications. Can be any
287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
288
+ # @param [Google::Apis::RequestOptions] options
289
+ # Request-specific options
290
+ #
291
+ # @yield [result, err] Result & error if block supplied
292
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
293
+ # @yieldparam err [StandardError] error object if request failed
294
+ #
295
+ # @return [Google::Apis::TagmanagerV2::Container]
296
+ #
297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
300
+ def update_account_container(path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
301
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
302
+ command.request_representation = Google::Apis::TagmanagerV2::Container::Representation
303
+ command.request_object = container_object
304
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
305
+ command.response_class = Google::Apis::TagmanagerV2::Container
306
+ command.params['path'] = path unless path.nil?
307
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
308
+ command.query['fields'] = fields unless fields.nil?
309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Creates a GTM Environment.
314
+ # @param [String] parent
315
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
316
+ # container_id`
317
+ # @param [Google::Apis::TagmanagerV2::Environment] environment_object
318
+ # @param [String] fields
319
+ # Selector specifying which fields to include in a partial response.
320
+ # @param [String] quota_user
321
+ # Available to use for quota purposes for server-side applications. Can be any
322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
323
+ # @param [Google::Apis::RequestOptions] options
324
+ # Request-specific options
325
+ #
326
+ # @yield [result, err] Result & error if block supplied
327
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
328
+ # @yieldparam err [StandardError] error object if request failed
329
+ #
330
+ # @return [Google::Apis::TagmanagerV2::Environment]
331
+ #
332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
335
+ def create_account_container_environment(parent, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
336
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/environments', options)
337
+ command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
338
+ command.request_object = environment_object
339
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
340
+ command.response_class = Google::Apis::TagmanagerV2::Environment
341
+ command.params['parent'] = parent unless parent.nil?
342
+ command.query['fields'] = fields unless fields.nil?
343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
344
+ execute_or_queue_command(command, &block)
345
+ end
346
+
347
+ # Deletes a GTM Environment.
348
+ # @param [String] path
349
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
350
+ # `container_id`/environments/`environment_id`
351
+ # @param [String] fields
352
+ # Selector specifying which fields to include in a partial response.
353
+ # @param [String] quota_user
354
+ # Available to use for quota purposes for server-side applications. Can be any
355
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
356
+ # @param [Google::Apis::RequestOptions] options
357
+ # Request-specific options
358
+ #
359
+ # @yield [result, err] Result & error if block supplied
360
+ # @yieldparam result [NilClass] No result returned for this method
361
+ # @yieldparam err [StandardError] error object if request failed
362
+ #
363
+ # @return [void]
364
+ #
365
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
366
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
367
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
368
+ def delete_account_container_environment(path, fields: nil, quota_user: nil, options: nil, &block)
369
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
370
+ command.params['path'] = path unless path.nil?
371
+ command.query['fields'] = fields unless fields.nil?
372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
373
+ execute_or_queue_command(command, &block)
374
+ end
375
+
376
+ # Gets a GTM Environment.
377
+ # @param [String] path
378
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
379
+ # `container_id`/environments/`environment_id`
380
+ # @param [String] fields
381
+ # Selector specifying which fields to include in a partial response.
382
+ # @param [String] quota_user
383
+ # Available to use for quota purposes for server-side applications. Can be any
384
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
385
+ # @param [Google::Apis::RequestOptions] options
386
+ # Request-specific options
387
+ #
388
+ # @yield [result, err] Result & error if block supplied
389
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
390
+ # @yieldparam err [StandardError] error object if request failed
391
+ #
392
+ # @return [Google::Apis::TagmanagerV2::Environment]
393
+ #
394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
397
+ def get_account_container_environment(path, fields: nil, quota_user: nil, options: nil, &block)
398
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
399
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
400
+ command.response_class = Google::Apis::TagmanagerV2::Environment
401
+ command.params['path'] = path unless path.nil?
402
+ command.query['fields'] = fields unless fields.nil?
403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
404
+ execute_or_queue_command(command, &block)
405
+ end
406
+
407
+ # Lists all GTM Environments of a GTM Container.
408
+ # @param [String] parent
409
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
410
+ # container_id`
411
+ # @param [String] page_token
412
+ # Continuation token for fetching the next page of results.
413
+ # @param [String] fields
414
+ # Selector specifying which fields to include in a partial response.
415
+ # @param [String] quota_user
416
+ # Available to use for quota purposes for server-side applications. Can be any
417
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
418
+ # @param [Google::Apis::RequestOptions] options
419
+ # Request-specific options
420
+ #
421
+ # @yield [result, err] Result & error if block supplied
422
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListEnvironmentsResponse] parsed result object
423
+ # @yieldparam err [StandardError] error object if request failed
424
+ #
425
+ # @return [Google::Apis::TagmanagerV2::ListEnvironmentsResponse]
426
+ #
427
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
428
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
429
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
430
+ def list_account_container_environments(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
431
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/environments', options)
432
+ command.response_representation = Google::Apis::TagmanagerV2::ListEnvironmentsResponse::Representation
433
+ command.response_class = Google::Apis::TagmanagerV2::ListEnvironmentsResponse
434
+ command.params['parent'] = parent unless parent.nil?
435
+ command.query['pageToken'] = page_token unless page_token.nil?
436
+ command.query['fields'] = fields unless fields.nil?
437
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
438
+ execute_or_queue_command(command, &block)
439
+ end
440
+
441
+ # Re-generates the authorization code for a GTM Environment.
442
+ # @param [String] path
443
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
444
+ # `container_id`/environments/`environment_id`
445
+ # @param [Google::Apis::TagmanagerV2::Environment] environment_object
446
+ # @param [String] fields
447
+ # Selector specifying which fields to include in a partial response.
448
+ # @param [String] quota_user
449
+ # Available to use for quota purposes for server-side applications. Can be any
450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
451
+ # @param [Google::Apis::RequestOptions] options
452
+ # Request-specific options
453
+ #
454
+ # @yield [result, err] Result & error if block supplied
455
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
456
+ # @yieldparam err [StandardError] error object if request failed
457
+ #
458
+ # @return [Google::Apis::TagmanagerV2::Environment]
459
+ #
460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
463
+ def reauthorize_account_container_environment(path, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
464
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:reauthorize', options)
465
+ command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
466
+ command.request_object = environment_object
467
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
468
+ command.response_class = Google::Apis::TagmanagerV2::Environment
469
+ command.params['path'] = path unless path.nil?
470
+ command.query['fields'] = fields unless fields.nil?
471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
472
+ execute_or_queue_command(command, &block)
473
+ end
474
+
475
+ # Updates a GTM Environment.
476
+ # @param [String] path
477
+ # GTM Environment's API relative path. Example: accounts/`account_id`/containers/
478
+ # `container_id`/environments/`environment_id`
479
+ # @param [Google::Apis::TagmanagerV2::Environment] environment_object
480
+ # @param [String] fingerprint
481
+ # When provided, this fingerprint must match the fingerprint of the environment
482
+ # in storage.
483
+ # @param [String] fields
484
+ # Selector specifying which fields to include in a partial response.
485
+ # @param [String] quota_user
486
+ # Available to use for quota purposes for server-side applications. Can be any
487
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
488
+ # @param [Google::Apis::RequestOptions] options
489
+ # Request-specific options
490
+ #
491
+ # @yield [result, err] Result & error if block supplied
492
+ # @yieldparam result [Google::Apis::TagmanagerV2::Environment] parsed result object
493
+ # @yieldparam err [StandardError] error object if request failed
494
+ #
495
+ # @return [Google::Apis::TagmanagerV2::Environment]
496
+ #
497
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
498
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
499
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
500
+ def update_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
501
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
502
+ command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation
503
+ command.request_object = environment_object
504
+ command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation
505
+ command.response_class = Google::Apis::TagmanagerV2::Environment
506
+ command.params['path'] = path unless path.nil?
507
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
508
+ command.query['fields'] = fields unless fields.nil?
509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
+ execute_or_queue_command(command, &block)
511
+ end
512
+
513
+ # Gets the latest container version header
514
+ # @param [String] parent
515
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
516
+ # container_id`
517
+ # @param [String] fields
518
+ # Selector specifying which fields to include in a partial response.
519
+ # @param [String] quota_user
520
+ # Available to use for quota purposes for server-side applications. Can be any
521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
522
+ # @param [Google::Apis::RequestOptions] options
523
+ # Request-specific options
524
+ #
525
+ # @yield [result, err] Result & error if block supplied
526
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersionHeader] parsed result object
527
+ # @yieldparam err [StandardError] error object if request failed
528
+ #
529
+ # @return [Google::Apis::TagmanagerV2::ContainerVersionHeader]
530
+ #
531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
534
+ def latest_account_container_version_header(parent, fields: nil, quota_user: nil, options: nil, &block)
535
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/version_headers:latest', options)
536
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersionHeader::Representation
537
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersionHeader
538
+ command.params['parent'] = parent unless parent.nil?
539
+ command.query['fields'] = fields unless fields.nil?
540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
541
+ execute_or_queue_command(command, &block)
542
+ end
543
+
544
+ # Lists all Container Versions of a GTM Container.
545
+ # @param [String] parent
546
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
547
+ # container_id`
548
+ # @param [Boolean] include_deleted
549
+ # Also retrieve deleted (archived) versions when true.
550
+ # @param [String] page_token
551
+ # Continuation token for fetching the next page of results.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListContainerVersionsResponse] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::TagmanagerV2::ListContainerVersionsResponse]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def list_account_container_version_headers(parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/version_headers', options)
571
+ command.response_representation = Google::Apis::TagmanagerV2::ListContainerVersionsResponse::Representation
572
+ command.response_class = Google::Apis::TagmanagerV2::ListContainerVersionsResponse
573
+ command.params['parent'] = parent unless parent.nil?
574
+ command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
575
+ command.query['pageToken'] = page_token unless page_token.nil?
576
+ command.query['fields'] = fields unless fields.nil?
577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
578
+ execute_or_queue_command(command, &block)
579
+ end
580
+
581
+ # Deletes a Container Version.
582
+ # @param [String] path
583
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
584
+ # containers/`container_id`/versions/`version_id`
585
+ # @param [String] fields
586
+ # Selector specifying which fields to include in a partial response.
587
+ # @param [String] quota_user
588
+ # Available to use for quota purposes for server-side applications. Can be any
589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
590
+ # @param [Google::Apis::RequestOptions] options
591
+ # Request-specific options
592
+ #
593
+ # @yield [result, err] Result & error if block supplied
594
+ # @yieldparam result [NilClass] No result returned for this method
595
+ # @yieldparam err [StandardError] error object if request failed
596
+ #
597
+ # @return [void]
598
+ #
599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
602
+ def delete_account_container_version(path, fields: nil, quota_user: nil, options: nil, &block)
603
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
604
+ command.params['path'] = path unless path.nil?
605
+ command.query['fields'] = fields unless fields.nil?
606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
607
+ execute_or_queue_command(command, &block)
608
+ end
609
+
610
+ # Gets a Container Version.
611
+ # @param [String] path
612
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
613
+ # containers/`container_id`/versions/`version_id`
614
+ # @param [String] container_version_id
615
+ # The GTM ContainerVersion ID. Specify published to retrieve the currently
616
+ # published version.
617
+ # @param [String] fields
618
+ # Selector specifying which fields to include in a partial response.
619
+ # @param [String] quota_user
620
+ # Available to use for quota purposes for server-side applications. Can be any
621
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
622
+ # @param [Google::Apis::RequestOptions] options
623
+ # Request-specific options
624
+ #
625
+ # @yield [result, err] Result & error if block supplied
626
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
627
+ # @yieldparam err [StandardError] error object if request failed
628
+ #
629
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
630
+ #
631
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
632
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
633
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
634
+ def get_account_container_version(path, container_version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
635
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
636
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
637
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
638
+ command.params['path'] = path unless path.nil?
639
+ command.query['containerVersionId'] = container_version_id unless container_version_id.nil?
640
+ command.query['fields'] = fields unless fields.nil?
641
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
642
+ execute_or_queue_command(command, &block)
643
+ end
644
+
645
+ # Gets the live (i.e. published) container version
646
+ # @param [String] parent
647
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
648
+ # container_id`
649
+ # @param [String] fields
650
+ # Selector specifying which fields to include in a partial response.
651
+ # @param [String] quota_user
652
+ # Available to use for quota purposes for server-side applications. Can be any
653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
654
+ # @param [Google::Apis::RequestOptions] options
655
+ # Request-specific options
656
+ #
657
+ # @yield [result, err] Result & error if block supplied
658
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
659
+ # @yieldparam err [StandardError] error object if request failed
660
+ #
661
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
662
+ #
663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
666
+ def live_account_container_version(parent, fields: nil, quota_user: nil, options: nil, &block)
667
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/versions:live', options)
668
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
669
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
670
+ command.params['parent'] = parent unless parent.nil?
671
+ command.query['fields'] = fields unless fields.nil?
672
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
673
+ execute_or_queue_command(command, &block)
674
+ end
675
+
676
+ # Publishes a Container Version.
677
+ # @param [String] path
678
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
679
+ # containers/`container_id`/versions/`version_id`
680
+ # @param [String] fingerprint
681
+ # When provided, this fingerprint must match the fingerprint of the container
682
+ # version in storage.
683
+ # @param [String] fields
684
+ # Selector specifying which fields to include in a partial response.
685
+ # @param [String] quota_user
686
+ # Available to use for quota purposes for server-side applications. Can be any
687
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
688
+ # @param [Google::Apis::RequestOptions] options
689
+ # Request-specific options
690
+ #
691
+ # @yield [result, err] Result & error if block supplied
692
+ # @yieldparam result [Google::Apis::TagmanagerV2::PublishContainerVersionResponse] parsed result object
693
+ # @yieldparam err [StandardError] error object if request failed
694
+ #
695
+ # @return [Google::Apis::TagmanagerV2::PublishContainerVersionResponse]
696
+ #
697
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
698
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
699
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
700
+ def publish_account_container_version(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
701
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:publish', options)
702
+ command.response_representation = Google::Apis::TagmanagerV2::PublishContainerVersionResponse::Representation
703
+ command.response_class = Google::Apis::TagmanagerV2::PublishContainerVersionResponse
704
+ command.params['path'] = path unless path.nil?
705
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
706
+ command.query['fields'] = fields unless fields.nil?
707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
708
+ execute_or_queue_command(command, &block)
709
+ end
710
+
711
+ # Sets the latest version used for synchronization of workspaces when detecting
712
+ # conflicts and errors.
713
+ # @param [String] path
714
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
715
+ # containers/`container_id`/versions/`version_id`
716
+ # @param [String] fields
717
+ # Selector specifying which fields to include in a partial response.
718
+ # @param [String] quota_user
719
+ # Available to use for quota purposes for server-side applications. Can be any
720
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
721
+ # @param [Google::Apis::RequestOptions] options
722
+ # Request-specific options
723
+ #
724
+ # @yield [result, err] Result & error if block supplied
725
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
726
+ # @yieldparam err [StandardError] error object if request failed
727
+ #
728
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
729
+ #
730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
733
+ def set_account_container_version_latest(path, fields: nil, quota_user: nil, options: nil, &block)
734
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:set_latest', options)
735
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
736
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
737
+ command.params['path'] = path unless path.nil?
738
+ command.query['fields'] = fields unless fields.nil?
739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
740
+ execute_or_queue_command(command, &block)
741
+ end
742
+
743
+ # Undeletes a Container Version.
744
+ # @param [String] path
745
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
746
+ # containers/`container_id`/versions/`version_id`
747
+ # @param [String] fields
748
+ # Selector specifying which fields to include in a partial response.
749
+ # @param [String] quota_user
750
+ # Available to use for quota purposes for server-side applications. Can be any
751
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
752
+ # @param [Google::Apis::RequestOptions] options
753
+ # Request-specific options
754
+ #
755
+ # @yield [result, err] Result & error if block supplied
756
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
757
+ # @yieldparam err [StandardError] error object if request failed
758
+ #
759
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
760
+ #
761
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
762
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
763
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
764
+ def undelete_account_container_version(path, fields: nil, quota_user: nil, options: nil, &block)
765
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:undelete', options)
766
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
767
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
768
+ command.params['path'] = path unless path.nil?
769
+ command.query['fields'] = fields unless fields.nil?
770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
771
+ execute_or_queue_command(command, &block)
772
+ end
773
+
774
+ # Updates a Container Version.
775
+ # @param [String] path
776
+ # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/
777
+ # containers/`container_id`/versions/`version_id`
778
+ # @param [Google::Apis::TagmanagerV2::ContainerVersion] container_version_object
779
+ # @param [String] fingerprint
780
+ # When provided, this fingerprint must match the fingerprint of the container
781
+ # version in storage.
782
+ # @param [String] fields
783
+ # Selector specifying which fields to include in a partial response.
784
+ # @param [String] quota_user
785
+ # Available to use for quota purposes for server-side applications. Can be any
786
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
787
+ # @param [Google::Apis::RequestOptions] options
788
+ # Request-specific options
789
+ #
790
+ # @yield [result, err] Result & error if block supplied
791
+ # @yieldparam result [Google::Apis::TagmanagerV2::ContainerVersion] parsed result object
792
+ # @yieldparam err [StandardError] error object if request failed
793
+ #
794
+ # @return [Google::Apis::TagmanagerV2::ContainerVersion]
795
+ #
796
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
797
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
798
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
799
+ def update_account_container_version(path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
800
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
801
+ command.request_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
802
+ command.request_object = container_version_object
803
+ command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation
804
+ command.response_class = Google::Apis::TagmanagerV2::ContainerVersion
805
+ command.params['path'] = path unless path.nil?
806
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
807
+ command.query['fields'] = fields unless fields.nil?
808
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
809
+ execute_or_queue_command(command, &block)
810
+ end
811
+
812
+ # Creates a Workspace.
813
+ # @param [String] parent
814
+ # GTM parent Container's API relative path. Example: accounts/`account_id`/
815
+ # containers/`container_id`
816
+ # @param [Google::Apis::TagmanagerV2::Workspace] workspace_object
817
+ # @param [String] fields
818
+ # Selector specifying which fields to include in a partial response.
819
+ # @param [String] quota_user
820
+ # Available to use for quota purposes for server-side applications. Can be any
821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
822
+ # @param [Google::Apis::RequestOptions] options
823
+ # Request-specific options
824
+ #
825
+ # @yield [result, err] Result & error if block supplied
826
+ # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object
827
+ # @yieldparam err [StandardError] error object if request failed
828
+ #
829
+ # @return [Google::Apis::TagmanagerV2::Workspace]
830
+ #
831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
834
+ def create_account_container_workspace(parent, workspace_object = nil, fields: nil, quota_user: nil, options: nil, &block)
835
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/workspaces', options)
836
+ command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation
837
+ command.request_object = workspace_object
838
+ command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
839
+ command.response_class = Google::Apis::TagmanagerV2::Workspace
840
+ command.params['parent'] = parent unless parent.nil?
841
+ command.query['fields'] = fields unless fields.nil?
842
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
843
+ execute_or_queue_command(command, &block)
844
+ end
845
+
846
+ # Creates a Container Version from the entities present in the workspace,
847
+ # deletes the workspace, and sets the base container version to the newly
848
+ # created version.
849
+ # @param [String] path
850
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
851
+ # container_id`/workspaces/`workspace_id`
852
+ # @param [Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions] create_container_version_request_version_options_object
853
+ # @param [String] fields
854
+ # Selector specifying which fields to include in a partial response.
855
+ # @param [String] quota_user
856
+ # Available to use for quota purposes for server-side applications. Can be any
857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
858
+ # @param [Google::Apis::RequestOptions] options
859
+ # Request-specific options
860
+ #
861
+ # @yield [result, err] Result & error if block supplied
862
+ # @yieldparam result [Google::Apis::TagmanagerV2::CreateContainerVersionResponse] parsed result object
863
+ # @yieldparam err [StandardError] error object if request failed
864
+ #
865
+ # @return [Google::Apis::TagmanagerV2::CreateContainerVersionResponse]
866
+ #
867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
870
+ def create_account_container_workspace_version(path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil, &block)
871
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:create_version', options)
872
+ command.request_representation = Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions::Representation
873
+ command.request_object = create_container_version_request_version_options_object
874
+ command.response_representation = Google::Apis::TagmanagerV2::CreateContainerVersionResponse::Representation
875
+ command.response_class = Google::Apis::TagmanagerV2::CreateContainerVersionResponse
876
+ command.params['path'] = path unless path.nil?
877
+ command.query['fields'] = fields unless fields.nil?
878
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
879
+ execute_or_queue_command(command, &block)
880
+ end
881
+
882
+ # Deletes a Workspace.
883
+ # @param [String] path
884
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
885
+ # container_id`/workspaces/`workspace_id`
886
+ # @param [String] fields
887
+ # Selector specifying which fields to include in a partial response.
888
+ # @param [String] quota_user
889
+ # Available to use for quota purposes for server-side applications. Can be any
890
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
891
+ # @param [Google::Apis::RequestOptions] options
892
+ # Request-specific options
893
+ #
894
+ # @yield [result, err] Result & error if block supplied
895
+ # @yieldparam result [NilClass] No result returned for this method
896
+ # @yieldparam err [StandardError] error object if request failed
897
+ #
898
+ # @return [void]
899
+ #
900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
903
+ def delete_account_container_workspace(path, fields: nil, quota_user: nil, options: nil, &block)
904
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
905
+ command.params['path'] = path unless path.nil?
906
+ command.query['fields'] = fields unless fields.nil?
907
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
908
+ execute_or_queue_command(command, &block)
909
+ end
910
+
911
+ # Gets a Workspace.
912
+ # @param [String] path
913
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
914
+ # container_id`/workspaces/`workspace_id`
915
+ # @param [String] fields
916
+ # Selector specifying which fields to include in a partial response.
917
+ # @param [String] quota_user
918
+ # Available to use for quota purposes for server-side applications. Can be any
919
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
920
+ # @param [Google::Apis::RequestOptions] options
921
+ # Request-specific options
922
+ #
923
+ # @yield [result, err] Result & error if block supplied
924
+ # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object
925
+ # @yieldparam err [StandardError] error object if request failed
926
+ #
927
+ # @return [Google::Apis::TagmanagerV2::Workspace]
928
+ #
929
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
930
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
931
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
932
+ def get_account_container_workspace(path, fields: nil, quota_user: nil, options: nil, &block)
933
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
934
+ command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
935
+ command.response_class = Google::Apis::TagmanagerV2::Workspace
936
+ command.params['path'] = path unless path.nil?
937
+ command.query['fields'] = fields unless fields.nil?
938
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
939
+ execute_or_queue_command(command, &block)
940
+ end
941
+
942
+ # Finds conflicting and modified entities in the workspace.
943
+ # @param [String] path
944
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
945
+ # container_id`/workspaces/`workspace_id`
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
+ # @param [String] quota_user
949
+ # Available to use for quota purposes for server-side applications. Can be any
950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
951
+ # @param [Google::Apis::RequestOptions] options
952
+ # Request-specific options
953
+ #
954
+ # @yield [result, err] Result & error if block supplied
955
+ # @yieldparam result [Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse] parsed result object
956
+ # @yieldparam err [StandardError] error object if request failed
957
+ #
958
+ # @return [Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse]
959
+ #
960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
963
+ def get_account_container_workspace_status(path, fields: nil, quota_user: nil, options: nil, &block)
964
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}/status', options)
965
+ command.response_representation = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse::Representation
966
+ command.response_class = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse
967
+ command.params['path'] = path unless path.nil?
968
+ command.query['fields'] = fields unless fields.nil?
969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
970
+ execute_or_queue_command(command, &block)
971
+ end
972
+
973
+ # Lists all Workspaces that belong to a GTM Container.
974
+ # @param [String] parent
975
+ # GTM parent Container's API relative path. Example: accounts/`account_id`/
976
+ # containers/`container_id`
977
+ # @param [String] page_token
978
+ # Continuation token for fetching the next page of results.
979
+ # @param [String] fields
980
+ # Selector specifying which fields to include in a partial response.
981
+ # @param [String] quota_user
982
+ # Available to use for quota purposes for server-side applications. Can be any
983
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
984
+ # @param [Google::Apis::RequestOptions] options
985
+ # Request-specific options
986
+ #
987
+ # @yield [result, err] Result & error if block supplied
988
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListWorkspacesResponse] parsed result object
989
+ # @yieldparam err [StandardError] error object if request failed
990
+ #
991
+ # @return [Google::Apis::TagmanagerV2::ListWorkspacesResponse]
992
+ #
993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
996
+ def list_account_container_workspaces(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
997
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/workspaces', options)
998
+ command.response_representation = Google::Apis::TagmanagerV2::ListWorkspacesResponse::Representation
999
+ command.response_class = Google::Apis::TagmanagerV2::ListWorkspacesResponse
1000
+ command.params['parent'] = parent unless parent.nil?
1001
+ command.query['pageToken'] = page_token unless page_token.nil?
1002
+ command.query['fields'] = fields unless fields.nil?
1003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1004
+ execute_or_queue_command(command, &block)
1005
+ end
1006
+
1007
+ # Quick previews a workspace by creating a fake container version from all
1008
+ # entities in the provided workspace.
1009
+ # @param [String] path
1010
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1011
+ # container_id`/workspaces/`workspace_id`
1012
+ # @param [String] fields
1013
+ # Selector specifying which fields to include in a partial response.
1014
+ # @param [String] quota_user
1015
+ # Available to use for quota purposes for server-side applications. Can be any
1016
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1017
+ # @param [Google::Apis::RequestOptions] options
1018
+ # Request-specific options
1019
+ #
1020
+ # @yield [result, err] Result & error if block supplied
1021
+ # @yieldparam result [Google::Apis::TagmanagerV2::QuickPreviewResponse] parsed result object
1022
+ # @yieldparam err [StandardError] error object if request failed
1023
+ #
1024
+ # @return [Google::Apis::TagmanagerV2::QuickPreviewResponse]
1025
+ #
1026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1029
+ def quick_account_container_workspace_preview(path, fields: nil, quota_user: nil, options: nil, &block)
1030
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:quick_preview', options)
1031
+ command.response_representation = Google::Apis::TagmanagerV2::QuickPreviewResponse::Representation
1032
+ command.response_class = Google::Apis::TagmanagerV2::QuickPreviewResponse
1033
+ command.params['path'] = path unless path.nil?
1034
+ command.query['fields'] = fields unless fields.nil?
1035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1036
+ execute_or_queue_command(command, &block)
1037
+ end
1038
+
1039
+ # Resolves a merge conflict for a workspace entity by updating it to the
1040
+ # resolved entity passed in the request.
1041
+ # @param [String] path
1042
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1043
+ # container_id`/workspaces/`workspace_id`
1044
+ # @param [Google::Apis::TagmanagerV2::Entity] entity_object
1045
+ # @param [String] fingerprint
1046
+ # When provided, this fingerprint must match the fingerprint of the
1047
+ # entity_in_workspace in the merge conflict.
1048
+ # @param [String] fields
1049
+ # Selector specifying which fields to include in a partial response.
1050
+ # @param [String] quota_user
1051
+ # Available to use for quota purposes for server-side applications. Can be any
1052
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1053
+ # @param [Google::Apis::RequestOptions] options
1054
+ # Request-specific options
1055
+ #
1056
+ # @yield [result, err] Result & error if block supplied
1057
+ # @yieldparam result [NilClass] No result returned for this method
1058
+ # @yieldparam err [StandardError] error object if request failed
1059
+ #
1060
+ # @return [void]
1061
+ #
1062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1065
+ def resolve_account_container_workspace_conflict(path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1066
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:resolve_conflict', options)
1067
+ command.request_representation = Google::Apis::TagmanagerV2::Entity::Representation
1068
+ command.request_object = entity_object
1069
+ command.params['path'] = path unless path.nil?
1070
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1071
+ command.query['fields'] = fields unless fields.nil?
1072
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1073
+ execute_or_queue_command(command, &block)
1074
+ end
1075
+
1076
+ # Syncs a workspace to the latest container version by updating all unmodified
1077
+ # workspace entities and displaying conflicts for modified entities.
1078
+ # @param [String] path
1079
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1080
+ # container_id`/workspaces/`workspace_id`
1081
+ # @param [String] fields
1082
+ # Selector specifying which fields to include in a partial response.
1083
+ # @param [String] quota_user
1084
+ # Available to use for quota purposes for server-side applications. Can be any
1085
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1086
+ # @param [Google::Apis::RequestOptions] options
1087
+ # Request-specific options
1088
+ #
1089
+ # @yield [result, err] Result & error if block supplied
1090
+ # @yieldparam result [Google::Apis::TagmanagerV2::SyncWorkspaceResponse] parsed result object
1091
+ # @yieldparam err [StandardError] error object if request failed
1092
+ #
1093
+ # @return [Google::Apis::TagmanagerV2::SyncWorkspaceResponse]
1094
+ #
1095
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1096
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1097
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1098
+ def sync_account_container_workspace(path, fields: nil, quota_user: nil, options: nil, &block)
1099
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:sync', options)
1100
+ command.response_representation = Google::Apis::TagmanagerV2::SyncWorkspaceResponse::Representation
1101
+ command.response_class = Google::Apis::TagmanagerV2::SyncWorkspaceResponse
1102
+ command.params['path'] = path unless path.nil?
1103
+ command.query['fields'] = fields unless fields.nil?
1104
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1105
+ execute_or_queue_command(command, &block)
1106
+ end
1107
+
1108
+ # Updates a Workspace.
1109
+ # @param [String] path
1110
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1111
+ # container_id`/workspaces/`workspace_id`
1112
+ # @param [Google::Apis::TagmanagerV2::Workspace] workspace_object
1113
+ # @param [String] fingerprint
1114
+ # When provided, this fingerprint must match the fingerprint of the workspace in
1115
+ # storage.
1116
+ # @param [String] fields
1117
+ # Selector specifying which fields to include in a partial response.
1118
+ # @param [String] quota_user
1119
+ # Available to use for quota purposes for server-side applications. Can be any
1120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1121
+ # @param [Google::Apis::RequestOptions] options
1122
+ # Request-specific options
1123
+ #
1124
+ # @yield [result, err] Result & error if block supplied
1125
+ # @yieldparam result [Google::Apis::TagmanagerV2::Workspace] parsed result object
1126
+ # @yieldparam err [StandardError] error object if request failed
1127
+ #
1128
+ # @return [Google::Apis::TagmanagerV2::Workspace]
1129
+ #
1130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1133
+ def update_account_container_workspace(path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1134
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
1135
+ command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation
1136
+ command.request_object = workspace_object
1137
+ command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation
1138
+ command.response_class = Google::Apis::TagmanagerV2::Workspace
1139
+ command.params['path'] = path unless path.nil?
1140
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1141
+ command.query['fields'] = fields unless fields.nil?
1142
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1143
+ execute_or_queue_command(command, &block)
1144
+ end
1145
+
1146
+ # Creates one or more GTM Built-In Variables.
1147
+ # @param [String] parent
1148
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1149
+ # container_id`/workspaces/`workspace_id`
1150
+ # @param [Array<String>, String] type
1151
+ # The types of built-in variables to enable.
1152
+ # @param [String] fields
1153
+ # Selector specifying which fields to include in a partial response.
1154
+ # @param [String] quota_user
1155
+ # Available to use for quota purposes for server-side applications. Can be any
1156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1157
+ # @param [Google::Apis::RequestOptions] options
1158
+ # Request-specific options
1159
+ #
1160
+ # @yield [result, err] Result & error if block supplied
1161
+ # @yieldparam result [Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse] parsed result object
1162
+ # @yieldparam err [StandardError] error object if request failed
1163
+ #
1164
+ # @return [Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse]
1165
+ #
1166
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1167
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1168
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1169
+ def create_account_container_workspace_built_in_variable(parent, type: nil, fields: nil, quota_user: nil, options: nil, &block)
1170
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/built_in_variables', options)
1171
+ command.response_representation = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse::Representation
1172
+ command.response_class = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse
1173
+ command.params['parent'] = parent unless parent.nil?
1174
+ command.query['type'] = type unless type.nil?
1175
+ command.query['fields'] = fields unless fields.nil?
1176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1177
+ execute_or_queue_command(command, &block)
1178
+ end
1179
+
1180
+ # Deletes one or more GTM Built-In Variables.
1181
+ # @param [String] path
1182
+ # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/
1183
+ # containers/`container_id`/workspaces/`workspace_id`/built_in_variables
1184
+ # @param [Array<String>, String] type
1185
+ # The types of built-in variables to delete.
1186
+ # @param [String] fields
1187
+ # Selector specifying which fields to include in a partial response.
1188
+ # @param [String] quota_user
1189
+ # Available to use for quota purposes for server-side applications. Can be any
1190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1191
+ # @param [Google::Apis::RequestOptions] options
1192
+ # Request-specific options
1193
+ #
1194
+ # @yield [result, err] Result & error if block supplied
1195
+ # @yieldparam result [NilClass] No result returned for this method
1196
+ # @yieldparam err [StandardError] error object if request failed
1197
+ #
1198
+ # @return [void]
1199
+ #
1200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1203
+ def delete_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, options: nil, &block)
1204
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
1205
+ command.params['path'] = path unless path.nil?
1206
+ command.query['type'] = type unless type.nil?
1207
+ command.query['fields'] = fields unless fields.nil?
1208
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1209
+ execute_or_queue_command(command, &block)
1210
+ end
1211
+
1212
+ # Lists all the enabled Built-In Variables of a GTM Container.
1213
+ # @param [String] parent
1214
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1215
+ # container_id`/workspaces/`workspace_id`
1216
+ # @param [String] page_token
1217
+ # Continuation token for fetching the next page of results.
1218
+ # @param [String] fields
1219
+ # Selector specifying which fields to include in a partial response.
1220
+ # @param [String] quota_user
1221
+ # Available to use for quota purposes for server-side applications. Can be any
1222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1223
+ # @param [Google::Apis::RequestOptions] options
1224
+ # Request-specific options
1225
+ #
1226
+ # @yield [result, err] Result & error if block supplied
1227
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse] parsed result object
1228
+ # @yieldparam err [StandardError] error object if request failed
1229
+ #
1230
+ # @return [Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse]
1231
+ #
1232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1235
+ def list_account_container_workspace_built_in_variables(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1236
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/built_in_variables', options)
1237
+ command.response_representation = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse::Representation
1238
+ command.response_class = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse
1239
+ command.params['parent'] = parent unless parent.nil?
1240
+ command.query['pageToken'] = page_token unless page_token.nil?
1241
+ command.query['fields'] = fields unless fields.nil?
1242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1243
+ execute_or_queue_command(command, &block)
1244
+ end
1245
+
1246
+ # Reverts changes to a GTM Built-In Variables in a GTM Workspace.
1247
+ # @param [String] path
1248
+ # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/
1249
+ # containers/`container_id`/workspaces/`workspace_id`/built_in_variables
1250
+ # @param [String] type
1251
+ # The type of built-in variable to revert.
1252
+ # @param [String] fields
1253
+ # Selector specifying which fields to include in a partial response.
1254
+ # @param [String] quota_user
1255
+ # Available to use for quota purposes for server-side applications. Can be any
1256
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1257
+ # @param [Google::Apis::RequestOptions] options
1258
+ # Request-specific options
1259
+ #
1260
+ # @yield [result, err] Result & error if block supplied
1261
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse] parsed result object
1262
+ # @yieldparam err [StandardError] error object if request failed
1263
+ #
1264
+ # @return [Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse]
1265
+ #
1266
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1267
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1268
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1269
+ def revert_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, options: nil, &block)
1270
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}/built_in_variables:revert', options)
1271
+ command.response_representation = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse::Representation
1272
+ command.response_class = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse
1273
+ command.params['path'] = path unless path.nil?
1274
+ command.query['type'] = type unless type.nil?
1275
+ command.query['fields'] = fields unless fields.nil?
1276
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1277
+ execute_or_queue_command(command, &block)
1278
+ end
1279
+
1280
+ # Creates a GTM Folder.
1281
+ # @param [String] parent
1282
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1283
+ # container_id`/workspaces/`workspace_id`
1284
+ # @param [Google::Apis::TagmanagerV2::Folder] folder_object
1285
+ # @param [String] fields
1286
+ # Selector specifying which fields to include in a partial response.
1287
+ # @param [String] quota_user
1288
+ # Available to use for quota purposes for server-side applications. Can be any
1289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1290
+ # @param [Google::Apis::RequestOptions] options
1291
+ # Request-specific options
1292
+ #
1293
+ # @yield [result, err] Result & error if block supplied
1294
+ # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object
1295
+ # @yieldparam err [StandardError] error object if request failed
1296
+ #
1297
+ # @return [Google::Apis::TagmanagerV2::Folder]
1298
+ #
1299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1302
+ def create_account_container_workspace_folder(parent, folder_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1303
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/folders', options)
1304
+ command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
1305
+ command.request_object = folder_object
1306
+ command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
1307
+ command.response_class = Google::Apis::TagmanagerV2::Folder
1308
+ command.params['parent'] = parent unless parent.nil?
1309
+ command.query['fields'] = fields unless fields.nil?
1310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1311
+ execute_or_queue_command(command, &block)
1312
+ end
1313
+
1314
+ # Deletes a GTM Folder.
1315
+ # @param [String] path
1316
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1317
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1318
+ # @param [String] fields
1319
+ # Selector specifying which fields to include in a partial response.
1320
+ # @param [String] quota_user
1321
+ # Available to use for quota purposes for server-side applications. Can be any
1322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1323
+ # @param [Google::Apis::RequestOptions] options
1324
+ # Request-specific options
1325
+ #
1326
+ # @yield [result, err] Result & error if block supplied
1327
+ # @yieldparam result [NilClass] No result returned for this method
1328
+ # @yieldparam err [StandardError] error object if request failed
1329
+ #
1330
+ # @return [void]
1331
+ #
1332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1335
+ def delete_account_container_workspace_folder(path, fields: nil, quota_user: nil, options: nil, &block)
1336
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
1337
+ command.params['path'] = path unless path.nil?
1338
+ command.query['fields'] = fields unless fields.nil?
1339
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1340
+ execute_or_queue_command(command, &block)
1341
+ end
1342
+
1343
+ # List all entities in a GTM Folder.
1344
+ # @param [String] path
1345
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1346
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1347
+ # @param [String] page_token
1348
+ # Continuation token for fetching the next page of results.
1349
+ # @param [String] fields
1350
+ # Selector specifying which fields to include in a partial response.
1351
+ # @param [String] quota_user
1352
+ # Available to use for quota purposes for server-side applications. Can be any
1353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1354
+ # @param [Google::Apis::RequestOptions] options
1355
+ # Request-specific options
1356
+ #
1357
+ # @yield [result, err] Result & error if block supplied
1358
+ # @yieldparam result [Google::Apis::TagmanagerV2::FolderEntities] parsed result object
1359
+ # @yieldparam err [StandardError] error object if request failed
1360
+ #
1361
+ # @return [Google::Apis::TagmanagerV2::FolderEntities]
1362
+ #
1363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1366
+ def entities_account_container_workspace_folder(path, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1367
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:entities', options)
1368
+ command.response_representation = Google::Apis::TagmanagerV2::FolderEntities::Representation
1369
+ command.response_class = Google::Apis::TagmanagerV2::FolderEntities
1370
+ command.params['path'] = path unless path.nil?
1371
+ command.query['pageToken'] = page_token unless page_token.nil?
1372
+ command.query['fields'] = fields unless fields.nil?
1373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1374
+ execute_or_queue_command(command, &block)
1375
+ end
1376
+
1377
+ # Gets a GTM Folder.
1378
+ # @param [String] path
1379
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1380
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1381
+ # @param [String] fields
1382
+ # Selector specifying which fields to include in a partial response.
1383
+ # @param [String] quota_user
1384
+ # Available to use for quota purposes for server-side applications. Can be any
1385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1386
+ # @param [Google::Apis::RequestOptions] options
1387
+ # Request-specific options
1388
+ #
1389
+ # @yield [result, err] Result & error if block supplied
1390
+ # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object
1391
+ # @yieldparam err [StandardError] error object if request failed
1392
+ #
1393
+ # @return [Google::Apis::TagmanagerV2::Folder]
1394
+ #
1395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1398
+ def get_account_container_workspace_folder(path, fields: nil, quota_user: nil, options: nil, &block)
1399
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
1400
+ command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
1401
+ command.response_class = Google::Apis::TagmanagerV2::Folder
1402
+ command.params['path'] = path unless path.nil?
1403
+ command.query['fields'] = fields unless fields.nil?
1404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1405
+ execute_or_queue_command(command, &block)
1406
+ end
1407
+
1408
+ # Lists all GTM Folders of a Container.
1409
+ # @param [String] parent
1410
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1411
+ # container_id`/workspaces/`workspace_id`
1412
+ # @param [String] page_token
1413
+ # Continuation token for fetching the next page of results.
1414
+ # @param [String] fields
1415
+ # Selector specifying which fields to include in a partial response.
1416
+ # @param [String] quota_user
1417
+ # Available to use for quota purposes for server-side applications. Can be any
1418
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1419
+ # @param [Google::Apis::RequestOptions] options
1420
+ # Request-specific options
1421
+ #
1422
+ # @yield [result, err] Result & error if block supplied
1423
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListFoldersResponse] parsed result object
1424
+ # @yieldparam err [StandardError] error object if request failed
1425
+ #
1426
+ # @return [Google::Apis::TagmanagerV2::ListFoldersResponse]
1427
+ #
1428
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1429
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1430
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1431
+ def list_account_container_workspace_folders(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1432
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/folders', options)
1433
+ command.response_representation = Google::Apis::TagmanagerV2::ListFoldersResponse::Representation
1434
+ command.response_class = Google::Apis::TagmanagerV2::ListFoldersResponse
1435
+ command.params['parent'] = parent unless parent.nil?
1436
+ command.query['pageToken'] = page_token unless page_token.nil?
1437
+ command.query['fields'] = fields unless fields.nil?
1438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1439
+ execute_or_queue_command(command, &block)
1440
+ end
1441
+
1442
+ # Moves entities to a GTM Folder.
1443
+ # @param [String] path
1444
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1445
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1446
+ # @param [Google::Apis::TagmanagerV2::Folder] folder_object
1447
+ # @param [Array<String>, String] tag_id
1448
+ # The tags to be moved to the folder.
1449
+ # @param [Array<String>, String] trigger_id
1450
+ # The triggers to be moved to the folder.
1451
+ # @param [Array<String>, String] variable_id
1452
+ # The variables to be moved to the folder.
1453
+ # @param [String] fields
1454
+ # Selector specifying which fields to include in a partial response.
1455
+ # @param [String] quota_user
1456
+ # Available to use for quota purposes for server-side applications. Can be any
1457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1458
+ # @param [Google::Apis::RequestOptions] options
1459
+ # Request-specific options
1460
+ #
1461
+ # @yield [result, err] Result & error if block supplied
1462
+ # @yieldparam result [NilClass] No result returned for this method
1463
+ # @yieldparam err [StandardError] error object if request failed
1464
+ #
1465
+ # @return [void]
1466
+ #
1467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1470
+ def move_account_container_workspace_folder_entities_to_folder(path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1471
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:move_entities_to_folder', options)
1472
+ command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
1473
+ command.request_object = folder_object
1474
+ command.params['path'] = path unless path.nil?
1475
+ command.query['tagId'] = tag_id unless tag_id.nil?
1476
+ command.query['triggerId'] = trigger_id unless trigger_id.nil?
1477
+ command.query['variableId'] = variable_id unless variable_id.nil?
1478
+ command.query['fields'] = fields unless fields.nil?
1479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1480
+ execute_or_queue_command(command, &block)
1481
+ end
1482
+
1483
+ # Reverts changes to a GTM Folder in a GTM Workspace.
1484
+ # @param [String] path
1485
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1486
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1487
+ # @param [String] fingerprint
1488
+ # When provided, this fingerprint must match the fingerprint of the tag in
1489
+ # storage.
1490
+ # @param [String] fields
1491
+ # Selector specifying which fields to include in a partial response.
1492
+ # @param [String] quota_user
1493
+ # Available to use for quota purposes for server-side applications. Can be any
1494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1495
+ # @param [Google::Apis::RequestOptions] options
1496
+ # Request-specific options
1497
+ #
1498
+ # @yield [result, err] Result & error if block supplied
1499
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertFolderResponse] parsed result object
1500
+ # @yieldparam err [StandardError] error object if request failed
1501
+ #
1502
+ # @return [Google::Apis::TagmanagerV2::RevertFolderResponse]
1503
+ #
1504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1507
+ def revert_account_container_workspace_folder(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1508
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
1509
+ command.response_representation = Google::Apis::TagmanagerV2::RevertFolderResponse::Representation
1510
+ command.response_class = Google::Apis::TagmanagerV2::RevertFolderResponse
1511
+ command.params['path'] = path unless path.nil?
1512
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1513
+ command.query['fields'] = fields unless fields.nil?
1514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1515
+ execute_or_queue_command(command, &block)
1516
+ end
1517
+
1518
+ # Updates a GTM Folder.
1519
+ # @param [String] path
1520
+ # GTM Folder's API relative path. Example: accounts/`account_id`/containers/`
1521
+ # container_id`/workspaces/`workspace_id`/folders/`folder_id`
1522
+ # @param [Google::Apis::TagmanagerV2::Folder] folder_object
1523
+ # @param [String] fingerprint
1524
+ # When provided, this fingerprint must match the fingerprint of the folder in
1525
+ # storage.
1526
+ # @param [String] fields
1527
+ # Selector specifying which fields to include in a partial response.
1528
+ # @param [String] quota_user
1529
+ # Available to use for quota purposes for server-side applications. Can be any
1530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1531
+ # @param [Google::Apis::RequestOptions] options
1532
+ # Request-specific options
1533
+ #
1534
+ # @yield [result, err] Result & error if block supplied
1535
+ # @yieldparam result [Google::Apis::TagmanagerV2::Folder] parsed result object
1536
+ # @yieldparam err [StandardError] error object if request failed
1537
+ #
1538
+ # @return [Google::Apis::TagmanagerV2::Folder]
1539
+ #
1540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1543
+ def update_account_container_workspace_folder(path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1544
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
1545
+ command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation
1546
+ command.request_object = folder_object
1547
+ command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation
1548
+ command.response_class = Google::Apis::TagmanagerV2::Folder
1549
+ command.params['path'] = path unless path.nil?
1550
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1551
+ command.query['fields'] = fields unless fields.nil?
1552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1553
+ execute_or_queue_command(command, &block)
1554
+ end
1555
+
1556
+ # Creates a GTM Tag.
1557
+ # @param [String] parent
1558
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1559
+ # container_id`/workspaces/`workspace_id`
1560
+ # @param [Google::Apis::TagmanagerV2::Tag] tag_object
1561
+ # @param [String] fields
1562
+ # Selector specifying which fields to include in a partial response.
1563
+ # @param [String] quota_user
1564
+ # Available to use for quota purposes for server-side applications. Can be any
1565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1566
+ # @param [Google::Apis::RequestOptions] options
1567
+ # Request-specific options
1568
+ #
1569
+ # @yield [result, err] Result & error if block supplied
1570
+ # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object
1571
+ # @yieldparam err [StandardError] error object if request failed
1572
+ #
1573
+ # @return [Google::Apis::TagmanagerV2::Tag]
1574
+ #
1575
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1576
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1577
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1578
+ def create_account_container_workspace_tag(parent, tag_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1579
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/tags', options)
1580
+ command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation
1581
+ command.request_object = tag_object
1582
+ command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
1583
+ command.response_class = Google::Apis::TagmanagerV2::Tag
1584
+ command.params['parent'] = parent unless parent.nil?
1585
+ command.query['fields'] = fields unless fields.nil?
1586
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1587
+ execute_or_queue_command(command, &block)
1588
+ end
1589
+
1590
+ # Deletes a GTM Tag.
1591
+ # @param [String] path
1592
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
1593
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
1594
+ # @param [String] fields
1595
+ # Selector specifying which fields to include in a partial response.
1596
+ # @param [String] quota_user
1597
+ # Available to use for quota purposes for server-side applications. Can be any
1598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1599
+ # @param [Google::Apis::RequestOptions] options
1600
+ # Request-specific options
1601
+ #
1602
+ # @yield [result, err] Result & error if block supplied
1603
+ # @yieldparam result [NilClass] No result returned for this method
1604
+ # @yieldparam err [StandardError] error object if request failed
1605
+ #
1606
+ # @return [void]
1607
+ #
1608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1611
+ def delete_account_container_workspace_tag(path, fields: nil, quota_user: nil, options: nil, &block)
1612
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
1613
+ command.params['path'] = path unless path.nil?
1614
+ command.query['fields'] = fields unless fields.nil?
1615
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1616
+ execute_or_queue_command(command, &block)
1617
+ end
1618
+
1619
+ # Gets a GTM Tag.
1620
+ # @param [String] path
1621
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
1622
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
1623
+ # @param [String] fields
1624
+ # Selector specifying which fields to include in a partial response.
1625
+ # @param [String] quota_user
1626
+ # Available to use for quota purposes for server-side applications. Can be any
1627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1628
+ # @param [Google::Apis::RequestOptions] options
1629
+ # Request-specific options
1630
+ #
1631
+ # @yield [result, err] Result & error if block supplied
1632
+ # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object
1633
+ # @yieldparam err [StandardError] error object if request failed
1634
+ #
1635
+ # @return [Google::Apis::TagmanagerV2::Tag]
1636
+ #
1637
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1638
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1639
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1640
+ def get_account_container_workspace_tag(path, fields: nil, quota_user: nil, options: nil, &block)
1641
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
1642
+ command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
1643
+ command.response_class = Google::Apis::TagmanagerV2::Tag
1644
+ command.params['path'] = path unless path.nil?
1645
+ command.query['fields'] = fields unless fields.nil?
1646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1647
+ execute_or_queue_command(command, &block)
1648
+ end
1649
+
1650
+ # Lists all GTM Tags of a Container.
1651
+ # @param [String] parent
1652
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1653
+ # container_id`/workspaces/`workspace_id`
1654
+ # @param [String] page_token
1655
+ # Continuation token for fetching the next page of results.
1656
+ # @param [String] fields
1657
+ # Selector specifying which fields to include in a partial response.
1658
+ # @param [String] quota_user
1659
+ # Available to use for quota purposes for server-side applications. Can be any
1660
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1661
+ # @param [Google::Apis::RequestOptions] options
1662
+ # Request-specific options
1663
+ #
1664
+ # @yield [result, err] Result & error if block supplied
1665
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListTagsResponse] parsed result object
1666
+ # @yieldparam err [StandardError] error object if request failed
1667
+ #
1668
+ # @return [Google::Apis::TagmanagerV2::ListTagsResponse]
1669
+ #
1670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1673
+ def list_account_container_workspace_tags(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1674
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/tags', options)
1675
+ command.response_representation = Google::Apis::TagmanagerV2::ListTagsResponse::Representation
1676
+ command.response_class = Google::Apis::TagmanagerV2::ListTagsResponse
1677
+ command.params['parent'] = parent unless parent.nil?
1678
+ command.query['pageToken'] = page_token unless page_token.nil?
1679
+ command.query['fields'] = fields unless fields.nil?
1680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1681
+ execute_or_queue_command(command, &block)
1682
+ end
1683
+
1684
+ # Reverts changes to a GTM Tag in a GTM Workspace.
1685
+ # @param [String] path
1686
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
1687
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
1688
+ # @param [String] fingerprint
1689
+ # When provided, this fingerprint must match the fingerprint of thetag in
1690
+ # storage.
1691
+ # @param [String] fields
1692
+ # Selector specifying which fields to include in a partial response.
1693
+ # @param [String] quota_user
1694
+ # Available to use for quota purposes for server-side applications. Can be any
1695
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1696
+ # @param [Google::Apis::RequestOptions] options
1697
+ # Request-specific options
1698
+ #
1699
+ # @yield [result, err] Result & error if block supplied
1700
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertTagResponse] parsed result object
1701
+ # @yieldparam err [StandardError] error object if request failed
1702
+ #
1703
+ # @return [Google::Apis::TagmanagerV2::RevertTagResponse]
1704
+ #
1705
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1706
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1707
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1708
+ def revert_account_container_workspace_tag(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1709
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
1710
+ command.response_representation = Google::Apis::TagmanagerV2::RevertTagResponse::Representation
1711
+ command.response_class = Google::Apis::TagmanagerV2::RevertTagResponse
1712
+ command.params['path'] = path unless path.nil?
1713
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1714
+ command.query['fields'] = fields unless fields.nil?
1715
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1716
+ execute_or_queue_command(command, &block)
1717
+ end
1718
+
1719
+ # Updates a GTM Tag.
1720
+ # @param [String] path
1721
+ # GTM Tag's API relative path. Example: accounts/`account_id`/containers/`
1722
+ # container_id`/workspaces/`workspace_id`/tags/`tag_id`
1723
+ # @param [Google::Apis::TagmanagerV2::Tag] tag_object
1724
+ # @param [String] fingerprint
1725
+ # When provided, this fingerprint must match the fingerprint of the tag in
1726
+ # storage.
1727
+ # @param [String] fields
1728
+ # Selector specifying which fields to include in a partial response.
1729
+ # @param [String] quota_user
1730
+ # Available to use for quota purposes for server-side applications. Can be any
1731
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1732
+ # @param [Google::Apis::RequestOptions] options
1733
+ # Request-specific options
1734
+ #
1735
+ # @yield [result, err] Result & error if block supplied
1736
+ # @yieldparam result [Google::Apis::TagmanagerV2::Tag] parsed result object
1737
+ # @yieldparam err [StandardError] error object if request failed
1738
+ #
1739
+ # @return [Google::Apis::TagmanagerV2::Tag]
1740
+ #
1741
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1742
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1743
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1744
+ def update_account_container_workspace_tag(path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1745
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
1746
+ command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation
1747
+ command.request_object = tag_object
1748
+ command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation
1749
+ command.response_class = Google::Apis::TagmanagerV2::Tag
1750
+ command.params['path'] = path unless path.nil?
1751
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1752
+ command.query['fields'] = fields unless fields.nil?
1753
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1754
+ execute_or_queue_command(command, &block)
1755
+ end
1756
+
1757
+ # Creates a GTM Custom Template.
1758
+ # @param [String] parent
1759
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1760
+ # container_id`/workspaces/`workspace_id`
1761
+ # @param [Google::Apis::TagmanagerV2::CustomTemplate] custom_template_object
1762
+ # @param [String] fields
1763
+ # Selector specifying which fields to include in a partial response.
1764
+ # @param [String] quota_user
1765
+ # Available to use for quota purposes for server-side applications. Can be any
1766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1767
+ # @param [Google::Apis::RequestOptions] options
1768
+ # Request-specific options
1769
+ #
1770
+ # @yield [result, err] Result & error if block supplied
1771
+ # @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
1772
+ # @yieldparam err [StandardError] error object if request failed
1773
+ #
1774
+ # @return [Google::Apis::TagmanagerV2::CustomTemplate]
1775
+ #
1776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1779
+ def create_account_container_workspace_template(parent, custom_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1780
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/templates', options)
1781
+ command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
1782
+ command.request_object = custom_template_object
1783
+ command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
1784
+ command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
1785
+ command.params['parent'] = parent unless parent.nil?
1786
+ command.query['fields'] = fields unless fields.nil?
1787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1788
+ execute_or_queue_command(command, &block)
1789
+ end
1790
+
1791
+ # Deletes a GTM Template.
1792
+ # @param [String] path
1793
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
1794
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
1795
+ # @param [String] fields
1796
+ # Selector specifying which fields to include in a partial response.
1797
+ # @param [String] quota_user
1798
+ # Available to use for quota purposes for server-side applications. Can be any
1799
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1800
+ # @param [Google::Apis::RequestOptions] options
1801
+ # Request-specific options
1802
+ #
1803
+ # @yield [result, err] Result & error if block supplied
1804
+ # @yieldparam result [NilClass] No result returned for this method
1805
+ # @yieldparam err [StandardError] error object if request failed
1806
+ #
1807
+ # @return [void]
1808
+ #
1809
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1810
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1811
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1812
+ def delete_account_container_workspace_template(path, fields: nil, quota_user: nil, options: nil, &block)
1813
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
1814
+ command.params['path'] = path unless path.nil?
1815
+ command.query['fields'] = fields unless fields.nil?
1816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1817
+ execute_or_queue_command(command, &block)
1818
+ end
1819
+
1820
+ # Gets a GTM Template.
1821
+ # @param [String] path
1822
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
1823
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
1824
+ # @param [String] fields
1825
+ # Selector specifying which fields to include in a partial response.
1826
+ # @param [String] quota_user
1827
+ # Available to use for quota purposes for server-side applications. Can be any
1828
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1829
+ # @param [Google::Apis::RequestOptions] options
1830
+ # Request-specific options
1831
+ #
1832
+ # @yield [result, err] Result & error if block supplied
1833
+ # @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
1834
+ # @yieldparam err [StandardError] error object if request failed
1835
+ #
1836
+ # @return [Google::Apis::TagmanagerV2::CustomTemplate]
1837
+ #
1838
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1839
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1840
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1841
+ def get_account_container_workspace_template(path, fields: nil, quota_user: nil, options: nil, &block)
1842
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
1843
+ command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
1844
+ command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
1845
+ command.params['path'] = path unless path.nil?
1846
+ command.query['fields'] = fields unless fields.nil?
1847
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1848
+ execute_or_queue_command(command, &block)
1849
+ end
1850
+
1851
+ # Lists all GTM Templates of a GTM container workspace.
1852
+ # @param [String] parent
1853
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
1854
+ # container_id`/workspaces/`workspace_id`
1855
+ # @param [String] page_token
1856
+ # Continuation token for fetching the next page of results.
1857
+ # @param [String] fields
1858
+ # Selector specifying which fields to include in a partial response.
1859
+ # @param [String] quota_user
1860
+ # Available to use for quota purposes for server-side applications. Can be any
1861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1862
+ # @param [Google::Apis::RequestOptions] options
1863
+ # Request-specific options
1864
+ #
1865
+ # @yield [result, err] Result & error if block supplied
1866
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListTemplatesResponse] parsed result object
1867
+ # @yieldparam err [StandardError] error object if request failed
1868
+ #
1869
+ # @return [Google::Apis::TagmanagerV2::ListTemplatesResponse]
1870
+ #
1871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1874
+ def list_account_container_workspace_templates(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1875
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/templates', options)
1876
+ command.response_representation = Google::Apis::TagmanagerV2::ListTemplatesResponse::Representation
1877
+ command.response_class = Google::Apis::TagmanagerV2::ListTemplatesResponse
1878
+ command.params['parent'] = parent unless parent.nil?
1879
+ command.query['pageToken'] = page_token unless page_token.nil?
1880
+ command.query['fields'] = fields unless fields.nil?
1881
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1882
+ execute_or_queue_command(command, &block)
1883
+ end
1884
+
1885
+ # Reverts changes to a GTM Template in a GTM Workspace.
1886
+ # @param [String] path
1887
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
1888
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
1889
+ # @param [String] fingerprint
1890
+ # When provided, this fingerprint must match the fingerprint of the template in
1891
+ # storage.
1892
+ # @param [String] fields
1893
+ # Selector specifying which fields to include in a partial response.
1894
+ # @param [String] quota_user
1895
+ # Available to use for quota purposes for server-side applications. Can be any
1896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1897
+ # @param [Google::Apis::RequestOptions] options
1898
+ # Request-specific options
1899
+ #
1900
+ # @yield [result, err] Result & error if block supplied
1901
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertTemplateResponse] parsed result object
1902
+ # @yieldparam err [StandardError] error object if request failed
1903
+ #
1904
+ # @return [Google::Apis::TagmanagerV2::RevertTemplateResponse]
1905
+ #
1906
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1907
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1908
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1909
+ def revert_account_container_workspace_template(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1910
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
1911
+ command.response_representation = Google::Apis::TagmanagerV2::RevertTemplateResponse::Representation
1912
+ command.response_class = Google::Apis::TagmanagerV2::RevertTemplateResponse
1913
+ command.params['path'] = path unless path.nil?
1914
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1915
+ command.query['fields'] = fields unless fields.nil?
1916
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1917
+ execute_or_queue_command(command, &block)
1918
+ end
1919
+
1920
+ # Updates a GTM Template.
1921
+ # @param [String] path
1922
+ # GTM Custom Template's API relative path. Example: accounts/`account_id`/
1923
+ # containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
1924
+ # @param [Google::Apis::TagmanagerV2::CustomTemplate] custom_template_object
1925
+ # @param [String] fingerprint
1926
+ # When provided, this fingerprint must match the fingerprint of the templates in
1927
+ # storage.
1928
+ # @param [String] fields
1929
+ # Selector specifying which fields to include in a partial response.
1930
+ # @param [String] quota_user
1931
+ # Available to use for quota purposes for server-side applications. Can be any
1932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1933
+ # @param [Google::Apis::RequestOptions] options
1934
+ # Request-specific options
1935
+ #
1936
+ # @yield [result, err] Result & error if block supplied
1937
+ # @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
1938
+ # @yieldparam err [StandardError] error object if request failed
1939
+ #
1940
+ # @return [Google::Apis::TagmanagerV2::CustomTemplate]
1941
+ #
1942
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1943
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1944
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1945
+ def update_account_container_workspace_template(path, custom_template_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
1946
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
1947
+ command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
1948
+ command.request_object = custom_template_object
1949
+ command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
1950
+ command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
1951
+ command.params['path'] = path unless path.nil?
1952
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1953
+ command.query['fields'] = fields unless fields.nil?
1954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1955
+ execute_or_queue_command(command, &block)
1956
+ end
1957
+
1958
+ # Creates a GTM Trigger.
1959
+ # @param [String] parent
1960
+ # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/`
1961
+ # container_id`/workspaces/`workspace_id`
1962
+ # @param [Google::Apis::TagmanagerV2::Trigger] trigger_object
1963
+ # @param [String] fields
1964
+ # Selector specifying which fields to include in a partial response.
1965
+ # @param [String] quota_user
1966
+ # Available to use for quota purposes for server-side applications. Can be any
1967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1968
+ # @param [Google::Apis::RequestOptions] options
1969
+ # Request-specific options
1970
+ #
1971
+ # @yield [result, err] Result & error if block supplied
1972
+ # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object
1973
+ # @yieldparam err [StandardError] error object if request failed
1974
+ #
1975
+ # @return [Google::Apis::TagmanagerV2::Trigger]
1976
+ #
1977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1980
+ def create_account_container_workspace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1981
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/triggers', options)
1982
+ command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation
1983
+ command.request_object = trigger_object
1984
+ command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
1985
+ command.response_class = Google::Apis::TagmanagerV2::Trigger
1986
+ command.params['parent'] = parent unless parent.nil?
1987
+ command.query['fields'] = fields unless fields.nil?
1988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1989
+ execute_or_queue_command(command, &block)
1990
+ end
1991
+
1992
+ # Deletes a GTM Trigger.
1993
+ # @param [String] path
1994
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
1995
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
1996
+ # @param [String] fields
1997
+ # Selector specifying which fields to include in a partial response.
1998
+ # @param [String] quota_user
1999
+ # Available to use for quota purposes for server-side applications. Can be any
2000
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2001
+ # @param [Google::Apis::RequestOptions] options
2002
+ # Request-specific options
2003
+ #
2004
+ # @yield [result, err] Result & error if block supplied
2005
+ # @yieldparam result [NilClass] No result returned for this method
2006
+ # @yieldparam err [StandardError] error object if request failed
2007
+ #
2008
+ # @return [void]
2009
+ #
2010
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2011
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2012
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2013
+ def delete_account_container_workspace_trigger(path, fields: nil, quota_user: nil, options: nil, &block)
2014
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
2015
+ command.params['path'] = path unless path.nil?
2016
+ command.query['fields'] = fields unless fields.nil?
2017
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2018
+ execute_or_queue_command(command, &block)
2019
+ end
2020
+
2021
+ # Gets a GTM Trigger.
2022
+ # @param [String] path
2023
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
2024
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
2025
+ # @param [String] fields
2026
+ # Selector specifying which fields to include in a partial response.
2027
+ # @param [String] quota_user
2028
+ # Available to use for quota purposes for server-side applications. Can be any
2029
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2030
+ # @param [Google::Apis::RequestOptions] options
2031
+ # Request-specific options
2032
+ #
2033
+ # @yield [result, err] Result & error if block supplied
2034
+ # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object
2035
+ # @yieldparam err [StandardError] error object if request failed
2036
+ #
2037
+ # @return [Google::Apis::TagmanagerV2::Trigger]
2038
+ #
2039
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2040
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2041
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2042
+ def get_account_container_workspace_trigger(path, fields: nil, quota_user: nil, options: nil, &block)
2043
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
2044
+ command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2045
+ command.response_class = Google::Apis::TagmanagerV2::Trigger
2046
+ command.params['path'] = path unless path.nil?
2047
+ command.query['fields'] = fields unless fields.nil?
2048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2049
+ execute_or_queue_command(command, &block)
2050
+ end
2051
+
2052
+ # Lists all GTM Triggers of a Container.
2053
+ # @param [String] parent
2054
+ # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/`
2055
+ # container_id`/workspaces/`workspace_id`
2056
+ # @param [String] page_token
2057
+ # Continuation token for fetching the next page of results.
2058
+ # @param [String] fields
2059
+ # Selector specifying which fields to include in a partial response.
2060
+ # @param [String] quota_user
2061
+ # Available to use for quota purposes for server-side applications. Can be any
2062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2063
+ # @param [Google::Apis::RequestOptions] options
2064
+ # Request-specific options
2065
+ #
2066
+ # @yield [result, err] Result & error if block supplied
2067
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListTriggersResponse] parsed result object
2068
+ # @yieldparam err [StandardError] error object if request failed
2069
+ #
2070
+ # @return [Google::Apis::TagmanagerV2::ListTriggersResponse]
2071
+ #
2072
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2073
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2074
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2075
+ def list_account_container_workspace_triggers(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2076
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/triggers', options)
2077
+ command.response_representation = Google::Apis::TagmanagerV2::ListTriggersResponse::Representation
2078
+ command.response_class = Google::Apis::TagmanagerV2::ListTriggersResponse
2079
+ command.params['parent'] = parent unless parent.nil?
2080
+ command.query['pageToken'] = page_token unless page_token.nil?
2081
+ command.query['fields'] = fields unless fields.nil?
2082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2083
+ execute_or_queue_command(command, &block)
2084
+ end
2085
+
2086
+ # Reverts changes to a GTM Trigger in a GTM Workspace.
2087
+ # @param [String] path
2088
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
2089
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
2090
+ # @param [String] fingerprint
2091
+ # When provided, this fingerprint must match the fingerprint of the trigger in
2092
+ # storage.
2093
+ # @param [String] fields
2094
+ # Selector specifying which fields to include in a partial response.
2095
+ # @param [String] quota_user
2096
+ # Available to use for quota purposes for server-side applications. Can be any
2097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2098
+ # @param [Google::Apis::RequestOptions] options
2099
+ # Request-specific options
2100
+ #
2101
+ # @yield [result, err] Result & error if block supplied
2102
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertTriggerResponse] parsed result object
2103
+ # @yieldparam err [StandardError] error object if request failed
2104
+ #
2105
+ # @return [Google::Apis::TagmanagerV2::RevertTriggerResponse]
2106
+ #
2107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2110
+ def revert_account_container_workspace_trigger(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
2111
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
2112
+ command.response_representation = Google::Apis::TagmanagerV2::RevertTriggerResponse::Representation
2113
+ command.response_class = Google::Apis::TagmanagerV2::RevertTriggerResponse
2114
+ command.params['path'] = path unless path.nil?
2115
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2116
+ command.query['fields'] = fields unless fields.nil?
2117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2118
+ execute_or_queue_command(command, &block)
2119
+ end
2120
+
2121
+ # Updates a GTM Trigger.
2122
+ # @param [String] path
2123
+ # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/`
2124
+ # container_id`/workspaces/`workspace_id`/triggers/`trigger_id`
2125
+ # @param [Google::Apis::TagmanagerV2::Trigger] trigger_object
2126
+ # @param [String] fingerprint
2127
+ # When provided, this fingerprint must match the fingerprint of the trigger in
2128
+ # storage.
2129
+ # @param [String] fields
2130
+ # Selector specifying which fields to include in a partial response.
2131
+ # @param [String] quota_user
2132
+ # Available to use for quota purposes for server-side applications. Can be any
2133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2134
+ # @param [Google::Apis::RequestOptions] options
2135
+ # Request-specific options
2136
+ #
2137
+ # @yield [result, err] Result & error if block supplied
2138
+ # @yieldparam result [Google::Apis::TagmanagerV2::Trigger] parsed result object
2139
+ # @yieldparam err [StandardError] error object if request failed
2140
+ #
2141
+ # @return [Google::Apis::TagmanagerV2::Trigger]
2142
+ #
2143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2146
+ def update_account_container_workspace_trigger(path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
2147
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
2148
+ command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2149
+ command.request_object = trigger_object
2150
+ command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation
2151
+ command.response_class = Google::Apis::TagmanagerV2::Trigger
2152
+ command.params['path'] = path unless path.nil?
2153
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2154
+ command.query['fields'] = fields unless fields.nil?
2155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2156
+ execute_or_queue_command(command, &block)
2157
+ end
2158
+
2159
+ # Creates a GTM Variable.
2160
+ # @param [String] parent
2161
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2162
+ # container_id`/workspaces/`workspace_id`
2163
+ # @param [Google::Apis::TagmanagerV2::Variable] variable_object
2164
+ # @param [String] fields
2165
+ # Selector specifying which fields to include in a partial response.
2166
+ # @param [String] quota_user
2167
+ # Available to use for quota purposes for server-side applications. Can be any
2168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2169
+ # @param [Google::Apis::RequestOptions] options
2170
+ # Request-specific options
2171
+ #
2172
+ # @yield [result, err] Result & error if block supplied
2173
+ # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object
2174
+ # @yieldparam err [StandardError] error object if request failed
2175
+ #
2176
+ # @return [Google::Apis::TagmanagerV2::Variable]
2177
+ #
2178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2181
+ def create_account_container_workspace_variable(parent, variable_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2182
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/variables', options)
2183
+ command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation
2184
+ command.request_object = variable_object
2185
+ command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
2186
+ command.response_class = Google::Apis::TagmanagerV2::Variable
2187
+ command.params['parent'] = parent unless parent.nil?
2188
+ command.query['fields'] = fields unless fields.nil?
2189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2190
+ execute_or_queue_command(command, &block)
2191
+ end
2192
+
2193
+ # Deletes a GTM Variable.
2194
+ # @param [String] path
2195
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2196
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2197
+ # @param [String] fields
2198
+ # Selector specifying which fields to include in a partial response.
2199
+ # @param [String] quota_user
2200
+ # Available to use for quota purposes for server-side applications. Can be any
2201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2202
+ # @param [Google::Apis::RequestOptions] options
2203
+ # Request-specific options
2204
+ #
2205
+ # @yield [result, err] Result & error if block supplied
2206
+ # @yieldparam result [NilClass] No result returned for this method
2207
+ # @yieldparam err [StandardError] error object if request failed
2208
+ #
2209
+ # @return [void]
2210
+ #
2211
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2212
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2213
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2214
+ def delete_account_container_workspace_variable(path, fields: nil, quota_user: nil, options: nil, &block)
2215
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
2216
+ command.params['path'] = path unless path.nil?
2217
+ command.query['fields'] = fields unless fields.nil?
2218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2219
+ execute_or_queue_command(command, &block)
2220
+ end
2221
+
2222
+ # Gets a GTM Variable.
2223
+ # @param [String] path
2224
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2225
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2226
+ # @param [String] fields
2227
+ # Selector specifying which fields to include in a partial response.
2228
+ # @param [String] quota_user
2229
+ # Available to use for quota purposes for server-side applications. Can be any
2230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2231
+ # @param [Google::Apis::RequestOptions] options
2232
+ # Request-specific options
2233
+ #
2234
+ # @yield [result, err] Result & error if block supplied
2235
+ # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object
2236
+ # @yieldparam err [StandardError] error object if request failed
2237
+ #
2238
+ # @return [Google::Apis::TagmanagerV2::Variable]
2239
+ #
2240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2243
+ def get_account_container_workspace_variable(path, fields: nil, quota_user: nil, options: nil, &block)
2244
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
2245
+ command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
2246
+ command.response_class = Google::Apis::TagmanagerV2::Variable
2247
+ command.params['path'] = path unless path.nil?
2248
+ command.query['fields'] = fields unless fields.nil?
2249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2250
+ execute_or_queue_command(command, &block)
2251
+ end
2252
+
2253
+ # Lists all GTM Variables of a Container.
2254
+ # @param [String] parent
2255
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2256
+ # container_id`/workspaces/`workspace_id`
2257
+ # @param [String] page_token
2258
+ # Continuation token for fetching the next page of results.
2259
+ # @param [String] fields
2260
+ # Selector specifying which fields to include in a partial response.
2261
+ # @param [String] quota_user
2262
+ # Available to use for quota purposes for server-side applications. Can be any
2263
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2264
+ # @param [Google::Apis::RequestOptions] options
2265
+ # Request-specific options
2266
+ #
2267
+ # @yield [result, err] Result & error if block supplied
2268
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListVariablesResponse] parsed result object
2269
+ # @yieldparam err [StandardError] error object if request failed
2270
+ #
2271
+ # @return [Google::Apis::TagmanagerV2::ListVariablesResponse]
2272
+ #
2273
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2274
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2275
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2276
+ def list_account_container_workspace_variables(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2277
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/variables', options)
2278
+ command.response_representation = Google::Apis::TagmanagerV2::ListVariablesResponse::Representation
2279
+ command.response_class = Google::Apis::TagmanagerV2::ListVariablesResponse
2280
+ command.params['parent'] = parent unless parent.nil?
2281
+ command.query['pageToken'] = page_token unless page_token.nil?
2282
+ command.query['fields'] = fields unless fields.nil?
2283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2284
+ execute_or_queue_command(command, &block)
2285
+ end
2286
+
2287
+ # Reverts changes to a GTM Variable in a GTM Workspace.
2288
+ # @param [String] path
2289
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2290
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2291
+ # @param [String] fingerprint
2292
+ # When provided, this fingerprint must match the fingerprint of the variable in
2293
+ # storage.
2294
+ # @param [String] fields
2295
+ # Selector specifying which fields to include in a partial response.
2296
+ # @param [String] quota_user
2297
+ # Available to use for quota purposes for server-side applications. Can be any
2298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2299
+ # @param [Google::Apis::RequestOptions] options
2300
+ # Request-specific options
2301
+ #
2302
+ # @yield [result, err] Result & error if block supplied
2303
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertVariableResponse] parsed result object
2304
+ # @yieldparam err [StandardError] error object if request failed
2305
+ #
2306
+ # @return [Google::Apis::TagmanagerV2::RevertVariableResponse]
2307
+ #
2308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2311
+ def revert_account_container_workspace_variable(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
2312
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
2313
+ command.response_representation = Google::Apis::TagmanagerV2::RevertVariableResponse::Representation
2314
+ command.response_class = Google::Apis::TagmanagerV2::RevertVariableResponse
2315
+ command.params['path'] = path unless path.nil?
2316
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2317
+ command.query['fields'] = fields unless fields.nil?
2318
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2319
+ execute_or_queue_command(command, &block)
2320
+ end
2321
+
2322
+ # Updates a GTM Variable.
2323
+ # @param [String] path
2324
+ # GTM Variable's API relative path. Example: accounts/`account_id`/containers/`
2325
+ # container_id`/workspaces/`workspace_id`/variables/`variable_id`
2326
+ # @param [Google::Apis::TagmanagerV2::Variable] variable_object
2327
+ # @param [String] fingerprint
2328
+ # When provided, this fingerprint must match the fingerprint of the variable in
2329
+ # storage.
2330
+ # @param [String] fields
2331
+ # Selector specifying which fields to include in a partial response.
2332
+ # @param [String] quota_user
2333
+ # Available to use for quota purposes for server-side applications. Can be any
2334
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2335
+ # @param [Google::Apis::RequestOptions] options
2336
+ # Request-specific options
2337
+ #
2338
+ # @yield [result, err] Result & error if block supplied
2339
+ # @yieldparam result [Google::Apis::TagmanagerV2::Variable] parsed result object
2340
+ # @yieldparam err [StandardError] error object if request failed
2341
+ #
2342
+ # @return [Google::Apis::TagmanagerV2::Variable]
2343
+ #
2344
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2345
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2346
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2347
+ def update_account_container_workspace_variable(path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
2348
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
2349
+ command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation
2350
+ command.request_object = variable_object
2351
+ command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation
2352
+ command.response_class = Google::Apis::TagmanagerV2::Variable
2353
+ command.params['path'] = path unless path.nil?
2354
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2355
+ command.query['fields'] = fields unless fields.nil?
2356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2357
+ execute_or_queue_command(command, &block)
2358
+ end
2359
+
2360
+ # Creates a GTM Zone.
2361
+ # @param [String] parent
2362
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2363
+ # container_id`/workspaces/`workspace_id`
2364
+ # @param [Google::Apis::TagmanagerV2::Zone] zone_object
2365
+ # @param [String] fields
2366
+ # Selector specifying which fields to include in a partial response.
2367
+ # @param [String] quota_user
2368
+ # Available to use for quota purposes for server-side applications. Can be any
2369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2370
+ # @param [Google::Apis::RequestOptions] options
2371
+ # Request-specific options
2372
+ #
2373
+ # @yield [result, err] Result & error if block supplied
2374
+ # @yieldparam result [Google::Apis::TagmanagerV2::Zone] parsed result object
2375
+ # @yieldparam err [StandardError] error object if request failed
2376
+ #
2377
+ # @return [Google::Apis::TagmanagerV2::Zone]
2378
+ #
2379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2382
+ def create_account_container_workspace_zone(parent, zone_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2383
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/zones', options)
2384
+ command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation
2385
+ command.request_object = zone_object
2386
+ command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation
2387
+ command.response_class = Google::Apis::TagmanagerV2::Zone
2388
+ command.params['parent'] = parent unless parent.nil?
2389
+ command.query['fields'] = fields unless fields.nil?
2390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2391
+ execute_or_queue_command(command, &block)
2392
+ end
2393
+
2394
+ # Deletes a GTM Zone.
2395
+ # @param [String] path
2396
+ # GTM Zone's API relative path. Example: accounts/`account_id`/containers/`
2397
+ # container_id`/workspaces/`workspace_id`/zones/`zone_id`
2398
+ # @param [String] fields
2399
+ # Selector specifying which fields to include in a partial response.
2400
+ # @param [String] quota_user
2401
+ # Available to use for quota purposes for server-side applications. Can be any
2402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2403
+ # @param [Google::Apis::RequestOptions] options
2404
+ # Request-specific options
2405
+ #
2406
+ # @yield [result, err] Result & error if block supplied
2407
+ # @yieldparam result [NilClass] No result returned for this method
2408
+ # @yieldparam err [StandardError] error object if request failed
2409
+ #
2410
+ # @return [void]
2411
+ #
2412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2415
+ def delete_account_container_workspace_zone(path, fields: nil, quota_user: nil, options: nil, &block)
2416
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
2417
+ command.params['path'] = path unless path.nil?
2418
+ command.query['fields'] = fields unless fields.nil?
2419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2420
+ execute_or_queue_command(command, &block)
2421
+ end
2422
+
2423
+ # Gets a GTM Zone.
2424
+ # @param [String] path
2425
+ # GTM Zone's API relative path. Example: accounts/`account_id`/containers/`
2426
+ # container_id`/workspaces/`workspace_id`/zones/`zone_id`
2427
+ # @param [String] fields
2428
+ # Selector specifying which fields to include in a partial response.
2429
+ # @param [String] quota_user
2430
+ # Available to use for quota purposes for server-side applications. Can be any
2431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2432
+ # @param [Google::Apis::RequestOptions] options
2433
+ # Request-specific options
2434
+ #
2435
+ # @yield [result, err] Result & error if block supplied
2436
+ # @yieldparam result [Google::Apis::TagmanagerV2::Zone] parsed result object
2437
+ # @yieldparam err [StandardError] error object if request failed
2438
+ #
2439
+ # @return [Google::Apis::TagmanagerV2::Zone]
2440
+ #
2441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2444
+ def get_account_container_workspace_zone(path, fields: nil, quota_user: nil, options: nil, &block)
2445
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
2446
+ command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation
2447
+ command.response_class = Google::Apis::TagmanagerV2::Zone
2448
+ command.params['path'] = path unless path.nil?
2449
+ command.query['fields'] = fields unless fields.nil?
2450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2451
+ execute_or_queue_command(command, &block)
2452
+ end
2453
+
2454
+ # Lists all GTM Zones of a GTM container workspace.
2455
+ # @param [String] parent
2456
+ # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
2457
+ # container_id`/workspaces/`workspace_id`
2458
+ # @param [String] page_token
2459
+ # Continuation token for fetching the next page of results.
2460
+ # @param [String] fields
2461
+ # Selector specifying which fields to include in a partial response.
2462
+ # @param [String] quota_user
2463
+ # Available to use for quota purposes for server-side applications. Can be any
2464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2465
+ # @param [Google::Apis::RequestOptions] options
2466
+ # Request-specific options
2467
+ #
2468
+ # @yield [result, err] Result & error if block supplied
2469
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListZonesResponse] parsed result object
2470
+ # @yieldparam err [StandardError] error object if request failed
2471
+ #
2472
+ # @return [Google::Apis::TagmanagerV2::ListZonesResponse]
2473
+ #
2474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2477
+ def list_account_container_workspace_zones(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2478
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/zones', options)
2479
+ command.response_representation = Google::Apis::TagmanagerV2::ListZonesResponse::Representation
2480
+ command.response_class = Google::Apis::TagmanagerV2::ListZonesResponse
2481
+ command.params['parent'] = parent unless parent.nil?
2482
+ command.query['pageToken'] = page_token unless page_token.nil?
2483
+ command.query['fields'] = fields unless fields.nil?
2484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2485
+ execute_or_queue_command(command, &block)
2486
+ end
2487
+
2488
+ # Reverts changes to a GTM Zone in a GTM Workspace.
2489
+ # @param [String] path
2490
+ # GTM Zone's API relative path. Example: accounts/`account_id`/containers/`
2491
+ # container_id`/workspaces/`workspace_id`/zones/`zone_id`
2492
+ # @param [String] fingerprint
2493
+ # When provided, this fingerprint must match the fingerprint of the zone in
2494
+ # storage.
2495
+ # @param [String] fields
2496
+ # Selector specifying which fields to include in a partial response.
2497
+ # @param [String] quota_user
2498
+ # Available to use for quota purposes for server-side applications. Can be any
2499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2500
+ # @param [Google::Apis::RequestOptions] options
2501
+ # Request-specific options
2502
+ #
2503
+ # @yield [result, err] Result & error if block supplied
2504
+ # @yieldparam result [Google::Apis::TagmanagerV2::RevertZoneResponse] parsed result object
2505
+ # @yieldparam err [StandardError] error object if request failed
2506
+ #
2507
+ # @return [Google::Apis::TagmanagerV2::RevertZoneResponse]
2508
+ #
2509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2512
+ def revert_account_container_workspace_zone(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
2513
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options)
2514
+ command.response_representation = Google::Apis::TagmanagerV2::RevertZoneResponse::Representation
2515
+ command.response_class = Google::Apis::TagmanagerV2::RevertZoneResponse
2516
+ command.params['path'] = path unless path.nil?
2517
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2518
+ command.query['fields'] = fields unless fields.nil?
2519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2520
+ execute_or_queue_command(command, &block)
2521
+ end
2522
+
2523
+ # Updates a GTM Zone.
2524
+ # @param [String] path
2525
+ # GTM Zone's API relative path. Example: accounts/`account_id`/containers/`
2526
+ # container_id`/workspaces/`workspace_id`/zones/`zone_id`
2527
+ # @param [Google::Apis::TagmanagerV2::Zone] zone_object
2528
+ # @param [String] fingerprint
2529
+ # When provided, this fingerprint must match the fingerprint of the zone in
2530
+ # storage.
2531
+ # @param [String] fields
2532
+ # Selector specifying which fields to include in a partial response.
2533
+ # @param [String] quota_user
2534
+ # Available to use for quota purposes for server-side applications. Can be any
2535
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2536
+ # @param [Google::Apis::RequestOptions] options
2537
+ # Request-specific options
2538
+ #
2539
+ # @yield [result, err] Result & error if block supplied
2540
+ # @yieldparam result [Google::Apis::TagmanagerV2::Zone] parsed result object
2541
+ # @yieldparam err [StandardError] error object if request failed
2542
+ #
2543
+ # @return [Google::Apis::TagmanagerV2::Zone]
2544
+ #
2545
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2546
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2547
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2548
+ def update_account_container_workspace_zone(path, zone_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
2549
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
2550
+ command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation
2551
+ command.request_object = zone_object
2552
+ command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation
2553
+ command.response_class = Google::Apis::TagmanagerV2::Zone
2554
+ command.params['path'] = path unless path.nil?
2555
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2556
+ command.query['fields'] = fields unless fields.nil?
2557
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2558
+ execute_or_queue_command(command, &block)
2559
+ end
2560
+
2561
+ # Creates a user's Account & Container access.
2562
+ # @param [String] parent
2563
+ # GTM Account's API relative path. Example: accounts/`account_id`
2564
+ # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_object
2565
+ # @param [String] fields
2566
+ # Selector specifying which fields to include in a partial response.
2567
+ # @param [String] quota_user
2568
+ # Available to use for quota purposes for server-side applications. Can be any
2569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2570
+ # @param [Google::Apis::RequestOptions] options
2571
+ # Request-specific options
2572
+ #
2573
+ # @yield [result, err] Result & error if block supplied
2574
+ # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object
2575
+ # @yieldparam err [StandardError] error object if request failed
2576
+ #
2577
+ # @return [Google::Apis::TagmanagerV2::UserPermission]
2578
+ #
2579
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2580
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2581
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2582
+ def create_account_user_permission(parent, user_permission_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2583
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/user_permissions', options)
2584
+ command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2585
+ command.request_object = user_permission_object
2586
+ command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2587
+ command.response_class = Google::Apis::TagmanagerV2::UserPermission
2588
+ command.params['parent'] = parent unless parent.nil?
2589
+ command.query['fields'] = fields unless fields.nil?
2590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2591
+ execute_or_queue_command(command, &block)
2592
+ end
2593
+
2594
+ # Removes a user from the account, revoking access to it and all of its
2595
+ # containers.
2596
+ # @param [String] path
2597
+ # GTM UserPermission's API relative path. Example: accounts/`account_id`/
2598
+ # user_permissions/`user_permission_id`
2599
+ # @param [String] fields
2600
+ # Selector specifying which fields to include in a partial response.
2601
+ # @param [String] quota_user
2602
+ # Available to use for quota purposes for server-side applications. Can be any
2603
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2604
+ # @param [Google::Apis::RequestOptions] options
2605
+ # Request-specific options
2606
+ #
2607
+ # @yield [result, err] Result & error if block supplied
2608
+ # @yieldparam result [NilClass] No result returned for this method
2609
+ # @yieldparam err [StandardError] error object if request failed
2610
+ #
2611
+ # @return [void]
2612
+ #
2613
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2614
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2615
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2616
+ def delete_account_user_permission(path, fields: nil, quota_user: nil, options: nil, &block)
2617
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
2618
+ command.params['path'] = path unless path.nil?
2619
+ command.query['fields'] = fields unless fields.nil?
2620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2621
+ execute_or_queue_command(command, &block)
2622
+ end
2623
+
2624
+ # Gets a user's Account & Container access.
2625
+ # @param [String] path
2626
+ # GTM UserPermission's API relative path. Example: accounts/`account_id`/
2627
+ # user_permissions/`user_permission_id`
2628
+ # @param [String] fields
2629
+ # Selector specifying which fields to include in a partial response.
2630
+ # @param [String] quota_user
2631
+ # Available to use for quota purposes for server-side applications. Can be any
2632
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2633
+ # @param [Google::Apis::RequestOptions] options
2634
+ # Request-specific options
2635
+ #
2636
+ # @yield [result, err] Result & error if block supplied
2637
+ # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object
2638
+ # @yieldparam err [StandardError] error object if request failed
2639
+ #
2640
+ # @return [Google::Apis::TagmanagerV2::UserPermission]
2641
+ #
2642
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2643
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2644
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2645
+ def get_account_user_permission(path, fields: nil, quota_user: nil, options: nil, &block)
2646
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
2647
+ command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2648
+ command.response_class = Google::Apis::TagmanagerV2::UserPermission
2649
+ command.params['path'] = path unless path.nil?
2650
+ command.query['fields'] = fields unless fields.nil?
2651
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2652
+ execute_or_queue_command(command, &block)
2653
+ end
2654
+
2655
+ # List all users that have access to the account along with Account and
2656
+ # Container user access granted to each of them.
2657
+ # @param [String] parent
2658
+ # GTM Accounts's API relative path. Example: accounts/`account_id`
2659
+ # @param [String] page_token
2660
+ # Continuation token for fetching the next page of results.
2661
+ # @param [String] fields
2662
+ # Selector specifying which fields to include in a partial response.
2663
+ # @param [String] quota_user
2664
+ # Available to use for quota purposes for server-side applications. Can be any
2665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2666
+ # @param [Google::Apis::RequestOptions] options
2667
+ # Request-specific options
2668
+ #
2669
+ # @yield [result, err] Result & error if block supplied
2670
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListUserPermissionsResponse] parsed result object
2671
+ # @yieldparam err [StandardError] error object if request failed
2672
+ #
2673
+ # @return [Google::Apis::TagmanagerV2::ListUserPermissionsResponse]
2674
+ #
2675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2678
+ def list_account_user_permissions(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2679
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/user_permissions', options)
2680
+ command.response_representation = Google::Apis::TagmanagerV2::ListUserPermissionsResponse::Representation
2681
+ command.response_class = Google::Apis::TagmanagerV2::ListUserPermissionsResponse
2682
+ command.params['parent'] = parent unless parent.nil?
2683
+ command.query['pageToken'] = page_token unless page_token.nil?
2684
+ command.query['fields'] = fields unless fields.nil?
2685
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2686
+ execute_or_queue_command(command, &block)
2687
+ end
2688
+
2689
+ # Updates a user's Account & Container access.
2690
+ # @param [String] path
2691
+ # GTM UserPermission's API relative path. Example: accounts/`account_id`/
2692
+ # user_permissions/`user_permission_id`
2693
+ # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_object
2694
+ # @param [String] fields
2695
+ # Selector specifying which fields to include in a partial response.
2696
+ # @param [String] quota_user
2697
+ # Available to use for quota purposes for server-side applications. Can be any
2698
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2699
+ # @param [Google::Apis::RequestOptions] options
2700
+ # Request-specific options
2701
+ #
2702
+ # @yield [result, err] Result & error if block supplied
2703
+ # @yieldparam result [Google::Apis::TagmanagerV2::UserPermission] parsed result object
2704
+ # @yieldparam err [StandardError] error object if request failed
2705
+ #
2706
+ # @return [Google::Apis::TagmanagerV2::UserPermission]
2707
+ #
2708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2711
+ def update_account_user_permission(path, user_permission_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2712
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
2713
+ command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2714
+ command.request_object = user_permission_object
2715
+ command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation
2716
+ command.response_class = Google::Apis::TagmanagerV2::UserPermission
2717
+ command.params['path'] = path unless path.nil?
2718
+ command.query['fields'] = fields unless fields.nil?
2719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2720
+ execute_or_queue_command(command, &block)
2721
+ end
2722
+
2723
+ protected
2724
+
2725
+ def apply_command_defaults(command)
2726
+ command.query['key'] = key unless key.nil?
2727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2728
+ end
2729
+ end
2730
+ end
2731
+ end
2732
+ end