Skip to content

Commit

Permalink
Regenerate client from commit f54c0bf3 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jun 28, 2024
1 parent 0713425 commit 3e2ecab
Show file tree
Hide file tree
Showing 18 changed files with 411 additions and 176 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-06-27 21:40:27.727114",
"spec_repo_commit": "4ed44e4c"
"regenerated": "2024-06-28 17:22:59.802284",
"spec_repo_commit": "f54c0bf3"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-06-27 21:40:27.743937",
"spec_repo_commit": "4ed44e4c"
"regenerated": "2024-06-28 17:22:59.820641",
"spec_repo_commit": "f54c0bf3"
}
}
}
141 changes: 88 additions & 53 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13366,60 +13366,11 @@ components:
$ref: '#/components/schemas/WidgetStyle'
type: object
SyntheticsAPIStep:
description: The steps used in a Synthetic multistep API test.
properties:
allowFailure:
description: Determines whether or not to continue with test if this step
fails.
type: boolean
assertions:
default: []
description: Array of assertions used for the test.
example:
- operator: lessThan
target: 1000
type: responseTime
items:
$ref: '#/components/schemas/SyntheticsAssertion'
type: array
extractedValues:
description: Array of values to parse and save as variables from the response.
items:
$ref: '#/components/schemas/SyntheticsParsingOptions'
type: array
isCritical:
description: 'Determines whether or not to consider the entire test as failed
if this step fails.

Can be used only if `allowFailure` is `true`.'
type: boolean
name:
description: The name of the step.
example: Example step name
type: string
request:
$ref: '#/components/schemas/SyntheticsTestRequest'
retry:
$ref: '#/components/schemas/SyntheticsTestOptionsRetry'
subtype:
$ref: '#/components/schemas/SyntheticsAPIStepSubtype'
required:
- assertions
- request
- name
- subtype
description: The steps used in a Synthetic multi-step API test.
oneOf:
- $ref: '#/components/schemas/SyntheticsAPITestStep'
- $ref: '#/components/schemas/SyntheticsAPIWaitStep'
type: object
SyntheticsAPIStepSubtype:
description: The subtype of the Synthetic multistep API test step, currently
only supporting `http`.
enum:
- http
- grpc
example: http
type: string
x-enum-varnames:
- HTTP
- GRPC
SyntheticsAPITest:
description: Object containing details about a Synthetic API test.
properties:
Expand Down Expand Up @@ -13608,6 +13559,60 @@ components:
timings:
$ref: '#/components/schemas/SyntheticsTiming'
type: object
SyntheticsAPITestStep:
description: The Test step used in a Synthetic multi-step API test.
properties:
allowFailure:
description: Determines whether or not to continue with test if this step
fails.
type: boolean
assertions:
default: []
description: Array of assertions used for the test.
example:
- operator: lessThan
target: 1000
type: responseTime
items:
$ref: '#/components/schemas/SyntheticsAssertion'
type: array
extractedValues:
description: Array of values to parse and save as variables from the response.
items:
$ref: '#/components/schemas/SyntheticsParsingOptions'
type: array
isCritical:
description: 'Determines whether or not to consider the entire test as failed
if this step fails.

Can be used only if `allowFailure` is `true`.'
type: boolean
name:
description: The name of the step.
example: Example step name
type: string
request:
$ref: '#/components/schemas/SyntheticsTestRequest'
retry:
$ref: '#/components/schemas/SyntheticsTestOptionsRetry'
subtype:
$ref: '#/components/schemas/SyntheticsAPITestStepSubtype'
required:
- assertions
- request
- name
- subtype
type: object
SyntheticsAPITestStepSubtype:
description: The subtype of the Synthetic multi-step API test step.
enum:
- http
- grpc
example: http
type: string
x-enum-varnames:
- HTTP
- GRPC
SyntheticsAPITestType:
default: api
description: Type of the Synthetic test, `api`.
Expand All @@ -13617,6 +13622,36 @@ components:
type: string
x-enum-varnames:
- API
SyntheticsAPIWaitStep:
description: The Wait step used in a Synthetic multi-step API test.
properties:
name:
description: The name of the step.
example: Example step name
type: string
subtype:
$ref: '#/components/schemas/SyntheticsAPIWaitStepSubtype'
value:
description: 'The time to wait in seconds. Minimum value: 0. Maximum value:
180.'
example: 5
format: int32
maximum: 180
minimum: 0
type: integer
required:
- name
- subtype
- value
type: object
SyntheticsAPIWaitStepSubtype:
description: The subtype of the Synthetic multi-step API wait step.
enum:
- wait
example: wait
type: string
x-enum-varnames:
- WAIT
SyntheticsApiTestFailureCode:
description: Error code that can be returned by a Synthetic test.
enum:
Expand Down
35 changes: 28 additions & 7 deletions docs/datadog_api_client.v1.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3774,13 +3774,6 @@ synthetics\_api\_step
:members:
:show-inheritance:

