google-cloud-service_directory-v1beta1 0.2.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +48 -1
  4. data/lib/google-cloud-service_directory-v1beta1.rb +21 -1
  5. data/lib/google/cloud/service_directory/v1beta1.rb +16 -0
  6. data/lib/google/cloud/service_directory/v1beta1/lookup_service.rb +30 -1
  7. data/lib/google/cloud/service_directory/v1beta1/lookup_service/client.rb +71 -78
  8. data/lib/google/cloud/service_directory/v1beta1/lookup_service/credentials.rb +1 -1
  9. data/lib/google/cloud/service_directory/v1beta1/lookup_service/paths.rb +4 -4
  10. data/lib/google/cloud/service_directory/v1beta1/registration_service.rb +44 -1
  11. data/lib/google/cloud/service_directory/v1beta1/registration_service/client.rb +512 -400
  12. data/lib/google/cloud/service_directory/v1beta1/registration_service/credentials.rb +1 -1
  13. data/lib/google/cloud/service_directory/v1beta1/registration_service/paths.rb +14 -14
  14. data/lib/google/cloud/service_directory/v1beta1/version.rb +1 -1
  15. data/proto_docs/google/api/resource.rb +12 -12
  16. data/proto_docs/google/cloud/servicedirectory/v1beta1/endpoint.rb +11 -11
  17. data/proto_docs/google/cloud/servicedirectory/v1beta1/lookup_service.rb +10 -10
  18. data/proto_docs/google/cloud/servicedirectory/v1beta1/namespace.rb +9 -9
  19. data/proto_docs/google/cloud/servicedirectory/v1beta1/registration_service.rb +96 -96
  20. data/proto_docs/google/cloud/servicedirectory/v1beta1/service.rb +10 -10
  21. data/proto_docs/google/iam/v1/iam_policy.rb +21 -20
  22. data/proto_docs/google/iam/v1/options.rb +40 -0
  23. data/proto_docs/google/iam/v1/policy.rb +126 -34
  24. data/proto_docs/google/protobuf/empty.rb +2 -2
  25. data/proto_docs/google/protobuf/field_mask.rb +22 -30
  26. data/proto_docs/google/type/expr.rb +52 -0
  27. metadata +44 -9
  28. 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: 1234c2fd6eff8256982a3f0d178667c252c79be0c0708f49b428032eff575176
4
- data.tar.gz: 38546b6494c58faf2e941361f711057659b8051f68c2b5702c8f32d2118c616e
3
+ metadata.gz: 3587b7154b0e2392d1ad07b08191fd51be0204a0e17d7f1c7b9195971fc8ea1e
4
+ data.tar.gz: 7aad35668a27973db11968c132ddeba07091fa93000c1d18aae348605e17f4e8
5
5
  SHA512:
6
- metadata.gz: e49d45b34411d891ec40413e6a63190612f8b3af516f16f286fb48c5491ebf8ffc0ff73434f44d9dffa5c1c028a3d856bdbad2c9521cde77c3b3e692e512cd57
7
- data.tar.gz: d1b34445a6be72e10b897b121d7c5ad142c7feb3451ff89702fe81998e62f6adb3a2afdfa2bcb4ce2e45cbca39d4542486dae92762093d1207c9940a0a13065b
6
+ metadata.gz: e4040bab0f7cd93cdf004e9574eee8c68dff6eaa411995606ad462536c3ec0382bc6a51099bf2d16bcf84cfd10f103a13e061877faf7b4d092ffc3a6ec619470
7
+ data.tar.gz: a27afe807ee820954f20d9b0a35192d656b2c218e8a79a51d1c9f2e4cb79ac00562829e1c091549ad9574ee599f2789b961c67bfc66be4f699b8169d38241c2c
@@ -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
@@ -1,4 +1,4 @@
1
- # Service Directory V1beta1
1
+ # Ruby Client for the Service Directory V1beta1 API
2
2
 
3
3
  API Client library for the Service Directory V1beta1 API
4
4
 
@@ -12,6 +12,53 @@ https://github.com/googleapis/google-cloud-ruby
12
12
  $ gem install google-cloud-service_directory-v1beta1
