Skip to content

Commit bd6fa1a

Browse files
authored
feat(2021-05-06): Update SDK to use API version 2021-05-06 (#22)
1 parent 70e6373 commit bd6fa1a

File tree

294 files changed

+13095
-317
lines changed

Some content is hidden

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

294 files changed

+13095
-317
lines changed

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

+397-14
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
/*
2+
* (C) Copyright IBM Corp. 2021.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5+
* the License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
*/
13+
package com.ibm.cloud.is.vpc.v1.model;
14+
15+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
16+
17+
/**
18+
* The createInstanceConsoleAccessToken options.
19+
*/
20+
public class CreateInstanceConsoleAccessTokenOptions extends GenericModel {
21+
22+
/**
23+
* The instance console type for which this token may be used.
24+
*/
25+
public interface ConsoleType {
26+
/** vnc. */
27+
String VNC = "vnc";
28+
/** serial. */
29+
String SERIAL = "serial";
30+
}
31+
32+
protected String instanceId;
33+
protected String consoleType;
34+
protected Boolean force;
35+
36+
/**
37+
* Builder.
38+
*/
39+
public static class Builder {
40+
private String instanceId;
41+
private String consoleType;
42+
private Boolean force;
43+
44+
private Builder(CreateInstanceConsoleAccessTokenOptions createInstanceConsoleAccessTokenOptions) {
45+
this.instanceId = createInstanceConsoleAccessTokenOptions.instanceId;
46+
this.consoleType = createInstanceConsoleAccessTokenOptions.consoleType;
47+
this.force = createInstanceConsoleAccessTokenOptions.force;
48+
}
49+
50+
/**
51+
* Instantiates a new builder.
52+
*/
53+
public Builder() {
54+
}
55+
56+
/**
57+
* Instantiates a new builder with required properties.
58+
*
59+
* @param instanceId the instanceId
60+
* @param consoleType the consoleType
61+
*/
62+
public Builder(String instanceId, String consoleType) {
63+
this.instanceId = instanceId;
64+
this.consoleType = consoleType;
65+
}
66+
67+
/**
68+
* Builds a CreateInstanceConsoleAccessTokenOptions.
69+
*
70+
* @return the new CreateInstanceConsoleAccessTokenOptions instance
71+
*/
72+
public CreateInstanceConsoleAccessTokenOptions build() {
73+
return new CreateInstanceConsoleAccessTokenOptions(this);
74+
}
75+
76+
/**
77+
* Set the instanceId.
78+
*
79+
* @param instanceId the instanceId
80+
* @return the CreateInstanceConsoleAccessTokenOptions builder
81+
*/
82+
public Builder instanceId(String instanceId) {
83+
this.instanceId = instanceId;
84+
return this;
85+
}
86+
87+
/**
88+
* Set the consoleType.
89+
*
90+
* @param consoleType the consoleType
91+
* @return the CreateInstanceConsoleAccessTokenOptions builder
92+
*/
93+
public Builder consoleType(String consoleType) {
94+
this.consoleType = consoleType;
95+
return this;
96+
}
97+
98+
/**
99+
* Set the force.
100+
*
101+
* @param force the force
102+
* @return the CreateInstanceConsoleAccessTokenOptions builder
103+
*/
104+
public Builder force(Boolean force) {
105+
this.force = force;
106+
return this;
107+
}
108+
}
109+
110+
protected CreateInstanceConsoleAccessTokenOptions(Builder builder) {
111+
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.instanceId,
112+
"instanceId cannot be empty");
113+
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.consoleType,
114+
"consoleType cannot be null");
115+
instanceId = builder.instanceId;
116+
consoleType = builder.consoleType;
117+
force = builder.force;
118+
}
119+
120+
/**
121+
* New builder.
122+
*
123+
* @return a CreateInstanceConsoleAccessTokenOptions builder
124+
*/
125+
public Builder newBuilder() {
126+
return new Builder(this);
127+
}
128+
129+
/**
130+
* Gets the instanceId.
131+
*
132+
* The instance identifier.
133+
*
134+
* @return the instanceId
135+
*/
136+
public String instanceId() {
137+
return instanceId;
138+
}
139+
140+
/**
141+
* Gets the consoleType.
142+
*
143+
* The instance console type for which this token may be used.
144+
*
145+
* @return the consoleType
146+
*/
147+
public String consoleType() {
148+
return consoleType;
149+
}
150+
151+
/**
152+
* Gets the force.
153+
*
154+
* Indicates whether to disconnect an existing serial console session as the serial console cannot be shared. This
155+
* has no effect on VNC consoles.
156+
*
157+
* @return the force
158+
*/
159+
public Boolean force() {
160+
return force;
161+
}
162+
}
163+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
/*
2+
* (C) Copyright IBM Corp. 2021.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5+
* the License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
*/
13+
package com.ibm.cloud.is.vpc.v1.model;
14+
15+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
16+
17+
/**
18+
* The createInstanceGroupManagerAction options.
19+
*/
20+
public class CreateInstanceGroupManagerActionOptions extends GenericModel {
21+
22+
protected String instanceGroupId;
23+
protected String instanceGroupManagerId;
24+
protected InstanceGroupManagerActionPrototype instanceGroupManagerActionPrototype;
25+
26+
/**
27+
* Builder.
28+
*/
29+
public static class Builder {
30+
private String instanceGroupId;
31+
private String instanceGroupManagerId;
32+
private InstanceGroupManagerActionPrototype instanceGroupManagerActionPrototype;
33+
34+
private Builder(CreateInstanceGroupManagerActionOptions createInstanceGroupManagerActionOptions) {
35+
this.instanceGroupId = createInstanceGroupManagerActionOptions.instanceGroupId;
36+
this.instanceGroupManagerId = createInstanceGroupManagerActionOptions.instanceGroupManagerId;
37+
this.instanceGroupManagerActionPrototype = createInstanceGroupManagerActionOptions.instanceGroupManagerActionPrototype;
38+
}
39+
40+
/**
41+
* Instantiates a new builder.
42+
*/
43+
public Builder() {
44+
}
45+
46+
/**
47+
* Instantiates a new builder with required properties.
48+
*
49+
* @param instanceGroupId the instanceGroupId
50+
* @param instanceGroupManagerId the instanceGroupManagerId
51+
* @param instanceGroupManagerActionPrototype the instanceGroupManagerActionPrototype
52+
*/
53+
public Builder(String instanceGroupId, String instanceGroupManagerId, InstanceGroupManagerActionPrototype instanceGroupManagerActionPrototype) {
54+
this.instanceGroupId = instanceGroupId;
55+
this.instanceGroupManagerId = instanceGroupManagerId;
56+
this.instanceGroupManagerActionPrototype = instanceGroupManagerActionPrototype;
57+
}
58+
59+
/**
60+
* Builds a CreateInstanceGroupManagerActionOptions.
61+
*
62+
* @return the new CreateInstanceGroupManagerActionOptions instance
63+
*/
64+
public CreateInstanceGroupManagerActionOptions build() {
65+
return new CreateInstanceGroupManagerActionOptions(this);
66+
}
67+
68+
/**
69+
* Set the instanceGroupId.
70+
*
71+
* @param instanceGroupId the instanceGroupId
72+
* @return the CreateInstanceGroupManagerActionOptions builder
73+
*/
74+
public Builder instanceGroupId(String instanceGroupId) {
75+
this.instanceGroupId = instanceGroupId;
76+
return this;
77+
}
78+
79+
/**
80+
* Set the instanceGroupManagerId.
81+
*
82+
* @param instanceGroupManagerId the instanceGroupManagerId
83+
* @return the CreateInstanceGroupManagerActionOptions builder
84+
*/
85+
public Builder instanceGroupManagerId(String instanceGroupManagerId) {
86+
this.instanceGroupManagerId = instanceGroupManagerId;
87+
return this;
88+
}
89+
90+
/**
91+
* Set the instanceGroupManagerActionPrototype.
92+
*
93+
* @param instanceGroupManagerActionPrototype the instanceGroupManagerActionPrototype
94+
* @return the CreateInstanceGroupManagerActionOptions builder
95+
*/
96+
public Builder instanceGroupManagerActionPrototype(InstanceGroupManagerActionPrototype instanceGroupManagerActionPrototype) {
97+
this.instanceGroupManagerActionPrototype = instanceGroupManagerActionPrototype;
98+
return this;
99+
}
100+
}
101+
102+
protected CreateInstanceGroupManagerActionOptions(Builder builder) {
103+
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.instanceGroupId,
104+
"instanceGroupId cannot be empty");
105+
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.instanceGroupManagerId,
106+
"instanceGroupManagerId cannot be empty");
107+
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.instanceGroupManagerActionPrototype,
108+
"instanceGroupManagerActionPrototype cannot be null");
109+
instanceGroupId = builder.instanceGroupId;
110+
instanceGroupManagerId = builder.instanceGroupManagerId;
111+
instanceGroupManagerActionPrototype = builder.instanceGroupManagerActionPrototype;
112+
}
113+
114+
/**
115+
* New builder.
116+
*
117+
* @return a CreateInstanceGroupManagerActionOptions builder
118+
*/
119+
public Builder newBuilder() {
120+
return new Builder(this);
121+
}
122+
123+
/**
124+
* Gets the instanceGroupId.
125+
*
126+
* The instance group identifier.
127+
*
128+
* @return the instanceGroupId
129+
*/
130+
public String instanceGroupId() {
131+
return instanceGroupId;
132+
}
133+
134+
/**
135+
* Gets the instanceGroupManagerId.
136+
*
137+
* The instance group manager identifier.
138+
*
139+
* @return the instanceGroupManagerId
140+
*/
141+
public String instanceGroupManagerId() {
142+
return instanceGroupManagerId;
143+
}
144+
145+
/**
146+
* Gets the instanceGroupManagerActionPrototype.
147+
*
148+
* The instance group manager action prototype object.
149+
*
150+
* @return the instanceGroupManagerActionPrototype
151+
*/
152+
public InstanceGroupManagerActionPrototype instanceGroupManagerActionPrototype() {
153+
return instanceGroupManagerActionPrototype;
154+
}
155+
}
156+

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ public String loadBalancerId() {
243243
/**
244244
* Gets the port.
245245
*
246-
* The listener port number. Each listener in the load balancer must have a unique
247-
* `port` and `protocol` combination.
246+
* The listener port number, or the inclusive lower bound of the port range. Each listener in the load balancer must
247+
* have a unique `port` and `protocol` combination.
248248
*
249249
* @return the port
250250
*/

0 commit comments

Comments
 (0)