diff --git a/management/custom_domain.go b/management/custom_domain.go index 458708ea..86c0073a 100644 --- a/management/custom_domain.go +++ b/management/custom_domain.go @@ -22,6 +22,15 @@ type CustomDomain struct { // "disabled", "pending", "pending_verification" or "ready" Status *string `json:"status,omitempty"` + // The origin domain name that the CNAME or reverse proxy should be pointed + // to. + OriginDomainName *string `json:"origin_domain_name,omitempty"` + + // For self-managed certificates, when the verification completes for the + // first time, this field will be set to the value the reverse proxy should + // send in the cname-api-key header field. + CNAMEAPIKey *string `json:"cname_api_key,omitempty"` + // The custom domain verification method. The only allowed value is "txt". VerificationMethod *string `json:"verification_method,omitempty"` diff --git a/management/management.gen.go b/management/management.gen.go index 06a66613..f0f4596c 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -3540,6 +3540,14 @@ func (c *CreateEnrollmentTicket) String() string { return Stringify(c) } +// GetCNAMEAPIKey returns the CNAMEAPIKey field if it's non-nil, zero value otherwise. +func (c *CustomDomain) GetCNAMEAPIKey() string { + if c == nil || c.CNAMEAPIKey == nil { + return "" + } + return *c.CNAMEAPIKey +} + // GetCustomClientIPHeader returns the CustomClientIPHeader field if it's non-nil, zero value otherwise. func (c *CustomDomain) GetCustomClientIPHeader() string { if c == nil || c.CustomClientIPHeader == nil { @@ -3564,6 +3572,14 @@ func (c *CustomDomain) GetID() string { return *c.ID } +// GetOriginDomainName returns the OriginDomainName field if it's non-nil, zero value otherwise. +func (c *CustomDomain) GetOriginDomainName() string { + if c == nil || c.OriginDomainName == nil { + return "" + } + return *c.OriginDomainName +} + // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. func (c *CustomDomain) GetPrimary() bool { if c == nil || c.Primary == nil {