google-cloud-billing-v1 0.7.2 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46c8c8e863a00dc969b206aee09d19eefe77abb07fb7f3d521ed494ea6de97d7
|
4
|
+
data.tar.gz: 3cd826df958c5b9e3d78cd91ef4a2cd72a22c92d639de0e15c136ae63f925132
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca396abb04037cbfa1d02932ade35a46c0ece19687d8a3bceee8fdc3716a8754b862267cfd27f3d6da1844ff81411b2f29a59d2ea785dfb9dec75c9e8fb7634
|
7
|
+
data.tar.gz: 3d5d4bfc42016c1896ba373cc7c14ea4f119a5b60cf4afe4e4d1ae81ce443046a0b7374c3ee7946a3d8d1aba103a50658b41a1f01c114ec4db8b3648e82cea43
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Billing::V1::CloudBilling::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 CloudBilling clients
|
47
|
+
# ::Google::Cloud::Billing::V1::CloudBilling::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]
|
@@ -141,19 +140,15 @@ module Google
|
|
141
140
|
##
|
142
141
|
# Create a new CloudBilling client object.
|
143
142
|
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# To create a new CloudBilling client with the default
|
147
|
-
# configuration:
|
148
|
-
#
|
149
|
-
# client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new
|
143
|
+
# @example
|
150
144
|
#
|
151
|
-
#
|
152
|
-
#
|
145
|
+
# # Create a client using the default configuration
|
146
|
+
# client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new
|
153
147
|
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
148
|
+
# # Create a client using a custom configuration
|
149
|
+
# client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new do |config|
|
150
|
+
# config.timeout = 10.0
|
151
|
+
# end
|
157
152
|
#
|
158
153
|
# @yield [config] Configure the CloudBilling client.
|
159
154
|
# @yieldparam config [Client::Configuration]
|
@@ -173,10 +168,9 @@ module Google
|
|
173
168
|
|
174
169
|
# Create credentials
|
175
170
|
credentials = @config.credentials
|
176
|
-
# Use self-signed JWT if the
|
171
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
177
172
|
# but only if the default endpoint does not have a region prefix.
|
178
|
-
enable_self_signed_jwt = @config.
|
179
|
-
@config.endpoint == Client.configure.endpoint &&
|
173
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
180
174
|
!@config.endpoint.split(".").first.include?("-")
|
181
175
|
credentials ||= Credentials.default scope: @config.scope,
|
182
176
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -255,7 +249,9 @@ module Google
|
|
255
249
|
options.apply_defaults timeout: @config.rpcs.get_billing_account.timeout,
|
256
250
|
metadata: metadata,
|
257
251
|
retry_policy: @config.rpcs.get_billing_account.retry_policy
|
258
|
-
|
252
|
+
|
253
|
+
options.apply_defaults timeout: @config.timeout,
|
254
|
+
metadata: @config.metadata,
|
259
255
|
retry_policy: @config.retry_policy
|
260
256
|
|
261
257
|
@cloud_billing_stub.call_rpc :get_billing_account, request, options: options do |response, operation|
|
@@ -329,7 +325,9 @@ module Google
|
|
329
325
|
options.apply_defaults timeout: @config.rpcs.list_billing_accounts.timeout,
|
330
326
|
metadata: metadata,
|
331
327
|
retry_policy: @config.rpcs.list_billing_accounts.retry_policy
|
332
|
-
|
328
|
+
|
329
|
+
options.apply_defaults timeout: @config.timeout,
|
330
|
+
metadata: @config.metadata,
|
333
331
|
retry_policy: @config.retry_policy
|
334
332
|
|
335
333
|
@cloud_billing_stub.call_rpc :list_billing_accounts, request, options: options do |response, operation|
|
@@ -406,7 +404,9 @@ module Google
|
|
406
404
|
options.apply_defaults timeout: @config.rpcs.update_billing_account.timeout,
|
407
405
|
metadata: metadata,
|
408
406
|
retry_policy: @config.rpcs.update_billing_account.retry_policy
|
409
|
-
|
407
|
+
|
408
|
+
options.apply_defaults timeout: @config.timeout,
|
409
|
+
metadata: @config.metadata,
|
410
410
|
retry_policy: @config.retry_policy
|
411
411
|
|
412
412
|
@cloud_billing_stub.call_rpc :update_billing_account, request, options: options do |response, operation|
|
@@ -478,7 +478,9 @@ module Google
|
|
478
478
|
options.apply_defaults timeout: @config.rpcs.create_billing_account.timeout,
|
479
479
|
metadata: metadata,
|
480
480
|
retry_policy: @config.rpcs.create_billing_account.retry_policy
|
481
|
-
|
481
|
+
|
482
|
+
options.apply_defaults timeout: @config.timeout,
|
483
|
+
metadata: @config.metadata,
|
482
484
|
retry_policy: @config.retry_policy
|
483
485
|
|
484
486
|
@cloud_billing_stub.call_rpc :create_billing_account, request, options: options do |response, operation|
|
@@ -555,7 +557,9 @@ module Google
|
|
555
557
|
options.apply_defaults timeout: @config.rpcs.list_project_billing_info.timeout,
|
556
558
|
metadata: metadata,
|
557
559
|
retry_policy: @config.rpcs.list_project_billing_info.retry_policy
|
558
|
-
|
560
|
+
|
561
|
+
options.apply_defaults timeout: @config.timeout,
|
562
|
+
metadata: @config.metadata,
|
559
563
|
retry_policy: @config.retry_policy
|
560
564
|
|
561
565
|
@cloud_billing_stub.call_rpc :list_project_billing_info, request, options: options do |response, operation|
|
@@ -626,7 +630,9 @@ module Google
|
|
626
630
|
options.apply_defaults timeout: @config.rpcs.get_project_billing_info.timeout,
|
627
631
|
metadata: metadata,
|
628
632
|
retry_policy: @config.rpcs.get_project_billing_info.retry_policy
|
629
|
-
|
633
|
+
|
634
|
+
options.apply_defaults timeout: @config.timeout,
|
635
|
+
metadata: @config.metadata,
|
630
636
|
retry_policy: @config.retry_policy
|
631
637
|
|
632
638
|
@cloud_billing_stub.call_rpc :get_project_billing_info, request, options: options do |response, operation|
|
@@ -726,7 +732,9 @@ module Google
|
|
726
732
|
options.apply_defaults timeout: @config.rpcs.update_project_billing_info.timeout,
|
727
733
|
metadata: metadata,
|
728
734
|
retry_policy: @config.rpcs.update_project_billing_info.retry_policy
|
729
|
-
|
735
|
+
|
736
|
+
options.apply_defaults timeout: @config.timeout,
|
737
|
+
metadata: @config.metadata,
|
730
738
|
retry_policy: @config.retry_policy
|
731
739
|
|
732
740
|
@cloud_billing_stub.call_rpc :update_project_billing_info, request, options: options do |response, operation|
|
@@ -799,7 +807,9 @@ module Google
|
|
799
807
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
800
808
|
metadata: metadata,
|
801
809
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
802
|
-
|
810
|
+
|
811
|
+
options.apply_defaults timeout: @config.timeout,
|
812
|
+
metadata: @config.metadata,
|
803
813
|
retry_policy: @config.retry_policy
|
804
814
|
|
805
815
|
@cloud_billing_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -875,7 +885,9 @@ module Google
|
|
875
885
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
876
886
|
metadata: metadata,
|
877
887
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
878
|
-
|
888
|
+
|
889
|
+
options.apply_defaults timeout: @config.timeout,
|
890
|
+
metadata: @config.metadata,
|
879
891
|
retry_policy: @config.retry_policy
|
880
892
|
|
881
893
|
@cloud_billing_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -949,7 +961,9 @@ module Google
|
|
949
961
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
950
962
|
metadata: metadata,
|
951
963
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
952
|
-
|
964
|
+
|
965
|
+
options.apply_defaults timeout: @config.timeout,
|
966
|
+
metadata: @config.metadata,
|
953
967
|
retry_policy: @config.retry_policy
|
954
968
|
|
955
969
|
@cloud_billing_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -973,22 +987,21 @@ module Google
|
|
973
987
|
# Configuration can be applied globally to all clients, or to a single client
|
974
988
|
# on construction.
|
975
989
|
#
|
976
|
-
#
|
977
|
-
#
|
978
|
-
#
|
979
|
-
# to 20 seconds,
|
980
|
-
#
|
981
|
-
#
|
982
|
-
#
|
983
|
-
#
|
984
|
-
#
|
985
|
-
#
|
986
|
-
#
|
987
|
-
#
|
988
|
-
#
|
989
|
-
#
|
990
|
-
#
|
991
|
-
# end
|
990
|
+
# @example
|
991
|
+
#
|
992
|
+
# # Modify the global config, setting the timeout for
|
993
|
+
# # get_billing_account to 20 seconds,
|
994
|
+
# # and all remaining timeouts to 10 seconds.
|
995
|
+
# ::Google::Cloud::Billing::V1::CloudBilling::Client.configure do |config|
|
996
|
+
# config.timeout = 10.0
|
997
|
+
# config.rpcs.get_billing_account.timeout = 20.0
|
998
|
+
# end
|
999
|
+
#
|
1000
|
+
# # Apply the above configuration only to a new client.
|
1001
|
+
# client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new do |config|
|
1002
|
+
# config.timeout = 10.0
|
1003
|
+
# config.rpcs.get_billing_account.timeout = 20.0
|
1004
|
+
# end
|
992
1005
|
#
|
993
1006
|
# @!attribute [rw] endpoint
|
994
1007
|
# The hostname or hostname:port of the service endpoint.
|
@@ -43,13 +43,12 @@ module Google
|
|
43
43
|
# See {::Google::Cloud::Billing::V1::CloudCatalog::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 CloudCatalog clients
|
49
|
+
# ::Google::Cloud::Billing::V1::CloudCatalog::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]
|
@@ -100,19 +99,15 @@ module Google
|
|
100
99
|
##
|
101
100
|
# Create a new CloudCatalog client object.
|
102
101
|
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
# To create a new CloudCatalog client with the default
|
106
|
-
# configuration:
|
107
|
-
#
|
108
|
-
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new
|
102
|
+
# @example
|
109
103
|
#
|
110
|
-
#
|
111
|
-
#
|
104
|
+
# # Create a client using the default configuration
|
105
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new
|
112
106
|
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
107
|
+
# # Create a client using a custom configuration
|
108
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
|
109
|
+
# config.timeout = 10.0
|
110
|
+
# end
|
116
111
|
#
|
117
112
|
# @yield [config] Configure the CloudCatalog client.
|
118
113
|
# @yieldparam config [Client::Configuration]
|
@@ -132,10 +127,9 @@ module Google
|
|
132
127
|
|
133
128
|
# Create credentials
|
134
129
|
credentials = @config.credentials
|
135
|
-
# Use self-signed JWT if the
|
130
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
136
131
|
# but only if the default endpoint does not have a region prefix.
|
137
|
-
enable_self_signed_jwt = @config.
|
138
|
-
@config.endpoint == Client.configure.endpoint &&
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
139
133
|
!@config.endpoint.split(".").first.include?("-")
|
140
134
|
credentials ||= Credentials.default scope: @config.scope,
|
141
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -209,7 +203,9 @@ module Google
|
|
209
203
|
options.apply_defaults timeout: @config.rpcs.list_services.timeout,
|
210
204
|
metadata: metadata,
|
211
205
|
retry_policy: @config.rpcs.list_services.retry_policy
|
212
|
-
|
206
|
+
|
207
|
+
options.apply_defaults timeout: @config.timeout,
|
208
|
+
metadata: @config.metadata,
|
213
209
|
retry_policy: @config.retry_policy
|
214
210
|
|
215
211
|
@cloud_catalog_stub.call_rpc :list_services, request, options: options do |response, operation|
|
@@ -301,7 +297,9 @@ module Google
|
|
301
297
|
options.apply_defaults timeout: @config.rpcs.list_skus.timeout,
|
302
298
|
metadata: metadata,
|
303
299
|
retry_policy: @config.rpcs.list_skus.retry_policy
|
304
|
-
|
300
|
+
|
301
|
+
options.apply_defaults timeout: @config.timeout,
|
302
|
+
metadata: @config.metadata,
|
305
303
|
retry_policy: @config.retry_policy
|
306
304
|
|
307
305
|
@cloud_catalog_stub.call_rpc :list_skus, request, options: options do |response, operation|
|
@@ -326,22 +324,21 @@ module Google
|
|
326
324
|
# Configuration can be applied globally to all clients, or to a single client
|
327
325
|
# on construction.
|
328
326
|
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
332
|
-
# to 20 seconds,
|
333
|
-
#
|
334
|
-
#
|
335
|
-
#
|
336
|
-
#
|
337
|
-
#
|
338
|
-
#
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
# end
|
327
|
+
# @example
|
328
|
+
#
|
329
|
+
# # Modify the global config, setting the timeout for
|
330
|
+
# # list_services to 20 seconds,
|
331
|
+
# # and all remaining timeouts to 10 seconds.
|
332
|
+
# ::Google::Cloud::Billing::V1::CloudCatalog::Client.configure do |config|
|
333
|
+
# config.timeout = 10.0
|
334
|
+
# config.rpcs.list_services.timeout = 20.0
|
335
|
+
# end
|
336
|
+
#
|
337
|
+
# # Apply the above configuration only to a new client.
|
338
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
|
339
|
+
# config.timeout = 10.0
|
340
|
+
# config.rpcs.list_services.timeout = 20.0
|
341
|
+
# end
|
345
342
|
#
|
346
343
|
# @!attribute [rw] endpoint
|
347
344
|
# 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-billing-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.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
|