Пример #1
0
    def __init__(self,
                 status=None,
                 destination_address=None,
                 sender_address=None,
                 message=None,
                 message_id=None,
                 sent_timestamp=None,
                 local_vars_configuration=None):  # noqa: E501
        """InboundPollResponse - 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._status = None
        self._destination_address = None
        self._sender_address = None
        self._message = None
        self._message_id = None
        self._sent_timestamp = None
        self.discriminator = None

        if status is not None:
            self.status = status
        if destination_address is not None:
            self.destination_address = destination_address
        if sender_address is not None:
            self.sender_address = sender_address
        if message is not None:
            self.message = message
        if message_id is not None:
            self.message_id = message_id
        if sent_timestamp is not None:
            self.sent_timestamp = sent_timestamp
Пример #2
0
    def __init__(self,
                 to=None,
                 sent_timestamp=None,
                 received_timestamp=None,
                 delivery_status=None,
                 local_vars_configuration=None):  # noqa: E501
        """OutboundPollResponse - 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._to = None
        self._sent_timestamp = None
        self._received_timestamp = None
        self._delivery_status = None
        self.discriminator = None

        if to is not None:
            self.to = to
        if sent_timestamp is not None:
            self.sent_timestamp = sent_timestamp
        if received_timestamp is not None:
            self.received_timestamp = received_timestamp
        if delivery_status is not None:
            self.delivery_status = delivery_status
Пример #3
0
    def __init__(self,
                 empty_arr=0,
                 local_vars_configuration=None):  # noqa: E501
        """DeleteNumberRequest - 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._empty_arr = None
        self.discriminator = None

        if empty_arr is not None:
            self.empty_arr = empty_arr
Пример #4
0
    def __init__(self,
                 status=None,
                 local_vars_configuration=None):  # noqa: E501
        """HealthCheckResponse - 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._status = None
        self.discriminator = None

        if status is not None:
            self.status = status
Пример #5
0
    def __init__(self,
                 sms_multi=None,
                 notify_url=None,
                 local_vars_configuration=None):  # noqa: E501
        """SendSmsMultiRequest - 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._sms_multi = None
        self._notify_url = None
        self.discriminator = None

        if sms_multi is not None:
            self.sms_multi = sms_multi
        if notify_url is not None:
            self.notify_url = notify_url
Пример #6
0
    def __init__(self,
                 active_days=None,
                 notify_url=None,
                 local_vars_configuration=None):  # noqa: E501
        """ProvisionNumberRequest - 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._active_days = None
        self._notify_url = None
        self.discriminator = None

        if active_days is not None:
            self.active_days = active_days
        if notify_url is not None:
            self.notify_url = notify_url
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration

        self.pool = ThreadPool()
        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.6/python'
Пример #8
0
    def __init__(self, messages=None, country=None, message_type=None, number_segments=None, local_vars_configuration=None):  # noqa: E501
        """MessageSentResponseSms - 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._messages = None
        self._country = None
        self._message_type = None
        self._number_segments = None
        self.discriminator = None

        self.messages = messages
        if country is not None:
            self.country = country
        self.message_type = message_type
        self.number_segments = number_segments
Пример #9
0
    def __init__(self, active_days=None, notify_url=None, destination_address=None, local_vars_configuration=None):  # noqa: E501
        """GetSubscriptionResponse - 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._active_days = None
        self._notify_url = None
        self._destination_address = None
        self.discriminator = None

        if active_days is not None:
            self.active_days = active_days
        if notify_url is not None:
            self.notify_url = notify_url
        if destination_address is not None:
            self.destination_address = destination_address
Пример #10
0
    def __init__(self,
                 type=None,
                 filename=None,
                 payload=None,
                 local_vars_configuration=None):  # noqa: E501
        """MMSContent - 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._type = None
        self._filename = None
        self._payload = None
        self.discriminator = None

        self.type = type
        self.filename = filename
        self.payload = payload
Пример #11
0
    def __init__(self,
                 to=None,
                 body=None,
                 receipt_off=None,
                 local_vars_configuration=None):  # noqa: E501
        """MessageMulti - 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._to = None
        self._body = None
        self._receipt_off = None
        self.discriminator = None

        if to is not None:
            self.to = to
        if body is not None:
            self.body = body
        if receipt_off is not None:
            self.receipt_off = receipt_off
Пример #12
0
    def __init__(self,
                 access_token=None,
                 token_type=None,
                 expires_in=None,
                 local_vars_configuration=None):  # noqa: E501
        """OAuthResponse - 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._access_token = None
        self._token_type = None
        self._expires_in = None
        self.discriminator = None

        if access_token is not None:
            self.access_token = access_token
        if token_type is not None:
            self.token_type = token_type
        if expires_in is not None:
            self.expires_in = expires_in
Пример #13
0
    def __init__(self,
                 to=None,
                 body=None,
                 _from=None,
                 validity=None,
                 scheduled_delivery=None,
                 notify_url=None,
                 reply_request=None,
                 priority=None,
                 local_vars_configuration=None):  # noqa: E501
        """SendSMSRequest - 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._to = None
        self._body = None
        self.__from = None
        self._validity = None
        self._scheduled_delivery = None
        self._notify_url = None
        self._reply_request = None
        self._priority = None
        self.discriminator = None

        self.to = to
        self.body = body
        if _from is not None:
            self._from = _from
        if validity is not None:
            self.validity = validity
        if scheduled_delivery is not None:
            self.scheduled_delivery = scheduled_delivery
        if notify_url is not None:
            self.notify_url = notify_url
        if reply_request is not None:
            self.reply_request = reply_request
        if priority is not None:
            self.priority = priority
Пример #14
0
    def __init__(self,
                 to=None,
                 delivery_status=None,
                 message_id=None,
                 message_status_url=None,
                 local_vars_configuration=None):  # noqa: E501
        """Message - 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._to = None
        self._delivery_status = None
        self._message_id = None
        self._message_status_url = None
        self.discriminator = None

        self.to = to
        self.delivery_status = delivery_status
        self.message_id = message_id
        if message_status_url is not None:
            self.message_status_url = message_status_url
Пример #15
0
    def __init__(self, to=None, _from=None, subject=None, notify_url=None, reply_request=None, mms_content=None, local_vars_configuration=None):  # noqa: E501
        """SendMmsRequest - 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._to = None
        self.__from = None
        self._subject = None
        self._notify_url = None
        self._reply_request = None
        self._mms_content = None
        self.discriminator = None

        self.to = to
        if _from is not None:
            self._from = _from
        if subject is not None:
            self.subject = subject
        if notify_url is not None:
            self.notify_url = notify_url
        if reply_request is not None:
            self.reply_request = reply_request
        self.mms_content = mms_content
Пример #16
0
 def __init__(self, local_vars_configuration=None):  # noqa: E501
     """Status - 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.discriminator = None