google-cloud-service_directory-v1beta1 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a47a10c0c1e6914bdcca59de51e83e2a90f6853817b6d65d4f5efd51855bf8bb
4
- data.tar.gz: 266778a35d29211283f1a3f77699505d23898bd9c0838fa2410d1f444accb436
3
+ metadata.gz: 70ab0cfcafe400def5b567105502bb2e63648502f3f1cdb6d2af24d8e1e8939c
4
+ data.tar.gz: 74fc52eab7bb8ad708c1998d6c1bcfdb84c2c10a271eef717652b09288552c2a
5
5
  SHA512:
6
- metadata.gz: dc95c153a6b48747a1e61dd8e244df46620b828cd8498092d204fc45013e41a5ca9395a997bc057d96da31021eec648c1596deefb993d18aec5b27052245a197
7
- data.tar.gz: 8bc84760373006bf840ec9d98e88ba9bd045eb73a052f510c6c3ffb121bda8445e4c4d1067b8b239eaee24323f7474fa46945ab98e8ee71012619bac3083b150
6
+ metadata.gz: 275360801dd674154ef6239cdd804f30f6a6c82eb711828430e1f3c0e4893e2116725a2f4d957ea37da0c0082a2b110dcbca063c9f7bffcafb160125b045d733
7
+ data.tar.gz: 194b06dd93f23188e89c119597b126bbafe39887e3855ac9360d79cfcff53561e77840dd3bd1c82be0e8eeb8227692880769309d66ce6101ac4524d4ad3cccf7
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all LookupService clients:
47
- #
48
- # ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all LookupService clients
47
+ # ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new LookupService client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new LookupService client with the default
105
- # configuration:
101
+ # @example
106
102
  #
107
- # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
108
105
  #
109
- # To create a new LookupService client with a custom
110
- # configuration:
111
- #
112
- # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the LookupService client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -250,7 +244,9 @@ module Google
250
244
  options.apply_defaults timeout: @config.rpcs.resolve_service.timeout,
251
245
  metadata: metadata,
252
246
  retry_policy: @config.rpcs.resolve_service.retry_policy
253
- options.apply_defaults metadata: @config.metadata,
247
+
248
+ options.apply_defaults timeout: @config.timeout,
249
+ metadata: @config.metadata,
254
250
  retry_policy: @config.retry_policy
255
251
 
256
252
  @lookup_service_stub.call_rpc :resolve_service, request, options: options do |response, operation|
@@ -274,22 +270,21 @@ module Google
274
270
  # Configuration can be applied globally to all clients, or to a single client
275
271
  # on construction.
276
272
  #
277
- # # Examples
278
- #
279
- # To modify the global config, setting the timeout for resolve_service
280
- # to 20 seconds, and all remaining timeouts to 10 seconds:
281
- #
282
- # ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
283
- # config.timeout = 10.0
284
- # config.rpcs.resolve_service.timeout = 20.0
285
- # end
286
- #
287
- # To apply the above configuration only to a new client:
288
- #
289
- # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
290
- # config.timeout = 10.0
291
- # config.rpcs.resolve_service.timeout = 20.0
292
- # end
273
+ # @example
274
+ #
275
+ # # Modify the global config, setting the timeout for
276
+ # # resolve_service to 20 seconds,
277
+ # # and all remaining timeouts to 10 seconds.
278
+ # ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
279
+ # config.timeout = 10.0
280
+ # config.rpcs.resolve_service.timeout = 20.0
281
+ # end
282
+ #
283
+ # # Apply the above configuration only to a new client.
284
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
285
+ # config.timeout = 10.0
286
+ # config.rpcs.resolve_service.timeout = 20.0
287
+ # end
293
288
  #
294
289
  # @!attribute [rw] endpoint
295
290
  # The hostname or hostname:port of the service endpoint.
@@ -55,13 +55,12 @@ module Google
55
55
  # See {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client::Configuration}
56
56
  # for a description of the configuration fields.
57
57
  #
58
- # ## Example
58
+ # @example
59
59
  #
60
- # To modify the configuration for all RegistrationService clients:
61
- #
62
- # ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
63
- # config.timeout = 10.0
64
- # end
60
+ # # Modify the configuration for all RegistrationService clients
61
+ # ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
62
+ # config.timeout = 10.0
63
+ # end
65
64
  #
