google-cloud-service_directory-v1beta1 0.3.0 → 0.4.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +5 -1
  4. data/lib/google/cloud/service_directory/v1beta1.rb +1 -1
  5. data/lib/google/cloud/service_directory/v1beta1/lookup_service.rb +1 -1
  6. data/lib/google/cloud/service_directory/v1beta1/lookup_service/client.rb +64 -59
  7. data/lib/google/cloud/service_directory/v1beta1/lookup_service/credentials.rb +1 -1
  8. data/lib/google/cloud/service_directory/v1beta1/lookup_service/paths.rb +4 -4
  9. data/lib/google/cloud/service_directory/v1beta1/registration_service.rb +4 -4
  10. data/lib/google/cloud/service_directory/v1beta1/registration_service/client.rb +363 -358
  11. data/lib/google/cloud/service_directory/v1beta1/registration_service/credentials.rb +1 -1
  12. data/lib/google/cloud/service_directory/v1beta1/registration_service/paths.rb +14 -14
  13. data/lib/google/cloud/service_directory/v1beta1/version.rb +1 -1
  14. data/proto_docs/google/api/resource.rb +12 -12
  15. data/proto_docs/google/cloud/servicedirectory/v1beta1/endpoint.rb +11 -11
  16. data/proto_docs/google/cloud/servicedirectory/v1beta1/lookup_service.rb +10 -10
  17. data/proto_docs/google/cloud/servicedirectory/v1beta1/namespace.rb +9 -9
  18. data/proto_docs/google/cloud/servicedirectory/v1beta1/registration_service.rb +96 -96
  19. data/proto_docs/google/cloud/servicedirectory/v1beta1/service.rb +10 -10
  20. data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
  21. data/proto_docs/google/iam/v1/options.rb +3 -3
  22. data/proto_docs/google/iam/v1/policy.rb +26 -26
  23. data/proto_docs/google/protobuf/empty.rb +2 -2
  24. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  25. data/proto_docs/google/type/expr.rb +6 -6
  26. metadata +33 -6
  27. data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ceb13298218cecaebb2064755709b319f7809a5e67619e3949672403ed9988a6
4
- data.tar.gz: a683567f3cd8659b66388f6635a91429c7dd54e91db716f0e82795f1d647f56d
3
+ metadata.gz: c0f4d9ca42e1b5d4665a18dfa70be6878521dfae54005f557a07a3cc0b3df502
4
+ data.tar.gz: c8dc517ccaba1dfec5d7a0cd30a0b12d428fd1a404db0086640aba79dd550b6b
5
5
  SHA512:
6
- metadata.gz: b145c6591d1ec968a1acd761a92a030b95feaf0ff840bd69ffa0744e81989be7e850ce5da94578aa9e6de3cd569f3bc8b8d3f58c009d1a70611b94868662cbdd
7
- data.tar.gz: 65229f5652bd8c785b4062fb44f643f88297b4aa5e69d35b834bff848abfbd63260797edc459c5a2f60b8a8bb53677f67310aa45432f686c9197191d6cc0767f
6
+ metadata.gz: 82539a0424adabc83dbe3220b4d83a3cc9eb7c11c64b6e1a622c389d04283e14d727bf022380f5ff5b4c6cead2ad2021fe9fceeb66f207196c3c2525c8ed7aa4
7
+ data.tar.gz: 63a8e2a4d8898a2a28750433f187b2bcad74ef7679f5b6277ea650297ad84b0d2913d421ac4053fe098565f3b98776fa93df25d22d11ce1f72bdab93612632f7
@@ -27,7 +27,7 @@ export SERVICE_DIRECTORY_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/service_directory/v1beta1"
29
29
 
30
- client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
30
+ client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-service_directory-v1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::ServiceDirectory::V1beta1::LookupService::Credentials}):
67
+ {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Credentials}):
68
68
 
69
69
  1. `SERVICE_DIRECTORY_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `SERVICE_DIRECTORY_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/service_directory/v1beta1"
77
77
 
78
78
  ENV["SERVICE_DIRECTORY_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
80
+ client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
81
81
  ```
82
82
 
83
83
  ### Configuration
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
88
88
  ```ruby
89
89
  require "google/cloud/service_directory/v1beta1"
90
90
 
91
- client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
91
+ client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
93
93
  end
94
94
  ```
@@ -98,11 +98,11 @@ Or configured globally for all clients:
98
98
  ```ruby
99
99
  require "google/cloud/service_directory/v1beta1"
100
100
 
101
- Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
101
+ ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
105
+ client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/servicedirectory.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -25,7 +26,7 @@ In order to use this library, you first need to go through the following steps:
25
26
  ```ruby
26
27
  require "google/cloud/service_directory/v1beta1"
27
28
 
28
- client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
29
+ client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
29
30
  request = my_create_request
30
31
  response = client.resolve_service request
31
32
  ```
@@ -33,6 +34,9 @@ response = client.resolve_service request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-service_directory-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/service-directory)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -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/service_directory/v1beta1"
30
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
30
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
31
31
  #
32
32
  module V1beta1
33
33
  end
@@ -36,7 +36,7 @@ module Google
36
36
  # To load this service and instantiate a client:
37
37
  #
38
38
  # require "google/cloud/service_directory/v1beta1/lookup_service"
39
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
39
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
40
40
  #
41
41
  module LookupService
42
42
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the LookupService Client class.
40
40
  #
41
- # See {Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
41
+ # See {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
44
  # ## Example
45
45
  #
46
46
  # To modify the configuration for all LookupService clients:
47
47
  #
48
- # Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -86,7 +86,7 @@ module Google
86
86
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
87
87
  # should be made on {Client.configure}.
88
88
  #
89
- # See {Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
89
+ # See {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
90
90
  # for a description of the configuration fields.
91
91
  #
92
92
  # @yield [config] Configure the Client client.
@@ -107,13 +107,13 @@ module Google
107
107
  # To create a new LookupService client with the default
108
108
  # configuration:
109
109
  #
110
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
110
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
111
111
  #
112
112
  # To create a new LookupService client with a custom
113
113
  # configuration:
114
114
  #
115
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
116
- # config.timeout = 10_000
115
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
116
+ # config.timeout = 10.0
117
117
  # end
118
118
  #
119
119
  # @yield [config] Configure the LookupService client.
@@ -138,10 +138,11 @@ module Google
138
138
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
139
  credentials = Credentials.new credentials, scope: @config.scope
140
140
  end
141
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
141
+ @quota_project_id = @config.quota_project
142
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
142
143
 
143
- @lookup_service_stub = Gapic::ServiceStub.new(
144
- Google::Cloud::ServiceDirectory::V1beta1::LookupService::Stub,
144
+ @lookup_service_stub = ::Gapic::ServiceStub.new(
145
+ ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Stub,
145
146
  credentials: credentials,
146
147
  endpoint: @config.endpoint,
147
148
  channel_args: @config.channel_args,
@@ -152,18 +153,18 @@ module Google
152
153
  # Service calls
153
154
 
154
155
  ##
155
- # Returns a {Google::Cloud::ServiceDirectory::V1beta1::Service service} and its
156
+ # Returns a {::Google::Cloud::ServiceDirectory::V1beta1::Service service} and its
156
157
  # associated endpoints.
157
158
  # Resolving a service is not considered an active developer method.
158
159
  #
159
160
  # @overload resolve_service(request, options = nil)
160
161
  # Pass arguments to `resolve_service` via a request object, either of type
161
- # {Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest} or an equivalent Hash.
162
+ # {::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest} or an equivalent Hash.
162
163
  #
163
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest, Hash]
164
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest, ::Hash]
164
165
  # A request object representing the call parameters. Required. To specify no
165
166
  # parameters, or to keep all the default parameter values, pass an empty Hash.
166
- # @param options [Gapic::CallOptions, Hash]
167
+ # @param options [::Gapic::CallOptions, ::Hash]
167
168
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
168
169
  #
169
170
  # @overload resolve_service(name: nil, max_endpoints: nil, endpoint_filter: nil)
@@ -171,13 +172,13 @@ module Google
171
172
  # least one keyword argument is required. To specify no parameters, or to keep all
172
173
  # the default parameter values, pass an empty Hash as a request object (see above).
173
174
  #
174
- # @param name [String]
175
+ # @param name [::String]
175
176
  # Required. The name of the service to resolve.
176
- # @param max_endpoints [Integer]
177
+ # @param max_endpoints [::Integer]
177
178
  # Optional. The maximum number of endpoints to return. Defaults to 25. Maximum is 100.
178
179
  # If a value less than one is specified, the Default is used.
179
180
  # If a value greater than the Maximum is specified, the Maximum is used.
180
- # @param endpoint_filter [String]
181
+ # @param endpoint_filter [::String]
181
182
  # Optional. The filter applied to the endpoints of the resolved service.
182
183
  #
183
184
  # General filter string syntax:
@@ -198,26 +199,26 @@ module Google
198
199
  # "sd" AND have the key/value foo=bar.
199
200
  #
200
201
  # @yield [response, operation] Access the result along with the RPC operation
201
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
202
- # @yieldparam operation [GRPC::ActiveCall::Operation]
202
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
203
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
203
204
  #
204
- # @return [Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
205
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
205
206
  #
206
- # @raise [Google::Cloud::Error] if the RPC is aborted.
207
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
207
208
  #
208
209
  def resolve_service request, options = nil
209
- raise ArgumentError, "request must be provided" if request.nil?
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
210
211
 
211
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest
212
213
 
213
214
  # Converts hash and nil to an options object
214
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
216
 
216
217
  # Customize the options with defaults
217
218
  metadata = @config.rpcs.resolve_service.metadata.to_h
218
219
 
219
220
  # Set x-goog-api-client and x-goog-user-project headers
220
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
221
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
221
222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
222
223
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
223
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -238,8 +239,8 @@ module Google
238
239
  yield response, operation if block_given?
239
240
  return response
240
241
  end
241
- rescue GRPC::BadStatus => e
242
- raise Google::Cloud::Error.from_error(e)
242
+ rescue ::GRPC::BadStatus => e
243
+ raise ::Google::Cloud::Error.from_error(e)
243
244
  end
244
245
 
245
246
  ##
@@ -249,7 +250,7 @@ module Google
249
250
  # providing control over timeouts, retry behavior, logging, transport
250
251
  # parameters, and other low-level controls. Certain parameters can also be
251
252
  # applied individually to specific RPCs. See
252
- # {Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration::Rpcs}
253
+ # {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration::Rpcs}
253
254
  # for a list of RPCs that can be configured independently.
254
255
  #
255
256
  # Configuration can be applied globally to all clients, or to a single client
@@ -260,22 +261,22 @@ module Google
260
261
  # To modify the global config, setting the timeout for resolve_service
261
262
  # to 20 seconds, and all remaining timeouts to 10 seconds:
262
263
  #
263
- # Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
264
- # config.timeout = 10_000
265
- # config.rpcs.resolve_service.timeout = 20_000
264
+ # ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
265
+ # config.timeout = 10.0
266
+ # config.rpcs.resolve_service.timeout = 20.0
266
267
  # end
267
268
  #
268
269
  # To apply the above configuration only to a new client:
269
270
  #
