当前位置: 首页>>代码示例>>Python>>正文


Python deserialize.iso8601_datetime函数代码示例

本文整理汇总了Python中twilio.base.deserialize.iso8601_datetime函数的典型用法代码示例。如果您正苦于以下问题:Python iso8601_datetime函数的具体用法?Python iso8601_datetime怎么用?Python iso8601_datetime使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了iso8601_datetime函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

    def __init__(self, version, payload, sid=None):
        """
        Initialize the FleetInstance

        :returns: twilio.rest.preview.deployed_devices.fleet.FleetInstance
        :rtype: twilio.rest.preview.deployed_devices.fleet.FleetInstance
        """
        super(FleetInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'url': payload['url'],
            'unique_name': payload['unique_name'],
            'friendly_name': payload['friendly_name'],
            'account_sid': payload['account_sid'],
            'default_deployment_sid': payload['default_deployment_sid'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'links': payload['links'],
        }

        # Context
        self._context = None
        self._solution = {'sid': sid or self._properties['sid'], }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:25,代码来源:__init__.py

示例2: __init__

    def __init__(self, version, payload, sid=None):
        """
        Initialize the CredentialInstance

        :returns: twilio.rest.chat.v2.credential.CredentialInstance
        :rtype: twilio.rest.chat.v2.credential.CredentialInstance
        """
        super(CredentialInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'account_sid': payload['account_sid'],
            'friendly_name': payload['friendly_name'],
            'type': payload['type'],
            'sandbox': payload['sandbox'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'url': payload['url'],
        }

        # Context
        self._context = None
        self._solution = {
            'sid': sid or self._properties['sid'],
        }
开发者ID:pby2017,项目名称:library-for-twilio-python2,代码行数:26,代码来源:credential.py

示例3: __init__

    def __init__(self, version, payload, workspace_sid, worker_sid, sid=None):
        """
        Initialize the ReservationInstance

        :returns: twilio.rest.taskrouter.v1.workspace.worker.reservation.ReservationInstance
        :rtype: twilio.rest.taskrouter.v1.workspace.worker.reservation.ReservationInstance
        """
        super(ReservationInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'account_sid': payload['account_sid'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'reservation_status': payload['reservation_status'],
            'sid': payload['sid'],
            'task_sid': payload['task_sid'],
            'worker_name': payload['worker_name'],
            'worker_sid': payload['worker_sid'],
            'workspace_sid': payload['workspace_sid'],
            'url': payload['url'],
            'links': payload['links'],
        }

        # Context
        self._context = None
        self._solution = {
            'workspace_sid': workspace_sid,
            'worker_sid': worker_sid,
            'sid': sid or self._properties['sid'],
        }
开发者ID:pby2017,项目名称:library-for-twilio-python2,代码行数:31,代码来源:reservation.py

示例4: __init__

    def __init__(self, version, payload, service_sid, environment_sid, sid=None):
        """
        Initialize the DeploymentInstance

        :returns: twilio.rest.serverless.v1.service.environment.deployment.DeploymentInstance
        :rtype: twilio.rest.serverless.v1.service.environment.deployment.DeploymentInstance
        """
        super(DeploymentInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'account_sid': payload['account_sid'],
            'service_sid': payload['service_sid'],
            'environment_sid': payload['environment_sid'],
            'build_sid': payload['build_sid'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'url': payload['url'],
        }

        # Context
        self._context = None
        self._solution = {
            'service_sid': service_sid,
            'environment_sid': environment_sid,
            'sid': sid or self._properties['sid'],
        }
开发者ID:twilio,项目名称:twilio-python,代码行数:28,代码来源:deployment.py

示例5: __init__

    def __init__(self, version, payload, sim_sid):
        """
        Initialize the DataSessionInstance

        :returns: twilio.rest.wireless.v1.sim.data_session.DataSessionInstance
        :rtype: twilio.rest.wireless.v1.sim.data_session.DataSessionInstance
        """
        super(DataSessionInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'sim_sid': payload['sim_sid'],
            'account_sid': payload['account_sid'],
            'radio_link': payload['radio_link'],
            'operator_mcc': payload['operator_mcc'],
            'operator_mnc': payload['operator_mnc'],
            'operator_country': payload['operator_country'],
            'operator_name': payload['operator_name'],
            'cell_id': payload['cell_id'],
            'cell_location_estimate': payload['cell_location_estimate'],
            'packets_uploaded': deserialize.integer(payload['packets_uploaded']),
            'packets_downloaded': deserialize.integer(payload['packets_downloaded']),
            'last_updated': deserialize.iso8601_datetime(payload['last_updated']),
            'start': deserialize.iso8601_datetime(payload['start']),
            'end': deserialize.iso8601_datetime(payload['end']),
            'imeisv': payload['imeisv'],
        }

        # Context
        self._context = None
        self._solution = {'sim_sid': sim_sid, }
开发者ID:twilio,项目名称:twilio-python,代码行数:32,代码来源:data_session.py

示例6: __init__

    def __init__(self, version, payload, sid=None):
        """
        Initialize the AssistantInstance

        :returns: twilio.rest.autopilot.v1.assistant.AssistantInstance
        :rtype: twilio.rest.autopilot.v1.assistant.AssistantInstance
        """
        super(AssistantInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'account_sid': payload['account_sid'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'friendly_name': payload['friendly_name'],
            'latest_model_build_sid': payload['latest_model_build_sid'],
            'links': payload['links'],
            'log_queries': payload['log_queries'],
            'sid': payload['sid'],
            'unique_name': payload['unique_name'],
            'url': payload['url'],
            'callback_url': payload['callback_url'],
            'callback_events': payload['callback_events'],
        }

        # Context
        self._context = None
        self._solution = {'sid': sid or self._properties['sid'], }
开发者ID:twilio,项目名称:twilio-python,代码行数:28,代码来源:__init__.py

示例7: __init__

    def __init__(self, version, payload, assistant_sid, task_sid, sid=None):
        """
        Initialize the SampleInstance

        :returns: twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance
        :rtype: twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance
        """
        super(SampleInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'account_sid': payload['account_sid'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'task_sid': payload['task_sid'],
            'language': payload['language'],
            'assistant_sid': payload['assistant_sid'],
            'sid': payload['sid'],
            'tagged_text': payload['tagged_text'],
            'url': payload['url'],
            'source_channel': payload['source_channel'],
        }

        # Context
        self._context = None
        self._solution = {
            'assistant_sid': assistant_sid,
            'task_sid': task_sid,
            'sid': sid or self._properties['sid'],
        }
开发者ID:twilio,项目名称:twilio-python,代码行数:30,代码来源:sample.py

示例8: __init__

    def __init__(self, version, payload, service_sid, list_sid, index=None):
        """
        Initialize the SyncListItemInstance

        :returns: twilio.rest.sync.v1.service.sync_list.sync_list_item.SyncListItemInstance
        :rtype: twilio.rest.sync.v1.service.sync_list.sync_list_item.SyncListItemInstance
        """
        super(SyncListItemInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'index': deserialize.integer(payload['index']),
            'account_sid': payload['account_sid'],
            'service_sid': payload['service_sid'],
            'list_sid': payload['list_sid'],
            'url': payload['url'],
            'revision': payload['revision'],
            'data': payload['data'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'created_by': payload['created_by'],
        }

        # Context
        self._context = None
        self._solution = {
            'service_sid': service_sid,
            'list_sid': list_sid,
            'index': index or self._properties['index'],
        }
开发者ID:pby2017,项目名称:library-for-twilio-python2,代码行数:30,代码来源:sync_list_item.py

示例9: __init__

    def __init__(self, version, payload, service_sid, identity=None):
        """
        Initialize the UserInstance

        :returns: twilio.rest.notify.v1.service.user.UserInstance
        :rtype: twilio.rest.notify.v1.service.user.UserInstance
        """
        super(UserInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'account_sid': payload['account_sid'],
            'service_sid': payload['service_sid'],
            'identity': payload['identity'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'segments': payload['segments'],
            'url': payload['url'],
            'links': payload['links'],
        }

        # Context
        self._context = None
        self._solution = {
            'service_sid': service_sid,
            'identity': identity or self._properties['identity'],
        }
开发者ID:pby2017,项目名称:library-for-twilio-python2,代码行数:28,代码来源:__init__.py

示例10: __init__

    def __init__(self, version, payload, assistant_sid, sid=None):
        """
        Initialize the ModelBuildInstance

        :returns: twilio.rest.autopilot.v1.assistant.model_build.ModelBuildInstance
        :rtype: twilio.rest.autopilot.v1.assistant.model_build.ModelBuildInstance
        """
        super(ModelBuildInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'account_sid': payload['account_sid'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'assistant_sid': payload['assistant_sid'],
            'sid': payload['sid'],
            'status': payload['status'],
            'unique_name': payload['unique_name'],
            'url': payload['url'],
            'build_duration': deserialize.integer(payload['build_duration']),
            'error_code': deserialize.integer(payload['error_code']),
        }

        # Context
        self._context = None
        self._solution = {'assistant_sid': assistant_sid, 'sid': sid or self._properties['sid'], }
开发者ID:twilio,项目名称:twilio-python,代码行数:26,代码来源:model_build.py

示例11: __init__

    def __init__(self, version, payload, service_sid, map_sid, key=None):
        """
        Initialize the SyncMapItemInstance

        :returns: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
        :rtype: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
        """
        super(SyncMapItemInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'key': payload['key'],
            'account_sid': payload['account_sid'],
            'service_sid': payload['service_sid'],
            'map_sid': payload['map_sid'],
            'url': payload['url'],
            'revision': payload['revision'],
            'data': payload['data'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'created_by': payload['created_by'],
        }

        # Context
        self._context = None
        self._solution = {
            'service_sid': service_sid,
            'map_sid': map_sid,
            'key': key or self._properties['key'],
        }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:30,代码来源:sync_map_item.py

示例12: __init__

    def __init__(self, version, payload, service_sid, identity, sid=None):
        """
        Initialize the UserBindingInstance

        :returns: twilio.rest.notify.v1.service.user.user_binding.UserBindingInstance
        :rtype: twilio.rest.notify.v1.service.user.user_binding.UserBindingInstance
        """
        super(UserBindingInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'account_sid': payload['account_sid'],
            'service_sid': payload['service_sid'],
            'credential_sid': payload['credential_sid'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'notification_protocol_version': payload['notification_protocol_version'],
            'endpoint': payload['endpoint'],
            'identity': payload['identity'],
            'binding_type': payload['binding_type'],
            'address': payload['address'],
            'tags': payload['tags'],
            'url': payload['url'],
            'links': payload['links'],
        }

        # Context
        self._context = None
        self._solution = {
            'service_sid': service_sid,
            'identity': identity,
            'sid': sid or self._properties['sid'],
        }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:34,代码来源:user_binding.py

示例13: __init__

    def __init__(self, version, payload, trunk_sid, sid=None):
        """
        Initialize the OriginationUrlInstance

        :returns: twilio.rest.trunking.v1.trunk.origination_url.OriginationUrlInstance
        :rtype: twilio.rest.trunking.v1.trunk.origination_url.OriginationUrlInstance
        """
        super(OriginationUrlInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'account_sid': payload['account_sid'],
            'sid': payload['sid'],
            'trunk_sid': payload['trunk_sid'],
            'weight': deserialize.integer(payload['weight']),
            'enabled': payload['enabled'],
            'sip_url': payload['sip_url'],
            'friendly_name': payload['friendly_name'],
            'priority': deserialize.integer(payload['priority']),
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'url': payload['url'],
        }

        # Context
        self._context = None
        self._solution = {'trunk_sid': trunk_sid, 'sid': sid or self._properties['sid'], }
开发者ID:twilio,项目名称:twilio-python,代码行数:27,代码来源:origination_url.py

示例14: __init__

    def __init__(self, version, payload, sid=None):
        """
        Initialize the ServiceInstance

        :returns: twilio.rest.proxy.v1.service.ServiceInstance
        :rtype: twilio.rest.proxy.v1.service.ServiceInstance
        """
        super(ServiceInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'unique_name': payload['unique_name'],
            'account_sid': payload['account_sid'],
            'callback_url': payload['callback_url'],
            'default_ttl': deserialize.integer(payload['default_ttl']),
            'number_selection_behavior': payload['number_selection_behavior'],
            'geo_match_level': payload['geo_match_level'],
            'intercept_callback_url': payload['intercept_callback_url'],
            'out_of_session_callback_url': payload['out_of_session_callback_url'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
            'url': payload['url'],
            'links': payload['links'],
        }

        # Context
        self._context = None
        self._solution = {'sid': sid or self._properties['sid'], }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:29,代码来源:__init__.py

示例15: __init__

    def __init__(self, version, payload, service_sid):
        """
        Initialize the VerificationCheckInstance

        :returns: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        :rtype: twilio.rest.verify.v2.service.verification_check.VerificationCheckInstance
        """
        super(VerificationCheckInstance, self).__init__(version)

        # Marshaled Properties
        self._properties = {
            'sid': payload['sid'],
            'service_sid': payload['service_sid'],
            'account_sid': payload['account_sid'],
            'to': payload['to'],
            'channel': payload['channel'],
            'status': payload['status'],
            'valid': payload['valid'],
            'amount': payload['amount'],
            'payee': payload['payee'],
            'date_created': deserialize.iso8601_datetime(payload['date_created']),
            'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
        }

        # Context
        self._context = None
        self._solution = {'service_sid': service_sid, }
开发者ID:twilio,项目名称:twilio-python,代码行数:27,代码来源:verification_check.py


注:本文中的twilio.base.deserialize.iso8601_datetime函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。