Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 3, 2024
1 parent cdb0efe commit a9fb6ef
Show file tree
Hide file tree
Showing 167 changed files with 318 additions and 342 deletions.
2 changes: 1 addition & 1 deletion accounts/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ type AccountListParams struct {
// URLQuery serializes [AccountListParams]'s query parameters as `url.Values`.
func (r AccountListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion accounts/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ type MemberListParams struct {
// URLQuery serializes [MemberListParams]'s query parameters as `url.Values`.
func (r MemberListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion alerting/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ type HistoryListParams struct {
// URLQuery serializes [HistoryListParams]'s query parameters as `url.Values`.
func (r HistoryListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
8 changes: 4 additions & 4 deletions audit_logs/auditlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ type AuditLogListParams struct {
// URLQuery serializes [AuditLogListParams]'s query parameters as `url.Values`.
func (r AuditLogListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand All @@ -269,7 +269,7 @@ type AuditLogListParamsAction struct {
// `url.Values`.
func (r AuditLogListParamsAction) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand All @@ -286,7 +286,7 @@ type AuditLogListParamsActor struct {
// `url.Values`.
func (r AuditLogListParamsActor) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down Expand Up @@ -315,7 +315,7 @@ type AuditLogListParamsZone struct {
// URLQuery serializes [AuditLogListParamsZone]'s query parameters as `url.Values`.
func (r AuditLogListParamsZone) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
4 changes: 2 additions & 2 deletions brand_protection/brandprotection.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ type BrandProtectionURLInfoParams struct {
// `url.Values`.
func (r BrandProtectionURLInfoParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand All @@ -439,7 +439,7 @@ type BrandProtectionURLInfoParamsURLIDParam struct {
// as `url.Values`.
func (r BrandProtectionURLInfoParamsURLIDParam) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion certificate_authorities/hostnameassociation.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ type HostnameAssociationGetParams struct {
// `url.Values`.
func (r HostnameAssociationGetParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
4 changes: 2 additions & 2 deletions challenges/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (r WidgetNewParams) MarshalJSON() (data []byte, err error) {
// URLQuery serializes [WidgetNewParams]'s query parameters as `url.Values`.
func (r WidgetNewParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down Expand Up @@ -723,7 +723,7 @@ type WidgetListParams struct {
// URLQuery serializes [WidgetListParams]'s query parameters as `url.Values`.
func (r WidgetListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion client_certificates/clientcertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ type ClientCertificateListParams struct {
// `url.Values`.
func (r ClientCertificateListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion custom_certificates/customcertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ type CustomCertificateListParams struct {
// `url.Values`.
func (r CustomCertificateListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion custom_hostnames/customhostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,7 @@ type CustomHostnameListParams struct {
// `url.Values`.
func (r CustomHostnameListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion d1/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ type DatabaseListParams struct {
// URLQuery serializes [DatabaseListParams]'s query parameters as `url.Values`.
func (r DatabaseListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion dns/analyticsreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ type AnalyticsReportGetParams struct {
// `url.Values`.
func (r AnalyticsReportGetParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion dns/analyticsreportbytime.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ type AnalyticsReportBytimeGetParams struct {
// `url.Values`.
func (r AnalyticsReportBytimeGetParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion dns/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ type FirewallListParams struct {
// URLQuery serializes [FirewallListParams]'s query parameters as `url.Values`.
func (r FirewallListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion dns/firewallanalyticsreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ type FirewallAnalyticsReportGetParams struct {
// `url.Values`.
func (r FirewallAnalyticsReportGetParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion dns/firewallanalyticsreportbytime.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ type FirewallAnalyticsReportBytimeGetParams struct {
// as `url.Values`.
func (r FirewallAnalyticsReportBytimeGetParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
6 changes: 3 additions & 3 deletions dns/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -7492,7 +7492,7 @@ type RecordListParams struct {
// URLQuery serializes [RecordListParams]'s query parameters as `url.Values`.
func (r RecordListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand All @@ -7516,7 +7516,7 @@ type RecordListParamsComment struct {
// `url.Values`.
func (r RecordListParamsComment) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down Expand Up @@ -7603,7 +7603,7 @@ type RecordListParamsTag struct {
// URLQuery serializes [RecordListParamsTag]'s query parameters as `url.Values`.
func (r RecordListParamsTag) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion durable_objects/namespaceobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type NamespaceObjectListParams struct {
// `url.Values`.
func (r NamespaceObjectListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
2 changes: 1 addition & 1 deletion email_routing/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ type AddressListParams struct {
// URLQuery serializes [AddressListParams]'s query parameters as `url.Values`.
func (r AddressListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion email_routing/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ type RuleListParams struct {
// URLQuery serializes [RuleListParams]'s query parameters as `url.Values`.
func (r RuleListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ type FilterListParams struct {
// URLQuery serializes [FilterListParams]'s query parameters as `url.Values`.
func (r FilterListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
8 changes: 4 additions & 4 deletions firewall/accessrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ type AccessRuleListParams struct {
// URLQuery serializes [AccessRuleListParams]'s query parameters as `url.Values`.
func (r AccessRuleListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down Expand Up @@ -587,7 +587,7 @@ type AccessRuleListParamsEgsPagination struct {
// `url.Values`.
func (r AccessRuleListParamsEgsPagination) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand All @@ -604,7 +604,7 @@ type AccessRuleListParamsEgsPaginationJson struct {
// as `url.Values`.
func (r AccessRuleListParamsEgsPaginationJson) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down Expand Up @@ -632,7 +632,7 @@ type AccessRuleListParamsFilters struct {
// `url.Values`.
func (r AccessRuleListParamsFilters) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion firewall/lockdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ type LockdownListParams struct {
// URLQuery serializes [LockdownListParams]'s query parameters as `url.Values`.
func (r LockdownListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
4 changes: 2 additions & 2 deletions firewall/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ type RuleListParams struct {
// URLQuery serializes [RuleListParams]'s query parameters as `url.Values`.
func (r RuleListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down Expand Up @@ -751,7 +751,7 @@ type RuleGetParams struct {
// URLQuery serializes [RuleGetParams]'s query parameters as `url.Values`.
func (r RuleGetParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion firewall/uarule.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ type UARuleListParams struct {
// URLQuery serializes [UARuleListParams]'s query parameters as `url.Values`.
func (r UARuleListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion firewall/wafoverride.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ type WAFOverrideListParams struct {
// URLQuery serializes [WAFOverrideListParams]'s query parameters as `url.Values`.
func (r WAFOverrideListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
2 changes: 1 addition & 1 deletion firewall/wafpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ type WAFPackageListParams struct {
// URLQuery serializes [WAFPackageListParams]'s query parameters as `url.Values`.
func (r WAFPackageListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatComma,
ArrayFormat: apiquery.ArrayQueryFormatRepeat,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
Expand Down
Loading

0 comments on commit a9fb6ef

Please sign in to comment.