270
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
271
- # config.timeout = 10_000
272
- # config.rpcs.resolve_service.timeout = 20_000
271
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
272
+ # config.timeout = 10.0
273
+ # config.rpcs.resolve_service.timeout = 20.0
273
274
  # end
274
275
  #
275
276
  # @!attribute [rw] endpoint
276
277
  # The hostname or hostname:port of the service endpoint.
277
278
  # Defaults to `"servicedirectory.googleapis.com"`.
278
- # @return [String]
279
+ # @return [::String]
279
280
  # @!attribute [rw] credentials
280
281
  # Credentials to send with calls. You may provide any of the following types:
281
282
  # * (`String`) The path to a service account key file in JSON format
@@ -287,29 +288,29 @@ module Google
287
288
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
288
289
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
289
290
  # * (`nil`) indicating no credentials
290
- # @return [Object]
291
+ # @return [::Object]
291
292
  # @!attribute [rw] scope
292
293
  # The OAuth scopes
293
- # @return [Array<String>]
294
+ # @return [::Array<::String>]
294
295
  # @!attribute [rw] lib_name
295
296
  # The library name as recorded in instrumentation and logging
296
- # @return [String]
297
+ # @return [::String]
297
298
  # @!attribute [rw] lib_version
298
299
  # The library version as recorded in instrumentation and logging
299
- # @return [String]
300
+ # @return [::String]
300
301
  # @!attribute [rw] channel_args
301
302
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
302
303
  # `GRPC::Core::Channel` object is provided as the credential.
303
- # @return [Hash]
304
+ # @return [::Hash]
304
305
  # @!attribute [rw] interceptors
305
306
  # An array of interceptors that are run before calls are executed.
306
- # @return [Array<GRPC::ClientInterceptor>]
307
+ # @return [::Array<::GRPC::ClientInterceptor>]
307
308
  # @!attribute [rw] timeout
308
- # The call timeout in milliseconds.
309
- # @return [Numeric]
309
+ # The call timeout in seconds.
310
+ # @return [::Numeric]
310
311
  # @!attribute [rw] metadata
311
312
  # Additional gRPC headers to be sent with the call.
312
- # @return [Hash{Symbol=>String}]
313
+ # @return [::Hash{::Symbol=>::String}]
313
314
  # @!attribute [rw] retry_policy
314
315
  # The retry policy. The value is a hash with the following keys:
315
316
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -317,25 +318,29 @@ module Google
317
318
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
318
319
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
319
320
  # trigger a retry.
320
- # @return [Hash]
321
+ # @return [::Hash]
322
+ # @!attribute [rw] quota_project
323
+ # A separate project against which to charge quota.
324
+ # @return [::String]
321
325
  #
322
326
  class Configuration
323
- extend Gapic::Config
327
+ extend ::Gapic::Config
324
328
 
325
- config_attr :endpoint, "servicedirectory.googleapis.com", String
326
- config_attr :credentials, nil do |value|
329
+ config_attr :endpoint, "servicedirectory.googleapis.com", ::String
330
+ config_attr :credentials, nil do |value|
327
331
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
328
332
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
329
333
  allowed.any? { |klass| klass === value }
330
334
  end
331
- config_attr :scope, nil, String, Array, nil
332
- config_attr :lib_name, nil, String, nil
333
- config_attr :lib_version, nil, String, nil
334
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
335
- config_attr :interceptors, nil, Array, nil
336
- config_attr :timeout, nil, Numeric, nil
337
- config_attr :metadata, nil, Hash, nil
338
- config_attr :retry_policy, nil, Hash, Proc, nil
335
+ config_attr :scope, nil, ::String, ::Array, nil
336
+ config_attr :lib_name, nil, ::String, nil
337
+ config_attr :lib_version, nil, ::String, nil
338
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
339
+ config_attr :interceptors, nil, ::Array, nil
340
+ config_attr :timeout, nil, ::Numeric, nil
341
+ config_attr :metadata, nil, ::Hash, nil
342
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
343
+ config_attr :quota_project, nil, ::String, nil
339
344
 
340
345
  # @private
341
346
  def initialize parent_config = nil
@@ -351,7 +356,7 @@ module Google
351
356
  def rpcs
352
357
  @rpcs ||= begin
353
358
  parent_rpcs = nil
354
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
359
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
355
360
  Rpcs.new parent_rpcs
356
361
  end
357
362
  end
@@ -376,14 +381,14 @@ module Google
376
381
  class Rpcs
377
382
  ##
378
383
  # RPC-specific configuration for `resolve_service`
379
- # @return [Gapic::Config::Method]
384
+ # @return [::Gapic::Config::Method]
380
385
  #
381
386
  attr_reader :resolve_service
382
387
 
383
388
  # @private
384
389
  def initialize parent_rpcs = nil
385
390
  resolve_service_config = parent_rpcs&.resolve_service if parent_rpcs&.respond_to? :resolve_service
386
- @resolve_service = Gapic::Config::Method.new resolve_service_config
391
+ @resolve_service = ::Gapic::Config::Method.new resolve_service_config
387
392
 
388
393
  yield self if block_given?
389
394
  end
@@ -24,7 +24,7 @@ module Google
24
24
  module V1beta1
25
25
  module LookupService
26
26
  # Credentials for the LookupService 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
  ]
@@ -36,11 +36,11 @@ module Google
36
36
  # @param namespace [String]
37
37
  # @param service [String]
38
38
  #
39
- # @return [String]
39
+ # @return [::String]
40
40
  def service_path project:, location:, namespace:, service:
41
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
- raise ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/"
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/"
44
44
 
45
45
  "projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
46
46
  end
@@ -35,22 +35,22 @@ module Google
35
35
  # resource model:
36
36
  #
37
37
  # - The API has a collection of
38
- # {Google::Cloud::ServiceDirectory::V1beta1::Namespace Namespace}
38
+ # {::Google::Cloud::ServiceDirectory::V1beta1::Namespace Namespace}
39
39
  # resources, named `projects/*/locations/*/namespaces/*`.
40
40
  #
41
41
  # - Each Namespace has a collection of
42
- # {Google::Cloud::ServiceDirectory::V1beta1::Service Service} resources, named
42
+ # {::Google::Cloud::ServiceDirectory::V1beta1::Service Service} resources, named
43
43
  # `projects/*/locations/*/namespaces/*/services/*`.
44
44
  #
45
45
  # - Each Service has a collection of
46
- # {Google::Cloud::ServiceDirectory::V1beta1::Endpoint Endpoint}
46
+ # {::Google::Cloud::ServiceDirectory::V1beta1::Endpoint Endpoint}
47
47
  # resources, named
48
48
  # `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
49
49
  #
50
50
  # To load this service and instantiate a client:
51
51
  #
52
52
  # require "google/cloud/service_directory/v1beta1/registration_service"
53
- # client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
53
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
54
54
  #
55
55
  module RegistrationService
56
56
  end
@@ -31,15 +31,15 @@ module Google
31
31
  # resource model:
32
32
  #
33
33
  # - The API has a collection of
34
- # {Google::Cloud::ServiceDirectory::V1beta1::Namespace Namespace}
34
+ # {::Google::Cloud::ServiceDirectory::V1beta1::Namespace Namespace}
35
35
  # resources, named `projects/*/locations/*/namespaces/*`.
36
36
  #
37
37
  # - Each Namespace has a collection of
38
- # {Google::Cloud::ServiceDirectory::V1beta1::Service Service} resources, named
38
+ # {::Google::Cloud::ServiceDirectory::V1beta1::Service Service} resources, named
39
39
  # `projects/*/locations/*/namespaces/*/services/*`.
40
40
  #
41
41
  # - Each Service has a collection of
42
- # {Google::Cloud::ServiceDirectory::V1beta1::Endpoint Endpoint}
42
+ # {::Google::Cloud::ServiceDirectory::V1beta1::Endpoint Endpoint}
43
43
  # resources, named
44
44
  # `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
45
45
  #
@@ -52,15 +52,15 @@ module Google
52
52
  ##
53
53
  # Configure the RegistrationService Client class.
54
54
  #
55
- # See {Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client::Configuration}
55
+ # See {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client::Configuration}
56
56
  # for a description of the configuration fields.
57
57
  #
58
58
  # ## Example
59
59
  #
60
60
  # To modify the configuration for all RegistrationService clients:
61
61
  #
62
- # Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
63
- # config.timeout = 10_000
62
+ # ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
63
+ # config.timeout = 10.0
64
64
  # end
65
65
  #
66
66
  # @yield [config] Configure the Client client.
@@ -100,7 +100,7 @@ module Google
100
100
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
101
101
  # should be made on {Client.configure}.
102
102
  #
103
- # See {Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client::Configuration}
103
+ # See {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client::Configuration}
104
104
  # for a description of the configuration fields.
105
105
  #
106
106
  # @yield [config] Configure the Client client.
@@ -121,13 +121,13 @@ module Google
121
121
  # To create a new RegistrationService client with the default
122
122
  # configuration:
123
123
  #
124
- # client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
124
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new
125
125
  #
126
126
  # To create a new RegistrationService client with a custom
127
127
  # configuration:
128
128
  #
129
- # client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
130
- # config.timeout = 10_000
129
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
130
+ # config.timeout = 10.0
131
131
  # end
132
132
  #
133
133
  # @yield [config] Configure the RegistrationService client.
@@ -152,10 +152,11 @@ module Google
152
152
  if credentials.is_a?(String) || credentials.is_a?(Hash)
153
153
  credentials = Credentials.new credentials, scope: @config.scope
154
154
  end
155
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
155
+ @quota_project_id = @config.quota_project
156
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
156
157
 
157
- @registration_service_stub = Gapic::ServiceStub.new(
158
- Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Stub,
158
+ @registration_service_stub = ::Gapic::ServiceStub.new(
159
+ ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Stub,
159
160
  credentials: credentials,
160
161
  endpoint: @config.endpoint,
161
162
  channel_args: @config.channel_args,
@@ -170,12 +171,12 @@ module Google
170
171
  #
171
172
  # @overload create_namespace(request, options = nil)
172
173
  # Pass arguments to `create_namespace` via a request object, either of type
173
- # {Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest} or an equivalent Hash.
174
+ # {::Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest} or an equivalent Hash.
174
175
  #
175
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest, Hash]
176
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest, ::Hash]
176
177
  # A request object representing the call parameters. Required. To specify no
177
178
  # parameters, or to keep all the default parameter values, pass an empty Hash.
178
- # @param options [Gapic::CallOptions, Hash]
179
+ # @param options [::Gapic::CallOptions, ::Hash]
179
180
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
180
181
  #
181
182
  # @overload create_namespace(parent: nil, namespace_id: nil, namespace: nil)
@@ -183,10 +184,10 @@ module Google
183
184
  # least one keyword argument is required. To specify no parameters, or to keep all
184
185
  # the default parameter values, pass an empty Hash as a request object (see above).
185
186
  #
186
- # @param parent [String]
187
+ # @param parent [::String]
187
188
  # Required. The resource name of the project and location the namespace
188
189
  # will be created in.
189
- # @param namespace_id [String]
190
+ # @param namespace_id [::String]
190
191
  # Required. The Resource ID must be 1-63 characters long, and comply with
191
192
  # <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
