Source code for pyrestsdk.request.supports_types.methods._supports_post_method

"""Houses Supports Post Method"""

from sys import version_info
from typing import TypeVar

if version_info >= (3, 11):
    from typing import Self
else:
    from typing_extensions import Self

from pyrestsdk.type.enum import HttpsMethod
from pyrestsdk.request.supports_types.methods._supports_methods import SupportsMethods
from pyrestsdk.type.model import BaseEntity

S = TypeVar("S", bound=BaseEntity)


[docs]class SupportsPostMethod(SupportsMethods): """Supports Post Method Type"""
[docs] def Post(self, input_object: S) -> Self: """Sets request to put request""" self._update_request_type(HttpsMethod.POST, input_object) return self