My copy of flowroute sdk.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flowroute-sdk-v3-python/flowroutenumbersandmessaging/http/http_method_enum.py

47 lines
943 B

# -*- coding: utf-8 -*-
"""
flowroutenumbersandmessaging.http.http_method_enum
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class HttpMethodEnum(object):
"""Enumeration of an HTTP Method
Attributes:
GET: A GET Request
POST: A POST Request
PUT: A PUT Request
PATCH: A PATCH Request
DELETE: A DELETE Request
"""
GET = "GET"
POST = "POST"
PUT = "PUT"
PATCH = "PATCH"
DELETE = "DELETE"
@classmethod
def to_string(cls, val):
"""Returns the string equivalent for the Enum.
"""
for k, v in list(vars(cls).items()):
if v == val:
return k
@classmethod
def from_string(cls, str):
"""Creates an instance of the Enum from a given string.
"""
return getattr(cls, str.upper(), None)