192
193
  # Specifically, the name must be 1-63 characters long and match the regular
@@ -194,30 +195,30 @@ module Google
194
195
  # character must be a lowercase letter, and all following characters must
195
196
  # be a dash, lowercase letter, or digit, except the last character, which
196
197
  # cannot be a dash.
197
- # @param namespace [Google::Cloud::ServiceDirectory::V1beta1::Namespace, Hash]
198
+ # @param namespace [::Google::Cloud::ServiceDirectory::V1beta1::Namespace, ::Hash]
198
199
  # Required. A namespace with initial fields set.
199
200
  #
200
201
  # @yield [response, operation] Access the result along with the RPC operation
201
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Namespace]
202
- # @yieldparam operation [GRPC::ActiveCall::Operation]
202
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
203
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
203
204
  #
204
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Namespace]
205
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
205
206
  #
206
- # @raise [Google::Cloud::Error] if the RPC is aborted.
207
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
207
208
  #
208
209
  def create_namespace request, options = nil
209
- raise ArgumentError, "request must be provided" if request.nil?
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
210
211
 
211
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest
212
213
 
213
214
  # Converts hash and nil to an options object
214
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
216
 
216
217
  # Customize the options with defaults
217
218
  metadata = @config.rpcs.create_namespace.metadata.to_h
218
219
 
219
220
  # Set x-goog-api-client and x-goog-user-project headers
220
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
221
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
221
222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
222
223
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
223
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -238,8 +239,8 @@ module Google
238
239
  yield response, operation if block_given?
239
240
  return response
240
241
  end
241
- rescue GRPC::BadStatus => e
242
- raise Google::Cloud::Error.from_error(e)
242
+ rescue ::GRPC::BadStatus => e
243
+ raise ::Google::Cloud::Error.from_error(e)
243
244
  end
244
245
 
245
246
  ##
@@ -247,12 +248,12 @@ module Google
247
248
  #
248
249
  # @overload list_namespaces(request, options = nil)
249
250
  # Pass arguments to `list_namespaces` via a request object, either of type
250
- # {Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest} or an equivalent Hash.
251
+ # {::Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest} or an equivalent Hash.
251
252
  #
252
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest, Hash]
253
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest, ::Hash]
253
254
  # A request object representing the call parameters. Required. To specify no
254
255
  # parameters, or to keep all the default parameter values, pass an empty Hash.
255
- # @param options [Gapic::CallOptions, Hash]
256
+ # @param options [::Gapic::CallOptions, ::Hash]
256
257
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
257
258
  #
258
259
  # @overload list_namespaces(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
@@ -260,14 +261,14 @@ module Google
260
261
  # least one keyword argument is required. To specify no parameters, or to keep all
261
262
  # the default parameter values, pass an empty Hash as a request object (see above).
262
263
  #
263
- # @param parent [String]
264
+ # @param parent [::String]
264
265
  # Required. The resource name of the project and location whose namespaces we'd like to
265
266
  # list.
266
- # @param page_size [Integer]
267
+ # @param page_size [::Integer]
267
268
  # Optional. The maximum number of items to return.
268
- # @param page_token [String]
269
+ # @param page_token [::String]
269
270
  # Optional. The next_page_token value returned from a previous List request, if any.
270
- # @param filter [String]
271
+ # @param filter [::String]
271
272
  # Optional. The filter to list result by.
272
273
  #
273
274
  # General filter string syntax:
@@ -291,7 +292,7 @@ module Google
291
292
  # * "doesnotexist.foo=bar" returns an empty list. Note that Namespace doesn't
292
293
  # have a field called "doesnotexist". Since the filter does not match any
293
294
  # Namespaces, it returns no results.
294
- # @param order_by [String]
295
+ # @param order_by [::String]
295
296
  # Optional. The order to list result by.
296
297
  #
297
298
  # General order by string syntax:
@@ -303,26 +304,26 @@ module Google
303
304
  # by name in ascending order.
304
305
  #
305
306
  # @yield [response, operation] Access the result along with the RPC operation
306
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::ServiceDirectory::V1beta1::Namespace>]
307
- # @yieldparam operation [GRPC::ActiveCall::Operation]
307
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Namespace>]
308
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
308
309
  #
309
- # @return [Gapic::PagedEnumerable<Google::Cloud::ServiceDirectory::V1beta1::Namespace>]
310
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Namespace>]
310
311
  #
311
- # @raise [Google::Cloud::Error] if the RPC is aborted.
312
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
312
313
  #
313
314
  def list_namespaces request, options = nil
314
- raise ArgumentError, "request must be provided" if request.nil?
315
+ raise ::ArgumentError, "request must be provided" if request.nil?
315
316
 
316
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest
317
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest
317
318
 
318
319
  # Converts hash and nil to an options object
319
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
320
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
320
321
 
321
322
  # Customize the options with defaults
322
323
  metadata = @config.rpcs.list_namespaces.metadata.to_h
323
324
 
324
325
  # Set x-goog-api-client and x-goog-user-project headers
325
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
326
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
326
327
  lib_name: @config.lib_name, lib_version: @config.lib_version,
327
328
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
328
329
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -340,12 +341,12 @@ module Google
340
341
  retry_policy: @config.retry_policy
341
342
 
342
343
  @registration_service_stub.call_rpc :list_namespaces, request, options: options do |response, operation|
343
- response = Gapic::PagedEnumerable.new @registration_service_stub, :list_namespaces, request, response, operation, options
344
+ response = ::Gapic::PagedEnumerable.new @registration_service_stub, :list_namespaces, request, response, operation, options
344
345
  yield response, operation if block_given?
345
346
  return response
346
347
  end
347
- rescue GRPC::BadStatus => e
348
- raise Google::Cloud::Error.from_error(e)
348
+ rescue ::GRPC::BadStatus => e
349
+ raise ::Google::Cloud::Error.from_error(e)
349
350
  end
350
351
 
351
352
  ##
@@ -353,12 +354,12 @@ module Google
353
354
  #
354
355
  # @overload get_namespace(request, options = nil)
355
356
  # Pass arguments to `get_namespace` via a request object, either of type
356
- # {Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest} or an equivalent Hash.
357
+ # {::Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest} or an equivalent Hash.
357
358
  #
358
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest, Hash]
359
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest, ::Hash]
359
360
  # A request object representing the call parameters. Required. To specify no
360
361
  # parameters, or to keep all the default parameter values, pass an empty Hash.
361
- # @param options [Gapic::CallOptions, Hash]
362
+ # @param options [::Gapic::CallOptions, ::Hash]
362
363
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
363
364
  #
364
365
  # @overload get_namespace(name: nil)
@@ -366,30 +367,30 @@ module Google
366
367
  # least one keyword argument is required. To specify no parameters, or to keep all
367
368
  # the default parameter values, pass an empty Hash as a request object (see above).
368
369
  #
369
- # @param name [String]
370
+ # @param name [::String]
370
371
  # Required. The name of the namespace to retrieve.
371
372
  #
372
373
  # @yield [response, operation] Access the result along with the RPC operation
373
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Namespace]
374
- # @yieldparam operation [GRPC::ActiveCall::Operation]
374
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
375
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
375
376
  #
376
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Namespace]
377
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
377
378
  #
378
- # @raise [Google::Cloud::Error] if the RPC is aborted.
379
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
379
380
  #
380
381
  def get_namespace request, options = nil
381
- raise ArgumentError, "request must be provided" if request.nil?
382
+ raise ::ArgumentError, "request must be provided" if request.nil?
382
383
 
383
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest
384
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest
384
385
 
385
386
  # Converts hash and nil to an options object
386
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
387
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
387
388
 
388
389
  # Customize the options with defaults
389
390
  metadata = @config.rpcs.get_namespace.metadata.to_h
390
391
 
391
392
  # Set x-goog-api-client and x-goog-user-project headers
392
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
393
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
393
394
  lib_name: @config.lib_name, lib_version: @config.lib_version,
394
395
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
395
396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -410,8 +411,8 @@ module Google
410
411
  yield response, operation if block_given?
411
412
  return response
412
413
  end
413
- rescue GRPC::BadStatus => e
414
- raise Google::Cloud::Error.from_error(e)
414
+ rescue ::GRPC::BadStatus => e
415
+ raise ::Google::Cloud::Error.from_error(e)
415
416
  end
416
417
 
417
418
  ##
@@ -419,12 +420,12 @@ module Google
419
420
  #
420
421
  # @overload update_namespace(request, options = nil)
421
422
  # Pass arguments to `update_namespace` via a request object, either of type
422
- # {Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest} or an equivalent Hash.
423
+ # {::Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest} or an equivalent Hash.
423
424
  #
424
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest, Hash]
425
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest, ::Hash]
425
426
  # A request object representing the call parameters. Required. To specify no
426
427
  # parameters, or to keep all the default parameter values, pass an empty Hash.
427
- # @param options [Gapic::CallOptions, Hash]
428
+ # @param options [::Gapic::CallOptions, ::Hash]
428
429
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
429
430
  #
430
431
  # @overload update_namespace(namespace: nil, update_mask: nil)
@@ -432,32 +433,32 @@ module Google
432
433
  # least one keyword argument is required. To specify no parameters, or to keep all
433
434
  # the default parameter values, pass an empty Hash as a request object (see above).
434
435
  #
435
- # @param namespace [Google::Cloud::ServiceDirectory::V1beta1::Namespace, Hash]
436
+ # @param namespace [::Google::Cloud::ServiceDirectory::V1beta1::Namespace, ::Hash]
436
437
  # Required. The updated namespace.
437
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
438
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
438
439
  # Required. List of fields to be updated in this request.
439
440
  #
440
441
  # @yield [response, operation] Access the result along with the RPC operation
441
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Namespace]
442
- # @yieldparam operation [GRPC::ActiveCall::Operation]
442
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
443
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
443
444
  #
444
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Namespace]
445
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Namespace]
445
446
  #
446
- # @raise [Google::Cloud::Error] if the RPC is aborted.
447
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
448
  #
448
449
  def update_namespace request, options = nil
449
- raise ArgumentError, "request must be provided" if request.nil?
450
+ raise ::ArgumentError, "request must be provided" if request.nil?
450
451
 
451
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest
452
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest
452
453
 
453
454
  # Converts hash and nil to an options object
454
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
455
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
455
456
 
456
457
  # Customize the options with defaults
457
458
  metadata = @config.rpcs.update_namespace.metadata.to_h
458
459
 
459
460
  # Set x-goog-api-client and x-goog-user-project headers
460
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
461
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
461
462
  lib_name: @config.lib_name, lib_version: @config.lib_version,
462
463
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
463
464
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -478,8 +479,8 @@ module Google
478
479
  yield response, operation if block_given?
479
480
  return response
480
481
  end
481
- rescue GRPC::BadStatus => e
482
- raise Google::Cloud::Error.from_error(e)
482
+ rescue ::GRPC::BadStatus => e
483
+ raise ::Google::Cloud::Error.from_error(e)
483
484
  end
484
485
 
485
486
  ##
@@ -488,12 +489,12 @@ module Google
488
489
  #
489
490
  # @overload delete_namespace(request, options = nil)
490
491
  # Pass arguments to `delete_namespace` via a request object, either of type
