Reference documentation and code samples for the Cloud Domains V1beta1 API class Google::Cloud::Domains::V1beta1::Domains::Rest::Client.
REST client for the Domains service.
The Cloud Domains API enables management and configuration of domain names.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the Domains Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all Domains clients ::Google::Cloud::Domains::V1beta1::Domains::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the Domains Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#configure_contact_settings
def configure_contact_settings(request, options = nil) -> ::Gapic::Operation
def configure_contact_settings(registration: nil, contact_settings: nil, update_mask: nil, contact_notices: nil, validate_only: nil) -> ::Gapic::OperationUpdates a Registration's contact settings. Some changes require
confirmation by the domain's registrant contact .
def configure_contact_settings(request, options = nil) -> ::Gapic::Operationconfigure_contact_settings via a request object, either of type
ConfigureContactSettingsRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def configure_contact_settings(registration: nil, contact_settings: nil, update_mask: nil, contact_notices: nil, validate_only: nil) -> ::Gapic::Operationconfigure_contact_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
registration (::String) — Required. The name of the
Registrationwhose contact settings are being updated, in the formatprojects/*/locations/*/registrations/*. -
contact_settings (::Google::Cloud::Domains::V1beta1::ContactSettings, ::Hash) — Fields of the
ContactSettingsto update. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The field mask describing which fields to update as a comma-separated list.
For example, if only the registrant contact is being updated, the
update_maskis"registrant_contact". -
contact_notices (::Array<::Google::Cloud::Domains::V1beta1::ContactNotice>) — The list of contact notices that the caller acknowledges. The notices
needed here depend on the values specified in
contact_settings. - validate_only (::Boolean) — Validate the request without actually updating the contact settings.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest.new # Call the configure_contact_settings method. result = client.configure_contact_settings request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#configure_dns_settings
def configure_dns_settings(request, options = nil) -> ::Gapic::Operation
def configure_dns_settings(registration: nil, dns_settings: nil, update_mask: nil, validate_only: nil) -> ::Gapic::OperationUpdates a Registration's DNS settings.
def configure_dns_settings(request, options = nil) -> ::Gapic::Operationconfigure_dns_settings via a request object, either of type
ConfigureDnsSettingsRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def configure_dns_settings(registration: nil, dns_settings: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operationconfigure_dns_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
registration (::String) — Required. The name of the
Registrationwhose DNS settings are being updated, in the formatprojects/*/locations/*/registrations/*. -
dns_settings (::Google::Cloud::Domains::V1beta1::DnsSettings, ::Hash) — Fields of the
DnsSettingsto update. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The field mask describing which fields to update as a comma-separated list.
For example, if only the name servers are being updated for an existing
Custom DNS configuration, the
update_maskis"custom_dns.name_servers".When changing the DNS provider from one type to another, pass the new provider's field name as part of the field mask. For example, when changing from a Google Domains DNS configuration to a Custom DNS configuration, the
update_maskis"custom_dns". // - validate_only (::Boolean) — Validate the request without actually updating the DNS settings.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest.new # Call the configure_dns_settings method. result = client.configure_dns_settings request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#configure_management_settings
def configure_management_settings(request, options = nil) -> ::Gapic::Operation
def configure_management_settings(registration: nil, management_settings: nil, update_mask: nil) -> ::Gapic::OperationUpdates a Registration's management settings.
def configure_management_settings(request, options = nil) -> ::Gapic::Operationconfigure_management_settings via a request object, either of type
ConfigureManagementSettingsRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def configure_management_settings(registration: nil, management_settings: nil, update_mask: nil) -> ::Gapic::Operationconfigure_management_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
registration (::String) — Required. The name of the
Registrationwhose management settings are being updated, in the formatprojects/*/locations/*/registrations/*. -
management_settings (::Google::Cloud::Domains::V1beta1::ManagementSettings, ::Hash) — Fields of the
ManagementSettingsto update. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The field mask describing which fields to update as a comma-separated list.
For example, if only the transfer lock is being updated, the
update_maskis"transfer_lock_state".
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest.new # Call the configure_management_settings method. result = client.configure_management_settings request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_registration
def delete_registration(request, options = nil) -> ::Gapic::Operation
def delete_registration(name: nil) -> ::Gapic::OperationDeletes a Registration resource.
This method works on any Registration resource using Subscription or
Commitment billing, provided that the
resource was created at least 1 day in the past.
For Registration resources using
Monthly billing, this method works if:
stateisEXPORTEDwithexpire_timein the paststateisREGISTRATION_FAILEDstateisTRANSFER_FAILED
When an active registration is successfully deleted, you can continue to use the domain in Google Domains until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.
def delete_registration(request, options = nil) -> ::Gapic::Operationdelete_registration via a request object, either of type
Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_registration(name: nil) -> ::Gapic::Operationdelete_registration via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the
Registrationto delete, in the formatprojects/*/locations/*/registrations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest.new # Call the delete_registration method. result = client.delete_registration request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#export_registration
def export_registration(request, options = nil) -> ::Gapic::Operation
def export_registration(name: nil) -> ::Gapic::OperationExports a Registration resource, such that it is no longer managed by
Cloud Domains.
When an active domain is successfully exported, you can continue to use the domain in Google Domains until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.
def export_registration(request, options = nil) -> ::Gapic::Operationexport_registration via a request object, either of type
ExportRegistrationRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::ExportRegistrationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def export_registration(name: nil) -> ::Gapic::Operationexport_registration via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the
Registrationto export, in the formatprojects/*/locations/*/registrations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::ExportRegistrationRequest.new # Call the export_registration method. result = client.export_registration request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_registration
def get_registration(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::Registration
def get_registration(name: nil) -> ::Google::Cloud::Domains::V1beta1::RegistrationGets the details of a Registration resource.
def get_registration(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::Registrationget_registration via a request object, either of type
GetRegistrationRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::GetRegistrationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_registration(name: nil) -> ::Google::Cloud::Domains::V1beta1::Registrationget_registration via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the
Registrationto get, in the formatprojects/*/locations/*/registrations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Domains::V1beta1::Registration)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::GetRegistrationRequest.new # Call the get_registration method. result = client.get_registration request # The returned object is of type Google::Cloud::Domains::V1beta1::Registration. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new Domains REST client object.
- (config) — Configure the Domains client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new do |config| config.timeout = 10.0 end
#list_registrations
def list_registrations(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>
def list_registrations(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>Lists the Registration resources in a project.
def list_registrations(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>list_registrations via a request object, either of type
ListRegistrationsRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::ListRegistrationsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_registrations(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>list_registrations via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The project and location from which to list
Registrations, specified in the formatprojects/*/locations/*. - page_size (::Integer) — Maximum number of results to return.
-
page_token (::String) — When set to the
next_page_tokenfrom a prior response, provides the next page of results. -
filter (::String) — Filter expression to restrict the
Registrations returned.The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, a boolean, or an enum value. The comparison operator should be one of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.
For example, to filter to a specific domain name, use an expression like
domainName="example.com". You can also check for the existence of a field; for example, to find domains using custom DNS settings, use an expression likednsSettings.customDns:*.You can also create compound filters by combining expressions with the
ANDandORoperators. For example, to find domains that are suspended or have specific issues flagged, use an expression like(state=SUSPENDED) OR (issue:*).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Domains::V1beta1::Registration>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::ListRegistrationsRequest.new # Call the list_registrations method. result = client.list_registrations request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Domains::V1beta1::Registration. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::Domains::V1beta1::Domains::Rest::OperationsGet the associated client for long-running operations.
#register_domain
def register_domain(request, options = nil) -> ::Gapic::Operation
def register_domain(parent: nil, registration: nil, domain_notices: nil, contact_notices: nil, yearly_price: nil, validate_only: nil) -> ::Gapic::OperationRegisters a new domain name and creates a corresponding Registration
resource.
Call RetrieveRegisterParameters first to check availability of the domain
name and determine parameters like price that are needed to build a call to
this method.
A successful call creates a Registration resource in state
REGISTRATION_PENDING, which resolves to ACTIVE within 1-2
minutes, indicating that the domain was successfully registered. If the
resource ends up in state REGISTRATION_FAILED, it indicates that the
domain was not registered successfully, and you can safely delete the
resource and retry registration.
def register_domain(request, options = nil) -> ::Gapic::Operationregister_domain via a request object, either of type
RegisterDomainRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::RegisterDomainRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def register_domain(parent: nil, registration: nil, domain_notices: nil, contact_notices: nil, yearly_price: nil, validate_only: nil) -> ::Gapic::Operationregister_domain via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource of the
Registration. Must be in the formatprojects/*/locations/*. -
registration (::Google::Cloud::Domains::V1beta1::Registration, ::Hash) — Required. The complete
Registrationresource to be created. -
domain_notices (::Array<::Google::Cloud::Domains::V1beta1::DomainNotice>) — The list of domain notices that you acknowledge. Call
RetrieveRegisterParametersto see the notices that need acknowledgement. -
contact_notices (::Array<::Google::Cloud::Domains::V1beta1::ContactNotice>) — The list of contact notices that the caller acknowledges. The notices
needed here depend on the values specified in
registration.contact_settings. - yearly_price (::Google::Type::Money, ::Hash) — Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls.
- validate_only (::Boolean) — When true, only validation is performed, without actually registering the domain. Follows: https://cloud.google.com/apis/design/design_patterns#request_validation
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::RegisterDomainRequest.new # Call the register_domain method. result = client.register_domain request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#reset_authorization_code
def reset_authorization_code(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCode
def reset_authorization_code(registration: nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCodeResets the authorization code of the Registration to a new random string.
You can call this method only after 60 days have elapsed since the initial domain registration.
def reset_authorization_code(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCodereset_authorization_code via a request object, either of type
ResetAuthorizationCodeRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def reset_authorization_code(registration: nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCodereset_authorization_code via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
registration (::String) — Required. The name of the
Registrationwhose authorization code is being reset, in the formatprojects/*/locations/*/registrations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Domains::V1beta1::AuthorizationCode)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest.new # Call the reset_authorization_code method. result = client.reset_authorization_code request # The returned object is of type Google::Cloud::Domains::V1beta1::AuthorizationCode. p result
#retrieve_authorization_code
def retrieve_authorization_code(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCode
def retrieve_authorization_code(registration: nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCodeGets the authorization code of the Registration for the purpose of
transferring the domain to another registrar.
You can call this method only after 60 days have elapsed since the initial domain registration.
def retrieve_authorization_code(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCoderetrieve_authorization_code via a request object, either of type
RetrieveAuthorizationCodeRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def retrieve_authorization_code(registration: nil) -> ::Google::Cloud::Domains::V1beta1::AuthorizationCoderetrieve_authorization_code via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
registration (::String) — Required. The name of the
Registrationwhose authorization code is being retrieved, in the formatprojects/*/locations/*/registrations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Domains::V1beta1::AuthorizationCode)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest.new # Call the retrieve_authorization_code method. result = client.retrieve_authorization_code request # The returned object is of type Google::Cloud::Domains::V1beta1::AuthorizationCode. p result
#retrieve_register_parameters
def retrieve_register_parameters(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponse
def retrieve_register_parameters(domain_name: nil, location: nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponseGets parameters needed to register a new domain name, including price and
up-to-date availability. Use the returned values to call RegisterDomain.
def retrieve_register_parameters(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponseretrieve_register_parameters via a request object, either of type
RetrieveRegisterParametersRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def retrieve_register_parameters(domain_name: nil, location: nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponseretrieve_register_parameters via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- domain_name (::String) — Required. The domain name. Unicode domain names must be expressed in Punycode format.
-
location (::String) — Required. The location. Must be in the format
projects/*/locations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersRequest.new # Call the retrieve_register_parameters method. result = client.retrieve_register_parameters request # The returned object is of type Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponse. p result
#retrieve_transfer_parameters
def retrieve_transfer_parameters(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponse
def retrieve_transfer_parameters(domain_name: nil, location: nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponseGets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported.
Use the returned values to call TransferDomain.
def retrieve_transfer_parameters(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponseretrieve_transfer_parameters via a request object, either of type
RetrieveTransferParametersRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::RetrieveTransferParametersRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def retrieve_transfer_parameters(domain_name: nil, location: nil) -> ::Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponseretrieve_transfer_parameters via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- domain_name (::String) — Required. The domain name. Unicode domain names must be expressed in Punycode format.
-
location (::String) — Required. The location. Must be in the format
projects/*/locations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::RetrieveTransferParametersRequest.new # Call the retrieve_transfer_parameters method. result = client.retrieve_transfer_parameters request # The returned object is of type Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponse. p result
#search_domains
def search_domains(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::SearchDomainsResponse
def search_domains(query: nil, location: nil) -> ::Google::Cloud::Domains::V1beta1::SearchDomainsResponseSearches for available domain names similar to the provided query.
Availability results from this method are approximate; call
RetrieveRegisterParameters on a domain before registering to confirm
availability.
def search_domains(request, options = nil) -> ::Google::Cloud::Domains::V1beta1::SearchDomainsResponsesearch_domains via a request object, either of type
SearchDomainsRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::SearchDomainsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def search_domains(query: nil, location: nil) -> ::Google::Cloud::Domains::V1beta1::SearchDomainsResponsesearch_domains via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- query (::String) — Required. String used to search for available domain names.
-
location (::String) — Required. The location. Must be in the format
projects/*/locations/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Domains::V1beta1::SearchDomainsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::SearchDomainsRequest.new # Call the search_domains method. result = client.search_domains request # The returned object is of type Google::Cloud::Domains::V1beta1::SearchDomainsResponse. p result
#transfer_domain
def transfer_domain(request, options = nil) -> ::Gapic::Operation
def transfer_domain(parent: nil, registration: nil, contact_notices: nil, yearly_price: nil, authorization_code: nil, validate_only: nil) -> ::Gapic::OperationTransfers a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported.
Before calling this method, go to the domain's current registrar to unlock
the domain for transfer and retrieve the domain's transfer authorization
code. Then call RetrieveTransferParameters to confirm that the domain is
unlocked and to get values needed to build a call to this method.
A successful call creates a Registration resource in state
TRANSFER_PENDING. It can take several days to complete the transfer
process. The registrant can often speed up this process by approving the
transfer through the current registrar, either by clicking a link in an
email from the registrar or by visiting the registrar's website.
A few minutes after transfer approval, the resource transitions to state
ACTIVE, indicating that the transfer was successful. If the transfer is
rejected or the request expires without being approved, the resource can
end up in state TRANSFER_FAILED. If transfer fails, you can safely delete
the resource and retry the transfer.
def transfer_domain(request, options = nil) -> ::Gapic::Operationtransfer_domain via a request object, either of type
TransferDomainRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::TransferDomainRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def transfer_domain(parent: nil, registration: nil, contact_notices: nil, yearly_price: nil, authorization_code: nil, validate_only: nil) -> ::Gapic::Operationtransfer_domain via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent resource of the
Registration. Must be in the formatprojects/*/locations/*. -
registration (::Google::Cloud::Domains::V1beta1::Registration, ::Hash) — Required. The complete
Registrationresource to be created.You can leave
registration.dns_settingsunset to import the domain's current DNS configuration from its current registrar. Use this option only if you are sure that the domain's current DNS service does not cease upon transfer, as is often the case for DNS services provided for free by the registrar. -
contact_notices (::Array<::Google::Cloud::Domains::V1beta1::ContactNotice>) — The list of contact notices that you acknowledge. The notices
needed here depend on the values specified in
registration.contact_settings. -
yearly_price (::Google::Type::Money, ::Hash) — Required. Acknowledgement of the price to transfer or renew the domain for one year.
Call
RetrieveTransferParametersto obtain the price, which you must acknowledge. - authorization_code (::Google::Cloud::Domains::V1beta1::AuthorizationCode, ::Hash) — The domain's transfer authorization code. You can obtain this from the domain's current registrar.
- validate_only (::Boolean) — Validate the request without actually transferring the domain.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::TransferDomainRequest.new # Call the transfer_domain method. result = client.transfer_domain request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_registration
def update_registration(request, options = nil) -> ::Gapic::Operation
def update_registration(registration: nil, update_mask: nil) -> ::Gapic::OperationUpdates select fields of a Registration resource, notably labels. To
update other fields, use the appropriate custom update method:
- To update management settings, see
ConfigureManagementSettings - To update DNS configuration, see
ConfigureDnsSettings - To update contact information, see
ConfigureContactSettings
def update_registration(request, options = nil) -> ::Gapic::Operationupdate_registration via a request object, either of type
UpdateRegistrationRequest or an equivalent Hash.
- request (::Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_registration(registration: nil, update_mask: nil) -> ::Gapic::Operationupdate_registration via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
registration (::Google::Cloud::Domains::V1beta1::Registration, ::Hash) — Fields of the
Registrationto update. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The field mask describing which fields to update as a comma-separated list.
For example, if only the labels are being updated, the
update_maskis"labels".
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/domains/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Domains::V1beta1::Domains::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest.new # Call the update_registration method. result = client.update_registration request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end