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-13 21:23:54.991844",
"spec_repo_commit": "70f8c389"
"regenerated": "2023-07-14 13:31:57.344296",
"spec_repo_commit": "2bd58701"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-13 21:23:55.005182",
"spec_repo_commit": "70f8c389"
"regenerated": "2023-07-14 13:31:57.357559",
"spec_repo_commit": "2bd58701"
}
}
}
27 changes: 27 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14217,6 +14217,9 @@ components:
properties:
attributes:
$ref: '#/components/schemas/ServiceDefinitionDataAttributes'
id:
description: Service definition id.
type: string
type:
description: Service definition type.
type: string
Expand Down Expand Up @@ -14250,6 +14253,30 @@ components:
last-modified-time:
description: Last modified time of the service definition.
type: string
origin:
description: User defined origin of the service definition.
type: string
origin-detail:
description: User defined origin's detail of the service definition.
type: string
warnings:
description: A list of schema validation warnings.
items:
$ref: '#/components/schemas/ServiceDefinitionMetaWarnings'
type: array
type: object
ServiceDefinitionMetaWarnings:
description: Schema validation warnings.
properties:
instance-location:
description: The warning instance location.
type: string
keyword-location:
description: The warning keyword location.
type: string
message:
description: The warning message.
type: string
type: object
ServiceDefinitionRaw:
description: Service Definition in raw JSON/YAML representation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/** Service definition data. */
@JsonPropertyOrder({
ServiceDefinitionData.JSON_PROPERTY_ATTRIBUTES,
ServiceDefinitionData.JSON_PROPERTY_ID,
ServiceDefinitionData.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
Expand All @@ -28,6 +29,9 @@ public class ServiceDefinitionData {
public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
private ServiceDefinitionDataAttributes attributes;

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

public static final String JSON_PROPERTY_TYPE = "type";
private String type;

Expand All @@ -53,6 +57,27 @@ public void setAttributes(ServiceDefinitionDataAttributes attributes) {
this.attributes = attributes;
}

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

/**
* Service definition id.
*
* @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 ServiceDefinitionData type(String type) {
this.type = type;
return this;
Expand Down Expand Up @@ -131,20 +156,22 @@ public boolean equals(Object o) {
}
ServiceDefinitionData serviceDefinitionData = (ServiceDefinitionData) o;
return Objects.equals(this.attributes, serviceDefinitionData.attributes)
&& Objects.equals(this.id, serviceDefinitionData.id)
&& Objects.equals(this.type, serviceDefinitionData.type)
&& Objects.equals(this.additionalProperties, serviceDefinitionData.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(attributes, type, additionalProperties);
return Objects.hash(attributes, id, type, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServiceDefinitionData {\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

Expand All @@ -21,7 +23,10 @@
ServiceDefinitionMeta.JSON_PROPERTY_GITHUB_HTML_URL,
ServiceDefinitionMeta.JSON_PROPERTY_INGESTED_SCHEMA_VERSION,
ServiceDefinitionMeta.JSON_PROPERTY_INGESTION_SOURCE,
ServiceDefinitionMeta.JSON_PROPERTY_LAST_MODIFIED_TIME
ServiceDefinitionMeta.JSON_PROPERTY_LAST_MODIFIED_TIME,
ServiceDefinitionMeta.JSON_PROPERTY_ORIGIN,
ServiceDefinitionMeta.JSON_PROPERTY_ORIGIN_DETAIL,
ServiceDefinitionMeta.JSON_PROPERTY_WARNINGS
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -39,6 +44,15 @@ public class ServiceDefinitionMeta {
public static final String JSON_PROPERTY_LAST_MODIFIED_TIME = "last-modified-time";
private String lastModifiedTime;

public static final String JSON_PROPERTY_ORIGIN = "origin";
private String origin;

public static final String JSON_PROPERTY_ORIGIN_DETAIL = "origin-detail";
private String originDetail;

public static final String JSON_PROPERTY_WARNINGS = "warnings";
private List<ServiceDefinitionMetaWarnings> warnings = null;

public ServiceDefinitionMeta githubHtmlUrl(String githubHtmlUrl) {
this.githubHtmlUrl = githubHtmlUrl;
return this;
Expand Down Expand Up @@ -123,6 +137,81 @@ public void setLastModifiedTime(String lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}

public ServiceDefinitionMeta origin(String origin) {
this.origin = origin;
return this;
}

/**
* User defined origin of the service definition.
*
* @return origin
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ORIGIN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOrigin() {
return origin;
}

public void setOrigin(String origin) {
this.origin = origin;
}

public ServiceDefinitionMeta originDetail(String originDetail) {
this.originDetail = originDetail;
return this;
}

/**
* User defined origin's detail of the service definition.
*
* @return originDetail
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ORIGIN_DETAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOriginDetail() {
return originDetail;
}

public void setOriginDetail(String originDetail) {
this.originDetail = originDetail;
}

public ServiceDefinitionMeta warnings(List<ServiceDefinitionMetaWarnings> warnings) {
this.warnings = warnings;
for (ServiceDefinitionMetaWarnings item : warnings) {
this.unparsed |= item.unparsed;
}
return this;
}

public ServiceDefinitionMeta addWarningsItem(ServiceDefinitionMetaWarnings warningsItem) {
if (this.warnings == null) {
this.warnings = new ArrayList<>();
}
this.warnings.add(warningsItem);
this.unparsed |= warningsItem.unparsed;
return this;
}

/**
* A list of schema validation warnings.
*
* @return warnings
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_WARNINGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<ServiceDefinitionMetaWarnings> getWarnings() {
return warnings;
}

public void setWarnings(List<ServiceDefinitionMetaWarnings> warnings) {
this.warnings = warnings;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -183,6 +272,9 @@ public boolean equals(Object o) {
&& Objects.equals(this.ingestedSchemaVersion, serviceDefinitionMeta.ingestedSchemaVersion)
&& Objects.equals(this.ingestionSource, serviceDefinitionMeta.ingestionSource)
&& Objects.equals(this.lastModifiedTime, serviceDefinitionMeta.lastModifiedTime)
&& Objects.equals(this.origin, serviceDefinitionMeta.origin)
&& Objects.equals(this.originDetail, serviceDefinitionMeta.originDetail)
&& Objects.equals(this.warnings, serviceDefinitionMeta.warnings)
&& Objects.equals(this.additionalProperties, serviceDefinitionMeta.additionalProperties);
}

Expand All @@ -193,6 +285,9 @@ public int hashCode() {
ingestedSchemaVersion,
ingestionSource,
lastModifiedTime,
origin,
originDetail,
warnings,
additionalProperties);
}

Expand All @@ -206,6 +301,9 @@ public String toString() {
.append("\n");
sb.append(" ingestionSource: ").append(toIndentedString(ingestionSource)).append("\n");
sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n");
sb.append(" origin: ").append(toIndentedString(origin)).append("\n");
sb.append(" originDetail: ").append(toIndentedString(originDetail)).append("\n");
sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading