Skip to content

Commit 1e38635

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5a8a968 of spec repo
1 parent 268884a commit 1e38635

File tree

13 files changed

+262
-37
lines changed

13 files changed

+262
-37
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.5.1.dev2",
7-
"regenerated": "2021-11-02 14:05:22.270218",
8-
"spec_repo_commit": "ca6b2d8"
7+
"regenerated": "2021-11-03 12:24:07.911637",
8+
"spec_repo_commit": "5a8a968"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-11-02 14:05:23.700257",
13-
"spec_repo_commit": "ca6b2d8"
12+
"regenerated": "2021-11-03 12:24:09.031262",
13+
"spec_repo_commit": "5a8a968"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9846,22 +9846,34 @@ components:
98469846
description: Description of the CI provider.
98479847
properties:
98489848
pipeline:
9849-
description: Name of the pipeline.
9850-
type: string
9849+
$ref: '#/components/schemas/SyntheticsCIBatchMetadataPipeline'
98519850
provider:
9852-
description: Name of the CI provider.
9853-
type: string
9851+
$ref: '#/components/schemas/SyntheticsCIBatchMetadataProvider'
98549852
type: object
98559853
SyntheticsCIBatchMetadataGit:
98569854
description: Git information.
98579855
properties:
98589856
branch:
98599857
description: The branch name.
98609858
type: string
9861-
commit_sha:
9859+
commitSha:
98629860
description: The commit SHA.
98639861
type: string
98649862
type: object
9863+
SyntheticsCIBatchMetadataPipeline:
9864+
description: Description of the CI pipeline.
9865+
properties:
9866+
url:
9867+
description: URL of the pipeline.
9868+
type: string
9869+
type: object
9870+
SyntheticsCIBatchMetadataProvider:
9871+
description: Description of the CI provider.
9872+
properties:
9873+
name:
9874+
description: Name of the CI provider.
9875+
type: string
9876+
type: object
98659877
SyntheticsCITest:
98669878
description: Test configuration for Synthetics CI
98679879
properties:
@@ -10659,7 +10671,8 @@ components:
1065910671
properties:
1066010672
assertions:
1066110673
default: []
10662-
description: Array of assertions used for the test.
10674+
description: Array of assertions used for the test. Required for single
10675+
API tests.
1066310676
example: []
1066410677
items:
1066510678
$ref: '#/components/schemas/SyntheticsAssertion'

api_docs/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,8 @@ All URIs are relative to *https://api.datadoghq.com*
626626
- [SyntheticsCIBatchMetadata](SyntheticsCIBatchMetadata.md)
627627
- [SyntheticsCIBatchMetadataCI](SyntheticsCIBatchMetadataCI.md)
628628
- [SyntheticsCIBatchMetadataGit](SyntheticsCIBatchMetadataGit.md)
629+
- [SyntheticsCIBatchMetadataPipeline](SyntheticsCIBatchMetadataPipeline.md)
630+
- [SyntheticsCIBatchMetadataProvider](SyntheticsCIBatchMetadataProvider.md)
629631
- [SyntheticsCITest](SyntheticsCITest.md)
630632
- [SyntheticsCITestBody](SyntheticsCITestBody.md)
631633
- [SyntheticsCheckType](SyntheticsCheckType.md)

api_docs/v1/SyntheticsCIBatchMetadataCI.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Description of the CI provider.
44

55
## Properties
66

7-
| Name | Type | Description | Notes |
8-
| ------------ | ---------- | ------------------------ | ---------- |
9-
| **pipeline** | **String** | Name of the pipeline. | [optional] |
10-
| **provider** | **String** | Name of the CI provider. | [optional] |
7+
| Name | Type | Description | Notes |
8+
| ------------ | ----------------------------------------------------------------------------- | ----------- | ---------- |
9+
| **pipeline** | [**SyntheticsCIBatchMetadataPipeline**](SyntheticsCIBatchMetadataPipeline.md) | | [optional] |
10+
| **provider** | [**SyntheticsCIBatchMetadataProvider**](SyntheticsCIBatchMetadataProvider.md) | | [optional] |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# SyntheticsCIBatchMetadataPipeline
4+
5+
Description of the CI pipeline.
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**url** | **String** | URL of the pipeline. | [optional]
12+
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# SyntheticsCIBatchMetadataProvider
4+
5+
Description of the CI provider.
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**name** | **String** | Name of the CI provider. | [optional]
12+
13+
14+

api_docs/v1/SyntheticsTestConfig.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Configuration object for a Synthetic test.
44

55
## Properties
66

7-
| Name | Type | Description | Notes |
8-
| ------------------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------- |
9-
| **assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional] |
10-
| **configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional] |
11-
| **request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional] |
12-
| **variables** | [**List<SyntheticsBrowserVariable>**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional] |
7+
| Name | Type | Description | Notes |
8+
| ------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---------- |
9+
| **assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. Required for single API tests. | [optional] |
10+
| **configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional] |
11+
| **request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional] |
12+
| **variables** | [**List<SyntheticsBrowserVariable>**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional] |

