Ejemplo n.º 1
0
 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'))
Ejemplo n.º 2
0
 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')
Ejemplo n.º 3
0
 class SimpleIO(AdminSIO):
     input_required = ('sub_key',)
     input_optional = ('batch_size',)
     output_optional = (AsIs('msg_id'), AsIs('correl_id'), 'in_reply_to', 'priority', 'size',
         'data_format', 'mime_type', 'data', 'expiration', 'expiration_time', 'ext_client_id', 'topic_name',
         'recv_time', 'delivery_count')
     output_repeated = True
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 class SimpleIO(GetListAdminSIO):
     input_required = ('cluster_id', 'topic_id')
     input_optional = GetListAdminSIO.input_optional + ('has_gd',)
     output_required = (AsIs('msg_id'), 'pub_time', 'data_prefix_short', 'pub_pattern_matched')
     output_optional = (AsIs('correl_id'), 'in_reply_to', 'size', 'service_id', 'security_id', 'ws_channel_id',
         'service_name', 'sec_name', 'ws_channel_name', 'endpoint_id', 'endpoint_name', 'server_pid', 'server_name')
     output_repeated = True
Ejemplo n.º 6
0
 class SimpleIO(GetListAdminSIO):
     input_required = 'cluster_id', 'server_name', 'server_pid'
     input_optional = GetListAdminSIO.input_optional + ('topic_name',)
     output_required = AsIs('log_id'), AsIs('event_id'), 'name', 'timestamp'
     output_optional = 'ctx'
     output_repeated = True
     response_elem = None
Ejemplo n.º 7
0
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'))
Ejemplo n.º 8
0
 class SimpleIO(AdminSIO):
     input_required = (AsIs('pub_client_id'), AsIs('ext_client_id'),
                       'is_internal', 'local_address', 'peer_address',
                       'peer_fqdn', 'connection_time', 'last_seen',
                       'channel_name')
     input_optional = ('ext_client_name', )
     output_optional = ('ws_client_id', )
Ejemplo n.º 9
0
class _GetSIO(AdminSIO):
    input_required = (AsIs('msg_id'), )
    output_optional = ('topic_id', 'topic_name', AsIs('msg_id'), AsIs('correl_id'), 'in_reply_to', 'pub_time', \
        'ext_pub_time', 'pub_pattern_matched', 'sub_pattern_matched', 'priority', 'data_format', 'mime_type', 'size', 'data',
        'expiration', 'expiration_time', 'endpoint_id', 'endpoint_name', 'recv_time', 'pub_hook_service_id',
        'pub_hook_service_name', AsIs('ext_client_id'), 'server_name', 'server_pid', 'published_by_id', 'published_by_name',
        'subscriber_id', 'subscriber_name')
Ejemplo n.º 10
0
 class SimpleIO(GetListAdminSIO):
     input_required = ('cluster_id',)
     output_required = ('server_name', 'server_pid', AsIs('thread_id'), AsIs('object_id'),
         'sub_key', 'topic_id', 'topic_name', 'messages')
     output_optional = ('last_sync', 'last_delivery', AsIs('ext_client_id'))
     output_repeated = True
     output_elem = None
Ejemplo n.º 11
0
 class SimpleIO(GetListAdminSIO):
     input_required = 'cluster_id', AsIs('pub_client_id')
     output_required = ('sub_id', 'sub_key', DateTime('creation_time'),
                        'topic_id', 'topic_name', 'sub_pattern_matched',
                        AsIs('ext_client_id'), 'endpoint_id',
                        'endpoint_name')
     output_repeated = True
Ejemplo n.º 12
0
 class SimpleIO(AdminSIO):
     input_required = ('cluster_id', 'endpoint_id')
     output_required = ('topic_id', 'topic_name', 'pub_time',
                        AsIs('pub_msg_id'), 'pattern_matched', 'has_gd',
                        'data')
     output_optional = (AsIs('pub_correl_id'), 'in_reply_to',
                        AsIs('ext_client_id'), 'ext_pub_time')
     output_repeated = True
Ejemplo n.º 13
0
Archivo: client.py Proyecto: znavy/zato
 class SimpleIO(AdminSIO):
     request_elem = 'zato_channel_web_socket_client_create_request'
     response_elem = 'zato_channel_web_socket_client_create_response'
     input_required = (AsIs('pub_client_id'), AsIs('ext_client_id'),
                       'is_internal', 'local_address', 'peer_address',
                       'peer_fqdn', 'connection_time', 'last_seen',
                       'channel_name')
     input_optional = ('ext_client_name', )
