google-cloud-service_directory-v1 0.3.2 → 0.3.3

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: 0222cd31287ee425eb3ee5cff0d991fdb3c4b299ef259158063bbc7eb81c0018
4
- data.tar.gz: dfbc5981b4cfa8dfbf9191915f4c24fff0552db9e2219aa55bc94463f7582a57
3
+ metadata.gz: ae412af06ca1ee10a249c7e3c88d0ec3e7465959db1fb56c7e93fb145480e082
4
+ data.tar.gz: 63a1636e74207f79623eaae8f687d88ecf13c3bbffb1be1d59b7469032ff8cff
5
5
  SHA512:
6
- metadata.gz: 688405fecec04431d59e3a9f82aca0b9c1f1dc207b7a8951c5b0d1816b35b59fb43725f11afb0bc30e4c9dc20066095ed3a6ba7470c5bcd11d9c1b04c27128fa
7
- data.tar.gz: dfcb0196b7f616bae82f76993de6a31cc1f9ed743eb334f7d050fb0eec7d7a658e9a1876b63b35759f4eee7cb5cf9de8ab4af29e754653f16910dd14a8d68b53
6
+ metadata.gz: e96630b33a713e047cc0e2ca4398d8da46479a10975bc2f2d56881f94928339dab9f6389e353e8e93259b230fdd019d871d12215d4e343bf017180c61da18078
7
+ data.tar.gz: c4e08604e3f9c2412519f45a04ac577304e40f2a685e5998abf985c7fdd78719fccdb6582131f05232b22f79c35d6d72aea21b718ca8a2978acf503f1d4bcd0f
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::ServiceDirectory::V1::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::V1::LookupService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all LookupService clients
47
+ # ::Google::Cloud::ServiceDirectory::V1::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::V1::LookupService::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new
108
105
  #
109
- # To create a new LookupService client with a custom
110
- # configuration:
111
- #
112
- # client = ::Google::Cloud::ServiceDirectory::V1::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::V1::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
@@ -235,7 +229,9 @@ module Google
235
229
  options.apply_defaults timeout: @config.rpcs.resolve_service.timeout,
236
230
  metadata: metadata,
237
231
  retry_policy: @config.rpcs.resolve_service.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
  @lookup_service_stub.call_rpc :resolve_service, request, options: options do |response, operation|
@@ -259,22 +255,21 @@ module Google
259
255
  # Configuration can be applied globally to all clients, or to a single client
260
256
  # on construction.
261
257
  #
262
- # # Examples
263
- #
264
- # To modify the global config, setting the timeout for resolve_service
265
- # to 20 seconds, and all remaining timeouts to 10 seconds:
266
- #
267
- # ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.configure do |config|
268
- # config.timeout = 10.0
269
- # config.rpcs.resolve_service.timeout = 20.0
270
- # end
271
- #
272
- # To apply the above configuration only to a new client:
273
- #
274
- # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new do |config|
275
- # config.timeout = 10.0
276
- # config.rpcs.resolve_service.timeout = 20.0
277
- # end
258
+ # @example
259
+ #
260
+ # # Modify the global config, setting the timeout for
261
+ # # resolve_service to 20 seconds,
262
+ # # and all remaining timeouts to 10 seconds.
263
+ # ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.configure do |config|
264
+ # config.timeout = 10.0
265
+ # config.rpcs.resolve_service.timeout = 20.0
266
+ # end
267
+ #
268
+ # # Apply the above configuration only to a new client.
269
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new do |config|
270
+ # config.timeout = 10.0
271
+ # config.rpcs.resolve_service.timeout = 20.0
272
+ # end
278
273
  #
279
274
  # @!attribute [rw] endpoint
280
275
  # The hostname or hostname:port of the service endpoint.
@@ -55,13 +55,12 @@ module Google
55
55
  # See {::Google::Cloud::ServiceDirectory::V1::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::V1::RegistrationService::Client.configure do |config|
63
- # config.timeout = 10.0
64
- # end
60
+ # # Modify the configuration for all RegistrationService clients
61
+ # ::Google::Cloud::ServiceDirectory::V1::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::V1::RegistrationService::Client.new
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client.new
122
119
  #
123
- # To create a new RegistrationService client with a custom
124
- # configuration:
125
- #
126
- # client = ::Google::Cloud::ServiceDirectory::V1::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::V1::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|
@@ -341,7 +337,9 @@ module Google
341
337
  options.apply_defaults timeout: @config.rpcs.list_namespaces.timeout,
342
338
  metadata: metadata,
343
339
  retry_policy: @config.rpcs.list_namespaces.retry_policy
344
- options.apply_defaults metadata: @config.metadata,
340
+
341
+ options.apply_defaults timeout: @config.timeout,
342
+ metadata: @config.metadata,
345
343
  retry_policy: @config.retry_policy
346
344
 
347
345
  @registration_service_stub.call_rpc :list_namespaces, request, options: options do |response, operation|
@@ -408,7 +406,9 @@ module Google
408
406
  options.apply_defaults timeout: @config.rpcs.get_namespace.timeout,
