google-cloud-billing-v1 0.4.0 → 0.5.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 +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +5 -1
- data/lib/google/cloud/billing/v1.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_billing.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +217 -212
- data/lib/google/cloud/billing/v1/cloud_billing/credentials.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_billing/paths.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_catalog.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +85 -80
- data/lib/google/cloud/billing/v1/cloud_catalog/credentials.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_catalog/paths.rb +1 -1
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/billing/v1/cloud_billing.rb +48 -48
- data/proto_docs/google/cloud/billing/v1/cloud_catalog.rb +66 -66
- data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
- data/proto_docs/google/iam/v1/options.rb +3 -3
- data/proto_docs/google/iam/v1/policy.rb +26 -26
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/type/expr.rb +6 -6
- data/proto_docs/google/type/money.rb +5 -5
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
module V1
|
25
25
|
module CloudBilling
|
26
26
|
# Credentials for the CloudBilling API.
|
27
|
-
class Credentials < Google::Auth::Credentials
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform"
|
30
30
|
]
|
@@ -38,7 +38,7 @@ module Google
|
|
38
38
|
# To load this service and instantiate a client:
|
39
39
|
#
|
40
40
|
# require "google/cloud/billing/v1/cloud_catalog"
|
41
|
-
# client = Google::Cloud::Billing::V1::CloudCatalog::Client.new
|
41
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new
|
42
42
|
#
|
43
43
|
module CloudCatalog
|
44
44
|
end
|
@@ -40,15 +40,15 @@ module Google
|
|
40
40
|
##
|
41
41
|
# Configure the CloudCatalog Client class.
|
42
42
|
#
|
43
|
-
# See {Google::Cloud::Billing::V1::CloudCatalog::Client::Configuration}
|
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
48
|
# To modify the configuration for all CloudCatalog clients:
|
49
49
|
#
|
50
|
-
# Google::Cloud::Billing::V1::CloudCatalog::Client.configure do |config|
|
51
|
-
# config.timeout =
|
50
|
+
# ::Google::Cloud::Billing::V1::CloudCatalog::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
52
|
# end
|
53
53
|
#
|
54
54
|
# @yield [config] Configure the Client client.
|
@@ -84,7 +84,7 @@ module Google
|
|
84
84
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
85
85
|
# should be made on {Client.configure}.
|
86
86
|
#
|
87
|
-
# See {Google::Cloud::Billing::V1::CloudCatalog::Client::Configuration}
|
87
|
+
# See {::Google::Cloud::Billing::V1::CloudCatalog::Client::Configuration}
|
88
88
|
# for a description of the configuration fields.
|
89
89
|
#
|
90
90
|
# @yield [config] Configure the Client client.
|
@@ -105,13 +105,13 @@ module Google
|
|
105
105
|
# To create a new CloudCatalog client with the default
|
106
106
|
# configuration:
|
107
107
|
#
|
108
|
-
# client = Google::Cloud::Billing::V1::CloudCatalog::Client.new
|
108
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new
|
109
109
|
#
|
110
110
|
# To create a new CloudCatalog client with a custom
|
111
111
|
# configuration:
|
112
112
|
#
|
113
|
-
# client = Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
|
114
|
-
# config.timeout =
|
113
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
|
114
|
+
# config.timeout = 10.0
|
115
115
|
# end
|
116
116
|
#
|
117
117
|
# @yield [config] Configure the CloudCatalog client.
|
@@ -136,10 +136,11 @@ module Google
|
|
136
136
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
137
137
|
credentials = Credentials.new credentials, scope: @config.scope
|
138
138
|
end
|
139
|
-
@quota_project_id =
|
139
|
+
@quota_project_id = @config.quota_project
|
140
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
140
141
|
|
141
|
-
@cloud_catalog_stub = Gapic::ServiceStub.new(
|
142
|
-
Google::Cloud::Billing::V1::CloudCatalog::Stub,
|
142
|
+
@cloud_catalog_stub = ::Gapic::ServiceStub.new(
|
143
|
+
::Google::Cloud::Billing::V1::CloudCatalog::Stub,
|
143
144
|
credentials: credentials,
|
144
145
|
endpoint: @config.endpoint,
|
145
146
|
channel_args: @config.channel_args,
|
@@ -154,12 +155,12 @@ module Google
|
|
154
155
|
#
|
155
156
|
# @overload list_services(request, options = nil)
|
156
157
|
# Pass arguments to `list_services` via a request object, either of type
|
157
|
-
# {Google::Cloud::Billing::V1::ListServicesRequest} or an equivalent Hash.
|
158
|
+
# {::Google::Cloud::Billing::V1::ListServicesRequest} or an equivalent Hash.
|
158
159
|
#
|
159
|
-
# @param request [Google::Cloud::Billing::V1::ListServicesRequest, Hash]
|
160
|
+
# @param request [::Google::Cloud::Billing::V1::ListServicesRequest, ::Hash]
|
160
161
|
# A request object representing the call parameters. Required. To specify no
|
161
162
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
162
|
-
# @param options [Gapic::CallOptions, Hash]
|
163
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
163
164
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
164
165
|
#
|
165
166
|
# @overload list_services(page_size: nil, page_token: nil)
|
@@ -167,34 +168,34 @@ module Google
|
|
167
168
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
168
169
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
169
170
|
#
|
170
|
-
# @param page_size [Integer]
|
171
|
+
# @param page_size [::Integer]
|
171
172
|
# Requested page size. Defaults to 5000.
|
172
|
-
# @param page_token [String]
|
173
|
+
# @param page_token [::String]
|
173
174
|
# A token identifying a page of results to return. This should be a
|
174
175
|
# `next_page_token` value returned from a previous `ListServices`
|
175
176
|
# call. If unspecified, the first page of results is returned.
|
176
177
|
#
|
177
178
|
# @yield [response, operation] Access the result along with the RPC operation
|
178
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
179
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
179
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Service>]
|
180
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
180
181
|
#
|
181
|
-
# @return [Gapic::PagedEnumerable
|
182
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Service>]
|
182
183
|
#
|
183
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
184
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
184
185
|
#
|
185
186
|
def list_services request, options = nil
|
186
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
187
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
187
188
|
|
188
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Billing::V1::ListServicesRequest
|
189
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Billing::V1::ListServicesRequest
|
189
190
|
|
190
191
|
# Converts hash and nil to an options object
|
191
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
192
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
192
193
|
|
193
194
|
# Customize the options with defaults
|
194
195
|
metadata = @config.rpcs.list_services.metadata.to_h
|
195
196
|
|
196
197
|
# Set x-goog-api-client and x-goog-user-project headers
|
197
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
198
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
198
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
199
200
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
200
201
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -206,12 +207,12 @@ module Google
|
|
206
207
|
retry_policy: @config.retry_policy
|
207
208
|
|
208
209
|
@cloud_catalog_stub.call_rpc :list_services, request, options: options do |response, operation|
|
209
|
-
response = Gapic::PagedEnumerable.new @cloud_catalog_stub, :list_services, request, response, operation, options
|
210
|
+
response = ::Gapic::PagedEnumerable.new @cloud_catalog_stub, :list_services, request, response, operation, options
|
210
211
|
yield response, operation if block_given?
|
211
212
|
return response
|
212
213
|
end
|
213
|
-
rescue GRPC::BadStatus => e
|
214
|
-
raise Google::Cloud::Error.from_error(e)
|
214
|
+
rescue ::GRPC::BadStatus => e
|
215
|
+
raise ::Google::Cloud::Error.from_error(e)
|
215
216
|
end
|
216
217
|
|
217
218
|
##
|
@@ -219,12 +220,12 @@ module Google
|
|
219
220
|
#
|
220
221
|
# @overload list_skus(request, options = nil)
|
221
222
|
# Pass arguments to `list_skus` via a request object, either of type
|
222
|
-
# {Google::Cloud::Billing::V1::ListSkusRequest} or an equivalent Hash.
|
223
|
+
# {::Google::Cloud::Billing::V1::ListSkusRequest} or an equivalent Hash.
|
223
224
|
#
|
224
|
-
# @param request [Google::Cloud::Billing::V1::ListSkusRequest, Hash]
|
225
|
+
# @param request [::Google::Cloud::Billing::V1::ListSkusRequest, ::Hash]
|
225
226
|
# A request object representing the call parameters. Required. To specify no
|
226
227
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
227
|
-
# @param options [Gapic::CallOptions, Hash]
|
228
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
228
229
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
229
230
|
#
|
230
231
|
# @overload list_skus(parent: nil, start_time: nil, end_time: nil, currency_code: nil, page_size: nil, page_token: nil)
|
@@ -232,55 +233,55 @@ module Google
|
|
232
233
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
233
234
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
234
235
|
#
|
235
|
-
# @param parent [String]
|
236
|
+
# @param parent [::String]
|
236
237
|
# Required. The name of the service.
|
237
238
|
# Example: "services/DA34-426B-A397"
|
238
|
-
# @param start_time [Google::Protobuf::Timestamp, Hash]
|
239
|
+
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
239
240
|
# Optional inclusive start time of the time range for which the pricing
|
240
241
|
# versions will be returned. Timestamps in the future are not allowed.
|
241
242
|
# The time range has to be within a single calendar month in
|
242
243
|
# America/Los_Angeles timezone. Time range as a whole is optional. If not
|
243
244
|
# specified, the latest pricing will be returned (up to 12 hours old at
|
244
245
|
# most).
|
245
|
-
# @param end_time [Google::Protobuf::Timestamp, Hash]
|
246
|
+
# @param end_time [::Google::Protobuf::Timestamp, ::Hash]
|
246
247
|
# Optional exclusive end time of the time range for which the pricing
|
247
248
|
# versions will be returned. Timestamps in the future are not allowed.
|
248
249
|
# The time range has to be within a single calendar month in
|
249
250
|
# America/Los_Angeles timezone. Time range as a whole is optional. If not
|
250
251
|
# specified, the latest pricing will be returned (up to 12 hours old at
|
251
252
|
# most).
|
252
|
-
# @param currency_code [String]
|
253
|
+
# @param currency_code [::String]
|
253
254
|
# The ISO 4217 currency code for the pricing info in the response proto.
|
254
255
|
# Will use the conversion rate as of start_time.
|
255
256
|
# Optional. If not specified USD will be used.
|
256
|
-
# @param page_size [Integer]
|
257
|
+
# @param page_size [::Integer]
|
257
258
|
# Requested page size. Defaults to 5000.
|
258
|
-
# @param page_token [String]
|
259
|
+
# @param page_token [::String]
|
259
260
|
# A token identifying a page of results to return. This should be a
|
260
261
|
# `next_page_token` value returned from a previous `ListSkus`
|
261
262
|
# call. If unspecified, the first page of results is returned.
|
262
263
|
#
|
263
264
|
# @yield [response, operation] Access the result along with the RPC operation
|
264
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
265
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
265
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Sku>]
|
266
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
266
267
|
#
|
267
|
-
# @return [Gapic::PagedEnumerable
|
268
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Sku>]
|
268
269
|
#
|
269
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
270
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
270
271
|
#
|
271
272
|
def list_skus request, options = nil
|
272
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
273
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
274
|
|
274
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Billing::V1::ListSkusRequest
|
275
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Billing::V1::ListSkusRequest
|
275
276
|
|
276
277
|
# Converts hash and nil to an options object
|
277
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
278
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
278
279
|
|
279
280
|
# Customize the options with defaults
|
280
281
|
metadata = @config.rpcs.list_skus.metadata.to_h
|
281
282
|
|
282
283
|
# Set x-goog-api-client and x-goog-user-project headers
|
283
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
284
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
284
285
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
285
286
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
286
287
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -298,12 +299,12 @@ module Google
|
|
298
299
|
retry_policy: @config.retry_policy
|
299
300
|
|
300
301
|
@cloud_catalog_stub.call_rpc :list_skus, request, options: options do |response, operation|
|
301
|
-
response = Gapic::PagedEnumerable.new @cloud_catalog_stub, :list_skus, request, response, operation, options
|
302
|
+
response = ::Gapic::PagedEnumerable.new @cloud_catalog_stub, :list_skus, request, response, operation, options
|
302
303
|
yield response, operation if block_given?
|
303
304
|
return response
|
304
305
|
end
|
305
|
-
rescue GRPC::BadStatus => e
|
306
|
-
raise Google::Cloud::Error.from_error(e)
|
306
|
+
rescue ::GRPC::BadStatus => e
|
307
|
+
raise ::Google::Cloud::Error.from_error(e)
|
307
308
|
end
|
308
309
|
|
309
310
|
##
|
@@ -313,7 +314,7 @@ module Google
|
|
313
314
|
# providing control over timeouts, retry behavior, logging, transport
|
314
315
|
# parameters, and other low-level controls. Certain parameters can also be
|
315
316
|
# applied individually to specific RPCs. See
|
316
|
-
# {Google::Cloud::Billing::V1::CloudCatalog::Client::Configuration::Rpcs}
|
317
|
+
# {::Google::Cloud::Billing::V1::CloudCatalog::Client::Configuration::Rpcs}
|
317
318
|
# for a list of RPCs that can be configured independently.
|
318
319
|
#
|
319
320
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -324,22 +325,22 @@ module Google
|
|
324
325
|
# To modify the global config, setting the timeout for list_services
|
325
326
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
326
327
|
#
|
327
|
-
# Google::Cloud::Billing::V1::CloudCatalog::Client.configure do |config|
|
328
|
-
# config.timeout =
|
329
|
-
# config.rpcs.list_services.timeout =
|
328
|
+
# ::Google::Cloud::Billing::V1::CloudCatalog::Client.configure do |config|
|
329
|
+
# config.timeout = 10.0
|
330
|
+
# config.rpcs.list_services.timeout = 20.0
|
330
331
|
# end
|
331
332
|
#
|
332
333
|
# To apply the above configuration only to a new client:
|
333
334
|
#
|
334
|
-
# client = Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
|
335
|
-
# config.timeout =
|
336
|
-
# config.rpcs.list_services.timeout =
|
335
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
|
336
|
+
# config.timeout = 10.0
|
337
|
+
# config.rpcs.list_services.timeout = 20.0
|
337
338
|
# end
|
338
339
|
#
|
339
340
|
# @!attribute [rw] endpoint
|
340
341
|
# The hostname or hostname:port of the service endpoint.
|
341
342
|
# Defaults to `"cloudbilling.googleapis.com"`.
|
342
|
-
# @return [String]
|
343
|
+
# @return [::String]
|
343
344
|
# @!attribute [rw] credentials
|
344
345
|
# Credentials to send with calls. You may provide any of the following types:
|
345
346
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -351,29 +352,29 @@ module Google
|
|
351
352
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
352
353
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
353
354
|
# * (`nil`) indicating no credentials
|
354
|
-
# @return [Object]
|
355
|
+
# @return [::Object]
|
355
356
|
# @!attribute [rw] scope
|
356
357
|
# The OAuth scopes
|
357
|
-
# @return [Array
|
358
|
+
# @return [::Array<::String>]
|
358
359
|
# @!attribute [rw] lib_name
|
359
360
|
# The library name as recorded in instrumentation and logging
|
360
|
-
# @return [String]
|
361
|
+
# @return [::String]
|
361
362
|
# @!attribute [rw] lib_version
|
362
363
|
# The library version as recorded in instrumentation and logging
|
363
|
-
# @return [String]
|
364
|
+
# @return [::String]
|
364
365
|
# @!attribute [rw] channel_args
|
365
366
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
366
367
|
# `GRPC::Core::Channel` object is provided as the credential.
|
367
|
-
# @return [Hash]
|
368
|
+
# @return [::Hash]
|
368
369
|
# @!attribute [rw] interceptors
|
369
370
|
# An array of interceptors that are run before calls are executed.
|
370
|
-
# @return [Array
|
371
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
371
372
|
# @!attribute [rw] timeout
|
372
|
-
# The call timeout in
|
373
|
-
# @return [Numeric]
|
373
|
+
# The call timeout in seconds.
|
374
|
+
# @return [::Numeric]
|
374
375
|
# @!attribute [rw] metadata
|
375
376
|
# Additional gRPC headers to be sent with the call.
|
376
|
-
# @return [Hash{Symbol
|
377
|
+
# @return [::Hash{::Symbol=>::String}]
|
377
378
|
# @!attribute [rw] retry_policy
|
378
379
|
# The retry policy. The value is a hash with the following keys:
|
379
380
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -381,25 +382,29 @@ module Google
|
|
381
382
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
382
383
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
383
384
|
# trigger a retry.
|
384
|
-
# @return [Hash]
|
385
|
+
# @return [::Hash]
|
386
|
+
# @!attribute [rw] quota_project
|
387
|
+
# A separate project against which to charge quota.
|
388
|
+
# @return [::String]
|
385
389
|
#
|
386
390
|
class Configuration
|
387
|
-
extend Gapic::Config
|
391
|
+
extend ::Gapic::Config
|
388
392
|
|
389
|
-
config_attr :endpoint,
|
390
|
-
config_attr :credentials,
|
393
|
+
config_attr :endpoint, "cloudbilling.googleapis.com", ::String
|
394
|
+
config_attr :credentials, nil do |value|
|
391
395
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
392
396
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
393
397
|
allowed.any? { |klass| klass === value }
|
394
398
|
end
|
395
|
-
config_attr :scope,
|
396
|
-
config_attr :lib_name,
|
397
|
-
config_attr :lib_version,
|
398
|
-
config_attr(:channel_args,
|
399
|
-
config_attr :interceptors,
|
400
|
-
config_attr :timeout,
|
401
|
-
config_attr :metadata,
|
402
|
-
config_attr :retry_policy,
|
399
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
400
|
+
config_attr :lib_name, nil, ::String, nil
|
401
|
+
config_attr :lib_version, nil, ::String, nil
|
402
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
403
|
+
config_attr :interceptors, nil, ::Array, nil
|
404
|
+
config_attr :timeout, nil, ::Numeric, nil
|
405
|
+
config_attr :metadata, nil, ::Hash, nil
|
406
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
407
|
+
config_attr :quota_project, nil, ::String, nil
|
403
408
|
|
404
409
|
# @private
|
405
410
|
def initialize parent_config = nil
|
@@ -415,7 +420,7 @@ module Google
|
|
415
420
|
def rpcs
|
416
421
|
@rpcs ||= begin
|
417
422
|
parent_rpcs = nil
|
418
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
423
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
419
424
|
Rpcs.new parent_rpcs
|
420
425
|
end
|
421
426
|
end
|
@@ -440,21 +445,21 @@ module Google
|
|
440
445
|
class Rpcs
|
441
446
|
##
|
442
447
|
# RPC-specific configuration for `list_services`
|
443
|
-
# @return [Gapic::Config::Method]
|
448
|
+
# @return [::Gapic::Config::Method]
|
444
449
|
#
|
445
450
|
attr_reader :list_services
|
446
451
|
##
|
447
452
|
# RPC-specific configuration for `list_skus`
|
448
|
-
# @return [Gapic::Config::Method]
|
453
|
+
# @return [::Gapic::Config::Method]
|
449
454
|
#
|
450
455
|
attr_reader :list_skus
|
451
456
|
|
452
457
|
# @private
|
453
458
|
def initialize parent_rpcs = nil
|
454
459
|
list_services_config = parent_rpcs&.list_services if parent_rpcs&.respond_to? :list_services
|
455
|
-
@list_services = Gapic::Config::Method.new list_services_config
|
460
|
+
@list_services = ::Gapic::Config::Method.new list_services_config
|
456
461
|
list_skus_config = parent_rpcs&.list_skus if parent_rpcs&.respond_to? :list_skus
|
457
|
-
@list_skus = Gapic::Config::Method.new list_skus_config
|
462
|
+
@list_skus = ::Gapic::Config::Method.new list_skus_config
|
458
463
|
|
459
464
|
yield self if block_given?
|
460
465
|
end
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
module V1
|
25
25
|
module CloudCatalog
|
26
26
|
# Credentials for the CloudCatalog API.
|
27
|
-
class Credentials < Google::Auth::Credentials
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform"
|
30
30
|
]
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
# - pattern: "shelves/{shelf}"
|
129
129
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
130
130
|
# @!attribute [rw] type
|
131
|
-
# @return [String]
|
131
|
+
# @return [::String]
|
132
132
|
# The resource type. It must be in the format of
|
133
133
|
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
134
134
|
# singular and must not include version numbers.
|
@@ -140,7 +140,7 @@ module Google
|
|
140
140
|
# should use PascalCase (UpperCamelCase). The maximum number of
|
141
141
|
# characters allowed for the `resource_type_kind` is 100.
|
142
142
|
# @!attribute [rw] pattern
|
143
|
-
# @return [Array
|
143
|
+
# @return [::Array<::String>]
|
144
144
|
# Optional. The relative resource name pattern associated with this resource
|
145
145
|
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
146
146
|
#
|
@@ -161,11 +161,11 @@ module Google
|
|
161
161
|
# the same component name (e.g. "project") refers to IDs of the same
|
162
162
|
# type of resource.
|
163
163
|
# @!attribute [rw] name_field
|
164
|
-
# @return [String]
|
164
|
+
# @return [::String]
|
165
165
|
# Optional. The field on the resource that designates the resource name
|
166
166
|
# field. If omitted, this is assumed to be "name".
|
167
167
|
# @!attribute [rw] history
|
168
|
-
# @return [Google::Api::ResourceDescriptor::History]
|
168
|
+
# @return [::Google::Api::ResourceDescriptor::History]
|
169
169
|
# Optional. The historical or future-looking state of the resource pattern.
|
170
170
|
#
|
171
171
|
# Example:
|
@@ -182,19 +182,19 @@ module Google
|
|
182
182
|
# };
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
|
-
# @return [String]
|
185
|
+
# @return [::String]
|
186
186
|
# The plural name used in the resource name, such as 'projects' for
|
187
187
|
# the name of 'projects/\\{project}'. It is the same concept of the `plural`
|
188
188
|
# field in k8s CRD spec
|
189
189
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
190
190
|
# @!attribute [rw] singular
|
191
|
-
# @return [String]
|
191
|
+
# @return [::String]
|
192
192
|
# The same concept of the `singular` field in k8s CRD spec
|
193
193
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
194
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
195
195
|
class ResourceDescriptor
|
196
|
-
include Google::Protobuf::MessageExts
|
197
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
198
|
|
199
199
|
# A description of the historical or future-looking state of the
|
200
200
|
# resource pattern.
|
@@ -216,7 +216,7 @@ module Google
|
|
216
216
|
# Defines a proto annotation that describes a string field that refers to
|
217
217
|
# an API resource.
|
218
218
|
# @!attribute [rw] type
|
219
|
-
# @return [String]
|
219
|
+
# @return [::String]
|
220
220
|
# The resource type that the annotated field references.
|
221
221
|
#
|
222
222
|
# Example:
|
@@ -227,7 +227,7 @@ module Google
|
|
227
227
|
# }];
|
228
228
|
# }
|
229
229
|
# @!attribute [rw] child_type
|
230
|
-
# @return [String]
|
230
|
+
# @return [::String]
|
231
231
|
# The resource type of a child collection that the annotated field
|
232
232
|
# references. This is useful for annotating the `parent` field that
|
233
233
|
# doesn't have a fixed resource type.
|
@@ -240,8 +240,8 @@ module Google
|
|
240
240
|
# };
|
241
241
|
# }
|
242
242
|
class ResourceReference
|
243
|
-
include Google::Protobuf::MessageExts
|
244
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
245
|
end
|
246
246
|
end
|
247
247
|
end
|