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