requestbuilder.Arg

Here are the examples of the python api requestbuilder.Arg taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

10 Examples 7

Example 1

Project: requestbuilder
Source File: util.py
View license
def add_default_routes(arglike_obj, default_routes):
    if isinstance(arglike_obj, requestbuilder.Arg):
        if arglike_obj.routes is None:
            arglike_obj.routes = default_routes
    elif isinstance(arglike_obj, list):
        # Note that MutuallyExclusiveArgList is a list
        for item in arglike_obj:
            add_default_routes(item, default_routes)

Example 2

Project: euca2ools
Source File: __init__.py
View license
def arg_account_name(**kwargs):
    return [Arg('AccountName', metavar='ACCOUNT', **kwargs),
            Arg('-a', '--account-name', action='store_true', dest='dummy',
                route_to=None, help=argparse.SUPPRESS)]

Example 3

Project: euca2ools
Source File: __init__.py
View license
def arg_account_alias(**kwargs):
    return [Arg('AccountAlias', metavar='ACCOUNT', **kwargs),
            Arg('-a', '--account-alias', action='store_true', dest='dummy',
                route_to=None, help=argparse.SUPPRESS)]

Example 4

Project: euca2ools
Source File: __init__.py
View license
def arg_user(**kwargs):
    return [Arg('UserName', metavar='USER', **kwargs),
            Arg('-u', '--user-name', action='store_true', dest='dummy',
                route_to=None, help=argparse.SUPPRESS)]

Example 5

Project: euca2ools
Source File: __init__.py
View license
def arg_group(**kwargs):
    return [Arg('GroupName', metavar='GROUP', **kwargs),
            Arg('-g', '--group-name', action='store_true', dest='dummy',
                route_to=None, help=argparse.SUPPRESS)]

Example 6

Project: euca2ools
Source File: __init__.py
View license
def arg_role(**kwargs):
    return [Arg('RoleName', metavar='ROLE', **kwargs),
            Arg('-r', '--role-name', action='store_true', dest='dummy',
                route_to=None, help=argparse.SUPPRESS)]

Example 7

Project: euca2ools
Source File: __init__.py
View license
def arg_iprofile(**kwargs):
    return [Arg('InstanceProfileName', metavar='IPROFILE', **kwargs),
            Arg('-s', '--instance-profile-name', action='store_true',
                dest='dummy', route_to=None, help=argparse.SUPPRESS)]

Example 8

Project: euca2ools
Source File: __init__.py
View license
def arg_key_id(**kwargs):
    return [Arg('AccessKeyId', metavar='KEY_ID', **kwargs),
            Arg('-k', '--user-key-id', action='store_true', dest='dummy',
                route_to=None, help=argparse.SUPPRESS)]

Example 9

Project: euca2ools
Source File: __init__.py
View license
def arg_signing_cert(**kwargs):
    return [Arg('CertificateId', metavar='CERT', **kwargs),
            Arg('-c', '--certificate-id', action='store_true',
                dest='dummy', route_to=None, help=argparse.SUPPRESS)]

Example 10

Project: euca2ools
Source File: __init__.py
View license
def arg_server_cert(**kwargs):
    return [Arg('ServerCertificateName', metavar='CERT', **kwargs),
            Arg('-s', '--server-certificate-name', action='store_true',
                dest='dummy', route_to=None, help=argparse.SUPPRESS)]