Skip to content

Commit 3bf1d66

Browse files
author
SDKAuto
committed
CodeGen from PR 15953 in Azure/azure-rest-api-specs
Merge c303c0c10bfe4753807c1341c143865317662805 into 052bec2
1 parent d23b8c9 commit 3bf1d66

37 files changed

+2036
-2207
lines changed

sdk/costmanagement/azure-mgmt-costmanagement/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "74efe54fbc55c91a1d9213afbb2723747acfddf9",
7+
"commit": "471d1bab2a9f26f549ed0d74d59e1480d3a4c959",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/cost-management/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
1010
"readme": "specification/cost-management/resource-manager/readme.md"

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
super(CostManagementClientConfiguration, self).__init__(**kwargs)
4343

4444
self.credential = credential
45-
self.api_version = "2019-11-01"
45+
self.api_version = "2021-10-01"
4646
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
4747
kwargs.setdefault('sdk_moniker', 'mgmt-costmanagement/{}'.format(VERSION))
4848
self._configure(**kwargs)

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/_cost_management_client.py

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,30 @@
1919
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2020

2121
from ._configuration import CostManagementClientConfiguration
22-
from .operations import SettingsOperations
22+
from .operations import ExportsOperations
23+
from .operations import GenerateDetailedCostReportOperations
24+
from .operations import GenerateDetailedCostReportOperationResultsOperations
25+
from .operations import GenerateDetailedCostReportOperationStatusOperations
2326
from .operations import ViewsOperations
2427
from .operations import AlertsOperations
2528
from .operations import ForecastOperations
2629
from .operations import DimensionsOperations
2730
from .operations import QueryOperations
28-
from .operations import GenerateReservationDetailsReportOperations
2931
from .operations import Operations
30-
from .operations import ExportsOperations
3132
from . import models
3233

3334

