Exemple #1
0
def transform_blob_output(result):
    return build_table_output(
        result, [('Name', 'name'), ('Blob Type', 'properties.blobType'),
                 ('Blob Tier', 'properties.blobTier'),
                 ('Length', 'properties.contentLength'),
                 ('Content Type', 'properties.contentSettings.contentType'),
                 ('Last Modified', 'properties.lastModified'),
                 ('Snapshot', 'snapshot')])
Exemple #2
0
def transform_support_types(result):
    for res in result:
        res['auth_types'] = ', '.join(res['auth_types'])
        res['client_types'] = ', '.join(res['client_types'])

    return build_table_output(result, [
        ('Source', 'source'),
        ('Target', 'target'),
        ('AuthType', 'auth_types'),
        ('ClientType', 'client_types'),
    ])
Exemple #3
0
def transform_secret_list(result):
    return build_table_output(result, [('Name', 'name'), ('Id', 'id'),
                                       ('ContentType', 'contentType'),
                                       ('Enabled', 'attributes.enabled'),
                                       ('Expires', 'attributes.expires')])
Exemple #4
0
def transform_share_list(result):
    return build_table_output(result,
                              [('Name', 'name'), ('Quota', 'properties.quota'),
                               ('Last Modified', 'properties.lastModified')])
Exemple #5
0
def transform_container_show(result):
    return build_table_output(result,
                              [('Name', 'name'),
                               ('Lease Status', 'properties.lease.status'),
                               ('Last Modified', 'properties.lastModified')])