google-cloud-service_management-v1 0.11.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc8755635090c81cb98d93fe6ffd9410ac3df5bc471620f8eb0caec28e9065cc
4
- data.tar.gz: a7552b46b31a24409af378cb9d147188a40c954f0755f4e4a9e9e5c4df0a1074
3
+ metadata.gz: 7480341066c379d397331a58bcbfd47e521c8ae5b33736f7094feae63175bfe2
4
+ data.tar.gz: c6f7c0d22c0fa7762358808883d165dea0ada26b3cd61adb07fcf95da6e974a3
5
5
  SHA512:
6
- metadata.gz: 98210f874ae808a92908ff57d69b1c1856eed718a0514b9b72604b559d4790e6afc508b0cc7a5a50afdc13bbb877d12c5ff2c35ee44ae1082f6e245c90b8a7e7
7
- data.tar.gz: e7feccbb93ff64ff5cc1169ac8a87c46e06d5ff896bbe0caef1dd187ae328e04a4d132bd4d59109e7232aa12e8513974aed25585a32f8bb189b40e5061af3acc
6
+ metadata.gz: d9f219584578340cfa73a24c8f4be78c1f0c02d2ec026a9bb8f81f2399e5a2212bcf11222b41f7881f8cbff387a2697bf4a09345a452bdc905d1fa5c3586766a
7
+ data.tar.gz: 438ae6074b7ed6cf7f9f69171c79fafd00ec67da086735e6c7ff9606c771310fef8394e6e8742af7ae4594a5371ec8ced2cd6aeb9fa710d73173bfa162899c57
@@ -32,6 +32,9 @@ module Google
32
32
  # API](https://cloud.google.com/service-infrastructure/docs/overview)
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "servicemanagement.$UNIVERSE_DOMAIN$"
37
40
 
@@ -265,10 +268,11 @@ module Google
265
268
  # Customize the options with defaults
266
269
  metadata = @config.rpcs.list_services.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::ServiceManagement::V1::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_services.timeout,
@@ -345,10 +349,11 @@ module Google
345
349
  # Customize the options with defaults
346
350
  metadata = @config.rpcs.get_service.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::ServiceManagement::V1::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 = {}
@@ -447,10 +452,11 @@ module Google
447
452
  # Customize the options with defaults
448
453
  metadata = @config.rpcs.create_service.metadata.to_h
449
454
 
450
- # Set x-goog-api-client and x-goog-user-project headers
455
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
451
456
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
452
457
  lib_name: @config.lib_name, lib_version: @config.lib_version,
453
458
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
459
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
454
460
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
461
 
456
462
  options.apply_defaults timeout: @config.rpcs.create_service.timeout,
@@ -541,10 +547,11 @@ module Google
541
547
  # Customize the options with defaults
542
548
  metadata = @config.rpcs.delete_service.metadata.to_h
543
549
 
544
- # Set x-goog-api-client and x-goog-user-project headers
550
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
545
551
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
546
552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
547
553
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
554
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
548
555
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
549
556
 
550
557
  header_params = {}
@@ -641,10 +648,11 @@ module Google
641
648
  # Customize the options with defaults
642
649
  metadata = @config.rpcs.undelete_service.metadata.to_h
643
650
 
644
- # Set x-goog-api-client and x-goog-user-project headers
651
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
645
652
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
653
  lib_name: @config.lib_name, lib_version: @config.lib_version,
647
654
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
655
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
648
656
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
649
657
 
650
658
  header_params = {}
@@ -739,10 +747,11 @@ module Google
739
747
  # Customize the options with defaults
740
748
  metadata = @config.rpcs.list_service_configs.metadata.to_h
741
749
 
742
- # Set x-goog-api-client and x-goog-user-project headers
750
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
743
751
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
744
752
  lib_name: @config.lib_name, lib_version: @config.lib_version,
745
753
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
754
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
746
755
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
747
756
 
748
757
  header_params = {}
@@ -835,10 +844,11 @@ module Google
835
844
  # Customize the options with defaults