491
- # {Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest} or an equivalent Hash.
492
+ # {::Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest} or an equivalent Hash.
492
493
  #
493
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest, Hash]
494
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest, ::Hash]
494
495
  # A request object representing the call parameters. Required. To specify no
495
496
  # parameters, or to keep all the default parameter values, pass an empty Hash.
496
- # @param options [Gapic::CallOptions, Hash]
497
+ # @param options [::Gapic::CallOptions, ::Hash]
497
498
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
498
499
  #
499
500
  # @overload delete_namespace(name: nil)
@@ -501,30 +502,30 @@ module Google
501
502
  # least one keyword argument is required. To specify no parameters, or to keep all
502
503
  # the default parameter values, pass an empty Hash as a request object (see above).
503
504
  #
504
- # @param name [String]
505
+ # @param name [::String]
505
506
  # Required. The name of the namespace to delete.
506
507
  #
507
508
  # @yield [response, operation] Access the result along with the RPC operation
508
- # @yieldparam response [Google::Protobuf::Empty]
509
- # @yieldparam operation [GRPC::ActiveCall::Operation]
509
+ # @yieldparam response [::Google::Protobuf::Empty]
510
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
510
511
  #
511
- # @return [Google::Protobuf::Empty]
512
+ # @return [::Google::Protobuf::Empty]
512
513
  #
513
- # @raise [Google::Cloud::Error] if the RPC is aborted.
514
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
514
515
  #
515
516
  def delete_namespace request, options = nil
516
- raise ArgumentError, "request must be provided" if request.nil?
517
+ raise ::ArgumentError, "request must be provided" if request.nil?
517
518
 
518
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest
519
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest
519
520
 
520
521
  # Converts hash and nil to an options object
521
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
522
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
522
523
 
523
524
  # Customize the options with defaults
524
525
  metadata = @config.rpcs.delete_namespace.metadata.to_h
525
526
 
526
527
  # Set x-goog-api-client and x-goog-user-project headers
527
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
528
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
528
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
529
530
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
530
531
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -545,8 +546,8 @@ module Google
545
546
  yield response, operation if block_given?
546
547
  return response
547
548
  end
548
- rescue GRPC::BadStatus => e
549
- raise Google::Cloud::Error.from_error(e)
549
+ rescue ::GRPC::BadStatus => e
550
+ raise ::Google::Cloud::Error.from_error(e)
550
551
  end
551
552
 
552
553
  ##
@@ -554,12 +555,12 @@ module Google
554
555
  #
555
556
  # @overload create_service(request, options = nil)
556
557
  # Pass arguments to `create_service` via a request object, either of type
557
- # {Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest} or an equivalent Hash.
558
+ # {::Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest} or an equivalent Hash.
558
559
  #
559
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest, Hash]
560
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest, ::Hash]
560
561
  # A request object representing the call parameters. Required. To specify no
561
562
  # parameters, or to keep all the default parameter values, pass an empty Hash.
562
- # @param options [Gapic::CallOptions, Hash]
563
+ # @param options [::Gapic::CallOptions, ::Hash]
563
564
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
564
565
  #
565
566
  # @overload create_service(parent: nil, service_id: nil, service: nil)
@@ -567,9 +568,9 @@ module Google
567
568
  # least one keyword argument is required. To specify no parameters, or to keep all
568
569
  # the default parameter values, pass an empty Hash as a request object (see above).
569
570
  #
570
- # @param parent [String]
571
+ # @param parent [::String]
571
572
  # Required. The resource name of the namespace this service will belong to.
572
- # @param service_id [String]
573
+ # @param service_id [::String]
573
574
  # Required. The Resource ID must be 1-63 characters long, and comply with
574
575
  # <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
575
576
  # Specifically, the name must be 1-63 characters long and match the regular
@@ -577,30 +578,30 @@ module Google
577
578
  # character must be a lowercase letter, and all following characters must
578
579
  # be a dash, lowercase letter, or digit, except the last character, which
579
580
  # cannot be a dash.
580
- # @param service [Google::Cloud::ServiceDirectory::V1beta1::Service, Hash]
581
+ # @param service [::Google::Cloud::ServiceDirectory::V1beta1::Service, ::Hash]
581
582
  # Required. A service with initial fields set.
582
583
  #
583
584
  # @yield [response, operation] Access the result along with the RPC operation
584
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Service]
585
- # @yieldparam operation [GRPC::ActiveCall::Operation]
585
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Service]
586
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
586
587
  #
587
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Service]
588
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Service]
588
589
  #
589
- # @raise [Google::Cloud::Error] if the RPC is aborted.
590
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
590
591
  #
591
592
  def create_service request, options = nil
592
- raise ArgumentError, "request must be provided" if request.nil?
593
+ raise ::ArgumentError, "request must be provided" if request.nil?
593
594
 
594
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest
595
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest
595
596
 
596
597
  # Converts hash and nil to an options object
597
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
598
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
598
599
 
599
600
  # Customize the options with defaults
600
601
  metadata = @config.rpcs.create_service.metadata.to_h
601
602
 
602
603
  # Set x-goog-api-client and x-goog-user-project headers
603
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
604
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
605
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
606
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
606
607
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -621,8 +622,8 @@ module Google
621
622
  yield response, operation if block_given?
622
623
  return response
623
624
  end
624
- rescue GRPC::BadStatus => e
625
- raise Google::Cloud::Error.from_error(e)
625
+ rescue ::GRPC::BadStatus => e
626
+ raise ::Google::Cloud::Error.from_error(e)
626
627
  end
627
628
 
628
629
  ##
@@ -630,12 +631,12 @@ module Google
630
631
  #
631
632
  # @overload list_services(request, options = nil)
632
633
  # Pass arguments to `list_services` via a request object, either of type
633
- # {Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest} or an equivalent Hash.
634
+ # {::Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest} or an equivalent Hash.
634
635
  #
635
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest, Hash]
636
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest, ::Hash]
636
637
  # A request object representing the call parameters. Required. To specify no
637
638
  # parameters, or to keep all the default parameter values, pass an empty Hash.
638
- # @param options [Gapic::CallOptions, Hash]
639
+ # @param options [::Gapic::CallOptions, ::Hash]
639
640
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
640
641
  #
641
642
  # @overload list_services(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
@@ -643,15 +644,15 @@ module Google
643
644
  # least one keyword argument is required. To specify no parameters, or to keep all
644
645
  # the default parameter values, pass an empty Hash as a request object (see above).
645
646
  #
646
- # @param parent [String]
647
+ # @param parent [::String]
647
648
  # Required. The resource name of the namespace whose services we'd
648
649
  # like to list.
649
- # @param page_size [Integer]
650
+ # @param page_size [::Integer]
650
651
  # Optional. The maximum number of items to return.
651
- # @param page_token [String]
652
+ # @param page_token [::String]
652
653
  # Optional. The next_page_token value returned from a previous List request,
653
654
  # if any.
654
- # @param filter [String]
655
+ # @param filter [::String]
655
656
  # Optional. The filter to list result by.
656
657
  #
657
658
  # General filter string syntax:
@@ -675,30 +676,30 @@ module Google
675
676
  # * "doesnotexist.foo=bar" returns an empty list. Note that Service doesn't
676
677
  # have a field called "doesnotexist". Since the filter does not match any
677
678
  # Services, it returns no results.
678
- # @param order_by [String]
679
+ # @param order_by [::String]
679
680
  # Optional. The order to list result by.
680
681
  #
681
682
  # @yield [response, operation] Access the result along with the RPC operation
682
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::ServiceDirectory::V1beta1::Service>]
683
- # @yieldparam operation [GRPC::ActiveCall::Operation]
683
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Service>]
684
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
684
685
  #
685
- # @return [Gapic::PagedEnumerable<Google::Cloud::ServiceDirectory::V1beta1::Service>]
686
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Service>]
686
687
  #
687
- # @raise [Google::Cloud::Error] if the RPC is aborted.
688
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
688
689
  #
689
690
  def list_services request, options = nil
690
- raise ArgumentError, "request must be provided" if request.nil?
691
+ raise ::ArgumentError, "request must be provided" if request.nil?
691
692
 
692
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest
693
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest
693
694
 
694
695
  # Converts hash and nil to an options object
695
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
696
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
696
697
 
697
698
  # Customize the options with defaults
698
699
  metadata = @config.rpcs.list_services.metadata.to_h
699
700
 
700
701
  # Set x-goog-api-client and x-goog-user-project headers
701
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
702
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
702
703
  lib_name: @config.lib_name, lib_version: @config.lib_version,
703
704
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
704
705
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -716,12 +717,12 @@ module Google
716
717
  retry_policy: @config.retry_policy
717
718
 
718
719
  @registration_service_stub.call_rpc :list_services, request, options: options do |response, operation|
719
- response = Gapic::PagedEnumerable.new @registration_service_stub, :list_services, request, response, operation, options
720
+ response = ::Gapic::PagedEnumerable.new @registration_service_stub, :list_services, request, response, operation, options
720
721
  yield response, operation if block_given?
721
722
  return response
722
723
  end
723
- rescue GRPC::BadStatus => e
724
- raise Google::Cloud::Error.from_error(e)
724
+ rescue ::GRPC::BadStatus => e
725
+ raise ::Google::Cloud::Error.from_error(e)
725
726
  end
726
727
 
727
728
  ##
@@ -729,12 +730,12 @@ module Google
729
730
  #
730
731
  # @overload get_service(request, options = nil)
731
732
  # Pass arguments to `get_service` via a request object, either of type
732
- # {Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest} or an equivalent Hash.
733
+ # {::Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest} or an equivalent Hash.
733
734
  #
734
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest, Hash]
735
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest, ::Hash]
735
736
  # A request object representing the call parameters. Required. To specify no
736
737
  # parameters, or to keep all the default parameter values, pass an empty Hash.
737
- # @param options [Gapic::CallOptions, Hash]
738
+ # @param options [::Gapic::CallOptions, ::Hash]
738
739
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
739
740
  #
740
741
  # @overload get_service(name: nil)
@@ -742,30 +743,30 @@ module Google
742
743
  # least one keyword argument is required. To specify no parameters, or to keep all
743
744
  # the default parameter values, pass an empty Hash as a request object (see above).
744
745
  #
745
- # @param name [String]
746
+ # @param name [::String]
746
747
  # Required. The name of the service to get.
747
748
  #
748
749
  # @yield [response, operation] Access the result along with the RPC operation
749
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Service]
750
- # @yieldparam operation [GRPC::ActiveCall::Operation]
750
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Service]
751
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
751
752
  #
752
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Service]
753
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Service]
753
754
  #
754
- # @raise [Google::Cloud::Error] if the RPC is aborted.
755
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
755
756
  #
756
757
  def get_service request, options = nil
757
- raise ArgumentError, "request must be provided" if request.nil?
758
+ raise ::ArgumentError, "request must be provided" if request.nil?
758
759
 
759
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest
760
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest
760
761
 
761
762
  # Converts hash and nil to an options object
762
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
763
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
763
764
 
764
765
  # Customize the options with defaults
765
766
  metadata = @config.rpcs.get_service.metadata.to_h
766
767
 
767
768
  # Set x-goog-api-client and x-goog-user-project headers