Ejemplo n.º 14
0
Archivo: amqp.py Proyecto: xbx/zato
 class SimpleIO(AdminSIO):
     request_elem = 'zato_outgoing_amqp_create_request'
     response_elem = 'zato_outgoing_amqp_create_response'
     input_required = ('cluster_id', 'name', 'is_active', 'def_id',
                       'delivery_mode', 'priority')
     input_optional = ('content_type', 'content_encoding', 'expiration',
                       AsIs('user_id'), AsIs('app_id'))
     output_required = ('id', 'name')
Ejemplo n.º 15
0
 class SimpleIO(AdminSIO):
     input_required = (AsIs('pub_client_id'), AsIs('ext_client_id'),
                       'is_internal', 'local_address', 'peer_address',
                       'peer_fqdn', 'connection_time', 'last_seen',
                       'channel_name')
     input_optional = 'ext_client_name', 'peer_forwarded_for', 'peer_forwarded_for_fqdn'
     output_optional = 'ws_client_id'
     response_elem = None
Ejemplo n.º 16
0
 class SimpleIO(GetListAdminSIO):
     input_required = 'id', 'cluster_id'
     output_required = ('local_address', 'peer_address', 'peer_fqdn',
                        AsIs('pub_client_id'), AsIs('ext_client_id'),
                        DateTime('connection_time'), 'server_name',
                        'server_proc_pid')
     output_optional = 'ext_client_name', 'sub_count', 'peer_forwarded_for', 'peer_forwarded_for_fqdn'
     output_repeated = True
Ejemplo n.º 17
0
 class SimpleIO:
     input_required = ('cluster_id', 'endpoint_id')
     output_required = ('topic_id', 'name', 'is_active', 'is_internal',
                        'max_depth_gd', 'max_depth_non_gd')
     output_optional = ('last_pub_time', AsIs('last_msg_id'),
                        AsIs('last_correl_id'), 'last_in_reply_to',
                        AsIs('ext_client_id'))
     output_repeated = True
Ejemplo n.º 18
0
 def test_sio(self):
     self.assertEquals(self.sio.request_elem, 'zato_outgoing_amqp_get_list_request')
     self.assertEquals(self.sio.response_elem, 'zato_outgoing_amqp_get_list_response')
     self.assertEquals(self.sio.input_required, ('cluster_id',))
     self.assertEquals(self.sio.output_required, ('id', 'name', 'is_active', 'def_id', 'delivery_mode', 'priority', 'def_name'))
     self.assertEquals(self.sio.output_optional, ('content_type', 'content_encoding', 'expiration',
         self.wrap_force_type(AsIs('user_id')), self.wrap_force_type(AsIs('app_id'))))
     self.assertEquals(self.sio.namespace, zato_namespace)
     self.assertRaises(AttributeError, getattr, self.sio, 'input_optional')
Ejemplo n.º 19
0
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
Ejemplo n.º 20
0
 class SimpleIO:
     input_required = ('cluster_id', 'topic_id')
     output_required = ('name', 'is_active', 'is_internal',
                        'pub_pattern_matched')
     output_optional = ('service_id', 'security_id', 'ws_channel_id',
                        'last_seen', 'last_pub_time', AsIs('last_msg_id'),
                        AsIs('last_correl_id'), 'last_in_reply_to',
                        'service_name', 'sec_name', 'ws_channel_name',
                        AsIs('ext_client_id'))
     output_repeated = True
Ejemplo n.º 21
0
 class SimpleIO:
     input_required = ('topic_name', )
     input_optional = ('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',
                       'pattern_matched', 'security_id',
                       'ws_channel_id', 'service_id', 'data_parsed', 'meta',
                       AsIs('group_id'), Int('position_in_group'),
                       'endpoint_id')
     output_optional = (AsIs('msg_id'), List('msg_id_list'))
Ejemplo n.º 22
0
    class SimpleIO(BaseSIO):
        input_required = ('ust', 'current_app')
        input_optional = (AsIs('user_id'), 'username', 'password', Bool('password_must_change'), 'password_expiry',
            'display_name', 'first_name', 'middle_name', 'last_name', 'email', 'is_locked', 'sign_up_status')

        output_optional = BaseSIO.output_optional + (AsIs('user_id'), 'username', 'email', 'display_name', 'first_name',
            'middle_name', 'last_name', 'is_active', 'is_internal', 'is_super_user', 'is_approval_needed',
            'approval_status', 'approval_status_mod_time', 'approval_status_mod_by', 'is_locked', 'locked_time',
            'creation_ctx', 'locked_by', 'approv_rej_time', 'approv_rej_by', 'password_expiry', 'password_is_set',
            'password_must_change', 'password_last_set', 'sign_up_status','sign_up_time')

        default_value = _invalid
