Exemplo n.º 1
0
    def __init__(self,
                 message=None,
                 correlation_id=None,
                 category=None,
                 sub_category=None,
                 errors=None,
                 context=None,
                 links=None,
                 local_vars_configuration=None):  # noqa: E501
        """Error - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._message = None
        self._correlation_id = None
        self._category = None
        self._sub_category = None
        self._errors = None
        self._context = None
        self._links = None
        self.discriminator = None

        self.message = message
        self.correlation_id = correlation_id
        self.category = category
        if sub_category is not None:
            self.sub_category = sub_category
        if errors is not None:
            self.errors = errors
        if context is not None:
            self.context = context
        if links is not None:
            self.links = links
Exemplo n.º 2
0
    def __init__(self,
                 message=None,
                 _in=None,
                 code=None,
                 sub_category=None,
                 context=None,
                 local_vars_configuration=None):  # noqa: E501
        """ErrorDetail - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._message = None
        self.__in = None
        self._code = None
        self._sub_category = None
        self._context = None
        self.discriminator = None

        self.message = message
        if _in is not None:
            self._in = _in
        if code is not None:
            self.code = code
        if sub_category is not None:
            self.sub_category = sub_category
        if context is not None:
            self.context = context
Exemplo n.º 3
0
    def __init__(self, id=None, name=None, description=None, purpose=None, communication_method=None, is_active=None, is_default=None, is_internal=None, created_at=None, updated_at=None, local_vars_configuration=None):  # noqa: E501
        """SubscriptionDefinition - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self._description = None
        self._purpose = None
        self._communication_method = None
        self._is_active = None
        self._is_default = None
        self._is_internal = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        self.id = id
        self.name = name
        self.description = description
        if purpose is not None:
            self.purpose = purpose
        if communication_method is not None:
            self.communication_method = communication_method
        self.is_active = is_active
        self.is_default = is_default
        self.is_internal = is_internal
        self.created_at = created_at
        self.updated_at = updated_at
    def __init__(self,
                 subscription_definitions=None,
                 local_vars_configuration=None):  # noqa: E501
        """SubscriptionDefinitionsResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._subscription_definitions = None
        self.discriminator = None

        self.subscription_definitions = subscription_definitions
    def __init__(self, recipient=None, subscription_statuses=None, local_vars_configuration=None):  # noqa: E501
        """PublicSubscriptionStatusesResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._recipient = None
        self._subscription_statuses = None
        self.discriminator = None

        self.recipient = recipient
        self.subscription_statuses = subscription_statuses
    def __init__(self, email_address=None, subscription_id=None, legal_basis=None, legal_basis_explanation=None, local_vars_configuration=None):  # noqa: E501
        """PublicUpdateSubscriptionStatusRequest - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._email_address = None
        self._subscription_id = None
        self._legal_basis = None
        self._legal_basis_explanation = None
        self.discriminator = None

        self.email_address = email_address
        self.subscription_id = subscription_id
        if legal_basis is not None:
            self.legal_basis = legal_basis
        if legal_basis_explanation is not None:
            self.legal_basis_explanation = legal_basis_explanation
Exemplo n.º 7
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration.get_default_copy()
        self.configuration = configuration
        self.pool_threads = pool_threads

        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'OpenAPI-Generator/1.0.0/python'
        self.client_side_validation = configuration.client_side_validation
Exemplo n.º 8
0
    def __init__(
        self,
        id=None,
        name=None,
        description=None,
        status=None,
        source_of_status=None,
        brand_id=None,
        preference_group_name=None,
        legal_basis=None,
        legal_basis_explanation=None,
        local_vars_configuration=None,
    ):  # noqa: E501
        """PublicSubscriptionStatus - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self._description = None
        self._status = None
        self._source_of_status = None
        self._brand_id = None
        self._preference_group_name = None
        self._legal_basis = None
        self._legal_basis_explanation = None
        self.discriminator = None

        self.id = id
        self.name = name
        self.description = description
        self.status = status
        self.source_of_status = source_of_status
        if brand_id is not None:
            self.brand_id = brand_id
        if preference_group_name is not None:
            self.preference_group_name = preference_group_name
        if legal_basis is not None:
            self.legal_basis = legal_basis
        if legal_basis_explanation is not None:
            self.legal_basis_explanation = legal_basis_explanation