<filename>applaud/endpoints/idfa_declarations.py
from __future__ import annotations
from .base import Endpoint, IDEndpoint, SortOrder, endpoint
from ..fields import *
from typing import Union
from ..schemas.models import *
from ..schemas.responses import *
from ..schemas.requests import *
from ..schemas.enums import *

class IdfaDeclarationsEndpoint(Endpoint):
    path = '/v1/idfaDeclarations'

    @deprecated
    def create(self, request: IdfaDeclarationCreateRequest) -> IdfaDeclarationResponse:
        '''Create the resource.

        :param request: IdfaDeclaration representation
        :type request: IdfaDeclarationCreateRequest

        :returns: Single IdfaDeclaration
        :rtype: IdfaDeclarationResponse
        :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred.
        '''
        json = super()._perform_post(request)
        return IdfaDeclarationResponse.parse_obj(json)

class IdfaDeclarationEndpoint(IDEndpoint):
    path = '/v1/idfaDeclarations/{id}'

    @deprecated
    def update(self, request: IdfaDeclarationUpdateRequest) -> IdfaDeclarationResponse:
        '''Modify the resource.

        :param request: IdfaDeclaration representation
        :type request: IdfaDeclarationUpdateRequest

        :returns: Single IdfaDeclaration
        :rtype: IdfaDeclarationResponse
        :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred.
        '''
        json = super()._perform_patch(request)
        return IdfaDeclarationResponse.parse_obj(json)

    def delete(self):
        '''Delete the resource.

        :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred.
        '''
        super()._perform_delete()


<filename>applaud/endpoints/idfa_declarations.py
from __future__ import annotations
from .base import Endpoint, IDEndpoint, SortOrder, endpoint
from ..fields import *
from typing import Union
from ..schemas.models import *
from ..schemas.responses import *
from ..schemas.requests import *
from ..schemas.enums import *

class IdfaDeclarationsEndpoint(Endpoint):
    path = '/v1/idfaDeclarations'

    @deprecated
    def create(self, request: IdfaDeclarationCreateRequest) -> IdfaDeclarationResponse:
        '''Create the resource.

        :param request: IdfaDeclaration representation
        :type request: IdfaDeclarationCreateRequest

        :returns: Single IdfaDeclaration
        :rtype: IdfaDeclarationResponse
        :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred.
        '''
        json = super()._perform_post(request)
        return IdfaDeclarationResponse.parse_obj(json)

class IdfaDeclarationEndpoint(IDEndpoint):
    path = '/v1/idfaDeclarations/{id}'

    @deprecated
    def update(self, request: IdfaDeclarationUpdateRequest) -> IdfaDeclarationResponse:
        '''Modify the resource.

        :param request: IdfaDeclaration representation
        :type request: IdfaDeclarationUpdateRequest

        :returns: Single IdfaDeclaration
        :rtype: IdfaDeclarationResponse
        :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred.
        '''
        json = super()._perform_patch(request)
        return IdfaDeclarationResponse.parse_obj(json)

    def delete(self):
        '''Delete the resource.

        :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred.
        '''
        super()._perform_delete()


Create the resource.          :param request: IdfaDeclaration representation         :type request: IdfaDeclarationCreateRequest          :returns: Single IdfaDeclaration         :rtype: IdfaDeclarationResponse         :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred. Modify the resource.          :param request: IdfaDeclaration representation         :type request: IdfaDeclarationUpdateRequest          :returns: Single IdfaDeclaration         :rtype: IdfaDeclarationResponse         :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred. Delete the resource.          :raises: :py:class:`applaud.schemas.responses.ErrorResponse`: if a request or a HTTP error occurred.