768
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
769
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
769
770
  lib_name: @config.lib_name, lib_version: @config.lib_version,
770
771
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
771
772
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -786,8 +787,8 @@ module Google
786
787
  yield response, operation if block_given?
787
788
  return response
788
789
  end
789
- rescue GRPC::BadStatus => e
790
- raise Google::Cloud::Error.from_error(e)
790
+ rescue ::GRPC::BadStatus => e
791
+ raise ::Google::Cloud::Error.from_error(e)
791
792
  end
792
793
 
793
794
  ##
@@ -795,12 +796,12 @@ module Google
795
796
  #
796
797
  # @overload update_service(request, options = nil)
797
798
  # Pass arguments to `update_service` via a request object, either of type
798
- # {Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest} or an equivalent Hash.
799
+ # {::Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest} or an equivalent Hash.
799
800
  #
800
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest, Hash]
801
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest, ::Hash]
801
802
  # A request object representing the call parameters. Required. To specify no
802
803
  # parameters, or to keep all the default parameter values, pass an empty Hash.
803
- # @param options [Gapic::CallOptions, Hash]
804
+ # @param options [::Gapic::CallOptions, ::Hash]
804
805
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
805
806
  #
806
807
  # @overload update_service(service: nil, update_mask: nil)
@@ -808,32 +809,32 @@ module Google
808
809
  # least one keyword argument is required. To specify no parameters, or to keep all
809
810
  # the default parameter values, pass an empty Hash as a request object (see above).
810
811
  #
811
- # @param service [Google::Cloud::ServiceDirectory::V1beta1::Service, Hash]
812
+ # @param service [::Google::Cloud::ServiceDirectory::V1beta1::Service, ::Hash]
812
813
  # Required. The updated service.
813
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
814
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
814
815
  # Required. List of fields to be updated in this request.
815
816
  #
816
817
  # @yield [response, operation] Access the result along with the RPC operation
817
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Service]
818
- # @yieldparam operation [GRPC::ActiveCall::Operation]
818
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Service]
819
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
819
820
  #
820
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Service]
821
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Service]
821
822
  #
822
- # @raise [Google::Cloud::Error] if the RPC is aborted.
823
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
823
824
  #
824
825
  def update_service request, options = nil
825
- raise ArgumentError, "request must be provided" if request.nil?
826
+ raise ::ArgumentError, "request must be provided" if request.nil?
826
827
 
827
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest
828
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest
828
829
 
829
830
  # Converts hash and nil to an options object
830
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
831
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
831
832
 
832
833
  # Customize the options with defaults
833
834
  metadata = @config.rpcs.update_service.metadata.to_h
834
835
 
835
836
  # Set x-goog-api-client and x-goog-user-project headers
836
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
837
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
837
838
  lib_name: @config.lib_name, lib_version: @config.lib_version,
838
839
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
839
840
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -854,8 +855,8 @@ module Google
854
855
  yield response, operation if block_given?
855
856
  return response
856
857
  end
857
- rescue GRPC::BadStatus => e
858
- raise Google::Cloud::Error.from_error(e)
858
+ rescue ::GRPC::BadStatus => e
859
+ raise ::Google::Cloud::Error.from_error(e)
859
860
  end
860
861
 
861
862
  ##
@@ -864,12 +865,12 @@ module Google
864
865
  #
865
866
  # @overload delete_service(request, options = nil)
866
867
  # Pass arguments to `delete_service` via a request object, either of type
867
- # {Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest} or an equivalent Hash.
868
+ # {::Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest} or an equivalent Hash.
868
869
  #
869
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest, Hash]
870
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest, ::Hash]
870
871
  # A request object representing the call parameters. Required. To specify no
871
872
  # parameters, or to keep all the default parameter values, pass an empty Hash.
872
- # @param options [Gapic::CallOptions, Hash]
873
+ # @param options [::Gapic::CallOptions, ::Hash]
873
874
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
874
875
  #
875
876
  # @overload delete_service(name: nil)
@@ -877,30 +878,30 @@ module Google
877
878
  # least one keyword argument is required. To specify no parameters, or to keep all
878
879
  # the default parameter values, pass an empty Hash as a request object (see above).
879
880
  #
880
- # @param name [String]
881
+ # @param name [::String]
881
882
  # Required. The name of the service to delete.
882
883
  #
883
884
  # @yield [response, operation] Access the result along with the RPC operation
884
- # @yieldparam response [Google::Protobuf::Empty]
885
- # @yieldparam operation [GRPC::ActiveCall::Operation]
885
+ # @yieldparam response [::Google::Protobuf::Empty]
886
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
886
887
  #
887
- # @return [Google::Protobuf::Empty]
888
+ # @return [::Google::Protobuf::Empty]
888
889
  #
889
- # @raise [Google::Cloud::Error] if the RPC is aborted.
890
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
890
891
  #
891
892
  def delete_service request, options = nil
892
- raise ArgumentError, "request must be provided" if request.nil?
893
+ raise ::ArgumentError, "request must be provided" if request.nil?
893
894
 
894
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest
895
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest
895
896
 
896
897
  # Converts hash and nil to an options object
897
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
898
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
898
899
 
899
900
  # Customize the options with defaults
900
901
  metadata = @config.rpcs.delete_service.metadata.to_h
901
902
 
902
903
  # Set x-goog-api-client and x-goog-user-project headers
903
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
904
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
904
905
  lib_name: @config.lib_name, lib_version: @config.lib_version,
905
906
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
906
907
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -921,8 +922,8 @@ module Google
921
922
  yield response, operation if block_given?
922
923
  return response
923
924
  end
924
- rescue GRPC::BadStatus => e
925
- raise Google::Cloud::Error.from_error(e)
925
+ rescue ::GRPC::BadStatus => e
926
+ raise ::Google::Cloud::Error.from_error(e)
926
927
  end
927
928
 
928
929
  ##
@@ -930,12 +931,12 @@ module Google
930
931
  #
931
932
  # @overload create_endpoint(request, options = nil)
932
933
  # Pass arguments to `create_endpoint` via a request object, either of type
933
- # {Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest} or an equivalent Hash.
934
+ # {::Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest} or an equivalent Hash.
934
935
  #
935
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest, Hash]
936
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest, ::Hash]
936
937
  # A request object representing the call parameters. Required. To specify no
937
938
  # parameters, or to keep all the default parameter values, pass an empty Hash.
938
- # @param options [Gapic::CallOptions, Hash]
939
+ # @param options [::Gapic::CallOptions, ::Hash]
939
940
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
940
941
  #
941
942
  # @overload create_endpoint(parent: nil, endpoint_id: nil, endpoint: nil)
@@ -943,9 +944,9 @@ module Google
943
944
  # least one keyword argument is required. To specify no parameters, or to keep all
944
945
  # the default parameter values, pass an empty Hash as a request object (see above).
945
946
  #
946
- # @param parent [String]
947
+ # @param parent [::String]
947
948
  # Required. The resource name of the service that this endpoint provides.
948
- # @param endpoint_id [String]
949
+ # @param endpoint_id [::String]
949
950
  # Required. The Resource ID must be 1-63 characters long, and comply with
950
951
  # <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
951
952
  # Specifically, the name must be 1-63 characters long and match the regular
@@ -953,30 +954,30 @@ module Google
953
954
  # character must be a lowercase letter, and all following characters must
954
955
  # be a dash, lowercase letter, or digit, except the last character, which
955
956
  # cannot be a dash.
956
- # @param endpoint [Google::Cloud::ServiceDirectory::V1beta1::Endpoint, Hash]
957
+ # @param endpoint [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint, ::Hash]
957
958
  # Required. A endpoint with initial fields set.
958
959
  #
959
960
  # @yield [response, operation] Access the result along with the RPC operation
960
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
961
- # @yieldparam operation [GRPC::ActiveCall::Operation]
961
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
962
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
962
963
  #
963
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
964
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
964
965
  #
965
- # @raise [Google::Cloud::Error] if the RPC is aborted.
966
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
966
967
  #
967
968
  def create_endpoint request, options = nil
968
- raise ArgumentError, "request must be provided" if request.nil?
969
+ raise ::ArgumentError, "request must be provided" if request.nil?
969
970
 
970
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest
971
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest
971
972
 
972
973
  # Converts hash and nil to an options object
973
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
974
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
974
975
 
975
976
  # Customize the options with defaults
976
977
  metadata = @config.rpcs.create_endpoint.metadata.to_h
977
978
 
978
979
  # Set x-goog-api-client and x-goog-user-project headers
979
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
980
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
980
981
  lib_name: @config.lib_name, lib_version: @config.lib_version,
981
982
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
982
983
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -997,8 +998,8 @@ module Google
997
998
  yield response, operation if block_given?
998
999
  return response
999
1000
  end
1000
- rescue GRPC::BadStatus => e
1001
- raise Google::Cloud::Error.from_error(e)
1001
+ rescue ::GRPC::BadStatus => e
1002
+ raise ::Google::Cloud::Error.from_error(e)
1002
1003
  end
1003
1004
 
1004
1005
  ##
@@ -1006,12 +1007,12 @@ module Google
1006
1007
  #
1007
1008
  # @overload list_endpoints(request, options = nil)
1008
1009
  # Pass arguments to `list_endpoints` via a request object, either of type
1009
- # {Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest} or an equivalent Hash.
1010
+ # {::Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest} or an equivalent Hash.
1010
1011
  #
1011
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest, Hash]
1012
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest, ::Hash]
1012
1013
  # A request object representing the call parameters. Required. To specify no
1013
1014
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1014
- # @param options [Gapic::CallOptions, Hash]
1015
+ # @param options [::Gapic::CallOptions, ::Hash]
1015
1016
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1016
1017
  #
1017
1018
  # @overload list_endpoints(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
@@ -1019,15 +1020,15 @@ module Google
1019
1020
  # least one keyword argument is required. To specify no parameters, or to keep all
1020
1021
  # the default parameter values, pass an empty Hash as a request object (see above).
1021
1022
  #
1022
- # @param parent [String]
1023
+ # @param parent [::String]
1023
1024
  # Required. The resource name of the service whose endpoints we'd like to
1024
1025
  # list.
1025
- # @param page_size [Integer]
1026
+ # @param page_size [::Integer]
1026
1027
  # Optional. The maximum number of items to return.
1027
- # @param page_token [String]
1028
+ # @param page_token [::String]
1028
1029
  # Optional. The next_page_token value returned from a previous List request,
1029
1030
  # if any.
1030
- # @param filter [String]
1031
+ # @param filter [::String]
1031
1032
  # Optional. The filter to list result by.
1032
1033
  #
1033
1034
  # General filter string syntax:
@@ -1053,30 +1054,30 @@ module Google
1053
1054
  # * "doesnotexist.foo=bar" returns an empty list. Note that Endpoint doesn't
1054
1055
  # have a field called "doesnotexist". Since the filter does not match any
1055
1056
  # Endpoints, it returns no results.
1056
- # @param order_by [String]
1057
+ # @param order_by [::String]
1057
1058
  # Optional. The order to list result by.
1058
1059
  #
1059
1060
  # @yield [response, operation] Access the result along with the RPC operation
1060
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::ServiceDirectory::V1beta1::Endpoint>]
1061
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1061
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Endpoint>]
1062
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1062
1063
  #
1063
- # @return [Gapic::PagedEnumerable<Google::Cloud::ServiceDirectory::V1beta1::Endpoint>]
1064
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::ServiceDirectory::V1beta1::Endpoint>]
1064
1065
  #
1065
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1066
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1066
1067
  #
1067
1068
  def list_endpoints request, options = nil
1068
- raise ArgumentError, "request must be provided" if request.nil?
1069
+ raise ::ArgumentError, "request must be provided" if request.nil?
1069
1070
 
1070
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest
1071
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest
1071
1072
 
1072
1073
  # Converts hash and nil to an options object
1073
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1074
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1074
1075
 
1075
1076
  # Customize the options with defaults
1076
1077
  metadata = @config.rpcs.list_endpoints.metadata.to_h
1077
1078
 
1078
1079
  # Set x-goog-api-client and x-goog-user-project headers
1079
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1080
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1080
1081
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1081
1082
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1082
1083
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1094,12 +1095,12 @@ module Google
1094
1095
  retry_policy: @config.retry_policy
1095
1096
 
1096
1097
  @registration_service_stub.call_rpc :list_endpoints, request, options: options do |response, operation|
1097
- response = Gapic::PagedEnumerable.new @registration_service_stub, :list_endpoints, request, response, operation, options
1098
+ response = ::Gapic::PagedEnumerable.new @registration_service_stub, :list_endpoints, request, response, operation, options
1098
1099
  yield response, operation if block_given?
1099
1100
  return response
1100
1101
  end
1101
- rescue GRPC::BadStatus => e
1102
- raise Google::Cloud::Error.from_error(e)
1102
+ rescue ::GRPC::BadStatus => e
1103
+ raise ::Google::Cloud::Error.from_error(e)
1103
1104
  end
1104
1105
 
1105
1106
  ##
@@ -1107,12 +1108,12 @@ module Google
1107
1108
  #
1108
1109
  # @overload get_endpoint(request, options = nil)
1109
1110
  # Pass arguments to `get_endpoint` via a request object, either of type
1110
- # {Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest} or an equivalent Hash.
1111
+ # {::Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest} or an equivalent Hash.
1111
1112
  #
1112
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest, Hash]
1113
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest, ::Hash]
1113
1114
  # A request object representing the call parameters. Required. To specify no
1114
1115
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1115
- # @param options [Gapic::CallOptions, Hash]
1116
+ # @param options [::Gapic::CallOptions, ::Hash]
1116
1117
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1117
1118
  #
1118
1119
  # @overload get_endpoint(name: nil)
@@ -1120,30 +1121,30 @@ module Google
1120
1121
  # least one keyword argument is required. To specify no parameters, or to keep all
1121
1122
  # the default parameter values, pass an empty Hash as a request object (see above).
1122
1123
  #
1123
- # @param name [String]
1124
+ # @param name [::String]
1124
1125
  # Required. The name of the endpoint to get.
1125
1126
  #
1126
1127
  # @yield [response, operation] Access the result along with the RPC operation
1127
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1128
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1128
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1129
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1129
1130
  #
1130
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1131
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1131
1132
  #
1132
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1133
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1133
1134
  #
1134
1135
  def get_endpoint request, options = nil
1135
- raise ArgumentError, "request must be provided" if request.nil?
1136
+ raise ::ArgumentError, "request must be provided" if request.nil?
1136
1137
 
1137
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest
1138
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest
1138
1139
 
1139
1140
  # Converts hash and nil to an options object
1140
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1141
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1141
1142
 
1142
1143
  # Customize the options with defaults
1143
1144
  metadata = @config.rpcs.get_endpoint.metadata.to_h
1144
1145
 
1145
1146
  # Set x-goog-api-client and x-goog-user-project headers
1146
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1147
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1147
1148
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1148
1149
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1149
1150
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1164,8 +1165,8 @@ module Google
1164
1165
  yield response, operation if block_given?
1165
1166
  return response
1166
1167
  end
1167
- rescue GRPC::BadStatus => e
1168
- raise Google::Cloud::Error.from_error(e)
1168
+ rescue ::GRPC::BadStatus => e
1169
+ raise ::Google::Cloud::Error.from_error(e)
1169
1170
  end
1170
1171
 
1171
1172
  ##
@@ -1173,12 +1174,12 @@ module Google
1173
1174
  #
1174
1175
  # @overload update_endpoint(request, options = nil)
1175
1176
  # Pass arguments to `update_endpoint` via a request object, either of type
1176
- # {Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest} or an equivalent Hash.
1177
+ # {::Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest} or an equivalent Hash.
1177
1178
  #
1178
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest, Hash]
1179
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest, ::Hash]
1179
1180
  # A request object representing the call parameters. Required. To specify no
1180
1181
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1181
- # @param options [Gapic::CallOptions, Hash]
1182
+ # @param options [::Gapic::CallOptions, ::Hash]
1182
1183
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1183
1184
  #
1184
1185
  # @overload update_endpoint(endpoint: nil, update_mask: nil)
@@ -1186,32 +1187,32 @@ module Google
1186
1187
  # least one keyword argument is required. To specify no parameters, or to keep all
1187
1188
  # the default parameter values, pass an empty Hash as a request object (see above).
1188
1189
  #
1189
- # @param endpoint [Google::Cloud::ServiceDirectory::V1beta1::Endpoint, Hash]
1190
+ # @param endpoint [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint, ::Hash]
1190
1191
  # Required. The updated endpoint.
1191
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
1192
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1192
1193
  # Required. List of fields to be updated in this request.
1193
1194
  #
1194
1195
  # @yield [response, operation] Access the result along with the RPC operation
1195
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1196
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1196
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1197
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1197
1198
  #
1198
- # @return [Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1199
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::Endpoint]
1199
1200
  #
1200
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1201
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1201
1202
  #
1202
1203
  def update_endpoint request, options = nil
1203
- raise ArgumentError, "request must be provided" if request.nil?
1204
+ raise ::ArgumentError, "request must be provided" if request.nil?
1204
1205
 
1205
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest
1206
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest
1206
1207
 
1207
1208
  # Converts hash and nil to an options object
1208
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1209
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1209
1210
 
1210
1211
  # Customize the options with defaults
1211
1212
  metadata = @config.rpcs.update_endpoint.metadata.to_h
1212
1213
 
1213
1214
  # Set x-goog-api-client and x-goog-user-project headers
1214
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1215
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1215
1216
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1216
1217
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1217
1218
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1232,8 +1233,8 @@ module Google
1232
1233
  yield response, operation if block_given?
1233
1234
  return response
1234
1235
  end
1235
- rescue GRPC::BadStatus => e
1236
- raise Google::Cloud::Error.from_error(e)
1236
+ rescue ::GRPC::BadStatus => e
1237
+ raise ::Google::Cloud::Error.from_error(e)
1237
1238
  end
1238
1239
 
1239
1240
  ##
@@ -1241,12 +1242,12 @@ module Google
1241
1242
  #
1242
1243
  # @overload delete_endpoint(request, options = nil)
1243
1244
  # Pass arguments to `delete_endpoint` via a request object, either of type
1244
- # {Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest} or an equivalent Hash.
1245
+ # {::Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest} or an equivalent Hash.
1245
1246
  #
1246
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest, Hash]
1247
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest, ::Hash]
1247
1248
  # A request object representing the call parameters. Required. To specify no
1248
1249
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1249
- # @param options [Gapic::CallOptions, Hash]
1250
+ # @param options [::Gapic::CallOptions, ::Hash]
1250
1251
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1251
1252
  #
1252
1253
  # @overload delete_endpoint(name: nil)
@@ -1254,30 +1255,30 @@ module Google
1254
1255
  # least one keyword argument is required. To specify no parameters, or to keep all
1255
1256
  # the default parameter values, pass an empty Hash as a request object (see above).
1256
1257
  #
1257
- # @param name [String]
1258
+ # @param name [::String]
1258
1259
  # Required. The name of the endpoint to delete.
1259
1260
  #
1260
1261
  # @yield [response, operation] Access the result along with the RPC operation
1261
- # @yieldparam response [Google::Protobuf::Empty]
1262
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1262
+ # @yieldparam response [::Google::Protobuf::Empty]
1263
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1263
1264
  #
1264
- # @return [Google::Protobuf::Empty]
1265
+ # @return [::Google::Protobuf::Empty]
1265
1266
  #
1266
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1267
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1267
1268
  #
1268
1269
  def delete_endpoint request, options = nil
1269
- raise ArgumentError, "request must be provided" if request.nil?
1270
+ raise ::ArgumentError, "request must be provided" if request.nil?
1270
1271
 
1271
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest
1272
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest
1272
1273
 
1273
1274
  # Converts hash and nil to an options object
1274
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1275
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1275
1276
 
1276
1277
  # Customize the options with defaults
1277
1278
  metadata = @config.rpcs.delete_endpoint.metadata.to_h
1278
1279
 
1279
1280
  # Set x-goog-api-client and x-goog-user-project headers
1280
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1281
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1281
1282
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1282
1283
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1283
1284
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1298,8 +1299,8 @@ module Google
1298
1299
  yield response, operation if block_given?
1299
1300
  return response
1300
1301
  end
1301
- rescue GRPC::BadStatus => e
1302
- raise Google::Cloud::Error.from_error(e)
1302
+ rescue ::GRPC::BadStatus => e
1303
+ raise ::Google::Cloud::Error.from_error(e)
1303
1304
  end
1304
1305
 
1305
1306
  ##
@@ -1307,12 +1308,12 @@ module Google
1307
1308
  #
1308
1309
  # @overload get_iam_policy(request, options = nil)
1309
1310
  # Pass arguments to `get_iam_policy` via a request object, either of type
1310
- # {Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
1311
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
1311
1312
  #
1312
- # @param request [Google::Iam::V1::GetIamPolicyRequest, Hash]
1313
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
1313
1314
  # A request object representing the call parameters. Required. To specify no
1314
1315
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1315
- # @param options [Gapic::CallOptions, Hash]
1316
+ # @param options [::Gapic::CallOptions, ::Hash]
1316
1317
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1317
1318
  #
1318
1319
  # @overload get_iam_policy(resource: nil, options: nil)
@@ -1320,34 +1321,34 @@ module Google
1320
1321
  # least one keyword argument is required. To specify no parameters, or to keep all
1321
1322
  # the default parameter values, pass an empty Hash as a request object (see above).
1322
1323
  #
1323
- # @param resource [String]
1324
+ # @param resource [::String]
1324
1325
  # REQUIRED: The resource for which the policy is being requested.
1325
1326
  # See the operation documentation for the appropriate value for this field.
1326
- # @param options [Google::Iam::V1::GetPolicyOptions, Hash]
1327
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
1327
1328
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
1328
1329
  # `GetIamPolicy`. This field is only used by Cloud IAM.
1329
1330
  #
1330
1331
  # @yield [response, operation] Access the result along with the RPC operation
1331
- # @yieldparam response [Google::Iam::V1::Policy]
1332
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1332
+ # @yieldparam response [::Google::Iam::V1::Policy]
1333
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1333
1334
  #