Ejemplo n.º 23
0
 class SimpleIO(object):
     request_elem = 'zato_pattern_delivery_in_doubt_get_list_request'
     response_elem = 'zato_pattern_delivery_in_doubt_get_list_response'
     input_required = (AsIs('task_id'), )
     output_required = ('def_name', 'target_type', AsIs('task_id'),
                        'creation_time_utc', 'last_used_utc',
                        'source_count', 'target_count', 'resubmit_count',
                        'state', 'retry_repeats', 'check_after',
                        'retry_seconds')
     output_optional = ('payload', 'args', 'kwargs', 'target',
                        'payload_sha1', 'payload_sha256')
     output_repeated = True
Ejemplo n.º 24
0
    class SimpleIO:
        input_required = (AsIs('should_as_is'), 'is_boolean', 'should_boolean',
                          CSV('csv1'), Dict('dict'), Float('float'),
                          Integer('integer'), Integer('integer2'),
                          List('list'), ListOfDicts('list_of_dicts'),
                          Unicode('unicode1'), Unicode('unicode2'), UTC('utc'))

        output_required = (AsIs('should_as_is'),
                           'is_boolean', 'should_boolean', CSV('csv1'),
                           CSV('csv2'), CSV('csv3'), Dict('dict'),
                           Float('float'), Integer('integer'),
                           Integer('integer2'), List('list'),
                           ListOfDicts('list_of_dicts'), Unicode('unicode1'),
                           Unicode('unicode2'), UTC('utc'))
Ejemplo n.º 25
0
 class SimpleIO(AdminSIO):
     request_elem = 'zato_http_soap_edit_request'
     response_elem = 'zato_http_soap_edit_response'
     input_required = 'id', 'cluster_id', 'name', 'is_active', 'connection', 'transport', 'url_path'
     input_optional = 'service', AsIs('security_id'), 'method', 'soap_action', 'soap_version', 'data_format', \
         'host', 'ping_method', 'pool_size', Boolean('merge_url_params_req'), 'url_params_pri', 'params_pri', \
         'serialization_type', 'timeout', AsIs('sec_tls_ca_cert_id'), Boolean('has_rbac'), 'content_type', \
         'cache_id', Integer('cache_expiry'), 'content_encoding', Boolean('match_slash'), 'http_accept', \
         List('service_whitelist'), 'is_rate_limit_active', 'rate_limit_type', 'rate_limit_def', \
         Boolean('rate_limit_check_parent_def'), Boolean('sec_use_rbac'), 'hl7_version', 'json_path', \
         'should_parse_on_input', 'should_validate', 'should_return_errors', 'data_encoding', \
         'is_audit_log_sent_active', 'is_audit_log_received_active', \
         Integer('max_len_messages_sent'), Integer('max_len_messages_received'), \
         Integer('max_bytes_per_message_sent'), Integer('max_bytes_per_message_received')
     output_required = 'id', 'name'
Ejemplo n.º 26
0
 class SimpleIO:
     input_required = (Integer('id_guest'), Integer('id_room'),
                       Integer('guests'), Date('check_in'),
                       Date('check_out'), Float('base_price'),
                       Float('taxes_percentage'), Float('taxes_value'),
                       Float('total_price'))
     input_optional = (DateTime('checked_in'), DateTime('checked_out'),
                       DateTime('cancelled'), 'status', 'meal_plan',
                       Dict('extras'), 'uuid', AsIs('session'))
     output_optional = (
         'id',
         'id_guest',
         'id_room',
         DateTime('reserved'),
         'guests',
         Date('check_in'),
         Date('check_out'),
         'base_price',
         'taxes_percentage',
         'taxes_value',
         'total_price',
         'locator',
         'pin',
         'status',
         'meal_plan',
         Dict('extras'),
         DateTime('checked_in'),
         DateTime('checked_out'),
         DateTime('cancelled'),
         # 'uuid', # JSON serializaction error
         # https://forum.zato.io/t/returning-uuid-types-from-services-using-json/1735
         'nights')
     skip_empty_keys = True
Ejemplo n.º 27
0
 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
Ejemplo n.º 28
0
Archivo: topics.py Proyecto: znavy/zato
 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'), )
Ejemplo n.º 29
0
 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
Ejemplo n.º 30
0
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