Exemplo n.º 1
0
def patch_account(instance,
                  account_name,
                  resource_group_name,
                  tags=None,
                  encryption=None):
    account_encryption = AccountEncryption(key_source=encryption)
    body = NetAppAccountPatch(tags=tags, encryption=account_encryption)
    _update_mapper(instance, body, ['tags'])
    return body
Exemplo n.º 2
0
def create_account(client,
                   account_name,
                   resource_group_name,
                   location,
                   tags=None,
                   encryption=None):
    account_encryption = AccountEncryption(key_source=encryption)
    body = NetAppAccount(location=location,
                         tags=tags,
                         encryption=account_encryption)
    return client.begin_create_or_update(resource_group_name, account_name,
                                         body)