partnercenter/azext_partnercenter/operations/marketplace_offer_plan/commands.py (9 lines of code) (raw):
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=line-too-long
from azure.cli.core.commands import CliCommandType
from azext_partnercenter._client_factory import cf_plans
def load_command_table(commands_loader, _):
custom_command_type = CliCommandType(operations_tmpl='azext_partnercenter.operations.marketplace_offer_plan.custom#{}', client_factory=cf_plans)
with commands_loader.command_group('partnercenter marketplace offer plan', custom_command_type=custom_command_type, is_preview=True) as g:
g.custom_command('create', 'create_plan', supports_no_wait=True, table_transformer=None)
g.custom_show_command('show', 'get_plan', table_transformer=None)
g.custom_command('list', 'list_plan', table_transformer=None)
g.custom_command('delete', 'delete_plan', table_transformer=None)