thousandeyes-sdk-python/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/request_method.py
Shahid Hussain Khan 9c9b350344
[GitHub Bot] Generated python SDK (#40)
* [GitHub Bot] Generated python SDK

* Deleted labels (that's deprecated in v7, being replaced by tags) & Updated some additional files

---------

Co-authored-by: API Team <api-team@thousandeyes.com>
Co-authored-by: Miguel Pragosa <mpragosa@thousandeyes.com>
2024-08-08 09:31:01 +01:00

43 lines
853 B
Python

# coding: utf-8
"""
Tests API
This API supports listing, creating, editing, and deleting Cloud and Enterprise Agent (CEA) based tests.
The version of the OpenAPI document: 7.0.14
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
class RequestMethod(str, Enum):
"""
HTTP request method.
"""
"""
allowed enum values
"""
GET = 'get'
POST = 'post'
PUT = 'put'
DELETE = 'delete'
PATCH = 'patch'
OPTIONS = 'options'
TRACE = 'trace'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of RequestMethod from a JSON string"""
return cls(json.loads(json_str))