Skip to content
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 [Github repo](https://github.com/Azure/azure-sdk-for-python/)

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](https://pypi.python.org/pypi/azure) bundle package.

## 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 @@ -14,6 +14,8 @@

from ._configuration import CostManagementClientConfiguration
from .operations import DimensionsOperations
from .operations import AlertsOperations
from .operations import ForecastOperations
from .operations import QueryOperations
from .operations import ExportsOperations
from .operations import Operations
Expand All @@ -28,6 +30,10 @@ class CostManagementClient(SDKClient):

:ivar dimensions: Dimensions operations
:vartype dimensions: azure.mgmt.costmanagement.operations.DimensionsOperations
:ivar alerts: Alerts operations
:vartype alerts: azure.mgmt.costmanagement.operations.AlertsOperations
:ivar forecast: Forecast operations
:vartype forecast: azure.mgmt.costmanagement.operations.ForecastOperations
:ivar query: Query operations
:vartype query: azure.mgmt.costmanagement.operations.QueryOperations
:ivar exports: Exports operations
Expand Down Expand Up @@ -56,6 +62,10 @@ def __init__(

self.dimensions = DimensionsOperations(
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.query = QueryOperations(
self._client, self.config, self._serialize, self._deserialize)
self.exports = ExportsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
# --------------------------------------------------------------------------

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 ErrorDetails
Expand All @@ -22,6 +26,7 @@
from ._models_py3 import ExportListResult
from ._models_py3 import ExportRecurrencePeriod
from ._models_py3 import ExportSchedule
from ._models_py3 import ForecastDefinition
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import QueryAggregation
Expand All @@ -36,6 +41,10 @@
from ._models_py3 import QueryTimePeriod
from ._models_py3 import Resource
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 ErrorDetails
Expand All @@ -48,6 +57,7 @@
from ._models import ExportListResult
from ._models import ExportRecurrencePeriod
from ._models import ExportSchedule
from ._models import ForecastDefinition
from ._models import Operation
from ._models import OperationDisplay
from ._models import QueryAggregation
Expand All @@ -64,18 +74,25 @@
from ._paged_models import DimensionPaged
from ._paged_models import OperationPaged
from ._cost_management_client_enums import (
ExportType,
TimeframeType,
ForecastType,
ForecastTimeframeType,
GranularityType,
QueryColumnType,
ExportType,
TimeframeType,
StatusType,
RecurrenceType,
FormatType,
ExecutionType,
ExecutionStatus,
ExternalCloudProviderType,
)

__all__ = [
'Alert',
'AlertPropertiesDefinition',
'AlertPropertiesDetails',
'AlertsResult',
'CommonExportProperties',
'Dimension',
'ErrorDetails',
Expand All @@ -88,6 +105,7 @@
'ExportListResult',
'ExportRecurrencePeriod',
'ExportSchedule',
'ForecastDefinition',
'Operation',
'OperationDisplay',
'QueryAggregation',
Expand All @@ -103,13 +121,16 @@
'Resource',
'DimensionPaged',
'OperationPaged',
'ExportType',
'TimeframeType',
'ForecastType',
'ForecastTimeframeType',
'GranularityType',
'QueryColumnType',
'ExportType',
'TimeframeType',
'StatusType',
'RecurrenceType',
'FormatType',
'ExecutionType',
'ExecutionStatus',
'ExternalCloudProviderType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
from enum import Enum


class ExportType(str, Enum):
class ForecastType(str, Enum):

usage = "Usage"
actual_cost = "ActualCost"
amortized_cost = "AmortizedCost"


class TimeframeType(str, Enum):
class ForecastTimeframeType(str, Enum):

month_to_date = "MonthToDate"
billing_month_to_date = "BillingMonthToDate"
Expand All @@ -40,6 +40,23 @@ class QueryColumnType(str, Enum):
dimension = "Dimension"


class ExportType(str, Enum):

usage = "Usage"
actual_cost = "ActualCost"
amortized_cost = "AmortizedCost"


class TimeframeType(str, Enum):

month_to_date = "MonthToDate"
billing_month_to_date = "BillingMonthToDate"
the_last_month = "TheLastMonth"
the_last_billing_month = "TheLastBillingMonth"
week_to_date = "WeekToDate"
custom = "Custom"


class StatusType(str, Enum):

active = "Active"
Expand Down Expand Up @@ -74,3 +91,9 @@ class ExecutionStatus(str, Enum):
timeout = "Timeout"
new_data_not_available = "NewDataNotAvailable"
data_not_available = "DataNotAvailable"


class ExternalCloudProviderType(str, Enum):

external_subscriptions = "externalSubscriptions"
external_billing_accounts = "externalBillingAccounts"
Loading