Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isUndefined synthetics assertion operator #1527

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4",
"regenerated": "2023-06-15 13:52:13.247527",
"spec_repo_commit": "cd68c9b8"
"regenerated": "2023-06-15 14:21:28.331660",
"spec_repo_commit": "aa16daa0"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-15 13:52:13.260886",
"spec_repo_commit": "cd68c9b8"
"regenerated": "2023-06-15 14:21:28.343850",
"spec_repo_commit": "aa16daa0"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12408,6 +12408,7 @@ components:
- isInMoreThan
- isInLessThan
- doesNotExist
- isUndefined
example: contains
type: string
x-enum-varnames:
Expand All @@ -12425,6 +12426,7 @@ components:
- IS_IN_MORE_DAYS_THAN
- IS_IN_LESS_DAYS_THAN
- DOES_NOT_EXIST
- IS_UNDEFINED
SyntheticsAssertionTarget:
description: An assertion which uses a simple target.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SyntheticsAssertionOperator(ModelSimple):
"""
Assertion operator to apply.

:param value: Must be one of ["contains", "doesNotContain", "is", "isNot", "lessThan", "lessThanOrEqual", "moreThan", "moreThanOrEqual", "matches", "doesNotMatch", "validates", "isInMoreThan", "isInLessThan", "doesNotExist"].
:param value: Must be one of ["contains", "doesNotContain", "is", "isNot", "lessThan", "lessThanOrEqual", "moreThan", "moreThanOrEqual", "matches", "doesNotMatch", "validates", "isInMoreThan", "isInLessThan", "doesNotExist", "isUndefined"].
:type value: str
"""

Expand All @@ -35,6 +35,7 @@ class SyntheticsAssertionOperator(ModelSimple):
"isInMoreThan",
"isInLessThan",
"doesNotExist",
"isUndefined",
}
CONTAINS: ClassVar["SyntheticsAssertionOperator"]
DOES_NOT_CONTAIN: ClassVar["SyntheticsAssertionOperator"]
Expand All @@ -50,6 +51,7 @@ class SyntheticsAssertionOperator(ModelSimple):
IS_IN_MORE_DAYS_THAN: ClassVar["SyntheticsAssertionOperator"]
IS_IN_LESS_DAYS_THAN: ClassVar["SyntheticsAssertionOperator"]
DOES_NOT_EXIST: ClassVar["SyntheticsAssertionOperator"]
IS_UNDEFINED: ClassVar["SyntheticsAssertionOperator"]

@cached_property
def openapi_types(_):
Expand All @@ -72,3 +74,4 @@ def openapi_types(_):
SyntheticsAssertionOperator.IS_IN_MORE_DAYS_THAN = SyntheticsAssertionOperator("isInMoreThan")
SyntheticsAssertionOperator.IS_IN_LESS_DAYS_THAN = SyntheticsAssertionOperator("isInLessThan")
SyntheticsAssertionOperator.DOES_NOT_EXIST = SyntheticsAssertionOperator("doesNotExist")
SyntheticsAssertionOperator.IS_UNDEFINED = SyntheticsAssertionOperator("isUndefined")