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.6",
"regenerated": "2023-09-27 21:01:05.654433",
"spec_repo_commit": "e497e690"
"regenerated": "2023-09-28 06:45:55.666971",
"spec_repo_commit": "a10ce226"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-09-27 21:01:05.673896",
"spec_repo_commit": "e497e690"
"regenerated": "2023-09-28 06:45:55.682395",
"spec_repo_commit": "a10ce226"
}
}
}
4 changes: 0 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,6 @@ components:
- end
- status
- url
- git
type: object
CIAppPipelineEventJobLevel:
default: job
Expand Down Expand Up @@ -1929,7 +1928,6 @@ components:
- end
- status
- partial_retry
- git
type: object
CIAppPipelineEventPipelineLevel:
default: pipeline
Expand Down Expand Up @@ -2045,7 +2043,6 @@ components:
- start
- end
- status
- git
type: object
CIAppPipelineEventStageLevel:
default: stage
Expand Down Expand Up @@ -2145,7 +2142,6 @@ components:
- start
- end
- status
- git
type: object
CIAppPipelineEventStepLevel:
default: step
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.datadog.api.client.v2.model.CIAppCreatePipelineEventRequestAttributesResource;
import com.datadog.api.client.v2.model.CIAppCreatePipelineEventRequestData;
import com.datadog.api.client.v2.model.CIAppCreatePipelineEventRequestDataType;
import com.datadog.api.client.v2.model.CIAppGitInfo;
import com.datadog.api.client.v2.model.CIAppPipelineEventJob;
import com.datadog.api.client.v2.model.CIAppPipelineEventJobLevel;
import com.datadog.api.client.v2.model.CIAppPipelineEventJobStatus;
Expand Down Expand Up @@ -36,13 +35,7 @@ public static void main(String[] args) {
.id("cf9456de-8b9e-4c27-aa79-27b1e78c1a33")
.pipelineUniqueId("3eacb6f3-ff04-4e10-8a9c-46e6d054024a")
.pipelineName("Deploy to AWS")
.url("https://my-ci-provider.example/jobs/my-jobs/run/1")
.git(
new CIAppGitInfo()
.repositoryUrl(
"https://github.com/DataDog/datadog-agent")
.sha("7f263865994b76066c4612fd1965215e7dcb4cd2")
.authorEmail("john.doe@email.com")))))
.url("https://my-ci-provider.example/jobs/my-jobs/run/1"))))
.type(CIAppCreatePipelineEventRequestDataType.CIPIPELINE_RESOURCE_REQUEST));

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class CIAppPipelineEventJob {
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();

public static final String JSON_PROPERTY_GIT = "git";
private CIAppGitInfo git;
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();

public static final String JSON_PROPERTY_ID = "id";
private String id;
Expand Down Expand Up @@ -110,7 +110,6 @@ public CIAppPipelineEventJob() {}
@JsonCreator
public CIAppPipelineEventJob(
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL) CIAppPipelineEventJobLevel level,
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
Expand All @@ -122,10 +121,6 @@ public CIAppPipelineEventJob(
CIAppPipelineEventJobStatus status,
@JsonProperty(required = true, value = JSON_PROPERTY_URL) String url) {
this.end = end;
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.id = id;
this.level = level;
this.unparsed |= !level.isValid();
Expand Down Expand Up @@ -233,10 +228,7 @@ public void setError(CIAppCIError error) {
}

public CIAppPipelineEventJob git(CIAppGitInfo git) {
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.git = JsonNullable.<CIAppGitInfo>of(git);
return this;
}

Expand All @@ -248,16 +240,26 @@ public CIAppPipelineEventJob git(CIAppGitInfo git) {
* @return git
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonIgnore
public CIAppGitInfo getGit() {
return git.orElse(null);
}

@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
return git;
}

public void setGit(CIAppGitInfo git) {
@JsonProperty(JSON_PROPERTY_GIT)
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
this.git = git;
}

public void setGit(CIAppGitInfo git) {
this.git = JsonNullable.<CIAppGitInfo>of(git);
}

public CIAppPipelineEventJob id(String id) {
this.id = id;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class CIAppPipelineEventPipeline {
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();

public static final String JSON_PROPERTY_GIT = "git";
private CIAppGitInfo git;
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();

public static final String JSON_PROPERTY_IS_MANUAL = "is_manual";
private JsonNullable<Boolean> isManual = JsonNullable.<Boolean>undefined();
Expand Down Expand Up @@ -116,7 +116,6 @@ public CIAppPipelineEventPipeline() {}
@JsonCreator
public CIAppPipelineEventPipeline(
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL)
CIAppPipelineEventPipelineLevel level,
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
Expand All @@ -127,10 +126,6 @@ public CIAppPipelineEventPipeline(
@JsonProperty(required = true, value = JSON_PROPERTY_UNIQUE_ID) String uniqueId,
@JsonProperty(required = true, value = JSON_PROPERTY_URL) String url) {
this.end = end;
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.level = level;
this.unparsed |= !level.isValid();
this.name = name;
Expand Down Expand Up @@ -195,10 +190,7 @@ public void setError(CIAppCIError error) {
}

public CIAppPipelineEventPipeline git(CIAppGitInfo git) {
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.git = JsonNullable.<CIAppGitInfo>of(git);
return this;
}

Expand All @@ -210,16 +202,26 @@ public CIAppPipelineEventPipeline git(CIAppGitInfo git) {
* @return git
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonIgnore
public CIAppGitInfo getGit() {
return git.orElse(null);
}

@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
return git;
}

public void setGit(CIAppGitInfo git) {
@JsonProperty(JSON_PROPERTY_GIT)
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
this.git = git;
}

public void setGit(CIAppGitInfo git) {
this.git = JsonNullable.<CIAppGitInfo>of(git);
}

public CIAppPipelineEventPipeline isManual(Boolean isManual) {
this.isManual = JsonNullable.<Boolean>of(isManual);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class CIAppPipelineEventStage {
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();

public static final String JSON_PROPERTY_GIT = "git";
private CIAppGitInfo git;
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();

public static final String JSON_PROPERTY_ID = "id";
private String id;
Expand Down Expand Up @@ -98,7 +98,6 @@ public CIAppPipelineEventStage() {}
@JsonCreator
public CIAppPipelineEventStage(
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL)
CIAppPipelineEventStageLevel level,
Expand All @@ -110,10 +109,6 @@ public CIAppPipelineEventStage(
@JsonProperty(required = true, value = JSON_PROPERTY_STATUS)
CIAppPipelineEventStageStatus status) {
this.end = end;
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.id = id;
this.level = level;
this.unparsed |= !level.isValid();
Expand Down Expand Up @@ -220,10 +215,7 @@ public void setError(CIAppCIError error) {
}

public CIAppPipelineEventStage git(CIAppGitInfo git) {
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.git = JsonNullable.<CIAppGitInfo>of(git);
return this;
}

Expand All @@ -235,16 +227,26 @@ public CIAppPipelineEventStage git(CIAppGitInfo git) {
* @return git
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonIgnore
public CIAppGitInfo getGit() {
return git.orElse(null);
}

@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
return git;
}

public void setGit(CIAppGitInfo git) {
@JsonProperty(JSON_PROPERTY_GIT)
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
this.git = git;
}

public void setGit(CIAppGitInfo git) {
this.git = JsonNullable.<CIAppGitInfo>of(git);
}

public CIAppPipelineEventStage id(String id) {
this.id = id;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class CIAppPipelineEventStep {
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();

public static final String JSON_PROPERTY_GIT = "git";
private CIAppGitInfo git;
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();

public static final String JSON_PROPERTY_ID = "id";
private String id;
Expand Down Expand Up @@ -110,7 +110,6 @@ public CIAppPipelineEventStep() {}
@JsonCreator
public CIAppPipelineEventStep(
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL) CIAppPipelineEventStepLevel level,
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
Expand All @@ -121,10 +120,6 @@ public CIAppPipelineEventStep(
@JsonProperty(required = true, value = JSON_PROPERTY_STATUS)
CIAppPipelineEventStepStatus status) {
this.end = end;
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.id = id;
this.level = level;
this.unparsed |= !level.isValid();
Expand Down Expand Up @@ -188,10 +183,7 @@ public void setError(CIAppCIError error) {
}

public CIAppPipelineEventStep git(CIAppGitInfo git) {
this.git = git;
if (git != null) {
this.unparsed |= git.unparsed;
}
this.git = JsonNullable.<CIAppGitInfo>of(git);
return this;
}

Expand All @@ -203,16 +195,26 @@ public CIAppPipelineEventStep git(CIAppGitInfo git) {
* @return git
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonIgnore
public CIAppGitInfo getGit() {
return git.orElse(null);
}

@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
return git;
}

public void setGit(CIAppGitInfo git) {
@JsonProperty(JSON_PROPERTY_GIT)
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
this.git = git;
}

public void setGit(CIAppGitInfo git) {
this.git = JsonNullable.<CIAppGitInfo>of(git);
}

public CIAppPipelineEventStep id(String id) {
this.id = id;
return this;
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-b00c8baf0187"
"id": "af617072-2860-ba27-e045-b00c8baf0188"
}
]
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 @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"timeToLive": {
"unlimited": true
},
"id": "01611a93-5e74-0630-3c51-f707c3b51e7b"
"id": "01611a93-5e74-0630-3c51-f707c3b51e7f"
},
{
"httpRequest": {
Expand Down
Loading