google-cloud-service_directory-v1beta1 0.15.0 → 0.15.2

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: bf622de8187ea593037cd5878b637ff42e2ba8aba4ee7f9cb11b52bd3e2eb126
4
- data.tar.gz: 158c3c2052fae0f2515551d17465cc9c1b6c3170d5a2fb82dfd394e56179e963
3
+ metadata.gz: 61d2bcdda20df1593947d6d0084639a66d56ca519af1c76f3f9061b19e9a5be7
4
+ data.tar.gz: f837af9278d9e63ccdbf8e053ceca695f13506a599f6ed82dc9c063116271220
5
5
  SHA512:
6
- metadata.gz: 007a6a0d30e858cc08a9de51ad5dd489c8addbd986d94f24264413e9184242a09ecb4fdb0e066b4775f7fa15c76a8a963413153e42864576ea00425a12e88800
7
- data.tar.gz: 7b1298e33d61cd88797e21f8a1245c2dd22ca5c3540568abc3591d7c4ca8b39c3f751f7c8d36a847c6137e4b7896bc497f1ff669bcbe8f052f92fa13085fa416
6
+ metadata.gz: 9e0effec5e7770efba64b7f4abbf569852fe8370dff47a61686dee31e4f9c303ebb4b848576272fd795310d4e2ad6f5cda4f969689b482a0e6d6cbd6b30a613b
7
+ data.tar.gz: 88f32ba662552381e6568e6582dc765ebe37e6f9fa961845ee07f01fe2ddd43ac86aa2b91992243f9e090dfd49242694b1eb6d082a67399237962c8349dfe9e3
@@ -31,6 +31,9 @@ module Google
31
31
  # Service Directory API for looking up service data at runtime.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "servicedirectory.$UNIVERSE_DOMAIN$"
36
39
 
@@ -278,10 +281,11 @@ module Google
278
281
  # Customize the options with defaults
279
282
  metadata = @config.rpcs.resolve_service.metadata.to_h
280
283
 
281
- # Set x-goog-api-client and x-goog-user-project headers
284
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
282
285
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
283
286
  lib_name: @config.lib_name, lib_version: @config.lib_version,
284
287
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
288
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
285
289
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
286
290
 
287
291
  header_params = {}
@@ -33,6 +33,9 @@ module Google
33
33
  # Service Directory API for looking up service data at runtime.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "servicedirectory.$UNIVERSE_DOMAIN$"
38
41
 
@@ -271,12 +274,13 @@ module Google
271
274
  # Customize the options with defaults
272
275
  call_metadata = @config.rpcs.resolve_service.metadata.to_h
273
276
 
274
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
278
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
280
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
278
281
  transports_version_send: [:rest]
279
282
 
283
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
280
284
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
285
 
282
286
  options.apply_defaults timeout: @config.rpcs.resolve_service.timeout,
@@ -45,6 +45,9 @@ module Google
45
45
  # `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
46
46
  #
47
47
  class Client
48
+ # @private
49
+ API_VERSION = ""
50
+
48
51
  # @private
49
52
  DEFAULT_ENDPOINT_TEMPLATE = "servicedirectory.$UNIVERSE_DOMAIN$"
50
53
 
@@ -260,10 +263,11 @@ module Google
260
263
  # Customize the options with defaults
261
264
  metadata = @config.rpcs.create_namespace.metadata.to_h
262
265
 
263
- # Set x-goog-api-client and x-goog-user-project headers
266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
267
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
269
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
270
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  header_params = {}
@@ -312,7 +316,7 @@ module Google
312
316
  # Required. The resource name of the project and location whose namespaces
313
317
  # you'd like to list.
314
318
  # @param page_size [::Integer]
315
- # Optional. The maximum number of items to return.
319
+ # Optional. The maximum number of items to return. The default value is 100.
316
320
  # @param page_token [::String]
317
321
  # Optional. The next_page_token value returned from a previous List request,
318
322
  # if any.
@@ -397,10 +401,11 @@ module Google
397
401
  # Customize the options with defaults