synthetics\_api\_step\_subtype
------------------------------

.. automodule:: datadog_api_client.v1.model.synthetics_api_step_subtype
:members:
:show-inheritance:

synthetics\_api\_test
---------------------

Expand Down Expand Up @@ -3844,13 +3837,41 @@ synthetics\_api\_test\_result\_short\_result
:members:
:show-inheritance:

synthetics\_api\_test\_step
---------------------------

.. automodule:: datadog_api_client.v1.model.synthetics_api_test_step
:members:
:show-inheritance:

synthetics\_api\_test\_step\_subtype
------------------------------------

.. automodule:: datadog_api_client.v1.model.synthetics_api_test_step_subtype
:members:
:show-inheritance:

synthetics\_api\_test\_type
---------------------------

.. automodule:: datadog_api_client.v1.model.synthetics_api_test_type
:members:
:show-inheritance:

synthetics\_api\_wait\_step
---------------------------

.. automodule:: datadog_api_client.v1.model.synthetics_api_wait_step
:members:
:show-inheritance:

synthetics\_api\_wait\_step\_subtype
------------------------------------

.. automodule:: datadog_api_client.v1.model.synthetics_api_wait_step_subtype
:members:
:show-inheritance:

synthetics\_assertion
---------------------

Expand Down
19 changes: 13 additions & 6 deletions examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
from datadog_api_client.v1.model.synthetics_api_step import SyntheticsAPIStep
from datadog_api_client.v1.model.synthetics_api_step_subtype import SyntheticsAPIStepSubtype
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
from datadog_api_client.v1.model.synthetics_api_test_config import SyntheticsAPITestConfig
from datadog_api_client.v1.model.synthetics_api_test_step import SyntheticsAPITestStep
from datadog_api_client.v1.model.synthetics_api_test_step_subtype import SyntheticsAPITestStepSubtype
from datadog_api_client.v1.model.synthetics_api_test_type import SyntheticsAPITestType
from datadog_api_client.v1.model.synthetics_api_wait_step import SyntheticsAPIWaitStep
from datadog_api_client.v1.model.synthetics_api_wait_step_subtype import SyntheticsAPIWaitStepSubtype
from datadog_api_client.v1.model.synthetics_assertion_operator import SyntheticsAssertionOperator
from datadog_api_client.v1.model.synthetics_assertion_target import SyntheticsAssertionTarget
from datadog_api_client.v1.model.synthetics_assertion_type import SyntheticsAssertionType
Expand Down Expand Up @@ -39,7 +41,7 @@
),
],
steps=[
SyntheticsAPIStep(
SyntheticsAPITestStep(
allow_failure=True,
assertions=[
SyntheticsAssertionTarget(
Expand Down Expand Up @@ -71,11 +73,16 @@
count=5,
interval=1000.0,
),
subtype=SyntheticsAPIStepSubtype.HTTP,
subtype=SyntheticsAPITestStepSubtype.HTTP,
),
SyntheticsAPIStep(
SyntheticsAPIWaitStep(
name="Wait",
subtype=SyntheticsAPIWaitStepSubtype.WAIT,
value=1,
),
SyntheticsAPITestStep(
name="GRPC CALL",
subtype=SyntheticsAPIStepSubtype.GRPC,
subtype=SyntheticsAPITestStepSubtype.GRPC,
extracted_values=[],
allow_failure=False,
is_critical=True,
Expand Down
Loading

0 comments on commit 3e2ecab

Please sign in to comment.