1334
- # @return [Google::Iam::V1::Policy]
1335
+ # @return [::Google::Iam::V1::Policy]
1335
1336
  #
1336
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1337
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1337
1338
  #
1338
1339
  def get_iam_policy request, options = nil
1339
- raise ArgumentError, "request must be provided" if request.nil?
1340
+ raise ::ArgumentError, "request must be provided" if request.nil?
1340
1341
 
1341
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::GetIamPolicyRequest
1342
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
1342
1343
 
1343
1344
  # Converts hash and nil to an options object
1344
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1345
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1345
1346
 
1346
1347
  # Customize the options with defaults
1347
1348
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1348
1349
 
1349
1350
  # Set x-goog-api-client and x-goog-user-project headers
1350
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1351
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1351
1352
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1352
1353
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1353
1354
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1368,8 +1369,8 @@ module Google
1368
1369
  yield response, operation if block_given?
1369
1370
  return response
1370
1371
  end
1371
- rescue GRPC::BadStatus => e
1372
- raise Google::Cloud::Error.from_error(e)
1372
+ rescue ::GRPC::BadStatus => e
1373
+ raise ::Google::Cloud::Error.from_error(e)
1373
1374
  end
1374
1375
 
1375
1376
  ##
@@ -1377,12 +1378,12 @@ module Google
1377
1378
  #
1378
1379
  # @overload set_iam_policy(request, options = nil)
1379
1380
  # Pass arguments to `set_iam_policy` via a request object, either of type
1380
- # {Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1381
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1381
1382
  #
1382
- # @param request [Google::Iam::V1::SetIamPolicyRequest, Hash]
1383
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
1383
1384
  # A request object representing the call parameters. Required. To specify no
1384
1385
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1385
- # @param options [Gapic::CallOptions, Hash]
1386
+ # @param options [::Gapic::CallOptions, ::Hash]
1386
1387
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1387
1388
  #
1388
1389
  # @overload set_iam_policy(resource: nil, policy: nil)
@@ -1390,36 +1391,36 @@ module Google
1390
1391
  # least one keyword argument is required. To specify no parameters, or to keep all
1391
1392
  # the default parameter values, pass an empty Hash as a request object (see above).
1392
1393
  #
1393
- # @param resource [String]
1394
+ # @param resource [::String]
1394
1395
  # REQUIRED: The resource for which the policy is being specified.
1395
1396
  # See the operation documentation for the appropriate value for this field.
1396
- # @param policy [Google::Iam::V1::Policy, Hash]
1397
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
1397
1398
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
1398
1399
  # the policy is limited to a few 10s of KB. An empty policy is a
1399
1400
  # valid policy but certain Cloud Platform services (such as Projects)
1400
1401
  # might reject them.
1401
1402
  #
1402
1403
  # @yield [response, operation] Access the result along with the RPC operation
1403
- # @yieldparam response [Google::Iam::V1::Policy]
1404
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1404
+ # @yieldparam response [::Google::Iam::V1::Policy]
1405
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1405
1406
  #
1406
- # @return [Google::Iam::V1::Policy]
1407
+ # @return [::Google::Iam::V1::Policy]
1407
1408
  #
1408
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1409
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1409
1410
  #
1410
1411
  def set_iam_policy request, options = nil
1411
- raise ArgumentError, "request must be provided" if request.nil?
1412
+ raise ::ArgumentError, "request must be provided" if request.nil?
1412
1413
 
1413
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::SetIamPolicyRequest
1414
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
1414
1415
 
1415
1416
  # Converts hash and nil to an options object
1416
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1417
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1417
1418
 
1418
1419
  # Customize the options with defaults
1419
1420
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1420
1421
 
1421
1422
  # Set x-goog-api-client and x-goog-user-project headers
1422
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1423
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1423
1424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1424
1425
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1425
1426
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1440,8 +1441,8 @@ module Google
1440
1441
  yield response, operation if block_given?
1441
1442
  return response
1442
1443
  end
1443
- rescue GRPC::BadStatus => e
1444
- raise Google::Cloud::Error.from_error(e)
1444
+ rescue ::GRPC::BadStatus => e
1445
+ raise ::Google::Cloud::Error.from_error(e)
1445
1446
  end
1446
1447
 
1447
1448
  ##
@@ -1449,12 +1450,12 @@ module Google
1449
1450
  #
1450
1451
  # @overload test_iam_permissions(request, options = nil)
1451
1452
  # Pass arguments to `test_iam_permissions` via a request object, either of type
1452
- # {Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1453
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1453
1454
  #
1454
- # @param request [Google::Iam::V1::TestIamPermissionsRequest, Hash]
1455
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
1455
1456
  # A request object representing the call parameters. Required. To specify no
1456
1457
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1457
- # @param options [Gapic::CallOptions, Hash]
1458
+ # @param options [::Gapic::CallOptions, ::Hash]
1458
1459
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1459
1460
  #
1460
1461
  # @overload test_iam_permissions(resource: nil, permissions: nil)
@@ -1462,36 +1463,36 @@ module Google
1462
1463
  # least one keyword argument is required. To specify no parameters, or to keep all
1463
1464
  # the default parameter values, pass an empty Hash as a request object (see above).
1464
1465
  #
1465
- # @param resource [String]
1466
+ # @param resource [::String]
1466
1467
  # REQUIRED: The resource for which the policy detail is being requested.
1467
1468
  # See the operation documentation for the appropriate value for this field.
1468
- # @param permissions [Array<String>]
1469
+ # @param permissions [::Array<::String>]
1469
1470
  # The set of permissions to check for the `resource`. Permissions with
1470
1471
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
1471
1472
  # information see
1472
1473
  # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1473
1474
  #
1474
1475
  # @yield [response, operation] Access the result along with the RPC operation
1475
- # @yieldparam response [Google::Iam::V1::TestIamPermissionsResponse]
1476
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1476
+ # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
1477
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1477
1478
  #
1478
- # @return [Google::Iam::V1::TestIamPermissionsResponse]
1479
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1479
1480
  #
1480
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1481
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1481
1482
  #
1482
1483
  def test_iam_permissions request, options = nil
1483
- raise ArgumentError, "request must be provided" if request.nil?
1484
+ raise ::ArgumentError, "request must be provided" if request.nil?
1484
1485
 
1485
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::TestIamPermissionsRequest
1486
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
1486
1487
 
1487
1488
  # Converts hash and nil to an options object
1488
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1489
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1489
1490
 
1490
1491
  # Customize the options with defaults
1491
1492
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1492
1493
 
1493
1494
  # Set x-goog-api-client and x-goog-user-project headers
1494
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1495
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1495
1496
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1496
1497
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
1497
1498
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1512,8 +1513,8 @@ module Google
1512
1513
  yield response, operation if block_given?
1513
1514
  return response
1514
1515
  end
1515
- rescue GRPC::BadStatus => e
1516
- raise Google::Cloud::Error.from_error(e)
1516
+ rescue ::GRPC::BadStatus => e
1517
+ raise ::Google::Cloud::Error.from_error(e)
1517
1518
  end
1518
1519
 
1519
1520
  ##
@@ -1523,7 +1524,7 @@ module Google
1523
1524
  # providing control over timeouts, retry behavior, logging, transport
1524
1525
  # parameters, and other low-level controls. Certain parameters can also be
1525
1526
  # applied individually to specific RPCs. See
1526
- # {Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client::Configuration::Rpcs}
1527
+ # {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client::Configuration::Rpcs}
1527
1528
  # for a list of RPCs that can be configured independently.
1528
1529
  #
1529
1530
  # Configuration can be applied globally to all clients, or to a single client
@@ -1534,22 +1535,22 @@ module Google
1534
1535
  # To modify the global config, setting the timeout for create_namespace
1535
1536
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1536
1537
  #
1537
- # Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
1538
- # config.timeout = 10_000
1539
- # config.rpcs.create_namespace.timeout = 20_000
1538
+ # ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.configure do |config|
1539
+ # config.timeout = 10.0
1540
+ # config.rpcs.create_namespace.timeout = 20.0
1540
1541
  # end
1541
1542
  #
1542
1543
  # To apply the above configuration only to a new client:
1543
1544
  #
1544
- # client = Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
1545
- # config.timeout = 10_000
1546
- # config.rpcs.create_namespace.timeout = 20_000
1545
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client.new do |config|
1546
+ # config.timeout = 10.0
1547
+ # config.rpcs.create_namespace.timeout = 20.0
1547
1548
  # end
1548
1549
  #
1549
1550
  # @!attribute [rw] endpoint
1550
1551
  # The hostname or hostname:port of the service endpoint.
1551
1552
  # Defaults to `"servicedirectory.googleapis.com"`.
1552
- # @return [String]
1553
+ # @return [::String]
1553
1554
  # @!attribute [rw] credentials
1554
1555
  # Credentials to send with calls. You may provide any of the following types:
1555
1556
  # * (`String`) The path to a service account key file in JSON format
@@ -1561,29 +1562,29 @@ module Google
1561
1562
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1562
1563
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1563
1564
  # * (`nil`) indicating no credentials
1564
- # @return [Object]
1565
+ # @return [::Object]
1565
1566
  # @!attribute [rw] scope
1566
1567
  # The OAuth scopes
1567
- # @return [Array<String>]
1568
+ # @return [::Array<::String>]
1568
1569
  # @!attribute [rw] lib_name
1569
1570
  # The library name as recorded in instrumentation and logging
1570
- # @return [String]
1571
+ # @return [::String]
1571
1572
  # @!attribute [rw] lib_version
1572
1573
  # The library version as recorded in instrumentation and logging
1573
- # @return [String]
1574
+ # @return [::String]
1574
1575
  # @!attribute [rw] channel_args
1575
1576
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1576
1577
  # `GRPC::Core::Channel` object is provided as the credential.
1577
- # @return [Hash]
1578
+ # @return [::Hash]
1578
1579
  # @!attribute [rw] interceptors
1579
1580
  # An array of interceptors that are run before calls are executed.
1580
- # @return [Array<GRPC::ClientInterceptor>]
1581
+ # @return [::Array<::GRPC::ClientInterceptor>]
1581
1582
  # @!attribute [rw] timeout
1582
- # The call timeout in milliseconds.
1583
- # @return [Numeric]
1583
+ # The call timeout in seconds.
1584
+ # @return [::Numeric]
1584
1585
  # @!attribute [rw] metadata
1585
1586
  # Additional gRPC headers to be sent with the call.
1586
- # @return [Hash{Symbol=>String}]
1587
+ # @return [::Hash{::Symbol=>::String}]
1587
1588
  # @!attribute [rw] retry_policy
1588
1589
  # The retry policy. The value is a hash with the following keys:
1589
1590
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1591,25 +1592,29 @@ module Google
1591
1592
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1592
1593
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1593
1594
  # trigger a retry.
1594
- # @return [Hash]
1595
+ # @return [::Hash]
1596
+ # @!attribute [rw] quota_project
1597
+ # A separate project against which to charge quota.
1598
+ # @return [::String]
1595
1599
  #
1596
1600
  class Configuration
1597
- extend Gapic::Config
1601
+ extend ::Gapic::Config
1598
1602
 
