google-cloud-domains-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/domains/v1beta1"
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/domains/v1beta1/domains"
20
+ require "google/cloud/domains/v1beta1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Domains
25
+ ##
26
+ # To load this package, including all its services, and instantiate a client:
27
+ #
28
+ # require "google/cloud/domains/v1beta1"
29
+ # client = ::Google::Cloud::Domains::V1beta1::Domains::Client.new
30
+ #
31
+ module V1beta1
32
+ end
33
+ end
34
+ end
35
+ end
36
+
37
+ helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
38
+ require "google/cloud/domains/v1beta1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/domains/v1beta1/version"
24
+
25
+ require "google/cloud/domains/v1beta1/domains/credentials"
26
+ require "google/cloud/domains/v1beta1/domains/paths"
27
+ require "google/cloud/domains/v1beta1/domains/operations"
28
+ require "google/cloud/domains/v1beta1/domains/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Domains
33
+ module V1beta1
34
+ ##
35
+ # The Cloud Domains API enables management and configuration of domain names.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/domains/v1beta1/domains"
40
+ # client = ::Google::Cloud::Domains::V1beta1::Domains::Client.new
41
+ #
42
+ module Domains
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "domains", "helpers.rb"
50
+ require "google/cloud/domains/v1beta1/domains/helpers" if ::File.file? helper_path
@@ -0,0 +1,1407 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/domains/v1beta1/domains_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Domains
25
+ module V1beta1
26
+ module Domains
27
+ ##
28
+ # Client for the Domains service.
29
+ #
30
+ # The Cloud Domains API enables management and configuration of domain names.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :domains_stub
37
+
38
+ ##
39
+ # Configure the Domains Client class.
40
+ #
41
+ # See {::Google::Cloud::Domains::V1beta1::Domains::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # ## Example
45
+ #
46
+ # To modify the configuration for all Domains clients:
47
+ #
48
+ # ::Google::Cloud::Domains::V1beta1::Domains::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
51
+ #
52
+ # @yield [config] Configure the Client client.
53
+ # @yieldparam config [Client::Configuration]
54
+ #
55
+ # @return [Client::Configuration]
56
+ #
57
+ def self.configure
58
+ @configure ||= begin
59
+ namespace = ["Google", "Cloud", "Domains", "V1beta1"]
60
+ parent_config = while namespace.any?
61
+ parent_name = namespace.join "::"
62
+ parent_const = const_get parent_name
63
+ break parent_const.configure if parent_const&.respond_to? :configure
64
+ namespace.pop
65
+ end
66
+ default_config = Client::Configuration.new parent_config
67
+
68
+ default_config
69
+ end
70
+ yield @configure if block_given?
71
+ @configure
72
+ end
73
+
74
+ ##
75
+ # Configure the Domains Client instance.
76
+ #
77
+ # The configuration is set to the derived mode, meaning that values can be changed,
78
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
79
+ # should be made on {Client.configure}.
80
+ #
81
+ # See {::Google::Cloud::Domains::V1beta1::Domains::Client::Configuration}
82
+ # for a description of the configuration fields.
83
+ #
84
+ # @yield [config] Configure the Client client.
85
+ # @yieldparam config [Client::Configuration]
86
+ #
87
+ # @return [Client::Configuration]
88
+ #
89
+ def configure
90
+ yield @config if block_given?
91
+ @config
92
+ end
93
+
94
+ ##
95
+ # Create a new Domains client object.
96
+ #
97
+ # ## Examples
98
+ #
99
+ # To create a new Domains client with the default
100
+ # configuration:
101
+ #
102
+ # client = ::Google::Cloud::Domains::V1beta1::Domains::Client.new
103
+ #
104
+ # To create a new Domains client with a custom
105
+ # configuration:
106
+ #
107
+ # client = ::Google::Cloud::Domains::V1beta1::Domains::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
110
+ #
111
+ # @yield [config] Configure the Domains client.
112
+ # @yieldparam config [Client::Configuration]
113
+ #
114
+ def initialize
115
+ # These require statements are intentionally placed here to initialize
116
+ # the gRPC module only when it's required.
117
+ # See https://github.com/googleapis/toolkit/issues/446
118
+ require "gapic/grpc"
119
+ require "google/cloud/domains/v1beta1/domains_services_pb"
120
+
121
+ # Create the configuration object
122
+ @config = Configuration.new Client.configure
123
+
124
+ # Yield the configuration if needed
125
+ yield @config if block_given?
126
+
127
+ # Create credentials
128
+ credentials = @config.credentials
129
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
130
+ # but only if the default endpoint does not have a region prefix.
131
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
+ @config.endpoint == Client.configure.endpoint &&
133
+ !@config.endpoint.split(".").first.include?("-")
134
+ credentials ||= Credentials.default scope: @config.scope,
135
+ enable_self_signed_jwt: enable_self_signed_jwt
136
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
137
+ credentials = Credentials.new credentials, scope: @config.scope
138
+ end
139
+ @quota_project_id = @config.quota_project
140
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
+
142
+ @operations_client = Operations.new do |config|
143
+ config.credentials = credentials
144
+ config.endpoint = @config.endpoint
145
+ end
146
+
147
+ @domains_stub = ::Gapic::ServiceStub.new(
148
+ ::Google::Cloud::Domains::V1beta1::Domains::Stub,
149
+ credentials: credentials,
150
+ endpoint: @config.endpoint,
151
+ channel_args: @config.channel_args,
152
+ interceptors: @config.interceptors
153
+ )
154
+ end
155
+
156
+ ##
157
+ # Get the associated client for long-running operations.
158
+ #
159
+ # @return [::Google::Cloud::Domains::V1beta1::Domains::Operations]
160
+ #
161
+ attr_reader :operations_client
162
+
163
+ # Service calls
164
+
165
+ ##
166
+ # Searches for available domain names similar to the provided query.
167
+ #
168
+ # Availability results from this method are approximate; call
169
+ # `RetrieveRegisterParameters` on a domain before registering to confirm
170
+ # availability.
171
+ #
172
+ # @overload search_domains(request, options = nil)
173
+ # Pass arguments to `search_domains` via a request object, either of type
174
+ # {::Google::Cloud::Domains::V1beta1::SearchDomainsRequest} or an equivalent Hash.
175
+ #
176
+ # @param request [::Google::Cloud::Domains::V1beta1::SearchDomainsRequest, ::Hash]
177
+ # A request object representing the call parameters. Required. To specify no
178
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
179
+ # @param options [::Gapic::CallOptions, ::Hash]
180
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
181
+ #
182
+ # @overload search_domains(query: nil, location: nil)
183
+ # Pass arguments to `search_domains` via keyword arguments. Note that at
184
+ # least one keyword argument is required. To specify no parameters, or to keep all
185
+ # the default parameter values, pass an empty Hash as a request object (see above).
186
+ #
187
+ # @param query [::String]
188
+ # Required. String used to search for available domain names.
189
+ # @param location [::String]
190
+ # Required. The location. Must be in the format `projects/*/locations/*`.
191
+ #
192
+ # @yield [response, operation] Access the result along with the RPC operation
193
+ # @yieldparam response [::Google::Cloud::Domains::V1beta1::SearchDomainsResponse]
194
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
195
+ #
196
+ # @return [::Google::Cloud::Domains::V1beta1::SearchDomainsResponse]
197
+ #
198
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
199
+ #
200
+ def search_domains request, options = nil
201
+ raise ::ArgumentError, "request must be provided" if request.nil?
202
+
203
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::SearchDomainsRequest
204
+
205
+ # Converts hash and nil to an options object
206
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
207
+
208
+ # Customize the options with defaults
209
+ metadata = @config.rpcs.search_domains.metadata.to_h
210
+
211
+ # Set x-goog-api-client and x-goog-user-project headers
212
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
213
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
214
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
215
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
216
+
217
+ header_params = {
218
+ "location" => request.location
219
+ }
220
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
221
+ metadata[:"x-goog-request-params"] ||= request_params_header
222
+
223
+ options.apply_defaults timeout: @config.rpcs.search_domains.timeout,
224
+ metadata: metadata,
225
+ retry_policy: @config.rpcs.search_domains.retry_policy
226
+ options.apply_defaults metadata: @config.metadata,
227
+ retry_policy: @config.retry_policy
228
+
229
+ @domains_stub.call_rpc :search_domains, request, options: options do |response, operation|
230
+ yield response, operation if block_given?
231
+ return response
232
+ end
233
+ rescue ::GRPC::BadStatus => e
234
+ raise ::Google::Cloud::Error.from_error(e)
235
+ end
236
+
237
+ ##
238
+ # Gets parameters needed to register a new domain name, including price and
239
+ # up-to-date availability. Use the returned values to call `RegisterDomain`.
240
+ #
241
+ # @overload retrieve_register_parameters(request, options = nil)
242
+ # Pass arguments to `retrieve_register_parameters` via a request object, either of type
243
+ # {::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersRequest} or an equivalent Hash.
244
+ #
245
+ # @param request [::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersRequest, ::Hash]
246
+ # A request object representing the call parameters. Required. To specify no
247
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
248
+ # @param options [::Gapic::CallOptions, ::Hash]
249
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
250
+ #
251
+ # @overload retrieve_register_parameters(domain_name: nil, location: nil)
252
+ # Pass arguments to `retrieve_register_parameters` via keyword arguments. Note that at
253
+ # least one keyword argument is required. To specify no parameters, or to keep all
254
+ # the default parameter values, pass an empty Hash as a request object (see above).
255
+ #
256
+ # @param domain_name [::String]
257
+ # Required. The domain name. Unicode domain names must be expressed in Punycode format.
258
+ # @param location [::String]
259
+ # Required. The location. Must be in the format `projects/*/locations/*`.
260
+ #
261
+ # @yield [response, operation] Access the result along with the RPC operation
262
+ # @yieldparam response [::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponse]
263
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
264
+ #
265
+ # @return [::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponse]
266
+ #
267
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
268
+ #
269
+ def retrieve_register_parameters request, options = nil
270
+ raise ::ArgumentError, "request must be provided" if request.nil?
271
+
272
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersRequest
273
+
274
+ # Converts hash and nil to an options object
275
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
276
+
277
+ # Customize the options with defaults
278
+ metadata = @config.rpcs.retrieve_register_parameters.metadata.to_h
279
+
280
+ # Set x-goog-api-client and x-goog-user-project headers
281
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
282
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
283
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
284
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
285
+
286
+ header_params = {
287
+ "location" => request.location
288
+ }
289
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
290
+ metadata[:"x-goog-request-params"] ||= request_params_header
291
+
292
+ options.apply_defaults timeout: @config.rpcs.retrieve_register_parameters.timeout,
293
+ metadata: metadata,
294
+ retry_policy: @config.rpcs.retrieve_register_parameters.retry_policy
295
+ options.apply_defaults metadata: @config.metadata,
296
+ retry_policy: @config.retry_policy
297
+
298
+ @domains_stub.call_rpc :retrieve_register_parameters, request, options: options do |response, operation|
299
+ yield response, operation if block_given?
300
+ return response
301
+ end
302
+ rescue ::GRPC::BadStatus => e
303
+ raise ::Google::Cloud::Error.from_error(e)
304
+ end
305
+
306
+ ##
307
+ # Registers a new domain name and creates a corresponding `Registration`
308
+ # resource.
309
+ #
310
+ # Call `RetrieveRegisterParameters` first to check availability of the domain
311
+ # name and determine parameters like price that are needed to build a call to
312
+ # this method.
313
+ #
314
+ # A successful call creates a `Registration` resource in state
315
+ # `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2
316
+ # minutes, indicating that the domain was successfully registered. If the
317
+ # resource ends up in state `REGISTRATION_FAILED`, it indicates that the
318
+ # domain was not registered successfully, and you can safely delete the
319
+ # resource and retry registration.
320
+ #
321
+ # @overload register_domain(request, options = nil)
322
+ # Pass arguments to `register_domain` via a request object, either of type
323
+ # {::Google::Cloud::Domains::V1beta1::RegisterDomainRequest} or an equivalent Hash.
324
+ #
325
+ # @param request [::Google::Cloud::Domains::V1beta1::RegisterDomainRequest, ::Hash]
326
+ # A request object representing the call parameters. Required. To specify no
327
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
328
+ # @param options [::Gapic::CallOptions, ::Hash]
329
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
330
+ #
331
+ # @overload register_domain(parent: nil, registration: nil, domain_notices: nil, contact_notices: nil, yearly_price: nil, validate_only: nil)
332
+ # Pass arguments to `register_domain` via keyword arguments. Note that at
333
+ # least one keyword argument is required. To specify no parameters, or to keep all
334
+ # the default parameter values, pass an empty Hash as a request object (see above).
335
+ #
336
+ # @param parent [::String]
337
+ # Required. The parent resource of the `Registration`. Must be in the
338
+ # format `projects/*/locations/*`.
339
+ # @param registration [::Google::Cloud::Domains::V1beta1::Registration, ::Hash]
340
+ # Required. The complete `Registration` resource to be created.
341
+ # @param domain_notices [::Array<::Google::Cloud::Domains::V1beta1::DomainNotice>]
342
+ # The list of domain notices that you acknowledge. Call
343
+ # `RetrieveRegisterParameters` to see the notices that need acknowledgement.
344
+ # @param contact_notices [::Array<::Google::Cloud::Domains::V1beta1::ContactNotice>]
345
+ # The list of contact notices that the caller acknowledges. The notices
346
+ # required here depend on the values specified in
347
+ # `registration.contact_settings`.
348
+ # @param yearly_price [::Google::Type::Money, ::Hash]
349
+ # Required. Yearly price to register or renew the domain.
350
+ # The value that should be put here can be obtained from
351
+ # RetrieveRegisterParameters or SearchDomains calls.
352
+ # @param validate_only [::Boolean]
353
+ # When true, only validation will be performed, without actually registering
354
+ # the domain. Follows:
355
+ # https://cloud.google.com/apis/design/design_patterns#request_validation
356
+ #
357
+ # @yield [response, operation] Access the result along with the RPC operation
358
+ # @yieldparam response [::Gapic::Operation]
359
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
360
+ #
361
+ # @return [::Gapic::Operation]
362
+ #
363
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
364
+ #
365
+ def register_domain request, options = nil
366
+ raise ::ArgumentError, "request must be provided" if request.nil?
367
+
368
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::RegisterDomainRequest
369
+
370
+ # Converts hash and nil to an options object
371
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
372
+
373
+ # Customize the options with defaults
374
+ metadata = @config.rpcs.register_domain.metadata.to_h
375
+
376
+ # Set x-goog-api-client and x-goog-user-project headers
377
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
378
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
379
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
380
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
381
+
382
+ header_params = {
383
+ "parent" => request.parent
384
+ }
385
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
386
+ metadata[:"x-goog-request-params"] ||= request_params_header
387
+
388
+ options.apply_defaults timeout: @config.rpcs.register_domain.timeout,
389
+ metadata: metadata,
390
+ retry_policy: @config.rpcs.register_domain.retry_policy
391
+ options.apply_defaults metadata: @config.metadata,
392
+ retry_policy: @config.retry_policy
393
+
394
+ @domains_stub.call_rpc :register_domain, request, options: options do |response, operation|
395
+ response = ::Gapic::Operation.new response, @operations_client, options: options
396
+ yield response, operation if block_given?
397
+ return response
398
+ end
399
+ rescue ::GRPC::BadStatus => e
400
+ raise ::Google::Cloud::Error.from_error(e)
401
+ end
402
+
403
+ ##
404
+ # Lists the `Registration` resources in a project.
405
+ #
406
+ # @overload list_registrations(request, options = nil)
407
+ # Pass arguments to `list_registrations` via a request object, either of type
408
+ # {::Google::Cloud::Domains::V1beta1::ListRegistrationsRequest} or an equivalent Hash.
409
+ #
410
+ # @param request [::Google::Cloud::Domains::V1beta1::ListRegistrationsRequest, ::Hash]
411
+ # A request object representing the call parameters. Required. To specify no
412
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
413
+ # @param options [::Gapic::CallOptions, ::Hash]
414
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
415
+ #
416
+ # @overload list_registrations(parent: nil, page_size: nil, page_token: nil, filter: nil)
417
+ # Pass arguments to `list_registrations` via keyword arguments. Note that at
418
+ # least one keyword argument is required. To specify no parameters, or to keep all
419
+ # the default parameter values, pass an empty Hash as a request object (see above).
420
+ #
421
+ # @param parent [::String]
422
+ # Required. The project and location from which to list `Registration`s, specified in
423
+ # the format `projects/*/locations/*`.
424
+ # @param page_size [::Integer]
425
+ # Maximum number of results to return.
426
+ # @param page_token [::String]
427
+ # When set to the `next_page_token` from a prior response, provides the next
428
+ # page of results.
429
+ # @param filter [::String]
430
+ # Filter expression to restrict the `Registration`s returned.
431
+ #
432
+ # The expression must specify the field name, a comparison operator, and the
433
+ # value that you want to use for filtering. The value must be a string, a
434
+ # number, a boolean, or an enum value. The comparison operator should be one
435
+ # of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
436
+ #
437
+ # For example, to filter to a specific domain name, use an expression like
438
+ # `domainName="example.com"`. You can also check for the existence of a
439
+ # field; for example, to find domains using custom DNS settings, use an
440
+ # expression like `dnsSettings.customDns:*`.
441
+ #
442
+ # You can also create compound filters by combining expressions with the
443
+ # `AND` and `OR` operators. For example, to find domains that are suspended
444
+ # or have specific issues flagged, use an expression like
445
+ # `(state=SUSPENDED) OR (issue:*)`.
446
+ #
447
+ # @yield [response, operation] Access the result along with the RPC operation
448
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>]
449
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
450
+ #
451
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>]
452
+ #
453
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
454
+ #
455
+ def list_registrations request, options = nil
456
+ raise ::ArgumentError, "request must be provided" if request.nil?
457
+
458
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::ListRegistrationsRequest
459
+
460
+ # Converts hash and nil to an options object
461
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
462
+
463
+ # Customize the options with defaults
464
+ metadata = @config.rpcs.list_registrations.metadata.to_h
465
+
466
+ # Set x-goog-api-client and x-goog-user-project headers
467
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
468
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
469
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
470
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
471
+
472
+ header_params = {
473
+ "parent" => request.parent
474
+ }
475
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
476
+ metadata[:"x-goog-request-params"] ||= request_params_header
477
+
478
+ options.apply_defaults timeout: @config.rpcs.list_registrations.timeout,
479
+ metadata: metadata,
480
+ retry_policy: @config.rpcs.list_registrations.retry_policy
481
+ options.apply_defaults metadata: @config.metadata,
482
+ retry_policy: @config.retry_policy
483
+
484
+ @domains_stub.call_rpc :list_registrations, request, options: options do |response, operation|
485
+ response = ::Gapic::PagedEnumerable.new @domains_stub, :list_registrations, request, response, operation, options
486
+ yield response, operation if block_given?
487
+ return response
488
+ end
489
+ rescue ::GRPC::BadStatus => e
490
+ raise ::Google::Cloud::Error.from_error(e)
491
+ end
492
+
493
+ ##
494
+ # Gets the details of a `Registration` resource.
495
+ #
496
+ # @overload get_registration(request, options = nil)
497
+ # Pass arguments to `get_registration` via a request object, either of type
498
+ # {::Google::Cloud::Domains::V1beta1::GetRegistrationRequest} or an equivalent Hash.
499
+ #
500
+ # @param request [::Google::Cloud::Domains::V1beta1::GetRegistrationRequest, ::Hash]
501
+ # A request object representing the call parameters. Required. To specify no
502
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
503
+ # @param options [::Gapic::CallOptions, ::Hash]
504
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
505
+ #
506
+ # @overload get_registration(name: nil)
507
+ # Pass arguments to `get_registration` via keyword arguments. Note that at
508
+ # least one keyword argument is required. To specify no parameters, or to keep all
509
+ # the default parameter values, pass an empty Hash as a request object (see above).
510
+ #
511
+ # @param name [::String]
512
+ # Required. The name of the `Registration` to get, in the format
513
+ # `projects/*/locations/*/registrations/*`.
514
+ #
515
+ # @yield [response, operation] Access the result along with the RPC operation
516
+ # @yieldparam response [::Google::Cloud::Domains::V1beta1::Registration]
517
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
518
+ #
519
+ # @return [::Google::Cloud::Domains::V1beta1::Registration]
520
+ #
521
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
522
+ #
523
+ def get_registration request, options = nil
524
+ raise ::ArgumentError, "request must be provided" if request.nil?
525
+
526
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::GetRegistrationRequest
527
+
528
+ # Converts hash and nil to an options object
529
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
530
+
531
+ # Customize the options with defaults
532
+ metadata = @config.rpcs.get_registration.metadata.to_h
533
+
534
+ # Set x-goog-api-client and x-goog-user-project headers
535
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
536
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
537
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
538
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
+
540
+ header_params = {
541
+ "name" => request.name
542
+ }
543
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
544
+ metadata[:"x-goog-request-params"] ||= request_params_header
545
+
546
+ options.apply_defaults timeout: @config.rpcs.get_registration.timeout,
547
+ metadata: metadata,
548
+ retry_policy: @config.rpcs.get_registration.retry_policy
549
+ options.apply_defaults metadata: @config.metadata,
550
+ retry_policy: @config.retry_policy
551
+
552
+ @domains_stub.call_rpc :get_registration, request, options: options do |response, operation|
553
+ yield response, operation if block_given?
554
+ return response
555
+ end
556
+ rescue ::GRPC::BadStatus => e
557
+ raise ::Google::Cloud::Error.from_error(e)
558
+ end
559
+
560
+ ##
561
+ # Updates select fields of a `Registration` resource, notably `labels`. To
562
+ # update other fields, use the appropriate custom update method:
563
+ #
564
+ # * To update management settings, see `ConfigureManagementSettings`
565
+ # * To update DNS configuration, see `ConfigureDnsSettings`
566
+ # * To update contact information, see `ConfigureContactSettings`
567
+ #
568
+ # @overload update_registration(request, options = nil)
569
+ # Pass arguments to `update_registration` via a request object, either of type
570
+ # {::Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest} or an equivalent Hash.
571
+ #
572
+ # @param request [::Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest, ::Hash]
573
+ # A request object representing the call parameters. Required. To specify no
574
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
575
+ # @param options [::Gapic::CallOptions, ::Hash]
576
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
577
+ #
578
+ # @overload update_registration(registration: nil, update_mask: nil)
579
+ # Pass arguments to `update_registration` via keyword arguments. Note that at
580
+ # least one keyword argument is required. To specify no parameters, or to keep all
581
+ # the default parameter values, pass an empty Hash as a request object (see above).
582
+ #
583
+ # @param registration [::Google::Cloud::Domains::V1beta1::Registration, ::Hash]
584
+ # Fields of the `Registration` to update.
585
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
586
+ # Required. The field mask describing which fields to update as a comma-separated list.
587
+ # For example, if only the labels are being updated, the `update_mask` would
588
+ # be `"labels"`.
589
+ #
590
+ # @yield [response, operation] Access the result along with the RPC operation
591
+ # @yieldparam response [::Gapic::Operation]
592
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
593
+ #
594
+ # @return [::Gapic::Operation]
595
+ #
596
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
597
+ #
598
+ def update_registration request, options = nil
599
+ raise ::ArgumentError, "request must be provided" if request.nil?
600
+
601
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest
602
+
603
+ # Converts hash and nil to an options object
604
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
605
+
606
+ # Customize the options with defaults
607
+ metadata = @config.rpcs.update_registration.metadata.to_h
608
+
609
+ # Set x-goog-api-client and x-goog-user-project headers
610
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
611
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
612
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
613
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
614
+
615
+ header_params = {
616
+ "registration.name" => request.registration.name
617
+ }
618
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
619
+ metadata[:"x-goog-request-params"] ||= request_params_header
620
+
621
+ options.apply_defaults timeout: @config.rpcs.update_registration.timeout,
622
+ metadata: metadata,
623
+ retry_policy: @config.rpcs.update_registration.retry_policy
624
+ options.apply_defaults metadata: @config.metadata,
625
+ retry_policy: @config.retry_policy
626
+
627
+ @domains_stub.call_rpc :update_registration, request, options: options do |response, operation|
628
+ response = ::Gapic::Operation.new response, @operations_client, options: options
629
+ yield response, operation if block_given?
630
+ return response
631
+ end
632
+ rescue ::GRPC::BadStatus => e
633
+ raise ::Google::Cloud::Error.from_error(e)
634
+ end
635
+
636
+ ##
637
+ # Updates a `Registration`'s management settings.
638
+ #
639
+ # @overload configure_management_settings(request, options = nil)
640
+ # Pass arguments to `configure_management_settings` via a request object, either of type
641
+ # {::Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest} or an equivalent Hash.
642
+ #
643
+ # @param request [::Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest, ::Hash]
644
+ # A request object representing the call parameters. Required. To specify no
645
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
646
+ # @param options [::Gapic::CallOptions, ::Hash]
647
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
648
+ #
649
+ # @overload configure_management_settings(registration: nil, management_settings: nil, update_mask: nil)
650
+ # Pass arguments to `configure_management_settings` via keyword arguments. Note that at
651
+ # least one keyword argument is required. To specify no parameters, or to keep all
652
+ # the default parameter values, pass an empty Hash as a request object (see above).
653
+ #
654
+ # @param registration [::String]
655
+ # Required. The name of the `Registration` whose management settings are being updated,
656
+ # in the format `projects/*/locations/*/registrations/*`.
657
+ # @param management_settings [::Google::Cloud::Domains::V1beta1::ManagementSettings, ::Hash]
658
+ # Fields of the `ManagementSettings` to update.
659
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
660
+ # Required. The field mask describing which fields to update as a comma-separated list.
661
+ # For example, if only the transfer lock is being updated, the `update_mask`
662
+ # would be `"transfer_lock_state"`.
663
+ #
664
+ # @yield [response, operation] Access the result along with the RPC operation
665
+ # @yieldparam response [::Gapic::Operation]
666
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
667
+ #
668
+ # @return [::Gapic::Operation]
669
+ #
670
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
671
+ #
672
+ def configure_management_settings request, options = nil
673
+ raise ::ArgumentError, "request must be provided" if request.nil?
674
+
675
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest
676
+
677
+ # Converts hash and nil to an options object
678
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
679
+
680
+ # Customize the options with defaults
681
+ metadata = @config.rpcs.configure_management_settings.metadata.to_h
682
+
683
+ # Set x-goog-api-client and x-goog-user-project headers
684
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
685
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
686
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
687
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
688
+
689
+ header_params = {
690
+ "registration" => request.registration
691
+ }
692
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
693
+ metadata[:"x-goog-request-params"] ||= request_params_header
694
+
695
+ options.apply_defaults timeout: @config.rpcs.configure_management_settings.timeout,
696
+ metadata: metadata,
697
+ retry_policy: @config.rpcs.configure_management_settings.retry_policy
698
+ options.apply_defaults metadata: @config.metadata,
699
+ retry_policy: @config.retry_policy
700
+
701
+ @domains_stub.call_rpc :configure_management_settings, request, options: options do |response, operation|
702
+ response = ::Gapic::Operation.new response, @operations_client, options: options
703
+ yield response, operation if block_given?
704
+ return response
705
+ end
706
+ rescue ::GRPC::BadStatus => e
707
+ raise ::Google::Cloud::Error.from_error(e)
708
+ end
709
+
710
+ ##
711
+ # Updates a `Registration`'s DNS settings.
712
+ #
713
+ # @overload configure_dns_settings(request, options = nil)
714
+ # Pass arguments to `configure_dns_settings` via a request object, either of type
715
+ # {::Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest} or an equivalent Hash.
716
+ #
717
+ # @param request [::Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest, ::Hash]
718
+ # A request object representing the call parameters. Required. To specify no
719
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
720
+ # @param options [::Gapic::CallOptions, ::Hash]
721
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
722
+ #
723
+ # @overload configure_dns_settings(registration: nil, dns_settings: nil, update_mask: nil, validate_only: nil)
724
+ # Pass arguments to `configure_dns_settings` via keyword arguments. Note that at
725
+ # least one keyword argument is required. To specify no parameters, or to keep all
726
+ # the default parameter values, pass an empty Hash as a request object (see above).
727
+ #
728
+ # @param registration [::String]
729
+ # Required. The name of the `Registration` whose DNS settings are being updated,
730
+ # in the format `projects/*/locations/*/registrations/*`.
731
+ # @param dns_settings [::Google::Cloud::Domains::V1beta1::DnsSettings, ::Hash]
732
+ # Fields of the `DnsSettings` to update.
733
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
734
+ # Required. The field mask describing which fields to update as a comma-separated list.
735
+ # For example, if only the name servers are being updated for an existing
736
+ # Custom DNS configuration, the `update_mask` would be
737
+ # `"custom_dns.name_servers"`.
738
+ #
739
+ # When changing the DNS provider from one type to another, pass the new
740
+ # provider's field name as part of the field mask. For example, when changing
741
+ # from a Google Domains DNS configuration to a Custom DNS configuration, the
742
+ # `update_mask` would be `"custom_dns"`. //
743
+ # @param validate_only [::Boolean]
744
+ # Validate the request without actually updating the DNS settings.
745
+ #
746
+ # @yield [response, operation] Access the result along with the RPC operation
747
+ # @yieldparam response [::Gapic::Operation]
748
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
749
+ #
750
+ # @return [::Gapic::Operation]
751
+ #
752
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
753
+ #
754
+ def configure_dns_settings request, options = nil
755
+ raise ::ArgumentError, "request must be provided" if request.nil?
756
+
757
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest
758
+
759
+ # Converts hash and nil to an options object
760
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
761
+
762
+ # Customize the options with defaults
763
+ metadata = @config.rpcs.configure_dns_settings.metadata.to_h
764
+
765
+ # Set x-goog-api-client and x-goog-user-project headers
766
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
767
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
768
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
769
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
770
+
771
+ header_params = {
772
+ "registration" => request.registration
773
+ }
774
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
775
+ metadata[:"x-goog-request-params"] ||= request_params_header
776
+
777
+ options.apply_defaults timeout: @config.rpcs.configure_dns_settings.timeout,
778
+ metadata: metadata,
779
+ retry_policy: @config.rpcs.configure_dns_settings.retry_policy
780
+ options.apply_defaults metadata: @config.metadata,
781
+ retry_policy: @config.retry_policy
782
+
783
+ @domains_stub.call_rpc :configure_dns_settings, request, options: options do |response, operation|
784
+ response = ::Gapic::Operation.new response, @operations_client, options: options
785
+ yield response, operation if block_given?
786
+ return response
787
+ end
788
+ rescue ::GRPC::BadStatus => e
789
+ raise ::Google::Cloud::Error.from_error(e)
790
+ end
791
+
792
+ ##
793
+ # Updates a `Registration`'s contact settings. Some changes require
794
+ # confirmation by the domain's registrant contact .
795
+ #
796
+ # @overload configure_contact_settings(request, options = nil)
797
+ # Pass arguments to `configure_contact_settings` via a request object, either of type
798
+ # {::Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest} or an equivalent Hash.
799
+ #
800
+ # @param request [::Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest, ::Hash]
801
+ # A request object representing the call parameters. Required. To specify no
802
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
803
+ # @param options [::Gapic::CallOptions, ::Hash]
804
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
805
+ #
806
+ # @overload configure_contact_settings(registration: nil, contact_settings: nil, update_mask: nil, contact_notices: nil, validate_only: nil)
807
+ # Pass arguments to `configure_contact_settings` via keyword arguments. Note that at
808
+ # least one keyword argument is required. To specify no parameters, or to keep all
809
+ # the default parameter values, pass an empty Hash as a request object (see above).
810
+ #
811
+ # @param registration [::String]
812
+ # Required. The name of the `Registration` whose contact settings are being updated,
813
+ # in the format `projects/*/locations/*/registrations/*`.
814
+ # @param contact_settings [::Google::Cloud::Domains::V1beta1::ContactSettings, ::Hash]
815
+ # Fields of the `ContactSettings` to update.
816
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
817
+ # Required. The field mask describing which fields to update as a comma-separated list.
818
+ # For example, if only the registrant contact is being updated, the
819
+ # `update_mask` would be `"registrant_contact"`.
820
+ # @param contact_notices [::Array<::Google::Cloud::Domains::V1beta1::ContactNotice>]
821
+ # The list of contact notices that the caller acknowledges. The notices
822
+ # required here depend on the values specified in `contact_settings`.
823
+ # @param validate_only [::Boolean]
824
+ # Validate the request without actually updating the contact settings.
825
+ #
826
+ # @yield [response, operation] Access the result along with the RPC operation
827
+ # @yieldparam response [::Gapic::Operation]
828
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
829
+ #
830
+ # @return [::Gapic::Operation]
831
+ #
832
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
833
+ #
834
+ def configure_contact_settings request, options = nil
835
+ raise ::ArgumentError, "request must be provided" if request.nil?
836
+
837
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest
838
+
839
+ # Converts hash and nil to an options object
840
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
841
+
842
+ # Customize the options with defaults
843
+ metadata = @config.rpcs.configure_contact_settings.metadata.to_h
844
+
845
+ # Set x-goog-api-client and x-goog-user-project headers
846
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
847
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
848
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
849
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
850
+
851
+ header_params = {
852
+ "registration" => request.registration
853
+ }
854
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
855
+ metadata[:"x-goog-request-params"] ||= request_params_header
856
+
857
+ options.apply_defaults timeout: @config.rpcs.configure_contact_settings.timeout,
858
+ metadata: metadata,
859
+ retry_policy: @config.rpcs.configure_contact_settings.retry_policy
860
+ options.apply_defaults metadata: @config.metadata,
861
+ retry_policy: @config.retry_policy
862
+
863
+ @domains_stub.call_rpc :configure_contact_settings, request, options: options do |response, operation|
864
+ response = ::Gapic::Operation.new response, @operations_client, options: options
865
+ yield response, operation if block_given?
866
+ return response
867
+ end
868
+ rescue ::GRPC::BadStatus => e
869
+ raise ::Google::Cloud::Error.from_error(e)
870
+ end
871
+
872
+ ##
873
+ # Exports a `Registration` that you no longer want to use with
874
+ # Cloud Domains. You can continue to use the domain in
875
+ # [Google Domains](https://domains.google/) until it expires.
876
+ #
877
+ # If the export is successful:
878
+ #
879
+ # * The resource's `state` becomes `EXPORTED`, meaning that it is no longer
880
+ # managed by Cloud Domains
881
+ # * Because individual users can own domains in Google Domains, the calling
882
+ # user becomes the domain's sole owner. Permissions for the domain are
883
+ # subsequently managed in Google Domains.
884
+ # * Without further action, the domain does not renew automatically.
885
+ # The new owner can set up billing in Google Domains to renew the domain
886
+ # if needed.
887
+ #
888
+ # @overload export_registration(request, options = nil)
889
+ # Pass arguments to `export_registration` via a request object, either of type
890
+ # {::Google::Cloud::Domains::V1beta1::ExportRegistrationRequest} or an equivalent Hash.
891
+ #
892
+ # @param request [::Google::Cloud::Domains::V1beta1::ExportRegistrationRequest, ::Hash]
893
+ # A request object representing the call parameters. Required. To specify no
894
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
895
+ # @param options [::Gapic::CallOptions, ::Hash]
896
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
897
+ #
898
+ # @overload export_registration(name: nil)
899
+ # Pass arguments to `export_registration` via keyword arguments. Note that at
900
+ # least one keyword argument is required. To specify no parameters, or to keep all
901
+ # the default parameter values, pass an empty Hash as a request object (see above).
902
+ #
903
+ # @param name [::String]
904
+ # Required. The name of the `Registration` to export,
905
+ # in the format `projects/*/locations/*/registrations/*`.
906
+ #
907
+ # @yield [response, operation] Access the result along with the RPC operation
908
+ # @yieldparam response [::Gapic::Operation]
909
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
910
+ #
911
+ # @return [::Gapic::Operation]
912
+ #
913
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
914
+ #
915
+ def export_registration request, options = nil
916
+ raise ::ArgumentError, "request must be provided" if request.nil?
917
+
918
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::ExportRegistrationRequest
919
+
920
+ # Converts hash and nil to an options object
921
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
922
+
923
+ # Customize the options with defaults
924
+ metadata = @config.rpcs.export_registration.metadata.to_h
925
+
926
+ # Set x-goog-api-client and x-goog-user-project headers
927
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
928
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
929
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
930
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
931
+
932
+ header_params = {
933
+ "name" => request.name
934
+ }
935
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
936
+ metadata[:"x-goog-request-params"] ||= request_params_header
937
+
938
+ options.apply_defaults timeout: @config.rpcs.export_registration.timeout,
939
+ metadata: metadata,
940
+ retry_policy: @config.rpcs.export_registration.retry_policy
941
+ options.apply_defaults metadata: @config.metadata,
942
+ retry_policy: @config.retry_policy
943
+
944
+ @domains_stub.call_rpc :export_registration, request, options: options do |response, operation|
945
+ response = ::Gapic::Operation.new response, @operations_client, options: options
946
+ yield response, operation if block_given?
947
+ return response
948
+ end
949
+ rescue ::GRPC::BadStatus => e
950
+ raise ::Google::Cloud::Error.from_error(e)
951
+ end
952
+
953
+ ##
954
+ # Deletes a `Registration` resource.
955
+ #
956
+ # This method only works on resources in one of the following states:
957
+ #
958
+ # * `state` is `EXPORTED` with `expire_time` in the past
959
+ # * `state` is `REGISTRATION_FAILED`
960
+ #
961
+ # @overload delete_registration(request, options = nil)
962
+ # Pass arguments to `delete_registration` via a request object, either of type
963
+ # {::Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest} or an equivalent Hash.
964
+ #
965
+ # @param request [::Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest, ::Hash]
966
+ # A request object representing the call parameters. Required. To specify no
967
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
968
+ # @param options [::Gapic::CallOptions, ::Hash]
969
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
970
+ #
971
+ # @overload delete_registration(name: nil)
972
+ # Pass arguments to `delete_registration` via keyword arguments. Note that at
973
+ # least one keyword argument is required. To specify no parameters, or to keep all
974
+ # the default parameter values, pass an empty Hash as a request object (see above).
975
+ #
976
+ # @param name [::String]
977
+ # Required. The name of the `Registration` to delete,
978
+ # in the format `projects/*/locations/*/registrations/*`.
979
+ #
980
+ # @yield [response, operation] Access the result along with the RPC operation
981
+ # @yieldparam response [::Gapic::Operation]
982
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
983
+ #
984
+ # @return [::Gapic::Operation]
985
+ #
986
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
987
+ #
988
+ def delete_registration request, options = nil
989
+ raise ::ArgumentError, "request must be provided" if request.nil?
990
+
991
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest
992
+
993
+ # Converts hash and nil to an options object
994
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
995
+
996
+ # Customize the options with defaults
997
+ metadata = @config.rpcs.delete_registration.metadata.to_h
998
+
999
+ # Set x-goog-api-client and x-goog-user-project headers
1000
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1001
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1002
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1003
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1004
+
1005
+ header_params = {
1006
+ "name" => request.name
1007
+ }
1008
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1009
+ metadata[:"x-goog-request-params"] ||= request_params_header
1010
+
1011
+ options.apply_defaults timeout: @config.rpcs.delete_registration.timeout,
1012
+ metadata: metadata,
1013
+ retry_policy: @config.rpcs.delete_registration.retry_policy
1014
+ options.apply_defaults metadata: @config.metadata,
1015
+ retry_policy: @config.retry_policy
1016
+
1017
+ @domains_stub.call_rpc :delete_registration, request, options: options do |response, operation|
1018
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1019
+ yield response, operation if block_given?
1020
+ return response
1021
+ end
1022
+ rescue ::GRPC::BadStatus => e
1023
+ raise ::Google::Cloud::Error.from_error(e)
1024
+ end
1025
+
1026
+ ##
1027
+ # Gets the authorization code of the `Registration` for the purpose of
1028
+ # transferring the domain to another registrar.
1029
+ #
1030
+ # You can call this method only after 60 days have elapsed since the initial
1031
+ # domain registration.
1032
+ #
1033
+ # @overload retrieve_authorization_code(request, options = nil)
1034
+ # Pass arguments to `retrieve_authorization_code` via a request object, either of type
1035
+ # {::Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest} or an equivalent Hash.
1036
+ #
1037
+ # @param request [::Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest, ::Hash]
1038
+ # A request object representing the call parameters. Required. To specify no
1039
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1040
+ # @param options [::Gapic::CallOptions, ::Hash]
1041
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1042
+ #
1043
+ # @overload retrieve_authorization_code(registration: nil)
1044
+ # Pass arguments to `retrieve_authorization_code` via keyword arguments. Note that at
1045
+ # least one keyword argument is required. To specify no parameters, or to keep all
1046
+ # the default parameter values, pass an empty Hash as a request object (see above).
1047
+ #
1048
+ # @param registration [::String]
1049
+ # Required. The name of the `Registration` whose authorization code is being retrieved,
1050
+ # in the format `projects/*/locations/*/registrations/*`.
1051
+ #
1052
+ # @yield [response, operation] Access the result along with the RPC operation
1053
+ # @yieldparam response [::Google::Cloud::Domains::V1beta1::AuthorizationCode]
1054
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1055
+ #
1056
+ # @return [::Google::Cloud::Domains::V1beta1::AuthorizationCode]
1057
+ #
1058
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1059
+ #
1060
+ def retrieve_authorization_code request, options = nil
1061
+ raise ::ArgumentError, "request must be provided" if request.nil?
1062
+
1063
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest
1064
+
1065
+ # Converts hash and nil to an options object
1066
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1067
+
1068
+ # Customize the options with defaults
1069
+ metadata = @config.rpcs.retrieve_authorization_code.metadata.to_h
1070
+
1071
+ # Set x-goog-api-client and x-goog-user-project headers
1072
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1073
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1074
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1075
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1076
+
1077
+ header_params = {
1078
+ "registration" => request.registration
1079
+ }
1080
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1081
+ metadata[:"x-goog-request-params"] ||= request_params_header
1082
+
1083
+ options.apply_defaults timeout: @config.rpcs.retrieve_authorization_code.timeout,
1084
+ metadata: metadata,
1085
+ retry_policy: @config.rpcs.retrieve_authorization_code.retry_policy
1086
+ options.apply_defaults metadata: @config.metadata,
1087
+ retry_policy: @config.retry_policy
1088
+
1089
+ @domains_stub.call_rpc :retrieve_authorization_code, request, options: options do |response, operation|
1090
+ yield response, operation if block_given?
1091
+ return response
1092
+ end
1093
+ rescue ::GRPC::BadStatus => e
1094
+ raise ::Google::Cloud::Error.from_error(e)
1095
+ end
1096
+
1097
+ ##
1098
+ # Resets the authorization code of the `Registration` to a new random string.
1099
+ #
1100
+ # You can call this method only after 60 days have elapsed since the initial
1101
+ # domain registration.
1102
+ #
1103
+ # @overload reset_authorization_code(request, options = nil)
1104
+ # Pass arguments to `reset_authorization_code` via a request object, either of type
1105
+ # {::Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest} or an equivalent Hash.
1106
+ #
1107
+ # @param request [::Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest, ::Hash]
1108
+ # A request object representing the call parameters. Required. To specify no
1109
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1110
+ # @param options [::Gapic::CallOptions, ::Hash]
1111
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1112
+ #
1113
+ # @overload reset_authorization_code(registration: nil)
1114
+ # Pass arguments to `reset_authorization_code` via keyword arguments. Note that at
1115
+ # least one keyword argument is required. To specify no parameters, or to keep all
1116
+ # the default parameter values, pass an empty Hash as a request object (see above).
1117
+ #
1118
+ # @param registration [::String]
1119
+ # Required. The name of the `Registration` whose authorization code is being reset,
1120
+ # in the format `projects/*/locations/*/registrations/*`.
1121
+ #
1122
+ # @yield [response, operation] Access the result along with the RPC operation
1123
+ # @yieldparam response [::Google::Cloud::Domains::V1beta1::AuthorizationCode]
1124
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1125
+ #
1126
+ # @return [::Google::Cloud::Domains::V1beta1::AuthorizationCode]
1127
+ #
1128
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1129
+ #
1130
+ def reset_authorization_code request, options = nil
1131
+ raise ::ArgumentError, "request must be provided" if request.nil?
1132
+
1133
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest
1134
+
1135
+ # Converts hash and nil to an options object
1136
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1137
+
1138
+ # Customize the options with defaults
1139
+ metadata = @config.rpcs.reset_authorization_code.metadata.to_h
1140
+
1141
+ # Set x-goog-api-client and x-goog-user-project headers
1142
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1143
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1144
+ gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1145
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1146
+
1147
+ header_params = {
1148
+ "registration" => request.registration
1149
+ }
1150
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1151
+ metadata[:"x-goog-request-params"] ||= request_params_header
1152
+
1153
+ options.apply_defaults timeout: @config.rpcs.reset_authorization_code.timeout,
1154
+ metadata: metadata,
1155
+ retry_policy: @config.rpcs.reset_authorization_code.retry_policy
1156
+ options.apply_defaults metadata: @config.metadata,
1157
+ retry_policy: @config.retry_policy
1158
+
1159
+ @domains_stub.call_rpc :reset_authorization_code, request, options: options do |response, operation|
1160
+ yield response, operation if block_given?
1161
+ return response
1162
+ end
1163
+ rescue ::GRPC::BadStatus => e
1164
+ raise ::Google::Cloud::Error.from_error(e)
1165
+ end
1166
+
1167
+ ##
1168
+ # Configuration class for the Domains API.
1169
+ #
1170
+ # This class represents the configuration for Domains,
1171
+ # providing control over timeouts, retry behavior, logging, transport
1172
+ # parameters, and other low-level controls. Certain parameters can also be
1173
+ # applied individually to specific RPCs. See
1174
+ # {::Google::Cloud::Domains::V1beta1::Domains::Client::Configuration::Rpcs}
1175
+ # for a list of RPCs that can be configured independently.
1176
+ #
1177
+ # Configuration can be applied globally to all clients, or to a single client
1178
+ # on construction.
1179
+ #
1180
+ # # Examples
1181
+ #
1182
+ # To modify the global config, setting the timeout for search_domains
1183
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
1184
+ #
1185
+ # ::Google::Cloud::Domains::V1beta1::Domains::Client.configure do |config|
1186
+ # config.timeout = 10.0
1187
+ # config.rpcs.search_domains.timeout = 20.0
1188
+ # end
1189
+ #
1190
+ # To apply the above configuration only to a new client:
1191
+ #
1192
+ # client = ::Google::Cloud::Domains::V1beta1::Domains::Client.new do |config|
1193
+ # config.timeout = 10.0
1194
+ # config.rpcs.search_domains.timeout = 20.0
1195
+ # end
1196
+ #
1197
+ # @!attribute [rw] endpoint
1198
+ # The hostname or hostname:port of the service endpoint.
1199
+ # Defaults to `"domains.googleapis.com"`.
1200
+ # @return [::String]
1201
+ # @!attribute [rw] credentials
1202
+ # Credentials to send with calls. You may provide any of the following types:
1203
+ # * (`String`) The path to a service account key file in JSON format
1204
+ # * (`Hash`) A service account key as a Hash
1205
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1206
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1207
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1208
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1209
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1210
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1211
+ # * (`nil`) indicating no credentials
1212
+ # @return [::Object]
1213
+ # @!attribute [rw] scope
1214
+ # The OAuth scopes
1215
+ # @return [::Array<::String>]
1216
+ # @!attribute [rw] lib_name
1217
+ # The library name as recorded in instrumentation and logging
1218
+ # @return [::String]
1219
+ # @!attribute [rw] lib_version
1220
+ # The library version as recorded in instrumentation and logging
1221
+ # @return [::String]
1222
+ # @!attribute [rw] channel_args
1223
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1224
+ # `GRPC::Core::Channel` object is provided as the credential.
1225
+ # @return [::Hash]
1226
+ # @!attribute [rw] interceptors
1227
+ # An array of interceptors that are run before calls are executed.
1228
+ # @return [::Array<::GRPC::ClientInterceptor>]
1229
+ # @!attribute [rw] timeout
1230
+ # The call timeout in seconds.
1231
+ # @return [::Numeric]
1232
+ # @!attribute [rw] metadata
1233
+ # Additional gRPC headers to be sent with the call.
1234
+ # @return [::Hash{::Symbol=>::String}]
1235
+ # @!attribute [rw] retry_policy
1236
+ # The retry policy. The value is a hash with the following keys:
1237
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1238
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1239
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1240
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1241
+ # trigger a retry.
1242
+ # @return [::Hash]
1243
+ # @!attribute [rw] quota_project
1244
+ # A separate project against which to charge quota.
1245
+ # @return [::String]
1246
+ #
1247
+ class Configuration
1248
+ extend ::Gapic::Config
1249
+
1250
+ config_attr :endpoint, "domains.googleapis.com", ::String
1251
+ config_attr :credentials, nil do |value|
1252
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1253
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1254
+ allowed.any? { |klass| klass === value }
1255
+ end
1256
+ config_attr :scope, nil, ::String, ::Array, nil
1257
+ config_attr :lib_name, nil, ::String, nil
1258
+ config_attr :lib_version, nil, ::String, nil
1259
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1260
+ config_attr :interceptors, nil, ::Array, nil
1261
+ config_attr :timeout, nil, ::Numeric, nil
1262
+ config_attr :metadata, nil, ::Hash, nil
1263
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1264
+ config_attr :quota_project, nil, ::String, nil
1265
+
1266
+ # @private
1267
+ def initialize parent_config = nil
1268
+ @parent_config = parent_config unless parent_config.nil?
1269
+
1270
+ yield self if block_given?
1271
+ end
1272
+
1273
+ ##
1274
+ # Configurations for individual RPCs
1275
+ # @return [Rpcs]
1276
+ #
1277
+ def rpcs
1278
+ @rpcs ||= begin
1279
+ parent_rpcs = nil
1280
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1281
+ Rpcs.new parent_rpcs
1282
+ end
1283
+ end
1284
+
1285
+ ##
1286
+ # Configuration RPC class for the Domains API.
1287
+ #
1288
+ # Includes fields providing the configuration for each RPC in this service.
1289
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1290
+ # the following configuration fields:
1291
+ #
1292
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1293
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1294
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1295
+ # include the following keys:
1296
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1297
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1298
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1299
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1300
+ # trigger a retry.
1301
+ #
1302
+ class Rpcs
1303
+ ##
1304
+ # RPC-specific configuration for `search_domains`
1305
+ # @return [::Gapic::Config::Method]
1306
+ #
1307
+ attr_reader :search_domains
1308
+ ##
1309
+ # RPC-specific configuration for `retrieve_register_parameters`
1310
+ # @return [::Gapic::Config::Method]
1311
+ #
1312
+ attr_reader :retrieve_register_parameters
1313
+ ##
1314
+ # RPC-specific configuration for `register_domain`
1315
+ # @return [::Gapic::Config::Method]
1316
+ #
1317
+ attr_reader :register_domain
1318
+ ##
1319
+ # RPC-specific configuration for `list_registrations`
1320
+ # @return [::Gapic::Config::Method]
1321
+ #
1322
+ attr_reader :list_registrations
1323
+ ##
1324
+ # RPC-specific configuration for `get_registration`
1325
+ # @return [::Gapic::Config::Method]
1326
+ #
1327
+ attr_reader :get_registration
1328
+ ##
1329
+ # RPC-specific configuration for `update_registration`
1330
+ # @return [::Gapic::Config::Method]
1331
+ #
1332
+ attr_reader :update_registration
1333
+ ##
1334
+ # RPC-specific configuration for `configure_management_settings`
1335
+ # @return [::Gapic::Config::Method]
1336
+ #
1337
+ attr_reader :configure_management_settings
1338
+ ##
1339
+ # RPC-specific configuration for `configure_dns_settings`
1340
+ # @return [::Gapic::Config::Method]
1341
+ #
1342
+ attr_reader :configure_dns_settings
1343
+ ##
1344
+ # RPC-specific configuration for `configure_contact_settings`
1345
+ # @return [::Gapic::Config::Method]
1346
+ #
1347
+ attr_reader :configure_contact_settings
1348
+ ##
1349
+ # RPC-specific configuration for `export_registration`
1350
+ # @return [::Gapic::Config::Method]
1351
+ #
1352
+ attr_reader :export_registration
1353
+ ##
1354
+ # RPC-specific configuration for `delete_registration`
1355
+ # @return [::Gapic::Config::Method]
1356
+ #
1357
+ attr_reader :delete_registration
1358
+ ##
1359
+ # RPC-specific configuration for `retrieve_authorization_code`
1360
+ # @return [::Gapic::Config::Method]
1361
+ #
1362
+ attr_reader :retrieve_authorization_code
1363
+ ##
1364
+ # RPC-specific configuration for `reset_authorization_code`
1365
+ # @return [::Gapic::Config::Method]
1366
+ #
1367
+ attr_reader :reset_authorization_code
1368
+
1369
+ # @private
1370
+ def initialize parent_rpcs = nil
1371
+ search_domains_config = parent_rpcs&.search_domains if parent_rpcs&.respond_to? :search_domains
1372
+ @search_domains = ::Gapic::Config::Method.new search_domains_config
1373
+ retrieve_register_parameters_config = parent_rpcs&.retrieve_register_parameters if parent_rpcs&.respond_to? :retrieve_register_parameters
1374
+ @retrieve_register_parameters = ::Gapic::Config::Method.new retrieve_register_parameters_config
1375
+ register_domain_config = parent_rpcs&.register_domain if parent_rpcs&.respond_to? :register_domain
1376
+ @register_domain = ::Gapic::Config::Method.new register_domain_config
1377
+ list_registrations_config = parent_rpcs&.list_registrations if parent_rpcs&.respond_to? :list_registrations
1378
+ @list_registrations = ::Gapic::Config::Method.new list_registrations_config
1379
+ get_registration_config = parent_rpcs&.get_registration if parent_rpcs&.respond_to? :get_registration
1380
+ @get_registration = ::Gapic::Config::Method.new get_registration_config
1381
+ update_registration_config = parent_rpcs&.update_registration if parent_rpcs&.respond_to? :update_registration
1382
+ @update_registration = ::Gapic::Config::Method.new update_registration_config
1383
+ configure_management_settings_config = parent_rpcs&.configure_management_settings if parent_rpcs&.respond_to? :configure_management_settings
1384
+ @configure_management_settings = ::Gapic::Config::Method.new configure_management_settings_config
1385
+ configure_dns_settings_config = parent_rpcs&.configure_dns_settings if parent_rpcs&.respond_to? :configure_dns_settings
1386
+ @configure_dns_settings = ::Gapic::Config::Method.new configure_dns_settings_config
1387
+ configure_contact_settings_config = parent_rpcs&.configure_contact_settings if parent_rpcs&.respond_to? :configure_contact_settings
1388
+ @configure_contact_settings = ::Gapic::Config::Method.new configure_contact_settings_config
1389
+ export_registration_config = parent_rpcs&.export_registration if parent_rpcs&.respond_to? :export_registration
1390
+ @export_registration = ::Gapic::Config::Method.new export_registration_config
1391
+ delete_registration_config = parent_rpcs&.delete_registration if parent_rpcs&.respond_to? :delete_registration
1392
+ @delete_registration = ::Gapic::Config::Method.new delete_registration_config
1393
+ retrieve_authorization_code_config = parent_rpcs&.retrieve_authorization_code if parent_rpcs&.respond_to? :retrieve_authorization_code
1394
+ @retrieve_authorization_code = ::Gapic::Config::Method.new retrieve_authorization_code_config
1395
+ reset_authorization_code_config = parent_rpcs&.reset_authorization_code if parent_rpcs&.respond_to? :reset_authorization_code
1396
+ @reset_authorization_code = ::Gapic::Config::Method.new reset_authorization_code_config
1397
+
1398
+ yield self if block_given?
1399
+ end
1400
+ end
1401
+ end
1402
+ end
1403
+ end
1404
+ end
1405
+ end
1406
+ end
1407
+ end