google-cloud-resource_manager-v3 0.9.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/resource_manager/v3/folders/client.rb +25 -11
  3. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +13 -5
  4. data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +25 -11
  5. data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +11 -4
  6. data/lib/google/cloud/resource_manager/v3/organizations/client.rb +13 -5
  7. data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +13 -5
  8. data/lib/google/cloud/resource_manager/v3/projects/client.rb +25 -11
  9. data/lib/google/cloud/resource_manager/v3/projects/operations.rb +13 -5
  10. data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +25 -11
  11. data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +11 -4
  12. data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +11 -4
  13. data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +13 -5
  14. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +11 -4
  15. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +11 -4
  16. data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +9 -3
  17. data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +13 -5
  18. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +9 -3
  19. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +11 -4
  20. data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +21 -9
  21. data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +13 -5
  22. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +21 -9
  23. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +11 -4
  24. data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +21 -9
  25. data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +13 -5
  26. data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +21 -9
  27. data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +11 -4
  28. data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
  29. data/proto_docs/google/api/client.rb +35 -10
  30. data/proto_docs/google/api/resource.rb +7 -2
  31. metadata +2 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # different Google Cloud resources throughout the GCP resource hierarchy.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
38
41
 
@@ -248,12 +251,13 @@ module Google
248
251
  # Customize the options with defaults
249
252
  call_metadata = @config.rpcs.list_tag_bindings.metadata.to_h
250
253
 
251
- # Set x-goog-api-client and x-goog-user-project headers
254
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
252
255
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
253
256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
254
257
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
255
258
  transports_version_send: [:rest]
256
259
 
260
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
257
261
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
258
262
 
259
263
  options.apply_defaults timeout: @config.rpcs.list_tag_bindings.timeout,
@@ -337,12 +341,13 @@ module Google
337
341
  # Customize the options with defaults
338
342
  call_metadata = @config.rpcs.create_tag_binding.metadata.to_h
339
343
 
340
- # Set x-goog-api-client and x-goog-user-project headers
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
341
345
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
346
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
347
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
344
348
  transports_version_send: [:rest]
345
349
 
350
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
351
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
352
 
348
353
  options.apply_defaults timeout: @config.rpcs.create_tag_binding.timeout,
@@ -425,12 +430,13 @@ module Google
425
430
  # Customize the options with defaults
426
431
  call_metadata = @config.rpcs.delete_tag_binding.metadata.to_h
427
432
 
428
- # Set x-goog-api-client and x-goog-user-project headers
433
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
429
434
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
430
435
  lib_name: @config.lib_name, lib_version: @config.lib_version,
431
436
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
432
437
  transports_version_send: [:rest]
433
438
 
439
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
434
440
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
435
441
 
436
442
  options.apply_defaults timeout: @config.rpcs.delete_tag_binding.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.list_effective_tags.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
525
531
  transports_version_send: [:rest]
526
532
 
533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  options.apply_defaults timeout: @config.rpcs.list_effective_tags.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # so that TagHolds can be managed in the same location as their usage.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
39
42
 
@@ -247,10 +250,11 @@ module Google
247
250
  # Customize the options with defaults
248
251
  metadata = @config.rpcs.create_tag_hold.metadata.to_h
249
252
 
250
- # Set x-goog-api-client and x-goog-user-project headers
253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
251
254
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
252
255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
253
256
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
257
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
254
258
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
255
259
 
256
260
  header_params = {}
@@ -344,10 +348,11 @@ module Google
344
348
  # Customize the options with defaults
345
349
  metadata = @config.rpcs.delete_tag_hold.metadata.to_h
346
350
 
347
- # Set x-goog-api-client and x-goog-user-project headers
351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
348
352
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
349
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
350
354
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
355
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
351
356
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
352
357
 
353
358
  header_params = {}
@@ -454,10 +459,11 @@ module Google
454
459
  # Customize the options with defaults
455
460
  metadata = @config.rpcs.list_tag_holds.metadata.to_h
456
461
 
457
- # Set x-goog-api-client and x-goog-user-project headers
462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
458
463
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
459
464
  lib_name: @config.lib_name, lib_version: @config.lib_version,
460
465
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
466
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
461
467
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
462
468
 
463
469
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module TagHolds
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -36,6 +36,9 @@ module Google
36
36
  # so that TagHolds can be managed in the same location as their usage.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
41
44
 
@@ -239,12 +242,13 @@ module Google
239
242
  # Customize the options with defaults
240
243
  call_metadata = @config.rpcs.create_tag_hold.metadata.to_h
241
244
 
242
- # Set x-goog-api-client and x-goog-user-project headers
245
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
243
246
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
244
247
  lib_name: @config.lib_name, lib_version: @config.lib_version,
245
248
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
246
249
  transports_version_send: [:rest]
247
250
 
251
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
248
252
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
249
253
 
250
254
  options.apply_defaults timeout: @config.rpcs.create_tag_hold.timeout,
