Skip to content

Commit

Permalink
feat(api): OpenAPI spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 1, 2024
1 parent 050c530 commit 583a05a
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 206 deletions.
20 changes: 10 additions & 10 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,29 +562,29 @@ Methods:
- <code title="patch /zones/{zone_identifier}/settings/sort_query_string_for_cache">client.Zones.Settings.SortQueryStringForCaches.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSortQueryStringForCachService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSortQueryStringForCachUpdateParams">ZoneSettingSortQueryStringForCachUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSortQueryStringForCachUpdateResponse">ZoneSettingSortQueryStringForCachUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_identifier}/settings/sort_query_string_for_cache">client.Zones.Settings.SortQueryStringForCaches.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSortQueryStringForCachService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSortQueryStringForCachListResponse">ZoneSettingSortQueryStringForCachListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Ssls
### SSLs

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslUpdateResponse">ZoneSettingSslUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslListResponse">ZoneSettingSslListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLUpdateResponse">ZoneSettingSSLUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLListResponse">ZoneSettingSSLListResponse</a>

Methods:

- <code title="patch /zones/{zone_identifier}/settings/ssl">client.Zones.Settings.Ssls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslUpdateParams">ZoneSettingSslUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslUpdateResponse">ZoneSettingSslUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_identifier}/settings/ssl">client.Zones.Settings.Ssls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslListResponse">ZoneSettingSslListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_identifier}/settings/ssl">client.Zones.Settings.SSLs.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLUpdateParams">ZoneSettingSSLUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLUpdateResponse">ZoneSettingSSLUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_identifier}/settings/ssl">client.Zones.Settings.SSLs.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLListResponse">ZoneSettingSSLListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### SslRecommenders
### SSLRecommenders

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslRecommenderUpdateResponse">ZoneSettingSslRecommenderUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslRecommenderListResponse">ZoneSettingSslRecommenderListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLRecommenderUpdateResponse">ZoneSettingSSLRecommenderUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLRecommenderListResponse">ZoneSettingSSLRecommenderListResponse</a>

Methods:

- <code title="patch /zones/{zone_identifier}/settings/ssl_recommender">client.Zones.Settings.SslRecommenders.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslRecommenderService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslRecommenderUpdateParams">ZoneSettingSslRecommenderUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslRecommenderUpdateResponse">ZoneSettingSslRecommenderUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_identifier}/settings/ssl_recommender">client.Zones.Settings.SslRecommenders.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslRecommenderService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSslRecommenderListResponse">ZoneSettingSslRecommenderListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_identifier}/settings/ssl_recommender">client.Zones.Settings.SSLRecommenders.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLRecommenderService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLRecommenderUpdateParams">ZoneSettingSSLRecommenderUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLRecommenderUpdateResponse">ZoneSettingSSLRecommenderUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_identifier}/settings/ssl_recommender">client.Zones.Settings.SSLRecommenders.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLRecommenderService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, zoneIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#ZoneSettingSSLRecommenderListResponse">ZoneSettingSSLRecommenderListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### TLS1_3s

Expand Down
22 changes: 11 additions & 11 deletions zonesetting.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ type ZoneSettingService struct {
SecurityLevels *ZoneSettingSecurityLevelService
ServerSideExcludes *ZoneSettingServerSideExcludeService
SortQueryStringForCaches *ZoneSettingSortQueryStringForCachService
Ssls *ZoneSettingSslService
SslRecommenders *ZoneSettingSslRecommenderService
SSLs *ZoneSettingSSLService
SSLRecommenders *ZoneSettingSSLRecommenderService
TLS1_3s *ZoneSettingTLS1_3Service
TLSClientAuths *ZoneSettingTLSClientAuthService
TrueClientIPHeaders *ZoneSettingTrueClientIPHeaderService
Expand Down Expand Up @@ -120,8 +120,8 @@ func NewZoneSettingService(opts ...option.RequestOption) (r *ZoneSettingService)
r.SecurityLevels = NewZoneSettingSecurityLevelService(opts...)
r.ServerSideExcludes = NewZoneSettingServerSideExcludeService(opts...)
r.SortQueryStringForCaches = NewZoneSettingSortQueryStringForCachService(opts...)
r.Ssls = NewZoneSettingSslService(opts...)
r.SslRecommenders = NewZoneSettingSslRecommenderService(opts...)
r.SSLs = NewZoneSettingSSLService(opts...)
r.SSLRecommenders = NewZoneSettingSSLRecommenderService(opts...)
r.TLS1_3s = NewZoneSettingTLS1_3Service(opts...)
r.TLSClientAuths = NewZoneSettingTLSClientAuthService(opts...)
r.TrueClientIPHeaders = NewZoneSettingTrueClientIPHeaderService(opts...)
Expand Down Expand Up @@ -306,7 +306,7 @@ func (r ZoneSettingEditParams) MarshalJSON() (data []byte, err error) {
// [ZoneSettingEditParamsItemsObject], [ZoneSettingEditParamsItemsObject],
// [ZoneSettingEditParamsItemsObject], [ZoneSettingEditParamsItemsObject],
// [ZoneSettingEditParamsItemsObject],
// [ZoneSettingEditParamsItemsZonesSslRecommender],
// [ZoneSettingEditParamsItemsZonesSSLRecommender],
// [ZoneSettingEditParamsItemsObject], [ZoneSettingEditParamsItemsObject],
// [ZoneSettingEditParamsItemsObject], [ZoneSettingEditParamsItemsObject],
// [ZoneSettingEditParamsItemsObject], [ZoneSettingEditParamsItemsObject],
Expand Down Expand Up @@ -377,22 +377,22 @@ const (
// Enrollment in the SSL/TLS Recommender service which tries to detect and
// recommend (by sending periodic emails) the most secure SSL/TLS setting your
// origin servers support.
type ZoneSettingEditParamsItemsZonesSslRecommender struct {
type ZoneSettingEditParamsItemsZonesSSLRecommender struct {
// Enrollment value for SSL/TLS Recommender.
ID param.Field[ZoneSettingEditParamsItemsZonesSslRecommenderID] `json:"id"`
ID param.Field[ZoneSettingEditParamsItemsZonesSSLRecommenderID] `json:"id"`
// ssl-recommender enrollment setting.
Enabled param.Field[bool] `json:"enabled"`
}

func (r ZoneSettingEditParamsItemsZonesSslRecommender) MarshalJSON() (data []byte, err error) {
func (r ZoneSettingEditParamsItemsZonesSSLRecommender) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}

func (r ZoneSettingEditParamsItemsZonesSslRecommender) implementsZoneSettingEditParamsItem() {}
func (r ZoneSettingEditParamsItemsZonesSSLRecommender) implementsZoneSettingEditParamsItem() {}

// Enrollment value for SSL/TLS Recommender.
type ZoneSettingEditParamsItemsZonesSslRecommenderID string
type ZoneSettingEditParamsItemsZonesSSLRecommenderID string

const (
ZoneSettingEditParamsItemsZonesSslRecommenderIDSslRecommender ZoneSettingEditParamsItemsZonesSslRecommenderID = "ssl_recommender"
ZoneSettingEditParamsItemsZonesSSLRecommenderIDSSLRecommender ZoneSettingEditParamsItemsZonesSSLRecommenderID = "ssl_recommender"
)
Loading

0 comments on commit 583a05a

Please sign in to comment.