836
845
  metadata = @config.rpcs.get_service_config.metadata.to_h
837
846
 
838
- # Set x-goog-api-client and x-goog-user-project headers
847
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
839
848
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
849
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
850
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
851
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
842
852
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
853
 
844
854
  header_params = {}
@@ -934,10 +944,11 @@ module Google
934
944
  # Customize the options with defaults
935
945
  metadata = @config.rpcs.create_service_config.metadata.to_h
936
946
 
937
- # Set x-goog-api-client and x-goog-user-project headers
947
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
938
948
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
939
949
  lib_name: @config.lib_name, lib_version: @config.lib_version,
940
950
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
951
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
941
952
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
942
953
 
943
954
  header_params = {}
@@ -1047,10 +1058,11 @@ module Google
1047
1058
  # Customize the options with defaults
1048
1059
  metadata = @config.rpcs.submit_config_source.metadata.to_h
1049
1060
 
1050
- # Set x-goog-api-client and x-goog-user-project headers
1061
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1051
1062
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1052
1063
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1053
1064
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
1065
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1054
1066
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1055
1067
 
1056
1068
  header_params = {}
@@ -1156,10 +1168,11 @@ module Google
1156
1168
  # Customize the options with defaults
1157
1169
  metadata = @config.rpcs.list_service_rollouts.metadata.to_h
1158
1170
 
1159
- # Set x-goog-api-client and x-goog-user-project headers
1171
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1160
1172
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1161
1173
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1162
1174
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
1175
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1163
1176
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1164
1177
 
1165
1178
  header_params = {}
@@ -1247,10 +1260,11 @@ module Google
1247
1260
  # Customize the options with defaults
1248
1261
  metadata = @config.rpcs.get_service_rollout.metadata.to_h
1249
1262
 
1250
- # Set x-goog-api-client and x-goog-user-project headers
1263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1251
1264
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1252
1265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1253
1266
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
1267
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1254
1268
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1255
1269
 
1256
1270
  header_params = {}
@@ -1359,10 +1373,11 @@ module Google
1359
1373
  # Customize the options with defaults
1360
1374
  metadata = @config.rpcs.create_service_rollout.metadata.to_h
1361
1375
 
1362
- # Set x-goog-api-client and x-goog-user-project headers
1376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1363
1377
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1364
1378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1365
1379
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
1380
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1366
1381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1367
1382
 
1368
1383
  header_params = {}
@@ -1465,10 +1480,11 @@ module Google
1465
1480
  # Customize the options with defaults
1466
1481
  metadata = @config.rpcs.generate_config_report.metadata.to_h
1467
1482
 
1468
- # Set x-goog-api-client and x-goog-user-project headers
1483
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1469
1484
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1470
1485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1471
1486
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
1487
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1472
1488
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1473
1489
 
1474
1490
  options.apply_defaults timeout: @config.rpcs.generate_config_report.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module ServiceManager
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 = "servicemanagement.$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::ServiceManagement::V1::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
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -279,10 +283,11 @@ module Google
279
283
  # Customize the options with defaults
280
284
  metadata = @config.rpcs.get_operation.metadata.to_h
281
285
 
282
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
283
287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
289
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
286
291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
287
292
 
288
293
  header_params = {}
@@ -368,10 +373,11 @@ module Google
368
373
  # Customize the options with defaults
369
374
  metadata = @config.rpcs.delete_operation.metadata.to_h
370
375
 
371
- # Set x-goog-api-client and x-goog-user-project headers
376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
377
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
379
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
380
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
382
 
377
383
  header_params = {}
@@ -462,10 +468,11 @@ module Google
462
468
  # Customize the options with defaults
463
469
  metadata = @config.rpcs.cancel_operation.metadata.to_h
464
470
 
465
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
466
472
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
474
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
476
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
477
 
471
478
  header_params = {}
@@ -566,10 +573,11 @@ module Google
566
573
  # Customize the options with defaults
567
574
  metadata = @config.rpcs.wait_operation.metadata.to_h
568
575
 
