Skip to content
Merged
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.90.0-5aad763d-20240506-203857
* IBM OpenAPI SDK Code Generator Version: 3.107.1-41b0fbd0-20250825-080732
*/

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 All @@ -45,7 +52,6 @@
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListTransitGatewaysOptions;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.PrefixFilterCollection;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.PrefixFilterCust;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ReplaceTransitGatewayConnectionPrefixFilterOptions;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RouteReport;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RouteReportCollection;
import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TSCollection;
Expand All @@ -61,13 +67,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 Expand Up @@ -721,7 +720,7 @@ public ServiceCall<TransitGatewayTunnel> updateTransitGatewayConnectionTunnels(U
}
builder.header("Accept", "application/json");
builder.query("version", String.valueOf(this.version));
builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithoutPrettyPrinting().toJson(updateTransitGatewayConnectionTunnelsOptions.transitGatewayTunnelPatch()), "application/merge-patch+json");
builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithSerializeNulls().toJson(updateTransitGatewayConnectionTunnelsOptions.transitGatewayTunnelPatch()), "application/merge-patch+json");
ResponseConverter<TransitGatewayTunnel> responseConverter =
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<TransitGatewayTunnel>() { }.getType());
return createServiceCall(builder.build(), responseConverter);
Expand Down Expand Up @@ -813,7 +812,9 @@ public ServiceCall<PrefixFilterCollection> listTransitGatewayConnectionPrefixFil
/**
* Add a prefix filter to a Transit Gateway connection.
*
* Add a prefix filter to a Transit Gateway connection.
* Add a Prefix Filter to a Transit Gateway Connection. Prefix Filters can be added to `vpc`, `classic`, `directlink`,
* and `power_virtual_server` Connection types. Prefix Filters cannot be added to `gre_tunnel`, `unbound_gre_tunnel`,
* `redundant_gre` or `vpn_gateway` Connection types.
*
* @param createTransitGatewayConnectionPrefixFilterOptions the {@link CreateTransitGatewayConnectionPrefixFilterOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link PrefixFilterCust}
Expand Down Expand Up @@ -849,35 +850,6 @@ public ServiceCall<PrefixFilterCust> createTransitGatewayConnectionPrefixFilter(
return createServiceCall(builder.build(), responseConverter);
}

/**
* Replaces the prefix filters of the Transit Gateway connection.
*
* Replaces the prefix filters of the Transit Gateway connection.
*
* @param replaceTransitGatewayConnectionPrefixFilterOptions the {@link ReplaceTransitGatewayConnectionPrefixFilterOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link PrefixFilterCollection}
*/
public ServiceCall<PrefixFilterCollection> replaceTransitGatewayConnectionPrefixFilter(ReplaceTransitGatewayConnectionPrefixFilterOptions replaceTransitGatewayConnectionPrefixFilterOptions) {
com.ibm.cloud.sdk.core.util.Validator.notNull(replaceTransitGatewayConnectionPrefixFilterOptions,
"replaceTransitGatewayConnectionPrefixFilterOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
pathParamsMap.put("transit_gateway_id", replaceTransitGatewayConnectionPrefixFilterOptions.transitGatewayId());
pathParamsMap.put("id", replaceTransitGatewayConnectionPrefixFilterOptions.id());
RequestBuilder builder = RequestBuilder.put(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/transit_gateways/{transit_gateway_id}/connections/{id}/prefix_filters", pathParamsMap));
Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("transit_gateway_apis", "v1", "replaceTransitGatewayConnectionPrefixFilter");
for (Entry<String, String> header : sdkHeaders.entrySet()) {
builder.header(header.getKey(), header.getValue());
}
builder.header("Accept", "application/json");
builder.query("version", String.valueOf(this.version));
final JsonObject contentJson = new JsonObject();
contentJson.add("prefix_filters", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(replaceTransitGatewayConnectionPrefixFilterOptions.prefixFilters()));
builder.bodyJson(contentJson);
ResponseConverter<PrefixFilterCollection> responseConverter =
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<PrefixFilterCollection>() { }.getType());
return createServiceCall(builder.build(), responseConverter);
}

/**
* Remove prefix filter from Transit Gateway connection.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,9 @@ public String prefixFiltersDefault() {
/**
* Gets the remoteBgpAsn.
*
* Remote network BGP ASN. The following ASN values are reserved and unavailable 0, 13884, 36351, 64512-64513, 65100,
* 65200-65234, 65402-65433, 65500 and 4201065000-4201065999. If `remote_bgp_asn` is omitted on gre_tunnel or
* unbound_gre_tunnel connection create requests IBM will assign an ASN.
* Remote network BGP ASN. The following ASN values are reserved and unavailable 0, 13884, 36351, 64512, 64513, 65100,
* 65200-65234, 65402-65433, 65500, 65516, 65519, 65521, 65531 and 4201065000-4201065999. If `remote_bgp_asn` is
* omitted on gre_tunnel or unbound_gre_tunnel connection create requests IBM will assign an ASN.
*
* This field is optional for network type `gre_tunnel` and `unbound_gre_tunnel` connections.
*
Expand Down Expand Up @@ -650,8 +650,8 @@ public String remoteTunnelIp() {
/**
* Gets the tunnels.
*
* Array of GRE tunnels for a transit gateway `redundant_gre` and `vpn_gateway` connections. This field is required
* for `redundant_gre` and `vpn_gateway` connections.
* Array of GRE tunnels for a transit gateway `redundant_gre` connections. This field is required for `redundant_gre`
* connections.
*
* @return the tunnels
*/
Expand All @@ -665,7 +665,9 @@ public List<TransitGatewayTunnelTemplate> tunnels() {
* Specify the connection's location. The specified availability zone must reside in the gateway's region.
* Use the IBM Cloud global catalog to list zones within the desired region.
*
* This field is required for network type `gre_tunnel`, `unbound_gre_tunnel` and `vpn_gateway` connections.
* This field is required for network type `gre_tunnel`, and `unbound_gre_tunnel` connections.
*
* 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ public ZoneIdentity zone() {
/**
* Gets the remoteBgpAsn.
*
* Remote network BGP ASN. The following ASN values are reserved and unavailable 0, 13884, 36351, 64512-64513, 65100,
* 65200-65234, 65402-65433, 65500 and 4201065000-4201065999. If `remote_bgp_asn` is omitted on create requests, IBM
* will assign an ASN.
* Remote network BGP ASN. The following ASN values are reserved and unavailable 0, 13884, 36351, 64512, 64513, 65100,
* 65200-65234, 65402-65433, 65500, 65516, 65519, 65521, 65531 and 4201065000-4201065999 If `remote_bgp_asn` is
* omitted on create requests, IBM will assign an ASN.
*
* @return the remoteBgpAsn
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ public Boolean global() {
/**
* Gets the greEnhancedRoutePropagation.
*
* Allow GRE Enhanced Route Propagation on this gateway.
* Allow route propagation across all GREs connected to the same transit gateway. This affects connections on the
* gateway of type `redundant_gre`, `unbound_gre_tunnel` and `gre_tunnel`.
*
* @return the greEnhancedRoutePropagation
*/
Expand Down

This file was deleted.

This file was deleted.

Loading