Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#228)
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 006d524 commit 613da61
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 8 deletions.
72 changes: 64 additions & 8 deletions src/resources/magic-transit/sites/acls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export interface ACLCreateResponse {

export namespace ACLCreateResponse {
/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
export interface ACL {
/**
Expand All @@ -112,6 +112,14 @@ export namespace ACLCreateResponse {
*/
description?: string;

/**
* 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.
*/
forward_locally?: boolean;

lan_1?: ACL.LAN1;

lan_2?: ACL.LAN2;
Expand Down Expand Up @@ -177,14 +185,14 @@ export namespace ACLCreateResponse {

export interface ACLUpdateResponse {
/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
acl?: ACLUpdateResponse.ACL;
}

export namespace ACLUpdateResponse {
/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
export interface ACL {
/**
Expand All @@ -197,6 +205,14 @@ export namespace ACLUpdateResponse {
*/
description?: string;

/**
* 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.
*/
forward_locally?: boolean;

lan_1?: ACL.LAN1;

lan_2?: ACL.LAN2;
Expand Down Expand Up @@ -266,7 +282,7 @@ export interface ACLListResponse {

export namespace ACLListResponse {
/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
export interface ACL {
/**
Expand All @@ -279,6 +295,14 @@ export namespace ACLListResponse {
*/
description?: string;

/**
* 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.
*/
forward_locally?: boolean;

lan_1?: ACL.LAN1;

lan_2?: ACL.LAN2;
Expand Down Expand Up @@ -346,14 +370,14 @@ export interface ACLDeleteResponse {
deleted?: boolean;

/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
deleted_acl?: ACLDeleteResponse.DeletedACL;
}

export namespace ACLDeleteResponse {
/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
export interface DeletedACL {
/**
Expand All @@ -366,6 +390,14 @@ export namespace ACLDeleteResponse {
*/
description?: string;

/**
* 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.
*/
forward_locally?: boolean;

lan_1?: DeletedACL.LAN1;

lan_2?: DeletedACL.LAN2;
Expand Down Expand Up @@ -431,14 +463,14 @@ export namespace ACLDeleteResponse {

export interface ACLGetResponse {
/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
acl?: ACLGetResponse.ACL;
}

export namespace ACLGetResponse {
/**
* Bidirectional ACL policy for local network traffic within a site.
* Bidirectional ACL policy for network traffic within a site.
*/
export interface ACL {
/**
Expand All @@ -451,6 +483,14 @@ export namespace ACLGetResponse {
*/
description?: string;

/**
* 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.
*/
forward_locally?: boolean;

lan_1?: ACL.LAN1;

lan_2?: ACL.LAN2;
Expand Down Expand Up @@ -542,6 +582,14 @@ export namespace ACLCreateParams {
*/
description?: string;

/**
* 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.
*/
forward_locally?: boolean;

protocols?: Array<'tcp' | 'udp' | 'icmp'>;
}

Expand Down Expand Up @@ -615,6 +663,14 @@ export namespace ACLUpdateParams {
*/
description?: string;

/**
* 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.
*/
forward_locally?: boolean;

lan_1?: ACL.LAN1;

lan_2?: ACL.LAN2;
Expand Down
2 changes: 2 additions & 0 deletions tests/api-resources/magic-transit/sites/acls.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('resource acls', () => {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
acl: {
description: 'Allows local traffic between PIN pads and cash register.',
forward_locally: true,
lan_1: {
lan_id: 'string',
lan_name: 'string',
Expand Down Expand Up @@ -73,6 +74,7 @@ describe('resource acls', () => {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
acl: {
description: 'Allows local traffic between PIN pads and cash register.',
forward_locally: true,
lan_1: {
lan_id: 'string',
lan_name: 'string',
Expand Down

0 comments on commit 613da61

Please sign in to comment.