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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-9ae61cfc-20210302-143858
* IBM OpenAPI SDK Code Generator Version: 3.29.1-b338fb38-20210313-010605
*/

package com.ibm.cloud.platform_services.resource_controller.v2;
Expand Down Expand Up @@ -158,6 +158,12 @@ public ServiceCall<ResourceInstancesList> listResourceInstances(ListResourceInst
if (listResourceInstancesOptions.limit() != null) {
builder.query("limit", String.valueOf(listResourceInstancesOptions.limit()));
}
if (listResourceInstancesOptions.state() != null) {
builder.query("state", String.valueOf(listResourceInstancesOptions.state()));
}
if (listResourceInstancesOptions.orderDirection() != null) {
builder.query("order_direction", String.valueOf(listResourceInstancesOptions.orderDirection()));
}
if (listResourceInstancesOptions.updatedFrom() != null) {
builder.query("updated_from", String.valueOf(listResourceInstancesOptions.updatedFrom()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public String source() {
/**
* Gets the target.
*
* The CRN of target name(space) in a specific environment, e.g. space in Dallas YP, CFEE instance etc.
* The CRN of target name(space) in a specific environment, for example, space in Dallas YP, CFEE instance etc.
*
* @return the target
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public String source() {
/**
* Gets the target.
*
* The CRN of application to bind to in a specific environment, e.g. Dallas YP, CFEE instance.
* The CRN of application to bind to in a specific environment, for example, Dallas YP, CFEE instance.
*
* @return the target
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public String resourceId() {
/**
* Gets the regionBindingId.
*
* Short ID of the binding in the specific targeted environment, e.g. service_binding_id in a given IBM Cloud
* Short ID of the binding in the specific targeted environment, for example, service_binding_id in a given IBM Cloud
* environment.
*
* @return the regionBindingId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,28 @@
*/
public class ListResourceInstancesOptions extends GenericModel {

/**
* The state of the instance. If not specified, instances in state `active` and `provisioning` are returned.
*/
public interface State {
/** active. */
String ACTIVE = "active";
/** provisioning. */
String PROVISIONING = "provisioning";
/** removed. */
String REMOVED = "removed";
}

/**
* Order of results.
*/
public interface OrderDirection {
/** asc. */
String ASC = "asc";
/** desc. */
String DESC = "desc";
}

protected String guid;
protected String name;
protected String resourceGroupId;
Expand All @@ -27,6 +49,8 @@ public class ListResourceInstancesOptions extends GenericModel {
protected String type;
protected String subType;
protected String limit;
protected String state;
protected String orderDirection;
protected String updatedFrom;
protected String updatedTo;

Expand All @@ -42,6 +66,8 @@ public static class Builder {
private String type;
private String subType;
private String limit;
private String state;
private String orderDirection;
private String updatedFrom;
private String updatedTo;

Expand All @@ -54,6 +80,8 @@ private Builder(ListResourceInstancesOptions listResourceInstancesOptions) {
this.type = listResourceInstancesOptions.type;
this.subType = listResourceInstancesOptions.subType;
this.limit = listResourceInstancesOptions.limit;
this.state = listResourceInstancesOptions.state;
this.orderDirection = listResourceInstancesOptions.orderDirection;
this.updatedFrom = listResourceInstancesOptions.updatedFrom;
this.updatedTo = listResourceInstancesOptions.updatedTo;
}
Expand Down Expand Up @@ -161,6 +189,28 @@ public Builder limit(String limit) {
return this;
}

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

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

/**
* Set the updatedFrom.
*
Expand Down Expand Up @@ -193,6 +243,8 @@ protected ListResourceInstancesOptions(Builder builder) {
type = builder.type;
subType = builder.subType;
limit = builder.limit;
state = builder.state;
orderDirection = builder.orderDirection;
updatedFrom = builder.updatedFrom;
updatedTo = builder.updatedTo;
}
Expand Down Expand Up @@ -266,7 +318,7 @@ public String resourcePlanId() {
/**
* Gets the type.
*
* The type of the instance. For example, `service_instance`.
* The type of the instance, for example, `service_instance`.
*
* @return the type
*/
Expand All @@ -277,7 +329,7 @@ public String type() {
/**
* Gets the subType.
*
* The sub-type of instance, e.g. `cfaas`.
* The sub-type of instance, for example, `cfaas`.
*
* @return the subType
*/
Expand All @@ -296,6 +348,28 @@ public String limit() {
return limit;
}

/**
* Gets the state.
*
* The state of the instance. If not specified, instances in state `active` and `provisioning` are returned.
*
* @return the state
*/
public String state() {
return state;
}

/**
* Gets the orderDirection.
*
* Order of results.
*
* @return the orderDirection
*/
public String orderDirection() {
return orderDirection;
}

/**
* Gets the updatedFrom.
*
Expand Down
Loading