Skip to content

Commit 1d619b6

Browse files
chore(api): update composite API spec
1 parent 772275a commit 1d619b6

7 files changed

Lines changed: 302 additions & 235 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2232
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 20525f5883d4d78be797dee296df1442
3+
openapi_spec_hash: 0a99f50e35e07f6bf24899f6cb02ca0f
44
config_hash: cef856e42543e49d9b09cb9eac20dc9e

acm/customtruststore.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
4243
func (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.
8788
func (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.
109110
func (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
129130
type 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 {
214216
type 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

Comments
 (0)