Skip to content

Commit

Permalink
Add ci-pipeline-fingerprints field in v2.2 (#2232)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 14, 2024
1 parent cfea091 commit 6bf44cf
Show file tree
Hide file tree
Showing 56 changed files with 116 additions and 68 deletions.
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.6",
"regenerated": "2024-03-13 19:22:40.099752",
"spec_repo_commit": "5745e5bb"
"regenerated": "2024-03-14 19:01:42.476125",
"spec_repo_commit": "0197a1bb"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-13 19:22:40.114877",
"spec_repo_commit": "5745e5bb"
"regenerated": "2024-03-14 19:01:42.493623",
"spec_repo_commit": "0197a1bb"
}
}
}
8 changes: 8 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19683,6 +19683,14 @@ components:
feature, which the service is a part of.
example: my-app
type: string
ci-pipeline-fingerprints:
description: A set of CI fingerprints.
example:
- j88xdEy0J5lc
- eZ7LMljCk8vo
items:
type: string
type: array
contacts:
description: A list of contacts related to the services.
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void main(String[] args) {
new ServiceDefinitionsCreateRequest(
new ServiceDefinitionV2Dot2()
.application("my-app")
.ciPipelineFingerprints(Arrays.asList("j88xdEy0J5lc", "eZ7LMljCk8vo"))
.contacts(
Collections.singletonList(
new ServiceDefinitionV2Dot2Contact()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/** Service definition v2.2 for providing service metadata and integrations. */
@JsonPropertyOrder({
ServiceDefinitionV2Dot2.JSON_PROPERTY_APPLICATION,
ServiceDefinitionV2Dot2.JSON_PROPERTY_CI_PIPELINE_FINGERPRINTS,
ServiceDefinitionV2Dot2.JSON_PROPERTY_CONTACTS,
ServiceDefinitionV2Dot2.JSON_PROPERTY_DD_SERVICE,
ServiceDefinitionV2Dot2.JSON_PROPERTY_DESCRIPTION,
Expand All @@ -43,6 +44,9 @@ public class ServiceDefinitionV2Dot2 {
public static final String JSON_PROPERTY_APPLICATION = "application";
private String application;

public static final String JSON_PROPERTY_CI_PIPELINE_FINGERPRINTS = "ci-pipeline-fingerprints";
private List<String> ciPipelineFingerprints = null;

public static final String JSON_PROPERTY_CONTACTS = "contacts";
private List<ServiceDefinitionV2Dot2Contact> contacts = null;

Expand Down Expand Up @@ -116,6 +120,35 @@ public void setApplication(String application) {
this.application = application;
}

public ServiceDefinitionV2Dot2 ciPipelineFingerprints(List<String> ciPipelineFingerprints) {
this.ciPipelineFingerprints = ciPipelineFingerprints;
return this;
}

public ServiceDefinitionV2Dot2 addCiPipelineFingerprintsItem(String ciPipelineFingerprintsItem) {
if (this.ciPipelineFingerprints == null) {
this.ciPipelineFingerprints = new ArrayList<>();
}
this.ciPipelineFingerprints.add(ciPipelineFingerprintsItem);
return this;
}

/**
* A set of CI fingerprints.
*
* @return ciPipelineFingerprints
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CI_PIPELINE_FINGERPRINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getCiPipelineFingerprints() {
return ciPipelineFingerprints;
}

public void setCiPipelineFingerprints(List<String> ciPipelineFingerprints) {
this.ciPipelineFingerprints = ciPipelineFingerprints;
}

public ServiceDefinitionV2Dot2 contacts(List<ServiceDefinitionV2Dot2Contact> contacts) {
this.contacts = contacts;
for (ServiceDefinitionV2Dot2Contact item : contacts) {
Expand Down Expand Up @@ -504,6 +537,8 @@ public boolean equals(Object o) {
}
ServiceDefinitionV2Dot2 serviceDefinitionV2Dot2 = (ServiceDefinitionV2Dot2) o;
return Objects.equals(this.application, serviceDefinitionV2Dot2.application)
&& Objects.equals(
this.ciPipelineFingerprints, serviceDefinitionV2Dot2.ciPipelineFingerprints)
&& Objects.equals(this.contacts, serviceDefinitionV2Dot2.contacts)
&& Objects.equals(this.ddService, serviceDefinitionV2Dot2.ddService)
&& Objects.equals(this.description, serviceDefinitionV2Dot2.description)
Expand All @@ -524,6 +559,7 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(
application,
ciPipelineFingerprints,
contacts,
ddService,
description,
Expand All @@ -545,6 +581,9 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServiceDefinitionV2Dot2 {\n");
sb.append(" application: ").append(toIndentedString(application)).append("\n");
sb.append(" ciPipelineFingerprints: ")
.append(toIndentedString(ciPipelineFingerprints))
.append("\n");
sb.append(" contacts: ").append(toIndentedString(contacts)).append("\n");
sb.append(" ddService: ").append(toIndentedString(ddService)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"timeToLive": {
"unlimited": true
},
"id": "af617072-2860-ba27-e045-b00c8baf0188"
"id": "af617072-2860-ba27-e045-b00c8baf0187"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"timeToLive": {
"unlimited": true
},
"id": "af617072-2860-ba27-e045-b00c8baf0187"
"id": "af617072-2860-ba27-e045-b00c8baf0188"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a94"
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a98"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a90"
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a93"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a91"
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a97"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a8d"
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a8f"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e7c"
"id": "01611a93-5e74-0630-3c51-f707c3b51e80"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e81"
"id": "01611a93-5e74-0630-3c51-f707c3b51e7f"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e7f"
"id": "01611a93-5e74-0630-3c51-f707c3b51e7e"
},
{
"httpRequest": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"timeToLive": {
"unlimited": true
},
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed15d"
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed15e"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "8da2706d-d366-748c-4c51-b12b31462926"
"id": "8da2706d-d366-748c-4c51-b12b31462925"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "8da2706d-d366-748c-4c51-b12b31462925"
"id": "8da2706d-d366-748c-4c51-b12b31462926"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e83"
"id": "01611a93-5e74-0630-3c51-f707c3b51e78"
},
{
"httpRequest": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"timeToLive": {
"unlimited": true
},
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed161"
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed158"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e82"
"id": "01611a93-5e74-0630-3c51-f707c3b51e79"
},
{
"httpRequest": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"timeToLive": {
"unlimited": true
},
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed160"
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed159"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "74945625-c01a-a598-e538-65a53ceb0688"
"id": "74945625-c01a-a598-e538-65a53ceb0687"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "b2404278-8cc9-cba4-e3eb-03a7fdff069a"
"id": "b2404278-8cc9-cba4-e3eb-03a7fdff0697"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "b2404278-8cc9-cba4-e3eb-03a7fdff069b"
"id": "b2404278-8cc9-cba4-e3eb-03a7fdff069d"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "7e2e839d-ac73-21dc-b480-36e366ae09d9"
"id": "7e2e839d-ac73-21dc-b480-36e366ae09da"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a99"
"id": "0a6534d0-42f2-5075-64f8-7ab28f449a8e"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"timeToLive": {
"unlimited": true
},
"id": "ab2c08c1-60c7-9278-3246-d650bb892175"
"id": "ab2c08c1-60c7-9278-3246-d650bb892174"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e7a"
"id": "01611a93-5e74-0630-3c51-f707c3b51e81"
},
{
"httpRequest": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"timeToLive": {
"unlimited": true
},
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed15a"
"id": "33fa4a39-57ef-afdd-007a-0db82f7ed160"
},
{
"httpRequest": {
Expand All @@ -79,7 +79,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e7b"
"id": "01611a93-5e74-0630-3c51-f707c3b51e82"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "b2404278-8cc9-cba4-e3eb-03a7fdff069c"
"id": "b2404278-8cc9-cba4-e3eb-03a7fdff0698"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "7e2e839d-ac73-21dc-b480-36e366ae09da"
"id": "7e2e839d-ac73-21dc-b480-36e366ae09d9"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "74945625-c01a-a598-e538-65a53ceb0685"
"id": "74945625-c01a-a598-e538-65a53ceb0686"
},
{
"httpRequest": {
Expand Down
Loading

0 comments on commit 6bf44cf

Please sign in to comment.