@@ -38,7 +38,8 @@ func NewCustomTrustStoreService(opts ...option.RequestOption) (r *CustomTrustSto
3838 return
3939}
4040
41- // Add Custom Origin Trust Store for a Zone.
41+ // Upload a root CA certificate to the Custom Origin Trust Store for a Zone. Only
42+ // root CA certificates are accepted.
4243func (r * CustomTrustStoreService ) New (ctx context.Context , params CustomTrustStoreNewParams , opts ... option.RequestOption ) (res * CustomTrustStore , err error ) {
4344 var env CustomTrustStoreNewResponseEnvelope
4445 opts = slices .Concat (r .Options , opts )
@@ -82,7 +83,7 @@ func (r *CustomTrustStoreService) ListAutoPaging(ctx context.Context, params Cus
8283 return pagination .NewV4PagePaginationArrayAutoPager (r .List (ctx , params , opts ... ))
8384}
8485
85- // Removes a CA certificate from the custom origin trust store. Origins using
86+ // Removes a root CA certificate from the custom origin trust store. Origins using
8687// certificates signed by this CA will no longer be trusted.
8788func (r * CustomTrustStoreService ) Delete (ctx context.Context , customOriginTrustStoreID string , body CustomTrustStoreDeleteParams , opts ... option.RequestOption ) (res * CustomTrustStoreDeleteResponse , err error ) {
8889 var env CustomTrustStoreDeleteResponseEnvelope
@@ -104,8 +105,8 @@ func (r *CustomTrustStoreService) Delete(ctx context.Context, customOriginTrustS
104105 return res , nil
105106}
106107
107- // Retrieves details about a specific certificate in the custom origin trust store,
108- // including expiration and subject information.
108+ // Retrieves details about a specific root CA certificate in the custom origin
109+ // trust store, including expiration and subject information.
109110func (r * CustomTrustStoreService ) Get (ctx context.Context , customOriginTrustStoreID string , query CustomTrustStoreGetParams , opts ... option.RequestOption ) (res * CustomTrustStore , err error ) {
110111 var env CustomTrustStoreGetResponseEnvelope
111112 opts = slices .Concat (r .Options , opts )
@@ -129,7 +130,8 @@ func (r *CustomTrustStoreService) Get(ctx context.Context, customOriginTrustStor
129130type CustomTrustStore struct {
130131 // Identifier.
131132 ID string `json:"id" api:"required"`
132- // The zone's SSL certificate or certificate and the intermediate(s).
133+ // The root CA certificate in PEM format. Only root CA certificates are accepted;
134+ // intermediate and leaf certificates are not supported.
133135 Certificate string `json:"certificate" api:"required"`
134136 // When the certificate expires.
135137 ExpiresOn time.Time `json:"expires_on" api:"required" format:"date-time"`
@@ -214,7 +216,8 @@ func (r customTrustStoreDeleteResponseJSON) RawJSON() string {
214216type CustomTrustStoreNewParams struct {
215217 // Identifier.
216218 ZoneID param.Field [string ] `path:"zone_id" api:"required"`
217- // The zone's SSL certificate or certificate and the intermediate(s).
219+ // The root CA certificate in PEM format. Only root CA certificates are accepted;
220+ // intermediate and leaf certificates are not supported.
218221 Certificate param.Field [string ] `json:"certificate" api:"required"`
219222}
220223
0 commit comments