Skip to content
Closed
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 @@ -35,6 +35,11 @@
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
public class GetQuotaResponse {
public static final String SERIALIZED_NAME_MAX_CREDENTIALS = "maxCredentials";

@SerializedName(SERIALIZED_NAME_MAX_CREDENTIALS)
@javax.annotation.Nullable private Integer maxCredentials;

public static final String SERIALIZED_NAME_MAX_LOAD_BALANCERS = "maxLoadBalancers";

@SerializedName(SERIALIZED_NAME_MAX_LOAD_BALANCERS)
Expand All @@ -50,6 +55,16 @@ public class GetQuotaResponse {
@SerializedName(SERIALIZED_NAME_REGION)
@javax.annotation.Nullable private String region;

public static final String SERIALIZED_NAME_USED_CREDENTIALS = "usedCredentials";

@SerializedName(SERIALIZED_NAME_USED_CREDENTIALS)
@javax.annotation.Nullable private Integer usedCredentials;

public static final String SERIALIZED_NAME_USED_LOAD_BALANCERS = "usedLoadBalancers";

@SerializedName(SERIALIZED_NAME_USED_LOAD_BALANCERS)
@javax.annotation.Nullable private Integer usedLoadBalancers;

public GetQuotaResponse() {}

public GetQuotaResponse(UUID projectId, String region) {
Expand All @@ -58,6 +73,25 @@ public GetQuotaResponse(UUID projectId, String region) {
this.region = region;
}

public GetQuotaResponse maxCredentials(@javax.annotation.Nullable Integer maxCredentials) {
this.maxCredentials = maxCredentials;
return this;
}

/**
* The maximum number of observability credentials that can be stored in this project. minimum:
* -1 maximum: 999
*
* @return maxCredentials
*/
@javax.annotation.Nullable public Integer getMaxCredentials() {
return maxCredentials;
}

public void setMaxCredentials(@javax.annotation.Nullable Integer maxCredentials) {
this.maxCredentials = maxCredentials;
}

public GetQuotaResponse maxLoadBalancers(@javax.annotation.Nullable Integer maxLoadBalancers) {
this.maxLoadBalancers = maxLoadBalancers;
return this;
Expand Down Expand Up @@ -95,6 +129,45 @@ public void setMaxLoadBalancers(@javax.annotation.Nullable Integer maxLoadBalanc
return region;
}

public GetQuotaResponse usedCredentials(@javax.annotation.Nullable Integer usedCredentials) {
this.usedCredentials = usedCredentials;
return this;
}

/**
* The number of observability credentials that are currently existing in this project. minimum:
* -1 maximum: 1000000
*
* @return usedCredentials
*/
@javax.annotation.Nullable public Integer getUsedCredentials() {
return usedCredentials;
}

public void setUsedCredentials(@javax.annotation.Nullable Integer usedCredentials) {
this.usedCredentials = usedCredentials;
}

public GetQuotaResponse usedLoadBalancers(
@javax.annotation.Nullable Integer usedLoadBalancers) {
this.usedLoadBalancers = usedLoadBalancers;
return this;
}

/**
* The number of load balancing servers that are currently existing in this project. minimum: -1
* maximum: 1000000
*
* @return usedLoadBalancers
*/
@javax.annotation.Nullable public Integer getUsedLoadBalancers() {
return usedLoadBalancers;
}

public void setUsedLoadBalancers(@javax.annotation.Nullable Integer usedLoadBalancers) {
this.usedLoadBalancers = usedLoadBalancers;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -104,23 +177,37 @@ public boolean equals(Object o) {
return false;
}
GetQuotaResponse getQuotaResponse = (GetQuotaResponse) o;
return Objects.equals(this.maxLoadBalancers, getQuotaResponse.maxLoadBalancers)
return Objects.equals(this.maxCredentials, getQuotaResponse.maxCredentials)
&& Objects.equals(this.maxLoadBalancers, getQuotaResponse.maxLoadBalancers)
&& Objects.equals(this.projectId, getQuotaResponse.projectId)
&& Objects.equals(this.region, getQuotaResponse.region);
&& Objects.equals(this.region, getQuotaResponse.region)
&& Objects.equals(this.usedCredentials, getQuotaResponse.usedCredentials)
&& Objects.equals(this.usedLoadBalancers, getQuotaResponse.usedLoadBalancers);
}

@Override
public int hashCode() {
return Objects.hash(maxLoadBalancers, projectId, region);
return Objects.hash(
maxCredentials,
maxLoadBalancers,
projectId,
region,
usedCredentials,
usedLoadBalancers);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetQuotaResponse {\n");
sb.append(" maxCredentials: ").append(toIndentedString(maxCredentials)).append("\n");
sb.append(" maxLoadBalancers: ").append(toIndentedString(maxLoadBalancers)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" usedCredentials: ").append(toIndentedString(usedCredentials)).append("\n");
sb.append(" usedLoadBalancers: ")
.append(toIndentedString(usedLoadBalancers))
.append("\n");
sb.append("}");
return sb.toString();
}
Expand All @@ -142,7 +229,14 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
openapiFields =
new HashSet<String>(Arrays.asList("maxLoadBalancers", "projectId", "region"));
new HashSet<String>(
Arrays.asList(
"maxCredentials",
"maxLoadBalancers",
"projectId",
"region",
"usedCredentials",
"usedLoadBalancers"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(0);
Expand Down
Loading