예제 #1
0
def clone_type_param(*args, **kwargs):
    kwargs.setdefault("help", "clone type")
    kwargs.setdefault("type", click.Choice(["Runtime", "AbsoluteCopy"]))
    return positional_option(*args, **kwargs)
예제 #2
0
def container_id_param(*args, **kwargs):
    kwargs.setdefault('help', 'container name or ID (as returned by Container List)')
    kwargs.setdefault('type', ContainerParam())
    return positional_option(*args, **kwargs)
예제 #3
0
def oci_id_param(*args, **kwargs):
    kwargs.setdefault("help", "OCI name or ID (as returned by OCI List)")
    kwargs.setdefault("type", OCIParam())
    return positional_option(*args, **kwargs)
예제 #4
0
def oci_class_param(*args, **kwargs):
    kwargs.setdefault("help", "OCI class (as returned by OCI Classes), e.g. v1.standard-1.09")
    return positional_option(*args, **kwargs)
예제 #5
0
def path_param(*args, **kwargs):
    kwargs.setdefault('help', 'path inside container')
    return positional_option(*args, **kwargs)
예제 #6
0
def template_id_param(*args, **kwargs):
    kwargs.setdefault("help", "template ID (as returned by OCI Templates)")
    kwargs.setdefault("type", click.INT)
    return positional_option(*args, **kwargs)
예제 #7
0
def db_name_param(*args, **kwargs):
    kwargs.setdefault('help', 'logical database name')
    return positional_option(*args, **kwargs)
예제 #8
0
def container_param(*args, **kwargs):
    kwargs.setdefault('help', 'container name')
    return positional_option(*args, **kwargs)
예제 #9
0
def address_pool_param(*args, **kwargs):
    kwargs.setdefault('help', 'address class (default: 10.0.0.0/24)')
    kwargs.setdefault('type', click.Choice(['10.0.0.0/24', '192.168.0.0/24']))
    kwargs.setdefault('default', '10.0.0.0/24')
    return positional_option(*args, **kwargs)
예제 #10
0
def ordb_id_param(*args, **kwargs):
    kwargs.setdefault('help', 'ORDB instance name or ID (as returned by ORDB List)')
    kwargs.setdefault('type', ORDBParam())
    return positional_option(*args, **kwargs)
예제 #11
0
def opn_id_param(*args, **kwargs):
    kwargs.setdefault('help', 'OPN name or ID (as returned by OPN List)')
    kwargs.setdefault('type', OPNParam())
    return positional_option(*args, **kwargs)
예제 #12
0
def tier_param(*args, **kwargs):
    kwargs.setdefault('help', 'OVS volume tier (1...5, default 1)')
    kwargs.setdefault('type', click.IntRange(min=1, max=5))
    kwargs.setdefault('default', 1)
    return positional_option(*args, **kwargs)
예제 #13
0
def capacity_param(*args, **kwargs):
    kwargs.setdefault('help', 'OVS volume size in GB')
    kwargs.setdefault('type', click.INT)
    return positional_option(*args, **kwargs)
예제 #14
0
def ovs_id_param(*args, **kwargs):
    kwargs.setdefault('help', 'OVS name or id (as returned by OVS List)')
    kwargs.setdefault('type', OVSParam())
    return positional_option(*args, **kwargs)
예제 #15
0
def ovs_name_param(*args, **kwargs):
    kwargs.setdefault('help', 'OVS volume name')
    return positional_option(*args, **kwargs)