Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 21, 2024
1 parent b391121 commit bc4d497
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1296
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e43f1520a2b2216bc7dc46e06afd92de46884e56eceec212ea8b54bd99013ff3.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0c0d163e334ea4aceb9155a993fcb36ab5edcb6de64052f81f3c9df94e0ef4b7.yml
16 changes: 8 additions & 8 deletions src/resources/magic-transit/sites/acls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export interface ACL {
/**
* The desired forwarding action for this ACL policy. If set to "false", the policy
* will forward traffic to Cloudflare. If set to "true", the policy will forward
* traffic locally on the Magic WAN Connector. If not included in request, will
* default to false.
* traffic locally on the Magic Connector. If not included in request, will default
* to false.
*/
forward_locally?: boolean;

Expand Down Expand Up @@ -243,8 +243,8 @@ export interface ACLCreateParams {
/**
* Body param: The desired forwarding action for this ACL policy. If set to
* "false", the policy will forward traffic to Cloudflare. If set to "true", the
* policy will forward traffic locally on the Magic WAN Connector. If not included
* in request, will default to false.
* policy will forward traffic locally on the Magic Connector. If not included in
* request, will default to false.
*/
forward_locally?: boolean;

Expand All @@ -268,8 +268,8 @@ export interface ACLUpdateParams {
/**
* Body param: The desired forwarding action for this ACL policy. If set to
* "false", the policy will forward traffic to Cloudflare. If set to "true", the
* policy will forward traffic locally on the Magic WAN Connector. If not included
* in request, will default to false.
* policy will forward traffic locally on the Magic Connector. If not included in
* request, will default to false.
*/
forward_locally?: boolean;

Expand Down Expand Up @@ -322,8 +322,8 @@ export interface ACLEditParams {
/**
* Body param: The desired forwarding action for this ACL policy. If set to
* "false", the policy will forward traffic to Cloudflare. If set to "true", the
* policy will forward traffic locally on the Magic WAN Connector. If not included
* in request, will default to false.
* policy will forward traffic locally on the Magic Connector. If not included in
* request, will default to false.
*/
forward_locally?: boolean;

Expand Down
14 changes: 7 additions & 7 deletions src/resources/magic-transit/sites/lans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { SinglePage } from '../../../pagination';

export class LANs extends APIResource {
/**
* Creates a new LAN. If the site is in high availability mode, static_addressing
* is required along with secondary and virtual address.
* Creates a new Site LAN. If the site is in high availability mode,
* static_addressing is required along with secondary and virtual address.
*/
create(
siteId: string,
Expand All @@ -25,7 +25,7 @@ export class LANs extends APIResource {
}

/**
* Update a specific LAN.
* Update a specific Site LAN.
*/
update(
siteId: string,
Expand All @@ -43,7 +43,7 @@ export class LANs extends APIResource {
}

/**
* Lists LANs associated with an account and site.
* Lists Site LANs associated with an account.
*/
list(
siteId: string,
Expand All @@ -59,7 +59,7 @@ export class LANs extends APIResource {
}

/**
* Remove a specific LAN.
* Remove a specific Site LAN.
*/
delete(
siteId: string,
Expand All @@ -77,7 +77,7 @@ export class LANs extends APIResource {
}

/**
* Patch a specific LAN.
* Patch a specific Site LAN.
*/
edit(
siteId: string,
Expand All @@ -95,7 +95,7 @@ export class LANs extends APIResource {
}

/**
* Get a specific LAN.
* Get a specific Site LAN.
*/
get(
siteId: string,
Expand Down
22 changes: 11 additions & 11 deletions src/resources/magic-transit/sites/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface Site {
id?: string;

/**
* Magic WAN Connector identifier tag.
* Magic Connector identifier tag.
*/
connector_id?: string;

Expand All @@ -121,7 +121,7 @@ export interface Site {
name?: string;

/**
* Magic WAN Connector identifier tag. Used when high availability mode is on.
* Magic Connector identifier tag. Used when high availability mode is on.
*/
secondary_connector_id?: string;
}
Expand Down Expand Up @@ -168,7 +168,7 @@ export interface SiteCreateParams {
name: string;

/**
* Body param: Magic WAN Connector identifier tag.
* Body param: Magic Connector identifier tag.
*/
connector_id?: string;

Expand All @@ -189,8 +189,8 @@ export interface SiteCreateParams {
location?: SiteLocationParam;

/**
* Body param: Magic WAN Connector identifier tag. Used when high availability mode
* is on.
* Body param: Magic Connector identifier tag. Used when high availability mode is
* on.
*/
secondary_connector_id?: string;
}
Expand All @@ -202,7 +202,7 @@ export interface SiteUpdateParams {
account_id: string;

/**
* Body param: Magic WAN Connector identifier tag.
* Body param: Magic Connector identifier tag.
*/
connector_id?: string;

Expand All @@ -222,8 +222,8 @@ export interface SiteUpdateParams {
name?: string;

/**
* Body param: Magic WAN Connector identifier tag. Used when high availability mode
* is on.
* Body param: Magic Connector identifier tag. Used when high availability mode is
* on.
*/
secondary_connector_id?: string;
}
Expand Down Expand Up @@ -254,7 +254,7 @@ export interface SiteEditParams {
account_id: string;

/**
* Body param: Magic WAN Connector identifier tag.
* Body param: Magic Connector identifier tag.
*/
connector_id?: string;

Expand All @@ -274,8 +274,8 @@ export interface SiteEditParams {
name?: string;

/**
* Body param: Magic WAN Connector identifier tag. Used when high availability mode
* is on.
* Body param: Magic Connector identifier tag. Used when high availability mode is
* on.
*/
secondary_connector_id?: string;
}
Expand Down
12 changes: 6 additions & 6 deletions src/resources/magic-transit/sites/wans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SinglePage } from '../../../pagination';

export class WANs extends APIResource {
/**
* Creates a new WAN.
* Creates a new Site WAN.
*/
create(
siteId: string,
Expand All @@ -24,7 +24,7 @@ export class WANs extends APIResource {
}

/**
* Update a specific WAN.
* Update a specific Site WAN.
*/
update(
siteId: string,
Expand All @@ -42,7 +42,7 @@ export class WANs extends APIResource {
}

/**
* Lists WANs associated with an account and site.
* Lists Site WANs associated with an account.
*/
list(
siteId: string,
Expand All @@ -58,7 +58,7 @@ export class WANs extends APIResource {
}

/**
* Remove a specific WAN.
* Remove a specific Site WAN.
*/
delete(
siteId: string,
Expand All @@ -76,7 +76,7 @@ export class WANs extends APIResource {
}

/**
* Patch a specific WAN.
* Patch a specific Site WAN.
*/
edit(
siteId: string,
Expand All @@ -94,7 +94,7 @@ export class WANs extends APIResource {
}

/**
* Get a specific WAN.
* Get a specific Site WAN.
*/
get(
siteId: string,
Expand Down

0 comments on commit bc4d497

Please sign in to comment.