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 azure-mgmt-costmanagement] [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 #15074

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
30 changes: 11 additions & 19 deletions sdk/costmanagement/azure-mgmt-costmanagement/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Cost Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

Azure Resource Manager (ARM) is the next generation of management APIs
that replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
# Usage

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.
For code examples, see [Cost Management](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.

For a more complete set of Azure libraries, see the
[azure sdk python release](https://aka.ms/azsdk/python/all).

## Usage
# Provide Feedback

For code examples, see [Cost
Management](https://docs.microsoft.com/python/api/overview/azure/) on
docs.microsoft.com.

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.

![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-costmanagement%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-costmanagement%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
from msrest import Serializer, Deserializer

from ._configuration import CostManagementClientConfiguration
from .operations import ViewsOperations
from .operations import AlertsOperations
from .operations import ForecastOperations
from .operations import DimensionsOperations
from .operations import QueryOperations
from .operations import ExportsOperations
from .operations import Operations
from .operations import ExportsOperations
from . import models


Expand All @@ -26,14 +29,20 @@ class CostManagementClient(SDKClient):
:ivar config: Configuration for client.
:vartype config: CostManagementClientConfiguration

:ivar views: Views operations
:vartype views: azure.mgmt.costmanagement.operations.ViewsOperations
:ivar alerts: Alerts operations
:vartype alerts: azure.mgmt.costmanagement.operations.AlertsOperations
:ivar forecast: Forecast operations
:vartype forecast: azure.mgmt.costmanagement.operations.ForecastOperations
:ivar dimensions: Dimensions operations
:vartype dimensions: azure.mgmt.costmanagement.operations.DimensionsOperations
:ivar query: Query operations
:vartype query: azure.mgmt.costmanagement.operations.QueryOperations
:ivar exports: Exports operations
:vartype exports: azure.mgmt.costmanagement.operations.ExportsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.costmanagement.operations.Operations
:ivar exports: Exports operations
:vartype exports: azure.mgmt.costmanagement.operations.ExportsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -50,15 +59,21 @@ def __init__(
super(CostManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-11-01'
self.api_version = '2020-06-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.views = ViewsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.alerts = AlertsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.forecast = ForecastOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dimensions = DimensionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.query = QueryOperations(
self._client, self.config, self._serialize, self._deserialize)
self.exports = ExportsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.exports = ExportsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,34 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import Alert
from ._models_py3 import AlertPropertiesDefinition
from ._models_py3 import AlertPropertiesDetails
from ._models_py3 import AlertsResult
from ._models_py3 import CommonExportProperties
from ._models_py3 import Dimension
from ._models_py3 import DismissAlertPayload
from ._models_py3 import ErrorDetails
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import Export
from ._models_py3 import ExportDataset
from ._models_py3 import ExportDatasetConfiguration
from ._models_py3 import ExportDefinition
from ._models_py3 import ExportDeliveryDestination
from ._models_py3 import ExportDeliveryInfo
from ._models_py3 import ExportExecution
from ._models_py3 import ExportExecutionListResult
from ._models_py3 import ExportListResult
from ._models_py3 import ExportRecurrencePeriod
from ._models_py3 import ExportSchedule
from ._models_py3 import ExportTimePeriod
from ._models_py3 import ForecastDataset
from ._models_py3 import ForecastDefinition
from ._models_py3 import KpiProperties
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import PivotProperties
from ._models_py3 import ProxyResource
from ._models_py3 import QueryAggregation
from ._models_py3 import QueryColumn
from ._models_py3 import QueryComparisonExpression
Expand All @@ -34,22 +48,45 @@
from ._models_py3 import QueryGrouping
from ._models_py3 import QueryResult
from ._models_py3 import QueryTimePeriod
from ._models_py3 import ReportConfigAggregation
from ._models_py3 import ReportConfigComparisonExpression
from ._models_py3 import ReportConfigDataset
from ._models_py3 import ReportConfigDatasetConfiguration
from ._models_py3 import ReportConfigFilter
from ._models_py3 import ReportConfigGrouping
from ._models_py3 import ReportConfigSorting
from ._models_py3 import ReportConfigTimePeriod
from ._models_py3 import Resource
from ._models_py3 import View
except (SyntaxError, ImportError):
from ._models import Alert
from ._models import AlertPropertiesDefinition
from ._models import AlertPropertiesDetails
from ._models import AlertsResult
from ._models import CommonExportProperties
from ._models import Dimension
from ._models import DismissAlertPayload
from ._models import ErrorDetails
from ._models import ErrorResponse, ErrorResponseException
from ._models import Export
from ._models import ExportDataset
from ._models import ExportDatasetConfiguration
from ._models import ExportDefinition
from ._models import ExportDeliveryDestination
from ._models import ExportDeliveryInfo
from ._models import ExportExecution
from ._models import ExportExecutionListResult
from ._models import ExportListResult
from ._models import ExportRecurrencePeriod
from ._models import ExportSchedule
from ._models import ExportTimePeriod
from ._models import ForecastDataset
from ._models import ForecastDefinition
from ._models import KpiProperties
from ._models import Operation
from ._models import OperationDisplay
from ._models import PivotProperties
from ._models import ProxyResource
from ._models import QueryAggregation
from ._models import QueryColumn
from ._models import QueryComparisonExpression
Expand All @@ -60,36 +97,79 @@
from ._models import QueryGrouping
from ._models import QueryResult
from ._models import QueryTimePeriod
from ._models import ReportConfigAggregation
from ._models import ReportConfigComparisonExpression
from ._models import ReportConfigDataset
from ._models import ReportConfigDatasetConfiguration
from ._models import ReportConfigFilter
from ._models import ReportConfigGrouping
from ._models import ReportConfigSorting
from ._models import ReportConfigTimePeriod
from ._models import Resource
from ._models import View
from ._paged_models import DimensionPaged
from ._paged_models import OperationPaged
from ._paged_models import ViewPaged
from ._cost_management_client_enums import (
ReportTimeframeType,
ReportGranularityType,
ReportConfigColumnType,
OperatorType,
ChartType,
AccumulatedType,
MetricType,
KpiTypeType,
PivotTypeType,
AlertType,
AlertCategory,
AlertCriteria,
AlertSource,
AlertTimeGrainType,
AlertOperator,
AlertStatus,
ForecastType,
ForecastTimeframeType,
GranularityType,
ExportType,
TimeframeType,
GranularityType,
QueryColumnType,
StatusType,
RecurrenceType,
FormatType,
ExecutionType,
ExecutionStatus,
ExternalCloudProviderType,
)

__all__ = [
'Alert',
'AlertPropertiesDefinition',
'AlertPropertiesDetails',
'AlertsResult',
'CommonExportProperties',
'Dimension',
'DismissAlertPayload',
'ErrorDetails',
'ErrorResponse', 'ErrorResponseException',
'Export',
'ExportDataset',
'ExportDatasetConfiguration',
'ExportDefinition',
'ExportDeliveryDestination',
'ExportDeliveryInfo',
'ExportExecution',
'ExportExecutionListResult',
'ExportListResult',
'ExportRecurrencePeriod',
'ExportSchedule',
'ExportTimePeriod',
'ForecastDataset',
'ForecastDefinition',
'KpiProperties',
'Operation',
'OperationDisplay',
'PivotProperties',
'ProxyResource',
'QueryAggregation',
'QueryColumn',
'QueryComparisonExpression',
Expand All @@ -100,16 +180,45 @@
'QueryGrouping',
'QueryResult',
'QueryTimePeriod',
'ReportConfigAggregation',
'ReportConfigComparisonExpression',
'ReportConfigDataset',
'ReportConfigDatasetConfiguration',
'ReportConfigFilter',
'ReportConfigGrouping',
'ReportConfigSorting',
'ReportConfigTimePeriod',
'Resource',
'View',
'ViewPaged',
'DimensionPaged',
'OperationPaged',
'ReportTimeframeType',
'ReportGranularityType',
'ReportConfigColumnType',
'OperatorType',
'ChartType',
'AccumulatedType',
'MetricType',
'KpiTypeType',
'PivotTypeType',
'AlertType',
'AlertCategory',
'AlertCriteria',
'AlertSource',
'AlertTimeGrainType',
'AlertOperator',
'AlertStatus',
'ForecastType',
'ForecastTimeframeType',
'GranularityType',
'ExportType',
'TimeframeType',
'GranularityType',
'QueryColumnType',
'StatusType',
'RecurrenceType',
'FormatType',
'ExecutionType',
'ExecutionStatus',
'ExternalCloudProviderType',
]
Loading