398
402
  metadata = @config.rpcs.list_namespaces.metadata.to_h
399
403
 
400
- # Set x-goog-api-client and x-goog-user-project headers
404
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
401
405
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
402
406
  lib_name: @config.lib_name, lib_version: @config.lib_version,
403
407
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
408
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
404
409
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
410
 
406
411
  header_params = {}
@@ -483,10 +488,11 @@ module Google
483
488
  # Customize the options with defaults
484
489
  metadata = @config.rpcs.get_namespace.metadata.to_h
485
490
 
486
- # Set x-goog-api-client and x-goog-user-project headers
491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
487
492
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
488
493
  lib_name: @config.lib_name, lib_version: @config.lib_version,
489
494
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
495
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
490
496
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
491
497
 
492
498
  header_params = {}
@@ -570,10 +576,11 @@ module Google
570
576
  # Customize the options with defaults
571
577
  metadata = @config.rpcs.update_namespace.metadata.to_h
572
578
 
573
- # Set x-goog-api-client and x-goog-user-project headers
579
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
574
580
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
575
581
  lib_name: @config.lib_name, lib_version: @config.lib_version,
576
582
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
583
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
577
584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
578
585
 
579
586
  header_params = {}
@@ -656,10 +663,11 @@ module Google
656
663
  # Customize the options with defaults
657
664
  metadata = @config.rpcs.delete_namespace.metadata.to_h
658
665
 
659
- # Set x-goog-api-client and x-goog-user-project headers
666
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
660
667
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
661
668
  lib_name: @config.lib_name, lib_version: @config.lib_version,
662
669
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
670
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
671
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
672
 
665
673
  header_params = {}
@@ -751,10 +759,11 @@ module Google
751
759
  # Customize the options with defaults
752
760
  metadata = @config.rpcs.create_service.metadata.to_h
753
761
 
754
- # Set x-goog-api-client and x-goog-user-project headers
762
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
755
763
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
756
764
  lib_name: @config.lib_name, lib_version: @config.lib_version,
757
765
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
766
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
758
767
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
759
768
 
760
769
  header_params = {}
@@ -803,7 +812,7 @@ module Google
803
812
  # Required. The resource name of the namespace whose services you'd
804
813
  # like to list.
805
814
  # @param page_size [::Integer]
806
- # Optional. The maximum number of items to return.
815
+ # Optional. The maximum number of items to return. The default value is 100.
807
816
  # @param page_token [::String]
808
817
  # Optional. The next_page_token value returned from a previous List request,
809
818
  # if any.
@@ -891,10 +900,11 @@ module Google
891
900
  # Customize the options with defaults
892
901
  metadata = @config.rpcs.list_services.metadata.to_h
893
902
 
894
- # Set x-goog-api-client and x-goog-user-project headers
903
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
895
904
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
896
905
  lib_name: @config.lib_name, lib_version: @config.lib_version,
897
906
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
907
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
898
908
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
899
909
 
900
910
  header_params = {}
@@ -977,10 +987,11 @@ module Google
977
987
  # Customize the options with defaults
978
988
  metadata = @config.rpcs.get_service.metadata.to_h
979
989
 
980
- # Set x-goog-api-client and x-goog-user-project headers
990
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
981
991
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
982
992
  lib_name: @config.lib_name, lib_version: @config.lib_version,
983
993
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
994
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
984
995
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
985
996
 
986
997
  header_params = {}
@@ -1064,10 +1075,11 @@ module Google
1064
1075
  # Customize the options with defaults
1065
1076
  metadata = @config.rpcs.update_service.metadata.to_h
1066
1077
 
1067
- # Set x-goog-api-client and x-goog-user-project headers
1078
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1068
1079
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1069
1080
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1070
1081
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1082
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1071
1083
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1072
1084
 
1073
1085
  header_params = {}
@@ -1150,10 +1162,11 @@ module Google
1150
1162
  # Customize the options with defaults
1151
1163
  metadata = @config.rpcs.delete_service.metadata.to_h
