@@ -108,19 +108,19 @@ func (r *ClientCertificateService) Delete(ctx context.Context, clientCertificate
108108
109109// If a API Shield mTLS Client Certificate is in a pending_revocation state, you
110110// may reactivate it with this endpoint.
111- func (r * ClientCertificateService ) Edit (ctx context.Context , clientCertificateID string , body ClientCertificateEditParams , opts ... option.RequestOption ) (res * ClientCertificate , err error ) {
111+ func (r * ClientCertificateService ) Edit (ctx context.Context , clientCertificateID string , params ClientCertificateEditParams , opts ... option.RequestOption ) (res * ClientCertificate , err error ) {
112112 var env ClientCertificateEditResponseEnvelope
113113 opts = slices .Concat (r .Options , opts )
114- if body .ZoneID .Value == "" {
114+ if params .ZoneID .Value == "" {
115115 err = errors .New ("missing required zone_id parameter" )
116116 return
117117 }
118118 if clientCertificateID == "" {
119119 err = errors .New ("missing required client_certificate_id parameter" )
120120 return
121121 }
122- path := fmt .Sprintf ("zones/%s/client_certificates/%s" , body .ZoneID , clientCertificateID )
123- err = requestconfig .ExecuteNewRequest (ctx , http .MethodPatch , path , nil , & env , opts ... )
122+ path := fmt .Sprintf ("zones/%s/client_certificates/%s" , params .ZoneID , clientCertificateID )
123+ err = requestconfig .ExecuteNewRequest (ctx , http .MethodPatch , path , params , & env , opts ... )
124124 if err != nil {
125125 return
126126 }
@@ -588,7 +588,12 @@ func (r ClientCertificateDeleteResponseEnvelopeSuccess) IsKnown() bool {
588588
589589type ClientCertificateEditParams struct {
590590 // Identifier.
591- ZoneID param.Field [string ] `path:"zone_id,required"`
591+ ZoneID param.Field [string ] `path:"zone_id,required"`
592+ Reactivate param.Field [bool ] `json:"reactivate"`
593+ }
594+
595+ func (r ClientCertificateEditParams ) MarshalJSON () (data []byte , err error ) {
596+ return apijson .MarshalRoot (r )
592597}
593598
594599type ClientCertificateEditResponseEnvelope struct {
0 commit comments