Documentation
¶
Overview ¶
Package domain provides methods and message types of the domain v2beta1 API.
Index ¶
- Constants
- type API
- func (s *API) ClearDNSZoneRecords(req *ClearDNSZoneRecordsRequest, opts ...scw.RequestOption) (*ClearDNSZoneRecordsResponse, error)
- func (s *API) CloneDNSZone(req *CloneDNSZoneRequest, opts ...scw.RequestOption) (*DNSZone, error)
- func (s *API) CreateDNSZone(req *CreateDNSZoneRequest, opts ...scw.RequestOption) (*DNSZone, error)
- func (s *API) CreateSSLCertificate(req *CreateSSLCertificateRequest, opts ...scw.RequestOption) (*SSLCertificate, error)
- func (s *API) DeleteDNSZone(req *DeleteDNSZoneRequest, opts ...scw.RequestOption) (*DeleteDNSZoneResponse, error)
- func (s *API) DeleteDNSZoneTsigKey(req *DeleteDNSZoneTsigKeyRequest, opts ...scw.RequestOption) error
- func (s *API) DeleteSSLCertificate(req *DeleteSSLCertificateRequest, opts ...scw.RequestOption) (*DeleteSSLCertificateResponse, error)
- func (s *API) ExportRawDNSZone(req *ExportRawDNSZoneRequest, opts ...scw.RequestOption) (*scw.File, error)
- func (s *API) GetDNSZoneTsigKey(req *GetDNSZoneTsigKeyRequest, opts ...scw.RequestOption) (*GetDNSZoneTsigKeyResponse, error)
- func (s *API) GetDNSZoneVersionDiff(req *GetDNSZoneVersionDiffRequest, opts ...scw.RequestOption) (*GetDNSZoneVersionDiffResponse, error)
- func (s *API) GetSSLCertificate(req *GetSSLCertificateRequest, opts ...scw.RequestOption) (*SSLCertificate, error)
- func (s *API) ImportProviderDNSZone(req *ImportProviderDNSZoneRequest, opts ...scw.RequestOption) (*ImportProviderDNSZoneResponse, error)
- func (s *API) ImportRawDNSZone(req *ImportRawDNSZoneRequest, opts ...scw.RequestOption) (*ImportRawDNSZoneResponse, error)
- func (s *API) ListDNSZoneNameservers(req *ListDNSZoneNameserversRequest, opts ...scw.RequestOption) (*ListDNSZoneNameserversResponse, error)
- func (s *API) ListDNSZoneRecords(req *ListDNSZoneRecordsRequest, opts ...scw.RequestOption) (*ListDNSZoneRecordsResponse, error)
- func (s *API) ListDNSZoneVersionRecords(req *ListDNSZoneVersionRecordsRequest, opts ...scw.RequestOption) (*ListDNSZoneVersionRecordsResponse, error)
- func (s *API) ListDNSZoneVersions(req *ListDNSZoneVersionsRequest, opts ...scw.RequestOption) (*ListDNSZoneVersionsResponse, error)
- func (s *API) ListDNSZones(req *ListDNSZonesRequest, opts ...scw.RequestOption) (*ListDNSZonesResponse, error)
- func (s *API) ListSSLCertificates(req *ListSSLCertificatesRequest, opts ...scw.RequestOption) (*ListSSLCertificatesResponse, error)
- func (s *API) RefreshDNSZone(req *RefreshDNSZoneRequest, opts ...scw.RequestOption) (*RefreshDNSZoneResponse, error)
- func (s *API) RestoreDNSZoneVersion(req *RestoreDNSZoneVersionRequest, opts ...scw.RequestOption) (*RestoreDNSZoneVersionResponse, error)
- func (s *API) UpdateDNSZone(req *UpdateDNSZoneRequest, opts ...scw.RequestOption) (*DNSZone, error)
- func (s *API) UpdateDNSZoneNameservers(req *UpdateDNSZoneNameserversRequest, opts ...scw.RequestOption) (*UpdateDNSZoneNameserversResponse, error)
- func (s *API) UpdateDNSZoneRecords(req *UpdateDNSZoneRecordsRequest, opts ...scw.RequestOption) (*UpdateDNSZoneRecordsResponse, error)
- func (s *API) WaitForDNSZone(req *WaitForDNSZoneRequest, opts ...scw.RequestOption) (*DNSZone, error)
- type AvailableDomain
- type CheckContactsCompatibilityResponse
- type CheckContactsCompatibilityResponseContactCheckResult
- type ClearDNSZoneRecordsRequest
- type ClearDNSZoneRecordsResponse
- type CloneDNSZoneRequest
- type Contact
- type ContactEmailStatus
- type ContactExtensionEU
- type ContactExtensionFR
- type ContactExtensionFRAssociationInfo
- type ContactExtensionFRCodeAuthAfnicInfo
- type ContactExtensionFRDunsInfo
- type ContactExtensionFRIndividualInfo
- type ContactExtensionFRMode
- type ContactExtensionFRTrademarkInfo
- type ContactExtensionNL
- type ContactExtensionNLLegalForm
- type ContactLegalForm
- type ContactQuestion
- type ContactRoles
- type ContactRolesRoles
- type CreateDNSZoneRequest
- type CreateSSLCertificateRequest
- type DNSZone
- type DNSZoneStatus
- type DNSZoneVersion
- type DSRecord
- type DSRecordAlgorithm
- type DSRecordDigest
- type DSRecordDigestType
- type DSRecordPublicKey
- type DeleteDNSZoneRequest
- type DeleteDNSZoneResponse
- type DeleteDNSZoneTsigKeyRequest
- type DeleteExternalDomainResponse
- type DeleteSSLCertificateRequest
- type DeleteSSLCertificateResponse
- type Domain
- type DomainDNSSEC
- type DomainFeatureStatus
- type DomainRegistrationStatusExternalDomain
- type DomainRegistrationStatusTransfer
- type DomainRegistrationStatusTransferStatus
- type DomainStatus
- type DomainSummary
- type ExportRawDNSZoneRequest
- type GetDNSZoneTsigKeyRequest
- type GetDNSZoneTsigKeyResponse
- type GetDNSZoneVersionDiffRequest
- type GetDNSZoneVersionDiffResponse
- type GetDomainAuthCodeResponse
- type GetSSLCertificateRequest
- type Host
- type HostStatus
- type ImportProviderDNSZoneRequest
- type ImportProviderDNSZoneRequestOnlineV1
- type ImportProviderDNSZoneResponse
- type ImportRawDNSZoneRequest
- type ImportRawDNSZoneRequestAXFRSource
- type ImportRawDNSZoneRequestBindSource
- type ImportRawDNSZoneRequestTsigKey
- type ImportRawDNSZoneResponse
- type LanguageCode
- type ListContactsResponse
- type ListDNSZoneNameserversRequest
- type ListDNSZoneNameserversResponse
- type ListDNSZoneRecordsRequest
- type ListDNSZoneRecordsRequestOrderBy
- type ListDNSZoneRecordsResponse
- type ListDNSZoneVersionRecordsRequest
- type ListDNSZoneVersionRecordsResponse
- type ListDNSZoneVersionsRequest
- type ListDNSZoneVersionsResponse
- type ListDNSZonesRequest
- type ListDNSZonesRequestOrderBy
- type ListDNSZonesResponse
- type ListDomainHostsResponse
- type ListDomainsRequestOrderBy
- type ListDomainsResponse
- type ListRenewableDomainsRequestOrderBy
- type ListRenewableDomainsResponse
- type ListSSLCertificatesRequest
- type ListSSLCertificatesResponse
- type ListTasksRequestOrderBy
- type ListTasksResponse
- type Nameserver
- type NewContact
- type OrderResponse
- type RawFormat
- type Record
- type RecordChange
- type RecordChangeAdd
- type RecordChangeClear
- type RecordChangeDelete
- type RecordChangeSet
- type RecordGeoIPConfig
- type RecordGeoIPConfigMatch
- type RecordHTTPServiceConfig
- type RecordHTTPServiceConfigStrategy
- type RecordIdentifier
- type RecordType
- type RecordViewConfig
- type RecordViewConfigView
- type RecordWeightedConfig
- type RecordWeightedConfigWeightedIP
- type RefreshDNSZoneRequest
- type RefreshDNSZoneResponse
- type RegisterExternalDomainResponse
- type RegistrarAPI
- func (s *RegistrarAPI) BuyDomains(req *RegistrarAPIBuyDomainsRequest, opts ...scw.RequestOption) (*OrderResponse, error)
- func (s *RegistrarAPI) CheckContactsCompatibility(req *RegistrarAPICheckContactsCompatibilityRequest, opts ...scw.RequestOption) (*CheckContactsCompatibilityResponse, error)
- func (s *RegistrarAPI) CreateDomainHost(req *RegistrarAPICreateDomainHostRequest, opts ...scw.RequestOption) (*Host, error)
- func (s *RegistrarAPI) DeleteDomainHost(req *RegistrarAPIDeleteDomainHostRequest, opts ...scw.RequestOption) (*Host, error)
- func (s *RegistrarAPI) DeleteExternalDomain(req *RegistrarAPIDeleteExternalDomainRequest, opts ...scw.RequestOption) (*DeleteExternalDomainResponse, error)
- func (s *RegistrarAPI) DisableDomainAutoRenew(req *RegistrarAPIDisableDomainAutoRenewRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) DisableDomainDNSSEC(req *RegistrarAPIDisableDomainDNSSECRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) EnableDomainAutoRenew(req *RegistrarAPIEnableDomainAutoRenewRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) EnableDomainDNSSEC(req *RegistrarAPIEnableDomainDNSSECRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) GetContact(req *RegistrarAPIGetContactRequest, opts ...scw.RequestOption) (*Contact, error)
- func (s *RegistrarAPI) GetDomain(req *RegistrarAPIGetDomainRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) GetDomainAuthCode(req *RegistrarAPIGetDomainAuthCodeRequest, opts ...scw.RequestOption) (*GetDomainAuthCodeResponse, error)
- func (s *RegistrarAPI) ListContacts(req *RegistrarAPIListContactsRequest, opts ...scw.RequestOption) (*ListContactsResponse, error)
- func (s *RegistrarAPI) ListDomainHosts(req *RegistrarAPIListDomainHostsRequest, opts ...scw.RequestOption) (*ListDomainHostsResponse, error)
- func (s *RegistrarAPI) ListDomains(req *RegistrarAPIListDomainsRequest, opts ...scw.RequestOption) (*ListDomainsResponse, error)
- func (s *RegistrarAPI) ListRenewableDomains(req *RegistrarAPIListRenewableDomainsRequest, opts ...scw.RequestOption) (*ListRenewableDomainsResponse, error)
- func (s *RegistrarAPI) ListTasks(req *RegistrarAPIListTasksRequest, opts ...scw.RequestOption) (*ListTasksResponse, error)
- func (s *RegistrarAPI) LockDomainTransfer(req *RegistrarAPILockDomainTransferRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) RegisterExternalDomain(req *RegistrarAPIRegisterExternalDomainRequest, opts ...scw.RequestOption) (*RegisterExternalDomainResponse, error)
- func (s *RegistrarAPI) RenewDomains(req *RegistrarAPIRenewDomainsRequest, opts ...scw.RequestOption) (*OrderResponse, error)
- func (s *RegistrarAPI) SearchAvailableDomains(req *RegistrarAPISearchAvailableDomainsRequest, opts ...scw.RequestOption) (*SearchAvailableDomainsResponse, error)
- func (s *RegistrarAPI) TradeDomain(req *RegistrarAPITradeDomainRequest, opts ...scw.RequestOption) (*OrderResponse, error)
- func (s *RegistrarAPI) TransferInDomain(req *RegistrarAPITransferInDomainRequest, opts ...scw.RequestOption) (*OrderResponse, error)
- func (s *RegistrarAPI) UnlockDomainTransfer(req *RegistrarAPIUnlockDomainTransferRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) UpdateContact(req *RegistrarAPIUpdateContactRequest, opts ...scw.RequestOption) (*Contact, error)
- func (s *RegistrarAPI) UpdateDomain(req *RegistrarAPIUpdateDomainRequest, opts ...scw.RequestOption) (*Domain, error)
- func (s *RegistrarAPI) UpdateDomainHost(req *RegistrarAPIUpdateDomainHostRequest, opts ...scw.RequestOption) (*Host, error)
- type RegistrarAPIBuyDomainsRequest
- type RegistrarAPICheckContactsCompatibilityRequest
- type RegistrarAPICreateDomainHostRequest
- type RegistrarAPIDeleteDomainHostRequest
- type RegistrarAPIDeleteExternalDomainRequest
- type RegistrarAPIDisableDomainAutoRenewRequest
- type RegistrarAPIDisableDomainDNSSECRequest
- type RegistrarAPIEnableDomainAutoRenewRequest
- type RegistrarAPIEnableDomainDNSSECRequest
- type RegistrarAPIGetContactRequest
- type RegistrarAPIGetDomainAuthCodeRequest
- type RegistrarAPIGetDomainRequest
- type RegistrarAPIListContactsRequest
- type RegistrarAPIListDomainHostsRequest
- type RegistrarAPIListDomainsRequest
- type RegistrarAPIListRenewableDomainsRequest
- type RegistrarAPIListTasksRequest
- type RegistrarAPILockDomainTransferRequest
- type RegistrarAPIRegisterExternalDomainRequest
- type RegistrarAPIRenewDomainsRequest
- type RegistrarAPISearchAvailableDomainsRequest
- type RegistrarAPITradeDomainRequest
- type RegistrarAPITransferInDomainRequest
- type RegistrarAPIUnlockDomainTransferRequest
- type RegistrarAPIUpdateContactRequest
- type RegistrarAPIUpdateDomainHostRequest
- type RegistrarAPIUpdateDomainRequest
- type RenewableDomain
- type RenewableDomainStatus
- type RestoreDNSZoneVersionRequest
- type RestoreDNSZoneVersionResponse
- type SSLCertificate
- type SSLCertificateStatus
- type SearchAvailableDomainsResponse
- type Task
- type TaskStatus
- type TaskType
- type Tld
- type TldOffer
- type TransferInDomainRequestTransferRequest
- type UpdateContactRequestQuestion
- type UpdateDNSZoneNameserversRequest
- type UpdateDNSZoneNameserversResponse
- type UpdateDNSZoneRecordsRequest
- type UpdateDNSZoneRecordsResponse
- type UpdateDNSZoneRequest
- type WaitForDNSZoneRequest
Constants ¶
const ( // ContactEmailStatusEmailStatusUnknown is [insert doc]. ContactEmailStatusEmailStatusUnknown = ContactEmailStatus("email_status_unknown") // ContactEmailStatusValidated is [insert doc]. ContactEmailStatusValidated = ContactEmailStatus("validated") // ContactEmailStatusNotValidated is [insert doc]. ContactEmailStatusNotValidated = ContactEmailStatus("not_validated") // ContactEmailStatusInvalidEmail is [insert doc]. ContactEmailStatusInvalidEmail = ContactEmailStatus("invalid_email") )
const ( // ContactExtensionFRModeModeUnknown is [insert doc]. ContactExtensionFRModeModeUnknown = ContactExtensionFRMode("mode_unknown") // ContactExtensionFRModeIndividual is [insert doc]. ContactExtensionFRModeIndividual = ContactExtensionFRMode("individual") // ContactExtensionFRModeCompanyIdentificationCode is [insert doc]. ContactExtensionFRModeCompanyIdentificationCode = ContactExtensionFRMode("company_identification_code") // ContactExtensionFRModeDuns is [insert doc]. ContactExtensionFRModeDuns = ContactExtensionFRMode("duns") // ContactExtensionFRModeLocal is [insert doc]. ContactExtensionFRModeLocal = ContactExtensionFRMode("local") // ContactExtensionFRModeAssociation is [insert doc]. ContactExtensionFRModeAssociation = ContactExtensionFRMode("association") // ContactExtensionFRModeTrademark is [insert doc]. ContactExtensionFRModeTrademark = ContactExtensionFRMode("trademark") // ContactExtensionFRModeCodeAuthAfnic is [insert doc]. ContactExtensionFRModeCodeAuthAfnic = ContactExtensionFRMode("code_auth_afnic") )
const ( // ContactExtensionNLLegalFormLegalFormUnknown is [insert doc]. ContactExtensionNLLegalFormLegalFormUnknown = ContactExtensionNLLegalForm("legal_form_unknown") // ContactExtensionNLLegalFormOther is [insert doc]. ContactExtensionNLLegalFormOther = ContactExtensionNLLegalForm("other") // ContactExtensionNLLegalFormNonDutchEuCompany is [insert doc]. ContactExtensionNLLegalFormNonDutchEuCompany = ContactExtensionNLLegalForm("non_dutch_eu_company") // ContactExtensionNLLegalFormNonDutchLegalFormEnterpriseSubsidiary is [insert doc]. ContactExtensionNLLegalFormNonDutchLegalFormEnterpriseSubsidiary = ContactExtensionNLLegalForm("non_dutch_legal_form_enterprise_subsidiary") // ContactExtensionNLLegalFormLimitedCompany is [insert doc]. ContactExtensionNLLegalFormLimitedCompany = ContactExtensionNLLegalForm("limited_company") // ContactExtensionNLLegalFormLimitedCompanyInFormation is [insert doc]. ContactExtensionNLLegalFormLimitedCompanyInFormation = ContactExtensionNLLegalForm("limited_company_in_formation") // ContactExtensionNLLegalFormCooperative is [insert doc]. ContactExtensionNLLegalFormCooperative = ContactExtensionNLLegalForm("cooperative") // ContactExtensionNLLegalFormLimitedPartnership is [insert doc]. ContactExtensionNLLegalFormLimitedPartnership = ContactExtensionNLLegalForm("limited_partnership") // ContactExtensionNLLegalFormSoleCompany is [insert doc]. ContactExtensionNLLegalFormSoleCompany = ContactExtensionNLLegalForm("sole_company") // ContactExtensionNLLegalFormEuropeanEconomicInterestGroup is [insert doc]. ContactExtensionNLLegalFormEuropeanEconomicInterestGroup = ContactExtensionNLLegalForm("european_economic_interest_group") // ContactExtensionNLLegalFormReligiousEntity is [insert doc]. ContactExtensionNLLegalFormReligiousEntity = ContactExtensionNLLegalForm("religious_entity") // ContactExtensionNLLegalFormPartnership is [insert doc]. ContactExtensionNLLegalFormPartnership = ContactExtensionNLLegalForm("partnership") // ContactExtensionNLLegalFormPublicCompany is [insert doc]. ContactExtensionNLLegalFormPublicCompany = ContactExtensionNLLegalForm("public_company") // ContactExtensionNLLegalFormMutualBenefitCompany is [insert doc]. ContactExtensionNLLegalFormMutualBenefitCompany = ContactExtensionNLLegalForm("mutual_benefit_company") // ContactExtensionNLLegalFormResidential is [insert doc]. ContactExtensionNLLegalFormResidential = ContactExtensionNLLegalForm("residential") // ContactExtensionNLLegalFormShippingCompany is [insert doc]. ContactExtensionNLLegalFormShippingCompany = ContactExtensionNLLegalForm("shipping_company") // ContactExtensionNLLegalFormFoundation is [insert doc]. ContactExtensionNLLegalFormFoundation = ContactExtensionNLLegalForm("foundation") // ContactExtensionNLLegalFormAssociation is [insert doc]. ContactExtensionNLLegalFormAssociation = ContactExtensionNLLegalForm("association") // ContactExtensionNLLegalFormTradingPartnership is [insert doc]. ContactExtensionNLLegalFormTradingPartnership = ContactExtensionNLLegalForm("trading_partnership") )
const ( // ContactLegalFormLegalFormUnknown is [insert doc]. ContactLegalFormLegalFormUnknown = ContactLegalForm("legal_form_unknown") // ContactLegalFormIndividual is [insert doc]. ContactLegalFormIndividual = ContactLegalForm("individual") // ContactLegalFormCorporate is [insert doc]. ContactLegalFormCorporate = ContactLegalForm("corporate") // ContactLegalFormAssociation is [insert doc]. ContactLegalFormAssociation = ContactLegalForm("association") // ContactLegalFormOther is [insert doc]. ContactLegalFormOther = ContactLegalForm("other") )
const ( // DNSZoneStatusUnknown is [insert doc]. DNSZoneStatusUnknown = DNSZoneStatus("unknown") // DNSZoneStatusActive is [insert doc]. DNSZoneStatusActive = DNSZoneStatus("active") // DNSZoneStatusPending is [insert doc]. DNSZoneStatusPending = DNSZoneStatus("pending") // DNSZoneStatusError is [insert doc]. DNSZoneStatusError = DNSZoneStatus("error") // DNSZoneStatusLocked is [insert doc]. DNSZoneStatusLocked = DNSZoneStatus("locked") )
const ( // DSRecordAlgorithmRsamd5 is [insert doc]. DSRecordAlgorithmRsamd5 = DSRecordAlgorithm("rsamd5") // DSRecordAlgorithmDh is [insert doc]. DSRecordAlgorithmDh = DSRecordAlgorithm("dh") // DSRecordAlgorithmDsa is [insert doc]. DSRecordAlgorithmDsa = DSRecordAlgorithm("dsa") // DSRecordAlgorithmRsasha1 is [insert doc]. DSRecordAlgorithmRsasha1 = DSRecordAlgorithm("rsasha1") // DSRecordAlgorithmDsaNsec3Sha1 is [insert doc]. DSRecordAlgorithmDsaNsec3Sha1 = DSRecordAlgorithm("dsa_nsec3_sha1") // DSRecordAlgorithmRsasha1Nsec3Sha1 is [insert doc]. DSRecordAlgorithmRsasha1Nsec3Sha1 = DSRecordAlgorithm("rsasha1_nsec3_sha1") // DSRecordAlgorithmRsasha256 is [insert doc]. DSRecordAlgorithmRsasha256 = DSRecordAlgorithm("rsasha256") // DSRecordAlgorithmRsasha512 is [insert doc]. DSRecordAlgorithmRsasha512 = DSRecordAlgorithm("rsasha512") // DSRecordAlgorithmEccGost is [insert doc]. DSRecordAlgorithmEccGost = DSRecordAlgorithm("ecc_gost") // DSRecordAlgorithmEcdsap256sha256 is [insert doc]. DSRecordAlgorithmEcdsap256sha256 = DSRecordAlgorithm("ecdsap256sha256") // DSRecordAlgorithmEcdsap384sha384 is [insert doc]. DSRecordAlgorithmEcdsap384sha384 = DSRecordAlgorithm("ecdsap384sha384") // DSRecordAlgorithmEd25519 is [insert doc]. DSRecordAlgorithmEd25519 = DSRecordAlgorithm("ed25519") // DSRecordAlgorithmEd448 is [insert doc]. DSRecordAlgorithmEd448 = DSRecordAlgorithm("ed448") )
const ( // DSRecordDigestTypeSha1 is [insert doc]. DSRecordDigestTypeSha1 = DSRecordDigestType("sha_1") // DSRecordDigestTypeSha256 is [insert doc]. DSRecordDigestTypeSha256 = DSRecordDigestType("sha_256") // DSRecordDigestTypeGostR34_11_94 is [insert doc]. DSRecordDigestTypeGostR34_11_94 = DSRecordDigestType("gost_r_34_11_94") // DSRecordDigestTypeSha384 is [insert doc]. DSRecordDigestTypeSha384 = DSRecordDigestType("sha_384") )
const ( // DomainFeatureStatusFeatureStatusUnknown is [insert doc]. DomainFeatureStatusFeatureStatusUnknown = DomainFeatureStatus("feature_status_unknown") // DomainFeatureStatusEnabling is [insert doc]. DomainFeatureStatusEnabling = DomainFeatureStatus("enabling") // DomainFeatureStatusEnabled is [insert doc]. DomainFeatureStatusEnabled = DomainFeatureStatus("enabled") // DomainFeatureStatusDisabling is [insert doc]. DomainFeatureStatusDisabling = DomainFeatureStatus("disabling") // DomainFeatureStatusDisabled is [insert doc]. DomainFeatureStatusDisabled = DomainFeatureStatus("disabled") )
const ( // DomainRegistrationStatusTransferStatusStatusUnknown is [insert doc]. DomainRegistrationStatusTransferStatusStatusUnknown = DomainRegistrationStatusTransferStatus("status_unknown") // DomainRegistrationStatusTransferStatusPending is [insert doc]. DomainRegistrationStatusTransferStatusPending = DomainRegistrationStatusTransferStatus("pending") // DomainRegistrationStatusTransferStatusWaitingVote is [insert doc]. DomainRegistrationStatusTransferStatusWaitingVote = DomainRegistrationStatusTransferStatus("waiting_vote") // DomainRegistrationStatusTransferStatusRejected is [insert doc]. DomainRegistrationStatusTransferStatusRejected = DomainRegistrationStatusTransferStatus("rejected") // DomainRegistrationStatusTransferStatusProcessing is [insert doc]. DomainRegistrationStatusTransferStatusProcessing = DomainRegistrationStatusTransferStatus("processing") // DomainRegistrationStatusTransferStatusDone is [insert doc]. DomainRegistrationStatusTransferStatusDone = DomainRegistrationStatusTransferStatus("done") )
const ( // DomainStatusStatusUnknown is [insert doc]. DomainStatusStatusUnknown = DomainStatus("status_unknown") // DomainStatusActive is [insert doc]. DomainStatusActive = DomainStatus("active") // DomainStatusCreating is [insert doc]. DomainStatusCreating = DomainStatus("creating") // DomainStatusCreateError is [insert doc]. DomainStatusCreateError = DomainStatus("create_error") // DomainStatusRenewing is [insert doc]. DomainStatusRenewing = DomainStatus("renewing") // DomainStatusRenewError is [insert doc]. DomainStatusRenewError = DomainStatus("renew_error") // DomainStatusXfering is [insert doc]. DomainStatusXfering = DomainStatus("xfering") // DomainStatusXferError is [insert doc]. DomainStatusXferError = DomainStatus("xfer_error") // DomainStatusExpired is [insert doc]. DomainStatusExpired = DomainStatus("expired") // DomainStatusExpiring is [insert doc]. DomainStatusExpiring = DomainStatus("expiring") // DomainStatusUpdating is [insert doc]. DomainStatusUpdating = DomainStatus("updating") // DomainStatusChecking is [insert doc]. DomainStatusChecking = DomainStatus("checking") // DomainStatusLocked is [insert doc]. DomainStatusLocked = DomainStatus("locked") // DomainStatusDeleting is [insert doc]. DomainStatusDeleting = DomainStatus("deleting") )
const ( // HostStatusUnknownStatus is [insert doc]. HostStatusUnknownStatus = HostStatus("unknown_status") // HostStatusActive is [insert doc]. HostStatusActive = HostStatus("active") // HostStatusUpdating is [insert doc]. HostStatusUpdating = HostStatus("updating") // HostStatusDeleting is [insert doc]. HostStatusDeleting = HostStatus("deleting") )
const ( // LanguageCodeUnknownLanguageCode is [insert doc]. LanguageCodeUnknownLanguageCode = LanguageCode("unknown_language_code") // LanguageCodeEnUS is [insert doc]. LanguageCodeEnUS = LanguageCode("en_US") // LanguageCodeFrFR is [insert doc]. LanguageCodeFrFR = LanguageCode("fr_FR") // LanguageCodeDeDE is [insert doc]. LanguageCodeDeDE = LanguageCode("de_DE") )
const ( // ListDNSZoneRecordsRequestOrderByNameAsc is [insert doc]. ListDNSZoneRecordsRequestOrderByNameAsc = ListDNSZoneRecordsRequestOrderBy("name_asc") // ListDNSZoneRecordsRequestOrderByNameDesc is [insert doc]. ListDNSZoneRecordsRequestOrderByNameDesc = ListDNSZoneRecordsRequestOrderBy("name_desc") )
const ( // ListDNSZonesRequestOrderByDomainAsc is [insert doc]. ListDNSZonesRequestOrderByDomainAsc = ListDNSZonesRequestOrderBy("domain_asc") // ListDNSZonesRequestOrderByDomainDesc is [insert doc]. ListDNSZonesRequestOrderByDomainDesc = ListDNSZonesRequestOrderBy("domain_desc") // ListDNSZonesRequestOrderBySubdomainAsc is [insert doc]. ListDNSZonesRequestOrderBySubdomainAsc = ListDNSZonesRequestOrderBy("subdomain_asc") // ListDNSZonesRequestOrderBySubdomainDesc is [insert doc]. ListDNSZonesRequestOrderBySubdomainDesc = ListDNSZonesRequestOrderBy("subdomain_desc") )
const ( // ListDomainsRequestOrderByDomainAsc is [insert doc]. ListDomainsRequestOrderByDomainAsc = ListDomainsRequestOrderBy("domain_asc") // ListDomainsRequestOrderByDomainDesc is [insert doc]. ListDomainsRequestOrderByDomainDesc = ListDomainsRequestOrderBy("domain_desc") )
const ( // ListRenewableDomainsRequestOrderByDomainAsc is [insert doc]. ListRenewableDomainsRequestOrderByDomainAsc = ListRenewableDomainsRequestOrderBy("domain_asc") // ListRenewableDomainsRequestOrderByDomainDesc is [insert doc]. ListRenewableDomainsRequestOrderByDomainDesc = ListRenewableDomainsRequestOrderBy("domain_desc") )
const ( // ListTasksRequestOrderByDomainDesc is [insert doc]. ListTasksRequestOrderByDomainDesc = ListTasksRequestOrderBy("domain_desc") // ListTasksRequestOrderByDomainAsc is [insert doc]. ListTasksRequestOrderByDomainAsc = ListTasksRequestOrderBy("domain_asc") // ListTasksRequestOrderByTypeAsc is [insert doc]. ListTasksRequestOrderByTypeAsc = ListTasksRequestOrderBy("type_asc") // ListTasksRequestOrderByTypeDesc is [insert doc]. ListTasksRequestOrderByTypeDesc = ListTasksRequestOrderBy("type_desc") // ListTasksRequestOrderByStatusAsc is [insert doc]. ListTasksRequestOrderByStatusAsc = ListTasksRequestOrderBy("status_asc") // ListTasksRequestOrderByStatusDesc is [insert doc]. ListTasksRequestOrderByStatusDesc = ListTasksRequestOrderBy("status_desc") // ListTasksRequestOrderByUpdatedAtAsc is [insert doc]. ListTasksRequestOrderByUpdatedAtAsc = ListTasksRequestOrderBy("updated_at_asc") // ListTasksRequestOrderByUpdatedAtDesc is [insert doc]. ListTasksRequestOrderByUpdatedAtDesc = ListTasksRequestOrderBy("updated_at_desc") )
const ( // RawFormatUnknownRawFormat is [insert doc]. RawFormatUnknownRawFormat = RawFormat("unknown_raw_format") // RawFormatBind is [insert doc]. RawFormatBind = RawFormat("bind") )
const ( // RecordHTTPServiceConfigStrategyRandom is [insert doc]. RecordHTTPServiceConfigStrategyRandom = RecordHTTPServiceConfigStrategy("random") // RecordHTTPServiceConfigStrategyHashed is [insert doc]. RecordHTTPServiceConfigStrategyHashed = RecordHTTPServiceConfigStrategy("hashed") // RecordHTTPServiceConfigStrategyAll is [insert doc]. RecordHTTPServiceConfigStrategyAll = RecordHTTPServiceConfigStrategy("all") )
const ( // RecordTypeUnknown is [insert doc]. RecordTypeUnknown = RecordType("unknown") // RecordTypeA is [insert doc]. RecordTypeA = RecordType("A") // RecordTypeAAAA is [insert doc]. RecordTypeAAAA = RecordType("AAAA") // RecordTypeCNAME is [insert doc]. RecordTypeCNAME = RecordType("CNAME") // RecordTypeTXT is [insert doc]. RecordTypeTXT = RecordType("TXT") // RecordTypeSRV is [insert doc]. RecordTypeSRV = RecordType("SRV") // RecordTypeTLSA is [insert doc]. RecordTypeTLSA = RecordType("TLSA") // RecordTypeMX is [insert doc]. RecordTypeMX = RecordType("MX") // RecordTypeNS is [insert doc]. RecordTypeNS = RecordType("NS") // RecordTypePTR is [insert doc]. RecordTypePTR = RecordType("PTR") // RecordTypeCAA is [insert doc]. RecordTypeCAA = RecordType("CAA") // RecordTypeALIAS is [insert doc]. RecordTypeALIAS = RecordType("ALIAS") // RecordTypeLOC is [insert doc]. RecordTypeLOC = RecordType("LOC") // RecordTypeSSHFP is [insert doc]. RecordTypeSSHFP = RecordType("SSHFP") // RecordTypeHINFO is [insert doc]. RecordTypeHINFO = RecordType("HINFO") // RecordTypeRP is [insert doc]. RecordTypeRP = RecordType("RP") // RecordTypeURI is [insert doc]. RecordTypeURI = RecordType("URI") // RecordTypeDS is [insert doc]. RecordTypeDS = RecordType("DS") // RecordTypeNAPTR is [insert doc]. RecordTypeNAPTR = RecordType("NAPTR") // RecordTypeDNAME is [insert doc]. RecordTypeDNAME = RecordType("DNAME") )
const ( // RenewableDomainStatusUnknown is [insert doc]. RenewableDomainStatusUnknown = RenewableDomainStatus("unknown") // RenewableDomainStatusRenewable is [insert doc]. RenewableDomainStatusRenewable = RenewableDomainStatus("renewable") // RenewableDomainStatusLateReneweable is [insert doc]. RenewableDomainStatusLateReneweable = RenewableDomainStatus("late_reneweable") // RenewableDomainStatusNotRenewable is [insert doc]. RenewableDomainStatusNotRenewable = RenewableDomainStatus("not_renewable") )
const ( // SSLCertificateStatusUnknown is [insert doc]. SSLCertificateStatusUnknown = SSLCertificateStatus("unknown") // SSLCertificateStatusNew is [insert doc]. SSLCertificateStatusNew = SSLCertificateStatus("new") // SSLCertificateStatusPending is [insert doc]. SSLCertificateStatusPending = SSLCertificateStatus("pending") // SSLCertificateStatusSuccess is [insert doc]. SSLCertificateStatusSuccess = SSLCertificateStatus("success") // SSLCertificateStatusError is [insert doc]. SSLCertificateStatusError = SSLCertificateStatus("error") )
const ( TaskStatusUnavailable = TaskStatus("unavailable") // TaskStatusNew is [insert doc]. TaskStatusNew = TaskStatus("new") // TaskStatusWaitingPayment is [insert doc]. TaskStatusWaitingPayment = TaskStatus("waiting_payment") // TaskStatusPending is [insert doc]. TaskStatusPending = TaskStatus("pending") // TaskStatusSuccess is [insert doc]. TaskStatusSuccess = TaskStatus("success") // TaskStatusError is [insert doc]. TaskStatusError = TaskStatus("error") )
const ( // TaskTypeUnknown is [insert doc]. TaskTypeUnknown = TaskType("unknown") // TaskTypeCreateDomain is [insert doc]. TaskTypeCreateDomain = TaskType("create_domain") // TaskTypeCreateExternalDomain is [insert doc]. TaskTypeCreateExternalDomain = TaskType("create_external_domain") // TaskTypeRenewDomain is [insert doc]. TaskTypeRenewDomain = TaskType("renew_domain") // TaskTypeTransferDomain is [insert doc]. TaskTypeTransferDomain = TaskType("transfer_domain") // TaskTypeTradeDomain is [insert doc]. TaskTypeTradeDomain = TaskType("trade_domain") // TaskTypeLockDomainTransfer is [insert doc]. TaskTypeLockDomainTransfer = TaskType("lock_domain_transfer") // TaskTypeUnlockDomainTransfer is [insert doc]. TaskTypeUnlockDomainTransfer = TaskType("unlock_domain_transfer") // TaskTypeEnableDnssec is [insert doc]. TaskTypeEnableDnssec = TaskType("enable_dnssec") // TaskTypeDisableDnssec is [insert doc]. TaskTypeDisableDnssec = TaskType("disable_dnssec") // TaskTypeUpdateDomain is [insert doc]. TaskTypeUpdateDomain = TaskType("update_domain") // TaskTypeUpdateContact is [insert doc]. TaskTypeUpdateContact = TaskType("update_contact") // TaskTypeDeleteDomain is [insert doc]. TaskTypeDeleteDomain = TaskType("delete_domain") // TaskTypeCancelTask is [insert doc]. TaskTypeCancelTask = TaskType("cancel_task") // TaskTypeGenerateSslCertificate is [insert doc]. TaskTypeGenerateSslCertificate = TaskType("generate_ssl_certificate") // TaskTypeRenewSslCertificate is [insert doc]. TaskTypeRenewSslCertificate = TaskType("renew_ssl_certificate") // TaskTypeSendMessage is [insert doc]. TaskTypeSendMessage = TaskType("send_message") // TaskTypeDeleteDomainExpired is [insert doc]. TaskTypeDeleteDomainExpired = TaskType("delete_domain_expired") // TaskTypeDeleteExternalDomain is [insert doc]. TaskTypeDeleteExternalDomain = TaskType("delete_external_domain") // TaskTypeCreateHost is [insert doc]. TaskTypeCreateHost = TaskType("create_host") // TaskTypeUpdateHost is [insert doc]. TaskTypeUpdateHost = TaskType("update_host") // TaskTypeDeleteHost is [insert doc]. TaskTypeDeleteHost = TaskType("delete_host") )
const ( // ErrCodeNoSuchDNSZone for service response error code // // The specified dns zone does not exist. ErrCodeNoSuchDNSZone = "NoSuchDNSZone" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API: DNS API
Manage your DNS zones and records.
func (*API) ClearDNSZoneRecords ¶
func (s *API) ClearDNSZoneRecords(req *ClearDNSZoneRecordsRequest, opts ...scw.RequestOption) (*ClearDNSZoneRecordsResponse, error)
ClearDNSZoneRecords: clear DNS zone records
Only available with default NS.<br/> Delete all the records from a DNS zone. All edits will be versioned.
func (*API) CloneDNSZone ¶
func (s *API) CloneDNSZone(req *CloneDNSZoneRequest, opts ...scw.RequestOption) (*DNSZone, error)
CloneDNSZone: clone a DNS zone
Clone an existed DNS zone with all its records into a new one.
func (*API) CreateDNSZone ¶
func (s *API) CreateDNSZone(req *CreateDNSZoneRequest, opts ...scw.RequestOption) (*DNSZone, error)
CreateDNSZone: create a DNS zone
Create a new DNS zone.
func (*API) CreateSSLCertificate ¶
func (s *API) CreateSSLCertificate(req *CreateSSLCertificateRequest, opts ...scw.RequestOption) (*SSLCertificate, error)
CreateSSLCertificate: create or return the zone TLS certificate
func (*API) DeleteDNSZone ¶
func (s *API) DeleteDNSZone(req *DeleteDNSZoneRequest, opts ...scw.RequestOption) (*DeleteDNSZoneResponse, error)
DeleteDNSZone: delete DNS zone
Delete a DNS zone and all it's records.
func (*API) DeleteDNSZoneTsigKey ¶
func (s *API) DeleteDNSZoneTsigKey(req *DeleteDNSZoneTsigKeyRequest, opts ...scw.RequestOption) error
DeleteDNSZoneTsigKey: delete the DNS zone TSIG Key
func (*API) DeleteSSLCertificate ¶
func (s *API) DeleteSSLCertificate(req *DeleteSSLCertificateRequest, opts ...scw.RequestOption) (*DeleteSSLCertificateResponse, error)
DeleteSSLCertificate: delete an TLS certificate
func (*API) ExportRawDNSZone ¶
func (s *API) ExportRawDNSZone(req *ExportRawDNSZoneRequest, opts ...scw.RequestOption) (*scw.File, error)
ExportRawDNSZone: export raw DNS zone
Get a DNS zone in a given format with default NS.
func (*API) GetDNSZoneTsigKey ¶
func (s *API) GetDNSZoneTsigKey(req *GetDNSZoneTsigKeyRequest, opts ...scw.RequestOption) (*GetDNSZoneTsigKeyResponse, error)
GetDNSZoneTsigKey: get the DNS zone TSIG Key
Get the DNS zone TSIG Key to allow AXFR request.
func (*API) GetDNSZoneVersionDiff ¶
func (s *API) GetDNSZoneVersionDiff(req *GetDNSZoneVersionDiffRequest, opts ...scw.RequestOption) (*GetDNSZoneVersionDiffResponse, error)
GetDNSZoneVersionDiff: get DNS zone version diff
Get all differences from a previous DNS zone version.
func (*API) GetSSLCertificate ¶
func (s *API) GetSSLCertificate(req *GetSSLCertificateRequest, opts ...scw.RequestOption) (*SSLCertificate, error)
GetSSLCertificate: get the zone TLS certificate if it exists
func (*API) ImportProviderDNSZone ¶
func (s *API) ImportProviderDNSZone(req *ImportProviderDNSZoneRequest, opts ...scw.RequestOption) (*ImportProviderDNSZoneResponse, error)
ImportProviderDNSZone: import provider DNS zone
Import and replace records from a given provider format with default NS.
func (*API) ImportRawDNSZone ¶
func (s *API) ImportRawDNSZone(req *ImportRawDNSZoneRequest, opts ...scw.RequestOption) (*ImportRawDNSZoneResponse, error)
ImportRawDNSZone: import raw DNS zone
Import and replace records from a given provider format with default NS.
func (*API) ListDNSZoneNameservers ¶
func (s *API) ListDNSZoneNameservers(req *ListDNSZoneNameserversRequest, opts ...scw.RequestOption) (*ListDNSZoneNameserversResponse, error)
ListDNSZoneNameservers: list DNS zone nameservers
Returns a list of Nameservers and their optional glue records for a DNS zone.
func (*API) ListDNSZoneRecords ¶
func (s *API) ListDNSZoneRecords(req *ListDNSZoneRecordsRequest, opts ...scw.RequestOption) (*ListDNSZoneRecordsResponse, error)
ListDNSZoneRecords: list DNS zone records
Returns a list of DNS records of a DNS zone with default NS. You can filter the records by type and name.
func (*API) ListDNSZoneVersionRecords ¶
func (s *API) ListDNSZoneVersionRecords(req *ListDNSZoneVersionRecordsRequest, opts ...scw.RequestOption) (*ListDNSZoneVersionRecordsResponse, error)
ListDNSZoneVersionRecords: list DNS zone version records
Get a list of records from a previous DNS zone version.
func (*API) ListDNSZoneVersions ¶
func (s *API) ListDNSZoneVersions(req *ListDNSZoneVersionsRequest, opts ...scw.RequestOption) (*ListDNSZoneVersionsResponse, error)
ListDNSZoneVersions: list DNS zone versions
Get a list of DNS zone versions.<br/> The maximum version count is 100.<br/> If the count reaches this limit, the oldest version will be deleted after each new modification.
func (*API) ListDNSZones ¶
func (s *API) ListDNSZones(req *ListDNSZonesRequest, opts ...scw.RequestOption) (*ListDNSZonesResponse, error)
ListDNSZones: list DNS zones
Returns a list of manageable DNS zones. You can filter the DNS zones by domain name.
func (*API) ListSSLCertificates ¶
func (s *API) ListSSLCertificates(req *ListSSLCertificatesRequest, opts ...scw.RequestOption) (*ListSSLCertificatesResponse, error)
ListSSLCertificates: list all user TLS certificates
func (*API) RefreshDNSZone ¶
func (s *API) RefreshDNSZone(req *RefreshDNSZoneRequest, opts ...scw.RequestOption) (*RefreshDNSZoneResponse, error)
RefreshDNSZone: refresh DNS zone
Refresh SOA DNS zone. You can recreate the given DNS zone and its sub DNS zone if needed.
func (*API) RestoreDNSZoneVersion ¶
func (s *API) RestoreDNSZoneVersion(req *RestoreDNSZoneVersionRequest, opts ...scw.RequestOption) (*RestoreDNSZoneVersionResponse, error)
RestoreDNSZoneVersion: restore DNS zone version
Restore and activate a previous DNS zone version.
func (*API) UpdateDNSZone ¶
func (s *API) UpdateDNSZone(req *UpdateDNSZoneRequest, opts ...scw.RequestOption) (*DNSZone, error)
UpdateDNSZone: update a DNS zone
Update the name and/or the organizations for a DNS zone.
func (*API) UpdateDNSZoneNameservers ¶
func (s *API) UpdateDNSZoneNameservers(req *UpdateDNSZoneNameserversRequest, opts ...scw.RequestOption) (*UpdateDNSZoneNameserversResponse, error)
UpdateDNSZoneNameservers: update DNS zone nameservers
Update DNS zone nameservers and set optional glue records.
func (*API) UpdateDNSZoneRecords ¶
func (s *API) UpdateDNSZoneRecords(req *UpdateDNSZoneRecordsRequest, opts ...scw.RequestOption) (*UpdateDNSZoneRecordsResponse, error)
UpdateDNSZoneRecords: update DNS zone records
Only available with default NS.<br/> Send a list of actions and records.
Action can be:
- add:
- Add new record
- Can be more specific and add a new IP to an existing A record for example
- set:
- Edit a record
- Can be more specific and edit an IP from an existing A record for example
- delete:
- Delete a record
- Can be more specific and delete an IP from an existing A record for example
- clear:
- Delete all records from a DNS zone
All edits will be versioned.
func (*API) WaitForDNSZone ¶
func (s *API) WaitForDNSZone( req *WaitForDNSZoneRequest, opts ...scw.RequestOption, ) (*DNSZone, error)
type AvailableDomain ¶
type CheckContactsCompatibilityResponse ¶
type CheckContactsCompatibilityResponse struct {
Compatible bool `json:"compatible"`
OwnerCheckResult *CheckContactsCompatibilityResponseContactCheckResult `json:"owner_check_result"`
AdministrativeCheckResult *CheckContactsCompatibilityResponseContactCheckResult `json:"administrative_check_result"`
TechnicalCheckResult *CheckContactsCompatibilityResponseContactCheckResult `json:"technical_check_result"`
}
CheckContactsCompatibilityResponse: check contacts compatibility response
type ClearDNSZoneRecordsRequest ¶
type ClearDNSZoneRecordsRequest struct {
// DNSZone: the DNS zone to clear
DNSZone string `json:"-"`
}
type ClearDNSZoneRecordsResponse ¶
type ClearDNSZoneRecordsResponse struct {
}
ClearDNSZoneRecordsResponse: clear dns zone records response
type CloneDNSZoneRequest ¶
type CloneDNSZoneRequest struct {
// DNSZone: the DNS zone to clone
DNSZone string `json:"-"`
// DestDNSZone: the destinaton DNS zone
DestDNSZone string `json:"dest_dns_zone"`
// Overwrite: whether or not the destination DNS zone will be overwritten
Overwrite bool `json:"overwrite"`
// ProjectID: the project ID of the destination DNS zone
ProjectID *string `json:"project_id"`
}
type Contact ¶
type Contact struct {
ID string `json:"id"`
// LegalForm:
//
// Default value: legal_form_unknown
LegalForm ContactLegalForm `json:"legal_form"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
CompanyName string `json:"company_name"`
Email string `json:"email"`
EmailAlt string `json:"email_alt"`
PhoneNumber string `json:"phone_number"`
FaxNumber string `json:"fax_number"`
AddressLine1 string `json:"address_line_1"`
AddressLine2 string `json:"address_line_2"`
Zip string `json:"zip"`
City string `json:"city"`
Country string `json:"country"`
VatIdentificationCode string `json:"vat_identification_code"`
CompanyIdentificationCode string `json:"company_identification_code"`
// Lang:
//
// Default value: unknown_language_code
Lang LanguageCode `json:"lang"`
Resale bool `json:"resale"`
// Deprecated
Questions *[]*ContactQuestion `json:"questions,omitempty"`
ExtensionFr *ContactExtensionFR `json:"extension_fr"`
ExtensionEu *ContactExtensionEU `json:"extension_eu"`
WhoisOptIn bool `json:"whois_opt_in"`
// EmailStatus:
//
// Default value: email_status_unknown
EmailStatus ContactEmailStatus `json:"email_status"`
State string `json:"state"`
ExtensionNl *ContactExtensionNL `json:"extension_nl"`
}
Contact: contact
type ContactEmailStatus ¶
type ContactEmailStatus string
func (ContactEmailStatus) MarshalJSON ¶
func (enum ContactEmailStatus) MarshalJSON() ([]byte, error)
func (ContactEmailStatus) String ¶
func (enum ContactEmailStatus) String() string
func (*ContactEmailStatus) UnmarshalJSON ¶
func (enum *ContactEmailStatus) UnmarshalJSON(data []byte) error
type ContactExtensionEU ¶
type ContactExtensionEU struct {
EuropeanCitizenship string `json:"european_citizenship"`
}
type ContactExtensionFR ¶
type ContactExtensionFR struct {
// Mode:
//
// Default value: mode_unknown
Mode ContactExtensionFRMode `json:"mode"`
// Precisely one of AssociationInfo, CodeAuthAfnicInfo, DunsInfo, IndividualInfo, TrademarkInfo must be set.
IndividualInfo *ContactExtensionFRIndividualInfo `json:"individual_info,omitempty"`
// Precisely one of AssociationInfo, CodeAuthAfnicInfo, DunsInfo, IndividualInfo, TrademarkInfo must be set.
DunsInfo *ContactExtensionFRDunsInfo `json:"duns_info,omitempty"`
// Precisely one of AssociationInfo, CodeAuthAfnicInfo, DunsInfo, IndividualInfo, TrademarkInfo must be set.
AssociationInfo *ContactExtensionFRAssociationInfo `json:"association_info,omitempty"`
// Precisely one of AssociationInfo, CodeAuthAfnicInfo, DunsInfo, IndividualInfo, TrademarkInfo must be set.
TrademarkInfo *ContactExtensionFRTrademarkInfo `json:"trademark_info,omitempty"`
// Precisely one of AssociationInfo, CodeAuthAfnicInfo, DunsInfo, IndividualInfo, TrademarkInfo must be set.
CodeAuthAfnicInfo *ContactExtensionFRCodeAuthAfnicInfo `json:"code_auth_afnic_info,omitempty"`
}
type ContactExtensionFRCodeAuthAfnicInfo ¶
type ContactExtensionFRCodeAuthAfnicInfo struct {
CodeAuthAfnic string `json:"code_auth_afnic"`
}
type ContactExtensionFRIndividualInfo ¶
type ContactExtensionFRIndividualInfo struct {
WhoisOptIn bool `json:"whois_opt_in"`
}
type ContactExtensionFRMode ¶
type ContactExtensionFRMode string
func (ContactExtensionFRMode) MarshalJSON ¶
func (enum ContactExtensionFRMode) MarshalJSON() ([]byte, error)
func (ContactExtensionFRMode) String ¶
func (enum ContactExtensionFRMode) String() string
func (*ContactExtensionFRMode) UnmarshalJSON ¶
func (enum *ContactExtensionFRMode) UnmarshalJSON(data []byte) error
type ContactExtensionFRTrademarkInfo ¶
type ContactExtensionFRTrademarkInfo struct {
TrademarkInpi string `json:"trademark_inpi"`
}
type ContactExtensionNL ¶
type ContactExtensionNL struct {
// LegalForm:
//
// Default value: legal_form_unknown
LegalForm ContactExtensionNLLegalForm `json:"legal_form"`
LegalFormRegistrationNumber string `json:"legal_form_registration_number"`
}
type ContactExtensionNLLegalForm ¶
type ContactExtensionNLLegalForm string
func (ContactExtensionNLLegalForm) MarshalJSON ¶
func (enum ContactExtensionNLLegalForm) MarshalJSON() ([]byte, error)
func (ContactExtensionNLLegalForm) String ¶
func (enum ContactExtensionNLLegalForm) String() string
func (*ContactExtensionNLLegalForm) UnmarshalJSON ¶
func (enum *ContactExtensionNLLegalForm) UnmarshalJSON(data []byte) error
type ContactLegalForm ¶
type ContactLegalForm string
func (ContactLegalForm) MarshalJSON ¶
func (enum ContactLegalForm) MarshalJSON() ([]byte, error)
func (ContactLegalForm) String ¶
func (enum ContactLegalForm) String() string
func (*ContactLegalForm) UnmarshalJSON ¶
func (enum *ContactLegalForm) UnmarshalJSON(data []byte) error
type ContactQuestion ¶
type ContactRoles ¶
type ContactRoles struct {
Contact *Contact `json:"contact"`
Roles map[string]*ContactRolesRoles `json:"roles"`
}
type ContactRolesRoles ¶
type CreateDNSZoneRequest ¶
type CreateDNSZoneRequest struct {
// Domain: the domain of the DNS zone to create
Domain string `json:"domain"`
// Subdomain: the subdomain of the DNS zone to create
Subdomain string `json:"subdomain"`
// ProjectID: the project ID where the DNS zone will be created
ProjectID string `json:"project_id"`
}
type DNSZone ¶
type DNSZone struct {
Domain string `json:"domain"`
Subdomain string `json:"subdomain"`
Ns []string `json:"ns"`
NsDefault []string `json:"ns_default"`
NsMaster []string `json:"ns_master"`
// Status:
//
// Default value: unknown
Status DNSZoneStatus `json:"status"`
Message *string `json:"message"`
UpdatedAt *time.Time `json:"updated_at"`
ProjectID string `json:"project_id"`
}
type DNSZoneStatus ¶
type DNSZoneStatus string
func (DNSZoneStatus) MarshalJSON ¶
func (enum DNSZoneStatus) MarshalJSON() ([]byte, error)
func (DNSZoneStatus) String ¶
func (enum DNSZoneStatus) String() string
func (*DNSZoneStatus) UnmarshalJSON ¶
func (enum *DNSZoneStatus) UnmarshalJSON(data []byte) error
type DNSZoneVersion ¶
type DSRecord ¶
type DSRecord struct {
KeyID uint32 `json:"key_id"`
// Algorithm:
//
// Default value: rsamd5
Algorithm DSRecordAlgorithm `json:"algorithm"`
// Precisely one of Digest, PublicKey must be set.
Digest *DSRecordDigest `json:"digest,omitempty"`
// Precisely one of Digest, PublicKey must be set.
PublicKey *DSRecordPublicKey `json:"public_key,omitempty"`
}
type DSRecordAlgorithm ¶
type DSRecordAlgorithm string
func (DSRecordAlgorithm) MarshalJSON ¶
func (enum DSRecordAlgorithm) MarshalJSON() ([]byte, error)
func (DSRecordAlgorithm) String ¶
func (enum DSRecordAlgorithm) String() string
func (*DSRecordAlgorithm) UnmarshalJSON ¶
func (enum *DSRecordAlgorithm) UnmarshalJSON(data []byte) error
type DSRecordDigest ¶
type DSRecordDigest struct {
// Type:
//
// Default value: sha_1
Type DSRecordDigestType `json:"type"`
Digest string `json:"digest"`
PublicKey *DSRecordPublicKey `json:"public_key"`
}
type DSRecordDigestType ¶
type DSRecordDigestType string
func (DSRecordDigestType) MarshalJSON ¶
func (enum DSRecordDigestType) MarshalJSON() ([]byte, error)
func (DSRecordDigestType) String ¶
func (enum DSRecordDigestType) String() string
func (*DSRecordDigestType) UnmarshalJSON ¶
func (enum *DSRecordDigestType) UnmarshalJSON(data []byte) error
type DSRecordPublicKey ¶
type DSRecordPublicKey struct {
Key string `json:"key"`
}
type DeleteDNSZoneRequest ¶
type DeleteDNSZoneResponse ¶
type DeleteDNSZoneResponse struct {
}
DeleteDNSZoneResponse: delete dns zone response
type DeleteDNSZoneTsigKeyRequest ¶
type DeleteDNSZoneTsigKeyRequest struct {
DNSZone string `json:"-"`
}
type DeleteExternalDomainResponse ¶
type DeleteExternalDomainResponse struct {
}
DeleteExternalDomainResponse: delete external domain response
type DeleteSSLCertificateRequest ¶
type DeleteSSLCertificateRequest struct {
DNSZone string `json:"-"`
}
type DeleteSSLCertificateResponse ¶
type DeleteSSLCertificateResponse struct {
}
DeleteSSLCertificateResponse: delete ssl certificate response
type Domain ¶
type Domain struct {
Domain string `json:"domain"`
OrganizationID string `json:"organization_id"`
ProjectID string `json:"project_id"`
// AutoRenewStatus:
//
// Default value: feature_status_unknown
AutoRenewStatus DomainFeatureStatus `json:"auto_renew_status"`
Dnssec *DomainDNSSEC `json:"dnssec"`
EppCode []string `json:"epp_code"`
ExpiredAt *time.Time `json:"expired_at"`
UpdatedAt *time.Time `json:"updated_at"`
Registrar string `json:"registrar"`
IsExternal bool `json:"is_external"`
// Status:
//
// Default value: status_unknown
Status DomainStatus `json:"status"`
DNSZones []*DNSZone `json:"dns_zones"`
OwnerContact *Contact `json:"owner_contact"`
TechnicalContact *Contact `json:"technical_contact"`
AdministrativeContact *Contact `json:"administrative_contact"`
// Precisely one of ExternalDomainRegistrationStatus, TransferRegistrationStatus must be set.
ExternalDomainRegistrationStatus *DomainRegistrationStatusExternalDomain `json:"external_domain_registration_status,omitempty"`
// Precisely one of ExternalDomainRegistrationStatus, TransferRegistrationStatus must be set.
TransferRegistrationStatus *DomainRegistrationStatusTransfer `json:"transfer_registration_status,omitempty"`
Tld *Tld `json:"tld"`
}
Domain: domain
type DomainDNSSEC ¶
type DomainDNSSEC struct {
// Status:
//
// Default value: feature_status_unknown
Status DomainFeatureStatus `json:"status"`
DsRecords []*DSRecord `json:"ds_records"`
}
type DomainFeatureStatus ¶
type DomainFeatureStatus string
func (DomainFeatureStatus) MarshalJSON ¶
func (enum DomainFeatureStatus) MarshalJSON() ([]byte, error)
func (DomainFeatureStatus) String ¶
func (enum DomainFeatureStatus) String() string
func (*DomainFeatureStatus) UnmarshalJSON ¶
func (enum *DomainFeatureStatus) UnmarshalJSON(data []byte) error
type DomainRegistrationStatusExternalDomain ¶
type DomainRegistrationStatusExternalDomain struct {
ValidationToken string `json:"validation_token"`
}
type DomainRegistrationStatusTransfer ¶
type DomainRegistrationStatusTransfer struct {
// Status:
//
// Default value: status_unknown
Status DomainRegistrationStatusTransferStatus `json:"status"`
VoteCurrentOwner bool `json:"vote_current_owner"`
VoteNewOwner bool `json:"vote_new_owner"`
}
type DomainRegistrationStatusTransferStatus ¶
type DomainRegistrationStatusTransferStatus string
func (DomainRegistrationStatusTransferStatus) MarshalJSON ¶
func (enum DomainRegistrationStatusTransferStatus) MarshalJSON() ([]byte, error)
func (DomainRegistrationStatusTransferStatus) String ¶
func (enum DomainRegistrationStatusTransferStatus) String() string
func (*DomainRegistrationStatusTransferStatus) UnmarshalJSON ¶
func (enum *DomainRegistrationStatusTransferStatus) UnmarshalJSON(data []byte) error
type DomainStatus ¶
type DomainStatus string
func (DomainStatus) MarshalJSON ¶
func (enum DomainStatus) MarshalJSON() ([]byte, error)
func (DomainStatus) String ¶
func (enum DomainStatus) String() string
func (*DomainStatus) UnmarshalJSON ¶
func (enum *DomainStatus) UnmarshalJSON(data []byte) error
type DomainSummary ¶
type DomainSummary struct {
Domain string `json:"domain"`
ProjectID string `json:"project_id"`
// AutoRenewStatus:
//
// Default value: feature_status_unknown
AutoRenewStatus DomainFeatureStatus `json:"auto_renew_status"`
// DnssecStatus:
//
// Default value: feature_status_unknown
DnssecStatus DomainFeatureStatus `json:"dnssec_status"`
EppCode []string `json:"epp_code"`
ExpiredAt *time.Time `json:"expired_at"`
UpdatedAt *time.Time `json:"updated_at"`
Registrar string `json:"registrar"`
IsExternal bool `json:"is_external"`
// Status:
//
// Default value: status_unknown
Status DomainStatus `json:"status"`
// Precisely one of ExternalDomainRegistrationStatus, TransferRegistrationStatus must be set.
ExternalDomainRegistrationStatus *DomainRegistrationStatusExternalDomain `json:"external_domain_registration_status,omitempty"`
// Precisely one of ExternalDomainRegistrationStatus, TransferRegistrationStatus must be set.
TransferRegistrationStatus *DomainRegistrationStatusTransfer `json:"transfer_registration_status,omitempty"`
OrganizationID string `json:"organization_id"`
}
type ExportRawDNSZoneRequest ¶
type GetDNSZoneTsigKeyRequest ¶
type GetDNSZoneTsigKeyRequest struct {
DNSZone string `json:"-"`
}
type GetDNSZoneTsigKeyResponse ¶
type GetDNSZoneTsigKeyResponse struct {
Name string `json:"name"`
Key string `json:"key"`
Algorithm string `json:"algorithm"`
}
GetDNSZoneTsigKeyResponse: get dns zone tsig key response
type GetDNSZoneVersionDiffRequest ¶
type GetDNSZoneVersionDiffRequest struct {
DNSZoneVersionID string `json:"-"`
}
type GetDNSZoneVersionDiffResponse ¶
type GetDNSZoneVersionDiffResponse struct {
Changes []*RecordChange `json:"changes"`
}
GetDNSZoneVersionDiffResponse: get dns zone version diff response
type GetDomainAuthCodeResponse ¶
type GetDomainAuthCodeResponse struct {
AuthCode string `json:"auth_code"`
}
GetDomainAuthCodeResponse: get domain auth code response
type GetSSLCertificateRequest ¶
type GetSSLCertificateRequest struct {
DNSZone string `json:"-"`
}
type Host ¶
type Host struct {
Domain string `json:"domain"`
Name string `json:"name"`
IPs []net.IP `json:"ips"`
// Status:
//
// Default value: unknown_status
Status HostStatus `json:"status"`
}
type HostStatus ¶
type HostStatus string
func (HostStatus) MarshalJSON ¶
func (enum HostStatus) MarshalJSON() ([]byte, error)
func (HostStatus) String ¶
func (enum HostStatus) String() string
func (*HostStatus) UnmarshalJSON ¶
func (enum *HostStatus) UnmarshalJSON(data []byte) error
type ImportProviderDNSZoneRequest ¶
type ImportProviderDNSZoneRequest struct {
DNSZone string `json:"-"`
// Precisely one of OnlineV1 must be set.
OnlineV1 *ImportProviderDNSZoneRequestOnlineV1 `json:"online_v1,omitempty"`
}
type ImportProviderDNSZoneRequestOnlineV1 ¶
type ImportProviderDNSZoneRequestOnlineV1 struct {
Token string `json:"token"`
}
type ImportProviderDNSZoneResponse ¶
type ImportProviderDNSZoneResponse struct {
Records []*Record `json:"records"`
}
ImportProviderDNSZoneResponse: import provider dns zone response
type ImportRawDNSZoneRequest ¶
type ImportRawDNSZoneRequest struct {
// DNSZone: the DNS zone to import
DNSZone string `json:"-"`
// Deprecated
Content *string `json:"content,omitempty"`
ProjectID string `json:"project_id"`
// Deprecated: Format:
//
// Default value: unknown_raw_format
Format *RawFormat `json:"format,omitempty"`
// BindSource: import a bind file format
// Precisely one of AxfrSource, BindSource must be set.
BindSource *ImportRawDNSZoneRequestBindSource `json:"bind_source,omitempty"`
// AxfrSource: import from the nameserver given with tsig use or not
// Precisely one of AxfrSource, BindSource must be set.
AxfrSource *ImportRawDNSZoneRequestAXFRSource `json:"axfr_source,omitempty"`
}
type ImportRawDNSZoneRequestAXFRSource ¶
type ImportRawDNSZoneRequestAXFRSource struct {
NameServer string `json:"name_server"`
TsigKey *ImportRawDNSZoneRequestTsigKey `json:"tsig_key"`
}
type ImportRawDNSZoneRequestBindSource ¶
type ImportRawDNSZoneRequestBindSource struct {
Content string `json:"content"`
}
type ImportRawDNSZoneResponse ¶
type ImportRawDNSZoneResponse struct {
Records []*Record `json:"records"`
}
ImportRawDNSZoneResponse: import raw dns zone response
type LanguageCode ¶
type LanguageCode string
func (LanguageCode) MarshalJSON ¶
func (enum LanguageCode) MarshalJSON() ([]byte, error)
func (LanguageCode) String ¶
func (enum LanguageCode) String() string
func (*LanguageCode) UnmarshalJSON ¶
func (enum *LanguageCode) UnmarshalJSON(data []byte) error
type ListContactsResponse ¶
type ListContactsResponse struct {
TotalCount uint32 `json:"total_count"`
Contacts []*ContactRoles `json:"contacts"`
}
ListContactsResponse: list contacts response
func (*ListContactsResponse) UnsafeAppend ¶
func (r *ListContactsResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListContactsResponse) UnsafeGetTotalCount ¶
func (r *ListContactsResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListDNSZoneNameserversResponse ¶
type ListDNSZoneNameserversResponse struct {
// Ns: the returned DNS zone nameservers
Ns []*Nameserver `json:"ns"`
}
ListDNSZoneNameserversResponse: list dns zone nameservers response
type ListDNSZoneRecordsRequest ¶
type ListDNSZoneRecordsRequest struct {
// DNSZone: the DNS zone on which to filter the returned DNS zone records
DNSZone string `json:"-"`
// ProjectID: the project ID on which to filter the returned DNS zone records
ProjectID *string `json:"-"`
// OrderBy: the sort order of the returned DNS zone records
//
// Default value: name_asc
OrderBy ListDNSZoneRecordsRequestOrderBy `json:"-"`
// Page: the page number for the returned DNS zone records
Page *int32 `json:"-"`
// PageSize: the maximum number of DNS zone records per page
PageSize *uint32 `json:"-"`
// Name: the name on which to filter the returned DNS zone records
Name string `json:"-"`
// Type: the record type on which to filter the returned DNS zone records
//
// Default value: unknown
Type RecordType `json:"-"`
// ID: the record ID on which to filter the returned DNS zone records
ID *string `json:"-"`
}
type ListDNSZoneRecordsRequestOrderBy ¶
type ListDNSZoneRecordsRequestOrderBy string
func (ListDNSZoneRecordsRequestOrderBy) MarshalJSON ¶
func (enum ListDNSZoneRecordsRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListDNSZoneRecordsRequestOrderBy) String ¶
func (enum ListDNSZoneRecordsRequestOrderBy) String() string
func (*ListDNSZoneRecordsRequestOrderBy) UnmarshalJSON ¶
func (enum *ListDNSZoneRecordsRequestOrderBy) UnmarshalJSON(data []byte) error
type ListDNSZoneRecordsResponse ¶
type ListDNSZoneRecordsResponse struct {
// TotalCount: the total number of DNS zone records
TotalCount uint32 `json:"total_count"`
// Records: the paginated returned DNS zone records
Records []*Record `json:"records"`
}
ListDNSZoneRecordsResponse: list dns zone records response
func (*ListDNSZoneRecordsResponse) UnsafeAppend ¶
func (r *ListDNSZoneRecordsResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListDNSZoneRecordsResponse) UnsafeGetTotalCount ¶
func (r *ListDNSZoneRecordsResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListDNSZoneVersionRecordsResponse ¶
type ListDNSZoneVersionRecordsResponse struct {
// TotalCount: the total number of DNS zones versions records
TotalCount uint32 `json:"total_count"`
Records []*Record `json:"records"`
}
ListDNSZoneVersionRecordsResponse: list dns zone version records response
func (*ListDNSZoneVersionRecordsResponse) UnsafeAppend ¶
func (r *ListDNSZoneVersionRecordsResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListDNSZoneVersionRecordsResponse) UnsafeGetTotalCount ¶
func (r *ListDNSZoneVersionRecordsResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListDNSZoneVersionsResponse ¶
type ListDNSZoneVersionsResponse struct {
// TotalCount: the total number of DNS zones versions
TotalCount uint32 `json:"total_count"`
Versions []*DNSZoneVersion `json:"versions"`
}
ListDNSZoneVersionsResponse: list dns zone versions response
func (*ListDNSZoneVersionsResponse) UnsafeAppend ¶
func (r *ListDNSZoneVersionsResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListDNSZoneVersionsResponse) UnsafeGetTotalCount ¶
func (r *ListDNSZoneVersionsResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListDNSZonesRequest ¶
type ListDNSZonesRequest struct {
// OrganizationID: the organization ID on which to filter the returned DNS zones
OrganizationID *string `json:"-"`
// ProjectID: the project ID on which to filter the returned DNS zones
ProjectID *string `json:"-"`
// OrderBy: the sort order of the returned DNS zones
//
// Default value: domain_asc
OrderBy ListDNSZonesRequestOrderBy `json:"-"`
// Page: the page number for the returned DNS zones
Page *int32 `json:"-"`
// PageSize: the maximum number of DNS zones per page
PageSize *uint32 `json:"-"`
// Domain: the domain on which to filter the returned DNS zones
Domain string `json:"-"`
// DNSZone: the DNS zone on which to filter the returned DNS zones
DNSZone string `json:"-"`
}
type ListDNSZonesRequestOrderBy ¶
type ListDNSZonesRequestOrderBy string
func (ListDNSZonesRequestOrderBy) MarshalJSON ¶
func (enum ListDNSZonesRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListDNSZonesRequestOrderBy) String ¶
func (enum ListDNSZonesRequestOrderBy) String() string
func (*ListDNSZonesRequestOrderBy) UnmarshalJSON ¶
func (enum *ListDNSZonesRequestOrderBy) UnmarshalJSON(data []byte) error
type ListDNSZonesResponse ¶
type ListDNSZonesResponse struct {
// TotalCount: the total number of DNS zones
TotalCount uint32 `json:"total_count"`
// DNSZones: the paginated returned DNS zones
DNSZones []*DNSZone `json:"dns_zones"`
}
ListDNSZonesResponse: list dns zones response
func (*ListDNSZonesResponse) UnsafeAppend ¶
func (r *ListDNSZonesResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListDNSZonesResponse) UnsafeGetTotalCount ¶
func (r *ListDNSZonesResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListDomainHostsResponse ¶
type ListDomainHostsResponse struct {
TotalCount uint32 `json:"total_count"`
Hosts []*Host `json:"hosts"`
}
ListDomainHostsResponse: list domain hosts response
func (*ListDomainHostsResponse) UnsafeAppend ¶
func (r *ListDomainHostsResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListDomainHostsResponse) UnsafeGetTotalCount ¶
func (r *ListDomainHostsResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListDomainsRequestOrderBy ¶
type ListDomainsRequestOrderBy string
func (ListDomainsRequestOrderBy) MarshalJSON ¶
func (enum ListDomainsRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListDomainsRequestOrderBy) String ¶
func (enum ListDomainsRequestOrderBy) String() string
func (*ListDomainsRequestOrderBy) UnmarshalJSON ¶
func (enum *ListDomainsRequestOrderBy) UnmarshalJSON(data []byte) error
type ListDomainsResponse ¶
type ListDomainsResponse struct {
TotalCount uint32 `json:"total_count"`
Domains []*DomainSummary `json:"domains"`
}
ListDomainsResponse: list domains response
func (*ListDomainsResponse) UnsafeAppend ¶
func (r *ListDomainsResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListDomainsResponse) UnsafeGetTotalCount ¶
func (r *ListDomainsResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListRenewableDomainsRequestOrderBy ¶
type ListRenewableDomainsRequestOrderBy string
func (ListRenewableDomainsRequestOrderBy) MarshalJSON ¶
func (enum ListRenewableDomainsRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListRenewableDomainsRequestOrderBy) String ¶
func (enum ListRenewableDomainsRequestOrderBy) String() string
func (*ListRenewableDomainsRequestOrderBy) UnmarshalJSON ¶
func (enum *ListRenewableDomainsRequestOrderBy) UnmarshalJSON(data []byte) error
type ListRenewableDomainsResponse ¶
type ListRenewableDomainsResponse struct {
TotalCount uint32 `json:"total_count"`
Domains []*RenewableDomain `json:"domains"`
}
ListRenewableDomainsResponse: list renewable domains response
func (*ListRenewableDomainsResponse) UnsafeAppend ¶
func (r *ListRenewableDomainsResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListRenewableDomainsResponse) UnsafeGetTotalCount ¶
func (r *ListRenewableDomainsResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListSSLCertificatesResponse ¶
type ListSSLCertificatesResponse struct {
TotalCount uint32 `json:"total_count"`
Certificates []*SSLCertificate `json:"certificates"`
}
ListSSLCertificatesResponse: list ssl certificates response
func (*ListSSLCertificatesResponse) UnsafeAppend ¶
func (r *ListSSLCertificatesResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListSSLCertificatesResponse) UnsafeGetTotalCount ¶
func (r *ListSSLCertificatesResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListTasksRequestOrderBy ¶
type ListTasksRequestOrderBy string
func (ListTasksRequestOrderBy) MarshalJSON ¶
func (enum ListTasksRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListTasksRequestOrderBy) String ¶
func (enum ListTasksRequestOrderBy) String() string
func (*ListTasksRequestOrderBy) UnmarshalJSON ¶
func (enum *ListTasksRequestOrderBy) UnmarshalJSON(data []byte) error
type ListTasksResponse ¶
type ListTasksResponse struct {
TotalCount uint32 `json:"total_count"`
Tasks []*Task `json:"tasks"`
}
ListTasksResponse: list tasks response
func (*ListTasksResponse) UnsafeAppend ¶
func (r *ListTasksResponse) UnsafeAppend(res interface{}) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListTasksResponse) UnsafeGetTotalCount ¶
func (r *ListTasksResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type Nameserver ¶
type NewContact ¶
type NewContact struct {
// LegalForm:
//
// Default value: legal_form_unknown
LegalForm ContactLegalForm `json:"legal_form"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
CompanyName *string `json:"company_name"`
Email string `json:"email"`
EmailAlt *string `json:"email_alt"`
PhoneNumber string `json:"phone_number"`
FaxNumber *string `json:"fax_number"`
AddressLine1 string `json:"address_line_1"`
AddressLine2 *string `json:"address_line_2"`
Zip string `json:"zip"`
City string `json:"city"`
Country string `json:"country"`
VatIdentificationCode *string `json:"vat_identification_code"`
CompanyIdentificationCode *string `json:"company_identification_code"`
// Lang:
//
// Default value: unknown_language_code
Lang LanguageCode `json:"lang"`
Resale bool `json:"resale"`
// Deprecated
Questions *[]*ContactQuestion `json:"questions,omitempty"`
ExtensionFr *ContactExtensionFR `json:"extension_fr"`
ExtensionEu *ContactExtensionEU `json:"extension_eu"`
WhoisOptIn bool `json:"whois_opt_in"`
State *string `json:"state"`
ExtensionNl *ContactExtensionNL `json:"extension_nl"`
}
type OrderResponse ¶
type RawFormat ¶
type RawFormat string
func (RawFormat) MarshalJSON ¶
func (*RawFormat) UnmarshalJSON ¶
type Record ¶
type Record struct {
Data string `json:"data"`
Name string `json:"name"`
Priority uint32 `json:"priority"`
TTL uint32 `json:"ttl"`
// Type:
//
// Default value: unknown
Type RecordType `json:"type"`
Comment *string `json:"comment"`
// Precisely one of GeoIPConfig, HTTPServiceConfig, ViewConfig, WeightedConfig must be set.
GeoIPConfig *RecordGeoIPConfig `json:"geo_ip_config,omitempty"`
// Precisely one of GeoIPConfig, HTTPServiceConfig, ViewConfig, WeightedConfig must be set.
HTTPServiceConfig *RecordHTTPServiceConfig `json:"http_service_config,omitempty"`
// Precisely one of GeoIPConfig, HTTPServiceConfig, ViewConfig, WeightedConfig must be set.
WeightedConfig *RecordWeightedConfig `json:"weighted_config,omitempty"`
// Precisely one of GeoIPConfig, HTTPServiceConfig, ViewConfig, WeightedConfig must be set.
ViewConfig *RecordViewConfig `json:"view_config,omitempty"`
ID string `json:"id"`
}
type RecordChange ¶
type RecordChange struct {
// Precisely one of Add, Clear, Delete, Set must be set.
Add *RecordChangeAdd `json:"add,omitempty"`
// Precisely one of Add, Clear, Delete, Set must be set.
Set *RecordChangeSet `json:"set,omitempty"`
// Precisely one of Add, Clear, Delete, Set must be set.
Delete *RecordChangeDelete `json:"delete,omitempty"`
// Precisely one of Add, Clear, Delete, Set must be set.
Clear *RecordChangeClear `json:"clear,omitempty"`
}
type RecordChangeAdd ¶
type RecordChangeAdd struct {
Records []*Record `json:"records"`
}
type RecordChangeClear ¶
type RecordChangeClear struct {
}
type RecordChangeDelete ¶
type RecordChangeDelete struct {
// Precisely one of ID, IDFields must be set.
ID *string `json:"id,omitempty"`
// Precisely one of ID, IDFields must be set.
IDFields *RecordIdentifier `json:"id_fields,omitempty"`
}
type RecordChangeSet ¶
type RecordChangeSet struct {
// Precisely one of ID, IDFields must be set.
ID *string `json:"id,omitempty"`
// Precisely one of ID, IDFields must be set.
IDFields *RecordIdentifier `json:"id_fields,omitempty"`
Records []*Record `json:"records"`
}
type RecordGeoIPConfig ¶
type RecordGeoIPConfig struct {
Matches []*RecordGeoIPConfigMatch `json:"matches"`
Default string `json:"default"`
}
type RecordGeoIPConfigMatch ¶
type RecordHTTPServiceConfig ¶
type RecordHTTPServiceConfigStrategy ¶
type RecordHTTPServiceConfigStrategy string
func (RecordHTTPServiceConfigStrategy) MarshalJSON ¶
func (enum RecordHTTPServiceConfigStrategy) MarshalJSON() ([]byte, error)
func (RecordHTTPServiceConfigStrategy) String ¶
func (enum RecordHTTPServiceConfigStrategy) String() string
func (*RecordHTTPServiceConfigStrategy) UnmarshalJSON ¶
func (enum *RecordHTTPServiceConfigStrategy) UnmarshalJSON(data []byte) error
type RecordIdentifier ¶
type RecordIdentifier struct {
Name string `json:"name"`
// Type:
//
// Default value: unknown
Type RecordType `json:"type"`
Data *string `json:"data"`
TTL *uint32 `json:"ttl"`
}
type RecordType ¶
type RecordType string
func (RecordType) MarshalJSON ¶
func (enum RecordType) MarshalJSON() ([]byte, error)
func (RecordType) String ¶
func (enum RecordType) String() string
func (*RecordType) UnmarshalJSON ¶
func (enum *RecordType) UnmarshalJSON(data []byte) error
type RecordViewConfig ¶
type RecordViewConfig struct {
Views []*RecordViewConfigView `json:"views"`
}
type RecordViewConfigView ¶
type RecordWeightedConfig ¶
type RecordWeightedConfig struct {
WeightedIPs []*RecordWeightedConfigWeightedIP `json:"weighted_ips"`
}
type RefreshDNSZoneRequest ¶
type RefreshDNSZoneRequest struct {
// DNSZone: the DNS zone to refresh
DNSZone string `json:"-"`
// RecreateDNSZone: whether or not to recreate the DNS zone
RecreateDNSZone bool `json:"recreate_dns_zone"`
// RecreateSubDNSZone: whether or not to recreate the sub DNS zone
RecreateSubDNSZone bool `json:"recreate_sub_dns_zone"`
}
type RefreshDNSZoneResponse ¶
type RefreshDNSZoneResponse struct {
// DNSZones: the returned DNS zones
DNSZones []*DNSZone `json:"dns_zones"`
}
RefreshDNSZoneResponse: refresh dns zone response
type RegistrarAPI ¶
type RegistrarAPI struct {
// contains filtered or unexported fields
}
RegistrarAPI: domains registrar API
Manage your domains and contacts.
func NewRegistrarAPI ¶
func NewRegistrarAPI(client *scw.Client) *RegistrarAPI
NewRegistrarAPI returns a RegistrarAPI object from a Scaleway client.
func (*RegistrarAPI) BuyDomains ¶
func (s *RegistrarAPI) BuyDomains(req *RegistrarAPIBuyDomainsRequest, opts ...scw.RequestOption) (*OrderResponse, error)
BuyDomains: buy one or more domains
Request the registration of domain names. You can provide an already existing domain's contact or a new contact.
func (*RegistrarAPI) CheckContactsCompatibility ¶
func (s *RegistrarAPI) CheckContactsCompatibility(req *RegistrarAPICheckContactsCompatibilityRequest, opts ...scw.RequestOption) (*CheckContactsCompatibilityResponse, error)
CheckContactsCompatibility: check if contacts are compatible against a domain or a tld
Check if contacts are compatible against a domain or a tld. If not, it will return the information requiring a correction.
func (*RegistrarAPI) CreateDomainHost ¶
func (s *RegistrarAPI) CreateDomainHost(req *RegistrarAPICreateDomainHostRequest, opts ...scw.RequestOption) (*Host, error)
CreateDomainHost: create domain hostname with glue IPs
func (*RegistrarAPI) DeleteDomainHost ¶
func (s *RegistrarAPI) DeleteDomainHost(req *RegistrarAPIDeleteDomainHostRequest, opts ...scw.RequestOption) (*Host, error)
DeleteDomainHost: delete domain hostname
func (*RegistrarAPI) DeleteExternalDomain ¶
func (s *RegistrarAPI) DeleteExternalDomain(req *RegistrarAPIDeleteExternalDomainRequest, opts ...scw.RequestOption) (*DeleteExternalDomainResponse, error)
DeleteExternalDomain: delete an external domain
Delete an external domain name.
func (*RegistrarAPI) DisableDomainAutoRenew ¶
func (s *RegistrarAPI) DisableDomainAutoRenew(req *RegistrarAPIDisableDomainAutoRenewRequest, opts ...scw.RequestOption) (*Domain, error)
DisableDomainAutoRenew: disable domain auto renew
func (*RegistrarAPI) DisableDomainDNSSEC ¶
func (s *RegistrarAPI) DisableDomainDNSSEC(req *RegistrarAPIDisableDomainDNSSECRequest, opts ...scw.RequestOption) (*Domain, error)
DisableDomainDNSSEC: disable domain DNSSEC
func (*RegistrarAPI) EnableDomainAutoRenew ¶
func (s *RegistrarAPI) EnableDomainAutoRenew(req *RegistrarAPIEnableDomainAutoRenewRequest, opts ...scw.RequestOption) (*Domain, error)
EnableDomainAutoRenew: enable domain auto renew
func (*RegistrarAPI) EnableDomainDNSSEC ¶
func (s *RegistrarAPI) EnableDomainDNSSEC(req *RegistrarAPIEnableDomainDNSSECRequest, opts ...scw.RequestOption) (*Domain, error)
EnableDomainDNSSEC: update domain DNSSEC
If your domain has the default Scaleway NS and uses another registrar, you have to update the DS record manually. For the algorithm, here are the code numbers for each type:
- 1: RSAMD5
- 2: DIFFIE_HELLMAN
- 3: DSA_SHA1
- 5: RSA_SHA1
- 6: DSA_NSEC3_SHA1
- 7: RSASHA1_NSEC3_SHA1
- 8: RSASHA256
- 10: RSASHA512
- 12: ECC_GOST
- 13: ECDSAP256SHA256
- 14: ECDSAP384SHA384
And for the digest type:
- 1: SHA_1
- 2: SHA_256
- 3: GOST_R_34_11_94
- 4: SHA_384
func (*RegistrarAPI) GetContact ¶
func (s *RegistrarAPI) GetContact(req *RegistrarAPIGetContactRequest, opts ...scw.RequestOption) (*Contact, error)
GetContact: get a contact
Return a contact details retrieved from the registrar using a given contact ID.
func (*RegistrarAPI) GetDomain ¶
func (s *RegistrarAPI) GetDomain(req *RegistrarAPIGetDomainRequest, opts ...scw.RequestOption) (*Domain, error)
GetDomain: get domain
Returns a the domain with more informations.
func (*RegistrarAPI) GetDomainAuthCode ¶
func (s *RegistrarAPI) GetDomainAuthCode(req *RegistrarAPIGetDomainAuthCodeRequest, opts ...scw.RequestOption) (*GetDomainAuthCodeResponse, error)
GetDomainAuthCode: return domain auth code
If possible, return the auth code for an unlocked domain transfer, or an error if the domain is locked. Some TLD may have a different procedure to retrieve the auth code, in that case, the information is given in the message field.
func (*RegistrarAPI) ListContacts ¶
func (s *RegistrarAPI) ListContacts(req *RegistrarAPIListContactsRequest, opts ...scw.RequestOption) (*ListContactsResponse, error)
ListContacts: list contacts
Return a list of contacts with their domains and roles. You can filter the list by domain name.
func (*RegistrarAPI) ListDomainHosts ¶
func (s *RegistrarAPI) ListDomainHosts(req *RegistrarAPIListDomainHostsRequest, opts ...scw.RequestOption) (*ListDomainHostsResponse, error)
ListDomainHosts: list domain hostnames with they glue IPs
func (*RegistrarAPI) ListDomains ¶
func (s *RegistrarAPI) ListDomains(req *RegistrarAPIListDomainsRequest, opts ...scw.RequestOption) (*ListDomainsResponse, error)
ListDomains: list domains
Returns a list of domains owned by the user.
func (*RegistrarAPI) ListRenewableDomains ¶
func (s *RegistrarAPI) ListRenewableDomains(req *RegistrarAPIListRenewableDomainsRequest, opts ...scw.RequestOption) (*ListRenewableDomainsResponse, error)
ListRenewableDomains: list scaleway domains that can or not be renewed
Returns a list of domains owned by the user with a renew status and if renewable, the maximum renew duration in years.
func (*RegistrarAPI) ListTasks ¶
func (s *RegistrarAPI) ListTasks(req *RegistrarAPIListTasksRequest, opts ...scw.RequestOption) (*ListTasksResponse, error)
ListTasks: list tasks
List all account tasks. You can filter the list by domain name.
func (*RegistrarAPI) LockDomainTransfer ¶
func (s *RegistrarAPI) LockDomainTransfer(req *RegistrarAPILockDomainTransferRequest, opts ...scw.RequestOption) (*Domain, error)
LockDomainTransfer: lock domain transfer
Lock domain transfer. A locked domain transfer can't be transferred and the auth code can't be requested.
func (*RegistrarAPI) RegisterExternalDomain ¶
func (s *RegistrarAPI) RegisterExternalDomain(req *RegistrarAPIRegisterExternalDomainRequest, opts ...scw.RequestOption) (*RegisterExternalDomainResponse, error)
RegisterExternalDomain: register an external domain
Request the registration of an external domain name.
func (*RegistrarAPI) RenewDomains ¶
func (s *RegistrarAPI) RenewDomains(req *RegistrarAPIRenewDomainsRequest, opts ...scw.RequestOption) (*OrderResponse, error)
RenewDomains: renew one or more domains
Request the renewal of domain names.
func (*RegistrarAPI) SearchAvailableDomains ¶
func (s *RegistrarAPI) SearchAvailableDomains(req *RegistrarAPISearchAvailableDomainsRequest, opts ...scw.RequestOption) (*SearchAvailableDomainsResponse, error)
SearchAvailableDomains: search available domains
Search a domain (or at maximum, 10 domains).
If the TLD list is empty or not set the search returns the results from the most popular TLDs.
func (*RegistrarAPI) TradeDomain ¶
func (s *RegistrarAPI) TradeDomain(req *RegistrarAPITradeDomainRequest, opts ...scw.RequestOption) (*OrderResponse, error)
TradeDomain: trade a domain contact
Request a trade for the contact owner.<br/> If an `organization_id` is given, the change is from the current Scaleway account to another Scaleway account.<br/> If no contact is given, the first contact of the other Scaleway account is taken.<br/> If the other Scaleway account has no contact. An error occurs.
func (*RegistrarAPI) TransferInDomain ¶
func (s *RegistrarAPI) TransferInDomain(req *RegistrarAPITransferInDomainRequest, opts ...scw.RequestOption) (*OrderResponse, error)
TransferInDomain: transfer a domain
Request the transfer from another registrar domain to Scaleway.
func (*RegistrarAPI) UnlockDomainTransfer ¶
func (s *RegistrarAPI) UnlockDomainTransfer(req *RegistrarAPIUnlockDomainTransferRequest, opts ...scw.RequestOption) (*Domain, error)
UnlockDomainTransfer: unlock domain transfer
Unlock domain transfer. An unlocked domain can be transferred and the auth code can be requested for this.
func (*RegistrarAPI) UpdateContact ¶
func (s *RegistrarAPI) UpdateContact(req *RegistrarAPIUpdateContactRequest, opts ...scw.RequestOption) (*Contact, error)
UpdateContact: update contact
You can edit the contact coordinates.
func (*RegistrarAPI) UpdateDomain ¶
func (s *RegistrarAPI) UpdateDomain(req *RegistrarAPIUpdateDomainRequest, opts ...scw.RequestOption) (*Domain, error)
UpdateDomain: update a domain
Update the domain contacts or create a new one.<br/> If you add the same contact for multiple roles. Only one ID will be created and used for all of them.
func (*RegistrarAPI) UpdateDomainHost ¶
func (s *RegistrarAPI) UpdateDomainHost(req *RegistrarAPIUpdateDomainHostRequest, opts ...scw.RequestOption) (*Host, error)
UpdateDomainHost: update domain hostname with glue IPs
type RegistrarAPIBuyDomainsRequest ¶
type RegistrarAPIBuyDomainsRequest struct {
Domains []string `json:"domains"`
DurationInYears uint32 `json:"duration_in_years"`
ProjectID string `json:"project_id"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContactID *string `json:"owner_contact_id,omitempty"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContact *NewContact `json:"owner_contact,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContactID *string `json:"administrative_contact_id,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContact *NewContact `json:"administrative_contact,omitempty"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContactID *string `json:"technical_contact_id,omitempty"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContact *NewContact `json:"technical_contact,omitempty"`
}
type RegistrarAPICheckContactsCompatibilityRequest ¶
type RegistrarAPICheckContactsCompatibilityRequest struct {
// Precisely one of Domain, Tld must be set.
Domain *string `json:"domain,omitempty"`
// Precisely one of Domain, Tld must be set.
Tld *string `json:"tld,omitempty"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContactID *string `json:"owner_contact_id,omitempty"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContact *NewContact `json:"owner_contact,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContactID *string `json:"administrative_contact_id,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContact *NewContact `json:"administrative_contact,omitempty"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContactID *string `json:"technical_contact_id,omitempty"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContact *NewContact `json:"technical_contact,omitempty"`
}
type RegistrarAPIDeleteExternalDomainRequest ¶
type RegistrarAPIDeleteExternalDomainRequest struct {
Domain string `json:"-"`
}
type RegistrarAPIDisableDomainAutoRenewRequest ¶
type RegistrarAPIDisableDomainAutoRenewRequest struct {
Domain string `json:"-"`
}
type RegistrarAPIDisableDomainDNSSECRequest ¶
type RegistrarAPIDisableDomainDNSSECRequest struct {
Domain string `json:"-"`
}
type RegistrarAPIEnableDomainAutoRenewRequest ¶
type RegistrarAPIEnableDomainAutoRenewRequest struct {
Domain string `json:"-"`
}
type RegistrarAPIGetContactRequest ¶
type RegistrarAPIGetContactRequest struct {
ContactID string `json:"-"`
}
type RegistrarAPIGetDomainAuthCodeRequest ¶
type RegistrarAPIGetDomainAuthCodeRequest struct {
Domain string `json:"-"`
}
type RegistrarAPIGetDomainRequest ¶
type RegistrarAPIGetDomainRequest struct {
Domain string `json:"-"`
}
type RegistrarAPIListDomainsRequest ¶
type RegistrarAPIListDomainsRequest struct {
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
// OrderBy:
//
// Default value: domain_asc
OrderBy ListDomainsRequestOrderBy `json:"-"`
Registrar *string `json:"-"`
// Status:
//
// Default value: status_unknown
Status DomainStatus `json:"-"`
ProjectID *string `json:"-"`
OrganizationID *string `json:"-"`
IsExternal *bool `json:"-"`
Domain *string `json:"-"`
}
type RegistrarAPIListRenewableDomainsRequest ¶
type RegistrarAPIListRenewableDomainsRequest struct {
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
// OrderBy:
//
// Default value: domain_asc
OrderBy ListRenewableDomainsRequestOrderBy `json:"-"`
ProjectID *string `json:"-"`
OrganizationID *string `json:"-"`
}
type RegistrarAPIListTasksRequest ¶
type RegistrarAPIListTasksRequest struct {
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
ProjectID *string `json:"-"`
OrganizationID *string `json:"-"`
Domain *string `json:"-"`
Types []TaskType `json:"-"`
Statuses []TaskStatus `json:"-"`
// OrderBy:
//
// Default value: domain_desc
OrderBy ListTasksRequestOrderBy `json:"-"`
}
type RegistrarAPILockDomainTransferRequest ¶
type RegistrarAPILockDomainTransferRequest struct {
Domain string `json:"-"`
}
type RegistrarAPITradeDomainRequest ¶
type RegistrarAPITradeDomainRequest struct {
Domain string `json:"-"`
ProjectID *string `json:"project_id"`
// Precisely one of NewOwnerContact, NewOwnerContactID must be set.
NewOwnerContactID *string `json:"new_owner_contact_id,omitempty"`
// Precisely one of NewOwnerContact, NewOwnerContactID must be set.
NewOwnerContact *NewContact `json:"new_owner_contact,omitempty"`
}
type RegistrarAPITransferInDomainRequest ¶
type RegistrarAPITransferInDomainRequest struct {
Domains []*TransferInDomainRequestTransferRequest `json:"domains"`
ProjectID string `json:"project_id"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContactID *string `json:"owner_contact_id,omitempty"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContact *NewContact `json:"owner_contact,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContactID *string `json:"administrative_contact_id,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContact *NewContact `json:"administrative_contact,omitempty"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContactID *string `json:"technical_contact_id,omitempty"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContact *NewContact `json:"technical_contact,omitempty"`
}
type RegistrarAPIUnlockDomainTransferRequest ¶
type RegistrarAPIUnlockDomainTransferRequest struct {
Domain string `json:"-"`
}
type RegistrarAPIUpdateContactRequest ¶
type RegistrarAPIUpdateContactRequest struct {
ContactID string `json:"-"`
Email *string `json:"email"`
EmailAlt *string `json:"email_alt"`
PhoneNumber *string `json:"phone_number"`
FaxNumber *string `json:"fax_number"`
AddressLine1 *string `json:"address_line_1"`
AddressLine2 *string `json:"address_line_2"`
Zip *string `json:"zip"`
City *string `json:"city"`
Country *string `json:"country"`
VatIdentificationCode *string `json:"vat_identification_code"`
CompanyIdentificationCode *string `json:"company_identification_code"`
// Lang:
//
// Default value: unknown_language_code
Lang LanguageCode `json:"lang"`
Resale *bool `json:"resale"`
// Deprecated
Questions *[]*UpdateContactRequestQuestion `json:"questions,omitempty"`
ExtensionFr *ContactExtensionFR `json:"extension_fr"`
ExtensionEu *ContactExtensionEU `json:"extension_eu"`
WhoisOptIn *bool `json:"whois_opt_in"`
State *string `json:"state"`
ExtensionNl *ContactExtensionNL `json:"extension_nl"`
}
type RegistrarAPIUpdateDomainRequest ¶
type RegistrarAPIUpdateDomainRequest struct {
Domain string `json:"-"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContactID *string `json:"technical_contact_id,omitempty"`
// Precisely one of TechnicalContact, TechnicalContactID must be set.
TechnicalContact *NewContact `json:"technical_contact,omitempty"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContactID *string `json:"owner_contact_id,omitempty"`
// Precisely one of OwnerContact, OwnerContactID must be set.
OwnerContact *NewContact `json:"owner_contact,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContactID *string `json:"administrative_contact_id,omitempty"`
// Precisely one of AdministrativeContact, AdministrativeContactID must be set.
AdministrativeContact *NewContact `json:"administrative_contact,omitempty"`
}
type RenewableDomain ¶
type RenewableDomain struct {
Domain string `json:"domain"`
ProjectID string `json:"project_id"`
OrganizationID string `json:"organization_id"`
// Status:
//
// Default value: unknown
Status RenewableDomainStatus `json:"status"`
RenewableDurationInYears *int32 `json:"renewable_duration_in_years"`
ExpiredAt *time.Time `json:"expired_at"`
LimitRenewAt *time.Time `json:"limit_renew_at"`
LimitRedemptionAt *time.Time `json:"limit_redemption_at"`
EstimatedDeleteAt *time.Time `json:"estimated_delete_at"`
Tld *Tld `json:"tld"`
}
type RenewableDomainStatus ¶
type RenewableDomainStatus string
func (RenewableDomainStatus) MarshalJSON ¶
func (enum RenewableDomainStatus) MarshalJSON() ([]byte, error)
func (RenewableDomainStatus) String ¶
func (enum RenewableDomainStatus) String() string
func (*RenewableDomainStatus) UnmarshalJSON ¶
func (enum *RenewableDomainStatus) UnmarshalJSON(data []byte) error
type RestoreDNSZoneVersionRequest ¶
type RestoreDNSZoneVersionRequest struct {
DNSZoneVersionID string `json:"-"`
}
type RestoreDNSZoneVersionResponse ¶
type RestoreDNSZoneVersionResponse struct {
}
RestoreDNSZoneVersionResponse: restore dns zone version response
type SSLCertificate ¶
type SSLCertificate struct {
DNSZone string `json:"dns_zone"`
AlternativeDNSZones []string `json:"alternative_dns_zones"`
// Status:
//
// Default value: unknown
Status SSLCertificateStatus `json:"status"`
PrivateKey string `json:"private_key"`
CertificateChain string `json:"certificate_chain"`
CreatedAt *time.Time `json:"created_at"`
ExpiredAt *time.Time `json:"expired_at"`
}
type SSLCertificateStatus ¶
type SSLCertificateStatus string
func (SSLCertificateStatus) MarshalJSON ¶
func (enum SSLCertificateStatus) MarshalJSON() ([]byte, error)
func (SSLCertificateStatus) String ¶
func (enum SSLCertificateStatus) String() string
func (*SSLCertificateStatus) UnmarshalJSON ¶
func (enum *SSLCertificateStatus) UnmarshalJSON(data []byte) error
type SearchAvailableDomainsResponse ¶
type SearchAvailableDomainsResponse struct {
// AvailableDomains: array of available domains
AvailableDomains []*AvailableDomain `json:"available_domains"`
}
SearchAvailableDomainsResponse: search available domains response
type Task ¶
type Task struct {
ID string `json:"id"`
ProjectID string `json:"project_id"`
OrganizationID string `json:"organization_id"`
Domain *string `json:"domain"`
// Type:
//
// Default value: unknown
Type TaskType `json:"type"`
// Status:
//
// Default value: unavailable
Status TaskStatus `json:"status"`
StartedAt *time.Time `json:"started_at"`
UpdatedAt *time.Time `json:"updated_at"`
Message *string `json:"message"`
}
type TaskStatus ¶
type TaskStatus string
func (TaskStatus) MarshalJSON ¶
func (enum TaskStatus) MarshalJSON() ([]byte, error)
func (TaskStatus) String ¶
func (enum TaskStatus) String() string
func (*TaskStatus) UnmarshalJSON ¶
func (enum *TaskStatus) UnmarshalJSON(data []byte) error
type Tld ¶
type Tld struct {
Name string `json:"name"`
DnssecSupport bool `json:"dnssec_support"`
DurationInYearsMin uint32 `json:"duration_in_years_min"`
DurationInYearsMax uint32 `json:"duration_in_years_max"`
IdnSupport bool `json:"idn_support"`
Offers map[string]*TldOffer `json:"offers"`
Specifications map[string]string `json:"specifications"`
}
type UpdateDNSZoneNameserversRequest ¶
type UpdateDNSZoneNameserversRequest struct {
// DNSZone: the DNS zone where the DNS zone nameservers will be updated
DNSZone string `json:"-"`
// Ns: the new DNS zone nameservers
Ns []*Nameserver `json:"ns"`
}
type UpdateDNSZoneNameserversResponse ¶
type UpdateDNSZoneNameserversResponse struct {
// Ns: the returned DNS zone nameservers
Ns []*Nameserver `json:"ns"`
}
UpdateDNSZoneNameserversResponse: update dns zone nameservers response
type UpdateDNSZoneRecordsRequest ¶
type UpdateDNSZoneRecordsRequest struct {
// DNSZone: the DNS zone where the DNS zone records will be updated
DNSZone string `json:"-"`
// Changes: the changes made to the records
Changes []*RecordChange `json:"changes"`
// ReturnAllRecords: whether or not to return all the records
ReturnAllRecords *bool `json:"return_all_records"`
// DisallowNewZoneCreation: forbid the creation of the target zone if not existing (default action is yes)
DisallowNewZoneCreation bool `json:"disallow_new_zone_creation"`
// Serial: don't use the autoincremenent serial but the provided one (0 to keep the same)
Serial *uint64 `json:"serial"`
}
type UpdateDNSZoneRecordsResponse ¶
type UpdateDNSZoneRecordsResponse struct {
// Records: the returned DNS zone records
Records []*Record `json:"records"`
}
UpdateDNSZoneRecordsResponse: update dns zone records response