66
65
  # @yield [config] Configure the Client client.
67
66
  # @yieldparam config [Client::Configuration]
@@ -113,19 +112,15 @@ module Google
113
112
  ##
114
113
  # Create a new RegistrationService client object.
115
114
  #
116
- # ## Examples
117
- #
118
- # To create a new RegistrationService client with the default
119
- # configuration:
115
+ # @example
120
116
  #
121
- # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
122
119
  #
123
- # To create a new RegistrationService client with a custom
124
- # configuration:
125
- #
126
- # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
127
- # config.timeout = 10.0
128
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
129
124
  #
130
125
  # @yield [config] Configure the RegistrationService client.
131
126
  # @yieldparam config [Client::Configuration]
@@ -145,10 +140,9 @@ module Google
145
140
 
146
141
  # Create credentials
147
142
  credentials = @config.credentials
148
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
144
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
151
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
146
  !@config.endpoint.split(".").first.include?("-")
153
147
  credentials ||= Credentials.default scope: @config.scope,
154
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -235,7 +229,9 @@ module Google
235
229
  options.apply_defaults timeout: @config.rpcs.create_namespace.timeout,
236
230
  metadata: metadata,
237
231
  retry_policy: @config.rpcs.create_namespace.retry_policy
238
- options.apply_defaults metadata: @config.metadata,
232
+
233
+ options.apply_defaults timeout: @config.timeout,
234
+ metadata: @config.metadata,
239
235
  retry_policy: @config.retry_policy
240
236
 
241
237
  @registration_service_stub.call_rpc :create_namespace, request, options: options do |response, operation|
@@ -345,7 +341,9 @@ module Google
345
341
  options.apply_defaults timeout: @config.rpcs.list_namespaces.timeout,
346
342
  metadata: metadata,
347
343
  retry_policy: @config.rpcs.list_namespaces.retry_policy
348
- options.apply_defaults metadata: @config.metadata,
344
+
345
+ options.apply_defaults timeout: @config.timeout,
346
+ metadata: @config.metadata,
349
347
  retry_policy: @config.retry_policy
350
348
 
351
349
  @registration_service_stub.call_rpc :list_namespaces, request, options: options do |response, operation|
@@ -412,7 +410,9 @@ module Google
412
410
  options.apply_defaults timeout: @config.rpcs.get_namespace.timeout,
413
411
  metadata: metadata,
414
412
  retry_policy: @config.rpcs.get_namespace.retry_policy
415
- options.apply_defaults metadata: @config.metadata,
413
+
414
+ options.apply_defaults timeout: @config.timeout,
415
+ metadata: @config.metadata,
416
416
  retry_policy: @config.retry_policy
417
417
 
418
418
  @registration_service_stub.call_rpc :get_namespace, request, options: options do |response, operation|
@@ -480,7 +480,9 @@ module Google
480
480
  options.apply_defaults timeout: @config.rpcs.update_namespace.timeout,
481
481
  metadata: metadata,
482
482
  retry_policy: @config.rpcs.update_namespace.retry_policy
483
- options.apply_defaults metadata: @config.metadata,
483
+
484
+ options.apply_defaults timeout: @config.timeout,
485
+ metadata: @config.metadata,
484
486
  retry_policy: @config.retry_policy
485
487
 
486
488
  @registration_service_stub.call_rpc :update_namespace, request, options: options do |response, operation|
@@ -547,7 +549,9 @@ module Google
547
549
  options.apply_defaults timeout: @config.rpcs.delete_namespace.timeout,
548
550
  metadata: metadata,
549
551
  retry_policy: @config.rpcs.delete_namespace.retry_policy
550
- options.apply_defaults metadata: @config.metadata,
552
+
553
+ options.apply_defaults timeout: @config.timeout,
554
+ metadata: @config.metadata,
551
555
  retry_policy: @config.retry_policy
552
556
 
553
557
  @registration_service_stub.call_rpc :delete_namespace, request, options: options do |response, operation|
@@ -623,7 +627,9 @@ module Google
623
627
  options.apply_defaults timeout: @config.rpcs.create_service.timeout,
624
628
  metadata: metadata,