409
407
  metadata: metadata,
410
408
  retry_policy: @config.rpcs.get_namespace.retry_policy
411
- options.apply_defaults metadata: @config.metadata,
409
+
410
+ options.apply_defaults timeout: @config.timeout,
411
+ metadata: @config.metadata,
412
412
  retry_policy: @config.retry_policy
413
413
 
414
414
  @registration_service_stub.call_rpc :get_namespace, request, options: options do |response, operation|
@@ -476,7 +476,9 @@ module Google
476
476
  options.apply_defaults timeout: @config.rpcs.update_namespace.timeout,
477
477
  metadata: metadata,
478
478
  retry_policy: @config.rpcs.update_namespace.retry_policy
479
- options.apply_defaults metadata: @config.metadata,
479
+
480
+ options.apply_defaults timeout: @config.timeout,
481
+ metadata: @config.metadata,
480
482
  retry_policy: @config.retry_policy
481
483
 
482
484
  @registration_service_stub.call_rpc :update_namespace, request, options: options do |response, operation|
@@ -543,7 +545,9 @@ module Google
543
545
  options.apply_defaults timeout: @config.rpcs.delete_namespace.timeout,
544
546
  metadata: metadata,
545
547
  retry_policy: @config.rpcs.delete_namespace.retry_policy
546
- options.apply_defaults metadata: @config.metadata,
548
+
549
+ options.apply_defaults timeout: @config.timeout,
550
+ metadata: @config.metadata,
547
551
  retry_policy: @config.retry_policy
548
552
 
549
553
  @registration_service_stub.call_rpc :delete_namespace, request, options: options do |response, operation|
@@ -619,7 +623,9 @@ module Google
619
623
  options.apply_defaults timeout: @config.rpcs.create_service.timeout,
620
624
  metadata: metadata,
621
625
  retry_policy: @config.rpcs.create_service.retry_policy
622
- options.apply_defaults metadata: @config.metadata,
626
+
627
+ options.apply_defaults timeout: @config.timeout,
628
+ metadata: @config.metadata,
623
629
  retry_policy: @config.retry_policy
624
630
 
625
631
  @registration_service_stub.call_rpc :create_service, request, options: options do |response, operation|
@@ -717,7 +723,9 @@ module Google
717
723
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
718
724
  metadata: metadata,
719
725
  retry_policy: @config.rpcs.list_services.retry_policy
720
- options.apply_defaults metadata: @config.metadata,
726
+
727
+ options.apply_defaults timeout: @config.timeout,
728
+ metadata: @config.metadata,
721
729
  retry_policy: @config.retry_policy
722
730
 
723
731
  @registration_service_stub.call_rpc :list_services, request, options: options do |response, operation|
@@ -784,7 +792,9 @@ module Google
784
792
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
785
793
  metadata: metadata,
786
794
  retry_policy: @config.rpcs.get_service.retry_policy
787
- options.apply_defaults metadata: @config.metadata,
795
+
796
+ options.apply_defaults timeout: @config.timeout,
797
+ metadata: @config.metadata,
788
798
  retry_policy: @config.retry_policy
789
799
 
790
800
  @registration_service_stub.call_rpc :get_service, request, options: options do |response, operation|
@@ -852,7 +862,9 @@ module Google
852
862
  options.apply_defaults timeout: @config.rpcs.update_service.timeout,
853
863
  metadata: metadata,
854
864
  retry_policy: @config.rpcs.update_service.retry_policy
855
- options.apply_defaults metadata: @config.metadata,
865
+
866
+ options.apply_defaults timeout: @config.timeout,
867
+ metadata: @config.metadata,
856
868
  retry_policy: @config.retry_policy
857
869
 
858
870
  @registration_service_stub.call_rpc :update_service, request, options: options do |response, operation|
@@ -919,7 +931,9 @@ module Google
919
931
  options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
920
932
  metadata: metadata,
921
933
  retry_policy: @config.rpcs.delete_service.retry_policy
922
- options.apply_defaults metadata: @config.metadata,
934
+
935
+ options.apply_defaults timeout: @config.timeout,
936
+ metadata: @config.metadata,
923
937
  retry_policy: @config.retry_policy
924
938
 
925
939
  @registration_service_stub.call_rpc :delete_service, request, options: options do |response, operation|
@@ -995,7 +1009,9 @@ module Google
995
1009
  options.apply_defaults timeout: @config.rpcs.create_endpoint.timeout,
996
1010
  metadata: metadata,
997
1011
  retry_policy: @config.rpcs.create_endpoint.retry_policy
998
- options.apply_defaults metadata: @config.metadata,
1012
+
1013
+ options.apply_defaults timeout: @config.timeout,
1014
+ metadata: @config.metadata,
999
1015
  retry_policy: @config.retry_policy
1000
1016
 
1001
1017
  @registration_service_stub.call_rpc :create_endpoint, request, options: options do |response, operation|
@@ -1095,7 +1111,9 @@ module Google
1095
1111
  options.apply_defaults timeout: @config.rpcs.list_endpoints.timeout,
1096
1112
  metadata: metadata,
