pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the CloudDomains hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_domains1 as domains1;
use domains1::{CloudDomains, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = CloudDomains::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_get(...)`, `locations_list(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_registrations_configure_contact_settings(...)`, `locations_registrations_configure_dns_settings(...)`, `locations_registrations_configure_management_settings(...)`, `locations_registrations_delete(...)`, `locations_registrations_export(...)`, `locations_registrations_get(...)`, `locations_registrations_get_iam_policy(...)`, `locations_registrations_import(...)`, `locations_registrations_initiate_push_transfer(...)`, `locations_registrations_list(...)`, `locations_registrations_patch(...)`, `locations_registrations_register(...)`, `locations_registrations_renew_domain(...)`, `locations_registrations_reset_authorization_code(...)`, `locations_registrations_retrieve_authorization_code(...)`, `locations_registrations_retrieve_google_domains_dns_records(...)`, `locations_registrations_retrieve_google_domains_forwarding_config(...)`, `locations_registrations_retrieve_importable_domains(...)`, `locations_registrations_retrieve_register_parameters(...)`, `locations_registrations_retrieve_transfer_parameters(...)`, `locations_registrations_search_domains(...)`, `locations_registrations_set_iam_policy(...)`, `locations_registrations_test_iam_permissions(...)` and `locations_registrations_transfer(...)`
// to build up your call.
let rb = hub.projects();Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn locations_operations_get(
&self,
name: &str,
) -> ProjectLocationOperationGetCall<'a, C>
pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
§Arguments
name- The name of the operation resource.
Sourcepub fn locations_operations_list(
&self,
name: &str,
) -> ProjectLocationOperationListCall<'a, C>
pub fn locations_operations_list( &self, name: &str, ) -> ProjectLocationOperationListCall<'a, C>
Create a builder to help you perform the following task:
Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED.
§Arguments
name- The name of the operation’s parent resource.
Sourcepub fn locations_registrations_configure_contact_settings(
&self,
request: ConfigureContactSettingsRequest,
registration: &str,
) -> ProjectLocationRegistrationConfigureContactSettingCall<'a, C>
pub fn locations_registrations_configure_contact_settings( &self, request: ConfigureContactSettingsRequest, registration: &str, ) -> ProjectLocationRegistrationConfigureContactSettingCall<'a, C>
Create a builder to help you perform the following task:
Updates a Registration’s contact settings. Some changes require confirmation by the domain’s registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from REDACTED_CONTACT_DATA to PUBLIC_CONTACT_DATA. There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from REDACTED_CONTACT_DATA to PUBLIC_CONTACT_DATA) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from REDACTED_CONTACT_DATA to PUBLIC_CONTACT_DATA may make the previous registrant contact data public until the modified registrant contact details are published.
§Arguments
request- No description provided.registration- Required. The name of theRegistrationwhose contact settings are being updated, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_configure_dns_settings(
&self,
request: ConfigureDnsSettingsRequest,
registration: &str,
) -> ProjectLocationRegistrationConfigureDnsSettingCall<'a, C>
pub fn locations_registrations_configure_dns_settings( &self, request: ConfigureDnsSettingsRequest, registration: &str, ) -> ProjectLocationRegistrationConfigureDnsSettingCall<'a, C>
Create a builder to help you perform the following task:
Updates a Registration’s DNS settings.
§Arguments
request- No description provided.registration- Required. The name of theRegistrationwhose DNS settings are being updated, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_configure_management_settings(
&self,
request: ConfigureManagementSettingsRequest,
registration: &str,
) -> ProjectLocationRegistrationConfigureManagementSettingCall<'a, C>
pub fn locations_registrations_configure_management_settings( &self, request: ConfigureManagementSettingsRequest, registration: &str, ) -> ProjectLocationRegistrationConfigureManagementSettingCall<'a, C>
Create a builder to help you perform the following task:
Updates a Registration’s management settings.
§Arguments
request- No description provided.registration- Required. The name of theRegistrationwhose management settings are being updated, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_delete(
&self,
name: &str,
) -> ProjectLocationRegistrationDeleteCall<'a, C>
pub fn locations_registrations_delete( &self, name: &str, ) -> ProjectLocationRegistrationDeleteCall<'a, C>
Create a builder to help you perform the following task:
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. 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. After January 2024 you will only be able to delete Registration resources when state is one of: EXPORTED, EXPIRED,REGISTRATION_FAILED or TRANSFER_FAILED. See Cloud Domains feature deprecation for more details.
§Arguments
name- Required. The name of theRegistrationto delete, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_export(
&self,
request: ExportRegistrationRequest,
name: &str,
) -> ProjectLocationRegistrationExportCall<'a, C>
pub fn locations_registrations_export( &self, request: ExportRegistrationRequest, name: &str, ) -> ProjectLocationRegistrationExportCall<'a, C>
Create a builder to help you perform the following task:
Deprecated: For more information, see Cloud Domains feature deprecation 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.
§Arguments
request- No description provided.name- Required. The name of theRegistrationto export, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_get(
&self,
name: &str,
) -> ProjectLocationRegistrationGetCall<'a, C>
pub fn locations_registrations_get( &self, name: &str, ) -> ProjectLocationRegistrationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the details of a Registration resource.
§Arguments
name- Required. The name of theRegistrationto get, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationRegistrationGetIamPolicyCall<'a, C>
pub fn locations_registrations_get_iam_policy( &self, resource: &str, ) -> ProjectLocationRegistrationGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_registrations_import(
&self,
request: ImportDomainRequest,
parent: &str,
) -> ProjectLocationRegistrationImportCall<'a, C>
pub fn locations_registrations_import( &self, request: ImportDomainRequest, parent: &str, ) -> ProjectLocationRegistrationImportCall<'a, C>
Create a builder to help you perform the following task:
Deprecated: For more information, see Cloud Domains feature deprecation Imports a domain name from Google Domains for use in Cloud Domains. To transfer a domain from another registrar, use the TransferDomain method instead. Since individual users can own domains in Google Domains, the calling user must have ownership permission on the domain.
§Arguments
request- No description provided.parent- Required. The parent resource of the Registration. Must be in the formatprojects/*/locations/*.
Sourcepub fn locations_registrations_initiate_push_transfer(
&self,
request: InitiatePushTransferRequest,
registration: &str,
) -> ProjectLocationRegistrationInitiatePushTransferCall<'a, C>
pub fn locations_registrations_initiate_push_transfer( &self, request: InitiatePushTransferRequest, registration: &str, ) -> ProjectLocationRegistrationInitiatePushTransferCall<'a, C>
Create a builder to help you perform the following task:
Initiates the Push Transfer process to transfer the domain to another registrar. The process might complete instantly or might require confirmation or additional work. Check the emails sent to the email address of the registrant. The process is aborted after a timeout if it’s not completed. This method is only supported for domains that have the REQUIRE_PUSH_TRANSFER property in the list of domain_properties. The domain must also be unlocked before it can be transferred to a different registrar. For more information, see Transfer a registered domain to another registrar.
§Arguments
request- No description provided.registration- Required. The name of theRegistrationfor which the push transfer is initiated, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_list(
&self,
parent: &str,
) -> ProjectLocationRegistrationListCall<'a, C>
pub fn locations_registrations_list( &self, parent: &str, ) -> ProjectLocationRegistrationListCall<'a, C>
Create a builder to help you perform the following task:
Lists the Registration resources in a project.
§Arguments
parent- Required. The project and location from which to listRegistrations, specified in the formatprojects/*/locations/*.
Sourcepub fn locations_registrations_patch(
&self,
request: Registration,
name: &str,
) -> ProjectLocationRegistrationPatchCall<'a, C>
pub fn locations_registrations_patch( &self, request: Registration, name: &str, ) -> ProjectLocationRegistrationPatchCall<'a, C>
Create a builder to help you perform the following task:
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
§Arguments
request- No description provided.name- Output only. Name of theRegistrationresource, in the formatprojects/*/locations/*/registrations/.
Sourcepub fn locations_registrations_register(
&self,
request: RegisterDomainRequest,
parent: &str,
) -> ProjectLocationRegistrationRegisterCall<'a, C>
pub fn locations_registrations_register( &self, request: RegisterDomainRequest, parent: &str, ) -> ProjectLocationRegistrationRegisterCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.parent- Required. The parent resource of theRegistration. Must be in the formatprojects/*/locations/*.
Sourcepub fn locations_registrations_renew_domain(
&self,
request: RenewDomainRequest,
registration: &str,
) -> ProjectLocationRegistrationRenewDomainCall<'a, C>
pub fn locations_registrations_renew_domain( &self, request: RenewDomainRequest, registration: &str, ) -> ProjectLocationRegistrationRenewDomainCall<'a, C>
Create a builder to help you perform the following task:
Renews a recently expired domain. This method can only be called on domains that expired in the previous 30 days. After the renewal, the new expiration time of the domain is one year after the old expiration time and you are charged a yearly_price for the renewal.
§Arguments
request- No description provided.registration- Required. The name of theRegistrationwhish is being renewed, in the formatprojects/*/locations/*/registrations/*.
Create a builder to help you perform the following task:
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. Domains that have the REQUIRE_PUSH_TRANSFER property in the list of domain_properties don’t support authorization codes and must use the InitiatePushTransfer method to initiate the process to transfer the domain to a different registrar.
§Arguments
request- No description provided.registration- Required. The name of theRegistrationwhose authorization code is being reset, in the formatprojects/*/locations/*/registrations/*.
Create a builder to help you perform the following task:
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. Domains that have the REQUIRE_PUSH_TRANSFER property in the list of domain_properties don’t support authorization codes and must use the InitiatePushTransfer method to initiate the process to transfer the domain to a different registrar.
§Arguments
registration- Required. The name of theRegistrationwhose authorization code is being retrieved, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_retrieve_google_domains_dns_records(
&self,
registration: &str,
) -> ProjectLocationRegistrationRetrieveGoogleDomainsDnsRecordCall<'a, C>
pub fn locations_registrations_retrieve_google_domains_dns_records( &self, registration: &str, ) -> ProjectLocationRegistrationRetrieveGoogleDomainsDnsRecordCall<'a, C>
Create a builder to help you perform the following task:
Lists the DNS records from the Google Domains DNS zone for domains that use the deprecated google_domains_dns in the Registration’s dns_settings.
§Arguments
registration- Required. The name of theRegistrationwhose Google Domains DNS records details you are retrieving, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_retrieve_google_domains_forwarding_config(
&self,
registration: &str,
) -> ProjectLocationRegistrationRetrieveGoogleDomainsForwardingConfigCall<'a, C>
pub fn locations_registrations_retrieve_google_domains_forwarding_config( &self, registration: &str, ) -> ProjectLocationRegistrationRetrieveGoogleDomainsForwardingConfigCall<'a, C>
Create a builder to help you perform the following task:
Lists the deprecated domain and email forwarding configurations you set up in the deprecated Google Domains UI. The configuration is present only for domains with the google_domains_redirects_data_available set to true in the Registration’s dns_settings. A forwarding configuration might not work correctly if required DNS records are not present in the domain’s authoritative DNS Zone.
§Arguments
registration- Required. The name of theRegistrationwhose Google Domains forwarding configuration details are being retrieved, in the formatprojects/*/locations/*/registrations/*.
Sourcepub fn locations_registrations_retrieve_importable_domains(
&self,
location: &str,
) -> ProjectLocationRegistrationRetrieveImportableDomainCall<'a, C>
pub fn locations_registrations_retrieve_importable_domains( &self, location: &str, ) -> ProjectLocationRegistrationRetrieveImportableDomainCall<'a, C>
Create a builder to help you perform the following task:
Deprecated: For more information, see Cloud Domains feature deprecation Lists domain names from Google Domains that can be imported to Cloud Domains using the ImportDomain method. Since individual users can own domains in Google Domains, the list of domains returned depends on the individual user making the call. Domains already managed by Cloud Domains are not returned.
§Arguments
location- Required. The location. Must be in the formatprojects/*/locations/*.
Sourcepub fn locations_registrations_retrieve_register_parameters(
&self,
location: &str,
) -> ProjectLocationRegistrationRetrieveRegisterParameterCall<'a, C>
pub fn locations_registrations_retrieve_register_parameters( &self, location: &str, ) -> ProjectLocationRegistrationRetrieveRegisterParameterCall<'a, C>
Create a builder to help you perform the following task:
Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call RegisterDomain.
§Arguments
location- Required. The location. Must be in the formatprojects/*/locations/*.
Sourcepub fn locations_registrations_retrieve_transfer_parameters(
&self,
location: &str,
) -> ProjectLocationRegistrationRetrieveTransferParameterCall<'a, C>
pub fn locations_registrations_retrieve_transfer_parameters( &self, location: &str, ) -> ProjectLocationRegistrationRetrieveTransferParameterCall<'a, C>
Create a builder to help you perform the following task:
Deprecated: For more information, see Cloud Domains feature deprecation Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains already managed by Google Domains, use ImportDomain instead. Use the returned values to call TransferDomain.
§Arguments
location- Required. The location. Must be in the formatprojects/*/locations/*.
Sourcepub fn locations_registrations_search_domains(
&self,
location: &str,
) -> ProjectLocationRegistrationSearchDomainCall<'a, C>
pub fn locations_registrations_search_domains( &self, location: &str, ) -> ProjectLocationRegistrationSearchDomainCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
location- Required. The location. Must be in the formatprojects/*/locations/*.
Sourcepub fn locations_registrations_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationRegistrationSetIamPolicyCall<'a, C>
pub fn locations_registrations_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationRegistrationSetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
§Arguments
request- No description provided.resource- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_registrations_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationRegistrationTestIamPermissionCall<'a, C>
pub fn locations_registrations_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationRegistrationTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
§Arguments
request- No description provided.resource- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_registrations_transfer(
&self,
request: TransferDomainRequest,
parent: &str,
) -> ProjectLocationRegistrationTransferCall<'a, C>
pub fn locations_registrations_transfer( &self, request: TransferDomainRequest, parent: &str, ) -> ProjectLocationRegistrationTransferCall<'a, C>
Create a builder to help you perform the following task:
Deprecated: For more information, see Cloud Domains feature deprecation Transfers a domain name from another registrar to Cloud Domains. For domains already managed by Google Domains, use ImportDomain instead. 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.
§Arguments
request- No description provided.parent- Required. The parent resource of theRegistration. Must be in the formatprojects/*/locations/*.
Sourcepub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets information about a location.
§Arguments
name- Resource name for the location.
Sourcepub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
Create a builder to help you perform the following task:
Lists information about the supported locations for this service.
§Arguments
name- The resource that owns the locations collection, if applicable.