google-cloud-service_directory-v1 0.3.2 → 0.3.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae412af06ca1ee10a249c7e3c88d0ec3e7465959db1fb56c7e93fb145480e082
|
4
|
+
data.tar.gz: 63a1636e74207f79623eaae8f687d88ecf13c3bbffb1be1d59b7469032ff8cff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new LookupService client with the default
|
105
|
-
# configuration:
|
101
|
+
# @example
|
106
102
|
#
|
107
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new
|
108
105
|
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
# to 20 seconds,
|
266
|
-
#
|
267
|
-
#
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
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
|
-
#
|
58
|
+
# @example
|
59
59
|
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
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
|
-
#
|
117
|
-
#
|
118
|
-
# To create a new RegistrationService client with the default
|
119
|
-
# configuration:
|
115
|
+
# @example
|
120
116
|
#
|
121
|
-
#
|
117
|
+
# # Create a client using the default configuration
|
118
|
+
# client = ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client.new
|
122
119
|
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
1538
|
-
#
|
1539
|
-
#
|
1540
|
-
# to 20 seconds,
|
1541
|
-
#
|
1542
|
-
#
|
1543
|
-
#
|
1544
|
-
#
|
1545
|
-
#
|
1546
|
-
#
|
1547
|
-
#
|
1548
|
-
#
|
1549
|
-
#
|
1550
|
-
#
|
1551
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|