Skip to content

Commit

Permalink
CodeGen from PR 15483 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 632c1616594e0b6de7119de5eb1a419886d74080 into 57e30b5
  • Loading branch information
SDKAuto committed Aug 3, 2021
1 parent 9693e2e commit 6592a37
Show file tree
Hide file tree
Showing 59 changed files with 11,203 additions and 6,521 deletions.
19 changes: 8 additions & 11 deletions src/costmanagement/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
.. :changelog:
Release History
===============
0.1.1
++++++
* Command group ``az costmanagement`` GA

0.1.0
++++++
* Initial release.
.. :changelog:
Release History
===============

0.1.0
++++++
* Initial release.
15 changes: 9 additions & 6 deletions src/costmanagement/azext_costmanagement/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@
# --------------------------------------------------------------------------

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
from azext_costmanagement.generated._help import helps # pylint: disable=unused-import
try:
from azext_costmanagement.manual._help import helps # pylint: disable=reimported
except ImportError:
pass


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
from azext_costmanagement.generated._client_factory import cf_costmanagement_cl
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)
client_factory=cf_costmanagement_cl)
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
Expand Down
34 changes: 17 additions & 17 deletions src/costmanagement/azext_costmanagement/action.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# --------------------------------------------------------------------------
# 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=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.action import * # noqa: F403
try:
from .manual.action import * # noqa: F403
except ImportError:
pass
# --------------------------------------------------------------------------
# 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=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.action import * # noqa: F403
try:
from .manual.action import * # noqa: F403
except ImportError:
pass
5 changes: 3 additions & 2 deletions src/costmanagement/azext_costmanagement/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"azext.minCliCoreVersion": "2.3.1"
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.15.0"
}
34 changes: 17 additions & 17 deletions src/costmanagement/azext_costmanagement/custom.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# --------------------------------------------------------------------------
# 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=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.custom import * # noqa: F403
try:
from .manual.custom import * # noqa: F403
except ImportError:
pass
# --------------------------------------------------------------------------
# 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=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.custom import * # noqa: F403
try:
from .manual.custom import * # noqa: F403
except ImportError:
pass
24 changes: 12 additions & 12 deletions src/costmanagement/azext_costmanagement/generated/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

__path__ = __import__('pkgutil').extend_path(__path__, __name__)
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1,41 +1,50 @@
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------


def cf_costmanagement(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from ..vendored_sdks.costmanagement import CostManagementClient
return get_mgmt_service_client(cli_ctx, CostManagementClient,
subscription_bound=False,
base_url_bound=True)


def cf_view(cli_ctx, *_):
return cf_costmanagement(cli_ctx).view


def cf_alert(cli_ctx, *_):
return cf_costmanagement(cli_ctx).alert


def cf_forecast(cli_ctx, *_):
return cf_costmanagement(cli_ctx).forecast


def cf_dimension(cli_ctx, *_):
return cf_costmanagement(cli_ctx).dimension


def cf_query(cli_ctx, *_):
return cf_costmanagement(cli_ctx).query


def cf_export(cli_ctx, *_):
return cf_costmanagement(cli_ctx).export
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------


def cf_costmanagement_cl(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azext_costmanagement.vendored_sdks.costmanagement import CostManagementClient
return get_mgmt_service_client(cli_ctx,
CostManagementClient,
subscription_bound=False,
base_url_bound=True)


def cf_setting(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).settings


def cf_view(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).views


def cf_alert(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).alerts


def cf_forecast(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).forecast


def cf_dimension(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).dimensions


def cf_query(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).query


def cf_generate_reservation_detail_report(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).generate_reservation_details_report


def cf_export(cli_ctx, *_):
return cf_costmanagement_cl(cli_ctx).exports
Loading

0 comments on commit 6592a37

Please sign in to comment.