Skip to content

Commit 092b0ba

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix Synthetics batch status (#2245)
* Regenerate client from commit 8d63eae4 of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2aabc14 commit 092b0ba

File tree

7 files changed

+46
-47
lines changed

7 files changed

+46
-47
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.996163",
8-
"spec_repo_commit": "08338fd1"
7+
"regenerated": "2024-11-05 15:05:42.147981",
8+
"spec_repo_commit": "8d63eae4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-04 21:14:36.014063",
13-
"spec_repo_commit": "08338fd1"
12+
"regenerated": "2024-11-05 15:05:42.166088",
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:

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4141,6 +4141,13 @@ datadog\_api\_client.v1.model.synthetics\_batch\_result module
41414141
:members:
41424142
:show-inheritance:
41434143

4144+
datadog\_api\_client.v1.model.synthetics\_batch\_status module
4145+
--------------------------------------------------------------
4146+
4147+
.. automodule:: datadog_api_client.v1.model.synthetics_batch_status
4148+
:members:
4149+
:show-inheritance:
4150+
41444151
datadog\_api\_client.v1.model.synthetics\_browser\_error module
41454152
---------------------------------------------------------------
41464153

@@ -4729,13 +4736,6 @@ datadog\_api\_client.v1.model.synthetics\_ssl\_certificate\_subject module
47294736
:members:
47304737
:show-inheritance:
47314738

4732-
datadog\_api\_client.v1.model.synthetics\_status module
4733-
-------------------------------------------------------
4734-
4735-
.. automodule:: datadog_api_client.v1.model.synthetics_status
4736-
:members:
4737-
:show-inheritance:
4738-
47394739
datadog\_api\_client.v1.model.synthetics\_step module
47404740
-----------------------------------------------------
47414741

src/datadog_api_client/v1/model/synthetics_batch_details_data.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
if TYPE_CHECKING:
1717
from datadog_api_client.v1.model.synthetics_ci_batch_metadata import SyntheticsCIBatchMetadata
1818
from datadog_api_client.v1.model.synthetics_batch_result import SyntheticsBatchResult
19-
from datadog_api_client.v1.model.synthetics_status import SyntheticsStatus
19+
from datadog_api_client.v1.model.synthetics_batch_status import SyntheticsBatchStatus
2020

2121

2222
class SyntheticsBatchDetailsData(ModelNormal):
2323
@cached_property
2424
def openapi_types(_):
2525
from datadog_api_client.v1.model.synthetics_ci_batch_metadata import SyntheticsCIBatchMetadata
2626
from datadog_api_client.v1.model.synthetics_batch_result import SyntheticsBatchResult
27-
from datadog_api_client.v1.model.synthetics_status import SyntheticsStatus
27+
from datadog_api_client.v1.model.synthetics_batch_status import SyntheticsBatchStatus
2828

2929
return {
3030
"metadata": (SyntheticsCIBatchMetadata,),
3131
"results": ([SyntheticsBatchResult],),
32-
"status": (SyntheticsStatus,),
32+
"status": (SyntheticsBatchStatus,),
3333
}
3434

3535
attribute_map = {
@@ -42,7 +42,7 @@ def __init__(
4242
self_,
4343
metadata: Union[SyntheticsCIBatchMetadata, UnsetType] = unset,
4444
results: Union[List[SyntheticsBatchResult], UnsetType] = unset,
45-
status: Union[SyntheticsStatus, UnsetType] = unset,
45+
status: Union[SyntheticsBatchStatus, UnsetType] = unset,
4646
**kwargs,
4747
):
4848
"""
@@ -54,8 +54,8 @@ def __init__(
5454
:param results: List of results for the batch.
5555
:type results: [SyntheticsBatchResult], optional
5656
57-
:param status: Determines whether or not the batch has passed, failed, or is in progress.
58-
:type status: SyntheticsStatus, optional
57+
:param status: Determines whether the batch has passed, failed, or is in progress.
58+
:type status: SyntheticsBatchStatus, optional
5959
"""
6060
if metadata is not unset:
6161
kwargs["metadata"] = metadata

src/datadog_api_client/v1/model/synthetics_batch_result.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
if TYPE_CHECKING:
1717
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
1818
from datadog_api_client.v1.model.synthetics_test_execution_rule import SyntheticsTestExecutionRule
19-
from datadog_api_client.v1.model.synthetics_status import SyntheticsStatus
19+
from datadog_api_client.v1.model.synthetics_batch_status import SyntheticsBatchStatus
2020
from datadog_api_client.v1.model.synthetics_test_details_type import SyntheticsTestDetailsType
2121

2222

@@ -25,7 +25,7 @@ class SyntheticsBatchResult(ModelNormal):
2525
def openapi_types(_):
2626
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
2727
from datadog_api_client.v1.model.synthetics_test_execution_rule import SyntheticsTestExecutionRule
28-
from datadog_api_client.v1.model.synthetics_status import SyntheticsStatus
28+
from datadog_api_client.v1.model.synthetics_batch_status import SyntheticsBatchStatus
2929
from datadog_api_client.v1.model.synthetics_test_details_type import SyntheticsTestDetailsType
3030

3131
return {
@@ -35,7 +35,7 @@ def openapi_types(_):
3535
"location": (str,),
3636
"result_id": (str,),
3737
"retries": (float,),
38-
"status": (SyntheticsStatus,),
38+
"status": (SyntheticsBatchStatus,),
3939
"test_name": (str,),
4040
"test_public_id": (str,),
4141
"test_type": (SyntheticsTestDetailsType,),
@@ -62,7 +62,7 @@ def __init__(
6262
location: Union[str, UnsetType] = unset,
6363
result_id: Union[str, UnsetType] = unset,
6464
retries: Union[float, UnsetType] = unset,
65-
status: Union[SyntheticsStatus, UnsetType] = unset,
65+
status: Union[SyntheticsBatchStatus, UnsetType] = unset,
6666
test_name: Union[str, UnsetType] = unset,
6767
test_public_id: Union[str, UnsetType] = unset,
6868
test_type: Union[SyntheticsTestDetailsType, UnsetType] = unset,
@@ -89,8 +89,8 @@ def __init__(
8989
:param retries: Number of times this result has been retried.
9090
:type retries: float, optional
9191
92-
:param status: Determines whether or not the batch has passed, failed, or is in progress.
93-
:type status: SyntheticsStatus, optional
92+
:param status: Determines whether the batch has passed, failed, or is in progress.
93+
:type status: SyntheticsBatchStatus, optional
9494
9595
:param test_name: Name of the test.
9696
:type test_name: str, optional

src/datadog_api_client/v1/model/synthetics_status.py renamed to src/datadog_api_client/v1/model/synthetics_batch_status.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
from typing import ClassVar
1313

1414

15-
class SyntheticsStatus(ModelSimple):
15+
class SyntheticsBatchStatus(ModelSimple):
1616
"""
17-
Determines whether or not the batch has passed, failed, or is in progress.
17+
Determines whether the batch has passed, failed, or is in progress.
1818
1919
:param value: Must be one of ["passed", "skipped", "failed"].
2020
:type value: str
@@ -25,9 +25,9 @@ class SyntheticsStatus(ModelSimple):
2525
"skipped",
2626
"failed",
2727
}
28-
PASSED: ClassVar["SyntheticsStatus"]
29-
skipped: ClassVar["SyntheticsStatus"]
30-
failed: ClassVar["SyntheticsStatus"]
28+
PASSED: ClassVar["SyntheticsBatchStatus"]
29+
SKIPPED: ClassVar["SyntheticsBatchStatus"]
30+
FAILED: ClassVar["SyntheticsBatchStatus"]
3131

3232
@cached_property
3333
def openapi_types(_):
@@ -36,6 +36,6 @@ def openapi_types(_):
3636
}
3737

3838

39-
SyntheticsStatus.PASSED = SyntheticsStatus("passed")
40-
SyntheticsStatus.skipped = SyntheticsStatus("skipped")
41-
SyntheticsStatus.failed = SyntheticsStatus("failed")
39+
SyntheticsBatchStatus.PASSED = SyntheticsBatchStatus("passed")
40+
SyntheticsBatchStatus.SKIPPED = SyntheticsBatchStatus("skipped")
41+
SyntheticsBatchStatus.FAILED = SyntheticsBatchStatus("failed")

src/datadog_api_client/v1/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@
669669
from datadog_api_client.v1.model.synthetics_batch_details import SyntheticsBatchDetails
670670
from datadog_api_client.v1.model.synthetics_batch_details_data import SyntheticsBatchDetailsData
671671
from datadog_api_client.v1.model.synthetics_batch_result import SyntheticsBatchResult
672+
from datadog_api_client.v1.model.synthetics_batch_status import SyntheticsBatchStatus
672673
from datadog_api_client.v1.model.synthetics_browser_error import SyntheticsBrowserError
673674
from datadog_api_client.v1.model.synthetics_browser_error_type import SyntheticsBrowserErrorType
674675
from datadog_api_client.v1.model.synthetics_browser_test import SyntheticsBrowserTest
@@ -793,7 +794,6 @@
793794
from datadog_api_client.v1.model.synthetics_ssl_certificate import SyntheticsSSLCertificate
794795
from datadog_api_client.v1.model.synthetics_ssl_certificate_issuer import SyntheticsSSLCertificateIssuer
795796
from datadog_api_client.v1.model.synthetics_ssl_certificate_subject import SyntheticsSSLCertificateSubject
796-
from datadog_api_client.v1.model.synthetics_status import SyntheticsStatus
797797
from datadog_api_client.v1.model.synthetics_step import SyntheticsStep
798798
from datadog_api_client.v1.model.synthetics_step_detail import SyntheticsStepDetail
799799
from datadog_api_client.v1.model.synthetics_step_detail_warning import SyntheticsStepDetailWarning
@@ -1647,6 +1647,7 @@
16471647
"SyntheticsBatchDetails",
16481648
"SyntheticsBatchDetailsData",
16491649
"SyntheticsBatchResult",
1650+
"SyntheticsBatchStatus",
16501651
"SyntheticsBrowserError",
16511652
"SyntheticsBrowserErrorType",
16521653
"SyntheticsBrowserTest",
@@ -1731,7 +1732,6 @@
17311732
"SyntheticsSSLCertificate",
17321733
"SyntheticsSSLCertificateIssuer",
17331734
"SyntheticsSSLCertificateSubject",
1734-
"SyntheticsStatus",
17351735
"SyntheticsStep",
17361736
"SyntheticsStepDetail",
17371737
"SyntheticsStepDetailWarning",

0 commit comments

Comments
 (0)