569
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
577
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
579
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
580
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
573
581
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
582
 
575
583
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # API](https://cloud.google.com/service-infrastructure/docs/overview)
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "servicemanagement.$UNIVERSE_DOMAIN$"
39
42
 
@@ -258,12 +261,13 @@ module Google
258
261
  # Customize the options with defaults
259
262
  call_metadata = @config.rpcs.list_services.metadata.to_h
260
263
 
261
- # Set x-goog-api-client and x-goog-user-project headers
264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
262
265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
267
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
265
268
  transports_version_send: [:rest]
266
269
 
270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
@@ -339,12 +343,13 @@ module Google
339
343
  # Customize the options with defaults
340
344
  call_metadata = @config.rpcs.get_service.metadata.to_h
341
345
 
342
- # Set x-goog-api-client and x-goog-user-project headers
346
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
343
347
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
344
348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
345
349
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
346
350
  transports_version_send: [:rest]
347
351
 
352
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
348
353
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
349
354
 
350
355
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
@@ -434,12 +439,13 @@ module Google
434
439
  # Customize the options with defaults
435
440
  call_metadata = @config.rpcs.create_service.metadata.to_h
436
441
 
437
- # Set x-goog-api-client and x-goog-user-project headers
442
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
438
443
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
439
444
  lib_name: @config.lib_name, lib_version: @config.lib_version,
440
445
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
441
446
  transports_version_send: [:rest]
442
447
 
448
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
443
449
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
444
450
 
445
451
  options.apply_defaults timeout: @config.rpcs.create_service.timeout,
@@ -529,12 +535,13 @@ module Google
529
535
  # Customize the options with defaults
530
536
  call_metadata = @config.rpcs.delete_service.metadata.to_h
531
537
 
532
- # Set x-goog-api-client and x-goog-user-project headers
538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
533
539
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
534
540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
535
541
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
536
542
  transports_version_send: [:rest]
537
543
 
544
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
@@ -622,12 +629,13 @@ module Google
622
629
  # Customize the options with defaults
623
630
  call_metadata = @config.rpcs.undelete_service.metadata.to_h
624
631
 
625
- # Set x-goog-api-client and x-goog-user-project headers
632
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
633
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
634
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
635
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
629
636
  transports_version_send: [:rest]
630
637
 
638
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
631
639
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
632
640
 
633
641
  options.apply_defaults timeout: @config.rpcs.undelete_service.timeout,
@@ -713,12 +721,13 @@ module Google
713
721
  # Customize the options with defaults
714
722
  call_metadata = @config.rpcs.list_service_configs.metadata.to_h
715
723
 
716
- # Set x-goog-api-client and x-goog-user-project headers
724
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
717
725
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
718
726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
719
727
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
720
728
  transports_version_send: [:rest]
721
729
 
730
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
722
731
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
723
732
 
724
733
  options.apply_defaults timeout: @config.rpcs.list_service_configs.timeout,
@@ -802,12 +811,13 @@ module Google
802
811
  # Customize the options with defaults
803
812
  call_metadata = @config.rpcs.get_service_config.metadata.to_h
804
813
 
805
- # Set x-goog-api-client and x-goog-user-project headers
814
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
806
815
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
807
816
  lib_name: @config.lib_name, lib_version: @config.lib_version,
808
817
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
809
818
  transports_version_send: [:rest]
810
819
 
820
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
811
821
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
812
822
 
813
823
  options.apply_defaults timeout: @config.rpcs.get_service_config.timeout,
@@ -891,12 +901,13 @@ module Google
891
901
  # Customize the options with defaults
892
902
  call_metadata = @config.rpcs.create_service_config.metadata.to_h
893
903
 
894
- # Set x-goog-api-client and x-goog-user-project headers
904
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
895
905
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
896
906
  lib_name: @config.lib_name, lib_version: @config.lib_version,
897
907
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
898
908
  transports_version_send: [:rest]
899
909
 
910
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
900
911
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
901
912
 
902
913
  options.apply_defaults timeout: @config.rpcs.create_service_config.timeout,
