Skip to content

Commit 2b4e563

Browse files
feat(api): api update
1 parent e928100 commit 2b4e563

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1782
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fb3be60c71e334ffb9966b47725d9bb911d441063cd271a584ca5b163562189a.yml
3-
openapi_spec_hash: b4899f357099b018d879fec81272f6e3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d3fc261af1dcfd29dc261b9693276ed85a63fd68bb9fd32f3338dc56890f487.yml
3+
openapi_spec_hash: 5b0319bba3aa3b4ee74ceb0c9a3e565a
44
config_hash: eda5b3d9487ce675d1fadf88153b457d

rules/listbulkoperation.go

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ func (r *ListBulkOperationGetResponse) UnmarshalJSON(data []byte) (err error) {
102102
// cast to the specific types for more type safety.
103103
//
104104
// Possible runtime types of the union are
105-
// [ListBulkOperationGetResponseListsPendingOrRunningBulkOperation],
106-
// [ListBulkOperationGetResponseListsCompletedBulkOperation],
107-
// [ListBulkOperationGetResponseListsFailedBulkOperation].
105+
// [ListBulkOperationGetResponseListsBulkOperationPendingOrRunning],
106+
// [ListBulkOperationGetResponseListsBulkOperationCompleted],
107+
// [ListBulkOperationGetResponseListsBulkOperationFailed].
108108
func (r ListBulkOperationGetResponse) AsUnion() ListBulkOperationGetResponseUnion {
109109
return r.union
110110
}
111111

112112
// Union satisfied by
113-
// [ListBulkOperationGetResponseListsPendingOrRunningBulkOperation],
114-
// [ListBulkOperationGetResponseListsCompletedBulkOperation] or
115-
// [ListBulkOperationGetResponseListsFailedBulkOperation].
113+
// [ListBulkOperationGetResponseListsBulkOperationPendingOrRunning],
114+
// [ListBulkOperationGetResponseListsBulkOperationCompleted] or
115+
// [ListBulkOperationGetResponseListsBulkOperationFailed].
116116
type ListBulkOperationGetResponseUnion interface {
117117
implementsListBulkOperationGetResponse()
118118
}
@@ -123,126 +123,126 @@ func init() {
123123
"",
124124
apijson.UnionVariant{
125125
TypeFilter: gjson.JSON,
126-
Type: reflect.TypeOf(ListBulkOperationGetResponseListsPendingOrRunningBulkOperation{}),
126+
Type: reflect.TypeOf(ListBulkOperationGetResponseListsBulkOperationPendingOrRunning{}),
127127
},
128128
apijson.UnionVariant{
129129
TypeFilter: gjson.JSON,
130-
Type: reflect.TypeOf(ListBulkOperationGetResponseListsCompletedBulkOperation{}),
130+
Type: reflect.TypeOf(ListBulkOperationGetResponseListsBulkOperationCompleted{}),
131131
},
132132
apijson.UnionVariant{
133133
TypeFilter: gjson.JSON,
134-
Type: reflect.TypeOf(ListBulkOperationGetResponseListsFailedBulkOperation{}),
134+
Type: reflect.TypeOf(ListBulkOperationGetResponseListsBulkOperationFailed{}),
135135
},
136136
)
137137
}
138138

