Skip to content

Commit

Permalink
Merge pull request #37 from puppetlabs/custom-domain-self-managed-cer…
Browse files Browse the repository at this point in the history
…tificates

Add fields required to support self-managed certificates
  • Loading branch information
sergiught authored Apr 7, 2022
2 parents 6eab95f + 0874e7b commit 8e4e76e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions management/custom_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down
16 changes: 16 additions & 0 deletions management/management.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e4e76e

Please sign in to comment.