From 4f8bf31b75ecae33cab5ccb46d98307ced1b6c9e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 19:00:06 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#369) --- api.md | 1 + src/resources/magic-transit/sites/acls.ts | 13 ++++++++++--- src/resources/magic-transit/sites/index.ts | 1 + src/resources/magic-transit/sites/sites.ts | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/api.md b/api.md index ad369362d2..bdf6ec535d 100644 --- a/api.md +++ b/api.md @@ -3330,6 +3330,7 @@ Types: - ACL - ACLConfiguration +- AllowedProtocol - Subnet Methods: diff --git a/src/resources/magic-transit/sites/acls.ts b/src/resources/magic-transit/sites/acls.ts index 406b5a0d2a..d57b288545 100644 --- a/src/resources/magic-transit/sites/acls.ts +++ b/src/resources/magic-transit/sites/acls.ts @@ -123,7 +123,7 @@ export interface ACL { */ name?: string; - protocols?: Array<'tcp' | 'udp' | 'icmp'>; + protocols?: Array; } export interface ACLConfiguration { @@ -150,6 +150,12 @@ export interface ACLConfiguration { subnets?: Array; } +/** + * 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. */ @@ -192,7 +198,7 @@ export interface ACLCreateParams { /** * Body param: */ - protocols?: Array<'tcp' | 'udp' | 'icmp'>; + protocols?: Array; } export interface ACLUpdateParams { @@ -232,7 +238,7 @@ export interface ACLUpdateParams { /** * Body param: */ - protocols?: Array<'tcp' | 'udp' | 'icmp'>; + protocols?: Array; } export interface ACLListParams { @@ -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; diff --git a/src/resources/magic-transit/sites/index.ts b/src/resources/magic-transit/sites/index.ts index c7c1c6c977..d1a1a5a659 100644 --- a/src/resources/magic-transit/sites/index.ts +++ b/src/resources/magic-transit/sites/index.ts @@ -3,6 +3,7 @@ export { ACL, ACLConfiguration, + AllowedProtocol, Subnet, ACLCreateParams, ACLUpdateParams, diff --git a/src/resources/magic-transit/sites/sites.ts b/src/resources/magic-transit/sites/sites.ts index 1babf90c2c..7b3b167a4f 100644 --- a/src/resources/magic-transit/sites/sites.ts +++ b/src/resources/magic-transit/sites/sites.ts @@ -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;