1152
1164
 
1153
- # Set x-goog-api-client and x-goog-user-project headers
1165
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1154
1166
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1155
1167
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1156
1168
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1169
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1157
1170
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1158
1171
 
1159
1172
  header_params = {}
@@ -1245,10 +1258,11 @@ module Google
1245
1258
  # Customize the options with defaults
1246
1259
  metadata = @config.rpcs.create_endpoint.metadata.to_h
1247
1260
 
1248
- # Set x-goog-api-client and x-goog-user-project headers
1261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1249
1262
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1250
1263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1251
1264
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1265
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1252
1266
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1253
1267
 
1254
1268
  header_params = {}
@@ -1297,7 +1311,7 @@ module Google
1297
1311
  # Required. The resource name of the service whose endpoints you'd like to
1298
1312
  # list.
1299
1313
  # @param page_size [::Integer]
1300
- # Optional. The maximum number of items to return.
1314
+ # Optional. The maximum number of items to return. The default value is 100.
1301
1315
  # @param page_token [::String]
1302
1316
  # Optional. The next_page_token value returned from a previous List request,
1303
1317
  # if any.
@@ -1387,10 +1401,11 @@ module Google
1387
1401
  # Customize the options with defaults
1388
1402
  metadata = @config.rpcs.list_endpoints.metadata.to_h
1389
1403
 
1390
- # Set x-goog-api-client and x-goog-user-project headers
1404
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1391
1405
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1392
1406
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1393
1407
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1408
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1394
1409
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1395
1410
 
1396
1411
  header_params = {}
@@ -1473,10 +1488,11 @@ module Google
1473
1488
  # Customize the options with defaults
1474
1489
  metadata = @config.rpcs.get_endpoint.metadata.to_h
1475
1490
 
1476
- # Set x-goog-api-client and x-goog-user-project headers
1491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1477
1492
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1478
1493
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1479
1494
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1495
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1480
1496
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1481
1497
 
1482
1498
  header_params = {}
@@ -1560,10 +1576,11 @@ module Google
1560
1576
  # Customize the options with defaults
1561
1577
  metadata = @config.rpcs.update_endpoint.metadata.to_h
1562
1578
 
1563
- # Set x-goog-api-client and x-goog-user-project headers
1579
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1564
1580
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1565
1581
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1566
1582
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1583
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1567
1584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1568
1585
 
1569
1586
  header_params = {}
@@ -1645,10 +1662,11 @@ module Google
1645
1662
  # Customize the options with defaults
1646
1663
  metadata = @config.rpcs.delete_endpoint.metadata.to_h
1647
1664
 
1648
- # Set x-goog-api-client and x-goog-user-project headers
1665
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1649
1666
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1650
1667
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1651
1668
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1669
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1652
1670
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1653
1671
 
1654
1672
  header_params = {}
@@ -1734,10 +1752,11 @@ module Google
1734
1752
  # Customize the options with defaults
1735
1753
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1736
1754
 
1737
- # Set x-goog-api-client and x-goog-user-project headers
1755
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1738
1756
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1739
1757
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1740
1758
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1759
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1741
1760
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1742
1761
 
1743
1762
  header_params = {}
@@ -1831,10 +1850,11 @@ module Google
1831
1850
  # Customize the options with defaults
1832
1851
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1833
1852
 
1834
- # Set x-goog-api-client and x-goog-user-project headers
1853
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1835
1854
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1836
1855
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1837
1856
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1857
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1838
1858
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1839
1859
 
1840
1860
  header_params = {}
@@ -1923,10 +1943,11 @@ module Google
1923
1943
  # Customize the options with defaults
1924
1944
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1925
1945
 
1926
- # Set x-goog-api-client and x-goog-user-project headers
1946
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1927
1947
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1928
1948
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1929
1949
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1950
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1930
1951
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1931
1952
 
1932
1953
  header_params = {}
@@ -47,6 +47,9 @@ module Google
47
47
  # `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
48
48
  #
49
49
  class Client