625
629
  retry_policy: @config.rpcs.create_service.retry_policy
626
- options.apply_defaults metadata: @config.metadata,
630
+
631
+ options.apply_defaults timeout: @config.timeout,
632
+ metadata: @config.metadata,
627
633
  retry_policy: @config.retry_policy
628
634
 
629
635
  @registration_service_stub.call_rpc :create_service, request, options: options do |response, operation|
@@ -737,7 +743,9 @@ module Google
737
743
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
738
744
  metadata: metadata,
739
745
  retry_policy: @config.rpcs.list_services.retry_policy
740
- options.apply_defaults metadata: @config.metadata,
746
+
747
+ options.apply_defaults timeout: @config.timeout,
748
+ metadata: @config.metadata,
741
749
  retry_policy: @config.retry_policy
742
750
 
743
751
  @registration_service_stub.call_rpc :list_services, request, options: options do |response, operation|
@@ -804,7 +812,9 @@ module Google
804
812
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
805
813
  metadata: metadata,
806
814
  retry_policy: @config.rpcs.get_service.retry_policy
807
- options.apply_defaults metadata: @config.metadata,
815
+
816
+ options.apply_defaults timeout: @config.timeout,
817
+ metadata: @config.metadata,
808
818
  retry_policy: @config.retry_policy
809
819
 
810
820
  @registration_service_stub.call_rpc :get_service, request, options: options do |response, operation|
@@ -872,7 +882,9 @@ module Google
872
882
  options.apply_defaults timeout: @config.rpcs.update_service.timeout,
873
883
  metadata: metadata,
874
884
  retry_policy: @config.rpcs.update_service.retry_policy
875
- options.apply_defaults metadata: @config.metadata,
885
+
886
+ options.apply_defaults timeout: @config.timeout,
887
+ metadata: @config.metadata,
876
888
  retry_policy: @config.retry_policy
877
889
 
878
890
  @registration_service_stub.call_rpc :update_service, request, options: options do |response, operation|
@@ -939,7 +951,9 @@ module Google
939
951
  options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
940
952
  metadata: metadata,
941
953
  retry_policy: @config.rpcs.delete_service.retry_policy
942
- options.apply_defaults metadata: @config.metadata,
954
+
955
+ options.apply_defaults timeout: @config.timeout,
956
+ metadata: @config.metadata,
943
957
  retry_policy: @config.retry_policy
944
958
 
945
959
  @registration_service_stub.call_rpc :delete_service, request, options: options do |response, operation|
@@ -1015,7 +1029,9 @@ module Google
1015
1029
  options.apply_defaults timeout: @config.rpcs.create_endpoint.timeout,
1016
1030
  metadata: metadata,
1017
1031
  retry_policy: @config.rpcs.create_endpoint.retry_policy
1018
- options.apply_defaults metadata: @config.metadata,
1032
+
1033
+ options.apply_defaults timeout: @config.timeout,
1034
+ metadata: @config.metadata,
1019
1035
  retry_policy: @config.retry_policy
1020
1036
 
1021
1037
  @registration_service_stub.call_rpc :create_endpoint, request, options: options do |response, operation|
@@ -1132,7 +1148,9 @@ module Google
1132
1148
  options.apply_defaults timeout: @config.rpcs.list_endpoints.timeout,
1133
1149
  metadata: metadata,
1134
1150
  retry_policy: @config.rpcs.list_endpoints.retry_policy
1135
- options.apply_defaults metadata: @config.metadata,
1151
+
1152
+ options.apply_defaults timeout: @config.timeout,
1153
+ metadata: @config.metadata,
1136
1154
  retry_policy: @config.retry_policy
1137
1155
 
1138
1156
  @registration_service_stub.call_rpc :list_endpoints, request, options: options do |response, operation|
@@ -1199,7 +1217,9 @@ module Google
1199
1217
  options.apply_defaults timeout: @config.rpcs.get_endpoint.timeout,
1200
1218
  metadata: metadata,
1201
1219
  retry_policy: @config.rpcs.get_endpoint.retry_policy
1202
- options.apply_defaults metadata: @config.metadata,
1220
+
1221
+ options.apply_defaults timeout: @config.timeout,
1222
+ metadata: @config.metadata,
1203
1223
  retry_policy: @config.retry_policy
