Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 23, 2024
1 parent 8c5c8cd commit 4f8bf31
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3330,6 +3330,7 @@ Types:

- <code><a href="./src/resources/magic-transit/sites/acls.ts">ACL</a></code>
- <code><a href="./src/resources/magic-transit/sites/acls.ts">ACLConfiguration</a></code>
- <code><a href="./src/resources/magic-transit/sites/acls.ts">AllowedProtocol</a></code>
- <code><a href="./src/resources/magic-transit/sites/acls.ts">Subnet</a></code>

Methods:
Expand Down
13 changes: 10 additions & 3 deletions src/resources/magic-transit/sites/acls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export interface ACL {
*/
name?: string;

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

export interface ACLConfiguration {
Expand All @@ -150,6 +150,12 @@ export interface ACLConfiguration {
subnets?: Array<Subnet>;
}

/**
* Array of allowed communication protocols between configured LANs. If no
* protocols are provided, all protocols are allowed.
*/
export type AllowedProtocol = 'tcp' | 'udp' | 'icmp';

/**
* A valid IPv4 address.
*/
Expand Down Expand Up @@ -192,7 +198,7 @@ export interface ACLCreateParams {
/**
* Body param:
*/
protocols?: Array<'tcp' | 'udp' | 'icmp'>;
protocols?: Array<AllowedProtocol>;
}

export interface ACLUpdateParams {
Expand Down Expand Up @@ -232,7 +238,7 @@ export interface ACLUpdateParams {
/**
* Body param:
*/
protocols?: Array<'tcp' | 'udp' | 'icmp'>;
protocols?: Array<AllowedProtocol>;
}

export interface ACLListParams {
Expand Down Expand Up @@ -264,6 +270,7 @@ export interface ACLGetParams {
export namespace ACLs {
export import ACL = ACLsAPI.ACL;
export import ACLConfiguration = ACLsAPI.ACLConfiguration;
export import AllowedProtocol = ACLsAPI.AllowedProtocol;
export import Subnet = ACLsAPI.Subnet;
export import ACLsSinglePage = ACLsAPI.ACLsSinglePage;
export import ACLCreateParams = ACLsAPI.ACLCreateParams;
Expand Down
1 change: 1 addition & 0 deletions src/resources/magic-transit/sites/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export {
ACL,
ACLConfiguration,
AllowedProtocol,
Subnet,
ACLCreateParams,
ACLUpdateParams,
Expand Down
1 change: 1 addition & 0 deletions src/resources/magic-transit/sites/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ export namespace Sites {
export import ACLs = ACLsAPI.ACLs;
export import ACL = ACLsAPI.ACL;
export import ACLConfiguration = ACLsAPI.ACLConfiguration;
export import AllowedProtocol = ACLsAPI.AllowedProtocol;
export import Subnet = ACLsAPI.Subnet;
export import ACLsSinglePage = ACLsAPI.ACLsSinglePage;
export import ACLCreateParams = ACLsAPI.ACLCreateParams;
Expand Down

0 comments on commit 4f8bf31

Please sign in to comment.