Skip to content

Commit f778c7d

Browse files
committed
feat: transit-gateway vpnaas changes
Signed-off-by: Sridhar G K <[email protected]>
1 parent 2bd9af3 commit f778c7d

File tree

36 files changed

+54
-1934
lines changed

36 files changed

+54
-1934
lines changed

modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/*
15-
* IBM OpenAPI SDK Code Generator Version: 3.73.0-eeee85a9-20230607-165104
15+
* IBM OpenAPI SDK Code Generator Version: 3.107.1-41b0fbd0-20250825-080732
1616
*/
1717

1818
package com.ibm.cloud.networking.transit_gateway_apis.v1;
@@ -721,7 +721,7 @@ public ServiceCall<TransitGatewayTunnel> updateTransitGatewayConnectionTunnels(U
721721
}
722722
builder.header("Accept", "application/json");
723723
builder.query("version", String.valueOf(this.version));
724-
builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithoutPrettyPrinting().toJson(updateTransitGatewayConnectionTunnelsOptions.transitGatewayTunnelPatch()), "application/merge-patch+json");
724+
builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithSerializeNulls().toJson(updateTransitGatewayConnectionTunnelsOptions.transitGatewayTunnelPatch()), "application/merge-patch+json");
725725
ResponseConverter<TransitGatewayTunnel> responseConverter =
726726
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<TransitGatewayTunnel>() { }.getType());
727727
return createServiceCall(builder.build(), responseConverter);
@@ -813,7 +813,9 @@ public ServiceCall<PrefixFilterCollection> listTransitGatewayConnectionPrefixFil
813813
/**
814814
* Add a prefix filter to a Transit Gateway connection.
815815
*
816-
* Add a Prefix Filter to a Transit Gateway Connection. Prefix Filters can be added to all Connection types.
816+
* Add a Prefix Filter to a Transit Gateway Connection. Prefix Filters can be added to `vpc`, `classic`, `directlink`,
817+
* and `power_virtual_server` Connection types. Prefix Filters cannot be added to `gre_tunnel`, `unbound_gre_tunnel`,
818+
* `redundant_gre` or `vpn_gateway` Connection types.
817819
*
818820
* @param createTransitGatewayConnectionPrefixFilterOptions the {@link CreateTransitGatewayConnectionPrefixFilterOptions} containing the options for the call
819821
* @return a {@link ServiceCall} with a result of type {@link PrefixFilterCust}

modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
*/
1313
package com.ibm.cloud.networking.transit_gateway_apis.v1.model;
1414

15+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1516
import java.util.ArrayList;
1617
import java.util.List;
1718

18-
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1919

2020
/**
2121
* The createTransitGatewayConnection options.
@@ -162,9 +162,9 @@ public CreateTransitGatewayConnectionOptions build() {
162162
}
163163

164164
/**
165-
* Adds an prefixFilters to prefixFilters.
165+
* Adds a new element to prefixFilters.
166166
*
167-
* @param prefixFilters the new prefixFilters
167+
* @param prefixFilters the new element to be added
168168
* @return the CreateTransitGatewayConnectionOptions builder
169169
*/
170170
public Builder addPrefixFilters(TransitGatewayConnectionPrefixFilter prefixFilters) {
@@ -178,9 +178,9 @@ public Builder addPrefixFilters(TransitGatewayConnectionPrefixFilter prefixFilte
178178
}
179179

180180
/**
181-
* Adds an tunnels to tunnels.
181+
* Adds a new element to tunnels.
182182
*
183-
* @param tunnels the new tunnels
183+
* @param tunnels the new element to be added
184184
* @return the CreateTransitGatewayConnectionOptions builder
185185
*/
186186
public Builder addTunnels(TransitGatewayTunnelTemplate tunnels) {
@@ -481,10 +481,7 @@ public String baseNetworkType() {
481481
*
482482
* network_type 'vpn_gateway' connections use 'cidr' to specify the CIDR to use for the VPN GRE tunnels.
483483
*
484-
* This field is optional for network type `vpn_gateway` connections.
485-
*
486-
* If left unspecified when creating a `vpn_gateway` connection, a default cidr address of `100.64.0.0/10` will be
487-
* used.
484+
* This field is required for network type `vpn_gateway` connections.
488485
*
489486
* This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server`,
490487
* `gre_tunnel`, `unbound_gre_tunnel`, and `redundant_gre` connections.

modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayGreTunnelOptions.java

Lines changed: 0 additions & 133 deletions
This file was deleted.

modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GreTunnelZoneReference.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundantGRETunnelCollection.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)