google-cloud-billing-v1 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  ]
@@ -33,7 +33,7 @@ module Google
33
33
  #
34
34
  # @param billing_account [String]
35
35
  #
36
- # @return [String]
36
+ # @return [::String]
37
37
  def billing_account_path billing_account:
38
38
  "billingAccounts/#{billing_account}"
39
39
  end
@@ -36,7 +36,7 @@ module Google
36
36
  # To load this service and instantiate a client:
37
37
  #
38
38
  # require "google/cloud/billing/v1/cloud_billing"
39
- # client = Google::Cloud::Billing::V1::CloudBilling::Client.new
39
+ # client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new
40
40
  #
41
41
  module CloudBilling
42
42
  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 = 10_000
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 = 10_000
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.
@@ -138,8 +138,8 @@ module Google
138
138
  end
139
139
  @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
140
140
 
141
- @cloud_catalog_stub = Gapic::ServiceStub.new(
142
- Google::Cloud::Billing::V1::CloudCatalog::Stub,
141
+ @cloud_catalog_stub = ::Gapic::ServiceStub.new(
142
+ ::Google::Cloud::Billing::V1::CloudCatalog::Stub,
143
143
  credentials: credentials,
144
144
  endpoint: @config.endpoint,
145
145
  channel_args: @config.channel_args,
@@ -154,12 +154,12 @@ module Google
154
154
  #
155
155
  # @overload list_services(request, options = nil)
156
156
  # Pass arguments to `list_services` via a request object, either of type
157
- # {Google::Cloud::Billing::V1::ListServicesRequest} or an equivalent Hash.
157
+ # {::Google::Cloud::Billing::V1::ListServicesRequest} or an equivalent Hash.
158
158
  #
159
- # @param request [Google::Cloud::Billing::V1::ListServicesRequest, Hash]
159
+ # @param request [::Google::Cloud::Billing::V1::ListServicesRequest, ::Hash]
160
160
  # A request object representing the call parameters. Required. To specify no
161
161
  # parameters, or to keep all the default parameter values, pass an empty Hash.
162
- # @param options [Gapic::CallOptions, Hash]
162
+ # @param options [::Gapic::CallOptions, ::Hash]
163
163
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
164
164
  #
165
165
  # @overload list_services(page_size: nil, page_token: nil)
@@ -167,34 +167,34 @@ module Google
167
167
  # least one keyword argument is required. To specify no parameters, or to keep all
168
168
  # the default parameter values, pass an empty Hash as a request object (see above).
169
169
  #
170
- # @param page_size [Integer]
170
+ # @param page_size [::Integer]
171
171
  # Requested page size. Defaults to 5000.
172
- # @param page_token [String]
172
+ # @param page_token [::String]
173
173
  # A token identifying a page of results to return. This should be a
174
174
  # `next_page_token` value returned from a previous `ListServices`
175
175
  # call. If unspecified, the first page of results is returned.
176
176
  #
177
177
  # @yield [response, operation] Access the result along with the RPC operation
178
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Billing::V1::Service>]
179
- # @yieldparam operation [GRPC::ActiveCall::Operation]
178
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Service>]
179
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
180
180
  #
181
- # @return [Gapic::PagedEnumerable<Google::Cloud::Billing::V1::Service>]
181
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Service>]
182
182
  #
183
- # @raise [Google::Cloud::Error] if the RPC is aborted.
183
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
184
184
  #
185
185
  def list_services request, options = nil
186
- raise ArgumentError, "request must be provided" if request.nil?
186
+ raise ::ArgumentError, "request must be provided" if request.nil?
187
187
 
188
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Billing::V1::ListServicesRequest
188
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Billing::V1::ListServicesRequest
189
189
 
190
190
  # Converts hash and nil to an options object
191
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
191
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
192
192
 
193
193
  # Customize the options with defaults
194
194
  metadata = @config.rpcs.list_services.metadata.to_h
195
195
 
196
196
  # Set x-goog-api-client and x-goog-user-project headers
197
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
197
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
198
198
  lib_name: @config.lib_name, lib_version: @config.lib_version,
199
199
  gapic_version: ::Google::Cloud::Billing::V1::VERSION