50
+ # @private
51
+ API_VERSION = ""
52
+
50
53
  # @private
51
54
  DEFAULT_ENDPOINT_TEMPLATE = "servicedirectory.$UNIVERSE_DOMAIN$"
52
55
 
@@ -253,12 +256,13 @@ module Google
253
256
  # Customize the options with defaults
254
257
  call_metadata = @config.rpcs.create_namespace.metadata.to_h
255
258
 
256
- # Set x-goog-api-client and x-goog-user-project headers
259
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
257
260
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
258
261
  lib_name: @config.lib_name, lib_version: @config.lib_version,
259
262
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
260
263
  transports_version_send: [:rest]
261
264
 
265
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
262
266
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
263
267
 
264
268
  options.apply_defaults timeout: @config.rpcs.create_namespace.timeout,
@@ -299,7 +303,7 @@ module Google
299
303
  # Required. The resource name of the project and location whose namespaces
300
304
  # you'd like to list.
301
305
  # @param page_size [::Integer]
302
- # Optional. The maximum number of items to return.
306
+ # Optional. The maximum number of items to return. The default value is 100.
303
307
  # @param page_token [::String]
304
308
  # Optional. The next_page_token value returned from a previous List request,
305
309
  # if any.
@@ -383,12 +387,13 @@ module Google
383
387
  # Customize the options with defaults
384
388
  call_metadata = @config.rpcs.list_namespaces.metadata.to_h
385
389
 
386
- # Set x-goog-api-client and x-goog-user-project headers
390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
387
391
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
388
392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
389
393
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
390
394
  transports_version_send: [:rest]
391
395
 
396
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
392
397
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
393
398
 
394
399
  options.apply_defaults timeout: @config.rpcs.list_namespaces.timeout,
@@ -462,12 +467,13 @@ module Google
462
467
  # Customize the options with defaults
463
468
  call_metadata = @config.rpcs.get_namespace.metadata.to_h
464
469
 
465
- # Set x-goog-api-client and x-goog-user-project headers
470
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
466
471
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
472
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
473
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
469
474
  transports_version_send: [:rest]
470
475
 
476
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
471
477
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
472
478
 
473
479
  options.apply_defaults timeout: @config.rpcs.get_namespace.timeout,
@@ -542,12 +548,13 @@ module Google
542
548
  # Customize the options with defaults
543
549
  call_metadata = @config.rpcs.update_namespace.metadata.to_h
544
550
 
545
- # Set x-goog-api-client and x-goog-user-project headers
551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
546
552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
547
553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
548
554
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
549
555
  transports_version_send: [:rest]
550
556
 
557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
551
558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
552
559
 
553
560
  options.apply_defaults timeout: @config.rpcs.update_namespace.timeout,
@@ -621,12 +628,13 @@ module Google
621
628
  # Customize the options with defaults
622
629
  call_metadata = @config.rpcs.delete_namespace.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
  call_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::ServiceDirectory::V1beta1::VERSION,
628
635
  transports_version_send: [:rest]
629
636
 
637
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
630
638
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
631
639
 
632
640
  options.apply_defaults timeout: @config.rpcs.delete_namespace.timeout,
@@ -709,12 +717,13 @@ module Google
709
717
  # Customize the options with defaults
710
718
  call_metadata = @config.rpcs.create_service.metadata.to_h
711
719
 
712
- # Set x-goog-api-client and x-goog-user-project headers
720
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
713
721
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
714
722
  lib_name: @config.lib_name, lib_version: @config.lib_version,
715
723
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
716
724
  transports_version_send: [:rest]
717
725
 
726
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
718
727
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
719
728
 
720
729
  options.apply_defaults timeout: @config.rpcs.create_service.timeout,
@@ -755,7 +764,7 @@ module Google
755
764
  # Required. The resource name of the namespace whose services you'd
756
765
  # like to list.
757
766
  # @param page_size [::Integer]
758
- # Optional. The maximum number of items to return.
767
+ # Optional. The maximum number of items to return. The default value is 100.
759
768
  # @param page_token [::String]
