Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Apr 9, 2024
1 parent 43f5664 commit c9d578e
Show file tree
Hide file tree
Showing 36 changed files with 65 additions and 4,005 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1297
configured_endpoints: 1274
38 changes: 0 additions & 38 deletions addressing/prefixbgpbinding.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,44 +184,6 @@ func (r ServiceBindingProvisioningState) IsKnown() bool {
return false
}

type ServiceBindingParam struct {
// IP Prefix in Classless Inter-Domain Routing format.
CIDR param.Field[string] `json:"cidr"`
// Status of a Service Binding's deployment to the Cloudflare network
Provisioning param.Field[ServiceBindingProvisioningParam] `json:"provisioning"`
// Identifier
ServiceID param.Field[string] `json:"service_id"`
// Name of a service running on the Cloudflare network
ServiceName param.Field[string] `json:"service_name"`
}

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

func (r ServiceBindingParam) implementsWorkersBindingUnionParam() {}

func (r ServiceBindingParam) implementsWorkersBindingUnionParam() {}

func (r ServiceBindingParam) implementsWorkersBindingUnionParam() {}

func (r ServiceBindingParam) implementsWorkersBindingUnionParam() {}

func (r ServiceBindingParam) implementsWorkersBindingUnionParam() {}

func (r ServiceBindingParam) implementsWorkersBindingUnionParam() {}

// Status of a Service Binding's deployment to the Cloudflare network
type ServiceBindingProvisioningParam struct {
// When a binding has been deployed to a majority of Cloudflare datacenters, the
// binding will become active and can be used with its associated service.
State param.Field[ServiceBindingProvisioningState] `json:"state"`
}

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

type PrefixBGPBindingNewParams struct {
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
Expand Down
147 changes: 1 addition & 146 deletions api.md

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions email_routing/emailrouting.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,6 @@ func (r SettingsStatus) IsKnown() bool {
return false
}

type SettingsParam struct {
// State of the zone settings for Email Routing.
Enabled param.Field[SettingsEnabled] `json:"enabled"`
// Flag to check if the user skipped the configuration wizard.
SkipWizard param.Field[SettingsSkipWizard] `json:"skip_wizard"`
}

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

type EmailRoutingDisableParams struct {
Body param.Field[interface{}] `json:"body,required"`
}
Expand Down
26 changes: 0 additions & 26 deletions workers/deployment.go

This file was deleted.

119 changes: 0 additions & 119 deletions workers/deploymentbyscript.go

This file was deleted.

45 changes: 0 additions & 45 deletions workers/deploymentbyscript_test.go

This file was deleted.

121 changes: 0 additions & 121 deletions workers/deploymentbyscriptdetail.go

This file was deleted.

Loading

0 comments on commit c9d578e

Please sign in to comment.