# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------
# pylint: disable=unused-argument

from .. import try_manual


# EXAMPLE: /MarketplaceAgreements/get/MarketplaceAgreements_List
@try_manual
def step_terms_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent terms list',
             checks=checks)


# EXAMPLE: /Organization/put/Organization_Create
@try_manual
def step_organization_create(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization create '
             '--location "eastus2euap" '
             '--offer-id "confluent-cloud-azure-stag" '
             '--plan-id "confluent-cloud-azure-payg-stag" '
             '--plan-name "Confluent Cloud - Pay as you Go" '
             '--publisher-id "confluentinc" '
             '--term-unit "P1M" '
             '--tags environment="Dev" '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)
    test.cmd('az confluent organization wait --created '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=[])


# EXAMPLE: /Organization/get/Organization_Get
@try_manual
def step_organization_show(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization show '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)


# EXAMPLE: /Organization/get/Organization_ListByResourceGroup
@try_manual
def step_organization_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list '
             '--resource-group "{rg}"',
             checks=checks)


# EXAMPLE: /Organization/get/Organization_ListBySubscription
@try_manual
def step_organization_list2(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list '
             '-g ""',
             checks=checks)


# EXAMPLE: /Organization/patch/Confluent_Update
@try_manual
def step_organization_update(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization update '
             '--tags client="dev-client" env="dev" '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)


# EXAMPLE: /Organization/delete/Confluent_Delete
@try_manual
def step_organization_delete(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization delete -y '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)

95238058713c9725fef1db4627e7330ddd04fd1e
<mask token>


@try_manual
def step_terms_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent terms list', checks=checks)


@try_manual
def step_organization_create(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization create --location "eastus2euap" --offer-id "confluent-cloud-azure-stag" --plan-id "confluent-cloud-azure-payg-stag" --plan-name "Confluent Cloud - Pay as you Go" --publisher-id "confluentinc" --term-unit "P1M" --tags environment="Dev" --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)
    test.cmd(
        'az confluent organization wait --created --name "{myOrganization}" --resource-group "{rg}"'
        , checks=[])


@try_manual
def step_organization_show(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization show --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)


@try_manual
def step_organization_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list --resource-group "{rg}"',
        checks=checks)


<mask token>

<mask token>


@try_manual
def step_terms_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent terms list', checks=checks)


@try_manual
def step_organization_create(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization create --location "eastus2euap" --offer-id "confluent-cloud-azure-stag" --plan-id "confluent-cloud-azure-payg-stag" --plan-name "Confluent Cloud - Pay as you Go" --publisher-id "confluentinc" --term-unit "P1M" --tags environment="Dev" --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)
    test.cmd(
        'az confluent organization wait --created --name "{myOrganization}" --resource-group "{rg}"'
        , checks=[])


@try_manual
def step_organization_show(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization show --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)


@try_manual
def step_organization_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list --resource-group "{rg}"',
        checks=checks)


@try_manual
def step_organization_list2(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list -g ""', checks=checks)


@try_manual
def step_organization_update(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization update --tags client="dev-client" env="dev" --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)


<mask token>

<mask token>


@try_manual
def step_terms_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent terms list', checks=checks)


@try_manual
def step_organization_create(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization create --location "eastus2euap" --offer-id "confluent-cloud-azure-stag" --plan-id "confluent-cloud-azure-payg-stag" --plan-name "Confluent Cloud - Pay as you Go" --publisher-id "confluentinc" --term-unit "P1M" --tags environment="Dev" --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)
    test.cmd(
        'az confluent organization wait --created --name "{myOrganization}" --resource-group "{rg}"'
        , checks=[])


@try_manual
def step_organization_show(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization show --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)


@try_manual
def step_organization_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list --resource-group "{rg}"',
        checks=checks)


@try_manual
def step_organization_list2(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list -g ""', checks=checks)


@try_manual
def step_organization_update(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization update --tags client="dev-client" env="dev" --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)


@try_manual
def step_organization_delete(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization delete -y --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)

from .. import try_manual


@try_manual
def step_terms_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent terms list', checks=checks)


@try_manual
def step_organization_create(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization create --location "eastus2euap" --offer-id "confluent-cloud-azure-stag" --plan-id "confluent-cloud-azure-payg-stag" --plan-name "Confluent Cloud - Pay as you Go" --publisher-id "confluentinc" --term-unit "P1M" --tags environment="Dev" --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)
    test.cmd(
        'az confluent organization wait --created --name "{myOrganization}" --resource-group "{rg}"'
        , checks=[])


@try_manual
def step_organization_show(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization show --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)


@try_manual
def step_organization_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list --resource-group "{rg}"',
        checks=checks)


@try_manual
def step_organization_list2(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list -g ""', checks=checks)


@try_manual
def step_organization_update(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization update --tags client="dev-client" env="dev" --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)


@try_manual
def step_organization_delete(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd(
        'az confluent organization delete -y --name "{myOrganization}" --resource-group "{rg}"'
        , checks=checks)

# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------
# pylint: disable=unused-argument

from .. import try_manual


# EXAMPLE: /MarketplaceAgreements/get/MarketplaceAgreements_List
@try_manual
def step_terms_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent terms list',
             checks=checks)


# EXAMPLE: /Organization/put/Organization_Create
@try_manual
def step_organization_create(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization create '
             '--location "eastus2euap" '
             '--offer-id "confluent-cloud-azure-stag" '
             '--plan-id "confluent-cloud-azure-payg-stag" '
             '--plan-name "Confluent Cloud - Pay as you Go" '
             '--publisher-id "confluentinc" '
             '--term-unit "P1M" '
             '--tags environment="Dev" '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)
    test.cmd('az confluent organization wait --created '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=[])


# EXAMPLE: /Organization/get/Organization_Get
@try_manual
def step_organization_show(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization show '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)


# EXAMPLE: /Organization/get/Organization_ListByResourceGroup
@try_manual
def step_organization_list(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list '
             '--resource-group "{rg}"',
             checks=checks)


# EXAMPLE: /Organization/get/Organization_ListBySubscription
@try_manual
def step_organization_list2(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization list '
             '-g ""',
             checks=checks)


# EXAMPLE: /Organization/patch/Confluent_Update
@try_manual
def step_organization_update(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization update '
             '--tags client="dev-client" env="dev" '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)


# EXAMPLE: /Organization/delete/Confluent_Delete
@try_manual
def step_organization_delete(test, rg, checks=None):
    if checks is None:
        checks = []
    test.cmd('az confluent organization delete -y '
             '--name "{myOrganization}" '
             '--resource-group "{rg}"',
             checks=checks)