@@ -329,12 +333,13 @@ module Google
329
333
  # Customize the options with defaults
330
334
  call_metadata = @config.rpcs.delete_tag_hold.metadata.to_h
331
335
 
332
- # Set x-goog-api-client and x-goog-user-project headers
336
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
333
337
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
334
338
  lib_name: @config.lib_name, lib_version: @config.lib_version,
335
339
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
336
340
  transports_version_send: [:rest]
337
341
 
342
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
338
343
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
339
344
 
340
345
  options.apply_defaults timeout: @config.rpcs.delete_tag_hold.timeout,
@@ -432,12 +437,13 @@ module Google
432
437
  # Customize the options with defaults
433
438
  call_metadata = @config.rpcs.list_tag_holds.metadata.to_h
434
439
 
435
- # Set x-goog-api-client and x-goog-user-project headers
440
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
436
441
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
437
442
  lib_name: @config.lib_name, lib_version: @config.lib_version,
438
443
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
439
444
  transports_version_send: [:rest]
440
445
 
446
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
441
447
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
442
448
 
443
449
  options.apply_defaults timeout: @config.rpcs.list_tag_holds.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -30,6 +30,9 @@ module Google
30
30
  # Allow users to create and manage tag keys.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
35
38
 
@@ -265,10 +268,11 @@ module Google
265
268
  # Customize the options with defaults
266
269
  metadata = @config.rpcs.list_tag_keys.metadata.to_h
267
270
 
268
- # Set x-goog-api-client and x-goog-user-project headers
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
269
272
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
270
273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
271
274
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
275
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
272
276
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
273
277
 
274
278
  options.apply_defaults timeout: @config.rpcs.list_tag_keys.timeout,
@@ -345,10 +349,11 @@ module Google
345
349
  # Customize the options with defaults
346
350
  metadata = @config.rpcs.get_tag_key.metadata.to_h
347
351
 
348
- # Set x-goog-api-client and x-goog-user-project headers
352
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
349
353
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
354
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
355
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
356
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
352
357
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
353
358
 
354
359
  header_params = {}
@@ -435,10 +440,11 @@ module Google
435
440
  # Customize the options with defaults
436
441
  metadata = @config.rpcs.get_namespaced_tag_key.metadata.to_h
437
442
 
438
- # Set x-goog-api-client and x-goog-user-project headers
443
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
439
444
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
440
445
  lib_name: @config.lib_name, lib_version: @config.lib_version,
441
446
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
447
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
442
448
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
443
449
 
444
450
  options.apply_defaults timeout: @config.rpcs.get_namespaced_tag_key.timeout,
@@ -526,10 +532,11 @@ module Google
526
532
  # Customize the options with defaults
527
533
  metadata = @config.rpcs.create_tag_key.metadata.to_h
528
534
 
529
- # Set x-goog-api-client and x-goog-user-project headers
535
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
530
536
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
531
537
  lib_name: @config.lib_name, lib_version: @config.lib_version,
532
538
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
539
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
540
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
541
 
535
542
  options.apply_defaults timeout: @config.rpcs.create_tag_key.timeout,
@@ -621,10 +628,11 @@ module Google
621
628
  # Customize the options with defaults
622
629
  metadata = @config.rpcs.update_tag_key.metadata.to_h
623
630
 
624
- # Set x-goog-api-client and x-goog-user-project headers
631
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
625
632
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
626
633
  lib_name: @config.lib_name, lib_version: @config.lib_version,
627
634
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
635
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
628
636
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
629
637
 
630
638
  header_params = {}
@@ -723,10 +731,11 @@ module Google
723
731
  # Customize the options with defaults
724
732
  metadata = @config.rpcs.delete_tag_key.metadata.to_h
725
733
 
726
- # Set x-goog-api-client and x-goog-user-project headers
734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
727
735
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
736
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
737
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
738
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
730
739
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
731
740
 
732
741
  header_params = {}
@@ -818,10 +827,11 @@ module Google
818
827
  # Customize the options with defaults
819
828
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
820
829
 
821
- # Set x-goog-api-client and x-goog-user-project headers
830
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
822
831
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
823
832
  lib_name: @config.lib_name, lib_version: @config.lib_version,
824
833
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
834
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
825
835
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
826
836
 
827
837
  header_params = {}
@@ -919,10 +929,11 @@ module Google
919
929
  # Customize the options with defaults
920
930
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
921
931
 
922
- # Set x-goog-api-client and x-goog-user-project headers
932
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
923
933
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
924
934
  lib_name: @config.lib_name, lib_version: @config.lib_version,
925
935
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
936
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
926
937
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
927
938
 
928
939
  header_params = {}
@@ -1014,10 +1025,11 @@ module Google
1014
1025
  # Customize the options with defaults
1015
1026
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1016
1027
 
1017
- # Set x-goog-api-client and x-goog-user-project headers
1028
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1018
1029
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1019
1030
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1020
1031
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
1032
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1021
1033
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1022
1034
 
1023
1035
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module TagKeys
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,