src/main/java/com/datadog/api/v1/client/model/SyntheticsCIBatchMetadataCI.java

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,52 +28,54 @@
2828
public class SyntheticsCIBatchMetadataCI {
2929
@JsonIgnore public boolean unparsed = false;
3030
public static final String JSON_PROPERTY_PIPELINE = "pipeline";
31-
private String pipeline;
31+
private SyntheticsCIBatchMetadataPipeline pipeline;
3232

3333
public static final String JSON_PROPERTY_PROVIDER = "provider";
34-
private String provider;
34+
private SyntheticsCIBatchMetadataProvider provider;
3535

36-
public SyntheticsCIBatchMetadataCI pipeline(String pipeline) {
36+
public SyntheticsCIBatchMetadataCI pipeline(SyntheticsCIBatchMetadataPipeline pipeline) {
3737
this.pipeline = pipeline;
38+
this.unparsed |= pipeline.unparsed;
3839
return this;
3940
}
4041

4142
/**
42-
* Name of the pipeline.
43+
* Get pipeline
4344
*
4445
* @return pipeline
4546
*/
4647
@javax.annotation.Nullable
47-
@ApiModelProperty(value = "Name of the pipeline.")
48+
@ApiModelProperty(value = "")
4849
@JsonProperty(JSON_PROPERTY_PIPELINE)
4950
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
50-
public String getPipeline() {
51+
public SyntheticsCIBatchMetadataPipeline getPipeline() {
5152
return pipeline;
5253
}
5354

54-
public void setPipeline(String pipeline) {
55+
public void setPipeline(SyntheticsCIBatchMetadataPipeline pipeline) {
5556
this.pipeline = pipeline;
5657
}
5758

58-
public SyntheticsCIBatchMetadataCI provider(String provider) {
59+
public SyntheticsCIBatchMetadataCI provider(SyntheticsCIBatchMetadataProvider provider) {
5960
this.provider = provider;
61+
this.unparsed |= provider.unparsed;
6062
return this;
6163
}
6264

6365
/**
64-
* Name of the CI provider.
66+
* Get provider
6567
*
6668
* @return provider
6769
*/
6870
@javax.annotation.Nullable
69-
@ApiModelProperty(value = "Name of the CI provider.")
71+
@ApiModelProperty(value = "")
7072
@JsonProperty(JSON_PROPERTY_PROVIDER)
7173
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
72-
public String getProvider() {
74+
public SyntheticsCIBatchMetadataProvider getProvider() {
7375
return provider;
7476
}
7577

76-
public void setProvider(String provider) {
78+
public void setProvider(SyntheticsCIBatchMetadataProvider provider) {
7779
this.provider = provider;
7880
}
7981

src/main/java/com/datadog/api/v1/client/model/SyntheticsCIBatchMetadataGit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SyntheticsCIBatchMetadataGit {
3030
public static final String JSON_PROPERTY_BRANCH = "branch";
3131
private String branch;
3232

33-
public static final String JSON_PROPERTY_COMMIT_SHA = "commit_sha";
33+
public static final String JSON_PROPERTY_COMMIT_SHA = "commitSha";
3434
private String commitSha;
3535

3636
public SyntheticsCIBatchMetadataGit branch(String branch) {
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*
6+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7+
* https://openapi-generator.tech
8+
* Do not edit the class manually.
9+
*/
10+
11+
package com.datadog.api.v1.client.model;
12+
13+
import com.fasterxml.jackson.annotation.JsonIgnore;
14+
import com.fasterxml.jackson.annotation.JsonInclude;
15+
import com.fasterxml.jackson.annotation.JsonProperty;
16+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
17+
import io.swagger.annotations.ApiModel;
18+
import io.swagger.annotations.ApiModelProperty;
19+
import java.util.Objects;
20+
21+
/** Description of the CI pipeline. */
22+
@ApiModel(description = "Description of the CI pipeline.")
23+
@JsonPropertyOrder({SyntheticsCIBatchMetadataPipeline.JSON_PROPERTY_URL})
24+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
25+
public class SyntheticsCIBatchMetadataPipeline {
26+
@JsonIgnore public boolean unparsed = false;
27+
public static final String JSON_PROPERTY_URL = "url";
28+
private String url;
29+
30+
public SyntheticsCIBatchMetadataPipeline url(String url) {
31+
this.url = url;
32+
return this;
33+
}
34+
35+
/**
36+
* URL of the pipeline.
37+
*
38+
* @return url
39+
*/
40+
@javax.annotation.Nullable
41+
@ApiModelProperty(value = "URL of the pipeline.")
42+
@JsonProperty(JSON_PROPERTY_URL)
43+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
44+
public String getUrl() {
45+
return url;
46+
}
47+
48+
public void setUrl(String url) {
49+
this.url = url;
50+
}
51+
52+
/** Return true if this SyntheticsCIBatchMetadataPipeline object is equal to o. */
53+
@Override
54+
public boolean equals(Object o) {
55+
if (this == o) {
56+
return true;
57+
}
58+
if (o == null || getClass() != o.getClass()) {
59+
return false;
60+
}
61+
SyntheticsCIBatchMetadataPipeline syntheticsCIBatchMetadataPipeline =
62+
(SyntheticsCIBatchMetadataPipeline) o;
63+
return Objects.equals(this.url, syntheticsCIBatchMetadataPipeline.url);
64+
}
65+
66+
@Override
67+
public int hashCode() {
68+
return Objects.hash(url);
69+
}
70+
71+
@Override
72+
public String toString() {
73+
StringBuilder sb = new StringBuilder();
74+
sb.append("class SyntheticsCIBatchMetadataPipeline {\n");
75+
sb.append(" url: ").append(toIndentedString(url)).append("\n");
76+
sb.append("}");
77+
return sb.toString();
78+
}
79+
80+
/**
81+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
82+
*/
83+
private String toIndentedString(Object o) {
84+
if (o == null) {
85+
return "null";
86+
}
87+
return o.toString().replace("\n", "\n ");
88+
}
89+
}

0 commit comments

Comments
 (0)