Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 16, 2024
1 parent c3205c8 commit a6c197b
Show file tree
Hide file tree
Showing 13 changed files with 314 additions and 1,593 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1146
configured_endpoints: 1137
29 changes: 0 additions & 29 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5250,37 +5250,8 @@ Methods:

## IndicatorFeeds

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#IntelIndicatorFeedNewResponse">IntelIndicatorFeedNewResponse</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#IntelIndicatorFeedListResponse">IntelIndicatorFeedListResponse</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#IntelIndicatorFeedGetResponse">IntelIndicatorFeedGetResponse</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#IntelIndicatorFeedPermissionsAddResponse">IntelIndicatorFeedPermissionsAddResponse</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#IntelIndicatorFeedPermissionsRemoveResponse">IntelIndicatorFeedPermissionsRemoveResponse</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#IntelIndicatorFeedPermissionsViewResponse">IntelIndicatorFeedPermissionsViewResponse</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#IntelIndicatorFeedSnapshotResponse">IntelIndicatorFeedSnapshotResponse</a>

Methods:

- <code title="post /accounts/{account_identifier}/intel/indicator-feeds">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <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#IntelIndicatorFeedNewParams">IntelIndicatorFeedNewParams</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#IntelIndicatorFeedNewResponse">IntelIndicatorFeedNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_identifier}/intel/indicator-feeds">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <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#IntelIndicatorFeedListResponse">IntelIndicatorFeedListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_identifier}/intel/indicator-feeds/{feed_id}/data">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.Data">Data</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, feedID <a href="https://pkg.go.dev/builtin#int64">int64</a>) (<a href="https://pkg.go.dev/builtin#string">string</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_identifier}/intel/indicator-feeds/{feed_id}">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, feedID <a href="https://pkg.go.dev/builtin#int64">int64</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#IntelIndicatorFeedGetResponse">IntelIndicatorFeedGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_identifier}/intel/indicator-feeds/permissions/add">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.PermissionsAdd">PermissionsAdd</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <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#IntelIndicatorFeedPermissionsAddParams">IntelIndicatorFeedPermissionsAddParams</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#IntelIndicatorFeedPermissionsAddResponse">IntelIndicatorFeedPermissionsAddResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_identifier}/intel/indicator-feeds/permissions/remove">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.PermissionsRemove">PermissionsRemove</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <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#IntelIndicatorFeedPermissionsRemoveParams">IntelIndicatorFeedPermissionsRemoveParams</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#IntelIndicatorFeedPermissionsRemoveResponse">IntelIndicatorFeedPermissionsRemoveResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_identifier}/intel/indicator-feeds/permissions/view">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.PermissionsView">PermissionsView</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <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#IntelIndicatorFeedPermissionsViewResponse">IntelIndicatorFeedPermissionsViewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_identifier}/intel/indicator-feeds/{feed_id}/snapshot">client.Intel.IndicatorFeeds.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelIndicatorFeedService.Snapshot">Snapshot</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, feedID <a href="https://pkg.go.dev/builtin#int64">int64</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#IntelIndicatorFeedSnapshotParams">IntelIndicatorFeedSnapshotParams</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#IntelIndicatorFeedSnapshotResponse">IntelIndicatorFeedSnapshotResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Sinkholes

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#IntelSinkholeListResponse">IntelSinkholeListResponse</a>

Methods:

- <code title="get /accounts/{account_identifier}/intel/sinkholes">client.Intel.Sinkholes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#IntelSinkholeService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <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#IntelSinkholeListResponse">IntelSinkholeListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# Rum

## SiteInfos
Expand Down
66 changes: 33 additions & 33 deletions auditlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (r *AuditLogService) AuditLogsGetAccountAuditLogs(ctx context.Context, acco
}

// Union satisfied by [AuditLogAuditLogsGetAccountAuditLogsResponseObject] or
// [AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommon].
// [AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommon].
type AuditLogAuditLogsGetAccountAuditLogsResponse interface {
implementsAuditLogAuditLogsGetAccountAuditLogsResponse()
}
Expand Down Expand Up @@ -225,19 +225,19 @@ func (r *AuditLogAuditLogsGetAccountAuditLogsResponseObjectResultResource) Unmar
return apijson.UnmarshalRoot(data, r)
}

type AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommon struct {
Errors []AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonError `json:"errors,required"`
Messages []AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonMessage `json:"messages,required"`
Result AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonResult `json:"result,required"`
type AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommon struct {
Errors []AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonError `json:"errors,required"`
Messages []AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonMessage `json:"messages,required"`
Result AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResult `json:"result,required"`
// Whether the API call was successful
Success AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonSuccess `json:"success,required"`
JSON auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonJSON `json:"-"`
Success AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonSuccess `json:"success,required"`
JSON auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonJSON `json:"-"`
}

// auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonJSON
// auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonJSON
// contains the JSON metadata for the struct
// [AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommon]
type auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonJSON struct {
// [AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommon]
type auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Expand All @@ -246,64 +246,64 @@ type auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonJSON s
ExtraFields map[string]apijson.Field
}

func (r *AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommon) UnmarshalJSON(data []byte) (err error) {
func (r *AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommon) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommon) implementsAuditLogAuditLogsGetAccountAuditLogsResponse() {
func (r AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommon) implementsAuditLogAuditLogsGetAccountAuditLogsResponse() {
}

type AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonError struct {
type AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonError struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonErrorJSON `json:"-"`
JSON auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonErrorJSON `json:"-"`
}

// auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonErrorJSON
// auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonErrorJSON
// contains the JSON metadata for the struct
// [AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonError]
type auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonErrorJSON struct {
// [AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonError]
type auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonErrorJSON struct {
Code apijson.Field
Message apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonError) UnmarshalJSON(data []byte) (err error) {
func (r *AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonError) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

type AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonMessage struct {
type AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonMessage struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonMessageJSON `json:"-"`
JSON auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonMessageJSON `json:"-"`
}

// auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonMessageJSON
// auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonMessageJSON
// contains the JSON metadata for the struct
// [AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonMessage]
type auditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonMessageJSON struct {
// [AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonMessage]
type auditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonMessageJSON struct {
Code apijson.Field
Message apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonMessage) UnmarshalJSON(data []byte) (err error) {
func (r *AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonMessage) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// Union satisfied by
// [AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonResultUnknown],
// [AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonResultArray]
// [AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResultUnknown],
// [AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResultArray]
// or [shared.UnionString].
type AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonResult interface {
ImplementsAuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonResult()
type AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResult interface {
ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResult()
}

func init() {
apijson.RegisterUnion(
reflect.TypeOf((*AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonResult)(nil)).Elem(),
reflect.TypeOf((*AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResult)(nil)).Elem(),
"",
apijson.UnionVariant{
TypeFilter: gjson.String,
Expand All @@ -312,16 +312,16 @@ func init() {
)
}

type AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonResultArray []interface{}
type AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResultArray []interface{}

func (r AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonResultArray) ImplementsAuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKapiResponseCommonResult() {
func (r AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResultArray) ImplementsAuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonResult() {
}

// Whether the API call was successful
type AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonSuccess bool
type AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonSuccess bool

const (
AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonSuccessTrue AuditLogAuditLogsGetAccountAuditLogsResponse5fZDnLyKAPIResponseCommonSuccess = true
AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonSuccessTrue AuditLogAuditLogsGetAccountAuditLogsResponseZpUfpni7APIResponseCommonSuccess = true
)

type AuditLogAuditLogsGetAccountAuditLogsParams struct {
Expand Down
Loading

0 comments on commit a6c197b

Please sign in to comment.