Skip to content

Commit 2bc8285

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a816ff91 of spec repo
1 parent e1cb3b2 commit 2bc8285

File tree

47 files changed

+116
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+116
-119
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-09-26 14:16:42.583794",
8-
"spec_repo_commit": "0270a00c"
7+
"regenerated": "2023-09-27 09:44:12.618974",
8+
"spec_repo_commit": "a816ff91"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-09-26 14:16:42.597935",
13-
"spec_repo_commit": "0270a00c"
12+
"regenerated": "2023-09-27 09:44:12.633565",
13+
"spec_repo_commit": "a816ff91"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,6 @@ components:
17761776
- end
17771777
- status
17781778
- url
1779-
- git
17801779
type: object
17811780
CIAppPipelineEventJobLevel:
17821781
default: job
@@ -1929,7 +1928,6 @@ components:
19291928
- end
19301929
- status
19311930
- partial_retry
1932-
- git
19331931
type: object
19341932
CIAppPipelineEventPipelineLevel:
19351933
default: pipeline
@@ -2045,7 +2043,6 @@ components:
20452043
- start
20462044
- end
20472045
- status
2048-
- git
20492046
type: object
20502047
CIAppPipelineEventStageLevel:
20512048
default: stage
@@ -2145,7 +2142,6 @@ components:
21452142
- start
21462143
- end
21472144
- status
2148-
- git
21492145
type: object
21502146
CIAppPipelineEventStepLevel:
21512147
default: step

examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import com.datadog.api.client.v2.model.CIAppCreatePipelineEventRequestAttributesResource;
88
import com.datadog.api.client.v2.model.CIAppCreatePipelineEventRequestData;
99
import com.datadog.api.client.v2.model.CIAppCreatePipelineEventRequestDataType;
10-
import com.datadog.api.client.v2.model.CIAppGitInfo;
1110
import com.datadog.api.client.v2.model.CIAppPipelineEventJob;
1211
import com.datadog.api.client.v2.model.CIAppPipelineEventJobLevel;
1312
import com.datadog.api.client.v2.model.CIAppPipelineEventJobStatus;
@@ -36,13 +35,7 @@ public static void main(String[] args) {
3635
.id("cf9456de-8b9e-4c27-aa79-27b1e78c1a33")
3736
.pipelineUniqueId("3eacb6f3-ff04-4e10-8a9c-46e6d054024a")
3837
.pipelineName("Deploy to AWS")
39-
.url("https://my-ci-provider.example/jobs/my-jobs/run/1")
40-
.git(
41-
new CIAppGitInfo()
42-
.repositoryUrl(
43-
"https://github.com/DataDog/datadog-agent")
44-
.sha("7f263865994b76066c4612fd1965215e7dcb4cd2")
45-
.authorEmail("john.doe@email.com")))))
38+
.url("https://my-ci-provider.example/jobs/my-jobs/run/1"))))
4639
.type(CIAppCreatePipelineEventRequestDataType.CIPIPELINE_RESOURCE_REQUEST));
4740

