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
  •  
  •  
  •  
215 changes: 210 additions & 5 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
Expand Up @@ -51,7 +51,7 @@ public String getApiVersion() {
* 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.
* - `enable_secure_boot` (boolean): Whether secure boot is enabled.
*
* @return the bareMetalServer
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
public class BareMetalServerProfileDiskSupportedInterfaces extends GenericModel {

/**
* The default value for this profile field.
* The default interface type supported by a bare metal server with this profile.
* - `fcp`: Fiber Channel Protocol
* - `sata`: Serial Advanced Technology Attachment
* - `nvme`: Non-Volatile Memory Express
*
* The enumerated values for this property may
* [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.
*/
public interface XDefault {
/** fcp. */
Expand Down Expand Up @@ -71,7 +77,13 @@ protected BareMetalServerProfileDiskSupportedInterfaces() { }
/**
* Gets the xDefault.
*
* The default value for this profile field.
* The default interface type supported by a bare metal server with this profile.
* - `fcp`: Fiber Channel Protocol
* - `sata`: Serial Advanced Technology Attachment
* - `nvme`: Non-Volatile Memory Express
*
* The enumerated values for this property may
* [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.
*
* @return the xDefault
*/
Expand Down
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 cancelVolumeJob options.
*/
public class CancelVolumeJobOptions extends GenericModel {

protected String volumeId;
protected String id;

/**
* Builder.
*/
public static class Builder {
private String volumeId;
private String id;

/**
* Instantiates a new Builder from an existing CancelVolumeJobOptions instance.
*
* @param cancelVolumeJobOptions the instance to initialize the Builder with
*/
private Builder(CancelVolumeJobOptions cancelVolumeJobOptions) {
this.volumeId = cancelVolumeJobOptions.volumeId;
this.id = cancelVolumeJobOptions.id;
}

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

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

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

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

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

protected CancelVolumeJobOptions() { }

protected CancelVolumeJobOptions(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.volumeId,
"volumeId cannot be empty");
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.id,
"id cannot be empty");
volumeId = builder.volumeId;
id = builder.id;
}

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

/**
* Gets the volumeId.
*
* The volume identifier.
*
* @return the volumeId
*/
public String volumeId() {
return volumeId;
}

/**
* Gets the id.
*
* The volume job identifier.
*
* @return the id
*/
public String id() {
return id;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,15 @@ public Long connectionLimit() {
*
* The default pool for this listener. If `https_redirect` is specified, the
* default pool will not be used.
* If specified, the pool must:
*
* If specified, the pool must:
* - Belong to this load balancer.
* - Have the same `protocol` as this listener, or have a compatible protocol.
* At present, the compatible protocols are `http` and `https`.
* - Not already be the `default_pool` for another listener.
* - Not already be the `failsafe_policy.target` for another `default_pool` and
* `failsafe_policy.target` (applies only to load balancers in the `network`
* family).
*
* If unspecified, this listener will be created with no default pool, but one may be
* subsequently set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ public Long ipv4AddressCount() {
/**
* Gets the name.
*
* The name for this public address range. The name must not be used by another public address range in the region. If
* unspecified, the name will be a hyphenated list of randomly-selected words.
* The name for this public address range. The name must not be used by another public address range in the region.
* Names starting with `ibm-` are reserved for provider-managed resources, and are not allowed. If unspecified, the
* name will be a hyphenated list of randomly-selected words.
*
* @return the name
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
/*
* (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 createVolumeJob options.
*/
public class CreateVolumeJobOptions extends GenericModel {

protected String volumeId;
protected VolumeJobPrototype volumeJobPrototype;
protected String start;
protected Long limit;

/**
* Builder.
*/
public static class Builder {
private String volumeId;
private VolumeJobPrototype volumeJobPrototype;
private String start;
private Long limit;

/**
* Instantiates a new Builder from an existing CreateVolumeJobOptions instance.
*
* @param createVolumeJobOptions the instance to initialize the Builder with
*/
private Builder(CreateVolumeJobOptions createVolumeJobOptions) {
this.volumeId = createVolumeJobOptions.volumeId;
this.volumeJobPrototype = createVolumeJobOptions.volumeJobPrototype;
this.start = createVolumeJobOptions.start;
this.limit = createVolumeJobOptions.limit;
}

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

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

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

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

/**
* Set the volumeJobPrototype.
*
* @param volumeJobPrototype the volumeJobPrototype
* @return the CreateVolumeJobOptions builder
*/
public Builder volumeJobPrototype(VolumeJobPrototype volumeJobPrototype) {
this.volumeJobPrototype = volumeJobPrototype;
return this;
}

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

/**
* Set the limit.
*
* @param limit the limit
* @return the CreateVolumeJobOptions builder
*/
public Builder limit(long limit) {
this.limit = limit;
return this;
}
}

protected CreateVolumeJobOptions() { }

protected CreateVolumeJobOptions(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.volumeId,
"volumeId cannot be empty");
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.volumeJobPrototype,
"volumeJobPrototype cannot be null");
volumeId = builder.volumeId;
volumeJobPrototype = builder.volumeJobPrototype;
start = builder.start;
limit = builder.limit;
}

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

/**
* Gets the volumeId.
*
* The volume identifier.
*
* @return the volumeId
*/
public String volumeId() {
return volumeId;
}

/**
* Gets the volumeJobPrototype.
*
* The volume job prototype object.
*
* @return the volumeJobPrototype
*/
public VolumeJobPrototype volumeJobPrototype() {
return volumeJobPrototype;
}

/**
* Gets the start.
*
* A server-provided token determining what resource to start the page on.
*
* @return the start
*/
public String start() {
return start;
}

/**
* Gets the limit.
*
* The number of resources to return on a page.
*
* @return the limit
*/
public Long limit() {
return limit;
}
}

Loading
Loading