Skip to content

Commit 2503304

Browse files
committed
feat(spec): updated the sdk as per the api spec released on 2025-12-16
Signed-off-by: Ujjwal Kumar <Ujjwal.Kumar1@ibm.com>
1 parent 507bae6 commit 2503304

525 files changed

Lines changed: 61441 additions & 31160 deletions

File tree

Some content is hidden

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManager;
352352
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerAction;
353353
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionPatch;
354-
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup;
354+
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecWithGroup;
355355
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionsPager;
356356
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerPatch;
357357
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerPoliciesPager;
@@ -3714,7 +3714,7 @@ public static void main(String[] args) throws Exception {
37143714
InstanceGroupManagerScheduledActionGroupPrototype instanceGroupManagerScheduledActionGroupPrototypeModel = new InstanceGroupManagerScheduledActionGroupPrototype.Builder()
37153715
.membershipCount(Long.valueOf("10"))
37163716
.build();
3717-
InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup instanceGroupManagerActionPrototypeModel = new InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup.Builder()
3717+
InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecWithGroup instanceGroupManagerActionPrototypeModel = new InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecWithGroup.Builder()
37183718
.group(instanceGroupManagerScheduledActionGroupPrototypeModel).cronSpec("*/5 1,2,3 * * *")
37193719
.build();
37203720
CreateInstanceGroupManagerActionOptions createInstanceGroupManagerActionOptions = new CreateInstanceGroupManagerActionOptions.Builder()

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

Lines changed: 8943 additions & 8385 deletions
Large diffs are not rendered by default.
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/*
2+
* (C) Copyright IBM Corp. 2023, 2024, 2025.
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+
14+
package com.ibm.cloud.is.vpc.v1.model;
15+
16+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
17+
18+
/**
19+
* The addVpnGatewayAdvertisedCidr options.
20+
*/
21+
public class AddVpnGatewayAdvertisedCidrOptions extends GenericModel {
22+
23+
protected String vpnGatewayId;
24+
protected String cidr;
25+
26+
/**
27+
* Builder.
28+
*/
29+
public static class Builder {
30+
private String vpnGatewayId;
31+
private String cidr;
32+
33+
/**
34+
* Instantiates a new Builder from an existing AddVpnGatewayAdvertisedCidrOptions instance.
35+
*
36+
* @param addVpnGatewayAdvertisedCidrOptions the instance to initialize the Builder with
37+
*/
38+
private Builder(AddVpnGatewayAdvertisedCidrOptions addVpnGatewayAdvertisedCidrOptions) {
39+
this.vpnGatewayId = addVpnGatewayAdvertisedCidrOptions.vpnGatewayId;
40+
this.cidr = addVpnGatewayAdvertisedCidrOptions.cidr;
41+
}
42+
43+
/**
44+
* Instantiates a new builder.
45+
*/
46+
public Builder() {
47+
}
48+
49+
/**
50+
* Instantiates a new builder with required properties.
51+
*
52+
* @param vpnGatewayId the vpnGatewayId
53+
* @param cidr the cidr
54+
*/
55+
public Builder(String vpnGatewayId, String cidr) {
56+
this.vpnGatewayId = vpnGatewayId;
57+
this.cidr = cidr;
58+
}
59+
60+
/**
61+
* Builds a AddVpnGatewayAdvertisedCidrOptions.
62+
*
63+
* @return the new AddVpnGatewayAdvertisedCidrOptions instance
64+
*/
65+
public AddVpnGatewayAdvertisedCidrOptions build() {
66+
return new AddVpnGatewayAdvertisedCidrOptions(this);
67+
}
68+
69+
/**
70+
* Set the vpnGatewayId.
71+
*
72+
* @param vpnGatewayId the vpnGatewayId
73+
* @return the AddVpnGatewayAdvertisedCidrOptions builder
74+
*/
75+
public Builder vpnGatewayId(String vpnGatewayId) {
76+
this.vpnGatewayId = vpnGatewayId;
77+
return this;
78+
}
79+
80+
/**
81+
* Set the cidr.
82+
*
83+
* @param cidr the cidr
84+
* @return the AddVpnGatewayAdvertisedCidrOptions builder
85+
*/
86+
public Builder cidr(String cidr) {
87+
this.cidr = cidr;
88+
return this;
89+
}
90+
}
91+
92+
protected AddVpnGatewayAdvertisedCidrOptions() { }
93+
94+
protected AddVpnGatewayAdvertisedCidrOptions(Builder builder) {
95+
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.vpnGatewayId,
96+
"vpnGatewayId cannot be empty");
97+
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.cidr,
98+
"cidr cannot be empty");
99+
vpnGatewayId = builder.vpnGatewayId;
100+
cidr = builder.cidr;
101+
}
102+
103+
/**
104+
* New builder.
105+
*
106+
* @return a AddVpnGatewayAdvertisedCidrOptions builder
107+
*/
108+
public Builder newBuilder() {
109+
return new Builder(this);
110+
}
111+
112+
/**
113+
* Gets the vpnGatewayId.
114+
*
115+
* The VPN gateway identifier.
116+
*
117+
* @return the vpnGatewayId
118+
*/
119+
public String vpnGatewayId() {
120+
return vpnGatewayId;
121+
}
122+
123+
/**
124+
* Gets the cidr.
125+
*
126+
* The IP address range in CIDR block notation.
127+
*
128+
* @return the cidr
129+
*/
130+
public String cidr() {
131+
return cidr;
132+
}
133+
}
134+

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public interface IncludedContent {
3434
/**
3535
* The resource type this backup policy will apply to. Resources that have both a matching type and a matching user
3636
* tag will be subject to the backup policy.
37+
*
38+
* A backup policy of type `instance` will create a backup of all volumes with a
39+
* `storage_generation` value of `1` attached to the instance.
3740
*/
3841
public interface MatchResourceType {
3942
/** instance. */

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ public interface Status {
130130
@SerializedName("lifecycle_state")
131131
protected String lifecycleState;
132132
protected Long memory;
133+
@SerializedName("metadata_service")
134+
protected BareMetalServerMetadataService metadataService;
133135
protected String name;
134136
@SerializedName("network_attachments")
135137
protected List<BareMetalServerNetworkAttachmentReference> networkAttachments;
@@ -343,6 +345,17 @@ public Long getMemory() {
343345
return memory;
344346
}
345347

348+
/**
349+
* Gets the metadataService.
350+
*
351+
* The metadata service configuration for the bare metal server.
352+
*
353+
* @return the metadataService
354+
*/
355+
public BareMetalServerMetadataService getMetadataService() {
356+
return metadataService;
357+
}
358+
346359
/**
347360
* Gets the name.
348361
*

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public interface ResourceType {
4949
String BARE_METAL_SERVER_DISK = "bare_metal_server_disk";
5050
}
5151

52+
@SerializedName("allowed_use")
53+
protected BareMetalServerDiskAllowedUse allowedUse;
5254
@SerializedName("created_at")
5355
protected Date createdAt;
5456
protected String href;
@@ -62,6 +64,21 @@ public interface ResourceType {
6264

6365
protected BareMetalServerDisk() { }
6466

67+
/**
68+
* Gets the allowedUse.
69+
*
70+
* The usage constraints to be matched against the requested bare metal server
71+
* properties to determine compatibility.
72+
*
73+
* Only present for disks which are referenced in a bare metal server's `boot_target`
74+
* property. The value of this property will be inherited from the source image at creation.
75+
*
76+
* @return the allowedUse
77+
*/
78+
public BareMetalServerDiskAllowedUse getAllowedUse() {
79+
return allowedUse;
80+
}
81+
6582
/**
6683
* Gets the createdAt.
6784
*
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* (C) Copyright IBM Corp. 2023, 2024, 2025.
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+
14+
package com.ibm.cloud.is.vpc.v1.model;
15+
16+
import com.google.gson.annotations.SerializedName;
17+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
18+
19+
/**
20+
* BareMetalServerDiskAllowedUse.
21+
*/
22+
public class BareMetalServerDiskAllowedUse extends GenericModel {
23+
24+
@SerializedName("api_version")
25+
protected String apiVersion;
26+
@SerializedName("bare_metal_server")
27+
protected String bareMetalServer;
28+
29+
protected BareMetalServerDiskAllowedUse() { }
30+
31+
/**
32+
* Gets the apiVersion.
33+
*
34+
* The API version with which to evaluate the expressions.
35+
*
36+
* If specified, the value must be between `2019-01-01` and today's date (in UTC). If unspecified, the `version` query
37+
* parameter value will be used.
38+
*
39+
* @return the apiVersion
40+
*/
41+
public String getApiVersion() {
42+
return apiVersion;
43+
}
44+
45+
/**
46+
* Gets the bareMetalServer.
47+
*
48+
* The expression that must be satisfied by the properties of a bare metal server provisioned using the image data in
49+
* this disk.
50+
*
51+
* The expression follows [Common Expression Language](https://github.com/google/cel-spec/blob/master/doc/langdef.md),
52+
* but does not support built-in functions and macros. In addition, the following variable is supported, corresponding
53+
* to the `BareMetalServer` property:
54+
* - `enable_secure_boot` (boolean): Indicates whether secure boot is enabled.
55+
*
56+
* @return the bareMetalServer
57+
*/
58+
public String getBareMetalServer() {
59+
return bareMetalServer;
60+
}
61+
}
62+

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,27 @@
2323
*/
2424
public class BareMetalServerInitialization extends GenericModel {
2525

26+
@SerializedName("default_trusted_profile")
27+
protected BareMetalServerInitializationDefaultTrustedProfile defaultTrustedProfile;
2628
protected ImageReference image;
2729
protected List<KeyReference> keys;
2830
@SerializedName("user_accounts")
2931
protected List<BareMetalServerInitializationUserAccount> userAccounts;
3032

3133
protected BareMetalServerInitialization() { }
3234

35+
/**
36+
* Gets the defaultTrustedProfile.
37+
*
38+
* The default trusted profile configuration specified at bare metal server
39+
* initialization. If absent, no default trusted profile was specified.
40+
*
41+
* @return the defaultTrustedProfile
42+
*/
43+
public BareMetalServerInitializationDefaultTrustedProfile getDefaultTrustedProfile() {
44+
return defaultTrustedProfile;
45+
}
46+
3347
/**
3448
* Gets the image.
3549
*
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* (C) Copyright IBM Corp. 2023, 2024, 2025.
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+
14+
package com.ibm.cloud.is.vpc.v1.model;
15+
16+
import com.google.gson.annotations.SerializedName;
17+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
18+
19+
/**
20+
* BareMetalServerInitializationDefaultTrustedProfile.
21+
*/
22+
public class BareMetalServerInitializationDefaultTrustedProfile extends GenericModel {
23+
24+
@SerializedName("auto_link")
25+
protected Boolean autoLink;
26+
protected TrustedProfileReference target;
27+
28+
protected BareMetalServerInitializationDefaultTrustedProfile() { }
29+
30+
/**
31+
* Gets the autoLink.
32+
*
33+
* If set to `true`, the system created a link to the specified `target` trusted profile during server initialization.
34+
* Regardless of whether a link was created by the system or manually using the IAM Identity service, the link will be
35+
* automatically deleted when the server is deleted.
36+
*
37+
* @return the autoLink
38+
*/
39+
public Boolean isAutoLink() {
40+
return autoLink;
41+
}
42+
43+
/**
44+
* Gets the target.
45+
*
46+
* The default IAM trusted profile to use for this bare metal server.
47+
*
48+
* @return the target
49+
*/
50+
public TrustedProfileReference getTarget() {
51+
return target;
52+
}
53+
}
54+

0 commit comments

Comments
 (0)