示例#1
0
                 default='http',
                 validator=None),
 field.RestField('proxy_url',
                 required=False,
                 encrypted=False,
                 default=None,
                 validator=validator.String(
                     max_len=4096,
                     min_len=0,
                 )),
 field.RestField('proxy_port',
                 required=False,
                 encrypted=False,
                 default=None,
                 validator=validator.Number(
                     max_val=65535,
                     min_val=1,
                 )),
 field.RestField('proxy_username',
                 required=False,
                 encrypted=False,
                 default=None,
                 validator=validator.String(
                     max_len=50,
                     min_len=0,
                 )),
 field.RestField('proxy_password',
                 required=False,
                 encrypted=True,
                 default=None,
                 validator=validator.String(
                     max_len=8192,
示例#2
0
     'proxy_url',
     required=False,
     encrypted=False,
     default=None,
     validator=validator.String(
         min_len=0, 
         max_len=4096, 
     )
 ), 
 field.RestField(
     'proxy_port',
     required=False,
     encrypted=False,
     default=None,
     validator=validator.Number(
         min_val=1, 
         max_val=65535, 
     )
 ), 
 field.RestField(
     'proxy_username',
     required=False,
     encrypted=False,
     default=None,
     validator=validator.String(
         min_len=0, 
         max_len=50, 
     )
 ), 
 field.RestField(
     'proxy_password',
     required=False,
    field.RestField('aws_region',
                    required=False,
                    encrypted=False,
                    default=None,
                    validator=None),
    field.RestField('sqs_queues',
                    required=False,
                    encrypted=False,
                    default=None,
                    validator=None),
    field.RestField('interval',
                    required=True,
                    encrypted=False,
                    default=30,
                    validator=validator.Number(
                        max_val=31536000,
                        min_val=0,
                    )),
    field.RestField('sourcetype',
                    required=True,
                    encrypted=False,
                    default='aws:sqs',
                    validator=None),
    field.RestField('index',
                    required=True,
                    encrypted=False,
                    default='default',
                    validator=None),
    field.RestField('disabled', required=False, validator=None)
]
model = RestModel(fields, name=None)
示例#4
0
     validator=None
 ), 
 field.RestField(
     'statistics',
     required=False,
     encrypted=False,
     default=None,
     validator=None
 ), 
 field.RestField(
     'polling_interval',
     required=False,
     encrypted=False,
     default='3600',
     validator=validator.Number(
         max_val=86400, 
         min_val=60, 
     )
 ), 
 field.RestField(
     'period',
     required=False,
     encrypted=False,
     default='300',
     validator=validator.Number(
         max_val=86400, 
         min_val=60, 
     )
 ), 
 field.RestField(
     'sourcetype',
     required=False,