13
13
  ```
14
14
 
15
+ ## Before You Begin
16
+
17
+ In order to use this library, you first need to go through the following steps:
18
+
19
+ 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
+ 1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. {file:AUTHENTICATION.md Set up authentication.}
22
+
23
+ ## Quick Start
24
+
25
+ ```ruby
26
+ require "google/cloud/service_directory/v1beta1"
27
+
28
+ client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
29
+ request = my_create_request
30
+ response = client.resolve_service request
31
+ ```
32
+
33
+ View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-service_directory-v1beta1/latest)
34
+ for class and method documentation.
35
+
36
+ ## Enabling Logging
37
+
38
+ To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
39
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
40
+ or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
41
+ that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
42
+ and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
43
+
44
+ Configuring a Ruby stdlib logger:
45
+
46
+ ```ruby
47
+ require "logger"
48
+
49
+ module MyLogger
50
+ LOGGER = Logger.new $stderr, level: Logger::WARN
51
+ def logger
52
+ LOGGER
53
+ end
54
+ end
55
+
56
+ # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
57
+ module GRPC
58
+ extend MyLogger
59
+ end
60
+ ```
61
+
15
62
  ## Supported Ruby Versions
16
63
 
17
64
  This library is supported on Ruby 2.4+.
@@ -1 +1,21 @@
1
- require "google/cloud/service_directory/v1beta1/version"
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/service_directory/v1beta1"
@@ -18,3 +18,19 @@
18
18
 
19
19
  require "google/cloud/service_directory/v1beta1/lookup_service"
20
20
  require "google/cloud/service_directory/v1beta1/registration_service"
21
+ require "google/cloud/service_directory/v1beta1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module ServiceDirectory
26
+ ##
27
+ # To load this package, including all its services, and instantiate a client:
28
+ #
29
+ # require "google/cloud/service_directory/v1beta1"
30
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
31
+ #
32
+ module V1beta1
33
+ end
34
+ end
35
+ end
36
+ end
@@ -16,5 +16,34 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google/cloud/service_directory/v1beta1/lookup_service/client"
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/service_directory/v1beta1/version"
24
+
20
25
  require "google/cloud/service_directory/v1beta1/lookup_service/credentials"
26
+ require "google/cloud/service_directory/v1beta1/lookup_service/paths"
27
+ require "google/cloud/service_directory/v1beta1/lookup_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module ServiceDirectory
32
+ module V1beta1
33
+ ##
34
+ # Service Directory API for looking up service data at runtime.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/service_directory/v1beta1/lookup_service"
39
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
40
+ #
41
+ module LookupService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "lookup_service", "helpers.rb"
49
+ require "google/cloud/service_directory/v1beta1/lookup_service/helpers" if ::File.file? helper_path
@@ -16,15 +16,8 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
- require "gapic/config"
21
- require "gapic/config/method"
22
-
23
19
  require "google/cloud/errors"
24
- require "google/cloud/service_directory/v1beta1/version"
25
20
  require "google/cloud/servicedirectory/v1beta1/lookup_service_pb"
26
- require "google/cloud/service_directory/v1beta1/lookup_service/credentials"
27
- require "google/cloud/service_directory/v1beta1/lookup_service/paths"
28
21
 
29
22
  module Google
30
23
  module Cloud
@@ -45,15 +38,15 @@ module Google
45
38
  ##
46
39
  # Configure the LookupService Client class.
47
40
  #
48
- # See {Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
41
+ # See {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
49
42
  # for a description of the configuration fields.
50
43
  #
51
44
  # ## Example
52
45
  #
53
46
  # To modify the configuration for all LookupService clients:
54
47
  #
55
- # Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
56
- # config.timeout = 10_000
48
+ # ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
49
+ # config.timeout = 10.0
57
50
  # end
58
51
  #
59
52
  # @yield [config] Configure the Client client.
@@ -93,7 +86,7 @@ module Google
93
86
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
94
87
  # should be made on {Client.configure}.
95
88
  #
96
- # See {Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
89
+ # See {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration}
97
90
  # for a description of the configuration fields.
98
91
  #
99
92
  # @yield [config] Configure the Client client.
@@ -114,13 +107,13 @@ module Google
114
107
  # To create a new LookupService client with the default
115
108
  # configuration:
116
109
  #
117
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
110
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new
118
111
  #
119
112
  # To create a new LookupService client with a custom
120
113
  # configuration:
121
114
  #
122
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
123
- # config.timeout = 10_000
115
+ # client = ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
116
+ # config.timeout = 10.0
124
117
  # end
125
118
  #
126
119
  # @yield [config] Configure the LookupService client.
@@ -145,10 +138,11 @@ module Google
145
138
  if credentials.is_a?(String) || credentials.is_a?(Hash)
146
139
  credentials = Credentials.new credentials, scope: @config.scope
147
140
  end
148
- @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
149
143
 
150
- @lookup_service_stub = Gapic::ServiceStub.new(
151
- Google::Cloud::ServiceDirectory::V1beta1::LookupService::Stub,
144
+ @lookup_service_stub = ::Gapic::ServiceStub.new(
145
+ ::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Stub,
152
146
  credentials: credentials,
153
147
  endpoint: @config.endpoint,
154
148
  channel_args: @config.channel_args,
@@ -159,26 +153,32 @@ module Google
159
153
  # Service calls
160
154
 
161
155
  ##
162
- # Returns a {Google::Cloud::ServiceDirectory::V1beta1::Service service} and its
156
+ # Returns a {::Google::Cloud::ServiceDirectory::V1beta1::Service service} and its
163
157
  # associated endpoints.
164
158
  # Resolving a service is not considered an active developer method.
165
159
  #
166
160
  # @overload resolve_service(request, options = nil)
167
- # @param request [Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest | Hash]
168
- # Returns a {Google::Cloud::ServiceDirectory::V1beta1::Service service} and its
169
- # associated endpoints.
170
- # Resolving a service is not considered an active developer method.
171
- # @param options [Gapic::CallOptions, Hash]
161
+ # Pass arguments to `resolve_service` via a request object, either of type
162
+ # {::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest} or an equivalent Hash.
163
+ #
164
+ # @param request [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest, ::Hash]
165
+ # A request object representing the call parameters. Required. To specify no
166
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
167
+ # @param options [::Gapic::CallOptions, ::Hash]
172
168
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
173
169
  #
174
170
  # @overload resolve_service(name: nil, max_endpoints: nil, endpoint_filter: nil)
175
- # @param name [String]
171
+ # Pass arguments to `resolve_service` via keyword arguments. Note that at
172
+ # least one keyword argument is required. To specify no parameters, or to keep all
173
+ # the default parameter values, pass an empty Hash as a request object (see above).
174
+ #
175
+ # @param name [::String]
176
176
  # Required. The name of the service to resolve.
177
- # @param max_endpoints [Integer]
177
+ # @param max_endpoints [::Integer]
178
178
  # Optional. The maximum number of endpoints to return. Defaults to 25. Maximum is 100.
179
179
  # If a value less than one is specified, the Default is used.
180
180
  # If a value greater than the Maximum is specified, the Maximum is used.
181
- # @param endpoint_filter [String]
181
+ # @param endpoint_filter [::String]
182
182
  # Optional. The filter applied to the endpoints of the resolved service.
183
183
  #
184
184
  # General filter string syntax:
@@ -198,28 +198,27 @@ module Google
198
198
  # Endpoints that have "owner" field in metadata with a value that is not
199
199
  # "sd" AND have the key/value foo=bar.
200
200
  #
201
- #
202
201
  # @yield [response, operation] Access the result along with the RPC operation
203
- # @yieldparam response [Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
204
- # @yieldparam operation [GRPC::ActiveCall::Operation]
202
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
203
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
205
204
  #
206
- # @return [Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
205
+ # @return [::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceResponse]
207
206
  #
208
- # @raise [Google::Cloud::Error] if the RPC is aborted.
207
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
209
208
  #
210
209
  def resolve_service request, options = nil
211
- raise ArgumentError, "request must be provided" if request.nil?
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
212
211
 
213
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1beta1::ResolveServiceRequest
214
213
 
215
214
  # Converts hash and nil to an options object
216
- 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
217
216
 
218
217
  # Customize the options with defaults
219
218
  metadata = @config.rpcs.resolve_service.metadata.to_h
220
219
 
221
220
  # Set x-goog-api-client and x-goog-user-project headers
222
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
221
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
223
222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
224
223
  gapic_version: ::Google::Cloud::ServiceDirectory::V1beta1::VERSION
225
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -240,8 +239,8 @@ module Google
240
239
  yield response, operation if block_given?
241
240
  return response
242
241
  end
243
- rescue GRPC::BadStatus => e
244
- raise Google::Cloud::Error.from_error(e)
242
+ rescue ::GRPC::BadStatus => e
243
+ raise ::Google::Cloud::Error.from_error(e)
245
244
  end
246
245
 
247
246
  ##
@@ -251,7 +250,7 @@ module Google
251
250
  # providing control over timeouts, retry behavior, logging, transport
252
251
  # parameters, and other low-level controls. Certain parameters can also be
253
252
  # applied individually to specific RPCs. See
254
- # {Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration::Rpcs}
253
+ # {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client::Configuration::Rpcs}
255
254
  # for a list of RPCs that can be configured independently.
256
255
  #
257
256
  # Configuration can be applied globally to all clients, or to a single client
@@ -262,22 +261,22 @@ module Google
262
261
  # To modify the global config, setting the timeout for resolve_service
263
262
  # to 20 seconds, and all remaining timeouts to 10 seconds:
264
263
  #
265
- # Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.configure do |config|
266
- # config.timeout = 10_000
267
- # 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
268
267
  # end
269
268
  #
270
269
  # To apply the above configuration only to a new client:
271
270
  #
272
- # client = Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client.new do |config|
273
- # config.timeout = 10_000
274
- # 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
275
274
  # end
276
275
  #
277
276
  # @!attribute [rw] endpoint
278
277
  # The hostname or hostname:port of the service endpoint.
279
278
  # Defaults to `"servicedirectory.googleapis.com"`.
280
- # @return [String]
279
+ # @return [::String]
281
280
  # @!attribute [rw] credentials
282
281
  # Credentials to send with calls. You may provide any of the following types:
283
282
  # * (`String`) The path to a service account key file in JSON format
@@ -289,29 +288,29 @@ module Google
289
288
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
290
289
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
291
290
  # * (`nil`) indicating no credentials
292
- # @return [Object]
291
+ # @return [::Object]
293
292
  # @!attribute [rw] scope
294
293
  # The OAuth scopes
295
- # @return [Array<String>]
294
+ # @return [::Array<::String>]
296
295
  # @!attribute [rw] lib_name
297
296
  # The library name as recorded in instrumentation and logging
298
- # @return [String]
297
+ # @return [::String]
299
298
  # @!attribute [rw] lib_version
300
299
  # The library version as recorded in instrumentation and logging
301
- # @return [String]
300
+ # @return [::String]
302
301
  # @!attribute [rw] channel_args
303
302
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
304
303
  # `GRPC::Core::Channel` object is provided as the credential.
305
- # @return [Hash]
304
+ # @return [::Hash]
306
305
  # @!attribute [rw] interceptors
307
306
  # An array of interceptors that are run before calls are executed.
308
- # @return [Array<GRPC::ClientInterceptor>]
307
+ # @return [::Array<::GRPC::ClientInterceptor>]
309
308
  # @!attribute [rw] timeout
310
- # The call timeout in milliseconds.
311
- # @return [Numeric]
309
+ # The call timeout in seconds.
310
+ # @return [::Numeric]
312
311
  # @!attribute [rw] metadata
313
312
  # Additional gRPC headers to be sent with the call.
314
- # @return [Hash{Symbol=>String}]
313
+ # @return [::Hash{::Symbol=>::String}]
315
314
  # @!attribute [rw] retry_policy
316
315
  # The retry policy. The value is a hash with the following keys:
317
316
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -319,25 +318,29 @@ module Google
319
318
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
320
319
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
321
320
  # trigger a retry.
322
- # @return [Hash]
321
+ # @return [::Hash]
322
+ # @!attribute [rw] quota_project
323
+ # A separate project against which to charge quota.
324
+ # @return [::String]
323
325
  #
324
326
  class Configuration
325
- extend Gapic::Config
327
+ extend ::Gapic::Config
326
328
 
327
- config_attr :endpoint, "servicedirectory.googleapis.com", String
328
- config_attr :credentials, nil do |value|
329
+ config_attr :endpoint, "servicedirectory.googleapis.com", ::String
330
+ config_attr :credentials, nil do |value|
329
331
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
330
332
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
331
333
  allowed.any? { |klass| klass === value }
332
334
  end
333
- config_attr :scope, nil, String, Array, nil
334
- config_attr :lib_name, nil, String, nil
335
- config_attr :lib_version, nil, String, nil
336
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
337
- config_attr :interceptors, nil, Array, nil
338
- config_attr :timeout, nil, Numeric, nil
339
- config_attr :metadata, nil, Hash, nil
340
- 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
341
344
 
342
345
  # @private
343
346
  def initialize parent_config = nil
@@ -378,14 +381,14 @@ module Google
378
381
  class Rpcs
379
382
  ##
380
383
  # RPC-specific configuration for `resolve_service`
381
- # @return [Gapic::Config::Method]
384
+ # @return [::Gapic::Config::Method]
382
385
  #
383
386
  attr_reader :resolve_service
384
387
 
385
388
  # @private
386
389
  def initialize parent_rpcs = nil
387
390
  resolve_service_config = parent_rpcs&.resolve_service if parent_rpcs&.respond_to? :resolve_service
388
- @resolve_service = Gapic::Config::Method.new resolve_service_config
391
+ @resolve_service = ::Gapic::Config::Method.new resolve_service_config
389
392
 
390
393
  yield self if block_given?
391
394
  end
@@ -397,13 +400,3 @@ module Google
397
400
  end
398
401
  end
399
402
  end
400
-
401
- # rubocop:disable Lint/HandleExceptions
402
-
403
- # Once client is loaded, load helpers.rb if it exists.
404
- begin
405
- require "google/cloud/service_directory/v1beta1/lookup_service/helpers"
406
- rescue LoadError
407
- end
408
-
409
- # rubocop:enable Lint/HandleExceptions