200
200
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -206,12 +206,12 @@ module Google
206
206
  retry_policy: @config.retry_policy
207
207
 
208
208
  @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
209
+ response = ::Gapic::PagedEnumerable.new @cloud_catalog_stub, :list_services, request, response, operation, options
210
210
  yield response, operation if block_given?
211
211
  return response
212
212
  end
213
- rescue GRPC::BadStatus => e
214
- raise Google::Cloud::Error.from_error(e)
213
+ rescue ::GRPC::BadStatus => e
214
+ raise ::Google::Cloud::Error.from_error(e)
215
215
  end
216
216
 
217
217
  ##
@@ -219,12 +219,12 @@ module Google
219
219
  #
220
220
  # @overload list_skus(request, options = nil)
221
221
  # Pass arguments to `list_skus` via a request object, either of type
222
- # {Google::Cloud::Billing::V1::ListSkusRequest} or an equivalent Hash.
222
+ # {::Google::Cloud::Billing::V1::ListSkusRequest} or an equivalent Hash.
223
223
  #
224
- # @param request [Google::Cloud::Billing::V1::ListSkusRequest, Hash]
224
+ # @param request [::Google::Cloud::Billing::V1::ListSkusRequest, ::Hash]
225
225
  # A request object representing the call parameters. Required. To specify no
226
226
  # parameters, or to keep all the default parameter values, pass an empty Hash.
227
- # @param options [Gapic::CallOptions, Hash]
227
+ # @param options [::Gapic::CallOptions, ::Hash]
228
228
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
229
229
  #
230
230
  # @overload list_skus(parent: nil, start_time: nil, end_time: nil, currency_code: nil, page_size: nil, page_token: nil)
@@ -232,55 +232,55 @@ module Google
232
232
  # least one keyword argument is required. To specify no parameters, or to keep all
233
233
  # the default parameter values, pass an empty Hash as a request object (see above).
234
234
  #
235
- # @param parent [String]
235
+ # @param parent [::String]
236
236
  # Required. The name of the service.
237
237
  # Example: "services/DA34-426B-A397"
238
- # @param start_time [Google::Protobuf::Timestamp, Hash]
238
+ # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
239
239
  # Optional inclusive start time of the time range for which the pricing
240
240
  # versions will be returned. Timestamps in the future are not allowed.
241
241
  # The time range has to be within a single calendar month in
242
242
  # America/Los_Angeles timezone. Time range as a whole is optional. If not
243
243
  # specified, the latest pricing will be returned (up to 12 hours old at
244
244
  # most).
245
- # @param end_time [Google::Protobuf::Timestamp, Hash]
245
+ # @param end_time [::Google::Protobuf::Timestamp, ::Hash]
246
246
  # Optional exclusive end time of the time range for which the pricing
247
247
  # versions will be returned. Timestamps in the future are not allowed.
248
248
  # The time range has to be within a single calendar month in
249
249
  # America/Los_Angeles timezone. Time range as a whole is optional. If not
250
250
  # specified, the latest pricing will be returned (up to 12 hours old at
251
251
  # most).
252
- # @param currency_code [String]
252
+ # @param currency_code [::String]
253
253
  # The ISO 4217 currency code for the pricing info in the response proto.
254
254
  # Will use the conversion rate as of start_time.
255
255
  # Optional. If not specified USD will be used.
256
- # @param page_size [Integer]
256
+ # @param page_size [::Integer]
257
257
  # Requested page size. Defaults to 5000.
258
- # @param page_token [String]
258
+ # @param page_token [::String]
259
259
  # A token identifying a page of results to return. This should be a
260
260
  # `next_page_token` value returned from a previous `ListSkus`
261
261
  # call. If unspecified, the first page of results is returned.
262
262
  #
263
263
  # @yield [response, operation] Access the result along with the RPC operation
264
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Billing::V1::Sku>]
265
- # @yieldparam operation [GRPC::ActiveCall::Operation]
264
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Sku>]
265
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
266
266
  #
267
- # @return [Gapic::PagedEnumerable<Google::Cloud::Billing::V1::Sku>]
267
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Billing::V1::Sku>]
268
268
  #