139-
type ListBulkOperationGetResponseListsPendingOrRunningBulkOperation struct {
139+
type ListBulkOperationGetResponseListsBulkOperationPendingOrRunning struct {
140140
// The unique operation ID of the asynchronous action.
141141
ID string `json:"id,required"`
142142
// The current status of the asynchronous operation.
143-
Status ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatus `json:"status,required"`
144-
JSON listBulkOperationGetResponseListsPendingOrRunningBulkOperationJSON `json:"-"`
143+
Status ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatus `json:"status,required"`
144+
JSON listBulkOperationGetResponseListsBulkOperationPendingOrRunningJSON `json:"-"`
145145
}
146146

147-
// listBulkOperationGetResponseListsPendingOrRunningBulkOperationJSON contains the
147+
// listBulkOperationGetResponseListsBulkOperationPendingOrRunningJSON contains the
148148
// JSON metadata for the struct
149-
// [ListBulkOperationGetResponseListsPendingOrRunningBulkOperation]
150-
type listBulkOperationGetResponseListsPendingOrRunningBulkOperationJSON struct {
149+
// [ListBulkOperationGetResponseListsBulkOperationPendingOrRunning]
150+
type listBulkOperationGetResponseListsBulkOperationPendingOrRunningJSON struct {
151151
ID apijson.Field
152152
Status apijson.Field
153153
raw string
154154
ExtraFields map[string]apijson.Field
155155
}
156156

157-
func (r *ListBulkOperationGetResponseListsPendingOrRunningBulkOperation) UnmarshalJSON(data []byte) (err error) {
157+
func (r *ListBulkOperationGetResponseListsBulkOperationPendingOrRunning) UnmarshalJSON(data []byte) (err error) {
158158
return apijson.UnmarshalRoot(data, r)
159159
}
160160

161-
func (r listBulkOperationGetResponseListsPendingOrRunningBulkOperationJSON) RawJSON() string {
161+
func (r listBulkOperationGetResponseListsBulkOperationPendingOrRunningJSON) RawJSON() string {
162162
return r.raw
163163
}
164164

165-
func (r ListBulkOperationGetResponseListsPendingOrRunningBulkOperation) implementsListBulkOperationGetResponse() {
165+
func (r ListBulkOperationGetResponseListsBulkOperationPendingOrRunning) implementsListBulkOperationGetResponse() {
166166
}
167167

168168
// The current status of the asynchronous operation.
169-
type ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatus string
169+
type ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatus string
170170

171171
const (
172-
ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatusPending ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatus = "pending"
173-
ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatusRunning ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatus = "running"
172+
ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatusPending ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatus = "pending"
173+
ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatusRunning ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatus = "running"
174174
)
175175

176-
func (r ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatus) IsKnown() bool {
176+
func (r ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatus) IsKnown() bool {
177177
switch r {
178-
case ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatusPending, ListBulkOperationGetResponseListsPendingOrRunningBulkOperationStatusRunning:
178+
case ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatusPending, ListBulkOperationGetResponseListsBulkOperationPendingOrRunningStatusRunning:
179179
return true
180180
}
181181
return false
182182
}
183183

184-
type ListBulkOperationGetResponseListsCompletedBulkOperation struct {
184+
type ListBulkOperationGetResponseListsBulkOperationCompleted struct {
185185
// The unique operation ID of the asynchronous action.
186186
ID string `json:"id,required"`
187187
// The RFC 3339 timestamp of when the operation was completed.
188188
Completed string `json:"completed,required"`
189189
// The current status of the asynchronous operation.
190-
Status ListBulkOperationGetResponseListsCompletedBulkOperationStatus `json:"status,required"`
191-
JSON listBulkOperationGetResponseListsCompletedBulkOperationJSON `json:"-"`
190+
Status ListBulkOperationGetResponseListsBulkOperationCompletedStatus `json:"status,required"`
191+
JSON listBulkOperationGetResponseListsBulkOperationCompletedJSON `json:"-"`
192192
}
193193

194-
// listBulkOperationGetResponseListsCompletedBulkOperationJSON contains the JSON
194+
// listBulkOperationGetResponseListsBulkOperationCompletedJSON contains the JSON
195195
// metadata for the struct
196-
// [ListBulkOperationGetResponseListsCompletedBulkOperation]
197-
type listBulkOperationGetResponseListsCompletedBulkOperationJSON struct {
196+
// [ListBulkOperationGetResponseListsBulkOperationCompleted]
197+
type listBulkOperationGetResponseListsBulkOperationCompletedJSON struct {
198198
ID apijson.Field
199199
Completed apijson.Field
200200
Status apijson.Field
201201
raw string
202202
ExtraFields map[string]apijson.Field
203203
}
204204

205-
func (r *ListBulkOperationGetResponseListsCompletedBulkOperation) UnmarshalJSON(data []byte) (err error) {
205+
func (r *ListBulkOperationGetResponseListsBulkOperationCompleted) UnmarshalJSON(data []byte) (err error) {
206206
return apijson.UnmarshalRoot(data, r)
207207
}
208208

209-
func (r listBulkOperationGetResponseListsCompletedBulkOperationJSON) RawJSON() string {
209+
func (r listBulkOperationGetResponseListsBulkOperationCompletedJSON) RawJSON() string {
210210
return r.raw
211211
}
212212

213-
func (r ListBulkOperationGetResponseListsCompletedBulkOperation) implementsListBulkOperationGetResponse() {
213+
func (r ListBulkOperationGetResponseListsBulkOperationCompleted) implementsListBulkOperationGetResponse() {
214214
}
215215

216216
// The current status of the asynchronous operation.
217-
type ListBulkOperationGetResponseListsCompletedBulkOperationStatus string
217+
type ListBulkOperationGetResponseListsBulkOperationCompletedStatus string
218218

219219
const (
220-
ListBulkOperationGetResponseListsCompletedBulkOperationStatusCompleted ListBulkOperationGetResponseListsCompletedBulkOperationStatus = "completed"
220+
ListBulkOperationGetResponseListsBulkOperationCompletedStatusCompleted ListBulkOperationGetResponseListsBulkOperationCompletedStatus = "completed"
221221
)
222222

223-
func (r ListBulkOperationGetResponseListsCompletedBulkOperationStatus) IsKnown() bool {
223+
func (r ListBulkOperationGetResponseListsBulkOperationCompletedStatus) IsKnown() bool {
224224
switch r {
225-
case ListBulkOperationGetResponseListsCompletedBulkOperationStatusCompleted:
225+
case ListBulkOperationGetResponseListsBulkOperationCompletedStatusCompleted:
226226
return true
227227
}
228228
return false
229229
}
230230

231-
type ListBulkOperationGetResponseListsFailedBulkOperation struct {
231+
type ListBulkOperationGetResponseListsBulkOperationFailed struct {
232232
// The unique operation ID of the asynchronous action.
233233
ID string `json:"id,required"`
234234
// The RFC 3339 timestamp of when the operation was completed.
235235
Completed string `json:"completed,required"`
236236
// A message describing the error when the status is `failed`.
237237
Error string `json:"error,required"`
238238
// The current status of the asynchronous operation.
239-
Status ListBulkOperationGetResponseListsFailedBulkOperationStatus `json:"status,required"`
240-
JSON listBulkOperationGetResponseListsFailedBulkOperationJSON `json:"-"`
239+
Status ListBulkOperationGetResponseListsBulkOperationFailedStatus `json:"status,required"`
240+
JSON listBulkOperationGetResponseListsBulkOperationFailedJSON `json:"-"`
241241
}
242242

243-
// listBulkOperationGetResponseListsFailedBulkOperationJSON contains the JSON
244-
// metadata for the struct [ListBulkOperationGetResponseListsFailedBulkOperation]
245-
type listBulkOperationGetResponseListsFailedBulkOperationJSON struct {
243+
// listBulkOperationGetResponseListsBulkOperationFailedJSON contains the JSON
244+
// metadata for the struct [ListBulkOperationGetResponseListsBulkOperationFailed]
245+
type listBulkOperationGetResponseListsBulkOperationFailedJSON struct {
246246
ID apijson.Field
247247
Completed apijson.Field
248248
Error apijson.Field
@@ -251,27 +251,27 @@ type listBulkOperationGetResponseListsFailedBulkOperationJSON struct {
251251
ExtraFields map[string]apijson.Field
252252
}
253253

254-
func (r *ListBulkOperationGetResponseListsFailedBulkOperation) UnmarshalJSON(data []byte) (err error) {
254+
func (r *ListBulkOperationGetResponseListsBulkOperationFailed) UnmarshalJSON(data []byte) (err error) {
255255
return apijson.UnmarshalRoot(data, r)
256256
}
257257

258-
func (r listBulkOperationGetResponseListsFailedBulkOperationJSON) RawJSON() string {
258+
func (r listBulkOperationGetResponseListsBulkOperationFailedJSON) RawJSON() string {
259259
return r.raw
260260
}
261261

262-
func (r ListBulkOperationGetResponseListsFailedBulkOperation) implementsListBulkOperationGetResponse() {
262+
func (r ListBulkOperationGetResponseListsBulkOperationFailed) implementsListBulkOperationGetResponse() {
263263
}
264264

265265
// The current status of the asynchronous operation.
266-
type ListBulkOperationGetResponseListsFailedBulkOperationStatus string
266+
type ListBulkOperationGetResponseListsBulkOperationFailedStatus string
267267

268268
const (
269-
ListBulkOperationGetResponseListsFailedBulkOperationStatusFailed ListBulkOperationGetResponseListsFailedBulkOperationStatus = "failed"
269+
ListBulkOperationGetResponseListsBulkOperationFailedStatusFailed ListBulkOperationGetResponseListsBulkOperationFailedStatus = "failed"
270270
)
271271

272-
func (r ListBulkOperationGetResponseListsFailedBulkOperationStatus) IsKnown() bool {
272+
func (r ListBulkOperationGetResponseListsBulkOperationFailedStatus) IsKnown() bool {
273273
switch r {
274-
case ListBulkOperationGetResponseListsFailedBulkOperationStatusFailed:
274+
case ListBulkOperationGetResponseListsBulkOperationFailedStatusFailed:
275275
return true
276276
}
277277
return false

0 commit comments

Comments
 (0)