Exemple #1
0
def delete_quota(name, input_data='y\n', optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'delete-quota',
                                    positional_args=[name],
                                    input_data=input_data,
                                    optional_args=optional_args)
    return out, err
Exemple #2
0
def delete_domain(domain_name, input_data='y\n', optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'delete-domain',
                                    positional_args=[domain_name],
                                    input_data=input_data,
                                    optional_args=optional_args)
    return out, err
Exemple #3
0
def unset_space_quota(space_name, space_quota_name, optional_args=dict()):
    out, err = common.frame_command(
        'hcf',
        'unset-space-quota',
        positional_args=[space_name, space_quota_name],
        optional_args=optional_args)
    return out, err
def unset_space_role(userName, orgName, spaceName, spaceRole,
                     optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'unset-space-role',
        positional_args=[userName, orgName, spaceName,  spaceRole],
        optional_args=optional_args)
    return out, err
Exemple #5
0
def add_user(name,
             password,
             familyname,
             givenname,
             email,
             optional_args=dict()):
    out, err = common.frame_command(
        'hcp',
        'add-user',
        positional_args=[name, password, familyname, givenname, email],
        optional_args=optional_args)
    return out, err
Exemple #6
0
def set_quota(org_name, quota_name, optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'set-quota',
                                    positional_args=[org_name, quota_name],
                                    optional_args=optional_args)
    return out, err
Exemple #7
0
def set_target(optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'target',
                                    optional_args=optional_args)
    return out, err
Exemple #8
0
def update_security_group(secgroup, secgroup_path,  optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'update-security-group', positional_args=
        [secgroup, secgroup_path], optional_args=optional_args)
    return out, err
Exemple #9
0
def login(optional_args=dict()):
    out, err = common.frame_command('hsm',
                                    'login',
                                    optional_args=optional_args)
    return out, err
Exemple #10
0
def scale_app(app_name, optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'scale', positional_args=[app_name],
        optional_args=optional_args)
    return out, err
Exemple #11
0
def enable_feature_flag(feature_name, optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'enable-feature-flag', positional_args=[feature_name],
        optional_args=optional_args)
    return out, err
def set_org_role(userName, orgName,  orgRole, optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'set-org-role', positional_args=[userName, orgName,  orgRole],
        optional_args=optional_args)
    return out, err
Exemple #13
0
def list_space_quotas(optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'space-quotas',
                                    optional_args=optional_args)
    return out, err
Exemple #14
0
def bind_staging_security_group(secgroup, optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'bind-staging-security-group', positional_args=[secgroup],
        optional_args=optional_args)
    return out, err
Exemple #15
0
def list_staging_security_groups(optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'staging-security-groups', optional_args=optional_args)
    return out, err
Exemple #16
0
def unbind_security_group(secgroup, org, space, optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'unbind-security-group', positional_args=[secgroup, org, space],
        optional_args=optional_args)
    return out, err
Exemple #17
0
def view_security_group(secgroup, optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'security-group', positional_args=[secgroup],
        optional_args=optional_args)
    return out, err
Exemple #18
0
def delete_security_group(secgroup, input_data='y\n', optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'delete-security-group', positional_args=[secgroup],
        input_data=input_data, optional_args=optional_args)
    return out, err
Exemple #19
0
def update_space_quota(name, optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'update-space-quota',
                                    positional_args=[name],
                                    optional_args=optional_args)
    return out, err
def create_user(name, password,  optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'create-user', positional_args=[name, password],
        optional_args=optional_args)
    return out, err
Exemple #21
0
def space_quota_info(name, optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'space-quota',
                                    positional_args=[name],
                                    optional_args=optional_args)
    return out, err
Exemple #22
0
def show_app(app_name, optional_args=dict()):
    out, err = common.frame_command(
        "hcf", 'app', positional_args=[app_name],
        optional_args=optional_args)
    return out, err
Exemple #23
0
def list_credentials(optional_args=dict()):
    out, err = common.frame_command('hce',
                                    'list-credentials',
                                    optional_args=optional_args)
    return out, err
Exemple #24
0
def connect_target(api_url, optional_args=dict()):
    out, err = common.frame_command('hsm',
                                    'api',
                                    positional_args=[api_url],
                                    optional_args=optional_args)
    return out, err
Exemple #25
0
def delete_app(app_name, input_data='y\n', optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'delete', positional_args=[app_name],
        input_data=input_data, optional_args=optional_args)
    return out, err
Exemple #26
0
def update_deployment_target(optional_args=dict()):
    out, err = common.frame_command(
        'hce', 'update-deployment-target', optional_args=optional_args)
    return out, err
Exemple #27
0
def push_docker_app(docker_app_name, optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'push', positional_args=[docker_app_name],
        optional_args=optional_args)
    return out, err
Exemple #28
0
def marketplace(optional_args=dict()):
    out, err = common.frame_command('hcf',
                                    'marketplace',
                                    optional_args=optional_args)
    return out, err
Exemple #29
0
def list_apps(optional_args=dict()):
    out, err = common.frame_command(
        'hcf', 'apps', optional_args=optional_args)
    return out, err
Exemple #30
0
def list_deployment_targets(optional_args=dict()):
    out, err = common.frame_command(
        'hce', 'list-deployment-targets', optional_args=optional_args)
    return out, err