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

[AutoPR consumption/resource-manager] [Hub Generated] Review request for Microsoft.Consumption to add version 2019-01-01 #4292

Merged
Merged
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
19 changes: 0 additions & 19 deletions azure-mgmt-consumption/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
from .version import VERSION
from .operations.usage_details_operations import UsageDetailsOperations
from .operations.marketplaces_operations import MarketplacesOperations
from .operations.budgets_operations import BudgetsOperations
from .operations.tags_operations import TagsOperations
from .operations.charges_operations import ChargesOperations
from .operations.balances_operations import BalancesOperations
from .operations.reservations_summaries_operations import ReservationsSummariesOperations
from .operations.reservations_details_operations import ReservationsDetailsOperations
from .operations.reservation_recommendations_operations import ReservationRecommendationsOperations
from .operations.budgets_operations import BudgetsOperations
from .operations.price_sheet_operations import PriceSheetOperations
from .operations.tags_operations import TagsOperations
from .operations.forecasts_operations import ForecastsOperations
from .operations.operations import Operations
from .operations.aggregated_cost_operations import AggregatedCostOperations
from .operations.charges_operations import ChargesOperations
from . import models


Expand Down Expand Up @@ -71,6 +71,12 @@ class ConsumptionManagementClient(SDKClient):
:vartype usage_details: azure.mgmt.consumption.operations.UsageDetailsOperations
:ivar marketplaces: Marketplaces operations
:vartype marketplaces: azure.mgmt.consumption.operations.MarketplacesOperations
:ivar budgets: Budgets operations
:vartype budgets: azure.mgmt.consumption.operations.BudgetsOperations
:ivar tags: Tags operations
:vartype tags: azure.mgmt.consumption.operations.TagsOperations
:ivar charges: Charges operations
:vartype charges: azure.mgmt.consumption.operations.ChargesOperations
:ivar balances: Balances operations
:vartype balances: azure.mgmt.consumption.operations.BalancesOperations
:ivar reservations_summaries: ReservationsSummaries operations
Expand All @@ -79,20 +85,14 @@ class ConsumptionManagementClient(SDKClient):
:vartype reservations_details: azure.mgmt.consumption.operations.ReservationsDetailsOperations
:ivar reservation_recommendations: ReservationRecommendations operations
:vartype reservation_recommendations: azure.mgmt.consumption.operations.ReservationRecommendationsOperations
:ivar budgets: Budgets operations
:vartype budgets: azure.mgmt.consumption.operations.BudgetsOperations
:ivar price_sheet: PriceSheet operations
:vartype price_sheet: azure.mgmt.consumption.operations.PriceSheetOperations
:ivar tags: Tags operations
:vartype tags: azure.mgmt.consumption.operations.TagsOperations
:ivar forecasts: Forecasts operations
:vartype forecasts: azure.mgmt.consumption.operations.ForecastsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.consumption.operations.Operations
:ivar aggregated_cost: AggregatedCost operations
:vartype aggregated_cost: azure.mgmt.consumption.operations.AggregatedCostOperations
:ivar charges: Charges operations
:vartype charges: azure.mgmt.consumption.operations.ChargesOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -109,14 +109,20 @@ def __init__(
super(ConsumptionManagementClient, 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 = '2018-10-01'
self.api_version = '2019-01-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.usage_details = UsageDetailsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.marketplaces = MarketplacesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.budgets = BudgetsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.tags = TagsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.charges = ChargesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.balances = BalancesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.reservations_summaries = ReservationsSummariesOperations(
Expand All @@ -125,17 +131,11 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.reservation_recommendations = ReservationRecommendationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.budgets = BudgetsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.price_sheet = PriceSheetOperations(
self._client, self.config, self._serialize, self._deserialize)
self.tags = TagsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.forecasts = ForecastsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.aggregated_cost = AggregatedCostOperations(
self._client, self.config, self._serialize, self._deserialize)
self.charges = ChargesOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
from .query_options import QueryOptions
from .usage_detail_paged import UsageDetailPaged
from .marketplace_paged import MarketplacePaged
from .budget_paged import BudgetPaged
from .reservation_summary_paged import ReservationSummaryPaged
from .reservation_detail_paged import ReservationDetailPaged
from .reservation_recommendation_paged import ReservationRecommendationPaged
from .budget_paged import BudgetPaged
from .forecast_paged import ForecastPaged
from .operation_paged import OperationPaged
from .consumption_management_client_enums import (
Expand Down Expand Up @@ -126,10 +126,10 @@
'QueryOptions',
'UsageDetailPaged',
'MarketplacePaged',
'BudgetPaged',
'ReservationSummaryPaged',
'ReservationDetailPaged',
'ReservationRecommendationPaged',
'BudgetPaged',
'ForecastPaged',
'OperationPaged',
'BillingFrequency',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class QueryOptions(Model):
"""Additional parameters for a set of operations.
"""Additional parameters for list operation.

:param apply: OData apply expression to aggregate usageDetails by tags or
(tags and properties/usageStart)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class QueryOptions(Model):
"""Additional parameters for a set of operations.
"""Additional parameters for list operation.

:param apply: OData apply expression to aggregate usageDetails by tags or
(tags and properties/usageStart)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@

from .usage_details_operations import UsageDetailsOperations
from .marketplaces_operations import MarketplacesOperations
from .budgets_operations import BudgetsOperations
from .tags_operations import TagsOperations
from .charges_operations import ChargesOperations
from .balances_operations import BalancesOperations
from .reservations_summaries_operations import ReservationsSummariesOperations
from .reservations_details_operations import ReservationsDetailsOperations
from .reservation_recommendations_operations import ReservationRecommendationsOperations
from .budgets_operations import BudgetsOperations
from .price_sheet_operations import PriceSheetOperations
from .tags_operations import TagsOperations
from .forecasts_operations import ForecastsOperations
from .operations import Operations
from .aggregated_cost_operations import AggregatedCostOperations
from .charges_operations import ChargesOperations

__all__ = [
'UsageDetailsOperations',
'MarketplacesOperations',
'BudgetsOperations',
'TagsOperations',
'ChargesOperations',
'BalancesOperations',
'ReservationsSummariesOperations',
'ReservationsDetailsOperations',
'ReservationRecommendationsOperations',
'BudgetsOperations',
'PriceSheetOperations',
'TagsOperations',
'ForecastsOperations',
'Operations',
'AggregatedCostOperations',
'ChargesOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AggregatedCostOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. The current version is 2018-10-01. Constant value: "2018-10-01".
:ivar api_version: Version of the API to be used with the client request. The current version is 2019-01-01. Constant value: "2019-01-01".
"""

models = models
Expand All @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2018-10-01"
self.api_version = "2019-01-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BalancesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. The current version is 2018-10-01. Constant value: "2018-10-01".
:ivar api_version: Version of the API to be used with the client request. The current version is 2019-01-01. Constant value: "2019-01-01".
"""

models = models
Expand All @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2018-10-01"
self.api_version = "2019-01-01"

self.config = config

Expand Down
Loading