Skip to content

Commit 606c6b9

Browse files
feat(api): update via SDK Studio (#369)
1 parent dee3057 commit 606c6b9

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3330,6 +3330,7 @@ Types:
33303330

33313331
- <code><a href="./src/resources/magic-transit/sites/acls.ts">ACL</a></code>
33323332
- <code><a href="./src/resources/magic-transit/sites/acls.ts">ACLConfiguration</a></code>
3333+
- <code><a href="./src/resources/magic-transit/sites/acls.ts">AllowedProtocol</a></code>
33333334
- <code><a href="./src/resources/magic-transit/sites/acls.ts">Subnet</a></code>
33343335

33353336
Methods:

src/resources/magic-transit/sites/acls.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export interface ACL {
123123
*/
124124
name?: string;
125125

126-
protocols?: Array<'tcp' | 'udp' | 'icmp'>;
126+
protocols?: Array<AllowedProtocol>;
127127
}
128128

129129
export interface ACLConfiguration {
@@ -150,6 +150,12 @@ export interface ACLConfiguration {
150150
subnets?: Array<Subnet>;
151151
}
152152

153+
/**
154+
* Array of allowed communication protocols between configured LANs. If no
155+
* protocols are provided, all protocols are allowed.
156+
*/
157+
export type AllowedProtocol = 'tcp' | 'udp' | 'icmp';
158+
153159
/**
154160
* A valid IPv4 address.
155161
*/
@@ -192,7 +198,7 @@ export interface ACLCreateParams {
192198
/**
193199
* Body param:
194200
*/
195-
protocols?: Array<'tcp' | 'udp' | 'icmp'>;
201+
protocols?: Array<AllowedProtocol>;
196202
}
197203

198204
export interface ACLUpdateParams {
@@ -232,7 +238,7 @@ export interface ACLUpdateParams {
232238
/**
233239
* Body param:
234240
*/
235-
protocols?: Array<'tcp' | 'udp' | 'icmp'>;
241+
protocols?: Array<AllowedProtocol>;
236242
}
237243

238244
export interface ACLListParams {
@@ -264,6 +270,7 @@ export interface ACLGetParams {
264270
export namespace ACLs {
265271
export import ACL = ACLsAPI.ACL;
266272
export import ACLConfiguration = ACLsAPI.ACLConfiguration;
273+
export import AllowedProtocol = ACLsAPI.AllowedProtocol;
267274
export import Subnet = ACLsAPI.Subnet;
268275
export import ACLsSinglePage = ACLsAPI.ACLsSinglePage;
269276
export import ACLCreateParams = ACLsAPI.ACLCreateParams;

src/resources/magic-transit/sites/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export {
44
ACL,
55
ACLConfiguration,
6+
AllowedProtocol,
67
Subnet,
78
ACLCreateParams,
89
ACLUpdateParams,

src/resources/magic-transit/sites/sites.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ export namespace Sites {
244244
export import ACLs = ACLsAPI.ACLs;
245245
export import ACL = ACLsAPI.ACL;
246246
export import ACLConfiguration = ACLsAPI.ACLConfiguration;
247+
export import AllowedProtocol = ACLsAPI.AllowedProtocol;
247248
export import Subnet = ACLsAPI.Subnet;
248249
export import ACLsSinglePage = ACLsAPI.ACLsSinglePage;
249250
export import ACLCreateParams = ACLsAPI.ACLCreateParams;

0 commit comments

Comments
 (0)