Skip to content

Commit ff562e3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix Synthetics batch status (#2084)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e1fa352 commit ff562e3

File tree

6 files changed

+26
-27
lines changed

6 files changed

+26
-27
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": "2024-11-04 21:14:35.504551",
8-
"spec_repo_commit": "08338fd1"
7+
"regenerated": "2024-11-05 15:05:36.604829",
8+
"spec_repo_commit": "8d63eae4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-04 21:14:35.522954",
13-
"spec_repo_commit": "08338fd1"
12+
"regenerated": "2024-11-05 15:05:36.623464",
13+
"spec_repo_commit": "8d63eae4"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14418,7 +14418,7 @@ components:
1441814418
$ref: '#/components/schemas/SyntheticsBatchResult'
1441914419
type: array
1442014420
status:
14421-
$ref: '#/components/schemas/SyntheticsStatus'
14421+
$ref: '#/components/schemas/SyntheticsBatchStatus'
1442214422
type: object
1442314423
SyntheticsBatchResult:
1442414424
description: Object with the results of a Synthetic batch.
@@ -14442,7 +14442,7 @@ components:
1444214442
format: double
1444314443
type: number
1444414444
status:
14445-
$ref: '#/components/schemas/SyntheticsStatus'
14445+
$ref: '#/components/schemas/SyntheticsBatchStatus'
1444614446
test_name:
1444714447
description: Name of the test.
1444814448
type: string
@@ -14452,6 +14452,17 @@ components:
1445214452
test_type:
1445314453
$ref: '#/components/schemas/SyntheticsTestDetailsType'
1445414454
type: object
14455+
SyntheticsBatchStatus:
14456+
description: Determines whether the batch has passed, failed, or is in progress.
14457+
enum:
14458+
- passed
14459+
- skipped
14460+
- failed
14461+
type: string
14462+
x-enum-varnames:
14463+
- PASSED
14464+
- SKIPPED
14465+
- FAILED
1445514466
SyntheticsBrowserError:
1445614467
description: Error response object for a browser test.
1445714468
properties:
@@ -16210,18 +16221,6 @@ components:
1621016221
description: Subject Alternative Name associated with the certificate.
1621116222
type: string
1621216223
type: object
16213-
SyntheticsStatus:
16214-
description: Determines whether or not the batch has passed, failed, or is in
16215-
progress.
16216-
enum:
16217-
- passed
16218-
- skipped
16219-
- failed
16220-
type: string
16221-
x-enum-varnames:
16222-
- PASSED
16223-
- skipped
16224-
- failed
1622516224
SyntheticsStep:
1622616225
description: The steps used in a Synthetic browser test.
1622716226
properties:

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ def overrides
588588
"v1.synthetics_batch_details" => "SyntheticsBatchDetails",
589589
"v1.synthetics_batch_details_data" => "SyntheticsBatchDetailsData",
590590
"v1.synthetics_batch_result" => "SyntheticsBatchResult",
591+
"v1.synthetics_batch_status" => "SyntheticsBatchStatus",
591592
"v1.synthetics_browser_error" => "SyntheticsBrowserError",
592593
"v1.synthetics_browser_error_type" => "SyntheticsBrowserErrorType",
593594
"v1.synthetics_browser_test" => "SyntheticsBrowserTest",
@@ -670,7 +671,6 @@ def overrides
670671
"v1.synthetics_ssl_certificate" => "SyntheticsSSLCertificate",
671672
"v1.synthetics_ssl_certificate_issuer" => "SyntheticsSSLCertificateIssuer",
672673
"v1.synthetics_ssl_certificate_subject" => "SyntheticsSSLCertificateSubject",
673-
"v1.synthetics_status" => "SyntheticsStatus",
674674
"v1.synthetics_step" => "SyntheticsStep",
675675
"v1.synthetics_step_detail" => "SyntheticsStepDetail",
676676
"v1.synthetics_step_detail_warning" => "SyntheticsStepDetailWarning",

lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SyntheticsBatchDetailsData
2727
# List of results for the batch.
2828
attr_accessor :results
2929

30-
# Determines whether or not the batch has passed, failed, or is in progress.
30+
# Determines whether the batch has passed, failed, or is in progress.
3131
attr_accessor :status
3232

3333
attr_accessor :additional_properties
@@ -48,7 +48,7 @@ def self.openapi_types
4848
{
4949
:'metadata' => :'SyntheticsCIBatchMetadata',
5050
:'results' => :'Array<SyntheticsBatchResult>',
51-
:'status' => :'SyntheticsStatus'
51+
:'status' => :'SyntheticsBatchStatus'
5252
}
5353
end
5454

lib/datadog_api_client/v1/models/synthetics_batch_result.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SyntheticsBatchResult
3939
# Number of times this result has been retried.
4040
attr_accessor :retries
4141

42-
# Determines whether or not the batch has passed, failed, or is in progress.
42+
# Determines whether the batch has passed, failed, or is in progress.
4343
attr_accessor :status
4444

4545
# Name of the test.
@@ -80,7 +80,7 @@ def self.openapi_types
8080
:'location' => :'String',
8181
:'result_id' => :'String',
8282
:'retries' => :'Float',
83-
:'status' => :'SyntheticsStatus',
83+
:'status' => :'SyntheticsBatchStatus',
8484
:'test_name' => :'String',
8585
:'test_public_id' => :'String',
8686
:'test_type' => :'SyntheticsTestDetailsType'

lib/datadog_api_client/v1/models/synthetics_status.rb renamed to lib/datadog_api_client/v1/models/synthetics_batch_status.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V1
20-
# Determines whether or not the batch has passed, failed, or is in progress.
21-
class SyntheticsStatus
20+
# Determines whether the batch has passed, failed, or is in progress.
21+
class SyntheticsBatchStatus
2222
include BaseEnumModel
2323

2424
PASSED = "passed".freeze
25-
skipped = "skipped".freeze
26-
failed = "failed".freeze
25+
SKIPPED = "skipped".freeze
26+
FAILED = "failed".freeze
2727
end
2828
end

0 commit comments

Comments
 (0)