Crates.io | godaddy_api |
lib.rs | godaddy_api |
version | 2.0.2 |
source | src |
created_at | 2024-01-15 17:07:40.941214 |
updated_at | 2024-01-18 01:53:04.704041 |
description | Rust API bindings - sgodaddy_api |
homepage | |
repository | |
max_upload_size | |
id | 1100507 |
size | 442,163 |
use godaddy_api::Client;
let client = Client::default().with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.cancel(CancelRequest {
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.cancel_privacy(CancelPrivacyRequest {
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.record_delete_type_name(RecordDeleteTypeNameRequest {
domain: "string".to_string(),
type_path: DeleteV1DomainsDomainRecordsTypeNameTypeEnum::A,
name: "string".to_string(),
});
Notes:
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.domains_forwards_delete(DomainsForwardsDeleteRequest {
customer_id: "string".to_string(),
fqdn: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.delete_v2_customers_customer_id_domains_domain_actions_type(DeleteV2CustomersCustomerIdDomainsDomainActionsTypeRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
type_path: DeleteV2CustomersCustomerIdDomainsDomainActionsTypeTypeEnum::AuthCodePurchase,
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.delete_v2_customers_customer_id_domains_domain_change_of_registrant(DeleteV2CustomersCustomerIdDomainsDomainChangeOfRegistrantRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.list(ListRequest {
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_agreement(GetAgreementRequest {
privacy: true,
tlds: vec!["string".to_string()],
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.available(AvailableRequest {
domain: "string".to_string(),
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.schema(SchemaRequest {
tld: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.suggest(SuggestRequest {
..Default::default()
});
use godaddy_api::Client;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client.tlds();
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get(GetRequest {
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.record_get(RecordGetRequest {
domain: "string".to_string(),
type_path: GetV1DomainsDomainRecordsTypeNameTypeEnum::A,
name: "string".to_string(),
..Default::default()
});
Notes:
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.domains_forwards_get(DomainsForwardsGetRequest {
customer_id: "string".to_string(),
fqdn: "string".to_string(),
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_notifications(GetV2CustomersCustomerIdDomainsNotificationsRequest {
customer_id: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_notifications_opt_in(GetV2CustomersCustomerIdDomainsNotificationsOptInRequest {
customer_id: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_notifications_schemas_type(GetV2CustomersCustomerIdDomainsNotificationsSchemasTypeRequest {
customer_id: "string".to_string(),
type_path: GetV2CustomersCustomerIdDomainsNotificationsSchemasTypeTypeEnum::AutoRenewal,
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_register_schema_tld(GetV2CustomersCustomerIdDomainsRegisterSchemaTldRequest {
customer_id: "string".to_string(),
tld: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_domain(GetV2CustomersCustomerIdDomainsDomainRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_domain_actions(GetV2CustomersCustomerIdDomainsDomainActionsRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_domain_actions_type(GetV2CustomersCustomerIdDomainsDomainActionsTypeRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
type_path: GetV2CustomersCustomerIdDomainsDomainActionsTypeTypeEnum::AuthCodePurchase,
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_domain_change_of_registrant(GetV2CustomersCustomerIdDomainsDomainChangeOfRegistrantRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_customers_customer_id_domains_domain_privacy_forwarding(GetV2CustomersCustomerIdDomainsDomainPrivacyForwardingRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_domains_maintenances(GetV2DomainsMaintenancesRequest {
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.get_v2_domains_maintenances_maintenance_id(GetV2DomainsMaintenancesMaintenanceIdRequest {
maintenance_id: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.update(UpdateRequest {
domain: "string".to_string(),
data: DomainUpdate {
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.update_contacts(UpdateContactsRequest {
domain: "string".to_string(),
data: DomainContacts {
contact_registrant: Contact {
address_mailing: Address {
address1: "string".to_string(),
city: "string".to_string(),
country: AddressCountryEnum::Ac,
postal_code: "string".to_string(),
state: "string".to_string(),
..Default::default()
},
email: "mail@example.com".to_string(),
name_first: "string".to_string(),
name_last: "string".to_string(),
phone: "string".to_string(),
..Default::default()
},
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.record_add(RecordAddRequest {
domain: "string".to_string(),
data: vec![
DnsRecord { data : "string".to_string(), name : "string".to_string(),
type_field : DnsRecordTypeEnum::A, ..Default::default() }
],
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.patch_v2_customers_customer_id_domains_domain_privacy_forwarding(PatchV2CustomersCustomerIdDomainsDomainPrivacyForwardingRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
data: DomainPrivacyForwardingUpdate {
email_preference: DomainPrivacyForwardingUpdateEmailPreferenceEnum::EmailFilter,
private_email_type: DomainPrivacyForwardingUpdatePrivateEmailTypeEnum::Default,
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.available_bulk(AvailableBulkRequest {
data: vec!["string".to_string()],
..Default::default()
});
All contacts specified in request will be validated against all domains specifed in "domains". As an alternative, you can also pass in tlds, with the exception of uk
, which requires full domain names
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.contacts_validate(ContactsValidateRequest {
data: DomainsContactsBulk {
domains: vec!["string".to_string()],
..Default::default()
},
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.purchase(PurchaseRequest {
data: DomainPurchase {
consent: Consent {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
agreement_keys: vec!["string".to_string()],
},
domain: "string".to_string(),
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.validate(ValidateRequest {
data: DomainPurchase {
consent: Consent {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
agreement_keys: vec!["string".to_string()],
},
domain: "string".to_string(),
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.purchase_privacy(PurchasePrivacyRequest {
domain: "string".to_string(),
data: PrivacyPurchase {
consent: Consent {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
agreement_keys: vec!["string".to_string()],
},
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.renew(RenewRequest {
domain: "string".to_string(),
data: DomainRenew {
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.transfer_in(TransferInRequest {
domain: "string".to_string(),
data: DomainTransferIn {
auth_code: "string".to_string(),
consent: Consent {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
agreement_keys: vec!["string".to_string()],
},
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.verify_email(VerifyEmailRequest {
domain: "string".to_string(),
});
Notes:
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.domains_forwards_post(DomainsForwardsPostRequest {
customer_id: "string".to_string(),
fqdn: "string".to_string(),
data: DomainForwardingCreate {
type_field: DomainForwardingCreateTypeEnum::Masked,
url: "http://www.example.com".to_string(),
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_notifications_notification_id_acknowledge(PostV2CustomersCustomerIdDomainsNotificationsNotificationIdAcknowledgeRequest {
customer_id: "string".to_string(),
notification_id: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_register(PostV2CustomersCustomerIdDomainsRegisterRequest {
customer_id: "string".to_string(),
data: DomainPurchaseV2 {
consent: ConsentV2 {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
agreement_keys: vec!["string".to_string()],
currency: "string".to_string(),
price: 123,
..Default::default()
},
domain: "string".to_string(),
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_register_validate(PostV2CustomersCustomerIdDomainsRegisterValidateRequest {
customer_id: "string".to_string(),
data: DomainPurchaseV2 {
consent: ConsentV2 {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
agreement_keys: vec!["string".to_string()],
currency: "string".to_string(),
price: 123,
..Default::default()
},
domain: "string".to_string(),
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_redeem(PostV2CustomersCustomerIdDomainsDomainRedeemRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
data: DomainRedeemV2 {
consent: ConsentRedemption {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
currency: "string".to_string(),
fee: 123,
price: 123,
},
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_renew(PostV2CustomersCustomerIdDomainsDomainRenewRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
data: DomainRenewV2 {
consent: ConsentRenew {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
currency: "string".to_string(),
price: 123,
..Default::default()
},
expires: "string".to_string(),
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer(PostV2CustomersCustomerIdDomainsDomainTransferRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
data: DomainTransferInV2 {
auth_code: "string".to_string(),
consent: ConsentV2 {
agreed_at: "string".to_string(),
agreed_by: "string".to_string(),
agreement_keys: vec!["string".to_string()],
currency: "string".to_string(),
price: 123,
..Default::default()
},
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer_in_accept(PostV2CustomersCustomerIdDomainsDomainTransferInAcceptRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
data: DomainTransferAuthCode {
auth_code: "string".to_string(),
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer_in_cancel(PostV2CustomersCustomerIdDomainsDomainTransferInCancelRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer_in_restart(PostV2CustomersCustomerIdDomainsDomainTransferInRestartRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer_in_retry(PostV2CustomersCustomerIdDomainsDomainTransferInRetryRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
data: DomainTransferAuthCode {
auth_code: "string".to_string(),
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer_out(PostV2CustomersCustomerIdDomainsDomainTransferOutRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
registrar: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer_out_accept(PostV2CustomersCustomerIdDomainsDomainTransferOutAcceptRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.post_v2_customers_customer_id_domains_domain_transfer_out_reject(PostV2CustomersCustomerIdDomainsDomainTransferOutRejectRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
..Default::default()
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.record_replace(RecordReplaceRequest {
domain: "string".to_string(),
data: vec![
DnsRecord { data : "string".to_string(), name : "string".to_string(),
type_field : DnsRecordTypeEnum::A, ..Default::default() }
],
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.record_replace_type(RecordReplaceTypeRequest {
domain: "string".to_string(),
type_path: PutV1DomainsDomainRecordsTypeTypeEnum::A,
data: vec![
DnsRecordCreateType { data : "string".to_string(), name : "string"
.to_string(), ..Default::default() }
],
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.record_replace_type_name(RecordReplaceTypeNameRequest {
domain: "string".to_string(),
type_path: PutV1DomainsDomainRecordsTypeNameTypeEnum::A,
name: "string".to_string(),
data: vec![
DnsRecordCreateTypeName { data : "string".to_string(),
..Default::default() }
],
});
Notes:
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.domains_forwards_put(DomainsForwardsPutRequest {
customer_id: "string".to_string(),
fqdn: "string".to_string(),
data: DomainForwardingCreate {
type_field: DomainForwardingCreateTypeEnum::Masked,
url: "http://www.example.com".to_string(),
..Default::default()
},
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.put_v2_customers_customer_id_domains_notifications_opt_in(PutV2CustomersCustomerIdDomainsNotificationsOptInRequest {
customer_id: "string".to_string(),
types: vec![
PutV2CustomersCustomerIdDomainsNotificationsOptInTypesItemEnum::AuthCodePurchase
],
});
use godaddy_api::Client;
use godaddy_api::request_types::*;
use godaddy_api::schemas::*;
let client = Client::default()
.with_api_key_auth(&std::env::var("API_KEY").expect("API key not defined"));
let response = client
.put_v2_customers_customer_id_domains_domain_name_servers(PutV2CustomersCustomerIdDomainsDomainNameServersRequest {
customer_id: "string".to_string(),
domain: "string".to_string(),
data: DomainNameServerUpdateV2 {
..Default::default()
},
});