760
769
  # Optional. The next_page_token value returned from a previous List request,
761
770
  # if any.
@@ -842,12 +851,13 @@ module Google
842
851
  # Customize the options with defaults
843
852
  call_metadata = @config.rpcs.list_services.metadata.to_h
844
853
 
845
- # Set x-goog-api-client and x-goog-user-project headers
854
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
846
855
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
847
856
  lib_name: @config.lib_name, lib_version: @config.lib_version,
848
857
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
849
858
  transports_version_send: [:rest]
850
859
 
860
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
851
861
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
862
 
853
863
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
@@ -921,12 +931,13 @@ module Google
921
931
  # Customize the options with defaults
922
932
  call_metadata = @config.rpcs.get_service.metadata.to_h
923
933
 
924
- # Set x-goog-api-client and x-goog-user-project headers
934
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
925
935
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
926
936
  lib_name: @config.lib_name, lib_version: @config.lib_version,
927
937
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
928
938
  transports_version_send: [:rest]
929
939
 
940
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
930
941
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
931
942
 
932
943
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
@@ -1001,12 +1012,13 @@ module Google
1001
1012
  # Customize the options with defaults
1002
1013
  call_metadata = @config.rpcs.update_service.metadata.to_h
1003
1014
 
1004
- # Set x-goog-api-client and x-goog-user-project headers
1015
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1005
1016
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1006
1017
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1007
1018
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1008
1019
  transports_version_send: [:rest]
1009
1020
 
1021
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1010
1022
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1011
1023
 
1012
1024
  options.apply_defaults timeout: @config.rpcs.update_service.timeout,
@@ -1080,12 +1092,13 @@ module Google
1080
1092
  # Customize the options with defaults
1081
1093
  call_metadata = @config.rpcs.delete_service.metadata.to_h
1082
1094
 
1083
- # Set x-goog-api-client and x-goog-user-project headers
1095
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1084
1096
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1085
1097
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1086
1098
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1087
1099
  transports_version_send: [:rest]
1088
1100
 
1101
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1089
1102
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1090
1103
 
1091
1104
  options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
@@ -1168,12 +1181,13 @@ module Google
1168
1181
  # Customize the options with defaults
1169
1182
  call_metadata = @config.rpcs.create_endpoint.metadata.to_h
1170
1183
 
1171
- # Set x-goog-api-client and x-goog-user-project headers
1184
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1172
1185
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1173
1186
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1174
1187
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1175
1188
  transports_version_send: [:rest]
1176
1189
 
1190
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1177
1191
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1178
1192
 
1179
1193
  options.apply_defaults timeout: @config.rpcs.create_endpoint.timeout,
@@ -1214,7 +1228,7 @@ module Google
1214
1228
  # Required. The resource name of the service whose endpoints you'd like to
1215
1229
  # list.
1216
1230
  # @param page_size [::Integer]
1217
- # Optional. The maximum number of items to return.
1231
+ # Optional. The maximum number of items to return. The default value is 100.
1218
1232
  # @param page_token [::String]
1219
1233
  # Optional. The next_page_token value returned from a previous List request,
1220
1234
  # if any.
@@ -1303,12 +1317,13 @@ module Google
1303
1317
  # Customize the options with defaults
1304
1318
  call_metadata = @config.rpcs.list_endpoints.metadata.to_h
1305
1319
 
1306
- # Set x-goog-api-client and x-goog-user-project headers
1320
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1307
1321
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1308
1322
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1309
1323
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1310
1324
  transports_version_send: [:rest]
1311
1325
 
1326
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1312
1327
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1313
1328
 
1314
1329
  options.apply_defaults timeout: @config.rpcs.list_endpoints.timeout,
@@ -1382,12 +1397,13 @@ module Google
1382
1397
  # Customize the options with defaults
1383
1398
  call_metadata = @config.rpcs.get_endpoint.metadata.to_h
1384
1399
 
1385
- # Set x-goog-api-client and x-goog-user-project headers
1400
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1386
1401
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1387
1402
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1388
1403
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1389
1404
  transports_version_send: [:rest]
