@@ -123,7 +123,7 @@ export interface ACL {
123123 */
124124 name ?: string ;
125125
126- protocols ?: Array < 'tcp' | 'udp' | 'icmp' > ;
126+ protocols ?: Array < AllowedProtocol > ;
127127}
128128
129129export 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
198204export 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
238244export interface ACLListParams {
@@ -264,6 +270,7 @@ export interface ACLGetParams {
264270export 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 ;
0 commit comments