本文整理汇总了Python中twilio.base.deserialize.integer函数的典型用法代码示例。如果您正苦于以下问题:Python integer函数的具体用法?Python integer怎么用?Python integer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了integer函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, version, payload):
"""
Initialize the WebhookInstance
:returns: twilio.rest.messaging.v1.webhook.WebhookInstance
:rtype: twilio.rest.messaging.v1.webhook.WebhookInstance
"""
super(WebhookInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'service_sid': payload['service_sid'],
'webhook_method': payload['webhook_method'],
'webhook_filters': payload['webhook_filters'],
'pre_webhook_url': payload['pre_webhook_url'],
'post_webhook_url': payload['post_webhook_url'],
'pre_webhook_retry_count': deserialize.integer(payload['pre_webhook_retry_count']),
'post_webhook_retry_count': deserialize.integer(payload['post_webhook_retry_count']),
'target': payload['target'],
'url': payload['url'],
}
# Context
self._context = None
self._solution = {}
开发者ID:twilio,项目名称:twilio-python,代码行数:26,代码来源:webhook.py
示例2: __init__
def __init__(self, version, payload, sid=None):
"""
Initialize the RatePlanInstance
:returns: twilio.rest.wireless.v1.rate_plan.RatePlanInstance
:rtype: twilio.rest.wireless.v1.rate_plan.RatePlanInstance
"""
super(RatePlanInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'sid': payload['sid'],
'unique_name': payload['unique_name'],
'account_sid': payload['account_sid'],
'friendly_name': payload['friendly_name'],
'data_enabled': payload['data_enabled'],
'data_metering': payload['data_metering'],
'data_limit': deserialize.integer(payload['data_limit']),
'messaging_enabled': payload['messaging_enabled'],
'voice_enabled': payload['voice_enabled'],
'national_roaming_enabled': payload['national_roaming_enabled'],
'national_roaming_data_limit': deserialize.integer(payload['national_roaming_data_limit']),
'international_roaming': payload['international_roaming'],
'international_roaming_data_limit': deserialize.integer(payload['international_roaming_data_limit']),
'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:kanyapnp,项目名称:twilio-python,代码行数:32,代码来源:rate_plan.py
示例3: __init__
def __init__(self, version, payload, workspace_sid, task_queue_sid):
"""
Initialize the TaskQueueRealTimeStatisticsInstance
:returns: twilio.rest.taskrouter.v1.workspace.task_queue.task_queue_real_time_statistics.TaskQueueRealTimeStatisticsInstance
:rtype: twilio.rest.taskrouter.v1.workspace.task_queue.task_queue_real_time_statistics.TaskQueueRealTimeStatisticsInstance
"""
super(TaskQueueRealTimeStatisticsInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'activity_statistics': payload['activity_statistics'],
'longest_task_waiting_age': deserialize.integer(payload['longest_task_waiting_age']),
'task_queue_sid': payload['task_queue_sid'],
'tasks_by_priority': payload['tasks_by_priority'],
'tasks_by_status': payload['tasks_by_status'],
'total_available_workers': deserialize.integer(payload['total_available_workers']),
'total_eligible_workers': deserialize.integer(payload['total_eligible_workers']),
'total_tasks': deserialize.integer(payload['total_tasks']),
'workspace_sid': payload['workspace_sid'],
'url': payload['url'],
}
# Context
self._context = None
self._solution = {'workspace_sid': workspace_sid, 'task_queue_sid': task_queue_sid, }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:27,代码来源:task_queue_real_time_statistics.py
示例4: __init__
def __init__(self, version, payload, sid=None):
"""
Initialize the CompositionInstance
:returns: twilio.rest.video.v1.composition.CompositionInstance
:rtype: twilio.rest.video.v1.composition.CompositionInstance
"""
super(CompositionInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'status': payload['status'],
'date_created': deserialize.iso8601_datetime(payload['date_created']),
'date_completed': payload['date_completed'],
'date_deleted': payload['date_deleted'],
'sid': payload['sid'],
'room_sid': payload['room_sid'],
'audio_sources': payload['audio_sources'],
'audio_sources_excluded': payload['audio_sources_excluded'],
'video_layout': payload['video_layout'],
'resolution': payload['resolution'],
'trim': payload['trim'],
'format': payload['format'],
'bitrate': deserialize.integer(payload['bitrate']),
'size': deserialize.integer(payload['size']),
'duration': deserialize.integer(payload['duration']),
'url': payload['url'],
'links': payload['links'],
}
# Context
self._context = None
self._solution = {'sid': sid or self._properties['sid'], }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:34,代码来源:__init__.py
示例5: __init__
def __init__(self, version, payload, sid=None):
"""
Initialize the FaxInstance
:returns: twilio.rest.fax.v1.fax.FaxInstance
:rtype: twilio.rest.fax.v1.fax.FaxInstance
"""
super(FaxInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'sid': payload['sid'],
'account_sid': payload['account_sid'],
'from_': payload['from'],
'to': payload['to'],
'quality': payload['quality'],
'media_sid': payload['media_sid'],
'media_url': payload['media_url'],
'num_pages': deserialize.integer(payload['num_pages']),
'duration': deserialize.integer(payload['duration']),
'status': payload['status'],
'direction': payload['direction'],
'api_version': payload['api_version'],
'price': deserialize.decimal(payload['price']),
'price_unit': payload['price_unit'],
'date_created': deserialize.iso8601_datetime(payload['date_created']),
'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
'links': payload['links'],
'url': payload['url'],
}
# Context
self._context = None
self._solution = {'sid': sid or self._properties['sid'], }
开发者ID:twilio,项目名称:twilio-python,代码行数:34,代码来源:__init__.py
示例6: __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
示例7: __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
示例8: __init__
def __init__(self, version, payload, account_sid, sid=None):
"""
Initialize the QueueInstance
:returns: twilio.rest.api.v2010.account.queue.QueueInstance
:rtype: twilio.rest.api.v2010.account.queue.QueueInstance
"""
super(QueueInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'average_wait_time': deserialize.integer(payload['average_wait_time']),
'current_size': deserialize.integer(payload['current_size']),
'date_created': deserialize.rfc2822_datetime(payload['date_created']),
'date_updated': deserialize.rfc2822_datetime(payload['date_updated']),
'friendly_name': payload['friendly_name'],
'max_size': deserialize.integer(payload['max_size']),
'sid': payload['sid'],
'uri': payload['uri'],
'subresource_uris': payload['subresource_uris'],
}
# Context
self._context = None
self._solution = {'account_sid': account_sid, 'sid': sid or self._properties['sid'], }
开发者ID:twilio,项目名称:twilio-python,代码行数:26,代码来源:__init__.py
示例9: __init__
def __init__(self, version, payload, service_sid, user_sid):
"""
Initialize the UserChannelInstance
:returns: twilio.rest.chat.v2.service.user.user_channel.UserChannelInstance
:rtype: twilio.rest.chat.v2.service.user.user_channel.UserChannelInstance
"""
super(UserChannelInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'service_sid': payload['service_sid'],
'channel_sid': payload['channel_sid'],
'member_sid': payload['member_sid'],
'status': payload['status'],
'last_consumed_message_index': deserialize.integer(payload['last_consumed_message_index']),
'unread_messages_count': deserialize.integer(payload['unread_messages_count']),
'links': payload['links'],
}
# Context
self._context = None
self._solution = {
'service_sid': service_sid,
'user_sid': user_sid,
}
开发者ID:pby2017,项目名称:library-for-twilio-python2,代码行数:27,代码来源:user_channel.py
示例10: __init__
def __init__(self, version, payload, call_sid=None):
"""
Initialize the CallSummaryInstance
:returns: twilio.rest.insights.v1.summary.CallSummaryInstance
:rtype: twilio.rest.insights.v1.summary.CallSummaryInstance
"""
super(CallSummaryInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'call_sid': payload['call_sid'],
'call_type': payload['call_type'],
'call_state': payload['call_state'],
'processing_state': payload['processing_state'],
'direction': payload['direction'],
'disconnected_by': payload['disconnected_by'],
'start_time': deserialize.iso8601_datetime(payload['start_time']),
'end_time': deserialize.iso8601_datetime(payload['end_time']),
'duration': deserialize.integer(payload['duration']),
'connect_duration': deserialize.integer(payload['connect_duration']),
'from_': payload['from'],
'to': payload['to'],
'carrier_edge': payload['carrier_edge'],
'client_edge': payload['client_edge'],
'sip_edge': payload['sip_edge'],
'tags': payload['tags'],
'url': payload['url'],
}
# Context
self._context = None
self._solution = {'call_sid': call_sid or self._properties['call_sid'], }
开发者ID:twilio,项目名称:twilio-python,代码行数:34,代码来源:summary.py
示例11: __init__
def __init__(self, version, payload, account_sid, sid=None):
"""
Initialize the FeedbackSummaryInstance
:returns: twilio.rest.api.v2010.account.call.feedback_summary.FeedbackSummaryInstance
:rtype: twilio.rest.api.v2010.account.call.feedback_summary.FeedbackSummaryInstance
"""
super(FeedbackSummaryInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'call_count': deserialize.integer(payload['call_count']),
'call_feedback_count': deserialize.integer(payload['call_feedback_count']),
'date_created': deserialize.rfc2822_datetime(payload['date_created']),
'date_updated': deserialize.rfc2822_datetime(payload['date_updated']),
'end_date': deserialize.iso8601_datetime(payload['end_date']),
'include_subaccounts': payload['include_subaccounts'],
'issues': payload['issues'],
'quality_score_average': deserialize.decimal(payload['quality_score_average']),
'quality_score_median': deserialize.decimal(payload['quality_score_median']),
'quality_score_standard_deviation': deserialize.decimal(payload['quality_score_standard_deviation']),
'sid': payload['sid'],
'start_date': deserialize.iso8601_datetime(payload['start_date']),
'status': payload['status'],
}
# Context
self._context = None
self._solution = {'account_sid': account_sid, 'sid': sid or self._properties['sid'], }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:30,代码来源:feedback_summary.py
示例12: __init__
def __init__(self, version, payload, workspace_sid, worker_sid, sid=None):
"""
Initialize the WorkerChannelInstance
:returns: twilio.rest.taskrouter.v1.workspace.worker.worker_channel.WorkerChannelInstance
:rtype: twilio.rest.taskrouter.v1.workspace.worker.worker_channel.WorkerChannelInstance
"""
super(WorkerChannelInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'assigned_tasks': deserialize.integer(payload['assigned_tasks']),
'available': payload['available'],
'available_capacity_percentage': deserialize.integer(payload['available_capacity_percentage']),
'configured_capacity': deserialize.integer(payload['configured_capacity']),
'date_created': deserialize.iso8601_datetime(payload['date_created']),
'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
'sid': payload['sid'],
'task_channel_sid': payload['task_channel_sid'],
'task_channel_unique_name': payload['task_channel_unique_name'],
'worker_sid': payload['worker_sid'],
'workspace_sid': payload['workspace_sid'],
'url': payload['url'],
}
# Context
self._context = None
self._solution = {
'workspace_sid': workspace_sid,
'worker_sid': worker_sid,
'sid': sid or self._properties['sid'],
}
开发者ID:twilio,项目名称:twilio-python,代码行数:33,代码来源:worker_channel.py
示例13: __init__
def __init__(self, version, payload, room_sid, sid=None):
"""
Initialize the RoomRecordingInstance
:returns: twilio.rest.video.v1.room.recording.RoomRecordingInstance
:rtype: twilio.rest.video.v1.room.recording.RoomRecordingInstance
"""
super(RoomRecordingInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'status': payload['status'],
'date_created': deserialize.iso8601_datetime(payload['date_created']),
'sid': payload['sid'],
'source_sid': payload['source_sid'],
'size': deserialize.integer(payload['size']),
'url': payload['url'],
'type': payload['type'],
'duration': deserialize.integer(payload['duration']),
'container_format': payload['container_format'],
'codec': payload['codec'],
'grouping_sids': payload['grouping_sids'],
'track_name': payload['track_name'],
'room_sid': payload['room_sid'],
'links': payload['links'],
}
# Context
self._context = None
self._solution = {'room_sid': room_sid, 'sid': sid or self._properties['sid'], }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:31,代码来源:__init__.py
示例14: __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
示例15: __init__
def __init__(self, version, payload, account_sid, queue_sid, call_sid=None):
"""
Initialize the MemberInstance
:returns: twilio.rest.api.v2010.account.queue.member.MemberInstance
:rtype: twilio.rest.api.v2010.account.queue.member.MemberInstance
"""
super(MemberInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'call_sid': payload['call_sid'],
'date_enqueued': deserialize.rfc2822_datetime(payload['date_enqueued']),
'position': deserialize.integer(payload['position']),
'uri': payload['uri'],
'wait_time': deserialize.integer(payload['wait_time']),
}
# Context
self._context = None
self._solution = {
'account_sid': account_sid,
'queue_sid': queue_sid,
'call_sid': call_sid or self._properties['call_sid'],
}
开发者ID:pby2017,项目名称:library-for-twilio-python2,代码行数:25,代码来源:member.py
示例16: __init__
def __init__(self, version, payload, service_sid, sid=None):
"""
Initialize the ChannelInstance
:returns: twilio.rest.chat.v2.service.channel.ChannelInstance
:rtype: twilio.rest.chat.v2.service.channel.ChannelInstance
"""
super(ChannelInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'sid': payload['sid'],
'account_sid': payload['account_sid'],
'service_sid': payload['service_sid'],
'friendly_name': payload['friendly_name'],
'unique_name': payload['unique_name'],
'attributes': payload['attributes'],
'type': payload['type'],
'date_created': deserialize.iso8601_datetime(payload['date_created']),
'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
'created_by': payload['created_by'],
'members_count': deserialize.integer(payload['members_count']),
'messages_count': deserialize.integer(payload['messages_count']),
'url': payload['url'],
'links': payload['links'],
}
# Context
self._context = None
self._solution = {'service_sid': service_sid, 'sid': sid or self._properties['sid'], }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:30,代码来源:__init__.py
示例17: __init__
def __init__(self, version, payload, service_sid, sid=None):
"""
Initialize the UserInstance
:returns: twilio.rest.chat.v1.service.user.UserInstance
:rtype: twilio.rest.chat.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'],
'attributes': payload['attributes'],
'friendly_name': payload['friendly_name'],
'role_sid': payload['role_sid'],
'identity': payload['identity'],
'is_online': payload['is_online'],
'is_notifiable': payload['is_notifiable'],
'date_created': deserialize.iso8601_datetime(payload['date_created']),
'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
'joined_channels_count': deserialize.integer(payload['joined_channels_count']),
'links': payload['links'],
'url': payload['url'],
}
# Context
self._context = None
self._solution = {'service_sid': service_sid, 'sid': sid or self._properties['sid'], }
开发者ID:kanyapnp,项目名称:twilio-python,代码行数:30,代码来源:__init__.py
示例18: __init__
def __init__(self, version, payload, workspace_sid, sid=None):
"""
Initialize the TaskQueueInstance
:returns: twilio.rest.taskrouter.v1.workspace.task_queue.TaskQueueInstance
:rtype: twilio.rest.taskrouter.v1.workspace.task_queue.TaskQueueInstance
"""
super(TaskQueueInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'assignment_activity_sid': payload['assignment_activity_sid'],
'assignment_activity_name': payload['assignment_activity_name'],
'date_created': deserialize.iso8601_datetime(payload['date_created']),
'date_updated': deserialize.iso8601_datetime(payload['date_updated']),
'friendly_name': payload['friendly_name'],
'max_reserved_workers': deserialize.integer(payload['max_reserved_workers']),
'reservation_activity_sid': payload['reservation_activity_sid'],
'reservation_activity_name': payload['reservation_activity_name'],
'sid': payload['sid'],
'target_workers': payload['target_workers'],
'task_order': payload['task_order'],
'url': payload['url'],
'workspace_sid': payload['workspace_sid'],
'links': payload['links'],
}
# Context
self._context = None
self._solution = {
'workspace_sid': workspace_sid,
'sid': sid or self._properties['sid'],
}
开发者ID:pby2017,项目名称:library-for-twilio-python2,代码行数:34,代码来源:__init__.py
示例19: __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
示例20: __init__
def __init__(self, version, payload, session_sid, sid=None):
"""
Initialize the MessageInstance
:returns: twilio.rest.messaging.v1.session.message.MessageInstance
:rtype: twilio.rest.messaging.v1.session.message.MessageInstance
"""
super(MessageInstance, self).__init__(version)
# Marshaled Properties
self._properties = {
'account_sid': payload['account_sid'],
'service_sid': payload['service_sid'],
'messaging_service_sid': payload['messaging_service_sid'],
'session_sid': payload['session_sid'],
'sid': payload['sid'],
'index': deserialize.integer(payload['index']),
'author': payload['author'],
'body': payload['body'],
'attributes': payload['attributes'],
'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 = {'session_sid': session_sid, 'sid': sid or self._properties['sid'], }
开发者ID:twilio,项目名称:twilio-python,代码行数:28,代码来源:message.py
注:本文中的twilio.base.deserialize.integer函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论