1204
1224
 
1205
1225
  @registration_service_stub.call_rpc :get_endpoint, request, options: options do |response, operation|
@@ -1267,7 +1287,9 @@ module Google
1267
1287
  options.apply_defaults timeout: @config.rpcs.update_endpoint.timeout,
1268
1288
  metadata: metadata,
1269
1289
  retry_policy: @config.rpcs.update_endpoint.retry_policy
1270
- options.apply_defaults metadata: @config.metadata,
1290
+
1291
+ options.apply_defaults timeout: @config.timeout,
1292
+ metadata: @config.metadata,
1271
1293
  retry_policy: @config.retry_policy
1272
1294
 
1273
1295
  @registration_service_stub.call_rpc :update_endpoint, request, options: options do |response, operation|
@@ -1333,7 +1355,9 @@ module Google
1333
1355
  options.apply_defaults timeout: @config.rpcs.delete_endpoint.timeout,
1334
1356
  metadata: metadata,
1335
1357
  retry_policy: @config.rpcs.delete_endpoint.retry_policy
1336
- options.apply_defaults metadata: @config.metadata,
1358
+
1359
+ options.apply_defaults timeout: @config.timeout,
1360
+ metadata: @config.metadata,
1337
1361
  retry_policy: @config.retry_policy
1338
1362
 
1339
1363
  @registration_service_stub.call_rpc :delete_endpoint, request, options: options do |response, operation|
@@ -1403,7 +1427,9 @@ module Google
1403
1427
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
1404
1428
  metadata: metadata,
1405
1429
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
1406
- options.apply_defaults metadata: @config.metadata,
1430
+
1431
+ options.apply_defaults timeout: @config.timeout,
1432
+ metadata: @config.metadata,
1407
1433
  retry_policy: @config.retry_policy
1408
1434
 
1409
1435
  @registration_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -1475,7 +1501,9 @@ module Google
1475
1501
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
1476
1502
  metadata: metadata,
1477
1503
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
1478
- options.apply_defaults metadata: @config.metadata,
1504
+
1505
+ options.apply_defaults timeout: @config.timeout,
1506
+ metadata: @config.metadata,
1479
1507
  retry_policy: @config.retry_policy
1480
1508
 
1481
1509
  @registration_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -1547,7 +1575,9 @@ module Google
1547
1575
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1548
1576
  metadata: metadata,
1549
1577
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1550
- options.apply_defaults metadata: @config.metadata,
1578
+
1579
+ options.apply_defaults timeout: @config.timeout,
1580
+ metadata: @config.metadata,
1551
1581
  retry_policy: @config.retry_policy
1552
1582
 
1553
1583
  @registration_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1571,22 +1601,21 @@ module Google
1571
1601
  # Configuration can be applied globally to all clients, or to a single client
1572
1602
  # on construction.
1573
1603
  #
1574
- # # Examples
1575
- #
1576
- # To modify the global config, setting the timeout for create_namespace
1577
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1578
- #
1579
- # ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
1580
- # config.timeout = 10.0
1581
- # config.rpcs.create_namespace.timeout = 20.0
1582
- # end
1583
- #
1584
- # To apply the above configuration only to a new client:
1585
- #
1586
- # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
1587
- # config.timeout = 10.0
1588
- # config.rpcs.create_namespace.timeout = 20.0
1589
- # end
1604
+ # @example
1605
+ #
1606
+ # # Modify the global config, setting the timeout for
1607
+ # # create_namespace to 20 seconds,
1608
+ # # and all remaining timeouts to 10 seconds.
1609
+ # ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
1610
+ # config.timeout = 10.0
1611
+ # config.rpcs.create_namespace.timeout = 20.0
1612
+ # end
1613
+ #
1614
+ # # Apply the above configuration only to a new client.
1615
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
1616
+ # config.timeout = 10.0
1617
+ # config.rpcs.create_namespace.timeout = 20.0
1618
+ # end
1590
1619
  #
1591
1620
  # @!attribute [rw] endpoint
1592
1621
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceDirectory
23
23
  module V1beta1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.7.2"
25
25
  end
26
26
  end
27
27
  end
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.7.1
4
+ version: 0.7.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: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a