Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.107.1-41b0fbd0-20250825-080732
* IBM OpenAPI SDK Code Generator Version: 3.117.1-c28a0a4f-20261005-215243
*/

package com.ibm.cloud.networking.transit_gateway_apis.v1;

import com.google.gson.JsonObject;
import com.ibm.cloud.networking.common.SdkCommon;
import com.ibm.cloud.sdk.core.http.RequestBuilder;
import com.ibm.cloud.sdk.core.http.ResponseConverter;
import com.ibm.cloud.sdk.core.http.ServiceCall;
import com.ibm.cloud.sdk.core.security.Authenticator;
import com.ibm.cloud.sdk.core.security.ConfigBasedAuthenticatorFactory;
import com.ibm.cloud.sdk.core.service.BaseService;
import com.ibm.cloud.sdk.core.util.ResponseConverterUtils;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.CreateTransitGatewayConnectionActionsOptions;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.CreateTransitGatewayConnectionOptions;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.CreateTransitGatewayConnectionPrefixFilterOptions;
Expand Down Expand Up @@ -65,13 +72,6 @@
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateTransitGatewayConnectionPrefixFilterOptions;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateTransitGatewayConnectionTunnelsOptions;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateTransitGatewayOptions;
import com.ibm.cloud.sdk.core.http.RequestBuilder;
import com.ibm.cloud.sdk.core.http.ResponseConverter;
import com.ibm.cloud.sdk.core.http.ServiceCall;
import com.ibm.cloud.sdk.core.security.Authenticator;
import com.ibm.cloud.sdk.core.security.ConfigBasedAuthenticatorFactory;
import com.ibm.cloud.sdk.core.service.BaseService;
import com.ibm.cloud.sdk.core.util.ResponseConverterUtils;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ public interface NetworkType {
String REDUNDANT_GRE = "redundant_gre";
/** vpn_gateway. */
String VPN_GATEWAY = "vpn_gateway";
/** dynamic_route_server. */
String DYNAMIC_ROUTE_SERVER = "dynamic_route_server";
}

