Class DomainsClientImpl (2.0.0)

public sealed class DomainsClientImpl : DomainsClient

Domains client wrapper implementation, for convenient use.

Inheritance

Object > DomainsClient > DomainsClientImpl

Namespace

Google.Cloud.Domains.V1

Assembly

Google.Cloud.Domains.V1.dll

Remarks

The Cloud Domains API enables management and configuration of domain names.

Constructors

DomainsClientImpl(Domains.DomainsClient, DomainsSettings, ILogger)

public DomainsClientImpl(Domains.DomainsClient grpcClient, DomainsSettings settings, ILogger logger)

Constructs a client wrapper for the Domains service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientDomains.DomainsClient

The underlying gRPC client.

settingsDomainsSettings

The base DomainsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

ConfigureContactSettingsOperationsClient

public override OperationsClient ConfigureContactSettingsOperationsClient { get; }

The long-running operations client for ConfigureContactSettings.

Property Value
TypeDescription
OperationsClient
Overrides

ConfigureDnsSettingsOperationsClient

public override OperationsClient ConfigureDnsSettingsOperationsClient { get; }

The long-running operations client for ConfigureDnsSettings.

Property Value
TypeDescription
OperationsClient
Overrides

ConfigureManagementSettingsOperationsClient

public override OperationsClient ConfigureManagementSettingsOperationsClient { get; }

The long-running operations client for ConfigureManagementSettings.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteRegistrationOperationsClient

public override OperationsClient DeleteRegistrationOperationsClient { get; }

The long-running operations client for DeleteRegistration.

Property Value
TypeDescription
OperationsClient
Overrides

ExportRegistrationOperationsClient

public override OperationsClient ExportRegistrationOperationsClient { get; }

The long-running operations client for ExportRegistration.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Domains.DomainsClient GrpcClient { get; }

The underlying gRPC Domains client

Property Value
TypeDescription
Domains.DomainsClient
Overrides

RegisterDomainOperationsClient

public override OperationsClient RegisterDomainOperationsClient { get; }

The long-running operations client for RegisterDomain.

Property Value
TypeDescription
OperationsClient
Overrides

TransferDomainOperationsClient

public override OperationsClient TransferDomainOperationsClient { get; }

The long-running operations client for TransferDomain.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateRegistrationOperationsClient

public override OperationsClient UpdateRegistrationOperationsClient { get; }

The long-running operations client for UpdateRegistration.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

ConfigureContactSettings(ConfigureContactSettingsRequest, CallSettings)

public override Operation<Registration, OperationMetadata> ConfigureContactSettings(ConfigureContactSettingsRequest request, CallSettings callSettings = null)

Updates a Registration's contact settings. Some changes require confirmation by the domain's registrant contact .

Parameters
NameDescription
requestConfigureContactSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Registration, OperationMetadata>

The RPC response.

Overrides

ConfigureContactSettingsAsync(ConfigureContactSettingsRequest, CallSettings)

public override async Task<Operation<Registration, OperationMetadata>> ConfigureContactSettingsAsync(ConfigureContactSettingsRequest request, CallSettings callSettings = null)

Updates a Registration's contact settings. Some changes require confirmation by the domain's registrant contact .

Parameters
NameDescription
requestConfigureContactSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Registration, OperationMetadata>>

A Task containing the RPC response.

Overrides

ConfigureDnsSettings(ConfigureDnsSettingsRequest, CallSettings)

public override Operation<Registration, OperationMetadata> ConfigureDnsSettings(ConfigureDnsSettingsRequest request, CallSettings callSettings = null)

Updates a Registration's DNS settings.

Parameters
NameDescription
requestConfigureDnsSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Registration, OperationMetadata>

The RPC response.

Overrides

ConfigureDnsSettingsAsync(ConfigureDnsSettingsRequest, CallSettings)

public override async Task<Operation<Registration, OperationMetadata>> ConfigureDnsSettingsAsync(ConfigureDnsSettingsRequest request, CallSettings callSettings = null)

Updates a Registration's DNS settings.

Parameters
NameDescription
requestConfigureDnsSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Registration, OperationMetadata>>

A Task containing the RPC response.

Overrides

ConfigureManagementSettings(ConfigureManagementSettingsRequest, CallSettings)

public override Operation<Registration, OperationMetadata> ConfigureManagementSettings(ConfigureManagementSettingsRequest request, CallSettings callSettings = null)

Updates a Registration's management settings.

Parameters
NameDescription
requestConfigureManagementSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Registration, OperationMetadata>

The RPC response.

Overrides

ConfigureManagementSettingsAsync(ConfigureManagementSettingsRequest, CallSettings)