1390
1405
 
1406
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1391
1407
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1392
1408
 
1393
1409
  options.apply_defaults timeout: @config.rpcs.get_endpoint.timeout,
@@ -1462,12 +1478,13 @@ module Google
1462
1478
  # Customize the options with defaults
1463
1479
  call_metadata = @config.rpcs.update_endpoint.metadata.to_h
1464
1480
 
1465
- # Set x-goog-api-client and x-goog-user-project headers
1481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1466
1482
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1467
1483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1468
1484
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1469
1485
  transports_version_send: [:rest]
1470
1486
 
1487
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1471
1488
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1472
1489
 
1473
1490
  options.apply_defaults timeout: @config.rpcs.update_endpoint.timeout,
@@ -1540,12 +1557,13 @@ module Google
1540
1557
  # Customize the options with defaults
1541
1558
  call_metadata = @config.rpcs.delete_endpoint.metadata.to_h
1542
1559
 
1543
- # Set x-goog-api-client and x-goog-user-project headers
1560
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1544
1561
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1545
1562
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1546
1563
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1547
1564
  transports_version_send: [:rest]
1548
1565
 
1566
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1549
1567
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1550
1568
 
1551
1569
  options.apply_defaults timeout: @config.rpcs.delete_endpoint.timeout,
@@ -1622,12 +1640,13 @@ module Google
1622
1640
  # Customize the options with defaults
1623
1641
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1624
1642
 
1625
- # Set x-goog-api-client and x-goog-user-project headers
1643
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1626
1644
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1627
1645
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1628
1646
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1629
1647
  transports_version_send: [:rest]
1630
1648
 
1649
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1631
1650
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1632
1651
 
1633
1652
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1712,12 +1731,13 @@ module Google
1712
1731
  # Customize the options with defaults
1713
1732
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1714
1733
 
1715
- # Set x-goog-api-client and x-goog-user-project headers
1734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1716
1735
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1717
1736
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1718
1737
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1719
1738
  transports_version_send: [:rest]
1720
1739
 
1740
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1721
1741
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1722
1742
 
1723
1743
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1797,12 +1817,13 @@ module Google
1797
1817
  # Customize the options with defaults
1798
1818
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1799
1819
 
1800
- # Set x-goog-api-client and x-goog-user-project headers
1820
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1801
1821
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1802
1822
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1803
1823
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION,
1804
1824
  transports_version_send: [:rest]
1805
1825
 
1826
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1806
1827
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1807
1828
 
1808
1829
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceDirectory
23
23
  module V1beta1
24
- VERSION = "0.15.0"
24
+ VERSION = "0.15.2"
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
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
@@ -52,7 +52,7 @@ module Google
52
52
  # you'd like to list.
53
53
  # @!attribute [rw] page_size
54
54
  # @return [::Integer]
55
- # Optional. The maximum number of items to return.
55
+ # Optional. The maximum number of items to return. The default value is 100.
56
56
  # @!attribute [rw] page_token
57
57
  # @return [::String]
58
58
  # Optional. The next_page_token value returned from a previous List request,
@@ -183,7 +183,7 @@ module Google
183
183
  # like to list.
184
184
  # @!attribute [rw] page_size
185
185
  # @return [::Integer]
186
- # Optional. The maximum number of items to return.
186
+ # Optional. The maximum number of items to return. The default value is 100.
187
187
  # @!attribute [rw] page_token
188
188
  # @return [::String]
189
189
  # Optional. The next_page_token value returned from a previous List request,
@@ -319,7 +319,7 @@ module Google
319
319
  # list.
320
320
  # @!attribute [rw] page_size
321
321
  # @return [::Integer]
322
- # Optional. The maximum number of items to return.
322
+ # Optional. The maximum number of items to return. The default value is 100.
323
323
  # @!attribute [rw] page_token
324
324
  # @return [::String]
325
325
  # Optional. The next_page_token value returned from a previous List request,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_directory-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.2
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-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common