Skip to content

Commit b021313

Browse files
authored
feat(2021-11-23): updated the sdk as per the 2021-11-23 api spec (#34)
1 parent 7496088 commit b021313

File tree

169 files changed

+1881
-872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+1881
-872
lines changed

modules/examples/src/main/java/com/ibm/cloud/is/vpc/v1/VPCExamples.java

+170-111
Large diffs are not rendered by default.

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/Vpc.java

+14-11
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/*
15-
* IBM OpenAPI SDK Code Generator Version: 3.39.0-748eb4ca-20210917-165907
15+
* IBM OpenAPI SDK Code Generator Version: 3.42.0-8746aaa4-20211102-213344
1616
*/
1717

1818
package com.ibm.cloud.is.vpc.v1;
@@ -411,18 +411,18 @@
411411
import java.util.Map.Entry;
412412

413413
/**
414-
* The IBM Cloud Virtual Private Cloud (VPC) API can be used to programmatically provision and manage infrastructure
415-
* resources, including virtual server instances, subnets, volumes, and load balancers.
414+
* The IBM Cloud Virtual Private Cloud (VPC) API can be used to programmatically provision and manage virtual server
415+
* instances, along with subnets, volumes, load balancers, and more.
416416
*
417-
* API Version: 2021-10-19
417+
* API Version: 2021-11-23
418418
*/
419419
public class Vpc extends BaseService {
420420

421421
public static final String DEFAULT_SERVICE_NAME = "vpc";
422422

423423
public static final String DEFAULT_SERVICE_URL = "https://us-south.iaas.cloud.ibm.com/v1";
424424

425-
private String version = "2021-10-19";
425+
private String version = "2021-11-23";
426426

427427
private Long generation = Long.valueOf("2");
428428

@@ -466,8 +466,8 @@ public Vpc(String serviceName, Authenticator authenticator) {
466466
/**
467467
* Gets the version.
468468
*
469-
* Requests the version of the API as of a date in the format `YYYY-MM-DD`. Any date up to the current date may be
470-
* provided. Specify the current date to request the latest version.
469+
* Requests the API version as of a date, in format `YYYY-MM-DD`. Any date between `2019-01-01` and the current date
470+
* may be specified. Specify the current date to request the latest version.
471471
*
472472
* @return the version
473473
*/
@@ -1092,7 +1092,7 @@ public ServiceCall<Route> updateVpcRoute(UpdateVpcRouteOptions updateVpcRouteOpt
10921092
*
10931093
* This request lists all user-defined routing tables for a VPC. Each subnet in a VPC is associated with a routing
10941094
* table, which controls delivery of packets sent on that subnet according to the action of the most specific matching
1095-
* route in the table. If multiple equally-specific routes exist, traffic will be distributed across them. If no
1095+
* route in the table. If multiple equally-specific routes exist, traffic will be distributed across them. If no
10961096
* routes match, delivery will be controlled by the system's built-in routes.
10971097
*
10981098
* @param listVpcRoutingTablesOptions the {@link ListVpcRoutingTablesOptions} containing the options for the call
@@ -2179,9 +2179,6 @@ public ServiceCall<KeyCollection> listKeys(ListKeysOptions listKeysOptions) {
21792179
if (listKeysOptions.limit() != null) {
21802180
builder.query("limit", String.valueOf(listKeysOptions.limit()));
21812181
}
2182-
if (listKeysOptions.resourceGroupId() != null) {
2183-
builder.query("resource_group.id", String.valueOf(listKeysOptions.resourceGroupId()));
2184-
}
21852182
ResponseConverter<KeyCollection> responseConverter =
21862183
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<KeyCollection>() { }.getType());
21872184
return createServiceCall(builder.build(), responseConverter);
@@ -4081,6 +4078,9 @@ public ServiceCall<DedicatedHostGroupCollection> listDedicatedHostGroups(ListDed
40814078
if (listDedicatedHostGroupsOptions.zoneName() != null) {
40824079
builder.query("zone.name", String.valueOf(listDedicatedHostGroupsOptions.zoneName()));
40834080
}
4081+
if (listDedicatedHostGroupsOptions.name() != null) {
4082+
builder.query("name", String.valueOf(listDedicatedHostGroupsOptions.name()));
4083+
}
40844084
ResponseConverter<DedicatedHostGroupCollection> responseConverter =
40854085
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<DedicatedHostGroupCollection>() { }.getType());
40864086
return createServiceCall(builder.build(), responseConverter);
@@ -4339,6 +4339,9 @@ public ServiceCall<DedicatedHostCollection> listDedicatedHosts(ListDedicatedHost
43394339
if (listDedicatedHostsOptions.zoneName() != null) {
43404340
builder.query("zone.name", String.valueOf(listDedicatedHostsOptions.zoneName()));
43414341
}
4342+
if (listDedicatedHostsOptions.name() != null) {
4343+
builder.query("name", String.valueOf(listDedicatedHostsOptions.name()));
4344+
}
43424345
ResponseConverter<DedicatedHostCollection> responseConverter =
43434346
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<DedicatedHostCollection>() { }.getType());
43444347
return createServiceCall(builder.build(), responseConverter);

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateDedicatedHostGroupOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public class CreateDedicatedHostGroupOptions extends GenericModel {
2323
* The dedicated host profile family for hosts in this group.
2424
*/
2525
public interface Family {
26-
/** memory. */
27-
String MEMORY = "memory";
2826
/** balanced. */
2927
String BALANCED = "balanced";
3028
/** compute. */
3129
String COMPUTE = "compute";
30+
/** memory. */
31+
String MEMORY = "memory";
3232
}
3333

3434
protected String xClass;

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateIkePolicyOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public interface AuthenticationAlgorithm {
3737
* The encryption algorithm.
3838
*/
3939
public interface EncryptionAlgorithm {
40-
/** triple_des. */
41-
String TRIPLE_DES = "triple_des";
4240
/** aes128. */
4341
String AES128 = "aes128";
4442
/** aes256. */
4543
String AES256 = "aes256";
44+
/** triple_des. */
45+
String TRIPLE_DES = "triple_des";
4646
}
4747

4848
protected String authenticationAlgorithm;

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateInstanceConsoleAccessTokenOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public class CreateInstanceConsoleAccessTokenOptions extends GenericModel {
2323
* The instance console type for which this token may be used.
2424
*/
2525
public interface ConsoleType {
26-
/** vnc. */
27-
String VNC = "vnc";
2826
/** serial. */
2927
String SERIAL = "serial";
28+
/** vnc. */
29+
String VNC = "vnc";
3030
}
3131

3232
protected String instanceId;

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateInstanceNetworkInterfaceOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ public Boolean allowIpSpoofing() {
233233
/**
234234
* Gets the name.
235235
*
236-
* The user-defined name for this network interface. If unspecified, the name will be a hyphenated list of
237-
* randomly-selected words.
236+
* The user-defined name for network interface. Names must be unique within the instance the network interface resides
237+
* in. If unspecified, the name will be a hyphenated list of randomly-selected words.
238238
*
239239
* @return the name
240240
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateInstanceVolumeAttachmentOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public Boolean deleteVolumeOnInstanceDelete() {
167167
/**
168168
* Gets the name.
169169
*
170-
* The user-defined name for this volume attachment. If unspecified, the name will be a hyphenated list of
171-
* randomly-selected words.
170+
* The user-defined name for this volume attachment. Names must be unique within the instance the volume attachment
171+
* resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.
172172
*
173173
* @return the name
174174
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateIpsecPolicyOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public interface AuthenticationAlgorithm {
3737
* The encryption algorithm.
3838
*/
3939
public interface EncryptionAlgorithm {
40-
/** triple_des. */
41-
String TRIPLE_DES = "triple_des";
4240
/** aes128. */
4341
String AES128 = "aes128";
4442
/** aes256. */
4543
String AES256 = "aes256";
44+
/** triple_des. */
45+
String TRIPLE_DES = "triple_des";
4646
}
4747

4848
/**

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateLoadBalancerListenerPolicyOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public class CreateLoadBalancerListenerPolicyOptions extends GenericModel {
3232
public interface Action {
3333
/** forward. */
3434
String FORWARD = "forward";
35+
/** https_redirect. */
36+
String HTTPS_REDIRECT = "https_redirect";
3537
/** redirect. */
3638
String REDIRECT = "redirect";
3739
/** reject. */
3840
String REJECT = "reject";
39-
/** https_redirect. */
40-
String HTTPS_REDIRECT = "https_redirect";
4141
}
4242

4343
protected String loadBalancerId;

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateLoadBalancerListenerPolicyRuleOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public interface Condition {
3737
* Body rules are applied to form-encoded request bodies using the `UTF-8` character set.
3838
*/
3939
public interface Type {
40+
/** body. */
41+
String BODY = "body";
4042
/** header. */
4143
String HEADER = "header";
4244
/** hostname. */
@@ -45,8 +47,6 @@ public interface Type {
4547
String PATH = "path";
4648
/** query. */
4749
String QUERY = "query";
48-
/** body. */
49-
String BODY = "body";
5050
}
5151

5252
protected String loadBalancerId;

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateLoadBalancerPoolOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public interface Algorithm {
4242
public interface Protocol {
4343
/** http. */
4444
String HTTP = "http";
45-
/** tcp. */
46-
String TCP = "tcp";
4745
/** https. */
4846
String HTTPS = "https";
47+
/** tcp. */
48+
String TCP = "tcp";
4949
}
5050

5151
/**

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateSubnetReservedIpOptions.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ public String subnetId() {
141141
/**
142142
* Gets the autoDelete.
143143
*
144-
* If set to `true`, this reserved IP will be automatically deleted when the target is deleted or when the reserved IP
145-
* is unbound. The value cannot be set to `true` if the reserved IP is unbound.
144+
* Indicates whether this reserved IP member will be automatically deleted when either
145+
* `target` is deleted, or the reserved IP is unbound. Must be `false` if the reserved IP is unbound.
146146
*
147147
* @return the autoDelete
148148
*/
@@ -153,9 +153,9 @@ public Boolean autoDelete() {
153153
/**
154154
* Gets the name.
155155
*
156-
* The user-defined name for this reserved IP. If not specified, the name will be a hyphenated list of
157-
* randomly-selected words. Names must be unique within the subnet the reserved IP resides in. Names beginning with
158-
* `ibm-` are reserved for provider-owned resources.
156+
* The user-defined name for this reserved IP. If unspecified, the name will be a hyphenated list of randomly-selected
157+
* words. Names must be unique within the subnet the reserved IP resides in. Names beginning with `ibm-` are reserved
158+
* for provider-owned resources.
159159
*
160160
* @return the name
161161
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/CreateVpcAddressPrefixOptions.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,8 @@ public ZoneIdentity zone() {
194194
/**
195195
* Gets the isDefault.
196196
*
197-
* Indicates whether this is the default prefix for this zone in this VPC. If true, this prefix will become the
198-
* default prefix for this zone in this VPC. This fails if the VPC currently has a default address prefix for this
199-
* zone.
197+
* Indicates whether this will be the default address prefix for this zone in this VPC. If `true`, the VPC must not
198+
* have a default address prefix for this zone.
200199
*
201200
* @return the isDefault
202201
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/DedicatedHost.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ public interface LifecycleState {
3535
String PENDING = "pending";
3636
/** stable. */
3737
String STABLE = "stable";
38+
/** suspended. */
39+
String SUSPENDED = "suspended";
3840
/** updating. */
3941
String UPDATING = "updating";
4042
/** waiting. */
4143
String WAITING = "waiting";
42-
/** suspended. */
43-
String SUSPENDED = "suspended";
4444
}
4545

4646
/**
47-
* The type of resource referenced.
47+
* The resource type.
4848
*/
4949
public interface ResourceType {
5050
/** dedicated_host. */
@@ -236,8 +236,7 @@ public Long getMemory() {
236236
/**
237237
* Gets the name.
238238
*
239-
* The unique user-defined name for this dedicated host. If unspecified, the name will be a hyphenated list of
240-
* randomly-selected words.
239+
* The unique user-defined name for this dedicated host.
241240
*
242241
* @return the name
243242
*/
@@ -281,7 +280,7 @@ public ResourceGroupReference getResourceGroup() {
281280
/**
282281
* Gets the resourceType.
283282
*
284-
* The type of resource referenced.
283+
* The resource type.
285284
*
286285
* @return the resourceType
287286
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/DedicatedHostDisk.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ public interface LifecycleState {
4747
String PENDING = "pending";
4848
/** stable. */
4949
String STABLE = "stable";
50+
/** suspended. */
51+
String SUSPENDED = "suspended";
5052
/** updating. */
5153
String UPDATING = "updating";
5254
/** waiting. */
5355
String WAITING = "waiting";
54-
/** suspended. */
55-
String SUSPENDED = "suspended";
5656
}
5757

5858
/**
59-
* The type of resource referenced.
59+
* The resource type.
6060
*/
6161
public interface ResourceType {
6262
/** dedicated_host_disk. */
@@ -71,10 +71,10 @@ public interface ResourceType {
7171
* unexpected property value was encountered.
7272
*/
7373
public interface SupportedInstanceInterfaceTypes {
74-
/** virtio_blk. */
75-
String VIRTIO_BLK = "virtio_blk";
7674
/** nvme. */
7775
String NVME = "nvme";
76+
/** virtio_blk. */
77+
String VIRTIO_BLK = "virtio_blk";
7878
}
7979

8080
protected Long available;
@@ -202,7 +202,7 @@ public Boolean isProvisionable() {
202202
/**
203203
* Gets the resourceType.
204204
*
205-
* The type of resource referenced.
205+
* The resource type.
206206
*
207207
* @return the resourceType
208208
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/DedicatedHostGroup.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ public class DedicatedHostGroup extends GenericModel {
2727
* The dedicated host profile family for hosts in this group.
2828
*/
2929
public interface Family {
30-
/** memory. */
31-
String MEMORY = "memory";
3230
/** balanced. */
3331
String BALANCED = "balanced";
3432
/** compute. */
3533
String COMPUTE = "compute";
34+
/** memory. */
35+
String MEMORY = "memory";
3636
}
3737

3838
/**
39-
* The type of resource referenced.
39+
* The resource type.
4040
*/
4141
public interface ResourceType {
4242
/** dedicated_host_group. */
@@ -142,8 +142,7 @@ public String getId() {
142142
/**
143143
* Gets the name.
144144
*
145-
* The unique user-defined name for this dedicated host group. If unspecified, the name will be a hyphenated list of
146-
* randomly-selected words.
145+
* The unique user-defined name for this dedicated host group.
147146
*
148147
* @return the name
149148
*/
@@ -165,7 +164,7 @@ public ResourceGroupReference getResourceGroup() {
165164
/**
166165
* Gets the resourceType.
167166
*
168-
* The type of resource referenced.
167+
* The resource type.
169168
*
170169
* @return the resourceType
171170
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/DedicatedHostGroupPatch.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ public Builder newBuilder() {
7777
/**
7878
* Gets the name.
7979
*
80-
* The unique user-defined name for this dedicated host group. If unspecified, the name will be a hyphenated list of
81-
* randomly-selected words.
80+
* The unique user-defined name for this dedicated host group.
8281
*
8382
* @return the name
8483
*/

modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/model/DedicatedHostGroupPrototypeDedicatedHostByZoneContext.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ public Builder newBuilder() {
8585
/**
8686
* Gets the name.
8787
*
88-
* The unique user-defined name for this dedicated host group. If unspecified, the name will be a hyphenated list of
89-
* randomly-selected words.
88+
* The unique user-defined name for this dedicated host group.
9089
*
9190
* @return the name
9291
*/

0 commit comments

Comments
 (0)