Skip to content

Commit 8881355

Browse files
api-clients-generation-pipeline[bot]romainbergerci.datadog-api-spec
authored
Update Synthetics CI test metadata (#1140)
* [Synthetics] Update tests for trigger * [Synthetics] Fix tests for CI batch metadata * Regenerate client from commit 5a8a968 of spec repo Co-authored-by: Romain Berger <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e25c568 commit 8881355

18 files changed

+547
-101
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:11.910412",
8-
"spec_repo_commit": "ca6b2d8"
7+
"regenerated": "2021-11-03 12:24:02.094236",
8+
"spec_repo_commit": "5a8a968"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-11-02 14:05:11.932799",
13-
"spec_repo_commit": "ca6b2d8"
12+
"regenerated": "2021-11-03 12:24:02.115806",
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/v1/datadog/.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,8 @@ docs/SyntheticsBrowserVariableType.md
475475
docs/SyntheticsCIBatchMetadata.md
476476
docs/SyntheticsCIBatchMetadataCI.md
477477
docs/SyntheticsCIBatchMetadataGit.md
478+
docs/SyntheticsCIBatchMetadataPipeline.md
479+
docs/SyntheticsCIBatchMetadataProvider.md
478480
docs/SyntheticsCITest.md
479481
docs/SyntheticsCITestBody.md
480482
docs/SyntheticsCheckType.md
@@ -1118,6 +1120,8 @@ model_synthetics_check_type.go
11181120
model_synthetics_ci_batch_metadata.go
11191121
model_synthetics_ci_batch_metadata_ci.go
11201122
model_synthetics_ci_batch_metadata_git.go
1123+
model_synthetics_ci_batch_metadata_pipeline.go
1124+
model_synthetics_ci_batch_metadata_provider.go
11211125
model_synthetics_ci_test_.go
11221126
model_synthetics_ci_test_body.go
11231127
model_synthetics_config_variable.go

api/v1/datadog/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,8 @@ Class | Method | HTTP request | Description
702702
- [SyntheticsCIBatchMetadata](docs/SyntheticsCIBatchMetadata.md)
703703
- [SyntheticsCIBatchMetadataCI](docs/SyntheticsCIBatchMetadataCI.md)
704704
- [SyntheticsCIBatchMetadataGit](docs/SyntheticsCIBatchMetadataGit.md)
705+
- [SyntheticsCIBatchMetadataPipeline](docs/SyntheticsCIBatchMetadataPipeline.md)
706+
- [SyntheticsCIBatchMetadataProvider](docs/SyntheticsCIBatchMetadataProvider.md)
705707
- [SyntheticsCITest](docs/SyntheticsCITest.md)
706708
- [SyntheticsCITestBody](docs/SyntheticsCITestBody.md)
707709
- [SyntheticsCheckType](docs/SyntheticsCheckType.md)

api/v1/datadog/api/openapi.yaml

Lines changed: 58 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22233,11 +22233,13 @@ components:
2223322233
data:
2223422234
metadata:
2223522235
git:
22236-
commit_sha: commit_sha
22236+
commitSha: commitSha
2223722237
branch: branch
2223822238
ci:
22239-
pipeline: pipeline
22240-
provider: provider
22239+
pipeline:
22240+
url: url
22241+
provider:
22242+
name: name
2224122243
results:
2224222244
- duration: 0.8008281904610115
2224322245
retries: 6.027456183070403
@@ -22262,11 +22264,13 @@ components:
2226222264
example:
2226322265
metadata:
2226422266
git:
22265-
commit_sha: commit_sha
22267+
commitSha: commitSha
2226622268
branch: branch
2226722269
ci:
22268-
pipeline: pipeline
22269-
provider: provider
22270+
pipeline:
22271+
url: url
22272+
provider:
22273+
name: name
2227022274
results:
2227122275
- duration: 0.8008281904610115
2227222276
retries: 6.027456183070403
@@ -22998,11 +23002,13 @@ components:
2299823002
description: Metadata for the Synthetics tests run.
2299923003
example:
2300023004
git:
23001-
commit_sha: commit_sha
23005+
commitSha: commitSha
2300223006
branch: branch
2300323007
ci:
23004-
pipeline: pipeline
23005-
provider: provider
23008+
pipeline:
23009+
url: url
23010+
provider:
23011+
name: name
2300623012
properties:
2300723013
ci:
2300823014
$ref: '#/components/schemas/SyntheticsCIBatchMetadataCI'
@@ -23012,29 +23018,47 @@ components:
2301223018
SyntheticsCIBatchMetadataCI:
2301323019
description: Description of the CI provider.
2301423020
example:
23015-
pipeline: pipeline
23016-
provider: provider
23021+
pipeline:
23022+
url: url
23023+
provider:
23024+
name: name
2301723025
properties:
2301823026
pipeline:
23019-
description: Name of the pipeline.
23020-
type: string
23027+
$ref: '#/components/schemas/SyntheticsCIBatchMetadataPipeline'
2302123028
provider:
23022-
description: Name of the CI provider.
23023-
type: string
23029+
$ref: '#/components/schemas/SyntheticsCIBatchMetadataProvider'
2302423030
type: object
2302523031
SyntheticsCIBatchMetadataGit:
2302623032
description: Git information.
2302723033
example:
23028-
commit_sha: commit_sha
23034+
commitSha: commitSha
2302923035
branch: branch
2303023036
properties:
2303123037
branch:
2303223038
description: The branch name.
2303323039
type: string
23034-
commit_sha:
23040+
commitSha:
2303523041
description: The commit SHA.
2303623042
type: string
2303723043
type: object
23044+
SyntheticsCIBatchMetadataPipeline:
23045+
description: Description of the CI pipeline.
23046+
example:
23047+
url: url
23048+
properties:
23049+
url:
23050+
description: URL of the pipeline.
23051+
type: string
23052+
type: object
23053+
SyntheticsCIBatchMetadataProvider:
23054+
description: Description of the CI provider.
23055+
example:
23056+
name: name
23057+
properties:
23058+
name:
23059+
description: Name of the CI provider.
23060+
type: string
23061+
type: object
2303823062
SyntheticsCITest:
2303923063
description: Test configuration for Synthetics CI
2304023064
example:
@@ -23046,11 +23070,13 @@ components:
2304623070
- laptop_large
2304723071
metadata:
2304823072
git:
23049-
commit_sha: commit_sha
23073+
commitSha: commitSha
2305023074
branch: branch
2305123075
ci:
23052-
pipeline: pipeline
23053-
provider: provider
23076+
pipeline:
23077+
url: url
23078+
provider:
23079+
name: name
2305423080
variables:
2305523081
key: variables
2305623082
basicAuth:
@@ -23136,11 +23162,13 @@ components:
2313623162
- laptop_large
2313723163
metadata:
2313823164
git:
23139-
commit_sha: commit_sha
23165+
commitSha: commitSha
2314023166
branch: branch
2314123167
ci:
23142-
pipeline: pipeline
23143-
provider: provider
23168+
pipeline:
23169+
url: url
23170+
provider:
23171+
name: name
2314423172
variables:
2314523173
key: variables
2314623174
basicAuth:
@@ -23166,11 +23194,13 @@ components:
2316623194
- laptop_large
2316723195
metadata:
2316823196
git:
23169-
commit_sha: commit_sha
23197+
commitSha: commitSha
2317023198
branch: branch
2317123199
ci:
23172-
pipeline: pipeline
23173-
provider: provider
23200+
pipeline:
23201+
url: url
23202+
provider:
23203+
name: name
2317423204
variables:
2317523205
key: variables
2317623206
basicAuth:
@@ -24350,7 +24380,8 @@ components:
2435024380
properties:
2435124381
assertions:
2435224382
default: []
24353-
description: Array of assertions used for the test.
24383+
description: Array of assertions used for the test. Required for single
24384+
API tests.
2435424385
example: []
2435524386
items:
2435624387
$ref: '#/components/schemas/SyntheticsAssertion'

api/v1/datadog/docs/SyntheticsCIBatchMetadataCI.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
---- | ---- | ----------- | ------
7-
**Pipeline** | Pointer to **string** | Name of the pipeline. | [optional]
8-
**Provider** | Pointer to **string** | Name of the CI provider. | [optional]
7+
**Pipeline** | Pointer to [**SyntheticsCIBatchMetadataPipeline**](SyntheticsCIBatchMetadataPipeline.md) | | [optional]
8+
**Provider** | Pointer to [**SyntheticsCIBatchMetadataProvider**](SyntheticsCIBatchMetadataProvider.md) | | [optional]
99

1010
## Methods
1111

@@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set.
2828

2929
### GetPipeline
3030

31-
`func (o *SyntheticsCIBatchMetadataCI) GetPipeline() string`
31+
`func (o *SyntheticsCIBatchMetadataCI) GetPipeline() SyntheticsCIBatchMetadataPipeline`
3232

3333
GetPipeline returns the Pipeline field if non-nil, zero value otherwise.
3434

3535
### GetPipelineOk
3636

37-
`func (o *SyntheticsCIBatchMetadataCI) GetPipelineOk() (*string, bool)`
37+
`func (o *SyntheticsCIBatchMetadataCI) GetPipelineOk() (*SyntheticsCIBatchMetadataPipeline, bool)`
3838

3939
GetPipelineOk returns a tuple with the Pipeline field if it's non-nil, zero value otherwise
4040
and a boolean to check if the value has been set.
4141

4242
### SetPipeline
4343

44-
`func (o *SyntheticsCIBatchMetadataCI) SetPipeline(v string)`
44+
`func (o *SyntheticsCIBatchMetadataCI) SetPipeline(v SyntheticsCIBatchMetadataPipeline)`
4545

4646
SetPipeline sets Pipeline field to given value.
4747

@@ -53,20 +53,20 @@ HasPipeline returns a boolean if a field has been set.
5353

5454
### GetProvider
5555

56-
`func (o *SyntheticsCIBatchMetadataCI) GetProvider() string`
56+
`func (o *SyntheticsCIBatchMetadataCI) GetProvider() SyntheticsCIBatchMetadataProvider`
5757

5858
GetProvider returns the Provider field if non-nil, zero value otherwise.
5959

6060
### GetProviderOk
6161

62-
`func (o *SyntheticsCIBatchMetadataCI) GetProviderOk() (*string, bool)`
62+
`func (o *SyntheticsCIBatchMetadataCI) GetProviderOk() (*SyntheticsCIBatchMetadataProvider, bool)`
6363

6464
GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise
6565
and a boolean to check if the value has been set.
6666

6767
### SetProvider
6868

69-
`func (o *SyntheticsCIBatchMetadataCI) SetProvider(v string)`
69+
`func (o *SyntheticsCIBatchMetadataCI) SetProvider(v SyntheticsCIBatchMetadataProvider)`
7070

7171
SetProvider sets Provider field to given value.
7272

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SyntheticsCIBatchMetadataPipeline
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
---- | ---- | ----------- | ------
7+
**Url** | Pointer to **string** | URL of the pipeline. | [optional]
8+
9+
## Methods
10+
11+
### NewSyntheticsCIBatchMetadataPipeline
12+
13+
`func NewSyntheticsCIBatchMetadataPipeline() *SyntheticsCIBatchMetadataPipeline`
14+
15+
NewSyntheticsCIBatchMetadataPipeline instantiates a new SyntheticsCIBatchMetadataPipeline object.
16+
This constructor will assign default values to properties that have it defined,
17+
and makes sure properties required by API are set, but the set of arguments
18+
will change when the set of required properties is changed.
19+
20+
### NewSyntheticsCIBatchMetadataPipelineWithDefaults
21+
22+
`func NewSyntheticsCIBatchMetadataPipelineWithDefaults() *SyntheticsCIBatchMetadataPipeline`
23+
24+
NewSyntheticsCIBatchMetadataPipelineWithDefaults instantiates a new SyntheticsCIBatchMetadataPipeline object.
25+
This constructor will only assign default values to properties that have it defined,
26+
but it doesn't guarantee that properties required by API are set.
27+
28+
### GetUrl
29+
30+
`func (o *SyntheticsCIBatchMetadataPipeline) GetUrl() string`
31+
32+
GetUrl returns the Url field if non-nil, zero value otherwise.
33+
34+
### GetUrlOk
35+
36+
`func (o *SyntheticsCIBatchMetadataPipeline) GetUrlOk() (*string, bool)`
37+
38+
GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise
39+
and a boolean to check if the value has been set.
40+
41+
### SetUrl
42+
43+
`func (o *SyntheticsCIBatchMetadataPipeline) SetUrl(v string)`
44+
45+
SetUrl sets Url field to given value.
46+
47+
### HasUrl
48+
49+
`func (o *SyntheticsCIBatchMetadataPipeline) HasUrl() bool`
50+
51+
HasUrl returns a boolean if a field has been set.
52+
53+
54+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
55+
56+

0 commit comments

Comments
 (0)