@@ -997,12 +1008,13 @@ module Google
997
1008
  # Customize the options with defaults
998
1009
  call_metadata = @config.rpcs.submit_config_source.metadata.to_h
999
1010
 
1000
- # Set x-goog-api-client and x-goog-user-project headers
1011
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1001
1012
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1002
1013
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1003
1014
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
1004
1015
  transports_version_send: [:rest]
1005
1016
 
1017
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1006
1018
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1007
1019
 
1008
1020
  options.apply_defaults timeout: @config.rpcs.submit_config_source.timeout,
@@ -1099,12 +1111,13 @@ module Google
1099
1111
  # Customize the options with defaults
1100
1112
  call_metadata = @config.rpcs.list_service_rollouts.metadata.to_h
1101
1113
 
1102
- # Set x-goog-api-client and x-goog-user-project headers
1114
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1103
1115
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1104
1116
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1105
1117
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
1106
1118
  transports_version_send: [:rest]
1107
1119
 
1120
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1108
1121
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1109
1122
 
1110
1123
  options.apply_defaults timeout: @config.rpcs.list_service_rollouts.timeout,
@@ -1183,12 +1196,13 @@ module Google
1183
1196
  # Customize the options with defaults
1184
1197
  call_metadata = @config.rpcs.get_service_rollout.metadata.to_h
1185
1198
 
1186
- # Set x-goog-api-client and x-goog-user-project headers
1199
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1187
1200
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1188
1201
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1189
1202
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
1190
1203
  transports_version_send: [:rest]
1191
1204
 
1205
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1192
1206
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1193
1207
 
1194
1208
  options.apply_defaults timeout: @config.rpcs.get_service_rollout.timeout,
@@ -1285,12 +1299,13 @@ module Google
1285
1299
  # Customize the options with defaults
1286
1300
  call_metadata = @config.rpcs.create_service_rollout.metadata.to_h
1287
1301
 
1288
- # Set x-goog-api-client and x-goog-user-project headers
1302
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1289
1303
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1290
1304
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1291
1305
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
1292
1306
  transports_version_send: [:rest]
1293
1307
 
1308
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1294
1309
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1295
1310
 
1296
1311
  options.apply_defaults timeout: @config.rpcs.create_service_rollout.timeout,
@@ -1384,12 +1399,13 @@ module Google
1384
1399
  # Customize the options with defaults
1385
1400
  call_metadata = @config.rpcs.generate_config_report.metadata.to_h
1386
1401
 
1387
- # Set x-goog-api-client and x-goog-user-project headers
1402
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1388
1403
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1389
1404
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1390
1405
  gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION,
1391
1406
  transports_version_send: [:rest]
1392
1407
 
1408
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1393
1409
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1394
1410
 
1395
1411
  options.apply_defaults timeout: @config.rpcs.generate_config_report.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 = "servicemanagement.$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::ServiceManagement::V1::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::ServiceManagement::V1::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::ServiceManagement::V1::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::ServiceManagement::V1::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceManagement
23
23
  module V1
24
- VERSION = "0.11.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -31,7 +31,7 @@ module Google
31
31
  # content: (== include google/foo/overview.md ==)
32
32
  # - name: Tutorial
33
33
  # content: (== include google/foo/tutorial.md ==)
34
- # subpages;
34
+ # subpages:
35
35
  # - name: Java
36
36
  # content: (== include google/foo/tutorial_java.md ==)
37
37
  # rules:
@@ -41,7 +41,7 @@ module Google
41
41
  # @return [::String]
42
42
  # Required. The monitored resource type. For example, the type
43
43
  # `"cloudsql_database"` represents databases in Google Cloud SQL.
44
- # For a list of types, see [Monitoring resource
44
+ # For a list of types, see [Monitored resource
45
45
  # types](https://cloud.google.com/monitoring/api/resources)
46
46
  # and [Logging resource
47
47
  # types](https://cloud.google.com/logging/docs/api/v2/resource-list).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_management-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common