Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManager;
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerAction;
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionPatch;
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup;
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecWithGroup;
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerActionsPager;
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerPatch;
import com.ibm.cloud.is.vpc.v1.model.InstanceGroupManagerPoliciesPager;
Expand Down Expand Up @@ -3714,7 +3714,7 @@ public static void main(String[] args) throws Exception {
InstanceGroupManagerScheduledActionGroupPrototype instanceGroupManagerScheduledActionGroupPrototypeModel = new InstanceGroupManagerScheduledActionGroupPrototype.Builder()
.membershipCount(Long.valueOf("10"))
.build();
InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup instanceGroupManagerActionPrototypeModel = new InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup.Builder()
InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecWithGroup instanceGroupManagerActionPrototypeModel = new InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecWithGroup.Builder()
.group(instanceGroupManagerScheduledActionGroupPrototypeModel).cronSpec("*/5 1,2,3 * * *")
.build();
CreateInstanceGroupManagerActionOptions createInstanceGroupManagerActionOptions = new CreateInstanceGroupManagerActionOptions.Builder()
Expand Down
17,328 changes: 8,943 additions & 8,385 deletions modules/vpc/src/main/java/com/ibm/cloud/is/vpc/v1/Vpc.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
/*
* (C) Copyright IBM Corp. 2023, 2024, 2025.
*
* 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.is.vpc.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* The addVpnGatewayAdvertisedCidr options.
*/
public class AddVpnGatewayAdvertisedCidrOptions extends GenericModel {

protected String vpnGatewayId;
protected String cidr;

/**
* Builder.
*/
public static class Builder {
private String vpnGatewayId;
private String cidr;

/**
* Instantiates a new Builder from an existing AddVpnGatewayAdvertisedCidrOptions instance.
*
* @param addVpnGatewayAdvertisedCidrOptions the instance to initialize the Builder with
*/
private Builder(AddVpnGatewayAdvertisedCidrOptions addVpnGatewayAdvertisedCidrOptions) {
this.vpnGatewayId = addVpnGatewayAdvertisedCidrOptions.vpnGatewayId;
this.cidr = addVpnGatewayAdvertisedCidrOptions.cidr;
}

/**
* Instantiates a new builder.
*/
public Builder() {
}

/**
* Instantiates a new builder with required properties.
*
* @param vpnGatewayId the vpnGatewayId
* @param cidr the cidr
*/
public Builder(String vpnGatewayId, String cidr) {
this.vpnGatewayId = vpnGatewayId;
this.cidr = cidr;
}

/**
* Builds a AddVpnGatewayAdvertisedCidrOptions.
*
* @return the new AddVpnGatewayAdvertisedCidrOptions instance
*/
public AddVpnGatewayAdvertisedCidrOptions build() {
return new AddVpnGatewayAdvertisedCidrOptions(this);
}

/**
* Set the vpnGatewayId.
*
* @param vpnGatewayId the vpnGatewayId
* @return the AddVpnGatewayAdvertisedCidrOptions builder
*/
public Builder vpnGatewayId(String vpnGatewayId) {
this.vpnGatewayId = vpnGatewayId;
return this;
}

/**
* Set the cidr.
*
* @param cidr the cidr
* @return the AddVpnGatewayAdvertisedCidrOptions builder
*/
public Builder cidr(String cidr) {
this.cidr = cidr;
return this;
}
}

protected AddVpnGatewayAdvertisedCidrOptions() { }

protected AddVpnGatewayAdvertisedCidrOptions(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.vpnGatewayId,
"vpnGatewayId cannot be empty");
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.cidr,
"cidr cannot be empty");
vpnGatewayId = builder.vpnGatewayId;
cidr = builder.cidr;
}

/**
* New builder.
*
* @return a AddVpnGatewayAdvertisedCidrOptions builder
*/
public Builder newBuilder() {
return new Builder(this);
}

/**
* Gets the vpnGatewayId.
*
* The VPN gateway identifier.
*
* @return the vpnGatewayId
*/
public String vpnGatewayId() {
return vpnGatewayId;
}