/**
* The type of network the Unbound GRE tunnel is targeting. This field is required for network type
* `unbound_gre_tunnel` and must be set to `classic`. For a `redundant_gre` network type, the value is required and
* can be either VPC or Classic. This field is required to be unspecified for network type `classic`, `directlink`,
* `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections.
* `vpc`, `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `gre_tunnel` connections.
*/
public interface BaseNetworkType {
/** classic. */
Expand All @@ -61,8 +63,8 @@ public interface BaseNetworkType {
/**
* Default setting of permit or deny which applies to any routes that don't match a specified filter. This field is
* optional for network type `classic`, `vpc`, `directlink`, and `power_virtual_server` connections. This field is
* required to be unspecified for network type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway` and `redundant_gre`
* connections.
* required to be unspecified for network type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway`,
* `dynamic_route_server` and `redundant_gre` connections.
*/
public interface PrefixFiltersDefault {
/** permit. */
Expand Down Expand Up @@ -469,7 +471,7 @@ public String baseConnectionId() {
* The type of network the Unbound GRE tunnel is targeting. This field is required for network type
* `unbound_gre_tunnel` and must be set to `classic`. For a `redundant_gre` network type, the value is required and
* can be either VPC or Classic. This field is required to be unspecified for network type `classic`, `directlink`,
* `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections.
* `vpc`, `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `gre_tunnel` connections.
*
* @return the baseNetworkType
*/
Expand All @@ -480,10 +482,11 @@ public String baseNetworkType() {
/**
* Gets the cidr.
*
* network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the VPN gateway GRE tunnels.
* network_type `vpn_gateway` and `dynamic_route_server`connections use `cidr` to specify the CIDR to use for the VPN
* gateway / Dynamic route server GRE tunnels.
*
* This field is optional for network type `vpn_gateway` connections. If unspecified, the default value is
* 198.19.174.0/23.
* This field is optional for network type `vpn_gateway` and `dynamic_route_server` connections. If unspecified, the
* default value is 198.19.174.0/23.
*
* This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server`,
* `gre_tunnel`, `unbound_gre_tunnel`, and `redundant_gre` connections.
Expand All @@ -499,7 +502,7 @@ public String cidr() {
*
* Local gateway IP address. This field is required for network type `gre_tunnel` and `unbound_gre_tunnel`
* connections. This field is required to be unspecified for network type `classic`, `directlink`, `vpc`,
* `power_virtual_server`, `vpn_gateway` and `redundant_gre` connections.
* `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `redundant_gre` connections.
*
* @return the localGatewayIp
*/
Expand All @@ -516,7 +519,7 @@ public String localGatewayIp() {
* This field is required for network type `gre_tunnel` and `unbound_gre_tunnel` connections.
*
* This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server`,
* `vpn_gateway` and `redundant_gre` connections.
* `vpn_gateway`, `dynamic_route_server` and `redundant_gre` connections.
*
* @return the localTunnelIp
*/
Expand All @@ -531,7 +534,7 @@ public String localTunnelIp() {
* name of the VPC. Network type `classic` connections are named `classic`.
*
* This field is required for network type `power_virtual_server`, `directlink`, `gre_tunnel`, `unbound_gre_tunnel`,
* `vpn_gateway` and `redundant_gre` connections.
* `vpn_gateway`, `dynamic_route_server` and `redundant_gre` connections.
*
* This field is optional for network type `classic`, `vpc` connections.
*
Expand Down Expand Up @@ -559,10 +562,11 @@ public String networkAccountId() {
* Gets the networkId.
*
* The ID of the network being connected via this connection. For network types `vpc`, `vpn_gateway`,
* `power_virtual_server` and `directlink` this is the CRN of the VPC / VPN / PowerVS / Direct Link gateway
* respectively. This field is required for network type `vpc`, `power_virtual_server`, `vpn_gateway` and `directlink`
* connections. It is also required for `redundant_gre` connections when the base_network_type is set to VPC. This
* field is required to be unspecified for network type `classic`, `gre_tunnel` and `unbound_gre_tunnel` connections.
* `dynamic_route_server`, `power_virtual_server` and `directlink` this is the CRN of the VPC / VPN / Dynamic Route
* Server / PowerVS / Direct Link gateway respectively. This field is required for network type `vpc`,
* `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `directlink` connections. It is also required
* for `redundant_gre` connections when the base_network_type is set to VPC. This field is required to be unspecified
* for network type `classic`, `gre_tunnel` and `unbound_gre_tunnel` connections.
*
* @return the networkId
*/
Expand All @@ -578,7 +582,7 @@ public String networkId() {
* connections. This is order dependent with those first in the array being applied first, and those at the end of the
* array being applied last, or just before applying the default. This field is optional for network type `classic`,
* `vpc`, `directlink`, and `power_virtual_server` connections. This field is required to be unspecified for network
* type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway` and `redundant_gre` connections.
* type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway`, `dynamic_route_server` and `redundant_gre` connections.
*
* @return the prefixFilters
*/
Expand All @@ -591,8 +595,8 @@ public List<TransitGatewayConnectionPrefixFilter> prefixFilters() {
*
* Default setting of permit or deny which applies to any routes that don't match a specified filter. This field is
* optional for network type `classic`, `vpc`, `directlink`, and `power_virtual_server` connections. This field is
* required to be unspecified for network type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway` and `redundant_gre`
* connections.
* required to be unspecified for network type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway`,
* `dynamic_route_server` and `redundant_gre` connections.
*
* @return the prefixFiltersDefault
*/
Expand All @@ -610,7 +614,7 @@ public String prefixFiltersDefault() {
* This field is optional for network type `gre_tunnel` and `unbound_gre_tunnel` connections.
*
* This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server`,
* `vpn_gateway` and `gre_tunnel` connections.
* `vpn_gateway`, `dynamic_route_server` and `gre_tunnel` connections.
*
* @return the remoteBgpAsn
*/
Expand All @@ -623,7 +627,7 @@ public Long remoteBgpAsn() {
*
* Remote gateway IP address. This field is required for network type `gre_tunnel` and `unbound_gre_tunnel`
* connections. This field is required to be unspecified for network type `classic`, `directlink`, `vpc`,
* `power_virtual_server`, `vpn_gateway` and `redundant_gre` connections.
* `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `redundant_gre` connections.
*
* @return the remoteGatewayIp
*/
Expand All @@ -640,7 +644,7 @@ public String remoteGatewayIp() {
* This field is required for network type `gre_tunnel` and `unbound_gre_tunnel` connections.
*
* This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server`,
* `vpn_gateway` and `redundant_gre` connections.
* `vpn_gateway`, `dynamic_route_server` and `redundant_gre` connections.
*
* @return the remoteTunnelIp
*/
Expand Down Expand Up @@ -670,8 +674,8 @@ public List<TransitGatewayTunnelTemplate> tunnels() {
*
* This field is optional for network type `vpn_gateway` connections.
*
* This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server`
* and `redundant_gre` connections.
* This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server`,
* `redundant_gre` and `dynamic_route_server` connections.
*
* @return the zone
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public interface NetworkType {
String REDUNDANT_GRE = "redundant_gre";
/** vpn_gateway. */
String VPN_GATEWAY = "vpn_gateway";
/** dynamic_route_server. */
String DYNAMIC_ROUTE_SERVER = "dynamic_route_server";
}

/**
Expand Down Expand Up @@ -182,9 +184,9 @@ public String getName() {
* Gets the networkId.
*
* The ID of the network being connected via this connection. This field is required for some types, such as `vpc`,
* `power_virtual_server`, `directlink`, `vpn_gateway` and `redundant_gre`. For network types `vpc`, `vpn_gateway`,
* `power_virtual_server` and `directlink` this is the CRN of the VPC / VPN / PowerVS / Direct Link gateway
* respectively.
* `power_virtual_server`, `directlink`, `vpn_gateway`, `dynamic_route_server` and `redundant_gre`. For network types
* `vpc`, `vpn_gateway`, `dynamic_route_server`, `power_virtual_server` and `directlink` this is the CRN of the VPC /
* VPN / Dynamic Route Server / PowerVS / Direct Link gateway respectively.
*
* @return the networkId
*/
Expand Down Expand Up @@ -234,7 +236,8 @@ public String getBaseConnectionId() {
/**
* Gets the cidr.
*
* network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway` GRE tunnels.
* network_type `vpn_gateway` and `dynamic_route_server` connections use `cidr` to specify the CIDR to use for the
* `VPN gateway / Dynamic route server` GRE tunnels.
*
* @return the cidr
*/
Expand Down Expand Up @@ -412,7 +415,7 @@ public TransitGatewayReference getTransitGateway() {
/**
* Gets the tunnels.
*
* Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections.
* Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections.
*
* @return the tunnels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class TransitGatewayConnectionCust extends GenericModel {
* The type of network the Unbound GRE tunnel is targeting. This field is required for network type
* `unbound_gre_tunnel` and must be set to `classic`. For a `redundant_gre` network type, the value is required and
* can be either VPC or Classic. This field is required to be unspecified for network type `classic`, `directlink`,
* `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections.
* `vpc`, `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `gre_tunnel` connections.
*/
public interface BaseNetworkType {
/** classic. */
Expand Down Expand Up @@ -57,6 +57,8 @@ public interface NetworkType {
String REDUNDANT_GRE = "redundant_gre";
/** vpn_gateway. */
String VPN_GATEWAY = "vpn_gateway";
/** dynamic_route_server. */
String DYNAMIC_ROUTE_SERVER = "dynamic_route_server";
}

/**
Expand Down Expand Up @@ -177,7 +179,7 @@ public String getBaseConnectionId() {
* The type of network the Unbound GRE tunnel is targeting. This field is required for network type
* `unbound_gre_tunnel` and must be set to `classic`. For a `redundant_gre` network type, the value is required and
* can be either VPC or Classic. This field is required to be unspecified for network type `classic`, `directlink`,
* `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections.
* `vpc`, `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `gre_tunnel` connections.
*
* @return the baseNetworkType
*/
Expand All @@ -188,7 +190,8 @@ public String getBaseNetworkType() {
/**
* Gets the cidr.
*
* network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway` GRE tunnels.
* network_type `vpn_gateway` and `dynamic_route_server` connections use `cidr` to specify the CIDR to use for the
* `VPN gateway / Dynamic route server` GRE tunnels.
*
* @return the cidr
*/
Expand Down Expand Up @@ -271,7 +274,7 @@ public Long getMtu() {
* name of the VPC. Network type `classic` connections are named `classic`.
*
* This field is required for network type `power_virtual_server`, `directlink`, `gre_tunnel`, `unbound_gre_tunnel`,
* `vpn_gateway` and `redundant_gre` connections.
* `vpn_gateway`, `dynamic_route_server` and `redundant_gre` connections.
*
* This field is optional for network type `classic`, `vpc` connections.
*
Expand All @@ -297,10 +300,11 @@ public String getNetworkAccountId() {
* Gets the networkId.
*
* The ID of the network being connected via this connection. For network types `vpc`, `vpn_gateway`,
* `power_virtual_server` and `directlink` this is the CRN of the VPC / VPN / PowerVS / Direct Link gateway
* respectively. This field is required for network type `vpc`, `power_virtual_server`, `vpn_gateway` and `directlink`
* connections. It is also required for `redundant_gre` connections when the base_network_type is set to VPC. This
* field is required to be unspecified for network type `classic`, `gre_tunnel` and `unbound_gre_tunnel` connections.
* `dynamic_route_server`, `power_virtual_server` and `directlink` this is the CRN of the VPC / VPN / Dynamic Route
* Server / PowerVS / Direct Link gateway respectively. This field is required for network type `vpc`,
* `power_virtual_server`, `vpn_gateway`, `dynamic_route_server` and `directlink` connections. It is also required
* for `redundant_gre` connections when the base_network_type is set to VPC. This field is required to be unspecified
* for network type `classic`, `gre_tunnel` and `unbound_gre_tunnel` connections.
*
* @return the networkId
*/
Expand Down Expand Up @@ -407,7 +411,7 @@ public String getStatus() {
/**
* Gets the tunnels.
*
* Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections.
* Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections.
*
* @return the tunnels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections.
* Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections.
*/
public class TransitGatewayTunnelCollection extends GenericModel {

Expand All @@ -29,7 +29,7 @@ protected TransitGatewayTunnelCollection() { }
/**
* Gets the tunnels.
*
* Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections.
* Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections.
*
* @return the tunnels
*/
Expand Down
Loading
Loading