269
- # @raise [Google::Cloud::Error] if the RPC is aborted.
269
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
270
270
  #
271
271
  def list_skus request, options = nil
272
- raise ArgumentError, "request must be provided" if request.nil?
272
+ raise ::ArgumentError, "request must be provided" if request.nil?
273
273
 
274
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Billing::V1::ListSkusRequest
274
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Billing::V1::ListSkusRequest
275
275
 
276
276
  # Converts hash and nil to an options object
277
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
277
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
278
278
 
279
279
  # Customize the options with defaults
280
280
  metadata = @config.rpcs.list_skus.metadata.to_h
281
281
 
282
282
  # Set x-goog-api-client and x-goog-user-project headers
283
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
283
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
284
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
285
  gapic_version: ::Google::Cloud::Billing::V1::VERSION
286
286
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -298,12 +298,12 @@ module Google
298
298
  retry_policy: @config.retry_policy
299
299
 
300
300
  @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
301
+ response = ::Gapic::PagedEnumerable.new @cloud_catalog_stub, :list_skus, request, response, operation, options
302
302
  yield response, operation if block_given?
303
303
  return response
304
304
  end
305
- rescue GRPC::BadStatus => e
306
- raise Google::Cloud::Error.from_error(e)
305
+ rescue ::GRPC::BadStatus => e
306
+ raise ::Google::Cloud::Error.from_error(e)
307
307
  end
308
308
 
309
309
  ##
@@ -313,7 +313,7 @@ module Google
313
313
  # providing control over timeouts, retry behavior, logging, transport
314
314
  # parameters, and other low-level controls. Certain parameters can also be
315
315
  # applied individually to specific RPCs. See
316
- # {Google::Cloud::Billing::V1::CloudCatalog::Client::Configuration::Rpcs}
316
+ # {::Google::Cloud::Billing::V1::CloudCatalog::Client::Configuration::Rpcs}
317
317
  # for a list of RPCs that can be configured independently.
318
318
  #
319
319
  # Configuration can be applied globally to all clients, or to a single client
@@ -324,22 +324,22 @@ module Google
324
324
  # To modify the global config, setting the timeout for list_services
325
325
  # to 20 seconds, and all remaining timeouts to 10 seconds:
326
326
  #
327
- # Google::Cloud::Billing::V1::CloudCatalog::Client.configure do |config|
328
- # config.timeout = 10_000
329
- # config.rpcs.list_services.timeout = 20_000
327
+ # ::Google::Cloud::Billing::V1::CloudCatalog::Client.configure do |config|
328
+ # config.timeout = 10.0
329
+ # config.rpcs.list_services.timeout = 20.0
330
330
  # end
331
331
  #
332
332
  # To apply the above configuration only to a new client:
333
333
  #
334
- # client = Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
335
- # config.timeout = 10_000
336
- # config.rpcs.list_services.timeout = 20_000
334
+ # client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
335
+ # config.timeout = 10.0
336
+ # config.rpcs.list_services.timeout = 20.0
337
337
  # end
338
338
  #
339
339
  # @!attribute [rw] endpoint
340
340
  # The hostname or hostname:port of the service endpoint.
341
341
  # Defaults to `"cloudbilling.googleapis.com"`.
342
- # @return [String]
342
+ # @return [::String]
343
343
  # @!attribute [rw] credentials
344
344
  # Credentials to send with calls. You may provide any of the following types:
345
345
  # * (`String`) The path to a service account key file in JSON format
@@ -351,29 +351,29 @@ module Google
351
351
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
352
352
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
353
353
  # * (`nil`) indicating no credentials
354
- # @return [Object]
354
+ # @return [::Object]
355
355
  # @!attribute [rw] scope
356
356
  # The OAuth scopes
357
- # @return [Array<String>]
357
+ # @return [::Array<::String>]
358
358
  # @!attribute [rw] lib_name
359
359
  # The library name as recorded in instrumentation and logging
360
- # @return [String]
360
+ # @return [::String]
361
361
  # @!attribute [rw] lib_version
362
362
  # The library version as recorded in instrumentation and logging
363
- # @return [String]
363
+ # @return [::String]
364
364
  # @!attribute [rw] channel_args
