From f0e0c970a94c2975c65c4aa20babbe3fca372696 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 9 Jun 2026 05:22:07 +0000 Subject: [PATCH 1/5] chore(release): 0.48.0 release notes # [0.48.0](https://github.com/IBM/networking-java-sdk/compare/0.47.0...0.48.0) (2026-06-09) ### Features * Add logpush-jobs-api module for CIS Logpush Jobs ([a51990b](https://github.com/IBM/networking-java-sdk/commit/a51990b0821dbf1eedb0e5cb438c1ec8b18a8955)) Signed-off-by: Joseph Kalandarishvili --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 753a6b02f..2ae4e3b72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [0.48.0](https://github.com/IBM/networking-java-sdk/compare/0.47.0...0.48.0) (2026-06-09) + + +### Features + +* Add logpush-jobs-api module for CIS Logpush Jobs ([a51990b](https://github.com/IBM/networking-java-sdk/commit/a51990b0821dbf1eedb0e5cb438c1ec8b18a8955)) + # [0.47.0](https://github.com/IBM/networking-java-sdk/compare/0.46.0...0.47.0) (2026-05-05) From f16bfbd0b46155ac6cf5d75e62cf74480cad461d Mon Sep 17 00:00:00 2001 From: Joseph Kalandarishvili Date: Thu, 13 Aug 2026 08:59:08 -0500 Subject: [PATCH 2/5] feat: Added Redundant Global TGW related changes dependency: none Signed-off-by: Joseph Kalandarishvili --- .../v1/TransitGatewayApis.java | 168 +++++++++++-- .../v1/model/ConnectionsPager.java | 3 +- ...ransitGatewayConnectionActionsOptions.java | 3 +- ...CreateTransitGatewayConnectionOptions.java | 60 ++--- ...tGatewayConnectionPrefixFilterOptions.java | 3 +- .../CreateTransitGatewayGreTunnelOptions.java | 3 +- .../v1/model/CreateTransitGatewayOptions.java | 32 ++- ...reateTransitGatewayRouteReportOptions.java | 3 +- ...DeleteTransitGatewayConnectionOptions.java | 3 +- ...tGatewayConnectionPrefixFilterOptions.java | 3 +- ...ransitGatewayConnectionTunnelsOptions.java | 3 +- .../v1/model/DeleteTransitGatewayOptions.java | 3 +- ...eleteTransitGatewayRouteReportOptions.java | 3 +- .../v1/model/GetGatewayLocationOptions.java | 3 +- .../v1/model/GetRedundancyGroupOptions.java | 103 ++++++++ .../GetTransitGatewayConnectionOptions.java | 3 +- ...tGatewayConnectionPrefixFilterOptions.java | 3 +- ...ransitGatewayConnectionTunnelsOptions.java | 3 +- .../v1/model/GetTransitGatewayOptions.java | 3 +- .../GetTransitGatewayRouteReportOptions.java | 3 +- .../v1/model/ListConnectionsOptions.java | 3 +- .../v1/model/ListGatewayLocationsOptions.java | 3 +- .../v1/model/ListRedundancyGroupsOptions.java | 92 +++++++ ...GatewayConnectionPrefixFiltersOptions.java | 3 +- .../ListTransitGatewayConnectionsOptions.java | 3 +- .../ListTransitGatewayGreTunnelOptions.java | 3 +- ...ListTransitGatewayRouteReportsOptions.java | 3 +- .../v1/model/ListTransitGatewaysOptions.java | 29 ++- .../v1/model/PaginationFirstConnection.java | 3 +- .../v1/model/PaginationFirstTG.java | 3 +- .../model/PaginationFirstTGWConnection.java | 3 +- .../v1/model/PaginationNextConnection.java | 3 +- .../v1/model/PaginationNextTG.java | 3 +- .../v1/model/PaginationNextTGWConnection.java | 3 +- .../v1/model/PrefixFilterCollection.java | 3 +- .../v1/model/PrefixFilterCust.java | 3 +- .../v1/model/RedundancyGroup.java | 78 ++++++ .../v1/model/RedundancyGroupCollection.java | 41 +++ .../v1/model/RedundancyGroupPatch.java | 108 ++++++++ .../v1/model/ResourceGroupIdentity.java | 3 +- .../v1/model/ResourceGroupReference.java | 3 +- .../v1/model/RouteReport.java | 3 +- .../v1/model/RouteReportCollection.java | 3 +- .../v1/model/RouteReportConnection.java | 3 +- .../v1/model/RouteReportConnectionBgp.java | 3 +- .../v1/model/RouteReportConnectionRoute.java | 3 +- .../v1/model/RouteReportOverlappingRoute.java | 3 +- .../RouteReportOverlappingRouteGroup.java | 3 +- .../v1/model/TSCollection.java | 3 +- .../v1/model/TSLocalLocation.java | 3 +- .../v1/model/TSLocation.java | 3 +- .../v1/model/TSLocationBasic.java | 3 +- .../v1/model/TransitConnection.java | 28 ++- .../v1/model/TransitConnectionCollection.java | 3 +- .../v1/model/TransitGateway.java | 30 ++- .../v1/model/TransitGatewayCollection.java | 3 +- .../TransitGatewayConnectionCollection.java | 3 +- .../model/TransitGatewayConnectionCust.java | 29 +-- .../TransitGatewayConnectionPrefixFilter.java | 3 +- ...atewayConnectionPrefixFilterReference.java | 3 +- .../model/TransitGatewayConnectionsPager.java | 3 +- .../v1/model/TransitGatewayReference.java | 3 +- .../v1/model/TransitGatewayTunnel.java | 5 +- .../model/TransitGatewayTunnelCollection.java | 7 +- .../v1/model/TransitGatewayTunnelPatch.java | 4 +- .../model/TransitGatewayTunnelTemplate.java | 3 +- .../v1/model/TransitGatewaysPager.java | 3 +- .../model/UpdateRedundancyGroupOptions.java | 135 ++++++++++ ...UpdateTransitGatewayConnectionOptions.java | 3 +- ...tGatewayConnectionPrefixFilterOptions.java | 3 +- ...ransitGatewayConnectionTunnelsOptions.java | 3 +- .../v1/model/UpdateTransitGatewayOptions.java | 34 ++- .../v1/model/ZoneIdentity.java | 3 +- .../v1/model/ZoneIdentityByName.java | 3 +- .../v1/model/ZoneReference.java | 3 +- .../transit_gateway_apis/v1/package-info.java | 3 +- .../v1/TransitGatewayApisTest.java | 234 +++++++++++++++--- ...itGatewayConnectionActionsOptionsTest.java | 2 +- ...teTransitGatewayConnectionOptionsTest.java | 6 +- ...ewayConnectionPrefixFilterOptionsTest.java | 2 +- ...ateTransitGatewayGreTunnelOptionsTest.java | 2 +- .../CreateTransitGatewayOptionsTest.java | 4 +- ...eTransitGatewayRouteReportOptionsTest.java | 2 +- ...teTransitGatewayConnectionOptionsTest.java | 2 +- ...ewayConnectionPrefixFilterOptionsTest.java | 2 +- ...itGatewayConnectionTunnelsOptionsTest.java | 2 +- .../DeleteTransitGatewayOptionsTest.java | 2 +- ...eTransitGatewayRouteReportOptionsTest.java | 2 +- .../model/GetGatewayLocationOptionsTest.java | 2 +- .../model/GetRedundancyGroupOptionsTest.java | 45 ++++ ...etTransitGatewayConnectionOptionsTest.java | 2 +- ...ewayConnectionPrefixFilterOptionsTest.java | 2 +- ...itGatewayConnectionTunnelsOptionsTest.java | 2 +- .../model/GetTransitGatewayOptionsTest.java | 2 +- ...tTransitGatewayRouteReportOptionsTest.java | 2 +- .../v1/model/ListConnectionsOptionsTest.java | 2 +- .../ListGatewayLocationsOptionsTest.java | 2 +- .../ListRedundancyGroupsOptionsTest.java | 39 +++ ...wayConnectionPrefixFiltersOptionsTest.java | 2 +- ...tTransitGatewayConnectionsOptionsTest.java | 2 +- ...istTransitGatewayGreTunnelOptionsTest.java | 2 +- ...TransitGatewayRouteReportsOptionsTest.java | 2 +- .../model/ListTransitGatewaysOptionsTest.java | 4 +- .../model/PaginationFirstConnectionTest.java | 2 +- .../v1/model/PaginationFirstTGTest.java | 2 +- .../PaginationFirstTGWConnectionTest.java | 2 +- .../model/PaginationNextConnectionTest.java | 2 +- .../v1/model/PaginationNextTGTest.java | 2 +- .../PaginationNextTGWConnectionTest.java | 2 +- .../v1/model/PrefixFilterCollectionTest.java | 2 +- .../v1/model/PrefixFilterCustTest.java | 2 +- .../model/RedundancyGroupCollectionTest.java | 39 +++ .../v1/model/RedundancyGroupPatchTest.java | 57 +++++ .../v1/model/RedundancyGroupTest.java | 40 +++ .../v1/model/ResourceGroupIdentityTest.java | 2 +- .../v1/model/ResourceGroupReferenceTest.java | 2 +- .../v1/model/RouteReportCollectionTest.java | 2 +- .../model/RouteReportConnectionBgpTest.java | 2 +- .../model/RouteReportConnectionRouteTest.java | 2 +- .../v1/model/RouteReportConnectionTest.java | 2 +- .../RouteReportOverlappingRouteGroupTest.java | 2 +- .../RouteReportOverlappingRouteTest.java | 2 +- .../v1/model/RouteReportTest.java | 2 +- .../v1/model/TSCollectionTest.java | 2 +- .../v1/model/TSLocalLocationTest.java | 2 +- .../v1/model/TSLocationBasicTest.java | 2 +- .../v1/model/TSLocationTest.java | 2 +- .../TransitConnectionCollectionTest.java | 6 +- .../v1/model/TransitConnectionTest.java | 7 +- .../model/TransitGatewayCollectionTest.java | 2 +- ...ransitGatewayConnectionCollectionTest.java | 2 +- .../TransitGatewayConnectionCustTest.java | 2 +- ...ayConnectionPrefixFilterReferenceTest.java | 2 +- ...nsitGatewayConnectionPrefixFilterTest.java | 2 +- .../v1/model/TransitGatewayReferenceTest.java | 2 +- .../v1/model/TransitGatewayTest.java | 4 +- .../TransitGatewayTunnelCollectionTest.java | 2 +- .../model/TransitGatewayTunnelPatchTest.java | 2 +- .../TransitGatewayTunnelTemplateTest.java | 2 +- .../v1/model/TransitGatewayTunnelTest.java | 3 +- .../UpdateRedundancyGroupOptionsTest.java | 47 ++++ ...teTransitGatewayConnectionOptionsTest.java | 2 +- ...ewayConnectionPrefixFilterOptionsTest.java | 2 +- ...itGatewayConnectionTunnelsOptionsTest.java | 2 +- .../UpdateTransitGatewayOptionsTest.java | 4 +- .../v1/model/ZoneIdentityByNameTest.java | 2 +- .../v1/model/ZoneIdentityTest.java | 2 +- .../v1/model/ZoneReferenceTest.java | 2 +- .../v1/utils/TestUtilities.java | 8 +- 149 files changed, 1506 insertions(+), 315 deletions(-) create mode 100644 modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java create mode 100644 modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java create mode 100644 modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java create mode 100644 modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java create mode 100644 modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java create mode 100644 modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java create mode 100644 modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptionsTest.java create mode 100644 modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptionsTest.java create mode 100644 modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollectionTest.java create mode 100644 modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatchTest.java create mode 100644 modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupTest.java create mode 100644 modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptionsTest.java diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java index faf928d78..16e783324 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -12,20 +12,13 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.107.1-41b0fbd0-20250825-080732 + * IBM OpenAPI SDK Code Generator Version: 3.73.0-eeee85a9-20230607-165104 */ 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; @@ -38,6 +31,7 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.DeleteTransitGatewayOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.DeleteTransitGatewayRouteReportOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetGatewayLocationOptions; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetRedundancyGroupOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayConnectionOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayConnectionPrefixFilterOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayConnectionTunnelsOptions; @@ -45,6 +39,7 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayRouteReportOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListConnectionsOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListGatewayLocationsOptions; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListRedundancyGroupsOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListTransitGatewayConnectionPrefixFiltersOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListTransitGatewayConnectionsOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListTransitGatewayGreTunnelOptions; @@ -52,6 +47,8 @@ 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.RedundancyGroup; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RedundancyGroupCollection; 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; @@ -63,10 +60,18 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayConnectionCust; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayTunnel; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayTunnelCollection; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateRedundancyGroupOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateTransitGatewayConnectionOptions; 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; @@ -158,7 +163,12 @@ public void setVersion(final String version) { /** * Retrieves all Transit Gateways. * - * List all Transit Gateways in account the caller is authorized to view. + * List all Transit Gateways in the account the caller is authorized to view. Use the `limit` (integer, 1–100, default + * 50) and `start` (string token) parameters to page through results. Optionally filter by `redundancy_group` name. + * Each `TransitGateway` in the response includes: `id`, `name`, `crn`, `location`, + * `status` (pending, available, deleting, deleted, failed), `global` (boolean), + * `created_at`, `updated_at`, `resource_group`, and optionally `redundancy_group`, + * `redundancy_group_id`, `gre_enhanced_route_propagation`, and `connection_needs_attention`. * * @param listTransitGatewaysOptions the {@link ListTransitGatewaysOptions} containing the options for the call * @return a {@link ServiceCall} with a result of type {@link TransitGatewayCollection} @@ -180,6 +190,9 @@ public ServiceCall listTransitGateways(ListTransitGate if (listTransitGatewaysOptions.start() != null) { builder.query("start", String.valueOf(listTransitGatewaysOptions.start())); } + if (listTransitGatewaysOptions.redundancyGroup() != null) { + builder.query("redundancy_group", String.valueOf(listTransitGatewaysOptions.redundancyGroup())); + } ResponseConverter responseConverter = ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); return createServiceCall(builder.build(), responseConverter); @@ -188,7 +201,12 @@ public ServiceCall listTransitGateways(ListTransitGate /** * Retrieves all Transit Gateways. * - * List all Transit Gateways in account the caller is authorized to view. + * List all Transit Gateways in the account the caller is authorized to view. Use the `limit` (integer, 1–100, default + * 50) and `start` (string token) parameters to page through results. Optionally filter by `redundancy_group` name. + * Each `TransitGateway` in the response includes: `id`, `name`, `crn`, `location`, + * `status` (pending, available, deleting, deleted, failed), `global` (boolean), + * `created_at`, `updated_at`, `resource_group`, and optionally `redundancy_group`, + * `redundancy_group_id`, `gre_enhanced_route_propagation`, and `connection_needs_attention`. * * @return a {@link ServiceCall} with a result of type {@link TransitGatewayCollection} */ @@ -199,7 +217,11 @@ public ServiceCall listTransitGateways() { /** * Creates a Transit Gateway. * - * Create a Transit Gateway based on the supplied input template. + * Create a Transit Gateway based on the supplied input template. Required fields: `name` (string, 1–60 chars), + * `location` (IBM Cloud region, e.g. us-south). Optional fields: `global` (boolean, enables cross-region routing), + * `resource_group` (object with `id`), `redundancy_group` (string, name of the redundancy group to join), + * `gre_enhanced_route_propagation` (boolean). Returns a `TransitGateway` object. Initial `status` will be `pending` + * while provisioning. * * @param createTransitGatewayOptions the {@link CreateTransitGatewayOptions} containing the options for the call * @return a {@link ServiceCall} with a result of type {@link TransitGateway} @@ -223,6 +245,9 @@ public ServiceCall createTransitGateway(CreateTransitGatewayOpti if (createTransitGatewayOptions.greEnhancedRoutePropagation() != null) { contentJson.addProperty("gre_enhanced_route_propagation", createTransitGatewayOptions.greEnhancedRoutePropagation()); } + if (createTransitGatewayOptions.redundancyGroup() != null) { + contentJson.addProperty("redundancy_group", createTransitGatewayOptions.redundancyGroup()); + } if (createTransitGatewayOptions.resourceGroup() != null) { contentJson.add("resource_group", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(createTransitGatewayOptions.resourceGroup())); } @@ -235,8 +260,8 @@ public ServiceCall createTransitGateway(CreateTransitGatewayOpti /** * Deletes specified Transit Gateway. * - * This request deletes a Transit Gateway. This operation cannot be reversed. For this request to succeed, the Transit - * Gateway must not contain connections. + * Delete a Transit Gateway specified by its `id` path parameter. This operation cannot be reversed. The gateway must + * have no attached connections before it can be deleted; remove all connections first. * * @param deleteTransitGatewayOptions the {@link DeleteTransitGatewayOptions} containing the options for the call * @return a {@link ServiceCall} with a void result @@ -259,7 +284,10 @@ public ServiceCall deleteTransitGateway(DeleteTransitGatewayOptions delete /** * Retrieves specified Transit Gateway. * - * This request retrieves a single Transit Gateway specified by the identifier in the URL. + * Retrieve a single Transit Gateway specified by its `id` path parameter. Returns a `TransitGateway` object + * containing: `id`, `name`, `crn`, `location`, + * `status`, `global`, `created_at`, `updated_at`, `resource_group`, and optionally + * `redundancy_group`, `redundancy_group_id`, `gre_enhanced_route_propagation`, and `connection_needs_attention`. * * @param getTransitGatewayOptions the {@link GetTransitGatewayOptions} containing the options for the call * @return a {@link ServiceCall} with a result of type {@link TransitGateway} @@ -284,7 +312,9 @@ public ServiceCall getTransitGateway(GetTransitGatewayOptions ge /** * Updates specified Transit Gateway. * - * This request updates a Transit Gateway's name and/or global flag. + * Update a Transit Gateway specified by its `id` path parameter. Updatable fields: `name` (string), `global` + * (boolean), `redundancy_group` (string, assigns the gateway to a redundancy group), `gre_enhanced_route_propagation` + * (boolean). Returns the updated `TransitGateway` object. * * @param updateTransitGatewayOptions the {@link UpdateTransitGatewayOptions} containing the options for the call * @return a {@link ServiceCall} with a result of type {@link TransitGateway} @@ -311,6 +341,9 @@ public ServiceCall updateTransitGateway(UpdateTransitGatewayOpti if (updateTransitGatewayOptions.name() != null) { contentJson.addProperty("name", updateTransitGatewayOptions.name()); } + if (updateTransitGatewayOptions.redundancyGroup() != null) { + contentJson.addProperty("redundancy_group", updateTransitGatewayOptions.redundancyGroup()); + } builder.bodyJson(contentJson); ResponseConverter responseConverter = ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); @@ -320,7 +353,11 @@ public ServiceCall updateTransitGateway(UpdateTransitGatewayOpti /** * Retrieves all connections. * - * List all transit gateway connections associated with this account. + * List all transit gateway connections associated with this account. Results can be filtered by `network_id` or + * `network_type`. Use the `limit` and `start` parameters to page through large result sets. The response includes a + * `TransitConnection` object for each connection, containing fields such as `id`, `name`, `network_type`, + * `status`, `created_at`, `updated_at`, and optionally `prefix_filters`, `request_status`, and `transit_gateway` + * reference. * * @param listConnectionsOptions the {@link ListConnectionsOptions} containing the options for the call * @return a {@link ServiceCall} with a result of type {@link TransitConnectionCollection} @@ -356,7 +393,11 @@ public ServiceCall listConnections(ListConnectionsO /** * Retrieves all connections. * - * List all transit gateway connections associated with this account. + * List all transit gateway connections associated with this account. Results can be filtered by `network_id` or + * `network_type`. Use the `limit` and `start` parameters to page through large result sets. The response includes a + * `TransitConnection` object for each connection, containing fields such as `id`, `name`, `network_type`, + * `status`, `created_at`, `updated_at`, and optionally `prefix_filters`, `request_status`, and `transit_gateway` + * reference. * * @return a {@link ServiceCall} with a result of type {@link TransitConnectionCollection} */ @@ -720,7 +761,7 @@ public ServiceCall updateTransitGatewayConnectionTunnels(U } builder.header("Accept", "application/json"); builder.query("version", String.valueOf(this.version)); - builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithSerializeNulls().toJson(updateTransitGatewayConnectionTunnelsOptions.transitGatewayTunnelPatch()), "application/merge-patch+json"); + builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithoutPrettyPrinting().toJson(updateTransitGatewayConnectionTunnelsOptions.transitGatewayTunnelPatch()), "application/merge-patch+json"); ResponseConverter responseConverter = ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); return createServiceCall(builder.build(), responseConverter); @@ -1048,4 +1089,93 @@ public ServiceCall getTransitGatewayRouteReport(GetTransitGatewayRo return createServiceCall(builder.build(), responseConverter); } + /** + * Lists all redundancy groups in the account. + * + * List all redundancy groups for the account. + * + * @param listRedundancyGroupsOptions the {@link ListRedundancyGroupsOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link RedundancyGroupCollection} + */ + public ServiceCall listRedundancyGroups(ListRedundancyGroupsOptions listRedundancyGroupsOptions) { + if (listRedundancyGroupsOptions == null) { + listRedundancyGroupsOptions = new ListRedundancyGroupsOptions.Builder().build(); + } + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/redundancy_groups")); + Map sdkHeaders = SdkCommon.getSdkHeaders("transit_gateway_apis", "v1", "listRedundancyGroups"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + builder.query("version", String.valueOf(this.version)); + if (listRedundancyGroupsOptions.name() != null) { + builder.query("name", String.valueOf(listRedundancyGroupsOptions.name())); + } + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Lists all redundancy groups in the account. + * + * List all redundancy groups for the account. + * + * @return a {@link ServiceCall} with a result of type {@link RedundancyGroupCollection} + */ + public ServiceCall listRedundancyGroups() { + return listRedundancyGroups(null); + } + + /** + * Retrieves specified redundancy group. + * + * Retrieves a single redundancy group specified by the identifier in the URL. + * + * @param getRedundancyGroupOptions the {@link GetRedundancyGroupOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link RedundancyGroup} + */ + public ServiceCall getRedundancyGroup(GetRedundancyGroupOptions getRedundancyGroupOptions) { + com.ibm.cloud.sdk.core.util.Validator.notNull(getRedundancyGroupOptions, + "getRedundancyGroupOptions cannot be null"); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("id", getRedundancyGroupOptions.id()); + RequestBuilder builder = RequestBuilder.get(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/redundancy_groups/{id}", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("transit_gateway_apis", "v1", "getRedundancyGroup"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + builder.query("version", String.valueOf(this.version)); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + + /** + * Updates a redundancy group. + * + * Update a redundancy group. + * + * @param updateRedundancyGroupOptions the {@link UpdateRedundancyGroupOptions} containing the options for the call + * @return a {@link ServiceCall} with a result of type {@link RedundancyGroup} + */ + public ServiceCall updateRedundancyGroup(UpdateRedundancyGroupOptions updateRedundancyGroupOptions) { + com.ibm.cloud.sdk.core.util.Validator.notNull(updateRedundancyGroupOptions, + "updateRedundancyGroupOptions cannot be null"); + Map pathParamsMap = new HashMap(); + pathParamsMap.put("id", updateRedundancyGroupOptions.id()); + RequestBuilder builder = RequestBuilder.patch(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/redundancy_groups/{id}", pathParamsMap)); + Map sdkHeaders = SdkCommon.getSdkHeaders("transit_gateway_apis", "v1", "updateRedundancyGroup"); + for (Entry header : sdkHeaders.entrySet()) { + builder.header(header.getKey(), header.getValue()); + } + builder.header("Accept", "application/json"); + builder.query("version", String.valueOf(this.version)); + builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithoutPrettyPrinting().toJson(updateRedundancyGroupOptions.redundancyGroupPatch()), "application/merge-patch+json"); + ResponseConverter responseConverter = + ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); + return createServiceCall(builder.build(), responseConverter); + } + } diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java index 6e264a409..4883d04cc 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java index 8251f1436..863a6bc93 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java index 1abb9d5f9..2343a8811 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.ArrayList; @@ -43,13 +42,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. */ @@ -61,8 +62,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. */ @@ -163,9 +164,9 @@ public CreateTransitGatewayConnectionOptions build() { } /** - * Adds a new element to prefixFilters. + * Adds an prefixFilters to prefixFilters. * - * @param prefixFilters the new element to be added + * @param prefixFilters the new prefixFilters * @return the CreateTransitGatewayConnectionOptions builder */ public Builder addPrefixFilters(TransitGatewayConnectionPrefixFilter prefixFilters) { @@ -179,9 +180,9 @@ public Builder addPrefixFilters(TransitGatewayConnectionPrefixFilter prefixFilte } /** - * Adds a new element to tunnels. + * Adds an tunnels to tunnels. * - * @param tunnels the new element to be added + * @param tunnels the new tunnels * @return the CreateTransitGatewayConnectionOptions builder */ public Builder addTunnels(TransitGatewayTunnelTemplate tunnels) { @@ -469,7 +470,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 */ @@ -480,9 +481,11 @@ public String baseNetworkType() { /** * Gets the cidr. * - * network_type 'vpn_gateway' connections use 'cidr' to specify the CIDR to use for the VPN 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 required for network type `vpn_gateway` connections. + * 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. @@ -498,7 +501,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 */ @@ -515,7 +518,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 */ @@ -530,7 +533,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. * @@ -557,11 +560,12 @@ public String networkAccountId() { /** * Gets the networkId. * - * The ID of the network being connected via this connection. For network types `vpc`,`power_virtual_server`, - * `directlink` and `vpn_gateway` this is the CRN of the VPC / PowerVS / VDC / Direct Link / VPN 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. + * The ID of the network being connected via this connection. 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. 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 */ @@ -577,7 +581,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 */ @@ -590,8 +594,8 @@ public List 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 */ @@ -609,7 +613,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 */ @@ -622,7 +626,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 */ @@ -639,7 +643,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 */ @@ -669,8 +673,8 @@ public List 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 */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java index a1a236df2..62997ca93 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java index edd1d87cb..e48a8e8cd 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java index 697321c6b..47e7287c1 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -24,6 +23,7 @@ public class CreateTransitGatewayOptions extends GenericModel { protected String name; protected Boolean global; protected Boolean greEnhancedRoutePropagation; + protected String redundancyGroup; protected ResourceGroupIdentity resourceGroup; /** @@ -34,6 +34,7 @@ public static class Builder { private String name; private Boolean global; private Boolean greEnhancedRoutePropagation; + private String redundancyGroup; private ResourceGroupIdentity resourceGroup; /** @@ -46,6 +47,7 @@ private Builder(CreateTransitGatewayOptions createTransitGatewayOptions) { this.name = createTransitGatewayOptions.name; this.global = createTransitGatewayOptions.global; this.greEnhancedRoutePropagation = createTransitGatewayOptions.greEnhancedRoutePropagation; + this.redundancyGroup = createTransitGatewayOptions.redundancyGroup; this.resourceGroup = createTransitGatewayOptions.resourceGroup; } @@ -119,6 +121,17 @@ public Builder greEnhancedRoutePropagation(Boolean greEnhancedRoutePropagation) return this; } + /** + * Set the redundancyGroup. + * + * @param redundancyGroup the redundancyGroup + * @return the CreateTransitGatewayOptions builder + */ + public Builder redundancyGroup(String redundancyGroup) { + this.redundancyGroup = redundancyGroup; + return this; + } + /** * Set the resourceGroup. * @@ -142,6 +155,7 @@ protected CreateTransitGatewayOptions(Builder builder) { name = builder.name; global = builder.global; greEnhancedRoutePropagation = builder.greEnhancedRoutePropagation; + redundancyGroup = builder.redundancyGroup; resourceGroup = builder.resourceGroup; } @@ -199,6 +213,20 @@ public Boolean greEnhancedRoutePropagation() { return greEnhancedRoutePropagation; } + /** + * Gets the redundancyGroup. + * + * Include the global transit gateway in this redundancy group. When set, this transit gateway will be redundant to + * other transit gateways in this redundancy group. If this redundancy group doesn't exist in the account, it will be + * created. This property can only be set for global transit gateways and the transit gateway cannot be in a location + * already used by a global transit gateway in this redundancy group. + * + * @return the redundancyGroup + */ + public String redundancyGroup() { + return redundancyGroup; + } + /** * Gets the resourceGroup. * diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java index eda886ab8..f63e4b900 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java index cf1c3898d..9711fb70f 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java index ed7db4690..11807915a 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java index f9aaa3391..1b718eb48 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java index 15b9f97bc..af962377a 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java index 1b1a5c6fe..8699434d6 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java index f58e6201d..2f023f965 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java new file mode 100644 index 000000000..8f7db24f9 --- /dev/null +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java @@ -0,0 +1,103 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The getRedundancyGroup options. + */ +public class GetRedundancyGroupOptions extends GenericModel { + + protected String id; + + /** + * Builder. + */ + public static class Builder { + private String id; + + /** + * Instantiates a new Builder from an existing GetRedundancyGroupOptions instance. + * + * @param getRedundancyGroupOptions the instance to initialize the Builder with + */ + private Builder(GetRedundancyGroupOptions getRedundancyGroupOptions) { + this.id = getRedundancyGroupOptions.id; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Instantiates a new builder with required properties. + * + * @param id the id + */ + public Builder(String id) { + this.id = id; + } + + /** + * Builds a GetRedundancyGroupOptions. + * + * @return the new GetRedundancyGroupOptions instance + */ + public GetRedundancyGroupOptions build() { + return new GetRedundancyGroupOptions(this); + } + + /** + * Set the id. + * + * @param id the id + * @return the GetRedundancyGroupOptions builder + */ + public Builder id(String id) { + this.id = id; + return this; + } + } + + protected GetRedundancyGroupOptions() { } + + protected GetRedundancyGroupOptions(Builder builder) { + com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.id, + "id cannot be empty"); + id = builder.id; + } + + /** + * New builder. + * + * @return a GetRedundancyGroupOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the id. + * + * The redundancy group identifier. + * + * @return the id + */ + public String id() { + return id; + } +} + diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java index c081649f7..a5a6a8551 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java index 53949aa46..5b8d95656 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java index f080ee361..cee57089d 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java index aaaf280f0..2166bc8d7 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java index b4a7cec53..c4002fc53 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java index 508d663fc..05cce8076 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java index ac8f51b97..99bd63566 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java new file mode 100644 index 000000000..077b23c4a --- /dev/null +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java @@ -0,0 +1,92 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The listRedundancyGroups options. + */ +public class ListRedundancyGroupsOptions extends GenericModel { + + protected String name; + + /** + * Builder. + */ + public static class Builder { + private String name; + + /** + * Instantiates a new Builder from an existing ListRedundancyGroupsOptions instance. + * + * @param listRedundancyGroupsOptions the instance to initialize the Builder with + */ + private Builder(ListRedundancyGroupsOptions listRedundancyGroupsOptions) { + this.name = listRedundancyGroupsOptions.name; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a ListRedundancyGroupsOptions. + * + * @return the new ListRedundancyGroupsOptions instance + */ + public ListRedundancyGroupsOptions build() { + return new ListRedundancyGroupsOptions(this); + } + + /** + * Set the name. + * + * @param name the name + * @return the ListRedundancyGroupsOptions builder + */ + public Builder name(String name) { + this.name = name; + return this; + } + } + + protected ListRedundancyGroupsOptions() { } + + protected ListRedundancyGroupsOptions(Builder builder) { + name = builder.name; + } + + /** + * New builder. + * + * @return a ListRedundancyGroupsOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the name. + * + * Filter the list of redundancy groups by name. + * + * @return the name + */ + public String name() { + return name; + } +} + diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java index d97c2a108..669bf976d 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java index f841eaa5e..a23bb49cc 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java index 8c81c61fa..d1ce0134a 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java index 8921c088a..12c28ffc6 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java index 4c597a04e..7a18fb050 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -22,6 +21,7 @@ public class ListTransitGatewaysOptions extends GenericModel { protected Long limit; protected String start; + protected String redundancyGroup; /** * Builder. @@ -29,6 +29,7 @@ public class ListTransitGatewaysOptions extends GenericModel { public static class Builder { private Long limit; private String start; + private String redundancyGroup; /** * Instantiates a new Builder from an existing ListTransitGatewaysOptions instance. @@ -38,6 +39,7 @@ public static class Builder { private Builder(ListTransitGatewaysOptions listTransitGatewaysOptions) { this.limit = listTransitGatewaysOptions.limit; this.start = listTransitGatewaysOptions.start; + this.redundancyGroup = listTransitGatewaysOptions.redundancyGroup; } /** @@ -76,6 +78,17 @@ public Builder start(String start) { this.start = start; return this; } + + /** + * Set the redundancyGroup. + * + * @param redundancyGroup the redundancyGroup + * @return the ListTransitGatewaysOptions builder + */ + public Builder redundancyGroup(String redundancyGroup) { + this.redundancyGroup = redundancyGroup; + return this; + } } protected ListTransitGatewaysOptions() { } @@ -83,6 +96,7 @@ protected ListTransitGatewaysOptions() { } protected ListTransitGatewaysOptions(Builder builder) { limit = builder.limit; start = builder.start; + redundancyGroup = builder.redundancyGroup; } /** @@ -115,5 +129,16 @@ public Long limit() { public String start() { return start; } + + /** + * Gets the redundancyGroup. + * + * Filter the list of transit gateways by redundancy group name. + * + * @return the redundancyGroup + */ + public String redundancyGroup() { + return redundancyGroup; + } } diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java index 4ff28ccc6..f2496bcc8 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java index e4e91ad8e..37d3e1bbb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java index a86e305e6..b57e0cfc1 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java index 5ce6dfe94..2c0fec5dc 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java index 35d8e05a8..57a6c8b75 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java index 1dbce7cd7..7382cd56e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java index 6bbe1670b..a6684a891 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java index 560e49aed..8d11d1174 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java new file mode 100644 index 000000000..c285e12cf --- /dev/null +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java @@ -0,0 +1,78 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import java.util.Date; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * A redundancy group. + */ +public class RedundancyGroup extends GenericModel { + + @SerializedName("created_at") + protected Date createdAt; + protected String id; + protected String name; + @SerializedName("updated_at") + protected Date updatedAt; + + protected RedundancyGroup() { } + + /** + * Gets the createdAt. + * + * The date and time that this redundancy group was created. + * + * @return the createdAt + */ + public Date getCreatedAt() { + return createdAt; + } + + /** + * Gets the id. + * + * The unique identifier for this redundancy group. + * + * @return the id + */ + public String getId() { + return id; + } + + /** + * Gets the name. + * + * The redundancy group name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Gets the updatedAt. + * + * The date and time that this redundancy group was last updated. + * + * @return the updatedAt + */ + public Date getUpdatedAt() { + return updatedAt; + } +} + diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java new file mode 100644 index 000000000..49c4e4903 --- /dev/null +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java @@ -0,0 +1,41 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import java.util.List; + +import com.google.gson.annotations.SerializedName; +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * A list of redundancy groups. + */ +public class RedundancyGroupCollection extends GenericModel { + + @SerializedName("redundancy_groups") + protected List redundancyGroups; + + protected RedundancyGroupCollection() { } + + /** + * Gets the redundancyGroups. + * + * Collection of redundancy groups. + * + * @return the redundancyGroups + */ + public List getRedundancyGroups() { + return redundancyGroups; + } +} + diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java new file mode 100644 index 000000000..2c0955b56 --- /dev/null +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java @@ -0,0 +1,108 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import java.util.Map; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; +import com.ibm.cloud.sdk.core.util.GsonSingleton; + +/** + * An update template for a redundancy group. + */ +public class RedundancyGroupPatch extends GenericModel { + + protected String name; + + /** + * Builder. + */ + public static class Builder { + private String name; + + /** + * Instantiates a new Builder from an existing RedundancyGroupPatch instance. + * + * @param redundancyGroupPatch the instance to initialize the Builder with + */ + private Builder(RedundancyGroupPatch redundancyGroupPatch) { + this.name = redundancyGroupPatch.name; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Builds a RedundancyGroupPatch. + * + * @return the new RedundancyGroupPatch instance + */ + public RedundancyGroupPatch build() { + return new RedundancyGroupPatch(this); + } + + /** + * Set the name. + * + * @param name the name + * @return the RedundancyGroupPatch builder + */ + public Builder name(String name) { + this.name = name; + return this; + } + } + + protected RedundancyGroupPatch() { } + + protected RedundancyGroupPatch(Builder builder) { + name = builder.name; + } + + /** + * New builder. + * + * @return a RedundancyGroupPatch builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the name. + * + * The new name for the redundancy group. + * + * @return the name + */ + public String name() { + return name; + } + + /** + * Construct a JSON merge-patch from the RedundancyGroupPatch. + * + * Note that properties of the RedundancyGroupPatch with null values are not represented in the constructed + * JSON merge-patch object, but can be explicitly set afterward to signify a property delete. + * + * @return a JSON merge-patch for the RedundancyGroupPatch + */ + public Map asPatch() { + return GsonSingleton.getGson().fromJson(this.toString(), Map.class); + } + +} + diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java index d8ed866b4..796e19175 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java index e4794fabb..e480d6aeb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java index a556884f5..fd2d352b8 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java index 1d033bc0e..9e3d0691a 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java index 586c66fde..2d82c7435 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java index 2768b777f..4f5b5a5e5 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java index 2b860eb1b..b1a5fff2b 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java index ed5fc19b0..bfbbbe73e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java index f9dbd097d..30fef6891 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java index f398588cd..493045b25 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java index 12d8706e9..59adb89e8 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java index 422dc88bd..969a9f81e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java index f8b362820..bde7dacb3 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java index 6f6148127..e338dec20 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; @@ -32,8 +31,6 @@ public interface BaseNetworkType { String CLASSIC = "classic"; /** vpc. */ String VPC = "vpc"; - /** vpn. */ - String VPN = "vpn"; } /** @@ -57,6 +54,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"; } /** @@ -124,6 +123,7 @@ public interface Status { protected String id; @SerializedName("base_connection_id") protected String baseConnectionId; + protected String cidr; @SerializedName("created_at") protected Date createdAt; @SerializedName("local_bgp_asn") @@ -183,9 +183,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`, `redundant_gre`, - * `power_virtual_server` and `directlink` this is the CRN of the VPC / PowerVS / VDC / 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 */ @@ -232,6 +232,18 @@ public String getBaseConnectionId() { return baseConnectionId; } + /** + * Gets the cidr. + * + * 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 + */ + public String getCidr() { + return cidr; + } + /** * Gets the createdAt. * @@ -402,7 +414,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 */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java index bb5441520..51ee147bb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java index 1350009b5..0a9bc4491 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; @@ -55,6 +54,10 @@ public interface Status { protected String id; protected String location; protected String name; + @SerializedName("redundancy_group") + protected String redundancyGroup; + @SerializedName("redundancy_group_id") + protected String redundancyGroupId; @SerializedName("resource_group") protected ResourceGroupReference resourceGroup; protected String status; @@ -163,6 +166,29 @@ public String getName() { return name; } + /** + * Gets the redundancyGroup. + * + * The redundancy group for this global transit gateway. The global transit gateways in this redundancy group will be + * redundant to each other. + * + * @return the redundancyGroup + */ + public String getRedundancyGroup() { + return redundancyGroup; + } + + /** + * Gets the redundancyGroupId. + * + * The unique identifier of the redundancy group for this global transit gateway. + * + * @return the redundancyGroupId + */ + public String getRedundancyGroupId() { + return redundancyGroupId; + } + /** * Gets the resourceGroup. * diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java index df2803f75..df92cbd66 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java index 7fd349465..9df6f415d 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java index 84baaa2c0..c0bb1eb09 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; @@ -28,15 +27,13 @@ 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. */ String CLASSIC = "classic"; /** vpc. */ String VPC = "vpc"; - /** vpn. */ - String VPN = "vpn"; } /** @@ -59,6 +56,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"; } /** @@ -179,7 +178,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 */ @@ -190,7 +189,8 @@ public String getBaseNetworkType() { /** * Gets the cidr. * - * network_type 'vpn_gateway' connections use 'cidr' to specify the CIDR to use for the VPN 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 */ @@ -273,7 +273,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. * @@ -298,11 +298,12 @@ public String getNetworkAccountId() { /** * Gets the networkId. * - * The ID of the network being connected via this connection. For network types `vpc`,`power_virtual_server`, - * `directlink` and `vpn_gateway` this is the CRN of the VPC / PowerVS / VDC / Direct Link / VPN 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. + * The ID of the network being connected via this connection. 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. 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 */ @@ -409,7 +410,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 */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java index cc1b0ef25..796392375 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java index 28e7c879e..d12989c26 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java index e99948af3..4b1527f55 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java index a9c3e5e6c..48e7b4599 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java index b435c7791..2879b6646 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; @@ -31,8 +30,6 @@ public interface BaseNetworkType { String CLASSIC = "classic"; /** vpc. */ String VPC = "vpc"; - /** vpn. */ - String VPN = "vpn"; } /** diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java index 4c8ab6873..3699cdbf6 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; @@ -18,7 +17,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 { @@ -29,7 +28,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 */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java index 0d8032407..5c015cfc2 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Map; @@ -104,5 +103,6 @@ public String name() { public Map asPatch() { return GsonSingleton.getGson().fromJson(this.toString(), Map.class); } + } diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java index 87f1d5ffe..b6ccfde12 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java index 42f8a74a3..4e086cdd0 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java new file mode 100644 index 000000000..5e92dea13 --- /dev/null +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java @@ -0,0 +1,135 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import java.util.Map; + +import com.ibm.cloud.sdk.core.service.model.GenericModel; + +/** + * The updateRedundancyGroup options. + */ +public class UpdateRedundancyGroupOptions extends GenericModel { + + protected String id; + protected Map redundancyGroupPatch; + + /** + * Builder. + */ + public static class Builder { + private String id; + private Map redundancyGroupPatch; + + /** + * Instantiates a new Builder from an existing UpdateRedundancyGroupOptions instance. + * + * @param updateRedundancyGroupOptions the instance to initialize the Builder with + */ + private Builder(UpdateRedundancyGroupOptions updateRedundancyGroupOptions) { + this.id = updateRedundancyGroupOptions.id; + this.redundancyGroupPatch = updateRedundancyGroupOptions.redundancyGroupPatch; + } + + /** + * Instantiates a new builder. + */ + public Builder() { + } + + /** + * Instantiates a new builder with required properties. + * + * @param id the id + * @param redundancyGroupPatch the redundancyGroupPatch + */ + public Builder(String id, Map redundancyGroupPatch) { + this.id = id; + this.redundancyGroupPatch = redundancyGroupPatch; + } + + /** + * Builds a UpdateRedundancyGroupOptions. + * + * @return the new UpdateRedundancyGroupOptions instance + */ + public UpdateRedundancyGroupOptions build() { + return new UpdateRedundancyGroupOptions(this); + } + + /** + * Set the id. + * + * @param id the id + * @return the UpdateRedundancyGroupOptions builder + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * Set the redundancyGroupPatch. + * + * @param redundancyGroupPatch the redundancyGroupPatch + * @return the UpdateRedundancyGroupOptions builder + */ + public Builder redundancyGroupPatch(Map redundancyGroupPatch) { + this.redundancyGroupPatch = redundancyGroupPatch; + return this; + } + } + + protected UpdateRedundancyGroupOptions() { } + + protected UpdateRedundancyGroupOptions(Builder builder) { + com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.id, + "id cannot be empty"); + com.ibm.cloud.sdk.core.util.Validator.notNull(builder.redundancyGroupPatch, + "redundancyGroupPatch cannot be null"); + id = builder.id; + redundancyGroupPatch = builder.redundancyGroupPatch; + } + + /** + * New builder. + * + * @return a UpdateRedundancyGroupOptions builder + */ + public Builder newBuilder() { + return new Builder(this); + } + + /** + * Gets the id. + * + * The redundancy group identifier. + * + * @return the id + */ + public String id() { + return id; + } + + /** + * Gets the redundancyGroupPatch. + * + * The redundancy group update template. + * + * @return the redundancyGroupPatch + */ + public Map redundancyGroupPatch() { + return redundancyGroupPatch; + } +} + diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java index 9290c0182..513a6d9fb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java index 9a51da07e..ca3a3eba7 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java index e64346407..ecb1a16b7 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Map; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java index 8201b9e0d..95515c2f9 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; @@ -24,6 +23,7 @@ public class UpdateTransitGatewayOptions extends GenericModel { protected Boolean global; protected Boolean greEnhancedRoutePropagation; protected String name; + protected String redundancyGroup; /** * Builder. @@ -33,6 +33,7 @@ public static class Builder { private Boolean global; private Boolean greEnhancedRoutePropagation; private String name; + private String redundancyGroup; /** * Instantiates a new Builder from an existing UpdateTransitGatewayOptions instance. @@ -44,6 +45,7 @@ private Builder(UpdateTransitGatewayOptions updateTransitGatewayOptions) { this.global = updateTransitGatewayOptions.global; this.greEnhancedRoutePropagation = updateTransitGatewayOptions.greEnhancedRoutePropagation; this.name = updateTransitGatewayOptions.name; + this.redundancyGroup = updateTransitGatewayOptions.redundancyGroup; } /** @@ -113,6 +115,17 @@ public Builder name(String name) { this.name = name; return this; } + + /** + * Set the redundancyGroup. + * + * @param redundancyGroup the redundancyGroup + * @return the UpdateTransitGatewayOptions builder + */ + public Builder redundancyGroup(String redundancyGroup) { + this.redundancyGroup = redundancyGroup; + return this; + } } protected UpdateTransitGatewayOptions() { } @@ -124,6 +137,7 @@ protected UpdateTransitGatewayOptions(Builder builder) { global = builder.global; greEnhancedRoutePropagation = builder.greEnhancedRoutePropagation; name = builder.name; + redundancyGroup = builder.redundancyGroup; } /** @@ -149,7 +163,8 @@ public String id() { /** * Gets the global. * - * Allow global routing for a Transit Gateway. + * Allow global routing for a Transit Gateway. This property cannot be changed if the transit gateway has + * redundancy_group set. * * @return the global */ @@ -180,5 +195,18 @@ public Boolean greEnhancedRoutePropagation() { public String name() { return name; } + + /** + * Gets the redundancyGroup. + * + * Create a new redundancy group with this name and add the gateway to it. This property is only valid when the + * gateway is global (or `global` is set to `true` in the same request), the gateway is not already a member of a + * redundancy group, and no redundancy group with this name already exists in the account. + * + * @return the redundancyGroup + */ + public String redundancyGroup() { + return redundancyGroup; + } } diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java index 486fd5df7..393f5e241 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java index 74319dace..dcbb14207 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; /** diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java index bdb566b84..69af78185 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java index 74ed99c9d..790b0ee08 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,7 +10,6 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - /** * Transit Gateway Apis v1. */ diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java index da7f2c7a2..939807fa9 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,14 +10,8 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1; -import com.ibm.cloud.sdk.core.http.Response; -import com.ibm.cloud.sdk.core.security.Authenticator; -import com.ibm.cloud.sdk.core.security.NoAuthAuthenticator; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; -import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ConnectionsPager; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.CreateTransitGatewayConnectionActionsOptions; @@ -32,6 +26,7 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.DeleteTransitGatewayOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.DeleteTransitGatewayRouteReportOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetGatewayLocationOptions; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetRedundancyGroupOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayConnectionOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayConnectionPrefixFilterOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayConnectionTunnelsOptions; @@ -39,6 +34,7 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetTransitGatewayRouteReportOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListConnectionsOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListGatewayLocationsOptions; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListRedundancyGroupsOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListTransitGatewayConnectionPrefixFiltersOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListTransitGatewayConnectionsOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListTransitGatewayGreTunnelOptions; @@ -52,6 +48,9 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.PaginationNextTGWConnection; 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.RedundancyGroup; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RedundancyGroupCollection; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RedundancyGroupPatch; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ResourceGroupIdentity; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ResourceGroupReference; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RouteReport; @@ -80,6 +79,7 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayTunnelPatch; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayTunnelTemplate; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewaysPager; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateRedundancyGroupOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateTransitGatewayConnectionOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateTransitGatewayConnectionPrefixFilterOptions; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateTransitGatewayConnectionTunnelsOptions; @@ -88,6 +88,11 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ZoneIdentityByName; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ZoneReference; import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.http.Response; +import com.ibm.cloud.sdk.core.security.Authenticator; +import com.ibm.cloud.sdk.core.security.NoAuthAuthenticator; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; @@ -133,7 +138,7 @@ public void testGetVersion() throws Throwable { @Test public void testListTransitGatewaysWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"first\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways?limit=50\"}, \"limit\": 50, \"next\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways?start=MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa&limit=50\", \"start\": \"MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa\"}, \"transit_gateways\": [{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}]}"; + String mockResponseBody = "{\"first\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways?limit=50\"}, \"limit\": 50, \"next\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways?start=MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa&limit=50\", \"start\": \"MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa\"}, \"transit_gateways\": [{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"redundancy_group\": \"rg-1\", \"redundancy_group_id\": \"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}]}"; String listTransitGatewaysPath = "/transit_gateways"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -144,6 +149,7 @@ public void testListTransitGatewaysWOptions() throws Throwable { ListTransitGatewaysOptions listTransitGatewaysOptionsModel = new ListTransitGatewaysOptions.Builder() .limit(Long.valueOf("10")) .start("testString") + .redundancyGroup("testString") .build(); // Invoke listTransitGateways() with a valid options model and verify the result @@ -165,6 +171,7 @@ public void testListTransitGatewaysWOptions() throws Throwable { assertEquals(query.get("version"), "testString"); assertEquals(Long.valueOf(query.get("limit")), Long.valueOf("10")); assertEquals(query.get("start"), "testString"); + assertEquals(query.get("redundancy_group"), "testString"); } // Test the listTransitGateways operation with and without retries enabled @@ -181,8 +188,8 @@ public void testListTransitGatewaysWRetries() throws Throwable { @Test public void testListTransitGatewaysWithPagerGetNext() throws Throwable { // Set up the two-page mock response. - String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; - String mockResponsePage2 = "{\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; + String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"redundancy_group\":\"rg-1\",\"redundancy_group_id\":\"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; + String mockResponsePage2 = "{\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"redundancy_group\":\"rg-1\",\"redundancy_group_id\":\"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") .setResponseCode(200) @@ -198,6 +205,7 @@ public void testListTransitGatewaysWithPagerGetNext() throws Throwable { ListTransitGatewaysOptions listTransitGatewaysOptions = new ListTransitGatewaysOptions.Builder() .limit(Long.valueOf("10")) + .redundancyGroup("testString") .build(); List allResults = new ArrayList<>(); @@ -214,8 +222,8 @@ public void testListTransitGatewaysWithPagerGetNext() throws Throwable { @Test public void testListTransitGatewaysWithPagerGetAll() throws Throwable { // Set up the two-page mock response. - String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; - String mockResponsePage2 = "{\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; + String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"redundancy_group\":\"rg-1\",\"redundancy_group_id\":\"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; + String mockResponsePage2 = "{\"transit_gateways\":[{\"connection_count\":5,\"connection_needs_attention\":true,\"created_at\":\"2019-01-01T12:00:00.000Z\",\"crn\":\"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"global\":true,\"gre_enhanced_route_propagation\":true,\"id\":\"0a06fb9b-820f-4c44-8a31-77f1f0806d28\",\"location\":\"us-south\",\"name\":\"my-transit-gateway-in-TransitGateway\",\"redundancy_group\":\"rg-1\",\"redundancy_group_id\":\"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\",\"resource_group\":{\"href\":\"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\",\"id\":\"56969d6043e9465c883cb9f7363e78e8\"},\"status\":\"available\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"total_count\":2,\"limit\":1}"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") .setResponseCode(200) @@ -231,6 +239,7 @@ public void testListTransitGatewaysWithPagerGetAll() throws Throwable { ListTransitGatewaysOptions listTransitGatewaysOptions = new ListTransitGatewaysOptions.Builder() .limit(Long.valueOf("10")) + .redundancyGroup("testString") .build(); TransitGatewaysPager pager = new TransitGatewaysPager(transitGatewayApisService, listTransitGatewaysOptions); @@ -243,7 +252,7 @@ public void testListTransitGatewaysWithPagerGetAll() throws Throwable { @Test public void testCreateTransitGatewayWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; + String mockResponseBody = "{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"redundancy_group\": \"rg-1\", \"redundancy_group_id\": \"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; String createTransitGatewayPath = "/transit_gateways"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -261,6 +270,7 @@ public void testCreateTransitGatewayWOptions() throws Throwable { .name("my-transit-gateway-in-TransitGateway") .global(true) .greEnhancedRoutePropagation(true) + .redundancyGroup("rg-1") .resourceGroup(resourceGroupIdentityModel) .build(); @@ -355,7 +365,7 @@ public void testDeleteTransitGatewayNoOptions() throws Throwable { @Test public void testGetTransitGatewayWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; + String mockResponseBody = "{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"redundancy_group\": \"rg-1\", \"redundancy_group_id\": \"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; String getTransitGatewayPath = "/transit_gateways/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -407,7 +417,7 @@ public void testGetTransitGatewayNoOptions() throws Throwable { @Test public void testUpdateTransitGatewayWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; + String mockResponseBody = "{\"connection_count\": 5, \"connection_needs_attention\": true, \"created_at\": \"2019-01-01T12:00:00.000Z\", \"crn\": \"crn:v1:bluemix:public:transit:dal03:a/57a7d05f36894e3cb9b46a43556d903e::gateway:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"global\": true, \"gre_enhanced_route_propagation\": true, \"id\": \"0a06fb9b-820f-4c44-8a31-77f1f0806d28\", \"location\": \"us-south\", \"name\": \"my-transit-gateway-in-TransitGateway\", \"redundancy_group\": \"rg-1\", \"redundancy_group_id\": \"ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4\", \"resource_group\": {\"href\": \"https://resource-manager.bluemix.net/v1/resource_groups/56969d6043e9465c883cb9f7363e78e8\", \"id\": \"56969d6043e9465c883cb9f7363e78e8\"}, \"status\": \"available\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; String updateTransitGatewayPath = "/transit_gateways/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -420,6 +430,7 @@ public void testUpdateTransitGatewayWOptions() throws Throwable { .global(true) .greEnhancedRoutePropagation(true) .name("my-resource") + .redundancyGroup("rg-1") .build(); // Invoke updateTransitGateway() with a valid options model and verify the result @@ -462,7 +473,7 @@ public void testUpdateTransitGatewayNoOptions() throws Throwable { @Test public void testListConnectionsWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"connections\": [{\"base_network_type\": \"classic\", \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"network_account_id\": \"networkAccountId\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"transit_gateway\": {\"crn\": \"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\", \"id\": \"456f58c1-afe7-123a-0a0a-7f3d720f1a44\", \"name\": \"my-transit-gw100\"}, \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"first\": {\"href\": \"https://transit.cloud.ibm.com/v1/connections?limit=50\"}, \"limit\": 50, \"next\": {\"href\": \"https://transit.cloud.ibm.com/v1/connections?start=MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa&limit=50\", \"start\": \"MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa\"}}"; + String mockResponseBody = "{\"connections\": [{\"base_network_type\": \"classic\", \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"cidr\": \"198.19.174.0/23\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"network_account_id\": \"networkAccountId\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"transit_gateway\": {\"crn\": \"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\", \"id\": \"456f58c1-afe7-123a-0a0a-7f3d720f1a44\", \"name\": \"my-transit-gw100\"}, \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"first\": {\"href\": \"https://transit.cloud.ibm.com/v1/connections?limit=50\"}, \"limit\": 50, \"next\": {\"href\": \"https://transit.cloud.ibm.com/v1/connections?start=MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa&limit=50\", \"start\": \"MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa\"}}"; String listConnectionsPath = "/connections"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -514,8 +525,8 @@ public void testListConnectionsWRetries() throws Throwable { @Test public void testListConnectionsWithPagerGetNext() throws Throwable { // Set up the two-page mock response. - String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; - String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") .setResponseCode(200) @@ -549,8 +560,8 @@ public void testListConnectionsWithPagerGetNext() throws Throwable { @Test public void testListConnectionsWithPagerGetAll() throws Throwable { // Set up the two-page mock response. - String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; - String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_network_type\":\"classic\",\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"network_account_id\":\"networkAccountId\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"transit_gateway\":{\"crn\":\"crn:v1:bluemix:public:transit:us-south:a/123456::gateway:456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"id\":\"456f58c1-afe7-123a-0a0a-7f3d720f1a44\",\"name\":\"my-transit-gw100\"},\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") .setResponseCode(200) @@ -580,7 +591,7 @@ public void testListConnectionsWithPagerGetAll() throws Throwable { @Test public void testListTransitGatewayConnectionsWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"connections\": [{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"192.168.0.0/24\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"first\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways/{transit_gateway_id}/connections?limit=50\"}, \"limit\": 50, \"next\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways/{transit_gateway_id}/connections?start=MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa&limit=50\", \"start\": \"MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa\"}, \"total_count\": 500}"; + String mockResponseBody = "{\"connections\": [{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"198.19.174.0/23\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"first\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways/{transit_gateway_id}/connections?limit=50\"}, \"limit\": 50, \"next\": {\"href\": \"https://transit.cloud.ibm.com/v1/transit_gateways/{transit_gateway_id}/connections?start=MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa&limit=50\", \"start\": \"MjAyMC0wNS0wOFQxNDoxNzowMy45NzQ5NzNa\"}, \"total_count\": 500}"; String listTransitGatewayConnectionsPath = "/transit_gateways/testString/connections"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -638,8 +649,8 @@ public void testListTransitGatewayConnectionsNoOptions() throws Throwable { @Test public void testListTransitGatewayConnectionsWithPagerGetNext() throws Throwable { // Set up the two-page mock response. - String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"192.168.0.0/24\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; - String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"192.168.0.0/24\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") .setResponseCode(200) @@ -673,8 +684,8 @@ public void testListTransitGatewayConnectionsWithPagerGetNext() throws Throwable @Test public void testListTransitGatewayConnectionsWithPagerGetAll() throws Throwable { // Set up the two-page mock response. - String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"192.168.0.0/24\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; - String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"192.168.0.0/24\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":11,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage1 = "{\"next\":{\"start\":\"1\"},\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; + String mockResponsePage2 = "{\"total_count\":2,\"limit\":1,\"connections\":[{\"base_connection_id\":\"975f58c1-afe7-469a-9727-7f3d720f2d32\",\"base_network_type\":\"classic\",\"cidr\":\"198.19.174.0/23\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":64490,\"local_gateway_ip\":\"192.168.100.1\",\"local_tunnel_ip\":\"192.168.129.2\",\"mtu\":9000,\"name\":\"Transit_Service_BWTN_SJ_DL\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"network_type\":\"vpc\",\"prefix_filters\":[{\"action\":\"permit\",\"before\":\"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"ge\":0,\"id\":\"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\",\"le\":32,\"prefix\":\"192.168.100.0/24\",\"updated_at\":\"2019-01-01T12:00:00.000Z\"}],\"prefix_filters_default\":\"permit\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.63.12\",\"remote_tunnel_ip\":\"192.168.129.1\",\"request_status\":\"pending\",\"status\":\"attached\",\"tunnels\":[{\"base_network_type\":\"classic\",\"created_at\":\"2019-01-01T12:00:00.000Z\",\"id\":\"1a15dca5-7e33-45e1-b7c5-bc690e569531\",\"local_bgp_asn\":1,\"local_gateway_ip\":\"10.242.63.12\",\"local_tunnel_ip\":\"192.168.100.20\",\"mtu\":9000,\"name\":\"gre1\",\"network_account_id\":\"networkAccountId\",\"network_id\":\"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\",\"remote_bgp_asn\":65010,\"remote_gateway_ip\":\"10.242.33.22\",\"remote_tunnel_ip\":\"192.168.129.1\",\"status\":\"attached\",\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}],\"updated_at\":\"2019-01-01T12:00:00.000Z\",\"zone\":{\"name\":\"us-south-1\"}}]}"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") .setResponseCode(200) @@ -704,7 +715,7 @@ public void testListTransitGatewayConnectionsWithPagerGetAll() throws Throwable @Test public void testCreateTransitGatewayConnectionWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"192.168.0.0/24\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; + String mockResponseBody = "{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"198.19.174.0/23\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; String createTransitGatewayConnectionPath = "/transit_gateways/testString/connections"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -741,7 +752,7 @@ public void testCreateTransitGatewayConnectionWOptions() throws Throwable { .networkType("vpc") .baseConnectionId("975f58c1-afe7-469a-9727-7f3d720f2d32") .baseNetworkType("classic") - .cidr("192.168.0.0/24") + .cidr("198.19.174.0/23") .localGatewayIp("192.168.100.1") .localTunnelIp("192.168.129.2") .name("Transit_Service_BWTN_SJ_DL") @@ -848,7 +859,7 @@ public void testDeleteTransitGatewayConnectionNoOptions() throws Throwable { @Test public void testGetTransitGatewayConnectionWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"192.168.0.0/24\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; + String mockResponseBody = "{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"198.19.174.0/23\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; String getTransitGatewayConnectionPath = "/transit_gateways/testString/connections/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -901,7 +912,7 @@ public void testGetTransitGatewayConnectionNoOptions() throws Throwable { @Test public void testUpdateTransitGatewayConnectionWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"192.168.0.0/24\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; + String mockResponseBody = "{\"base_connection_id\": \"975f58c1-afe7-469a-9727-7f3d720f2d32\", \"base_network_type\": \"classic\", \"cidr\": \"198.19.174.0/23\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 64490, \"local_gateway_ip\": \"192.168.100.1\", \"local_tunnel_ip\": \"192.168.129.2\", \"mtu\": 9000, \"name\": \"Transit_Service_BWTN_SJ_DL\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"network_type\": \"vpc\", \"prefix_filters\": [{\"action\": \"permit\", \"before\": \"1a15dcab-7e40-45e1-b7c5-bc690eaa9782\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"ge\": 0, \"id\": \"1a15dcab-7e30-45e1-b7c5-bc690eaa9865\", \"le\": 32, \"prefix\": \"192.168.100.0/24\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}], \"prefix_filters_default\": \"permit\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.63.12\", \"remote_tunnel_ip\": \"192.168.129.1\", \"request_status\": \"pending\", \"status\": \"attached\", \"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}], \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; String updateTransitGatewayConnectionPath = "/transit_gateways/testString/connections/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -1009,7 +1020,7 @@ public void testCreateTransitGatewayConnectionActionsNoOptions() throws Throwabl @Test public void testListTransitGatewayGreTunnelWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}]}"; + String mockResponseBody = "{\"tunnels\": [{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}]}"; String listTransitGatewayGreTunnelPath = "/transit_gateways/testString/connections/testString/tunnels"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -1062,7 +1073,7 @@ public void testListTransitGatewayGreTunnelNoOptions() throws Throwable { @Test public void testCreateTransitGatewayGreTunnelWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; + String mockResponseBody = "{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; String createTransitGatewayGreTunnelPath = "/transit_gateways/testString/connections/testString/tunnels"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -1180,7 +1191,7 @@ public void testDeleteTransitGatewayConnectionTunnelsNoOptions() throws Throwabl @Test public void testGetTransitGatewayConnectionTunnelsWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; + String mockResponseBody = "{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; String getTransitGatewayConnectionTunnelsPath = "/transit_gateways/testString/connections/testString/tunnels/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -1234,7 +1245,7 @@ public void testGetTransitGatewayConnectionTunnelsNoOptions() throws Throwable { @Test public void testUpdateTransitGatewayConnectionTunnelsWOptions() throws Throwable { // Register a mock response - String mockResponseBody = "{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 11, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; + String mockResponseBody = "{\"base_network_type\": \"classic\", \"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"1a15dca5-7e33-45e1-b7c5-bc690e569531\", \"local_bgp_asn\": 1, \"local_gateway_ip\": \"10.242.63.12\", \"local_tunnel_ip\": \"192.168.100.20\", \"mtu\": 9000, \"name\": \"gre1\", \"network_account_id\": \"networkAccountId\", \"network_id\": \"crn:v1:bluemix:public:is:us-south:a/123456::vpc:4727d842-f94f-4a2d-824a-9bc9b02c523b\", \"remote_bgp_asn\": 65010, \"remote_gateway_ip\": \"10.242.33.22\", \"remote_tunnel_ip\": \"192.168.129.1\", \"status\": \"attached\", \"updated_at\": \"2019-01-01T12:00:00.000Z\", \"zone\": {\"name\": \"us-south-1\"}}"; String updateTransitGatewayConnectionTunnelsPath = "/transit_gateways/testString/connections/testString/tunnels/testString"; server.enqueue(new MockResponse() .setHeader("Content-type", "application/json") @@ -1872,6 +1883,163 @@ public void testGetTransitGatewayRouteReportNoOptions() throws Throwable { transitGatewayApisService.getTransitGatewayRouteReport(null).execute(); } + // Test the listRedundancyGroups operation with a valid options model parameter + @Test + public void testListRedundancyGroupsWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"redundancy_groups\": [{\"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"bf3f5f91-1234-41c7-9e11-9cd99e65c1f4\", \"name\": \"rg-1\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}]}"; + String listRedundancyGroupsPath = "/redundancy_groups"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the ListRedundancyGroupsOptions model + ListRedundancyGroupsOptions listRedundancyGroupsOptionsModel = new ListRedundancyGroupsOptions.Builder() + .name("testString") + .build(); + + // Invoke listRedundancyGroups() with a valid options model and verify the result + Response response = transitGatewayApisService.listRedundancyGroups(listRedundancyGroupsOptionsModel).execute(); + assertNotNull(response); + RedundancyGroupCollection responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, listRedundancyGroupsPath); + // Verify query params + Map query = TestUtilities.parseQueryString(request); + assertNotNull(query); + assertEquals(query.get("version"), "testString"); + assertEquals(query.get("name"), "testString"); + } + + // Test the listRedundancyGroups operation with and without retries enabled + @Test + public void testListRedundancyGroupsWRetries() throws Throwable { + transitGatewayApisService.enableRetries(4, 30); + testListRedundancyGroupsWOptions(); + + transitGatewayApisService.disableRetries(); + testListRedundancyGroupsWOptions(); + } + + // Test the getRedundancyGroup operation with a valid options model parameter + @Test + public void testGetRedundancyGroupWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"bf3f5f91-1234-41c7-9e11-9cd99e65c1f4\", \"name\": \"rg-1\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; + String getRedundancyGroupPath = "/redundancy_groups/testString"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the GetRedundancyGroupOptions model + GetRedundancyGroupOptions getRedundancyGroupOptionsModel = new GetRedundancyGroupOptions.Builder() + .id("testString") + .build(); + + // Invoke getRedundancyGroup() with a valid options model and verify the result + Response response = transitGatewayApisService.getRedundancyGroup(getRedundancyGroupOptionsModel).execute(); + assertNotNull(response); + RedundancyGroup responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "GET"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, getRedundancyGroupPath); + // Verify query params + Map query = TestUtilities.parseQueryString(request); + assertNotNull(query); + assertEquals(query.get("version"), "testString"); + } + + // Test the getRedundancyGroup operation with and without retries enabled + @Test + public void testGetRedundancyGroupWRetries() throws Throwable { + transitGatewayApisService.enableRetries(4, 30); + testGetRedundancyGroupWOptions(); + + transitGatewayApisService.disableRetries(); + testGetRedundancyGroupWOptions(); + } + + // Test the getRedundancyGroup operation with a null options model (negative test) + @Test(expectedExceptions = IllegalArgumentException.class) + public void testGetRedundancyGroupNoOptions() throws Throwable { + server.enqueue(new MockResponse()); + transitGatewayApisService.getRedundancyGroup(null).execute(); + } + + // Test the updateRedundancyGroup operation with a valid options model parameter + @Test + public void testUpdateRedundancyGroupWOptions() throws Throwable { + // Register a mock response + String mockResponseBody = "{\"created_at\": \"2019-01-01T12:00:00.000Z\", \"id\": \"bf3f5f91-1234-41c7-9e11-9cd99e65c1f4\", \"name\": \"rg-1\", \"updated_at\": \"2019-01-01T12:00:00.000Z\"}"; + String updateRedundancyGroupPath = "/redundancy_groups/testString"; + server.enqueue(new MockResponse() + .setHeader("Content-type", "application/json") + .setResponseCode(200) + .setBody(mockResponseBody)); + + // Construct an instance of the RedundancyGroupPatch model + RedundancyGroupPatch redundancyGroupPatchModel = new RedundancyGroupPatch.Builder() + .name("new-rg-name") + .build(); + Map redundancyGroupPatchModelAsPatch = redundancyGroupPatchModel.asPatch(); + + // Construct an instance of the UpdateRedundancyGroupOptions model + UpdateRedundancyGroupOptions updateRedundancyGroupOptionsModel = new UpdateRedundancyGroupOptions.Builder() + .id("testString") + .redundancyGroupPatch(redundancyGroupPatchModelAsPatch) + .build(); + + // Invoke updateRedundancyGroup() with a valid options model and verify the result + Response response = transitGatewayApisService.updateRedundancyGroup(updateRedundancyGroupOptionsModel).execute(); + assertNotNull(response); + RedundancyGroup responseObj = response.getResult(); + assertNotNull(responseObj); + + // Verify the contents of the request sent to the mock server + RecordedRequest request = server.takeRequest(); + assertNotNull(request); + assertEquals(request.getMethod(), "PATCH"); + // Verify request path + String parsedPath = TestUtilities.parseReqPath(request); + assertEquals(parsedPath, updateRedundancyGroupPath); + // Verify query params + Map query = TestUtilities.parseQueryString(request); + assertNotNull(query); + assertEquals(query.get("version"), "testString"); + } + + // Test the updateRedundancyGroup operation with and without retries enabled + @Test + public void testUpdateRedundancyGroupWRetries() throws Throwable { + transitGatewayApisService.enableRetries(4, 30); + testUpdateRedundancyGroupWOptions(); + + transitGatewayApisService.disableRetries(); + testUpdateRedundancyGroupWOptions(); + } + + // Test the updateRedundancyGroup operation with a null options model (negative test) + @Test(expectedExceptions = IllegalArgumentException.class) + public void testUpdateRedundancyGroupNoOptions() throws Throwable { + server.enqueue(new MockResponse()); + transitGatewayApisService.updateRedundancyGroup(null).execute(); + } + // Perform setup needed before each test method @BeforeMethod public void beforeEachTest() { diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptionsTest.java index bc05af4ef..c759d24a2 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptionsTest.java index d0aab4171..a0834026c 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -72,7 +72,7 @@ public void testCreateTransitGatewayConnectionOptions() throws Throwable { .networkType("vpc") .baseConnectionId("975f58c1-afe7-469a-9727-7f3d720f2d32") .baseNetworkType("classic") - .cidr("192.168.0.0/24") + .cidr("198.19.174.0/23") .localGatewayIp("192.168.100.1") .localTunnelIp("192.168.129.2") .name("Transit_Service_BWTN_SJ_DL") @@ -90,7 +90,7 @@ public void testCreateTransitGatewayConnectionOptions() throws Throwable { assertEquals(createTransitGatewayConnectionOptionsModel.networkType(), "vpc"); assertEquals(createTransitGatewayConnectionOptionsModel.baseConnectionId(), "975f58c1-afe7-469a-9727-7f3d720f2d32"); assertEquals(createTransitGatewayConnectionOptionsModel.baseNetworkType(), "classic"); - assertEquals(createTransitGatewayConnectionOptionsModel.cidr(), "192.168.0.0/24"); + assertEquals(createTransitGatewayConnectionOptionsModel.cidr(), "198.19.174.0/23"); assertEquals(createTransitGatewayConnectionOptionsModel.localGatewayIp(), "192.168.100.1"); assertEquals(createTransitGatewayConnectionOptionsModel.localTunnelIp(), "192.168.129.2"); assertEquals(createTransitGatewayConnectionOptionsModel.name(), "Transit_Service_BWTN_SJ_DL"); diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptionsTest.java index b0524eb53..b08f337c3 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptionsTest.java index 810e482a0..4d5f0cae6 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptionsTest.java index 022668a45..ad7b79d41 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -42,12 +42,14 @@ public void testCreateTransitGatewayOptions() throws Throwable { .name("my-transit-gateway-in-TransitGateway") .global(true) .greEnhancedRoutePropagation(true) + .redundancyGroup("rg-1") .resourceGroup(resourceGroupIdentityModel) .build(); assertEquals(createTransitGatewayOptionsModel.location(), "us-south"); assertEquals(createTransitGatewayOptionsModel.name(), "my-transit-gateway-in-TransitGateway"); assertEquals(createTransitGatewayOptionsModel.global(), Boolean.valueOf(true)); assertEquals(createTransitGatewayOptionsModel.greEnhancedRoutePropagation(), Boolean.valueOf(true)); + assertEquals(createTransitGatewayOptionsModel.redundancyGroup(), "rg-1"); assertEquals(createTransitGatewayOptionsModel.resourceGroup(), resourceGroupIdentityModel); } diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptionsTest.java index 26d85d760..2ac505e56 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptionsTest.java index 26b6468d4..1ac382ada 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptionsTest.java index e20eac14f..dbcfac9eb 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptionsTest.java index 7ecbc5b15..9addda6ce 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptionsTest.java index aa409d1ff..a3096989e 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptionsTest.java index 5a32e009a..2ca21e36f 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptionsTest.java index ab7aa54e9..e69e333b1 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptionsTest.java new file mode 100644 index 000000000..987d97201 --- /dev/null +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptionsTest.java @@ -0,0 +1,45 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.GetRedundancyGroupOptions; +import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the GetRedundancyGroupOptions model. + */ +public class GetRedundancyGroupOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testGetRedundancyGroupOptions() throws Throwable { + GetRedundancyGroupOptions getRedundancyGroupOptionsModel = new GetRedundancyGroupOptions.Builder() + .id("testString") + .build(); + assertEquals(getRedundancyGroupOptionsModel.id(), "testString"); + } + + @Test(expectedExceptions = IllegalArgumentException.class) + public void testGetRedundancyGroupOptionsError() throws Throwable { + new GetRedundancyGroupOptions.Builder().build(); + } + +} \ No newline at end of file diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptionsTest.java index 1b7a0a1d6..02a5ddc8e 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptionsTest.java index 1c3b1baba..8ead4a7df 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptionsTest.java index c9a8835c0..cdb52cf9a 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptionsTest.java index a0de79064..9f0fa90f1 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptionsTest.java index 4481c2965..f1254ae06 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptionsTest.java index be75ebc09..7f31c148e 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptionsTest.java index 8f38ed7e3..c42363523 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptionsTest.java new file mode 100644 index 000000000..05c59910c --- /dev/null +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptionsTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ListRedundancyGroupsOptions; +import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the ListRedundancyGroupsOptions model. + */ +public class ListRedundancyGroupsOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testListRedundancyGroupsOptions() throws Throwable { + ListRedundancyGroupsOptions listRedundancyGroupsOptionsModel = new ListRedundancyGroupsOptions.Builder() + .name("testString") + .build(); + assertEquals(listRedundancyGroupsOptionsModel.name(), "testString"); + } +} \ No newline at end of file diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptionsTest.java index ec4909a13..4991150a3 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptionsTest.java index a50036e50..4e6bb08c1 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptionsTest.java index 5ed1701aa..bf50d10d9 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptionsTest.java index 5dd0ea101..c8570d87e 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptionsTest.java index 828016fc6..11a6a6686 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -34,8 +34,10 @@ public void testListTransitGatewaysOptions() throws Throwable { ListTransitGatewaysOptions listTransitGatewaysOptionsModel = new ListTransitGatewaysOptions.Builder() .limit(Long.valueOf("50")) .start("testString") + .redundancyGroup("testString") .build(); assertEquals(listTransitGatewaysOptionsModel.limit(), Long.valueOf("50")); assertEquals(listTransitGatewaysOptionsModel.start(), "testString"); + assertEquals(listTransitGatewaysOptionsModel.redundancyGroup(), "testString"); } } \ No newline at end of file diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnectionTest.java index 4be012f1d..a5093d6a0 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGTest.java index 0eafa64af..18668b52c 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnectionTest.java index a8e02b867..8f8e9ce7b 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnectionTest.java index 1010df877..5b8811b54 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGTest.java index d5d398395..65b7789f4 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnectionTest.java index 660879c8a..990c3c499 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollectionTest.java index e5893cef7..95dc19370 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCustTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCustTest.java index 987eb5029..f5c3f7196 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCustTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCustTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollectionTest.java new file mode 100644 index 000000000..d2afa5519 --- /dev/null +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollectionTest.java @@ -0,0 +1,39 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RedundancyGroup; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RedundancyGroupCollection; +import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the RedundancyGroupCollection model. + */ +public class RedundancyGroupCollectionTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testRedundancyGroupCollection() throws Throwable { + RedundancyGroupCollection redundancyGroupCollectionModel = new RedundancyGroupCollection(); + assertNull(redundancyGroupCollectionModel.getRedundancyGroups()); + } +} \ No newline at end of file diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatchTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatchTest.java new file mode 100644 index 000000000..ed1a29c2e --- /dev/null +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatchTest.java @@ -0,0 +1,57 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RedundancyGroupPatch; +import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the RedundancyGroupPatch model. + */ +public class RedundancyGroupPatchTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testRedundancyGroupPatch() throws Throwable { + RedundancyGroupPatch redundancyGroupPatchModel = new RedundancyGroupPatch.Builder() + .name("new-rg-name") + .build(); + assertEquals(redundancyGroupPatchModel.name(), "new-rg-name"); + + String json = TestUtilities.serialize(redundancyGroupPatchModel); + + RedundancyGroupPatch redundancyGroupPatchModelNew = TestUtilities.deserialize(json, RedundancyGroupPatch.class); + assertTrue(redundancyGroupPatchModelNew instanceof RedundancyGroupPatch); + assertEquals(redundancyGroupPatchModelNew.name(), "new-rg-name"); + } + @Test + public void testRedundancyGroupPatchAsPatch() throws Throwable { + RedundancyGroupPatch redundancyGroupPatchModel = new RedundancyGroupPatch.Builder() + .name("new-rg-name") + .build(); + + Map mergePatch = redundancyGroupPatchModel.asPatch(); + + assertEquals(mergePatch.get("name"), "new-rg-name"); + } + +} \ No newline at end of file diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupTest.java new file mode 100644 index 000000000..b5107fac6 --- /dev/null +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupTest.java @@ -0,0 +1,40 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.RedundancyGroup; +import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the RedundancyGroup model. + */ +public class RedundancyGroupTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testRedundancyGroup() throws Throwable { + RedundancyGroup redundancyGroupModel = new RedundancyGroup(); + assertNull(redundancyGroupModel.getCreatedAt()); + assertNull(redundancyGroupModel.getId()); + assertNull(redundancyGroupModel.getName()); + assertNull(redundancyGroupModel.getUpdatedAt()); + } +} \ No newline at end of file diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentityTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentityTest.java index 81ce1ee38..785da28de 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentityTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentityTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReferenceTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReferenceTest.java index 1b2cda397..9887d1b78 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReferenceTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReferenceTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollectionTest.java index 3edf972cf..9908a2a05 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgpTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgpTest.java index 850ffc252..a38750669 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgpTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgpTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRouteTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRouteTest.java index 0ac41fca4..9cbda985a 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRouteTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRouteTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionTest.java index a5269d9ed..9c080f1d7 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroupTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroupTest.java index d9af8892a..3cc9591c0 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroupTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroupTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteTest.java index c5bc03f0a..75b89aba0 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportTest.java index f94547dd7..f809b6948 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollectionTest.java index 042c3e589..e599e9ed2 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocationTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocationTest.java index 43f087197..5c74ad378 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocationTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocationTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasicTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasicTest.java index 38477850d..e0fd689f9 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasicTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasicTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationTest.java index 184cb21a5..d5cb4710c 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollectionTest.java index c9704cfe2..99429b6cc 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,8 +13,6 @@ package com.ibm.cloud.networking.transit_gateway_apis.v1.model; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; -import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.PaginationFirstConnection; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.PaginationNextConnection; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitConnection; @@ -24,6 +22,8 @@ import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayTunnel; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ZoneReference; import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import java.io.InputStream; import java.util.HashMap; import java.util.List; diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionTest.java index 87721b2cf..852a703ce 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -13,14 +13,14 @@ package com.ibm.cloud.networking.transit_gateway_apis.v1.model; -import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; -import com.ibm.cloud.sdk.core.util.DateUtils; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitConnection; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayConnectionPrefixFilterReference; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayReference; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayTunnel; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ZoneReference; import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import com.ibm.cloud.sdk.core.util.DateUtils; import java.io.InputStream; import java.util.HashMap; import java.util.List; @@ -43,6 +43,7 @@ public void testTransitConnection() throws Throwable { assertNull(transitConnectionModel.getNetworkType()); assertNull(transitConnectionModel.getId()); assertNull(transitConnectionModel.getBaseConnectionId()); + assertNull(transitConnectionModel.getCidr()); assertNull(transitConnectionModel.getCreatedAt()); assertNull(transitConnectionModel.getLocalBgpAsn()); assertNull(transitConnectionModel.getLocalGatewayIp()); diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollectionTest.java index 31effdea5..fcd6a205a 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollectionTest.java index 35d5183e5..b113df218 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCustTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCustTest.java index bc7410d11..a5745fe93 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCustTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCustTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReferenceTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReferenceTest.java index c0e4b4e50..98cf5aaf0 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReferenceTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReferenceTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterTest.java index 853330f20..6e9bbf12c 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReferenceTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReferenceTest.java index 21c0eb79d..cf3036ef5 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReferenceTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReferenceTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTest.java index 4f790805a..72b30f759 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -42,6 +42,8 @@ public void testTransitGateway() throws Throwable { assertNull(transitGatewayModel.getId()); assertNull(transitGatewayModel.getLocation()); assertNull(transitGatewayModel.getName()); + assertNull(transitGatewayModel.getRedundancyGroup()); + assertNull(transitGatewayModel.getRedundancyGroupId()); assertNull(transitGatewayModel.getResourceGroup()); assertNull(transitGatewayModel.getStatus()); assertNull(transitGatewayModel.getUpdatedAt()); diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollectionTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollectionTest.java index 57224cd35..17349b200 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollectionTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollectionTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatchTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatchTest.java index 54b388f8a..c60c71e81 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatchTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatchTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplateTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplateTest.java index 29a21a0df..b6b91d0b2 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplateTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplateTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTest.java index a63ee9897..87dbea402 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -14,6 +14,7 @@ package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.networking.transit_gateway_apis.v1.model.TransitGatewayTunnel; +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.ZoneReference; import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; import java.io.InputStream; diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptionsTest.java new file mode 100644 index 000000000..62af79a71 --- /dev/null +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptionsTest.java @@ -0,0 +1,47 @@ +/* + * (C) Copyright IBM Corp. 2026. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + +package com.ibm.cloud.networking.transit_gateway_apis.v1.model; + +import com.ibm.cloud.networking.transit_gateway_apis.v1.model.UpdateRedundancyGroupOptions; +import com.ibm.cloud.networking.transit_gateway_apis.v1.utils.TestUtilities; +import com.ibm.cloud.sdk.core.service.model.FileWithMetadata; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import org.testng.annotations.Test; +import static org.testng.Assert.*; + +/** + * Unit test class for the UpdateRedundancyGroupOptions model. + */ +public class UpdateRedundancyGroupOptionsTest { + final HashMap mockStreamMap = TestUtilities.createMockStreamMap(); + final List mockListFileWithMetadata = TestUtilities.creatMockListFileWithMetadata(); + + @Test + public void testUpdateRedundancyGroupOptions() throws Throwable { + UpdateRedundancyGroupOptions updateRedundancyGroupOptionsModel = new UpdateRedundancyGroupOptions.Builder() + .id("testString") + .redundancyGroupPatch(java.util.Collections.singletonMap("anyKey", "anyValue")) + .build(); + assertEquals(updateRedundancyGroupOptionsModel.id(), "testString"); + assertEquals(updateRedundancyGroupOptionsModel.redundancyGroupPatch(), java.util.Collections.singletonMap("anyKey", "anyValue")); + } + + @Test(expectedExceptions = IllegalArgumentException.class) + public void testUpdateRedundancyGroupOptionsError() throws Throwable { + new UpdateRedundancyGroupOptions.Builder().build(); + } + +} \ No newline at end of file diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptionsTest.java index 15172870b..aa3772467 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptionsTest.java index 63bae5ad0..24201acaf 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptionsTest.java index 09ebf8b41..41a387e79 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptionsTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptionsTest.java index c68f3930b..ff8e75a48 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptionsTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptionsTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -36,11 +36,13 @@ public void testUpdateTransitGatewayOptions() throws Throwable { .global(true) .greEnhancedRoutePropagation(true) .name("my-resource") + .redundancyGroup("rg-1") .build(); assertEquals(updateTransitGatewayOptionsModel.id(), "testString"); assertEquals(updateTransitGatewayOptionsModel.global(), Boolean.valueOf(true)); assertEquals(updateTransitGatewayOptionsModel.greEnhancedRoutePropagation(), Boolean.valueOf(true)); assertEquals(updateTransitGatewayOptionsModel.name(), "my-resource"); + assertEquals(updateTransitGatewayOptionsModel.redundancyGroup(), "rg-1"); } @Test(expectedExceptions = IllegalArgumentException.class) diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByNameTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByNameTest.java index 211b6d3f1..eaab2772e 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByNameTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByNameTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityTest.java index 3c67bb6d8..72a66d71a 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReferenceTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReferenceTest.java index 6cadb2ea8..aa00096b2 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReferenceTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReferenceTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java index 59d0da82a..d99004b64 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2025. + * (C) Copyright IBM Corp. 2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -10,10 +10,8 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ - package com.ibm.cloud.networking.transit_gateway_apis.v1.utils; -import java.util.Base64; import java.util.Map; import java.util.Set; import java.util.List; @@ -117,8 +115,8 @@ public static List creatMockListFileWithMetadata() { return list; } - public static byte[] createMockByteArray(String encodedString) throws Exception { - return Base64.getDecoder().decode(encodedString); + public static byte[] createMockByteArray(String bytes) { + return bytes.getBytes(); } public static Date createMockDate(String date) throws Exception { From 58337741445a167a035de507948d4936a00ecc56 Mon Sep 17 00:00:00 2001 From: Joseph Kalandarishvili Date: Thu, 13 Aug 2026 13:14:19 -0500 Subject: [PATCH 3/5] feat: Added Redundant Global TGW related changes dependency: none Signed-off-by: Joseph Kalandarishvili --- .../transit_gateway_apis/v1/TransitGatewayApis.java | 6 +++--- .../transit_gateway_apis/v1/model/ConnectionsPager.java | 1 + .../CreateTransitGatewayConnectionActionsOptions.java | 1 + .../v1/model/CreateTransitGatewayConnectionOptions.java | 9 +++++---- ...reateTransitGatewayConnectionPrefixFilterOptions.java | 1 + .../v1/model/CreateTransitGatewayGreTunnelOptions.java | 1 + .../v1/model/CreateTransitGatewayOptions.java | 1 + .../v1/model/CreateTransitGatewayRouteReportOptions.java | 1 + .../v1/model/DeleteTransitGatewayConnectionOptions.java | 1 + ...eleteTransitGatewayConnectionPrefixFilterOptions.java | 1 + .../DeleteTransitGatewayConnectionTunnelsOptions.java | 1 + .../v1/model/DeleteTransitGatewayOptions.java | 1 + .../v1/model/DeleteTransitGatewayRouteReportOptions.java | 1 + .../v1/model/GetGatewayLocationOptions.java | 1 + .../v1/model/GetRedundancyGroupOptions.java | 1 + .../v1/model/GetTransitGatewayConnectionOptions.java | 1 + .../GetTransitGatewayConnectionPrefixFilterOptions.java | 1 + .../model/GetTransitGatewayConnectionTunnelsOptions.java | 1 + .../v1/model/GetTransitGatewayOptions.java | 1 + .../v1/model/GetTransitGatewayRouteReportOptions.java | 1 + .../v1/model/ListConnectionsOptions.java | 1 + .../v1/model/ListGatewayLocationsOptions.java | 1 + .../v1/model/ListRedundancyGroupsOptions.java | 1 + ...ListTransitGatewayConnectionPrefixFiltersOptions.java | 1 + .../v1/model/ListTransitGatewayConnectionsOptions.java | 1 + .../v1/model/ListTransitGatewayGreTunnelOptions.java | 1 + .../v1/model/ListTransitGatewayRouteReportsOptions.java | 1 + .../v1/model/ListTransitGatewaysOptions.java | 1 + .../v1/model/PaginationFirstConnection.java | 1 + .../transit_gateway_apis/v1/model/PaginationFirstTG.java | 1 + .../v1/model/PaginationFirstTGWConnection.java | 1 + .../v1/model/PaginationNextConnection.java | 1 + .../transit_gateway_apis/v1/model/PaginationNextTG.java | 1 + .../v1/model/PaginationNextTGWConnection.java | 1 + .../v1/model/PrefixFilterCollection.java | 1 + .../transit_gateway_apis/v1/model/PrefixFilterCust.java | 1 + .../transit_gateway_apis/v1/model/RedundancyGroup.java | 1 + .../v1/model/RedundancyGroupCollection.java | 1 + .../v1/model/RedundancyGroupPatch.java | 2 +- .../v1/model/ResourceGroupIdentity.java | 1 + .../v1/model/ResourceGroupReference.java | 1 + .../transit_gateway_apis/v1/model/RouteReport.java | 1 + .../v1/model/RouteReportCollection.java | 1 + .../v1/model/RouteReportConnection.java | 1 + .../v1/model/RouteReportConnectionBgp.java | 1 + .../v1/model/RouteReportConnectionRoute.java | 1 + .../v1/model/RouteReportOverlappingRoute.java | 1 + .../v1/model/RouteReportOverlappingRouteGroup.java | 1 + .../transit_gateway_apis/v1/model/TSCollection.java | 1 + .../transit_gateway_apis/v1/model/TSLocalLocation.java | 1 + .../transit_gateway_apis/v1/model/TSLocation.java | 1 + .../transit_gateway_apis/v1/model/TSLocationBasic.java | 1 + .../transit_gateway_apis/v1/model/TransitConnection.java | 1 + .../v1/model/TransitConnectionCollection.java | 1 + .../transit_gateway_apis/v1/model/TransitGateway.java | 1 + .../v1/model/TransitGatewayCollection.java | 1 + .../v1/model/TransitGatewayConnectionCollection.java | 1 + .../v1/model/TransitGatewayConnectionCust.java | 1 + .../v1/model/TransitGatewayConnectionPrefixFilter.java | 1 + .../TransitGatewayConnectionPrefixFilterReference.java | 1 + .../v1/model/TransitGatewayConnectionsPager.java | 1 + .../v1/model/TransitGatewayReference.java | 1 + .../v1/model/TransitGatewayTunnel.java | 1 + .../v1/model/TransitGatewayTunnelCollection.java | 1 + .../v1/model/TransitGatewayTunnelPatch.java | 2 +- .../v1/model/TransitGatewayTunnelTemplate.java | 1 + .../v1/model/TransitGatewaysPager.java | 1 + .../v1/model/UpdateRedundancyGroupOptions.java | 1 + .../v1/model/UpdateTransitGatewayConnectionOptions.java | 1 + ...pdateTransitGatewayConnectionPrefixFilterOptions.java | 1 + .../UpdateTransitGatewayConnectionTunnelsOptions.java | 1 + .../v1/model/UpdateTransitGatewayOptions.java | 1 + .../transit_gateway_apis/v1/model/ZoneIdentity.java | 1 + .../v1/model/ZoneIdentityByName.java | 1 + .../transit_gateway_apis/v1/model/ZoneReference.java | 1 + .../networking/transit_gateway_apis/v1/package-info.java | 1 + .../transit_gateway_apis/v1/TransitGatewayApisTest.java | 1 + .../transit_gateway_apis/v1/utils/TestUtilities.java | 6 ++++-- 78 files changed, 87 insertions(+), 11 deletions(-) diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java index 16e783324..e4cdb18f9 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApis.java @@ -12,7 +12,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.73.0-eeee85a9-20230607-165104 + * IBM OpenAPI SDK Code Generator Version: 3.107.1-41b0fbd0-20250825-080732 */ package com.ibm.cloud.networking.transit_gateway_apis.v1; @@ -761,7 +761,7 @@ public ServiceCall 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 responseConverter = ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); return createServiceCall(builder.build(), responseConverter); @@ -1172,7 +1172,7 @@ public ServiceCall updateRedundancyGroup(UpdateRedundancyGroupO } builder.header("Accept", "application/json"); builder.query("version", String.valueOf(this.version)); - builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithoutPrettyPrinting().toJson(updateRedundancyGroupOptions.redundancyGroupPatch()), "application/merge-patch+json"); + builder.bodyContent(com.ibm.cloud.sdk.core.util.GsonSingleton.getGsonWithSerializeNulls().toJson(updateRedundancyGroupOptions.redundancyGroupPatch()), "application/merge-patch+json"); ResponseConverter responseConverter = ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken() { }.getType()); return createServiceCall(builder.build(), responseConverter); diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java index 4883d04cc..acb1615f8 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ConnectionsPager.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java index 863a6bc93..88ffa52e8 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionActionsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java index 2343a8811..1b12b6d7e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.ArrayList; @@ -164,9 +165,9 @@ public CreateTransitGatewayConnectionOptions build() { } /** - * Adds an prefixFilters to prefixFilters. + * Adds a new element to prefixFilters. * - * @param prefixFilters the new prefixFilters + * @param prefixFilters the new element to be added * @return the CreateTransitGatewayConnectionOptions builder */ public Builder addPrefixFilters(TransitGatewayConnectionPrefixFilter prefixFilters) { @@ -180,9 +181,9 @@ public Builder addPrefixFilters(TransitGatewayConnectionPrefixFilter prefixFilte } /** - * Adds an tunnels to tunnels. + * Adds a new element to tunnels. * - * @param tunnels the new tunnels + * @param tunnels the new element to be added * @return the CreateTransitGatewayConnectionOptions builder */ public Builder addTunnels(TransitGatewayTunnelTemplate tunnels) { diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java index 62997ca93..e566b3463 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionPrefixFilterOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java index e48a8e8cd..9621f2987 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayGreTunnelOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java index 47e7287c1..b9a1cdcfb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java index f63e4b900..eedec374e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayRouteReportOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java index 9711fb70f..0c81eefd6 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java index 11807915a..6163d0893 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionPrefixFilterOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java index 1b718eb48..04ac73848 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayConnectionTunnelsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java index af962377a..52fba7652 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java index 8699434d6..2f857ecc2 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/DeleteTransitGatewayRouteReportOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java index 2f023f965..762e116dd 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetGatewayLocationOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java index 8f7db24f9..d1b195cc5 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetRedundancyGroupOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java index a5a6a8551..3c5430276 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java index 5b8d95656..926616e08 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionPrefixFilterOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java index cee57089d..f6ef87c02 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayConnectionTunnelsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java index 2166bc8d7..c2a208ff6 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java index c4002fc53..20d8ce68a 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/GetTransitGatewayRouteReportOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java index 05cce8076..2967bbe27 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListConnectionsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java index 99bd63566..33ae791dc 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListGatewayLocationsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java index 077b23c4a..24f7e3a2e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListRedundancyGroupsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java index 669bf976d..bd624aa9d 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionPrefixFiltersOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java index a23bb49cc..3fdd05ef7 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayConnectionsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java index d1ce0134a..117220d4d 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayGreTunnelOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java index 12c28ffc6..b55efee93 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewayRouteReportsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java index 7a18fb050..d2dfc531e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ListTransitGatewaysOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java index f2496bcc8..5d4942e1c 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstConnection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java index 37d3e1bbb..82e0ac794 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTG.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java index b57e0cfc1..c4687efab 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationFirstTGWConnection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java index 2c0fec5dc..e8b58fe01 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextConnection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java index 57a6c8b75..0e04f7ea9 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTG.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java index 7382cd56e..852a8a5d6 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PaginationNextTGWConnection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java index a6684a891..1f15c98f7 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java index 8d11d1174..f20e84d6a 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/PrefixFilterCust.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java index c285e12cf..e3f3c31f9 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroup.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java index 49c4e4903..bf3f79cb9 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java index 2c0955b56..80780b85c 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RedundancyGroupPatch.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Map; @@ -103,6 +104,5 @@ public String name() { public Map asPatch() { return GsonSingleton.getGson().fromJson(this.toString(), Map.class); } - } diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java index 796e19175..203cfc6a3 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupIdentity.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java index e480d6aeb..1259077e8 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ResourceGroupReference.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java index fd2d352b8..3aebf37d1 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReport.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java index 9e3d0691a..e39a9f1da 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java index 2d82c7435..020bf02fa 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java index 4f5b5a5e5..a06573ae4 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionBgp.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java index b1a5fff2b..2dbea4401 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportConnectionRoute.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java index bfbbbe73e..0959ab204 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRoute.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java index 30fef6891..5d9d5e693 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/RouteReportOverlappingRouteGroup.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java index 493045b25..4ac7c66ee 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java index 59adb89e8..f3a16af62 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocalLocation.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java index 969a9f81e..ac627d9e8 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocation.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java index bde7dacb3..8a95176bb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TSLocationBasic.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java index e338dec20..851a3ef61 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java index 51ee147bb..46a029db0 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnectionCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java index 0a9bc4491..14029e854 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGateway.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java index df92cbd66..ee4c0394f 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java index 9df6f415d..e8921ad72 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java index c0bb1eb09..184fa6d43 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java index 796392375..01751ac66 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilter.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java index d12989c26..b3e422959 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionPrefixFilterReference.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java index 4b1527f55..381f293a7 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionsPager.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java index 48e7b4599..04a10a634 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayReference.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java index 2879b6646..c8b65fa64 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnel.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Date; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java index 3699cdbf6..1b6e2dc13 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.List; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java index 5c015cfc2..afbc14339 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelPatch.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Map; @@ -103,6 +104,5 @@ public String name() { public Map asPatch() { return GsonSingleton.getGson().fromJson(this.toString(), Map.class); } - } diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java index b6ccfde12..2c2f86a68 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelTemplate.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.google.gson.annotations.SerializedName; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java index 4e086cdd0..759e57d41 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewaysPager.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java index 5e92dea13..3484a1604 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateRedundancyGroupOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Map; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java index 513a6d9fb..7fa5c8810 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java index ca3a3eba7..cce23355e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionPrefixFilterOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java index ecb1a16b7..cb027f8de 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayConnectionTunnelsOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import java.util.Map; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java index 95515c2f9..7dfca3341 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/UpdateTransitGatewayOptions.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java index 393f5e241..bd7ca8c45 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentity.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java index dcbb14207..f4f1361ef 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneIdentityByName.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; /** diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java index 69af78185..d38a33408 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/ZoneReference.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.model; import com.ibm.cloud.sdk.core.service.model.GenericModel; diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java index 790b0ee08..875ff4b06 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/package-info.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + /** * Transit Gateway Apis v1. */ diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java index 939807fa9..67d4025be 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/TransitGatewayApisTest.java @@ -10,6 +10,7 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1; import com.ibm.cloud.networking.transit_gateway_apis.v1.TransitGatewayApis; diff --git a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java index d99004b64..6ffe5b8be 100644 --- a/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java +++ b/modules/transit-gateway-apis/src/test/java/com/ibm/cloud/networking/transit_gateway_apis/v1/utils/TestUtilities.java @@ -10,8 +10,10 @@ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ + package com.ibm.cloud.networking.transit_gateway_apis.v1.utils; +import java.util.Base64; import java.util.Map; import java.util.Set; import java.util.List; @@ -115,8 +117,8 @@ public static List creatMockListFileWithMetadata() { return list; } - public static byte[] createMockByteArray(String bytes) { - return bytes.getBytes(); + public static byte[] createMockByteArray(String encodedString) throws Exception { + return Base64.getDecoder().decode(encodedString); } public static Date createMockDate(String date) throws Exception { From 44c406d9a6ccd19915e6ec5bc88babdaef7a6141 Mon Sep 17 00:00:00 2001 From: Joseph Kalandarishvili Date: Thu, 13 Aug 2026 14:58:11 -0500 Subject: [PATCH 4/5] feat: Added Redundant Global TGW related changes dependency: none Signed-off-by: Joseph Kalandarishvili --- ...CreateTransitGatewayConnectionOptions.java | 50 +++++++++---------- .../v1/model/TransitConnection.java | 14 +++--- .../model/TransitGatewayConnectionCust.java | 24 ++++----- .../model/TransitGatewayTunnelCollection.java | 4 +- 4 files changed, 43 insertions(+), 49 deletions(-) diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java index 1b12b6d7e..04c4e8355 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java @@ -43,15 +43,13 @@ 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`, `dynamic_route_server` and `gre_tunnel` connections. + * `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections. */ public interface BaseNetworkType { /** classic. */ @@ -63,8 +61,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`, - * `dynamic_route_server` and `redundant_gre` connections. + * required to be unspecified for network type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway` and `redundant_gre` + * connections. */ public interface PrefixFiltersDefault { /** permit. */ @@ -471,7 +469,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`, `dynamic_route_server` and `gre_tunnel` connections. + * `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections. * * @return the baseNetworkType */ @@ -482,11 +480,11 @@ public String baseNetworkType() { /** * Gets the cidr. * - * 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. + * network_type `vpn_gateway` 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` and `dynamic_route_server` connections. If unspecified, the - * default value is 198.19.174.0/23. + * This field is optional for network type `vpn_gateway` 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. @@ -502,7 +500,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`, `dynamic_route_server` and `redundant_gre` connections. + * `power_virtual_server`, `vpn_gateway` and `redundant_gre` connections. * * @return the localGatewayIp */ @@ -519,7 +517,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`, `dynamic_route_server` and `redundant_gre` connections. + * `vpn_gateway` and `redundant_gre` connections. * * @return the localTunnelIp */ @@ -534,7 +532,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`, `dynamic_route_server` and `redundant_gre` connections. + * `vpn_gateway` and `redundant_gre` connections. * * This field is optional for network type `classic`, `vpc` connections. * @@ -562,11 +560,11 @@ public String networkAccountId() { * Gets the networkId. * * The ID of the network being connected via this connection. 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. 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. + * `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` 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 */ @@ -582,7 +580,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`, `dynamic_route_server` and `redundant_gre` connections. + * type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway` and `redundant_gre` connections. * * @return the prefixFilters */ @@ -595,8 +593,8 @@ public List 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`, - * `dynamic_route_server` and `redundant_gre` connections. + * required to be unspecified for network type `gre_tunnel`, `unbound_gre_tunnel`, `vpn_gateway` and `redundant_gre` + * connections. * * @return the prefixFiltersDefault */ @@ -614,7 +612,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`, `dynamic_route_server` and `gre_tunnel` connections. + * `vpn_gateway` and `gre_tunnel` connections. * * @return the remoteBgpAsn */ @@ -627,7 +625,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`, `dynamic_route_server` and `redundant_gre` connections. + * `power_virtual_server`, `vpn_gateway` and `redundant_gre` connections. * * @return the remoteGatewayIp */ @@ -644,7 +642,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`, `dynamic_route_server` and `redundant_gre` connections. + * `vpn_gateway` and `redundant_gre` connections. * * @return the remoteTunnelIp */ @@ -674,8 +672,8 @@ public List 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`, - * `redundant_gre` and `dynamic_route_server` connections. + * This field is required to be unspecified for network type `classic`, `directlink`, `vpc`, `power_virtual_server` + * and `redundant_gre` connections. * * @return the zone */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java index 851a3ef61..7f3e27dc2 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java @@ -55,8 +55,6 @@ 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"; } /** @@ -184,9 +182,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`, `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. + * `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 / Dynamic Route Server / PowerVS / Direct + * Link gateway respectively. * * @return the networkId */ @@ -236,8 +234,8 @@ public String getBaseConnectionId() { /** * Gets the cidr. * - * 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. + * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway / Dynamic route + * server` GRE tunnels. * * @return the cidr */ @@ -415,7 +413,7 @@ public TransitGatewayReference getTransitGateway() { /** * Gets the tunnels. * - * Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections. + * Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections. * * @return the tunnels */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java index 184fa6d43..fbddf2d8e 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java @@ -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`, `dynamic_route_server` and `gre_tunnel` connections. + * `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections. */ public interface BaseNetworkType { /** classic. */ @@ -57,8 +57,6 @@ 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"; } /** @@ -179,7 +177,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`, `dynamic_route_server` and `gre_tunnel` connections. + * `vpc`, `power_virtual_server`, `vpn_gateway` and `gre_tunnel` connections. * * @return the baseNetworkType */ @@ -190,8 +188,8 @@ public String getBaseNetworkType() { /** * Gets the cidr. * - * 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. + * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway / Dynamic route + * server` GRE tunnels. * * @return the cidr */ @@ -274,7 +272,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`, `dynamic_route_server` and `redundant_gre` connections. + * `vpn_gateway` and `redundant_gre` connections. * * This field is optional for network type `classic`, `vpc` connections. * @@ -300,11 +298,11 @@ public String getNetworkAccountId() { * Gets the networkId. * * The ID of the network being connected via this connection. 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. 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. + * `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` 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 */ @@ -411,7 +409,7 @@ public String getStatus() { /** * Gets the tunnels. * - * Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections. + * Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections. * * @return the tunnels */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java index 1b6e2dc13..fe16290bb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayTunnelCollection.java @@ -18,7 +18,7 @@ import com.ibm.cloud.sdk.core.service.model.GenericModel; /** - * Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections. + * Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections. */ public class TransitGatewayTunnelCollection extends GenericModel { @@ -29,7 +29,7 @@ protected TransitGatewayTunnelCollection() { } /** * Gets the tunnels. * - * Collection of all tunnels for `redundant_gre`, `vpn_gateway` and `dynamic_route_server` connections. + * Collection of all tunnels for `redundant_gre` and `vpn_gateway` connections. * * @return the tunnels */ From 501e6e920a3f5ecbe269843d3deb75d1bc143bfc Mon Sep 17 00:00:00 2001 From: Joseph Kalandarishvili Date: Thu, 13 Aug 2026 15:25:54 -0500 Subject: [PATCH 5/5] feat: Added Redundant Global TGW related changes dependency: none Signed-off-by: Joseph Kalandarishvili --- .../model/CreateTransitGatewayConnectionOptions.java | 12 +++++------- .../v1/model/TransitConnection.java | 7 +++---- .../v1/model/TransitGatewayConnectionCust.java | 12 +++++------- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java index 04c4e8355..c8507a5cb 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/CreateTransitGatewayConnectionOptions.java @@ -480,8 +480,7 @@ public String baseNetworkType() { /** * Gets the cidr. * - * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the VPN gateway / Dynamic route - * server GRE tunnels. + * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the VPN gateway GRE tunnels. * * This field is optional for network type `vpn_gateway` connections. If unspecified, the default value is * 198.19.174.0/23. @@ -560,11 +559,10 @@ 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 / Dynamic Route Server / 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. + * `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. * * @return the networkId */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java index 7f3e27dc2..f968e1c19 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitConnection.java @@ -183,8 +183,8 @@ public String getName() { * * 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 / Dynamic Route Server / PowerVS / Direct - * Link gateway respectively. + * `power_virtual_server` and `directlink` this is the CRN of the VPC / VPN / PowerVS / Direct Link gateway + * respectively. * * @return the networkId */ @@ -234,8 +234,7 @@ public String getBaseConnectionId() { /** * Gets the cidr. * - * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway / Dynamic route - * server` GRE tunnels. + * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway` GRE tunnels. * * @return the cidr */ diff --git a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java index fbddf2d8e..ca9287fb4 100644 --- a/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java +++ b/modules/transit-gateway-apis/src/main/java/com/ibm/cloud/networking/transit_gateway_apis/v1/model/TransitGatewayConnectionCust.java @@ -188,8 +188,7 @@ public String getBaseNetworkType() { /** * Gets the cidr. * - * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway / Dynamic route - * server` GRE tunnels. + * network_type `vpn_gateway` connections use `cidr` to specify the CIDR to use for the `VPN gateway` GRE tunnels. * * @return the cidr */ @@ -298,11 +297,10 @@ 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 / Dynamic Route Server / 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. + * `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. * * @return the networkId */