class SimpleIO(AdminSIO): input_required = ('cluster_id', AsIs('msg_id'), 'mime_type') input_optional = ('data', Int('expiration'), AsIs('correl_id'), AsIs('in_reply_to'), Int('priority'), Bool('exp_from_now')) output_required = (Bool('found'), ) output_optional = ('expiration_time', Int('size'))
class _CreateEditSIO(AdminSIO): input_required = ('name', 'type_', 'is_active', 'is_internal', 'is_channel', 'is_outconn', Int('pool_size'), Bool('sec_use_rbac'), 'cluster_id') input_optional = ('id', Int('cache_expiry'), 'address', Int('port'), Int('timeout'), 'data_format', 'version', 'extra', 'username', 'username_type', 'secret', 'secret_type', 'conn_def_id', 'cache_id') + \ extra_secret_keys + generic_attrs force_empty_keys = True
class SimpleIO(object): input_required = ('item_type', 'item') input_optional = ('max', 'dir', 'format', 'mime_type', Int('priority'), Int('expiration'), AsIs('msg_id'), Bool('ack'), Bool('reject')) default = ZATO_NONE use_channel_params_only = True
class SimpleIO(AdminSIO): request_elem = 'zato_pubsub_topics_get_list_request' response_elem = 'zato_pubsub_topics_get_list_response' input_required = ('cluster_id',) output_required = ('id', 'name', 'is_active', Int('current_depth'), Int('max_depth'), Int('consumers_count'), Int('producers_count')) output_optional = (UTC('last_pub_time'),)
class SimpleIO: input_required = ('topic_name',) input_optional = (AsIs('data'), List('data_list'), AsIs('msg_id'), 'has_gd', Int('priority'), Int('expiration'), 'mime_type', AsIs('correl_id'), 'in_reply_to', AsIs('ext_client_id'), 'ext_pub_time', 'pub_pattern_matched', 'security_id', 'ws_channel_id', 'service_id', 'data_parsed', 'meta', AsIs('group_id'), Int('position_in_group'), 'endpoint_id', List('reply_to_sk'), List('deliver_to_sk')) output_optional = (AsIs('msg_id'), List('msg_id_list'))
class CommonSubData: common = ('is_internal', 'topic_name', 'active_status', 'endpoint_type', 'endpoint_id', 'endpoint_name', 'delivery_method', 'delivery_data_format', 'delivery_batch_size', Bool('wrap_one_msg_in_list'), 'delivery_max_retry', Bool('delivery_err_should_block'), 'wait_sock_err', 'wait_non_sock_err', 'server_id', 'out_http_method', 'out_http_method', 'creation_time', DateTime('last_interaction_time'), 'last_interaction_type', 'last_interaction_details', Int('total_depth'), Int('current_depth_gd'), Int('current_depth_non_gd'), 'sub_key', 'has_gd', 'is_staging_enabled', 'sub_id', 'name', AsIs('ws_ext_client_id'), AsIs('ext_client_id'), 'topic_id') amqp = ('out_amqp_id', 'amqp_exchange', 'amqp_routing_key') files = ('files_directory_list', ) ftp = ('ftp_directory_list', ) pubapi = ('security_id', ) rest = ('out_rest_http_soap_id', 'rest_delivery_endpoint') service = ('service_id', ) sms_twilio = ('sms_twilio_from', 'sms_twilio_to_list') smtp = (Bool('smtp_is_html'), 'smtp_subject', 'smtp_from', 'smtp_to_list', 'smtp_body') soap = ('out_soap_http_soap_id', 'soap_delivery_endpoint') wsx = ('ws_channel_id', 'ws_channel_name', AsIs('ws_pub_client_id'), 'sql_ws_client_id', Bool('unsub_on_wsx_close'), Opaque('web_socket'))
class SimpleIO(AdminSIO): request_elem = 'zato_pubsub_consumers_get_info_request' response_elem = 'zato_pubsub_consumers_get_info_response' input_required = ('id', ) output_required = ('cluster_id', 'name', UTC('last_seen'), Int('current_depth'), Int('in_flight_depth'), 'sub_key')
class SimpleIO(AdminSIO): input_required = ('cluster_id', 'cache_id') output_required = ('name', 'is_active', 'is_default', 'cache_type', Int('max_size'), Int('max_item_size'), Bool('extend_expiry_on_get'), Bool('extend_expiry_on_set'), 'sync_method', 'persistent_storage', Int('current_size'))
def _get_sio_msg(): meta = (Int('limit'), 'next', Int('offset'), 'previous', Int('total_count')) location = Nested('location', 'building', Bool('confidential'), 'flat_number', 'level', Dict('point', 'lat', 'non'), 'postcode', 'state', 'street_name', 'street_number', 'street_suffix', 'street_type', 'suburb', 'unit') phones = ListOfDicts('phones', 'comment', Bool('confidential'), 'kind', 'number') postal_address = Dict('postal_address', Bool('confidential'), 'line1', 'line2', 'postcode', 'state', 'suburb') objects = (List('also_known_as'), 'catchment', 'description', ListOfDicts('emails'), Int('id'), Bool('is_mobile'), 'last_updated', location, 'name', Bool('ndis_approved'), Dict('organisation', 'id', 'name'), 'parking_info', phones, postal_address, 'provider_type', 'public_transport_info', 'type', 'web') return [Nested('meta', meta), Nested('objects', objects)]
class SimpleIO(AdminSIO): request_elem = 'zato_pubsub_topics_publish_request' response_elem = 'zato_pubsub_topics_publish_response' input_required = ('cluster_id', 'name', 'mime_type', Int('priority'), Int('expiration')) input_optional = ('client_id', 'payload') output_required = (AsIs('msg_id'), )
class SimpleIO(AdminSIO): request_elem = 'zato_pubsub_message_get_list_request' response_elem = 'zato_pubsub_message_get_list_response' input_required = ('cluster_id', 'source_type', 'source_name') output_required = (AsIs('msg_id'), 'topic', 'mime_type', Int('priority'), Int('expiration'), UTC('creation_time_utc'), UTC('expire_at_utc'), 'producer')
class SimpleIO(AdminSIO): request_elem = 'zato_pubsub_consumers_get_list_request' response_elem = 'zato_pubsub_consumers_get_list_response' input_required = ('cluster_id', 'topic_name') output_required = ('id', 'name', 'is_active', 'sec_type', 'client_id', Int('max_depth'), Int('current_depth'), Int('in_flight_depth'), 'sub_key', 'delivery_mode') output_optional = (UTC('last_seen'), 'callback') output_repeated = True
class SimpleIO(AdminSIO): request_elem = 'zato_definition_jms_wmq_edit_request' response_elem = 'zato_definition_jms_wmq_edit_response' input_required = (Int('id'), 'cluster_id', 'name', 'host', 'port', 'channel', Boolean('cache_open_send_queues'), Boolean('cache_open_receive_queues'), Boolean('use_shared_connections'), Boolean('ssl'), 'needs_mcd', Int('max_chars_printed'), Boolean('use_jms')) input_optional = ('queue_manager', 'username') output_required = ('id', 'name')
class GetTaskSIO(object): output_required = ('server_name', 'server_pid', 'sub_key', 'topic_id', 'topic_name', 'is_active', 'endpoint_id', 'endpoint_name', 'py_object', AsIs('python_id'), Int('len_messages'), Int('len_history'), Int('len_batches'), Int('len_delivered')) output_optional = 'last_sync', 'last_sync_sk', 'last_iter_run', AsIs( 'ext_client_id') output_elem = None response_elem = None
class _GetEndpointQueueMessagesSIO(GetListAdminSIO): input_required = ('cluster_id',) input_optional = GetListAdminSIO.input_optional + ('sub_id', 'sub_key') output_required = (AsIs('msg_id'), 'recv_time') output_optional = ('data_prefix_short', Int('delivery_count'), 'last_delivery_time', 'is_in_staging', 'queue_name', 'endpoint_id', 'sub_key', 'published_by_id', 'published_by_name', 'server_name', 'server_pid') output_repeated = True
class SimpleIO(AdminSIO): request_elem = 'zato_cloud_aws_s3_create_request' response_elem = 'zato_cloud_aws_s3_create_response' input_required = ('cluster_id', 'name', 'is_active', 'pool_size', 'address', Int('debug_level'), Bool('suppr_cons_slashes'), 'content_type', 'security_id', Bool('encrypt_at_rest'), 'storage_class') input_optional = ('metadata_', 'bucket') output_required = ('id', 'name')
class SimpleIO(GetListAdminSIO): input_required = (AsIs('cache_id'),) input_optional = GetListAdminSIO.input_optional + (Int('max_chars'),) output_required = (AsIs('cache_id'), 'key', 'position', 'hits', 'expiry_op', 'expiry_left', 'expires_at', 'last_read', 'prev_read', 'last_write', 'prev_write', 'server') output_optional = ('value', 'chars_omitted') output_repeated = True
class SimpleIO(_UpdateSIO): input_required = _UpdateSIO.input_required + ('id', 'config_cid') input_optional = tuple( drop_sio_elems(_UpdateSIO.input_optional, 'id')) + (Int('bind_port'), 'service_name') request_elem = 'zato_channel_zmq_start_request' response_elem = 'zato_channel_zmq_start_response'
class SimpleIO(AdminSIO): input_required = ('cluster_id', AsIs('msg_id')) output_optional = (AsIs('msg_id'), 'recv_time', 'data', Int('delivery_count'), 'last_delivery_time', 'is_in_staging', 'queue_name', 'subscriber_id', 'subscriber_name', 'size', 'priority', 'mime_type', 'sub_pattern_matched', AsIs('correl_id'), 'in_reply_to', 'expiration', 'expiration_time', AsIs('sub_hook_service_id'), 'sub_hook_service_name', AsIs('ext_client_id'), 'published_by_id', 'published_by_name', 'pub_pattern_matched')
class SimpleIO(GetListAdminSIO): input_required = ('cluster_id', 'sub_id') output_required = (AsIs('msg_id'), 'recv_time', 'data_prefix_short') output_optional = (Int('delivery_count'), 'last_delivery_time', 'is_in_staging', 'has_gd', 'queue_name', 'endpoint_id') output_repeated = True
class SimpleIO(BaseSIO): input_required = 'current_app', input_optional = 'ust', 'current_ust', AsIs('user_id'), 'name', 'value', Opaque('data'), Bool('decrypt'), \ Bool('serialize_dt'), Int('expiration'), Bool('encrypt'), 'target_ust' output_optional = BaseSIO.output_optional + (Bool('found'), 'result', 'name', 'value', 'creation_time', 'last_modified', 'expiration_time', 'is_encrypted') default_value = _invalid
class SimpleIO(object): input_required = tuple( Edit.SimpleIO.input_required) + ('id', 'config_cid') input_optional = tuple(Edit.SimpleIO.input_optional) + ( Int('bind_port'), 'service_name', 'sec_name', 'sec_type') request_elem = 'zato_channel_web_socket_start_request' response_elem = 'zato_channel_web_socket_start_response'
class SimpleIO(_CtxInputUsing.SimpleIO): input_required = ('ust', 'current_app') input_optional = (AsIs('user_id'), 'username', 'email', 'display_name', 'first_name', 'middle_name', 'last_name', 'sign_up_status', 'approval_status', Bool('paginate'), Int('cur_page'), Int('page_size'), 'name_op', 'is_name_exact') output_required = ('status',) output_optional = BaseSIO.output_optional + (Int('total'), Int('num_pages'), Int('page_size'), Int('cur_page'), 'has_next_page', 'has_prev_page', Int('next_page'), Int('prev_page'), List('result')) default_value = _invalid
class SimpleIO: input_required = (AsIs('is_a'), Boolean('b'), Bool('c'), CSV('d'), Dict('e'), Float('f'), Int('g'), Integer('h'), List('i'), ListOfDicts('j'), Nested('k'), Opaque('l'), Unicode('m'), UTC('n')) input_optional = (AsIs('is_aa'), Boolean('bb'), Bool('cc'), CSV('dd'), Dict('ee'), Float('ff'), Int('gg'), Integer('hh'), List('ii'), ListOfDicts('jj'), Nested('kk'), Opaque('ll'), Unicode('mm'), UTC('nn')) output_required = (AsIs('is_aaa'), Boolean('bbb'), Bool('ccc'), CSV('ddd'), Dict('eee'), Float('fff'), Int('ggg'), Integer('hhh'), List('iii'), ListOfDicts('jjj'), Nested('kkk'), Opaque('lll'), Unicode('mmm'), UTC('nnn')) output_optional = (AsIs('is_aaaa'), Boolean('bbbb'), Bool('cccc'), CSV('dddd'), Dict('eeee'), Float('ffff'), Int('gggg'), Integer('hhhh'), List('iiii'), ListOfDicts('jjjj'), Nested('kkkk'), Opaque('llll'), Unicode('mmmm'), UTC('nnnn'))
class SimpleIO(BaseSIO): input_required = ('ust', 'current_app', 'new_password') input_optional = (AsIs('user_id'), 'old_password', Int('password_expiry'), Bool('must_change'))
class SimpleIO: input_required = ('topic_name', ) output_optional = (Int('current_depth_non_gd'), )
class SimpleIO: input_required = ('topic_name', ) output_optional = (Int('depth'), )
class SimpleIO(AdminSIO): input_required = ('cluster_id', 'topic_id') input_optional = (Bool('paginate'), Int('cur_page'), 'query') output_required = (AsIs('_meta'), ) output_optional = (AsIs('response'), ) response_elem = None
elem = 'pubsub_topic' model = PubSubTopic label = 'a pub/sub topic' get_list_docs = 'pub/sub topics' broker_message = BROKER_MSG_PUBSUB broker_message_prefix = 'TOPIC_' list_func = pubsub_topic_list skip_input_params = [ 'is_internal', 'current_depth_gd', 'last_pub_time', 'last_pub_msg_id', 'last_endpoint_id', 'last_endpoint_name' ] input_optional_extra = ['needs_details', 'on_no_subs_pub'] output_optional_extra = [ 'is_internal', Int('current_depth_gd'), Int('current_depth_non_gd'), 'last_pub_time', 'hook_service_name', 'last_pub_time', AsIs('last_pub_msg_id'), 'last_endpoint_id', 'last_endpoint_name', Bool('last_pub_has_gd'), 'last_pub_server_pid', 'last_pub_server_name', 'on_no_subs_pub' ] # ################################################################################################################################ sub_broker_attrs = ('active_status', 'active_status', 'cluster_id', 'creation_time', 'endpoint_id', 'has_gd', 'id', 'is_durable', 'is_internal', 'name', 'out_amqp_id', 'out_http_soap_id', 'sub_key', 'topic_id', 'ws_channel_id', 'ws_sub_id', 'delivery_group_size')
class SimpleIO(AdminSIO): input_required = 'cluster_id', 'id', AsIs('pub_client_id') input_optional = 'request_data', Int('timeout') output_optional = 'response_data' response_elem = None