Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR costmanagement] [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2020-06-01 #2208

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions src/costmanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,3 @@ Microsoft Azure CLI 'costmanagement' Extension

This package is for the 'costmanagement' extension.
i.e. 'az costmanagement'

# Installation
Firstly, azure-cli must be installed. then `az extension add -n costmanagement`


# Commands

## Query
- az costmanagement query - Query the usage data for scope defined.

## Export - Manage cost export
- az costmanagement export create - Operation to create an export
- az costmanagement export update - Operation to update an export configuration
- az costmanagement export show/list - Operations to display export(s) information
- az costmanagement export delete - Operations to delete an existing export
93 changes: 46 additions & 47 deletions src/costmanagement/azext_costmanagement/__init__.py
Original file line number Diff line number Diff line change
@@ -1,47 +1,46 @@
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
# from azext_costmanagement.generated._help import helps # pylint: disable=unused-import
from azext_costmanagement.manual._help import helps # pylint: disable=unused-import


class CostManagementClientCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_costmanagement.generated._client_factory import cf_costmanagement
costmanagement_custom = CliCommandType(
operations_tmpl='azext_costmanagement.custom#{}',
client_factory=cf_costmanagement)
super(CostManagementClientCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=costmanagement_custom)

def load_command_table(self, args):
from azext_costmanagement.generated.commands import load_command_table
load_command_table(self, args)
try:
from azext_costmanagement.manual.commands import load_command_table as load_command_table_manual
load_command_table_manual(self, args)
except ImportError:
pass
return self.command_table

def load_arguments(self, command):
from azext_costmanagement.generated._params import load_arguments
load_arguments(self, command)
try:
from azext_costmanagement.manual._params import load_arguments as load_arguments_manual
load_arguments_manual(self, command)
except ImportError:
pass


COMMAND_LOADER_CLS = CostManagementClientCommandsLoader
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_costmanagement.generated._help import helps # pylint: disable=unused-import


class CostManagementClientCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_costmanagement.generated._client_factory import cf_costmanagement
costmanagement_custom = CliCommandType(
operations_tmpl='azext_costmanagement.custom#{}',
client_factory=cf_costmanagement)
parent = super(CostManagementClientCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=costmanagement_custom)

def load_command_table(self, args):
from azext_costmanagement.generated.commands import load_command_table
load_command_table(self, args)
try:
from azext_costmanagement.manual.commands import load_command_table as load_command_table_manual
load_command_table_manual(self, args)
except ImportError:
pass
return self.command_table

def load_arguments(self, command):
from azext_costmanagement.generated._params import load_arguments
load_arguments(self, command)
try:
from azext_costmanagement.manual._params import load_arguments as load_arguments_manual
load_arguments_manual(self, command)
except ImportError:
pass


COMMAND_LOADER_CLS = CostManagementClientCommandsLoader
Loading