4841
try {

src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventJob.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class CIAppPipelineEventJob {
5757
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();
5858

5959
public static final String JSON_PROPERTY_GIT = "git";
60-
private CIAppGitInfo git;
60+
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();
6161

6262
public static final String JSON_PROPERTY_ID = "id";
6363
private String id;
@@ -110,7 +110,6 @@ public CIAppPipelineEventJob() {}
110110
@JsonCreator
111111
public CIAppPipelineEventJob(
112112
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
113-
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
114113
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
115114
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL) CIAppPipelineEventJobLevel level,
116115
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
@@ -122,10 +121,6 @@ public CIAppPipelineEventJob(
122121
CIAppPipelineEventJobStatus status,
123122
@JsonProperty(required = true, value = JSON_PROPERTY_URL) String url) {
124123
this.end = end;
125-
this.git = git;
126-
if (git != null) {
127-
this.unparsed |= git.unparsed;
128-
}
129124
this.id = id;
130125
this.level = level;
131126
this.unparsed |= !level.isValid();
@@ -233,10 +228,7 @@ public void setError(CIAppCIError error) {
233228
}
234229

235230
public CIAppPipelineEventJob git(CIAppGitInfo git) {
236-
this.git = git;
237-
if (git != null) {
238-
this.unparsed |= git.unparsed;
239-
}
231+
this.git = JsonNullable.<CIAppGitInfo>of(git);
240232
return this;
241233
}
242234

@@ -248,16 +240,26 @@ public CIAppPipelineEventJob git(CIAppGitInfo git) {
248240
* @return git
249241
*/
250242
@jakarta.annotation.Nullable
251-
@JsonProperty(JSON_PROPERTY_GIT)
252-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
243+
@JsonIgnore
253244
public CIAppGitInfo getGit() {
245+
return git.orElse(null);
246+
}
247+
248+
@JsonProperty(JSON_PROPERTY_GIT)
249+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
250+
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
254251
return git;
255252
}
256253

257-
public void setGit(CIAppGitInfo git) {
254+
@JsonProperty(JSON_PROPERTY_GIT)
255+
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
258256
this.git = git;
259257
}
260258

259+
public void setGit(CIAppGitInfo git) {
260+
this.git = JsonNullable.<CIAppGitInfo>of(git);
261+
}
262+
261263
public CIAppPipelineEventJob id(String id) {
262264
this.id = id;
263265
return this;

src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventPipeline.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class CIAppPipelineEventPipeline {
5555
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();
5656

5757
public static final String JSON_PROPERTY_GIT = "git";
58-
private CIAppGitInfo git;
58+
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();
5959

6060
public static final String JSON_PROPERTY_IS_MANUAL = "is_manual";
6161
private JsonNullable<Boolean> isManual = JsonNullable.<Boolean>undefined();
@@ -116,7 +116,6 @@ public CIAppPipelineEventPipeline() {}
116116
@JsonCreator
117117
public CIAppPipelineEventPipeline(
118118
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
119-
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
120119
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL)
121120
CIAppPipelineEventPipelineLevel level,
122121
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
@@ -127,10 +126,6 @@ public CIAppPipelineEventPipeline(
127126
@JsonProperty(required = true, value = JSON_PROPERTY_UNIQUE_ID) String uniqueId,
128127
@JsonProperty(required = true, value = JSON_PROPERTY_URL) String url) {
129128
this.end = end;
130-
this.git = git;
131-
if (git != null) {
132-
this.unparsed |= git.unparsed;
133-
}
134129
this.level = level;
135130
this.unparsed |= !level.isValid();
136131
this.name = name;
@@ -195,10 +190,7 @@ public void setError(CIAppCIError error) {
195190
}
196191

197192
public CIAppPipelineEventPipeline git(CIAppGitInfo git) {
198-
this.git = git;
199-
if (git != null) {
200-
this.unparsed |= git.unparsed;
201-
}
193+
this.git = JsonNullable.<CIAppGitInfo>of(git);
202194
return this;
203195
}
204196

@@ -210,16 +202,26 @@ public CIAppPipelineEventPipeline git(CIAppGitInfo git) {
210202
* @return git
211203
*/
212204
@jakarta.annotation.Nullable
213-
@JsonProperty(JSON_PROPERTY_GIT)
214-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
205+
@JsonIgnore
215206
public CIAppGitInfo getGit() {
207+
return git.orElse(null);
208+
}
209+
210+
@JsonProperty(JSON_PROPERTY_GIT)
211+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
212+
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
216213
return git;
217214
}
218215

219-
public void setGit(CIAppGitInfo git) {
216+
@JsonProperty(JSON_PROPERTY_GIT)
217+
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
220218
this.git = git;
221219
}
222220

221+
public void setGit(CIAppGitInfo git) {
222+
this.git = JsonNullable.<CIAppGitInfo>of(git);
223+
}
224+
223225
public CIAppPipelineEventPipeline isManual(Boolean isManual) {
224226
this.isManual = JsonNullable.<Boolean>of(isManual);
225227
return this;

src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStage.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class CIAppPipelineEventStage {
5454
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();
5555

5656
public static final String JSON_PROPERTY_GIT = "git";
57-
private CIAppGitInfo git;
57+
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();
5858

5959
public static final String JSON_PROPERTY_ID = "id";
6060
private String id;
@@ -98,7 +98,6 @@ public CIAppPipelineEventStage() {}
9898
@JsonCreator
9999
public CIAppPipelineEventStage(
100100
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
101-
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
102101
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
103102
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL)
104103
CIAppPipelineEventStageLevel level,
@@ -110,10 +109,6 @@ public CIAppPipelineEventStage(
110109
@JsonProperty(required = true, value = JSON_PROPERTY_STATUS)
111110
CIAppPipelineEventStageStatus status) {
112111
this.end = end;
113-
this.git = git;
114-
if (git != null) {
115-
this.unparsed |= git.unparsed;
116-
}
117112
this.id = id;
118113
this.level = level;
119114
this.unparsed |= !level.isValid();
@@ -220,10 +215,7 @@ public void setError(CIAppCIError error) {
220215
}
221216

222217
public CIAppPipelineEventStage git(CIAppGitInfo git) {
223-
this.git = git;
224-
if (git != null) {
225-
this.unparsed |= git.unparsed;
226-
}
218+
this.git = JsonNullable.<CIAppGitInfo>of(git);
227219
return this;
228220
}
229221

@@ -235,16 +227,26 @@ public CIAppPipelineEventStage git(CIAppGitInfo git) {
235227
* @return git
236228
*/
237229
@jakarta.annotation.Nullable
238-
@JsonProperty(JSON_PROPERTY_GIT)
239-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
230+
@JsonIgnore
240231
public CIAppGitInfo getGit() {
232+
return git.orElse(null);
233+
}
234+
235+
@JsonProperty(JSON_PROPERTY_GIT)
236+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
237+
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
241238
return git;
242239
}
243240

244-
public void setGit(CIAppGitInfo git) {
241+
@JsonProperty(JSON_PROPERTY_GIT)
242+
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
245243
this.git = git;
246244
}
247245

246+
public void setGit(CIAppGitInfo git) {
247+
this.git = JsonNullable.<CIAppGitInfo>of(git);
248+
}
249+
248250
public CIAppPipelineEventStage id(String id) {
249251
this.id = id;
250252
return this;

src/main/java/com/datadog/api/client/v2/model/CIAppPipelineEventStep.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class CIAppPipelineEventStep {
5454
private JsonNullable<CIAppCIError> error = JsonNullable.<CIAppCIError>undefined();
5555

5656
public static final String JSON_PROPERTY_GIT = "git";
57-
private CIAppGitInfo git;
57+
private JsonNullable<CIAppGitInfo> git = JsonNullable.<CIAppGitInfo>undefined();
5858

5959
public static final String JSON_PROPERTY_ID = "id";
6060
private String id;
@@ -110,7 +110,6 @@ public CIAppPipelineEventStep() {}
110110
@JsonCreator
111111
public CIAppPipelineEventStep(
112112
@JsonProperty(required = true, value = JSON_PROPERTY_END) OffsetDateTime end,
113-
@JsonProperty(required = true, value = JSON_PROPERTY_GIT) CIAppGitInfo git,
114113
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
115114
@JsonProperty(required = true, value = JSON_PROPERTY_LEVEL) CIAppPipelineEventStepLevel level,
116115
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
@@ -121,10 +120,6 @@ public CIAppPipelineEventStep(
121120
@JsonProperty(required = true, value = JSON_PROPERTY_STATUS)
122121
CIAppPipelineEventStepStatus status) {
123122
this.end = end;
124-
this.git = git;
125-
if (git != null) {
126-
this.unparsed |= git.unparsed;
127-
}
128123
this.id = id;
129124
this.level = level;
130125
this.unparsed |= !level.isValid();
@@ -188,10 +183,7 @@ public void setError(CIAppCIError error) {
188183
}
189184

190185
public CIAppPipelineEventStep git(CIAppGitInfo git) {
191-
this.git = git;
192-
if (git != null) {
193-
this.unparsed |= git.unparsed;
194-
}
186+
this.git = JsonNullable.<CIAppGitInfo>of(git);
195187
return this;
196188
}
197189

@@ -203,16 +195,26 @@ public CIAppPipelineEventStep git(CIAppGitInfo git) {
203195
* @return git
204196
*/
205197
@jakarta.annotation.Nullable
206-
@JsonProperty(JSON_PROPERTY_GIT)
207-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
198+
@JsonIgnore
208199
public CIAppGitInfo getGit() {
200+
return git.orElse(null);
201+
}
202+
203+
@JsonProperty(JSON_PROPERTY_GIT)
204+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205+
public JsonNullable<CIAppGitInfo> getGit_JsonNullable() {
209206
return git;
210207
}
211208

212-
public void setGit(CIAppGitInfo git) {
209+
@JsonProperty(JSON_PROPERTY_GIT)
210+
public void setGit_JsonNullable(JsonNullable<CIAppGitInfo> git) {
213211
this.git = git;
214212
}
215213

214+
public void setGit(CIAppGitInfo git) {
215+
this.git = JsonNullable.<CIAppGitInfo>of(git);
216+
}
217+
216218
public CIAppPipelineEventStep id(String id) {
217219
this.id = id;
218220
return this;

src/test/resources/cassettes/features/v1/Create_a_user_returns_User_created_response_test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"timeToLive": {
5454
"unlimited": true
5555
},
56-
"id": "af617072-2860-ba27-e045-b00c8baf0187"
56+
"id": "af617072-2860-ba27-e045-b00c8baf0188"
5757
}
5858
]

src/test/resources/cassettes/features/v1/Create_a_user_returns_null_access_role.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"timeToLive": {
5454
"unlimited": true
5555
},
56-
"id": "af617072-2860-ba27-e045-b00c8baf0188"
56+
"id": "af617072-2860-ba27-e045-b00c8baf0187"
5757
}
5858
]

src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"timeToLive": {
2424
"unlimited": true
2525
},
26-
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
26+
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
2727
}
2828
]

0 commit comments

Comments
 (0)