Skip to content

Commit

Permalink
fix(Resource Controller): re-gen after API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
padamstx committed Oct 30, 2020
1 parent b2e1dd3 commit 1d6266b
Show file tree
Hide file tree
Showing 10 changed files with 282 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-cfe3553a-20200914-135527
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-8d569e8f-20201030-111043
*/

package com.ibm.cloud.platform_services.resource_controller.v2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ public class ResourceAlias extends GenericModel {
protected Date updatedAt;
@SerializedName("deleted_at")
protected Date deletedAt;
@SerializedName("created_by")
protected String createdBy;
@SerializedName("updated_by")
protected String updatedBy;
@SerializedName("deleted_by")
protected String deletedBy;

/**
* Gets the id.
Expand Down Expand Up @@ -253,5 +259,38 @@ public Date getUpdatedAt() {
public Date getDeletedAt() {
return deletedAt;
}

/**
* Gets the createdBy.
*
* The subject who created the alias.
*
* @return the createdBy
*/
public String getCreatedBy() {
return createdBy;
}

/**
* Gets the updatedBy.
*
* The subject who updated the alias.
*
* @return the updatedBy
*/
public String getUpdatedBy() {
return updatedBy;
}

/**
* Gets the deletedBy.
*
* The subject who deleted the alias.
*
* @return the deletedBy
*/
public String getDeletedBy() {
return deletedBy;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class ResourceBinding extends GenericModel {
protected String sourceCrn;
@SerializedName("target_crn")
protected String targetCrn;
protected String role;
@SerializedName("region_binding_id")
protected String regionBindingId;
protected String state;
Expand All @@ -49,6 +50,12 @@ public class ResourceBinding extends GenericModel {
protected Date updatedAt;
@SerializedName("deleted_at")
protected Date deletedAt;
@SerializedName("created_by")
protected String createdBy;
@SerializedName("updated_by")
protected String updatedBy;
@SerializedName("deleted_by")
protected String deletedBy;

/**
* Gets the id.
Expand Down Expand Up @@ -151,6 +158,17 @@ public String getTargetCrn() {
return targetCrn;
}

/**
* Gets the role.
*
* The role CRN.
*
* @return the role
*/
public String getRole() {
return role;
}

/**
* Gets the regionBindingId.
*
Expand Down Expand Up @@ -240,5 +258,38 @@ public Date getUpdatedAt() {
public Date getDeletedAt() {
return deletedAt;
}

/**
* Gets the createdBy.
*
* The subject who created the binding.
*
* @return the createdBy
*/
public String getCreatedBy() {
return createdBy;
}

/**
* Gets the updatedBy.
*
* The subject who updated the binding.
*
* @return the updatedBy
*/
public String getUpdatedBy() {
return updatedBy;
}

/**
* Gets the deletedBy.
*
* The subject who deleted the binding.
*
* @return the deletedBy
*/
public String getDeletedBy() {
return deletedBy;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class ResourceInstance extends GenericModel {
protected String resourcePlanId;
@SerializedName("target_crn")
protected String targetCrn;
protected Map<String, Object> parameters;
protected String state;
protected String type;
@SerializedName("sub_type")
Expand All @@ -62,10 +63,24 @@ public class ResourceInstance extends GenericModel {
protected String resourceKeysUrl;
@SerializedName("created_at")
protected Date createdAt;
@SerializedName("created_by")
protected String createdBy;
@SerializedName("updated_at")
protected Date updatedAt;
@SerializedName("updated_by")
protected String updatedBy;
@SerializedName("deleted_at")
protected Date deletedAt;
@SerializedName("deleted_by")
protected String deletedBy;
@SerializedName("scheduled_reclaim_at")
protected Date scheduledReclaimAt;
@SerializedName("scheduled_reclaim_by")
protected String scheduledReclaimBy;
@SerializedName("restored_at")
protected Date restoredAt;
@SerializedName("restored_by")
protected String restoredBy;

/**
* Gets the id.
Expand Down Expand Up @@ -191,6 +206,17 @@ public String getTargetCrn() {
return targetCrn;
}

/**
* Gets the parameters.
*
* The current configuration parameters of the instance.
*
* @return the parameters
*/
public Map<String, Object> getParameters() {
return parameters;
}

/**
* Gets the state.
*
Expand Down Expand Up @@ -324,6 +350,17 @@ public Date getCreatedAt() {
return createdAt;
}

/**
* Gets the createdBy.
*
* The subject who created the instance.
*
* @return the createdBy
*/
public String getCreatedBy() {
return createdBy;
}

/**
* Gets the updatedAt.
*
Expand All @@ -335,6 +372,17 @@ public Date getUpdatedAt() {
return updatedAt;
}

/**
* Gets the updatedBy.
*
* The subject who updated the instance.
*
* @return the updatedBy
*/
public String getUpdatedBy() {
return updatedBy;
}

/**
* Gets the deletedAt.
*
Expand All @@ -345,5 +393,60 @@ public Date getUpdatedAt() {
public Date getDeletedAt() {
return deletedAt;
}

/**
* Gets the deletedBy.
*
* The subject who deleted the instance.
*
* @return the deletedBy
*/
public String getDeletedBy() {
return deletedBy;
}

/**
* Gets the scheduledReclaimAt.
*
* The date when the instance was scheduled for reclamation.
*
* @return the scheduledReclaimAt
*/
public Date getScheduledReclaimAt() {
return scheduledReclaimAt;
}

/**
* Gets the scheduledReclaimBy.
*
* The subject who initiated the instance reclamation.
*
* @return the scheduledReclaimBy
*/
public String getScheduledReclaimBy() {
return scheduledReclaimBy;
}

/**
* Gets the restoredAt.
*
* The date when the instance under reclamation was restored.
*
* @return the restoredAt
*/
public Date getRestoredAt() {
return restoredAt;
}

/**
* Gets the restoredBy.
*
* The subject who restored the instance back from reclamation.
*
* @return the restoredBy
*/
public String getRestoredBy() {
return restoredBy;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class ResourceKey extends GenericModel {
protected String resourceGroupId;
@SerializedName("source_crn")
protected String sourceCrn;
protected String role;
protected String state;
protected Credentials credentials;
@SerializedName("iam_compatible")
Expand All @@ -45,6 +46,12 @@ public class ResourceKey extends GenericModel {
protected Date updatedAt;
@SerializedName("deleted_at")
protected Date deletedAt;
@SerializedName("created_by")
protected String createdBy;
@SerializedName("updated_by")
protected String updatedBy;
@SerializedName("deleted_by")
protected String deletedBy;

/**
* Gets the id.
Expand Down Expand Up @@ -136,6 +143,17 @@ public String getSourceCrn() {
return sourceCrn;
}

/**
* Gets the role.
*
* The role CRN.
*
* @return the role
*/
public String getRole() {
return role;
}

/**
* Gets the state.
*
Expand Down Expand Up @@ -213,5 +231,38 @@ public Date getUpdatedAt() {
public Date getDeletedAt() {
return deletedAt;
}

/**
* Gets the createdBy.
*
* The subject who created the key.
*
* @return the createdBy
*/
public String getCreatedBy() {
return createdBy;
}

/**
* Gets the updatedBy.
*
* The subject who updated the key.
*
* @return the updatedBy
*/
public String getUpdatedBy() {
return updatedBy;
}

/**
* Gets the deletedBy.
*
* The subject who deleted the key.
*
* @return the deletedBy
*/
public String getDeletedBy() {
return deletedBy;
}
}

Loading

0 comments on commit 1d6266b

Please sign in to comment.