google-cloud-service_usage-v1 0.1.1 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bbccb18517f1b0b49d58328c88d2087e90a10405e1adbb1f0fe56ce7fb0a790
|
4
|
+
data.tar.gz: 95c245cfaae16dbb6dd0982fa5d1b3605c0ab6b1c169ef1bfb7c071b19daba28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc2f319ba8762fbad74693bc5458ca2e995a34b5e1f93a95f2f57de93c24333b2a99dfa83b1d21583dabc06efb1b4cd85005016f8de02945fb94657a5daf42f9
|
7
|
+
data.tar.gz: 5c0169dd8c4b2b7447f8120abfc47f81db51b9d727fab372d6ab92ca5848d582e9fd6e8dc4064b3598211ebf5cf7017ca182798c0eea15ed57d8030341a42213
|
@@ -43,13 +43,12 @@ module Google
|
|
43
43
|
# See {::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client::Configuration}
|
44
44
|
# for a description of the configuration fields.
|
45
45
|
#
|
46
|
-
#
|
46
|
+
# @example
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
# end
|
48
|
+
# # Modify the configuration for all ServiceUsage clients
|
49
|
+
# ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
|
+
# end
|
53
52
|
#
|
54
53
|
# @yield [config] Configure the Client client.
|
55
54
|
# @yieldparam config [Client::Configuration]
|
@@ -98,19 +97,15 @@ module Google
|
|
98
97
|
##
|
99
98
|
# Create a new ServiceUsage client object.
|
100
99
|
#
|
101
|
-
#
|
102
|
-
#
|
103
|
-
# To create a new ServiceUsage client with the default
|
104
|
-
# configuration:
|
100
|
+
# @example
|
105
101
|
#
|
106
|
-
#
|
102
|
+
# # Create a client using the default configuration
|
103
|
+
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new
|
107
104
|
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
# config.timeout = 10.0
|
113
|
-
# end
|
105
|
+
# # Create a client using a custom configuration
|
106
|
+
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new do |config|
|
107
|
+
# config.timeout = 10.0
|
108
|
+
# end
|
114
109
|
#
|
115
110
|
# @yield [config] Configure the ServiceUsage client.
|
116
111
|
# @yieldparam config [Client::Configuration]
|
@@ -130,10 +125,9 @@ module Google
|
|
130
125
|
|
131
126
|
# Create credentials
|
132
127
|
credentials = @config.credentials
|
133
|
-
# Use self-signed JWT if the
|
128
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
134
129
|
# but only if the default endpoint does not have a region prefix.
|
135
|
-
enable_self_signed_jwt = @config.
|
136
|
-
@config.endpoint == Client.configure.endpoint &&
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
137
131
|
!@config.endpoint.split(".").first.include?("-")
|
138
132
|
credentials ||= Credentials.default scope: @config.scope,
|
139
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -231,7 +225,9 @@ module Google
|
|
231
225
|
options.apply_defaults timeout: @config.rpcs.enable_service.timeout,
|
232
226
|
metadata: metadata,
|
233
227
|
retry_policy: @config.rpcs.enable_service.retry_policy
|
234
|
-
|
228
|
+
|
229
|
+
options.apply_defaults timeout: @config.timeout,
|
230
|
+
metadata: @config.metadata,
|
235
231
|
retry_policy: @config.retry_policy
|
236
232
|
|
237
233
|
@service_usage_stub.call_rpc :enable_service, request, options: options do |response, operation|
|
@@ -318,7 +314,9 @@ module Google
|
|
318
314
|
options.apply_defaults timeout: @config.rpcs.disable_service.timeout,
|
319
315
|
metadata: metadata,
|
320
316
|
retry_policy: @config.rpcs.disable_service.retry_policy
|
321
|
-
|
317
|
+
|
318
|
+
options.apply_defaults timeout: @config.timeout,
|
319
|
+
metadata: @config.metadata,
|
322
320
|
retry_policy: @config.retry_policy
|
323
321
|
|
324
322
|
@service_usage_stub.call_rpc :disable_service, request, options: options do |response, operation|
|
@@ -389,7 +387,9 @@ module Google
|
|
389
387
|
options.apply_defaults timeout: @config.rpcs.get_service.timeout,
|
390
388
|
metadata: metadata,
|
391
389
|
retry_policy: @config.rpcs.get_service.retry_policy
|
392
|
-
|
390
|
+
|
391
|
+
options.apply_defaults timeout: @config.timeout,
|
392
|
+
metadata: @config.metadata,
|
393
393
|
retry_policy: @config.retry_policy
|
394
394
|
|
395
395
|
@service_usage_stub.call_rpc :get_service, request, options: options do |response, operation|
|
@@ -480,7 +480,9 @@ module Google
|
|
480
480
|
options.apply_defaults timeout: @config.rpcs.list_services.timeout,
|
481
481
|
metadata: metadata,
|
482
482
|
retry_policy: @config.rpcs.list_services.retry_policy
|
483
|
-
|
483
|
+
|
484
|
+
options.apply_defaults timeout: @config.timeout,
|
485
|
+
metadata: @config.metadata,
|
484
486
|
retry_policy: @config.retry_policy
|
485
487
|
|
486
488
|
@service_usage_stub.call_rpc :list_services, request, options: options do |response, operation|
|
@@ -566,7 +568,9 @@ module Google
|
|
566
568
|
options.apply_defaults timeout: @config.rpcs.batch_enable_services.timeout,
|
567
569
|
metadata: metadata,
|
568
570
|
retry_policy: @config.rpcs.batch_enable_services.retry_policy
|
569
|
-
|
571
|
+
|
572
|
+
options.apply_defaults timeout: @config.timeout,
|
573
|
+
metadata: @config.metadata,
|
570
574
|
retry_policy: @config.retry_policy
|
571
575
|
|
572
576
|
@service_usage_stub.call_rpc :batch_enable_services, request, options: options do |response, operation|
|
@@ -645,7 +649,9 @@ module Google
|
|
645
649
|
options.apply_defaults timeout: @config.rpcs.batch_get_services.timeout,
|
646
650
|
metadata: metadata,
|
647
651
|
retry_policy: @config.rpcs.batch_get_services.retry_policy
|
648
|
-
|
652
|
+
|
653
|
+
options.apply_defaults timeout: @config.timeout,
|
654
|
+
metadata: @config.metadata,
|
649
655
|
retry_policy: @config.retry_policy
|
650
656
|
|
651
657
|
@service_usage_stub.call_rpc :batch_get_services, request, options: options do |response, operation|
|
@@ -669,22 +675,21 @@ module Google
|
|
669
675
|
# Configuration can be applied globally to all clients, or to a single client
|
670
676
|
# on construction.
|
671
677
|
#
|
672
|
-
#
|
673
|
-
#
|
674
|
-
#
|
675
|
-
# to 20 seconds,
|
676
|
-
#
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
684
|
-
#
|
685
|
-
#
|
686
|
-
#
|
687
|
-
# end
|
678
|
+
# @example
|
679
|
+
#
|
680
|
+
# # Modify the global config, setting the timeout for
|
681
|
+
# # enable_service to 20 seconds,
|
682
|
+
# # and all remaining timeouts to 10 seconds.
|
683
|
+
# ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.configure do |config|
|
684
|
+
# config.timeout = 10.0
|
685
|
+
# config.rpcs.enable_service.timeout = 20.0
|
686
|
+
# end
|
687
|
+
#
|
688
|
+
# # Apply the above configuration only to a new client.
|
689
|
+
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new do |config|
|
690
|
+
# config.timeout = 10.0
|
691
|
+
# config.rpcs.enable_service.timeout = 20.0
|
692
|
+
# end
|
688
693
|
#
|
689
694
|
# @!attribute [rw] endpoint
|
690
695
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# 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_usage-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.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-
|
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
|