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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-07 15:50:16.611825",
"spec_repo_commit": "6f781b6c"
"regenerated": "2023-07-07 16:55:22.571907",
"spec_repo_commit": "64593ced"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-07 15:50:16.631822",
"spec_repo_commit": "6f781b6c"
"regenerated": "2023-07-07 16:55:22.585858",
"spec_repo_commit": "64593ced"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3316,6 +3316,10 @@ components:
extra metric tags.
example: false
type: boolean
id:
description: The ID associated with the Confluent resource.
example: resource_id_abc123
type: string
resource_type:
description: The resource type of the Resource. Can be `kafka`, `connector`,
`ksql`, or `schema_registry`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/** Model representation of a Confluent Cloud resource. */
@JsonPropertyOrder({
ConfluentResourceResponseAttributes.JSON_PROPERTY_ENABLE_CUSTOM_METRICS,
ConfluentResourceResponseAttributes.JSON_PROPERTY_ID,
ConfluentResourceResponseAttributes.JSON_PROPERTY_RESOURCE_TYPE,
ConfluentResourceResponseAttributes.JSON_PROPERTY_TAGS
})
Expand All @@ -32,6 +33,9 @@ public class ConfluentResourceResponseAttributes {
public static final String JSON_PROPERTY_ENABLE_CUSTOM_METRICS = "enable_custom_metrics";
private Boolean enableCustomMetrics = false;

public static final String JSON_PROPERTY_ID = "id";
private String id;

public static final String JSON_PROPERTY_RESOURCE_TYPE = "resource_type";
private String resourceType;

Expand Down Expand Up @@ -67,6 +71,27 @@ public void setEnableCustomMetrics(Boolean enableCustomMetrics) {
this.enableCustomMetrics = enableCustomMetrics;
}

public ConfluentResourceResponseAttributes id(String id) {
this.id = id;
return this;
}

/**
* The ID associated with the Confluent resource.
*
* @return id
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public ConfluentResourceResponseAttributes resourceType(String resourceType) {
this.resourceType = resourceType;
return this;
Expand Down Expand Up @@ -177,6 +202,7 @@ public boolean equals(Object o) {
(ConfluentResourceResponseAttributes) o;
return Objects.equals(
this.enableCustomMetrics, confluentResourceResponseAttributes.enableCustomMetrics)
&& Objects.equals(this.id, confluentResourceResponseAttributes.id)
&& Objects.equals(this.resourceType, confluentResourceResponseAttributes.resourceType)
&& Objects.equals(this.tags, confluentResourceResponseAttributes.tags)
&& Objects.equals(
Expand All @@ -185,7 +211,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(enableCustomMetrics, resourceType, tags, additionalProperties);
return Objects.hash(enableCustomMetrics, id, resourceType, tags, additionalProperties);
}

@Override
Expand All @@ -195,6 +221,7 @@ public String toString() {
sb.append(" enableCustomMetrics: ")
.append(toIndentedString(enableCustomMetrics))
.append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" additionalProperties: ")
Expand Down