1599
- config_attr :endpoint, "servicedirectory.googleapis.com", String
1600
- config_attr :credentials, nil do |value|
1603
+ config_attr :endpoint, "servicedirectory.googleapis.com", ::String
1604
+ config_attr :credentials, nil do |value|
1601
1605
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1602
1606
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1603
1607
  allowed.any? { |klass| klass === value }
1604
1608
  end
1605
- config_attr :scope, nil, String, Array, nil
1606
- config_attr :lib_name, nil, String, nil
1607
- config_attr :lib_version, nil, String, nil
1608
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1609
- config_attr :interceptors, nil, Array, nil
1610
- config_attr :timeout, nil, Numeric, nil
1611
- config_attr :metadata, nil, Hash, nil
1612
- config_attr :retry_policy, nil, Hash, Proc, nil
1609
+ config_attr :scope, nil, ::String, ::Array, nil
1610
+ config_attr :lib_name, nil, ::String, nil
1611
+ config_attr :lib_version, nil, ::String, nil
1612
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1613
+ config_attr :interceptors, nil, ::Array, nil
1614
+ config_attr :timeout, nil, ::Numeric, nil
1615
+ config_attr :metadata, nil, ::Hash, nil
1616
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1617
+ config_attr :quota_project, nil, ::String, nil
1613
1618
 
1614
1619
  # @private
1615
1620
  def initialize parent_config = nil
@@ -1625,7 +1630,7 @@ module Google
1625
1630
  def rpcs
1626
1631
  @rpcs ||= begin
1627
1632
  parent_rpcs = nil
1628
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1633
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1629
1634
  Rpcs.new parent_rpcs
1630
1635
  end
1631
1636
  end
@@ -1650,133 +1655,133 @@ module Google
1650
1655
  class Rpcs
1651
1656
  ##
1652
1657
  # RPC-specific configuration for `create_namespace`
1653
- # @return [Gapic::Config::Method]
1658
+ # @return [::Gapic::Config::Method]
1654
1659
  #
1655
1660
  attr_reader :create_namespace
1656
1661
  ##
1657
1662
  # RPC-specific configuration for `list_namespaces`
1658
- # @return [Gapic::Config::Method]
1663
+ # @return [::Gapic::Config::Method]
1659
1664
  #
1660
1665
  attr_reader :list_namespaces
1661
1666
  ##
1662
1667
  # RPC-specific configuration for `get_namespace`
1663
- # @return [Gapic::Config::Method]
1668
+ # @return [::Gapic::Config::Method]
1664
1669
  #
1665
1670
  attr_reader :get_namespace
1666
1671
  ##
1667
1672
  # RPC-specific configuration for `update_namespace`
1668
- # @return [Gapic::Config::Method]
1673
+ # @return [::Gapic::Config::Method]
1669
1674
  #
1670
1675
  attr_reader :update_namespace
1671
1676
  ##
1672
1677
  # RPC-specific configuration for `delete_namespace`
1673
- # @return [Gapic::Config::Method]
1678
+ # @return [::Gapic::Config::Method]
1674
1679
  #
1675
1680
  attr_reader :delete_namespace
1676
1681
  ##
1677
1682
  # RPC-specific configuration for `create_service`
1678
- # @return [Gapic::Config::Method]
1683
+ # @return [::Gapic::Config::Method]
1679
1684
  #
1680
1685
  attr_reader :create_service
1681
1686
  ##
1682
1687
  # RPC-specific configuration for `list_services`
1683
- # @return [Gapic::Config::Method]
1688
+ # @return [::Gapic::Config::Method]
1684
1689
  #
1685
1690
  attr_reader :list_services
1686
1691
  ##
1687
1692
  # RPC-specific configuration for `get_service`
1688
- # @return [Gapic::Config::Method]
1693
+ # @return [::Gapic::Config::Method]
1689
1694
  #
1690
1695
  attr_reader :get_service
1691
1696
  ##
1692
1697
  # RPC-specific configuration for `update_service`
1693
- # @return [Gapic::Config::Method]
1698
+ # @return [::Gapic::Config::Method]
1694
1699
  #
1695
1700
  attr_reader :update_service
1696
1701
  ##
1697
1702
  # RPC-specific configuration for `delete_service`
1698
- # @return [Gapic::Config::Method]
1703
+ # @return [::Gapic::Config::Method]
1699
1704
  #
1700
1705
  attr_reader :delete_service
1701
1706
  ##
1702
1707
  # RPC-specific configuration for `create_endpoint`
1703
- # @return [Gapic::Config::Method]
1708
+ # @return [::Gapic::Config::Method]
1704
1709
  #
1705
1710
  attr_reader :create_endpoint
1706
1711
  ##
1707
1712
  # RPC-specific configuration for `list_endpoints`
1708
- # @return [Gapic::Config::Method]
1713
+ # @return [::Gapic::Config::Method]
1709
1714
  #
1710
1715
  attr_reader :list_endpoints
1711
1716
  ##
1712
1717
  # RPC-specific configuration for `get_endpoint`
1713
- # @return [Gapic::Config::Method]
1718
+ # @return [::Gapic::Config::Method]
1714
1719
  #
1715
1720
  attr_reader :get_endpoint
1716
1721
  ##
1717
1722
  # RPC-specific configuration for `update_endpoint`
1718
- # @return [Gapic::Config::Method]
1723
+ # @return [::Gapic::Config::Method]
1719
1724
  #
1720
1725
  attr_reader :update_endpoint
1721
1726
  ##
1722
1727
  # RPC-specific configuration for `delete_endpoint`
1723
- # @return [Gapic::Config::Method]
1728
+ # @return [::Gapic::Config::Method]
1724
1729
  #
1725
1730
  attr_reader :delete_endpoint
1726
1731
  ##
1727
1732
  # RPC-specific configuration for `get_iam_policy`
1728
- # @return [Gapic::Config::Method]
1733
+ # @return [::Gapic::Config::Method]
1729
1734
  #
1730
1735
  attr_reader :get_iam_policy
1731
1736
  ##
1732
1737
  # RPC-specific configuration for `set_iam_policy`
1733
- # @return [Gapic::Config::Method]
1738
+ # @return [::Gapic::Config::Method]
1734
1739
  #
1735
1740
  attr_reader :set_iam_policy
1736
1741
  ##
1737
1742
  # RPC-specific configuration for `test_iam_permissions`
1738
- # @return [Gapic::Config::Method]
1743
+ # @return [::Gapic::Config::Method]
1739
1744
  #
1740
1745
  attr_reader :test_iam_permissions
1741
1746
 
1742
1747
  # @private
1743
1748
  def initialize parent_rpcs = nil
1744
1749
  create_namespace_config = parent_rpcs&.create_namespace if parent_rpcs&.respond_to? :create_namespace
1745
- @create_namespace = Gapic::Config::Method.new create_namespace_config
1750
+ @create_namespace = ::Gapic::Config::Method.new create_namespace_config
1746
1751
  list_namespaces_config = parent_rpcs&.list_namespaces if parent_rpcs&.respond_to? :list_namespaces
1747
- @list_namespaces = Gapic::Config::Method.new list_namespaces_config
1752
+ @list_namespaces = ::Gapic::Config::Method.new list_namespaces_config
1748
1753
  get_namespace_config = parent_rpcs&.get_namespace if parent_rpcs&.respond_to? :get_namespace
1749
- @get_namespace = Gapic::Config::Method.new get_namespace_config
1754
+ @get_namespace = ::Gapic::Config::Method.new get_namespace_config
1750
1755
  update_namespace_config = parent_rpcs&.update_namespace if parent_rpcs&.respond_to? :update_namespace
1751
- @update_namespace = Gapic::Config::Method.new update_namespace_config
1756
+ @update_namespace = ::Gapic::Config::Method.new update_namespace_config
1752
1757
  delete_namespace_config = parent_rpcs&.delete_namespace if parent_rpcs&.respond_to? :delete_namespace
1753
- @delete_namespace = Gapic::Config::Method.new delete_namespace_config
1758
+ @delete_namespace = ::Gapic::Config::Method.new delete_namespace_config
1754
1759
  create_service_config = parent_rpcs&.create_service if parent_rpcs&.respond_to? :create_service
1755
- @create_service = Gapic::Config::Method.new create_service_config
1760
+ @create_service = ::Gapic::Config::Method.new create_service_config
1756
1761
  list_services_config = parent_rpcs&.list_services if parent_rpcs&.respond_to? :list_services
1757
- @list_services = Gapic::Config::Method.new list_services_config
1762
+ @list_services = ::Gapic::Config::Method.new list_services_config
1758
1763
  get_service_config = parent_rpcs&.get_service if parent_rpcs&.respond_to? :get_service
1759
- @get_service = Gapic::Config::Method.new get_service_config
1764
+ @get_service = ::Gapic::Config::Method.new get_service_config
1760
1765
  update_service_config = parent_rpcs&.update_service if parent_rpcs&.respond_to? :update_service
1761
- @update_service = Gapic::Config::Method.new update_service_config
1766
+ @update_service = ::Gapic::Config::Method.new update_service_config
1762
1767
  delete_service_config = parent_rpcs&.delete_service if parent_rpcs&.respond_to? :delete_service
1763
- @delete_service = Gapic::Config::Method.new delete_service_config
1768
+ @delete_service = ::Gapic::Config::Method.new delete_service_config
1764
1769
  create_endpoint_config = parent_rpcs&.create_endpoint if parent_rpcs&.respond_to? :create_endpoint
1765
- @create_endpoint = Gapic::Config::Method.new create_endpoint_config
1770
+ @create_endpoint = ::Gapic::Config::Method.new create_endpoint_config
1766
1771
  list_endpoints_config = parent_rpcs&.list_endpoints if parent_rpcs&.respond_to? :list_endpoints
1767
- @list_endpoints = Gapic::Config::Method.new list_endpoints_config
1772
+ @list_endpoints = ::Gapic::Config::Method.new list_endpoints_config
1768
1773
  get_endpoint_config = parent_rpcs&.get_endpoint if parent_rpcs&.respond_to? :get_endpoint
1769
- @get_endpoint = Gapic::Config::Method.new get_endpoint_config
1774
+ @get_endpoint = ::Gapic::Config::Method.new get_endpoint_config
1770
1775
  update_endpoint_config = parent_rpcs&.update_endpoint if parent_rpcs&.respond_to? :update_endpoint
1771
- @update_endpoint = Gapic::Config::Method.new update_endpoint_config
1776
+ @update_endpoint = ::Gapic::Config::Method.new update_endpoint_config
1772
1777
  delete_endpoint_config = parent_rpcs&.delete_endpoint if parent_rpcs&.respond_to? :delete_endpoint
1773
- @delete_endpoint = Gapic::Config::Method.new delete_endpoint_config
1778
+ @delete_endpoint = ::Gapic::Config::Method.new delete_endpoint_config
1774
1779
  get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
1775
- @get_iam_policy = Gapic::Config::Method.new get_iam_policy_config
1780
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1776
1781
  set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
1777
- @set_iam_policy = Gapic::Config::Method.new set_iam_policy_config
1782
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1778
1783
  test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
1779
- @test_iam_permissions = Gapic::Config::Method.new test_iam_permissions_config
1784
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1780
1785
 
1781
1786
  yield self if block_given?
1782
1787
  end