1097
1113
  retry_policy: @config.rpcs.list_endpoints.retry_policy
1098
- options.apply_defaults metadata: @config.metadata,
1114
+
1115
+ options.apply_defaults timeout: @config.timeout,
1116
+ metadata: @config.metadata,
1099
1117
  retry_policy: @config.retry_policy
1100
1118
 
1101
1119
  @registration_service_stub.call_rpc :list_endpoints, request, options: options do |response, operation|
@@ -1162,7 +1180,9 @@ module Google
1162
1180
  options.apply_defaults timeout: @config.rpcs.get_endpoint.timeout,
1163
1181
  metadata: metadata,
1164
1182
  retry_policy: @config.rpcs.get_endpoint.retry_policy
1165
- options.apply_defaults metadata: @config.metadata,
1183
+
1184
+ options.apply_defaults timeout: @config.timeout,
1185
+ metadata: @config.metadata,
1166
1186
  retry_policy: @config.retry_policy
1167
1187
 
1168
1188
  @registration_service_stub.call_rpc :get_endpoint, request, options: options do |response, operation|
@@ -1230,7 +1250,9 @@ module Google
1230
1250
  options.apply_defaults timeout: @config.rpcs.update_endpoint.timeout,
1231
1251
  metadata: metadata,
1232
1252
  retry_policy: @config.rpcs.update_endpoint.retry_policy
1233
- options.apply_defaults metadata: @config.metadata,
1253
+
1254
+ options.apply_defaults timeout: @config.timeout,
1255
+ metadata: @config.metadata,
1234
1256
  retry_policy: @config.retry_policy
1235
1257
 
1236
1258
  @registration_service_stub.call_rpc :update_endpoint, request, options: options do |response, operation|
@@ -1296,7 +1318,9 @@ module Google
1296
1318
  options.apply_defaults timeout: @config.rpcs.delete_endpoint.timeout,
1297
1319
  metadata: metadata,
1298
1320
  retry_policy: @config.rpcs.delete_endpoint.retry_policy
1299
- options.apply_defaults metadata: @config.metadata,
1321
+
1322
+ options.apply_defaults timeout: @config.timeout,
1323
+ metadata: @config.metadata,
1300
1324
  retry_policy: @config.retry_policy
1301
1325
 
1302
1326
  @registration_service_stub.call_rpc :delete_endpoint, request, options: options do |response, operation|
@@ -1366,7 +1390,9 @@ module Google
1366
1390
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
1367
1391
  metadata: metadata,
1368
1392
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
1369
- options.apply_defaults metadata: @config.metadata,
1393
+
1394
+ options.apply_defaults timeout: @config.timeout,
1395
+ metadata: @config.metadata,
1370
1396
  retry_policy: @config.retry_policy
1371
1397
 
1372
1398
  @registration_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -1438,7 +1464,9 @@ module Google
1438
1464
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
1439
1465
  metadata: metadata,
1440
1466
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
1441
- options.apply_defaults metadata: @config.metadata,
1467
+
1468
+ options.apply_defaults timeout: @config.timeout,
1469
+ metadata: @config.metadata,
1442
1470
  retry_policy: @config.retry_policy
1443
1471
 
1444
1472
  @registration_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -1510,7 +1538,9 @@ module Google
1510
1538
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1511
1539
  metadata: metadata,
1512
1540
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1513
- options.apply_defaults metadata: @config.metadata,
1541
+
1542
+ options.apply_defaults timeout: @config.timeout,
1543
+ metadata: @config.metadata,
1514
1544
  retry_policy: @config.retry_policy
1515
1545
 
1516
1546
  @registration_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1534,22 +1564,21 @@ module Google
1534
1564
  # Configuration can be applied globally to all clients, or to a single client
1535
1565
  # on construction.
1536
1566
  #
1537
- # # Examples
1538
- #
1539
- # To modify the global config, setting the timeout for create_namespace
1540
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1541
- #
1542
- # ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client.configure do |config|
1543
- # config.timeout = 10.0
1544
- # config.rpcs.create_namespace.timeout = 20.0
1545
- # end
1546
- #
1547
- # To apply the above configuration only to a new client:
1548
- #
1549
- # client = ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client.new do |config|
1550
- # config.timeout = 10.0
1551
- # config.rpcs.create_namespace.timeout = 20.0
1552
- # end
1567
+ # @example
1568
+ #
1569
+ # # Modify the global config, setting the timeout for
1570
+ # # create_namespace to 20 seconds,
1571
+ # # and all remaining timeouts to 10 seconds.
1572
+ # ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client.configure do |config|
1573
+ # config.timeout = 10.0
1574
+ # config.rpcs.create_namespace.timeout = 20.0
1575
+ # end
1576
+ #
1577
+ # # Apply the above configuration only to a new client.
1578
+ # client = ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client.new do |config|
1579
+ # config.timeout = 10.0
1580
+ # config.rpcs.create_namespace.timeout = 20.0
1581
+ # end
1553
1582
  #
1554
1583
  # @!attribute [rw] endpoint
1555
1584
  # 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 V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
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