11
11
12
12
from msrest .service_client import SDKClient
13
13
from msrest import Serializer , Deserializer
14
- from msrestazure import AzureConfiguration
15
- from .version import VERSION
16
- from .operations .usage_details_operations import UsageDetailsOperations
17
- from .operations .marketplaces_operations import MarketplacesOperations
18
- from .operations .budgets_operations import BudgetsOperations
19
- from .operations .tags_operations import TagsOperations
20
- from .operations .charges_operations import ChargesOperations
21
- from .operations .balances_operations import BalancesOperations
22
- from .operations .reservations_summaries_operations import ReservationsSummariesOperations
23
- from .operations .reservations_details_operations import ReservationsDetailsOperations
24
- from .operations .reservation_recommendations_operations import ReservationRecommendationsOperations
25
- from .operations .price_sheet_operations import PriceSheetOperations
26
- from .operations .forecasts_operations import ForecastsOperations
27
- from .operations .operations import Operations
28
- from .operations .aggregated_cost_operations import AggregatedCostOperations
29
- from . import models
30
-
31
-
32
- class ConsumptionManagementClientConfiguration (AzureConfiguration ):
33
- """Configuration for ConsumptionManagementClient
34
- Note that all parameters used to create this instance are saved as instance
35
- attributes.
36
-
37
- :param credentials: Credentials needed for the client to connect to Azure.
38
- :type credentials: :mod:`A msrestazure Credentials
39
- object<msrestazure.azure_active_directory>`
40
- :param subscription_id: Azure Subscription ID.
41
- :type subscription_id: str
42
- :param str base_url: Service URL
43
- """
44
14
45
- def __init__ (
46
- self , credentials , subscription_id , base_url = None ):
47
-
48
- if credentials is None :
49
- raise ValueError ("Parameter 'credentials' must not be None." )
50
- if subscription_id is None :
51
- raise ValueError ("Parameter 'subscription_id' must not be None." )
52
- if not base_url :
53
- base_url = 'https://management.azure.com'
54
-
55
- super (ConsumptionManagementClientConfiguration , self ).__init__ (base_url )
56
-
57
- self .add_user_agent ('azure-mgmt-consumption/{}' .format (VERSION ))
58
- self .add_user_agent ('Azure-SDK-For-Python' )
59
-
60
- self .credentials = credentials
61
- self .subscription_id = subscription_id
15
+ from ._configuration import ConsumptionManagementClientConfiguration
16
+ from .operations import UsageDetailsOperations
17
+ from .operations import MarketplacesOperations
18
+ from .operations import BudgetsOperations
19
+ from .operations import TagsOperations
20
+ from .operations import ChargesOperations
21
+ from .operations import BalancesOperations
22
+ from .operations import ReservationsSummariesOperations
23
+ from .operations import ReservationsDetailsOperations
24
+ from .operations import ReservationRecommendationsOperations
25
+ from .operations import ReservationRecommendationDetailsOperations
26
+ from .operations import ReservationTransactionsOperations
27
+ from .operations import PriceSheetOperations
28
+ from .operations import ForecastsOperations
29
+ from .operations import Operations
30
+ from .operations import AggregatedCostOperations
31
+ from .operations import EventsOperations
32
+ from .operations import LotsOperations
33
+ from .operations import CreditsOperations
34
+ from . import models
62
35
63
36
64
37
class ConsumptionManagementClient (SDKClient ):
@@ -85,6 +58,10 @@ class ConsumptionManagementClient(SDKClient):
85
58
:vartype reservations_details: azure.mgmt.consumption.operations.ReservationsDetailsOperations
86
59
:ivar reservation_recommendations: ReservationRecommendations operations
87
60
:vartype reservation_recommendations: azure.mgmt.consumption.operations.ReservationRecommendationsOperations
61
+ :ivar reservation_recommendation_details: ReservationRecommendationDetails operations
62
+ :vartype reservation_recommendation_details: azure.mgmt.consumption.operations.ReservationRecommendationDetailsOperations
63
+ :ivar reservation_transactions: ReservationTransactions operations
64
+ :vartype reservation_transactions: azure.mgmt.consumption.operations.ReservationTransactionsOperations
88
65
:ivar price_sheet: PriceSheet operations
89
66
:vartype price_sheet: azure.mgmt.consumption.operations.PriceSheetOperations
90
67
:ivar forecasts: Forecasts operations
@@ -93,6 +70,12 @@ class ConsumptionManagementClient(SDKClient):
93
70
:vartype operations: azure.mgmt.consumption.operations.Operations
94
71
:ivar aggregated_cost: AggregatedCost operations
95
72
:vartype aggregated_cost: azure.mgmt.consumption.operations.AggregatedCostOperations
73
+ :ivar events: Events operations
74
+ :vartype events: azure.mgmt.consumption.operations.EventsOperations
75
+ :ivar lots: Lots operations
76
+ :vartype lots: azure.mgmt.consumption.operations.LotsOperations
77
+ :ivar credits: Credits operations
78
+ :vartype credits: azure.mgmt.consumption.operations.CreditsOperations
96
79
97
80
:param credentials: Credentials needed for the client to connect to Azure.
98
81
:type credentials: :mod:`A msrestazure Credentials
@@ -109,7 +92,7 @@ def __init__(
109
92
super (ConsumptionManagementClient , self ).__init__ (self .config .credentials , self .config )
110
93
111
94
client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
112
- self .api_version = '2019-04 -01-preview '
95
+ self .api_version = '2019-11 -01'
113
96
self ._serialize = Serializer (client_models )
114
97
self ._deserialize = Deserializer (client_models )
115
98
@@ -131,6 +114,10 @@ def __init__(
131
114
self ._client , self .config , self ._serialize , self ._deserialize )
132
115
self .reservation_recommendations = ReservationRecommendationsOperations (
133
116
self ._client , self .config , self ._serialize , self ._deserialize )
117
+ self .reservation_recommendation_details = ReservationRecommendationDetailsOperations (
118
+ self ._client , self .config , self ._serialize , self ._deserialize )
119
+ self .reservation_transactions = ReservationTransactionsOperations (
120
+ self ._client , self .config , self ._serialize , self ._deserialize )
134
121
self .price_sheet = PriceSheetOperations (
135
122
self ._client , self .config , self ._serialize , self ._deserialize )
136
123
self .forecasts = ForecastsOperations (
@@ -139,3 +126,9 @@ def __init__(
139
126
self ._client , self .config , self ._serialize , self ._deserialize )
140
127
self .aggregated_cost = AggregatedCostOperations (
141
128
self ._client , self .config , self ._serialize , self ._deserialize )
129
+ self .events = EventsOperations (
130
+ self ._client , self .config , self ._serialize , self ._deserialize )
131
+ self .lots = LotsOperations (
132
+ self ._client , self .config , self ._serialize , self ._deserialize )
133
+ self .credits = CreditsOperations (
134
+ self ._client , self .config , self ._serialize , self ._deserialize )
0 commit comments