@@ -185,6 +185,9 @@ type VPC struct {
185185
186186 // PrivateNetworkCount: number of Private Networks within this VPC.
187187 PrivateNetworkCount uint32 `json:"private_network_count"`
188+
189+ // RoutingEnabled: defines whether the VPC routes traffic between its Private Networks.
190+ RoutingEnabled bool `json:"routing_enabled"`
188191}
189192
190193// AddSubnetsRequest: add subnets request.
@@ -238,6 +241,9 @@ type CreateVPCRequest struct {
238241
239242 // Tags: tags for the VPC.
240243 Tags []string `json:"tags"`
244+
245+ // EnableRouting: enable routing between Private Networks in the VPC.
246+ EnableRouting bool `json:"enable_routing"`
241247}
242248
243249// DeletePrivateNetworkRequest: delete private network request.
@@ -394,6 +400,9 @@ type ListVPCsRequest struct {
394400
395401 // IsDefault: defines whether to filter only for VPCs which are the default one for their Project.
396402 IsDefault * bool `json:"-"`
403+
404+ // RoutingEnabled: defines whether to filter only for VPCs which route traffic between their Private Networks.
405+ RoutingEnabled * bool `json:"-"`
397406}
398407
399408// ListVPCsResponse: list vp cs response.
@@ -524,6 +533,7 @@ func (s *API) ListVPCs(req *ListVPCsRequest, opts ...scw.RequestOption) (*ListVP
524533 parameter .AddToQuery (query , "organization_id" , req .OrganizationID )
525534 parameter .AddToQuery (query , "project_id" , req .ProjectID )
526535 parameter .AddToQuery (query , "is_default" , req .IsDefault )
536+ parameter .AddToQuery (query , "routing_enabled" , req .RoutingEnabled )
527537
528538 if fmt .Sprint (req .Region ) == "" {
529539 return nil , errors .New ("field Region cannot be empty in request" )
0 commit comments