365
365
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
366
366
  # `GRPC::Core::Channel` object is provided as the credential.
367
- # @return [Hash]
367
+ # @return [::Hash]
368
368
  # @!attribute [rw] interceptors
369
369
  # An array of interceptors that are run before calls are executed.
370
- # @return [Array<GRPC::ClientInterceptor>]
370
+ # @return [::Array<::GRPC::ClientInterceptor>]
371
371
  # @!attribute [rw] timeout
372
- # The call timeout in milliseconds.
373
- # @return [Numeric]
372
+ # The call timeout in seconds.
373
+ # @return [::Numeric]
374
374
  # @!attribute [rw] metadata
375
375
  # Additional gRPC headers to be sent with the call.
376
- # @return [Hash{Symbol=>String}]
376
+ # @return [::Hash{::Symbol=>::String}]
377
377
  # @!attribute [rw] retry_policy
378
378
  # The retry policy. The value is a hash with the following keys:
379
379
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -381,10 +381,10 @@ module Google
381
381
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
382
382
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
383
383
  # trigger a retry.
384
- # @return [Hash]
384
+ # @return [::Hash]
385
385
  #
386
386
  class Configuration
387
- extend Gapic::Config
387
+ extend ::Gapic::Config
388
388
 
389
389
  config_attr :endpoint, "cloudbilling.googleapis.com", String
390
390
  config_attr :credentials, nil do |value|
@@ -392,14 +392,14 @@ module Google
392
392
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
393
393
  allowed.any? { |klass| klass === value }
394
394
  end
395
- config_attr :scope, nil, String, Array, nil
396
- config_attr :lib_name, nil, String, nil
397
- config_attr :lib_version, nil, String, nil
398
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
399
- config_attr :interceptors, nil, Array, nil
400
- config_attr :timeout, nil, Numeric, nil
401
- config_attr :metadata, nil, Hash, nil
402
- config_attr :retry_policy, nil, Hash, Proc, nil
395
+ config_attr :scope, nil, ::String, ::Array, nil
396
+ config_attr :lib_name, nil, ::String, nil
397
+ config_attr :lib_version, nil, ::String, nil
398
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
399
+ config_attr :interceptors, nil, ::Array, nil
400
+ config_attr :timeout, nil, ::Numeric, nil
401
+ config_attr :metadata, nil, ::Hash, nil
402
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
403
403
 
404
404
  # @private
405
405
  def initialize parent_config = nil
@@ -440,21 +440,21 @@ module Google
440
440
  class Rpcs
441
441
  ##
442
442
  # RPC-specific configuration for `list_services`
443
- # @return [Gapic::Config::Method]
443
+ # @return [::Gapic::Config::Method]
444
444
  #
445
445
  attr_reader :list_services
446
446
  ##
447
447
  # RPC-specific configuration for `list_skus`
448
- # @return [Gapic::Config::Method]
448
+ # @return [::Gapic::Config::Method]
449
449
  #
450
450
  attr_reader :list_skus
451
451
 
452
452
  # @private
453
453
  def initialize parent_rpcs = nil
454
454
  list_services_config = parent_rpcs&.list_services if parent_rpcs&.respond_to? :list_services
455
- @list_services = Gapic::Config::Method.new list_services_config
455
+ @list_services = ::Gapic::Config::Method.new list_services_config
456
456
  list_skus_config = parent_rpcs&.list_skus if parent_rpcs&.respond_to? :list_skus
457
- @list_skus = Gapic::Config::Method.new list_skus_config
457
+ @list_skus = ::Gapic::Config::Method.new list_skus_config
458
458
 
459
459
  yield self if block_given?
460
460
  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
  ]
@@ -33,7 +33,7 @@ module Google
33
33
  #
34
34
  # @param service [String]
35
35
  #
36
- # @return [String]
36
+ # @return [::String]
37
37
  def service_path service:
38
38
  "services/#{service}"
39
39
  end
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Billing
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -27,7 +27,7 @@ module Google
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
29
  # require "google/cloud/billing/v1"
30
- # client = Google::Cloud::Billing::V1::CloudBilling::Client.new
30
+ # client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new
31
31
  #
32
32
  module V1
33
33
  end
@@ -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<String>]
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