12
12
*/
13
13
14
14
/*
15
- * IBM OpenAPI SDK Code Generator Version: 3.38 .0-07189efd-20210827-205025
15
+ * IBM OpenAPI SDK Code Generator Version: 3.39 .0-748eb4ca-20210917-165907
16
16
*/
17
17
18
18
package com.ibm.cloud.is.vpc.v1;
414
414
* The IBM Cloud Virtual Private Cloud (VPC) API can be used to programmatically provision and manage infrastructure
415
415
* resources, including virtual server instances, subnets, volumes, and load balancers.
416
416
*
417
- * API Version: 2021-09-07
417
+ * API Version: 2021-10-19
418
418
*/
419
419
public class Vpc extends BaseService {
420
420
421
421
public static final String DEFAULT_SERVICE_NAME = "vpc";
422
422
423
423
public static final String DEFAULT_SERVICE_URL = "https://us-south.iaas.cloud.ibm.com/v1";
424
424
425
- private String version = "2021-09-07 ";
425
+ private String version = "2021-10-19 ";
426
426
427
427
private Long generation = Long.valueOf("2");
428
428
@@ -752,8 +752,9 @@ public ServiceCall<DefaultRoutingTable> getVpcDefaultRoutingTable(GetVpcDefaultR
752
752
/**
753
753
* Retrieve a VPC's default security group.
754
754
*
755
- * This request retrieves the default security group for the VPC specified by the identifier in the URL. The default
756
- * security group is applied to any new network interfaces in the VPC that do not specify a security group.
755
+ * This request retrieves the default security group for the VPC specified by the identifier in the URL. Resources
756
+ * that optionally allow a security group to be specified upon creation will be attached to this security group if a
757
+ * security group is not specified.
757
758
*
758
759
* @param getVpcDefaultSecurityGroupOptions the {@link GetVpcDefaultSecurityGroupOptions} containing the options for the call
759
760
* @return a {@link ServiceCall} with a result of type {@link DefaultSecurityGroup}
@@ -6526,7 +6527,8 @@ public ServiceCall<IKEPolicy> createIkePolicy(CreateIkePolicyOptions createIkePo
6526
6527
/**
6527
6528
* Delete an IKE policy.
6528
6529
*
6529
- * This request deletes an IKE policy. This operation cannot be reversed.
6530
+ * This request deletes an IKE policy. This operation cannot be reversed. For this request to succeed, there must not
6531
+ * be any VPN gateway connections using this policy.
6530
6532
*
6531
6533
* @param deleteIkePolicyOptions the {@link DeleteIkePolicyOptions} containing the options for the call
6532
6534
* @return a {@link ServiceCall} with a void result
@@ -6709,7 +6711,8 @@ public ServiceCall<IPsecPolicy> createIpsecPolicy(CreateIpsecPolicyOptions creat
6709
6711
/**
6710
6712
* Delete an IPsec policy.
6711
6713
*
6712
- * This request deletes an IPsec policy. This operation cannot be reversed.
6714
+ * This request deletes an IPsec policy. This operation cannot be reversed. For this request to succeed, there must
6715
+ * not be any VPN gateway connections using this policy.
6713
6716
*
6714
6717
* @param deleteIpsecPolicyOptions the {@link DeleteIpsecPolicyOptions} containing the options for the call
6715
6718
* @return a {@link ServiceCall} with a void result
@@ -6885,8 +6888,9 @@ public ServiceCall<VPNGateway> createVpnGateway(CreateVpnGatewayOptions createVp
6885
6888
/**
6886
6889
* Delete a VPN gateway.
6887
6890
*
6888
- * This request deletes a VPN gateway. A VPN gateway with a `status` of `pending` cannot be deleted. This operation
6889
- * deletes all VPN gateway connections associated with this VPN gateway. This operation cannot be reversed.
6891
+ * This request deletes a VPN gateway. This operation cannot be reversed. For this request to succeed, the VPN gateway
6892
+ * must not have a `status` of `pending`, and there must not be any VPC routes using the VPN gateway's connections as
6893
+ * a next hop.
6890
6894
*
6891
6895
* @param deleteVpnGatewayOptions the {@link DeleteVpnGatewayOptions} containing the options for the call
6892
6896
* @return a {@link ServiceCall} with a void result
@@ -7019,7 +7023,8 @@ public ServiceCall<VPNGatewayConnection> createVpnGatewayConnection(CreateVpnGat
7019
7023
/**
7020
7024
* Delete a VPN gateway connection.
7021
7025
*
7022
- * This request deletes a VPN gateway connection. This operation cannot be reversed.
7026
+ * This request deletes a VPN gateway connection. This operation cannot be reversed. For this request to succeed,
7027
+ * there must not be VPC routes using this VPN connection as a next hop.
7023
7028
*
7024
7029
* @param deleteVpnGatewayConnectionOptions the {@link DeleteVpnGatewayConnectionOptions} containing the options for the call
7025
7030
* @return a {@link ServiceCall} with a void result
@@ -7466,6 +7471,9 @@ public ServiceCall<LoadBalancer> createLoadBalancer(CreateLoadBalancerOptions cr
7466
7471
if (createLoadBalancerOptions.resourceGroup() != null) {
7467
7472
contentJson.add("resource_group", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(createLoadBalancerOptions.resourceGroup()));
7468
7473
}
7474
+ if (createLoadBalancerOptions.routeMode() != null) {
7475
+ contentJson.addProperty("route_mode", createLoadBalancerOptions.routeMode());
7476
+ }
7469
7477
if (createLoadBalancerOptions.securityGroups() != null) {
7470
7478
contentJson.add("security_groups", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(createLoadBalancerOptions.securityGroups()));
7471
7479
}
@@ -7626,7 +7634,6 @@ public ServiceCall<LoadBalancerListener> createLoadBalancerListener(CreateLoadBa
7626
7634
builder.query("version", String.valueOf(this.version));
7627
7635
builder.query("generation", String.valueOf(this.generation));
7628
7636
final JsonObject contentJson = new JsonObject();
7629
- contentJson.addProperty("port", createLoadBalancerListenerOptions.port());
7630
7637
contentJson.addProperty("protocol", createLoadBalancerListenerOptions.protocol());
7631
7638
if (createLoadBalancerListenerOptions.acceptProxyProtocol() != null) {
7632
7639
contentJson.addProperty("accept_proxy_protocol", createLoadBalancerListenerOptions.acceptProxyProtocol());
@@ -7646,6 +7653,15 @@ public ServiceCall<LoadBalancerListener> createLoadBalancerListener(CreateLoadBa
7646
7653
if (createLoadBalancerListenerOptions.policies() != null) {
7647
7654
contentJson.add("policies", com.ibm.cloud.sdk.core.util.GsonSingleton.getGson().toJsonTree(createLoadBalancerListenerOptions.policies()));
7648
7655
}
7656
+ if (createLoadBalancerListenerOptions.port() != null) {
7657
+ contentJson.addProperty("port", createLoadBalancerListenerOptions.port());
7658
+ }
7659
+ if (createLoadBalancerListenerOptions.portMax() != null) {
7660
+ contentJson.addProperty("port_max", createLoadBalancerListenerOptions.portMax());
7661
+ }
7662
+ if (createLoadBalancerListenerOptions.portMin() != null) {
7663
+ contentJson.addProperty("port_min", createLoadBalancerListenerOptions.portMin());
7664
+ }
7649
7665
builder.bodyJson(contentJson);
7650
7666
ResponseConverter<LoadBalancerListener> responseConverter =
7651
7667
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<LoadBalancerListener>() { }.getType());
@@ -8752,8 +8768,9 @@ public ServiceCall<FlowLogCollector> createFlowLogCollector(CreateFlowLogCollect
8752
8768
/**
8753
8769
* Delete a flow log collector.
8754
8770
*
8755
- * This request stops and deletes a flow log collector. Collected flow logs remain available within the flow log
8756
- * collector's bucket.
8771
+ * This request stops and deletes a flow log collector. This operation cannot be reversed.
8772
+ *
8773
+ * Collected flow logs remain available within the flow log collector's Cloud Object Storage bucket.
8757
8774
*
8758
8775
* @param deleteFlowLogCollectorOptions the {@link DeleteFlowLogCollectorOptions} containing the options for the call
8759
8776
* @return a {@link ServiceCall} with a void result
0 commit comments