@@ -104,9 +104,9 @@ func (r *CertificatePackService) Delete(ctx context.Context, certificatePackID s
104
104
return
105
105
}
106
106
107
- // For a given zone, restart validation for an advanced certificate pack. This is
108
- // only a validation operation for a Certificate Pack in a validation_timed_out
109
- // status.
107
+ // For a given zone, restart validation or add cloudflare branding for an advanced
108
+ // certificate pack. The former is only a validation operation for a Certificate
109
+ // Pack in a validation_timed_out status.
110
110
func (r * CertificatePackService ) Edit (ctx context.Context , certificatePackID string , params CertificatePackEditParams , opts ... option.RequestOption ) (res * CertificatePackEditResponse , err error ) {
111
111
var env CertificatePackEditResponseEnvelope
112
112
opts = append (r .Options [:], opts ... )
@@ -232,8 +232,8 @@ type CertificatePackNewResponse struct {
232
232
// authority specific details or restrictions
233
233
// [see this page for more details.](https://developers.cloudflare.com/ssl/reference/certificate-authorities)
234
234
CertificateAuthority CertificatePackNewResponseCertificateAuthority `json:"certificate_authority"`
235
- // Whether or not to add Cloudflare Branding for the order. This will add
236
- // sni.cloudflaressl.com as the Common Name if set true.
235
+ // Whether or not to add Cloudflare Branding for the order. This will add a
236
+ // subdomain of sni.cloudflaressl.com as the Common Name if set to true.
237
237
CloudflareBranding bool `json:"cloudflare_branding"`
238
238
// Comma separated list of valid host names for the certificate packs. Must contain
239
239
// the zone apex, may not contain more than 50 hosts, and may not be empty.
@@ -372,8 +372,8 @@ type CertificatePackEditResponse struct {
372
372
// authority specific details or restrictions
373
373
// [see this page for more details.](https://developers.cloudflare.com/ssl/reference/certificate-authorities)
374
374
CertificateAuthority CertificatePackEditResponseCertificateAuthority `json:"certificate_authority"`
375
- // Whether or not to add Cloudflare Branding for the order. This will add
376
- // sni.cloudflaressl.com as the Common Name if set true.
375
+ // Whether or not to add Cloudflare Branding for the order. This will add a
376
+ // subdomain of sni.cloudflaressl.com as the Common Name if set to true.
377
377
CloudflareBranding bool `json:"cloudflare_branding"`
378
378
// Comma separated list of valid host names for the certificate packs. Must contain
379
379
// the zone apex, may not contain more than 50 hosts, and may not be empty.
@@ -499,8 +499,8 @@ type CertificatePackNewParams struct {
499
499
ValidationMethod param.Field [CertificatePackNewParamsValidationMethod ] `json:"validation_method,required"`
500
500
// Validity Days selected for the order.
501
501
ValidityDays param.Field [CertificatePackNewParamsValidityDays ] `json:"validity_days,required"`
502
- // Whether or not to add Cloudflare Branding for the order. This will add
503
- // sni.cloudflaressl.com as the Common Name if set true.
502
+ // Whether or not to add Cloudflare Branding for the order. This will add a
503
+ // subdomain of sni.cloudflaressl.com as the Common Name if set to true.
504
504
CloudflareBranding param.Field [bool ] `json:"cloudflare_branding"`
505
505
}
506
506
@@ -702,11 +702,13 @@ func (r CertificatePackDeleteResponseEnvelopeSuccess) IsKnown() bool {
702
702
type CertificatePackEditParams struct {
703
703
// Identifier
704
704
ZoneID param.Field [string ] `path:"zone_id,required"`
705
- Body interface {} `json:"body,required"`
705
+ // Whether or not to add Cloudflare Branding for the order. This will add a
706
+ // subdomain of sni.cloudflaressl.com as the Common Name if set to true.
707
+ CloudflareBranding param.Field [bool ] `json:"cloudflare_branding"`
706
708
}
707
709
708
710
func (r CertificatePackEditParams ) MarshalJSON () (data []byte , err error ) {
709
- return apijson .MarshalRoot (r . Body )
711
+ return apijson .MarshalRoot (r )
710
712
}
711
713
712
714
type CertificatePackEditResponseEnvelope struct {
0 commit comments