Skip to content

Commit 0d902e0

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(list_item): remove duplicated anyOf properties from component (#2307)
1 parent 5d3f037 commit 0d902e0

File tree

2 files changed

+87
-11
lines changed

2 files changed

+87
-11
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1490
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6eed6659daa87db188a6095d59dbc3f6a84c1f63ca4e1b958283301d61cb16e5.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-403275b7baabda647cf36b6e08211b6ea4aa63c6b547124bbc0eb377330f623a.yml

src/resources/rules/lists/items.ts

Lines changed: 86 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,49 @@ export interface ItemUpdateResponse {
132132
operation_id?: string;
133133
}
134134

135-
/**
136-
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
137-
* maximum of /64.
138-
*/
139-
export type ItemListResponse = string | ListsAPI.Redirect | ListsAPI.Hostname | number;
135+
export interface ItemListResponse {
136+
/**
137+
* The unique ID of the list.
138+
*/
139+
id?: string;
140+
141+
/**
142+
* A non-negative 32 bit integer
143+
*/
144+
asn?: number;
145+
146+
/**
147+
* An informative summary of the list item.
148+
*/
149+
comment?: string;
150+
151+
/**
152+
* The RFC 3339 timestamp of when the item was created.
153+
*/
154+
created_on?: string;
155+
156+
/**
157+
* Valid characters for hostnames are ASCII(7) letters from a to z, the digits from
158+
* 0 to 9, wildcards (\*), and the hyphen (-).
159+
*/
160+
hostname?: ListsAPI.Hostname;
161+
162+
/**
163+
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
164+
* maximum of /64.
165+
*/
166+
ip?: string;
167+
168+
/**
169+
* The RFC 3339 timestamp of when the item was last modified.
170+
*/
171+
modified_on?: string;
172+
173+
/**
174+
* The definition of the redirect.
175+
*/
176+
redirect?: ListsAPI.Redirect;
177+
}
140178

141179
export interface ItemDeleteResponse {
142180
/**
@@ -145,11 +183,49 @@ export interface ItemDeleteResponse {
145183
operation_id?: string;
146184
}
147185

148-
/**
149-
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
150-
* maximum of /64.
151-
*/
152-
export type ItemGetResponse = string | ListsAPI.Redirect | ListsAPI.Hostname | number;
186+
export interface ItemGetResponse {
187+
/**
188+
* The unique ID of the list.
189+
*/
190+
id?: string;
191+
192+
/**
193+
* A non-negative 32 bit integer
194+
*/
195+
asn?: number;
196+
197+
/**
198+
* An informative summary of the list item.
199+
*/
200+
comment?: string;
201+
202+
/**
203+
* The RFC 3339 timestamp of when the item was created.
204+
*/
205+
created_on?: string;
206+
207+
/**
208+
* Valid characters for hostnames are ASCII(7) letters from a to z, the digits from
209+
* 0 to 9, wildcards (\*), and the hyphen (-).
210+
*/
211+
hostname?: ListsAPI.Hostname;
212+
213+
/**
214+
* An IPv4 address, an IPv4 CIDR, or an IPv6 CIDR. IPv6 CIDRs are limited to a
215+
* maximum of /64.
216+
*/
217+
ip?: string;
218+
219+
/**
220+
* The RFC 3339 timestamp of when the item was last modified.
221+
*/
222+
modified_on?: string;
223+
224+
/**
225+
* The definition of the redirect.
226+
*/
227+
redirect?: ListsAPI.Redirect;
228+
}
153229

154230
export interface ItemCreateParams {
155231
/**

0 commit comments

Comments
 (0)