# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
#import os
#from .. import try_manual

# EXAMPLE: /Ledger/put/ConfidentialLedgerCreate
#@try_manual
#def step_create(test, checks=None):
#    if checks is None:
#        checks = []
#
#    return test.cmd(
#        "az confidentialledger managedccfs create "
#        '--location "southecentralus" '
#       '--members [{certificate:' + os.path.join("{TEST_DIR}", 'member0_cert.pem') + ',identifier:"member0",group:"group1"}] '
#        '--tags dept="finance" '
#        '--name "{myLedger}" '
#        '--resource-group "{rg}"'
#        checks=[],
#    )

    # The `create` command already waits for resource creation. Testing the `wait` command
    # results in an infinite loop of GET resource -> 200 OK.

# EXAMPLE: /Ledger/get/ConfidentialLedgerGet
#@try_manual
#def step_show(test, checks=None):
#    if checks is None:
#        checks = []
#    return test.cmd(
#        "az confidentialledger managedccfs show " '--name "{myLedger}" ' '--resource-group "{rg}"',
#        checks=checks,
#    )

# EXAMPLE: /Ledger/delete/ConfidentialLedgerDelete
#@try_manual
#def step_delete(test, checks=None):
#    if checks is None:
#        checks = []
#    test.cmd(
#        "az confidentialledger managedccfs delete -y "
#        '--name "{myLedger}" '
#        '--resource-group "{rg}"',
#        checks=checks,
#    )