3435
class CostManagementClient(object):
3536
"""CostManagementClient.
3637
37-
:ivar settings: SettingsOperations operations
38-
:vartype settings: azure.mgmt.costmanagement.operations.SettingsOperations
38+
:ivar exports: ExportsOperations operations
39+
:vartype exports: azure.mgmt.costmanagement.operations.ExportsOperations
40+
:ivar generate_detailed_cost_report: GenerateDetailedCostReportOperations operations
41+
:vartype generate_detailed_cost_report: azure.mgmt.costmanagement.operations.GenerateDetailedCostReportOperations
42+
:ivar generate_detailed_cost_report_operation_results: GenerateDetailedCostReportOperationResultsOperations operations
43+
:vartype generate_detailed_cost_report_operation_results: azure.mgmt.costmanagement.operations.GenerateDetailedCostReportOperationResultsOperations
44+
:ivar generate_detailed_cost_report_operation_status: GenerateDetailedCostReportOperationStatusOperations operations
45+
:vartype generate_detailed_cost_report_operation_status: azure.mgmt.costmanagement.operations.GenerateDetailedCostReportOperationStatusOperations
3946
:ivar views: ViewsOperations operations
4047
:vartype views: azure.mgmt.costmanagement.operations.ViewsOperations
4148
:ivar alerts: AlertsOperations operations
@@ -46,12 +53,8 @@ class CostManagementClient(object):
4653
:vartype dimensions: azure.mgmt.costmanagement.operations.DimensionsOperations
4754
:ivar query: QueryOperations operations
4855
:vartype query: azure.mgmt.costmanagement.operations.QueryOperations
49-
:ivar generate_reservation_details_report: GenerateReservationDetailsReportOperations operations
50-
:vartype generate_reservation_details_report: azure.mgmt.costmanagement.operations.GenerateReservationDetailsReportOperations
5156
:ivar operations: Operations operations
5257
:vartype operations: azure.mgmt.costmanagement.operations.Operations
53-
:ivar exports: ExportsOperations operations
54-
:vartype exports: azure.mgmt.costmanagement.operations.ExportsOperations
5558
:param credential: Credential needed for the client to connect to Azure.
5659
:type credential: ~azure.core.credentials.TokenCredential
5760
:param str base_url: Service URL
@@ -75,7 +78,13 @@ def __init__(
7578
self._serialize.client_side_validation = False
7679
self._deserialize = Deserializer(client_models)
7780

78-
self.settings = SettingsOperations(
81+
self.exports = ExportsOperations(
82+
self._client, self._config, self._serialize, self._deserialize)
83+
self.generate_detailed_cost_report = GenerateDetailedCostReportOperations(
84+
self._client, self._config, self._serialize, self._deserialize)
85+
self.generate_detailed_cost_report_operation_results = GenerateDetailedCostReportOperationResultsOperations(
86+
self._client, self._config, self._serialize, self._deserialize)
87+
self.generate_detailed_cost_report_operation_status = GenerateDetailedCostReportOperationStatusOperations(
7988
self._client, self._config, self._serialize, self._deserialize)
8089
self.views = ViewsOperations(
8190
self._client, self._config, self._serialize, self._deserialize)
@@ -87,12 +96,8 @@ def __init__(
8796
self._client, self._config, self._serialize, self._deserialize)
8897
self.query = QueryOperations(
8998
self._client, self._config, self._serialize, self._deserialize)
90-
self.generate_reservation_details_report = GenerateReservationDetailsReportOperations(
91-
self._client, self._config, self._serialize, self._deserialize)
9299
self.operations = Operations(
93100
self._client, self._config, self._serialize, self._deserialize)
94-
self.exports = ExportsOperations(
95-
self._client, self._config, self._serialize, self._deserialize)
96101

97102
def _send_request(self, http_request, **kwargs):
98103
# type: (HttpRequest, Any) -> HttpResponse

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/_metadata.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2019-11-01",
3-
"total_api_version_list": ["2019-11-01"],
2+
"chosen_version": "2021-10-01",
3+
"total_api_version_list": ["2021-10-01"],
44
"client": {
55
"name": "CostManagementClient",
66
"filename": "_cost_management_client",
@@ -86,14 +86,15 @@
8686
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
8787
},
8888
"operation_groups": {
89-
"settings": "SettingsOperations",
89+
"exports": "ExportsOperations",
90+
"generate_detailed_cost_report": "GenerateDetailedCostReportOperations",
91+
"generate_detailed_cost_report_operation_results": "GenerateDetailedCostReportOperationResultsOperations",
92+
"generate_detailed_cost_report_operation_status": "GenerateDetailedCostReportOperationStatusOperations",
9093
"views": "ViewsOperations",
9194
"alerts": "AlertsOperations",
9295
"forecast": "ForecastOperations",
9396
"dimensions": "DimensionsOperations",
9497
"query": "QueryOperations",
95-
"generate_reservation_details_report": "GenerateReservationDetailsReportOperations",
96-
"operations": "Operations",
97-
"exports": "ExportsOperations"
98+
"operations": "Operations"
9899
}
99100
}

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "3.0.0"
9+
VERSION = "1.0.0b1"

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(
3939
super(CostManagementClientConfiguration, self).__init__(**kwargs)
4040

4141
self.credential = credential
42-
self.api_version = "2019-11-01"
42+
self.api_version = "2021-10-01"
4343
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
4444
kwargs.setdefault('sdk_moniker', 'mgmt-costmanagement/{}'.format(VERSION))
4545
self._configure(**kwargs)

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/aio/_cost_management_client.py

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,30 @@
1717
from azure.core.credentials_async import AsyncTokenCredential
1818

1919
from ._configuration import CostManagementClientConfiguration
20-
from .operations import SettingsOperations
20+
from .operations import ExportsOperations
21+
from .operations import GenerateDetailedCostReportOperations
22+
from .operations import GenerateDetailedCostReportOperationResultsOperations
23+
from .operations import GenerateDetailedCostReportOperationStatusOperations
2124
from .operations import ViewsOperations
2225
from .operations import AlertsOperations
2326
from .operations import ForecastOperations
2427
from .operations import DimensionsOperations
2528
from .operations import QueryOperations
26-
from .operations import GenerateReservationDetailsReportOperations
2729
from .operations import Operations
28-
from .operations import ExportsOperations
2930
from .. import models
3031

3132

3233
class CostManagementClient(object):
3334
"""CostManagementClient.
3435
35-
:ivar settings: SettingsOperations operations
36-
:vartype settings: azure.mgmt.costmanagement.aio.operations.SettingsOperations
36+
:ivar exports: ExportsOperations operations
37+
:vartype exports: azure.mgmt.costmanagement.aio.operations.ExportsOperations
38+
:ivar generate_detailed_cost_report: GenerateDetailedCostReportOperations operations
39+
:vartype generate_detailed_cost_report: azure.mgmt.costmanagement.aio.operations.GenerateDetailedCostReportOperations
40+
:ivar generate_detailed_cost_report_operation_results: GenerateDetailedCostReportOperationResultsOperations operations
41+
:vartype generate_detailed_cost_report_operation_results: azure.mgmt.costmanagement.aio.operations.GenerateDetailedCostReportOperationResultsOperations
42+
:ivar generate_detailed_cost_report_operation_status: GenerateDetailedCostReportOperationStatusOperations operations
43+
:vartype generate_detailed_cost_report_operation_status: azure.mgmt.costmanagement.aio.operations.GenerateDetailedCostReportOperationStatusOperations
3744
:ivar views: ViewsOperations operations
3845
:vartype views: azure.mgmt.costmanagement.aio.operations.ViewsOperations
3946
:ivar alerts: AlertsOperations operations
@@ -44,12 +51,8 @@ class CostManagementClient(object):
4451
:vartype dimensions: azure.mgmt.costmanagement.aio.operations.DimensionsOperations
4552
:ivar query: QueryOperations operations
4653
:vartype query: azure.mgmt.costmanagement.aio.operations.QueryOperations
47-
:ivar generate_reservation_details_report: GenerateReservationDetailsReportOperations operations
48-
:vartype generate_reservation_details_report: azure.mgmt.costmanagement.aio.operations.GenerateReservationDetailsReportOperations
4954
:ivar operations: Operations operations
5055
:vartype operations: azure.mgmt.costmanagement.aio.operations.Operations
51-
:ivar exports: ExportsOperations operations
52-
:vartype exports: azure.mgmt.costmanagement.aio.operations.ExportsOperations
5356
:param credential: Credential needed for the client to connect to Azure.
5457
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
5558
:param str base_url: Service URL
@@ -72,7 +75,13 @@ def __init__(
7275
self._serialize.client_side_validation = False
7376
self._deserialize = Deserializer(client_models)
7477

75-
self.settings = SettingsOperations(
78+
self.exports = ExportsOperations(
79+
self._client, self._config, self._serialize, self._deserialize)
80+
self.generate_detailed_cost_report = GenerateDetailedCostReportOperations(
81+
self._client, self._config, self._serialize, self._deserialize)
82+
self.generate_detailed_cost_report_operation_results = GenerateDetailedCostReportOperationResultsOperations(
83+
self._client, self._config, self._serialize, self._deserialize)
84+
self.generate_detailed_cost_report_operation_status = GenerateDetailedCostReportOperationStatusOperations(
7685
self._client, self._config, self._serialize, self._deserialize)
7786
self.views = ViewsOperations(
7887
self._client, self._config, self._serialize, self._deserialize)
@@ -84,12 +93,8 @@ def __init__(
8493
self._client, self._config, self._serialize, self._deserialize)
8594
self.query = QueryOperations(
8695
self._client, self._config, self._serialize, self._deserialize)
87-
self.generate_reservation_details_report = GenerateReservationDetailsReportOperations(
88-
self._client, self._config, self._serialize, self._deserialize)
8996
self.operations = Operations(
9097
self._client, self._config, self._serialize, self._deserialize)
91-
self.exports = ExportsOperations(
92-
self._client, self._config, self._serialize, self._deserialize)
9398

9499
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
95100
"""Runs the network request through the client's chained policies.

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/aio/operations/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,26 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._settings_operations import SettingsOperations
9+
from ._exports_operations import ExportsOperations
10+
from ._generate_detailed_cost_report_operations import GenerateDetailedCostReportOperations
11+
from ._generate_detailed_cost_report_operation_results_operations import GenerateDetailedCostReportOperationResultsOperations
12+
from ._generate_detailed_cost_report_operation_status_operations import GenerateDetailedCostReportOperationStatusOperations
1013
from ._views_operations import ViewsOperations
1114
from ._alerts_operations import AlertsOperations
1215
from ._forecast_operations import ForecastOperations
1316
from ._dimensions_operations import DimensionsOperations
1417
from ._query_operations import QueryOperations
15-
from ._generate_reservation_details_report_operations import GenerateReservationDetailsReportOperations
1618
from ._operations import Operations
17-
from ._exports_operations import ExportsOperations
1819

1920
__all__ = [
20-
'SettingsOperations',
21+
'ExportsOperations',
22+
'GenerateDetailedCostReportOperations',
23+
'GenerateDetailedCostReportOperationResultsOperations',
24+
'GenerateDetailedCostReportOperationStatusOperations',
2125
'ViewsOperations',
2226
'AlertsOperations',
2327
'ForecastOperations',
2428
'DimensionsOperations',
2529
'QueryOperations',
26-
'GenerateReservationDetailsReportOperations',
2730
'Operations',
28-
'ExportsOperations',
2931
]

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/aio/operations/_alerts_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def list(
7474
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7575
}
7676
error_map.update(kwargs.pop('error_map', {}))
77-
api_version = "2019-11-01"
77+
api_version = "2021-10-01"
7878
accept = "application/json"
7979

8080
# Construct URL
@@ -146,7 +146,7 @@ async def get(
146146
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
147147
}
148148
error_map.update(kwargs.pop('error_map', {}))
149-
api_version = "2019-11-01"
149+
api_version = "2021-10-01"
150150
accept = "application/json"
151151

152152
# Construct URL
@@ -222,7 +222,7 @@ async def dismiss(
222222
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
223223
}
224224
error_map.update(kwargs.pop('error_map', {}))
225-
api_version = "2019-11-01"
225+
api_version = "2021-10-01"
226226
content_type = kwargs.pop("content_type", "application/json")
227227
accept = "application/json"
228228

@@ -288,7 +288,7 @@ async def list_external(
288288
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
289289
}
290290
error_map.update(kwargs.pop('error_map', {}))
291-
api_version = "2019-11-01"
291+
api_version = "2021-10-01"
292292
accept = "application/json"
293293

294294
# Construct URL

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/aio/operations/_dimensions_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ def list(
8383
:type top: int
8484
:keyword callable cls: A custom type or function that will be passed the direct response
8585
:return: An iterator like instance of either DimensionsListResult or the result of cls(response)
86-
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.costmanagement.models.DimensionsListResultor None]
86+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.costmanagement.models.DimensionsListResult]
8787
:raises: ~azure.core.exceptions.HttpResponseError
8888
"""
8989
cls = kwargs.pop('cls', None) # type: ClsType["_models.DimensionsListResult"]
9090
error_map = {
9191
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
9292
}
9393
error_map.update(kwargs.pop('error_map', {}))
94-
api_version = "2019-11-01"
94+
api_version = "2021-10-01"
9595
accept = "application/json"
9696

9797
def prepare_request(next_link=None):
@@ -138,7 +138,7 @@ async def get_next(next_link=None):
138138
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
139139
response = pipeline_response.http_response
140140

141-
if response.status_code not in [200, 204]:
141+
if response.status_code not in [200]:
142142
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
143143
map_error(status_code=response.status_code, response=response, error_map=error_map)
144144
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -191,7 +191,7 @@ def by_external_cloud_provider_type(
191191
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
192192
}
193193
error_map.update(kwargs.pop('error_map', {}))
194-
api_version = "2019-11-01"
194+
api_version = "2021-10-01"
195195
accept = "application/json"
196196

197197
def prepare_request(next_link=None):

0 commit comments

Comments
 (0)