public override async Task<Operation<Registration, OperationMetadata>> ConfigureManagementSettingsAsync(ConfigureManagementSettingsRequest request, CallSettings callSettings = null)

Updates a Registration's management settings.

Parameters
NameDescription
requestConfigureManagementSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Registration, OperationMetadata>>

A Task containing the RPC response.

Overrides

DeleteRegistration(DeleteRegistrationRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteRegistration(DeleteRegistrationRequest request, CallSettings callSettings = null)

Deletes 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:

  • state is EXPORTED with expire_time in the past
  • state is REGISTRATION_FAILED
  • state is TRANSFER_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.

Parameters
NameDescription
requestDeleteRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, OperationMetadata>

The RPC response.

Overrides

DeleteRegistrationAsync(DeleteRegistrationRequest, CallSettings)

public override async Task<Operation<Empty, OperationMetadata>> DeleteRegistrationAsync(DeleteRegistrationRequest request, CallSettings callSettings = null)

Deletes 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:

  • state is EXPORTED with expire_time in the past
  • state is REGISTRATION_FAILED
  • state is TRANSFER_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.

Parameters
NameDescription
requestDeleteRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Overrides

ExportRegistration(ExportRegistrationRequest, CallSettings)

public override Operation<Registration, OperationMetadata> ExportRegistration(ExportRegistrationRequest request, CallSettings callSettings = null)

Exports 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.

Parameters
NameDescription
requestExportRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Registration, OperationMetadata>

The RPC response.

Overrides

ExportRegistrationAsync(ExportRegistrationRequest, CallSettings)

public override async Task<Operation<Registration, OperationMetadata>> ExportRegistrationAsync(ExportRegistrationRequest request, CallSettings callSettings = null)

Exports 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.

Parameters
NameDescription
requestExportRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Registration, OperationMetadata>>

A Task containing the RPC response.

Overrides

GetRegistration(GetRegistrationRequest, CallSettings)

public override Registration GetRegistration(GetRegistrationRequest request, CallSettings callSettings = null)

Gets the details of a Registration resource.

Parameters
NameDescription
requestGetRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Registration

The RPC response.

Overrides

GetRegistrationAsync(GetRegistrationRequest, CallSettings)

public override Task<Registration> GetRegistrationAsync(GetRegistrationRequest request, CallSettings callSettings = null)

Gets the details of a Registration resource.

Parameters
NameDescription
requestGetRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Registration>

A Task containing the RPC response.

Overrides

ListRegistrations(ListRegistrationsRequest, CallSettings)

public override PagedEnumerable<ListRegistrationsResponse, Registration> ListRegistrations(ListRegistrationsRequest request, CallSettings callSettings = null)

Lists the Registration resources in a project.

Parameters
NameDescription
requestListRegistrationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListRegistrationsResponse, Registration>

A pageable sequence of Registration resources.

Overrides

ListRegistrationsAsync(ListRegistrationsRequest, CallSettings)

public override PagedAsyncEnumerable<ListRegistrationsResponse, Registration> ListRegistrationsAsync(ListRegistrationsRequest request, CallSettings callSettings = null)

Lists the Registration resources in a project.

Parameters
NameDescription
requestListRegistrationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListRegistrationsResponse, Registration>

A pageable asynchronous sequence of Registration resources.

Overrides

RegisterDomain(RegisterDomainRequest, CallSettings)

public override Operation<Registration, OperationMetadata> RegisterDomain(RegisterDomainRequest request, CallSettings callSettings = null)

Registers 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.

Parameters
NameDescription
requestRegisterDomainRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Registration, OperationMetadata>

The RPC response.

Overrides

RegisterDomainAsync(RegisterDomainRequest, CallSettings)

public override async Task<Operation<Registration, OperationMetadata>> RegisterDomainAsync(RegisterDomainRequest request, CallSettings callSettings = null)

Registers 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.

Parameters
NameDescription
requestRegisterDomainRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Registration, OperationMetadata>>

A Task containing the RPC response.

Overrides

ResetAuthorizationCode(ResetAuthorizationCodeRequest, CallSettings)

public override AuthorizationCode ResetAuthorizationCode(ResetAuthorizationCodeRequest request, CallSettings callSettings = null)

Resets 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.

Parameters
NameDescription
requestResetAuthorizationCodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AuthorizationCode

The RPC response.

Overrides

ResetAuthorizationCodeAsync(ResetAuthorizationCodeRequest, CallSettings)

public override Task<AuthorizationCode> ResetAuthorizationCodeAsync(ResetAuthorizationCodeRequest request, CallSettings callSettings = null)

Resets 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.

Parameters
NameDescription
requestResetAuthorizationCodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AuthorizationCode>

A Task containing the RPC response.

Overrides

RetrieveAuthorizationCode(RetrieveAuthorizationCodeRequest, CallSettings)

public override AuthorizationCode RetrieveAuthorizationCode(RetrieveAuthorizationCodeRequest request, CallSettings callSettings = null)

Gets 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.

Parameters
NameDescription
requestRetrieveAuthorizationCodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AuthorizationCode

The RPC response.

Overrides

RetrieveAuthorizationCodeAsync(RetrieveAuthorizationCodeRequest, CallSettings)

public override Task<AuthorizationCode> RetrieveAuthorizationCodeAsync(RetrieveAuthorizationCodeRequest request, CallSettings callSettings = null)

Gets 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.

Parameters
NameDescription
requestRetrieveAuthorizationCodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AuthorizationCode>

A Task containing the RPC response.

Overrides

RetrieveRegisterParameters(RetrieveRegisterParametersRequest, CallSettings)

public override RetrieveRegisterParametersResponse RetrieveRegisterParameters(RetrieveRegisterParametersRequest request, CallSettings callSettings = null)

Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call RegisterDomain.

Parameters
NameDescription
requestRetrieveRegisterParametersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RetrieveRegisterParametersResponse

The RPC response.

Overrides

RetrieveRegisterParametersAsync(RetrieveRegisterParametersRequest, CallSettings)

public override Task<RetrieveRegisterParametersResponse> RetrieveRegisterParametersAsync(RetrieveRegisterParametersRequest request, CallSettings callSettings = null)

Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call RegisterDomain.

Parameters
NameDescription
requestRetrieveRegisterParametersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<RetrieveRegisterParametersResponse>

A Task containing the RPC response.

Overrides

RetrieveTransferParameters(RetrieveTransferParametersRequest, CallSettings)

public override RetrieveTransferParametersResponse RetrieveTransferParameters(RetrieveTransferParametersRequest request, CallSettings callSettings = null)

Gets 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.

Parameters
NameDescription
requestRetrieveTransferParametersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RetrieveTransferParametersResponse

The RPC response.

Overrides

RetrieveTransferParametersAsync(RetrieveTransferParametersRequest, CallSettings)

public override Task<RetrieveTransferParametersResponse> RetrieveTransferParametersAsync(RetrieveTransferParametersRequest request, CallSettings callSettings = null)

Gets 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.

Parameters
NameDescription
requestRetrieveTransferParametersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<RetrieveTransferParametersResponse>

A Task containing the RPC response.

Overrides

SearchDomains(SearchDomainsRequest, CallSettings)

public override SearchDomainsResponse SearchDomains(SearchDomainsRequest request, CallSettings callSettings = null)

Searches 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.

Parameters
NameDescription
requestSearchDomainsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SearchDomainsResponse

The RPC response.

Overrides

SearchDomainsAsync(SearchDomainsRequest, CallSettings)

public override Task<SearchDomainsResponse> SearchDomainsAsync(SearchDomainsRequest request, CallSettings callSettings = null)

Searches 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.

Parameters
NameDescription
requestSearchDomainsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SearchDomainsResponse>

A Task containing the RPC response.

Overrides

TransferDomain(TransferDomainRequest, CallSettings)

public override Operation<Registration, OperationMetadata> TransferDomain(TransferDomainRequest request, CallSettings callSettings = null)

Transfers 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.

Parameters
NameDescription
requestTransferDomainRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Registration, OperationMetadata>

The RPC response.

Overrides

TransferDomainAsync(TransferDomainRequest, CallSettings)

public override async Task<Operation<Registration, OperationMetadata>> TransferDomainAsync(TransferDomainRequest request, CallSettings callSettings = null)

Transfers 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.

Parameters
NameDescription
requestTransferDomainRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Registration, OperationMetadata>>

A Task containing the RPC response.

Overrides

UpdateRegistration(UpdateRegistrationRequest, CallSettings)

public override Operation<Registration, OperationMetadata> UpdateRegistration(UpdateRegistrationRequest request, CallSettings callSettings = null)

Updates 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
Parameters
NameDescription
requestUpdateRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Registration, OperationMetadata>

The RPC response.

Overrides

UpdateRegistrationAsync(UpdateRegistrationRequest, CallSettings)

public override async Task<Operation<Registration, OperationMetadata>> UpdateRegistrationAsync(UpdateRegistrationRequest request, CallSettings callSettings = null)

Updates 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
Parameters
NameDescription
requestUpdateRegistrationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Registration, OperationMetadata>>

A Task containing the RPC response.

Overrides