@@ -241,8 +241,14 @@ type CertificatePackNewResponse struct {
241241 Status Status `json:"status"`
242242 // Type of certificate pack.
243243 Type CertificatePackNewResponseType `json:"type"`
244+ // Domain validation errors that have been received by the certificate authority
245+ // (CA).
246+ ValidationErrors []CertificatePackNewResponseValidationError `json:"validation_errors"`
244247 // Validation Method selected for the order.
245248 ValidationMethod CertificatePackNewResponseValidationMethod `json:"validation_method"`
249+ // Certificates' validation records. Only present when certificate pack is in
250+ // "pending_validation" status
251+ ValidationRecords []CertificatePackNewResponseValidationRecord `json:"validation_records"`
246252 // Validity Days selected for the order.
247253 ValidityDays CertificatePackNewResponseValidityDays `json:"validity_days"`
248254 JSON certificatePackNewResponseJSON `json:"-"`
@@ -257,7 +263,9 @@ type certificatePackNewResponseJSON struct {
257263 Hosts apijson.Field
258264 Status apijson.Field
259265 Type apijson.Field
266+ ValidationErrors apijson.Field
260267 ValidationMethod apijson.Field
268+ ValidationRecords apijson.Field
261269 ValidityDays apijson.Field
262270 raw string
263271 ExtraFields map [string ]apijson.Field
@@ -294,17 +302,46 @@ func (r CertificatePackNewResponseCertificateAuthority) IsKnown() bool {
294302type CertificatePackNewResponseType string
295303
296304const (
297- CertificatePackNewResponseTypeAdvanced CertificatePackNewResponseType = "advanced"
305+ CertificatePackNewResponseTypeMhCustom CertificatePackNewResponseType = "mh_custom"
306+ CertificatePackNewResponseTypeManagedHostname CertificatePackNewResponseType = "managed_hostname"
307+ CertificatePackNewResponseTypeSNICustom CertificatePackNewResponseType = "sni_custom"
308+ CertificatePackNewResponseTypeUniversal CertificatePackNewResponseType = "universal"
309+ CertificatePackNewResponseTypeAdvanced CertificatePackNewResponseType = "advanced"
310+ CertificatePackNewResponseTypeTotalTLS CertificatePackNewResponseType = "total_tls"
311+ CertificatePackNewResponseTypeKeyless CertificatePackNewResponseType = "keyless"
312+ CertificatePackNewResponseTypeLegacyCustom CertificatePackNewResponseType = "legacy_custom"
298313)
299314
300315func (r CertificatePackNewResponseType ) IsKnown () bool {
301316 switch r {
302- case CertificatePackNewResponseTypeAdvanced :
317+ case CertificatePackNewResponseTypeMhCustom , CertificatePackNewResponseTypeManagedHostname , CertificatePackNewResponseTypeSNICustom , CertificatePackNewResponseTypeUniversal , CertificatePackNewResponseTypeAdvanced , CertificatePackNewResponseTypeTotalTLS , CertificatePackNewResponseTypeKeyless , CertificatePackNewResponseTypeLegacyCustom :
303318 return true
304319 }
305320 return false
306321}
307322
323+ type CertificatePackNewResponseValidationError struct {
324+ // A domain validation error.
325+ Message string `json:"message"`
326+ JSON certificatePackNewResponseValidationErrorJSON `json:"-"`
327+ }
328+
329+ // certificatePackNewResponseValidationErrorJSON contains the JSON metadata for the
330+ // struct [CertificatePackNewResponseValidationError]
331+ type certificatePackNewResponseValidationErrorJSON struct {
332+ Message apijson.Field
333+ raw string
334+ ExtraFields map [string ]apijson.Field
335+ }
336+
337+ func (r * CertificatePackNewResponseValidationError ) UnmarshalJSON (data []byte ) (err error ) {
338+ return apijson .UnmarshalRoot (data , r )
339+ }
340+
341+ func (r certificatePackNewResponseValidationErrorJSON ) RawJSON () string {
342+ return r .raw
343+ }
344+
308345// Validation Method selected for the order.
309346type CertificatePackNewResponseValidationMethod string
310347
@@ -322,6 +359,45 @@ func (r CertificatePackNewResponseValidationMethod) IsKnown() bool {
322359 return false
323360}
324361
362+ // Certificate's required validation record.
363+ type CertificatePackNewResponseValidationRecord struct {
364+ // The set of email addresses that the certificate authority (CA) will use to
365+ // complete domain validation.
366+ Emails []string `json:"emails"`
367+ // The content that the certificate authority (CA) will expect to find at the
368+ // http_url during the domain validation.
369+ HTTPBody string `json:"http_body"`
370+ // The url that will be checked during domain validation.
371+ HTTPURL string `json:"http_url"`
372+ // The hostname that the certificate authority (CA) will check for a TXT record
373+ // during domain validation .
374+ TXTName string `json:"txt_name"`
375+ // The TXT record that the certificate authority (CA) will check during domain
376+ // validation.
377+ TXTValue string `json:"txt_value"`
378+ JSON certificatePackNewResponseValidationRecordJSON `json:"-"`
379+ }
380+
381+ // certificatePackNewResponseValidationRecordJSON contains the JSON metadata for
382+ // the struct [CertificatePackNewResponseValidationRecord]
383+ type certificatePackNewResponseValidationRecordJSON struct {
384+ Emails apijson.Field
385+ HTTPBody apijson.Field
386+ HTTPURL apijson.Field
387+ TXTName apijson.Field
388+ TXTValue apijson.Field
389+ raw string
390+ ExtraFields map [string ]apijson.Field
391+ }
392+
393+ func (r * CertificatePackNewResponseValidationRecord ) UnmarshalJSON (data []byte ) (err error ) {
394+ return apijson .UnmarshalRoot (data , r )
395+ }
396+
397+ func (r certificatePackNewResponseValidationRecordJSON ) RawJSON () string {
398+ return r .raw
399+ }
400+
325401// Validity Days selected for the order.
326402type CertificatePackNewResponseValidityDays int64
327403
@@ -381,8 +457,14 @@ type CertificatePackEditResponse struct {
381457 Status Status `json:"status"`
382458 // Type of certificate pack.
383459 Type CertificatePackEditResponseType `json:"type"`
460+ // Domain validation errors that have been received by the certificate authority
461+ // (CA).
462+ ValidationErrors []CertificatePackEditResponseValidationError `json:"validation_errors"`
384463 // Validation Method selected for the order.
385464 ValidationMethod CertificatePackEditResponseValidationMethod `json:"validation_method"`
465+ // Certificates' validation records. Only present when certificate pack is in
466+ // "pending_validation" status
467+ ValidationRecords []CertificatePackEditResponseValidationRecord `json:"validation_records"`
386468 // Validity Days selected for the order.
387469 ValidityDays CertificatePackEditResponseValidityDays `json:"validity_days"`
388470 JSON certificatePackEditResponseJSON `json:"-"`
@@ -397,7 +479,9 @@ type certificatePackEditResponseJSON struct {
397479 Hosts apijson.Field
398480 Status apijson.Field
399481 Type apijson.Field
482+ ValidationErrors apijson.Field
400483 ValidationMethod apijson.Field
484+ ValidationRecords apijson.Field
401485 ValidityDays apijson.Field
402486 raw string
403487 ExtraFields map [string ]apijson.Field
@@ -434,17 +518,46 @@ func (r CertificatePackEditResponseCertificateAuthority) IsKnown() bool {
434518type CertificatePackEditResponseType string
435519
436520const (
437- CertificatePackEditResponseTypeAdvanced CertificatePackEditResponseType = "advanced"
521+ CertificatePackEditResponseTypeMhCustom CertificatePackEditResponseType = "mh_custom"
522+ CertificatePackEditResponseTypeManagedHostname CertificatePackEditResponseType = "managed_hostname"
523+ CertificatePackEditResponseTypeSNICustom CertificatePackEditResponseType = "sni_custom"
524+ CertificatePackEditResponseTypeUniversal CertificatePackEditResponseType = "universal"
525+ CertificatePackEditResponseTypeAdvanced CertificatePackEditResponseType = "advanced"
526+ CertificatePackEditResponseTypeTotalTLS CertificatePackEditResponseType = "total_tls"
527+ CertificatePackEditResponseTypeKeyless CertificatePackEditResponseType = "keyless"
528+ CertificatePackEditResponseTypeLegacyCustom CertificatePackEditResponseType = "legacy_custom"
438529)
439530
440531func (r CertificatePackEditResponseType ) IsKnown () bool {
441532 switch r {
442- case CertificatePackEditResponseTypeAdvanced :
533+ case CertificatePackEditResponseTypeMhCustom , CertificatePackEditResponseTypeManagedHostname , CertificatePackEditResponseTypeSNICustom , CertificatePackEditResponseTypeUniversal , CertificatePackEditResponseTypeAdvanced , CertificatePackEditResponseTypeTotalTLS , CertificatePackEditResponseTypeKeyless , CertificatePackEditResponseTypeLegacyCustom :
443534 return true
444535 }
445536 return false
446537}
447538
539+ type CertificatePackEditResponseValidationError struct {
540+ // A domain validation error.
541+ Message string `json:"message"`
542+ JSON certificatePackEditResponseValidationErrorJSON `json:"-"`
543+ }
544+
545+ // certificatePackEditResponseValidationErrorJSON contains the JSON metadata for
546+ // the struct [CertificatePackEditResponseValidationError]
547+ type certificatePackEditResponseValidationErrorJSON struct {
548+ Message apijson.Field
549+ raw string
550+ ExtraFields map [string ]apijson.Field
551+ }
552+
553+ func (r * CertificatePackEditResponseValidationError ) UnmarshalJSON (data []byte ) (err error ) {
554+ return apijson .UnmarshalRoot (data , r )
555+ }
556+
557+ func (r certificatePackEditResponseValidationErrorJSON ) RawJSON () string {
558+ return r .raw
559+ }
560+
448561// Validation Method selected for the order.
449562type CertificatePackEditResponseValidationMethod string
450563
@@ -462,6 +575,45 @@ func (r CertificatePackEditResponseValidationMethod) IsKnown() bool {
462575 return false
463576}
464577
578+ // Certificate's required validation record.
579+ type CertificatePackEditResponseValidationRecord struct {
580+ // The set of email addresses that the certificate authority (CA) will use to
581+ // complete domain validation.
582+ Emails []string `json:"emails"`
583+ // The content that the certificate authority (CA) will expect to find at the
584+ // http_url during the domain validation.
585+ HTTPBody string `json:"http_body"`
586+ // The url that will be checked during domain validation.
587+ HTTPURL string `json:"http_url"`
588+ // The hostname that the certificate authority (CA) will check for a TXT record
589+ // during domain validation .
590+ TXTName string `json:"txt_name"`
591+ // The TXT record that the certificate authority (CA) will check during domain
592+ // validation.
593+ TXTValue string `json:"txt_value"`
594+ JSON certificatePackEditResponseValidationRecordJSON `json:"-"`
595+ }
596+
597+ // certificatePackEditResponseValidationRecordJSON contains the JSON metadata for
598+ // the struct [CertificatePackEditResponseValidationRecord]
599+ type certificatePackEditResponseValidationRecordJSON struct {
600+ Emails apijson.Field
601+ HTTPBody apijson.Field
602+ HTTPURL apijson.Field
603+ TXTName apijson.Field
604+ TXTValue apijson.Field
605+ raw string
606+ ExtraFields map [string ]apijson.Field
607+ }
608+
609+ func (r * CertificatePackEditResponseValidationRecord ) UnmarshalJSON (data []byte ) (err error ) {
610+ return apijson .UnmarshalRoot (data , r )
611+ }
612+
613+ func (r certificatePackEditResponseValidationRecordJSON ) RawJSON () string {
614+ return r .raw
615+ }
616+
465617// Validity Days selected for the order.
466618type CertificatePackEditResponseValidityDays int64
467619
0 commit comments