/**
* Gets the cidr.
*
* The IP address range in CIDR block notation.
*
* @return the cidr
*/
public String cidr() {
return cidr;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public interface IncludedContent {
/**
* The resource type this backup policy will apply to. Resources that have both a matching type and a matching user
* tag will be subject to the backup policy.
*
* A backup policy of type `instance` will create a backup of all volumes with a
* `storage_generation` value of `1` attached to the instance.
*/
public interface MatchResourceType {
/** instance. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public interface Status {
@SerializedName("lifecycle_state")
protected String lifecycleState;
protected Long memory;
@SerializedName("metadata_service")
protected BareMetalServerMetadataService metadataService;
protected String name;
@SerializedName("network_attachments")
protected List<BareMetalServerNetworkAttachmentReference> networkAttachments;
Expand Down Expand Up @@ -343,6 +345,17 @@ public Long getMemory() {
return memory;
}

/**
* Gets the metadataService.
*
* The metadata service configuration for the bare metal server.
*
* @return the metadataService
*/
public BareMetalServerMetadataService getMetadataService() {
return metadataService;
}

/**
* Gets the name.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public interface ResourceType {
String BARE_METAL_SERVER_DISK = "bare_metal_server_disk";
}

@SerializedName("allowed_use")
protected BareMetalServerDiskAllowedUse allowedUse;
@SerializedName("created_at")
protected Date createdAt;
protected String href;
Expand All @@ -62,6 +64,21 @@ public interface ResourceType {

protected BareMetalServerDisk() { }

/**
* Gets the allowedUse.
*
* The usage constraints to be matched against the requested bare metal server
* properties to determine compatibility.
*
* Only present for disks which are referenced in a bare metal server's `boot_target`
* property. The value of this property will be inherited from the source image at creation.
*
* @return the allowedUse
*/
public BareMetalServerDiskAllowedUse getAllowedUse() {
return allowedUse;
}

/**
* Gets the createdAt.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* (C) Copyright IBM Corp. 2023, 2024, 2025.
*
* 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.is.vpc.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* BareMetalServerDiskAllowedUse.
*/
public class BareMetalServerDiskAllowedUse extends GenericModel {

@SerializedName("api_version")
protected String apiVersion;
@SerializedName("bare_metal_server")
protected String bareMetalServer;

protected BareMetalServerDiskAllowedUse() { }

/**
* Gets the apiVersion.
*
* The API version with which to evaluate the expressions.
*
* If specified, the value must be between `2019-01-01` and today's date (in UTC). If unspecified, the `version` query
* parameter value will be used.
*
* @return the apiVersion
*/
public String getApiVersion() {
return apiVersion;
}

/**
* Gets the bareMetalServer.
*
* The expression that must be satisfied by the properties of a bare metal server provisioned using the image data in
* this disk.
*
* The expression follows [Common Expression Language](https://github.com/google/cel-spec/blob/master/doc/langdef.md),
* but does not support built-in functions and macros. In addition, the following variable is supported, corresponding
* to the `BareMetalServer` property:
* - `enable_secure_boot` (boolean): Indicates whether secure boot is enabled.
*
* @return the bareMetalServer
*/
public String getBareMetalServer() {
return bareMetalServer;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,27 @@
*/
public class BareMetalServerInitialization extends GenericModel {

@SerializedName("default_trusted_profile")
protected BareMetalServerInitializationDefaultTrustedProfile defaultTrustedProfile;
protected ImageReference image;
protected List<KeyReference> keys;
@SerializedName("user_accounts")
protected List<BareMetalServerInitializationUserAccount> userAccounts;

protected BareMetalServerInitialization() { }

/**
* Gets the defaultTrustedProfile.
*
* The default trusted profile configuration specified at bare metal server
* initialization. If absent, no default trusted profile was specified.
*
* @return the defaultTrustedProfile
*/
public BareMetalServerInitializationDefaultTrustedProfile getDefaultTrustedProfile() {
return defaultTrustedProfile;
}

/**
* Gets the image.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* (C) Copyright IBM Corp. 2023, 2024, 2025.
*
* 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.is.vpc.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* BareMetalServerInitializationDefaultTrustedProfile.
*/
public class BareMetalServerInitializationDefaultTrustedProfile extends GenericModel {

@SerializedName("auto_link")
protected Boolean autoLink;
protected TrustedProfileReference target;

protected BareMetalServerInitializationDefaultTrustedProfile() { }

/**
* Gets the autoLink.
*
* If set to `true`, the system created a link to the specified `target` trusted profile during server initialization.
* Regardless of whether a link was created by the system or manually using the IAM Identity service, the link will be
* automatically deleted when the server is deleted.
*
* @return the autoLink
*/
public Boolean isAutoLink() {
return autoLink;
}

/**
* Gets the target.
*
* The default IAM trusted profile to use for this bare metal server.
*
* @return the target
*/
public TrustedProfileReference getTarget() {
return target;
}
}

Loading