Skip to content

Commit 9afa924

Browse files
msyycSDKAutoRAY-316
authored
[AutoRelease] t2-hanaonazure-2021-04-12-42294 (#17966)
* CodeGen from PR 13880 in Azure/azure-rest-api-specs hanaonazure t2 readme config (#13880) * version,CHANGELOG * hanaonazure changelog t2 config Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed Lei <[email protected]> Co-authored-by: Zed <[email protected]>
1 parent 20a3df6 commit 9afa924

File tree

16 files changed

+306
-126
lines changed

16 files changed

+306
-126
lines changed

sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.0 (2021-04-12)
4+
5+
**Breaking changes**
6+
7+
- Model ErrorResponse has a new signature
8+
39
## 1.0.0b1 (2020-12-04)
410

511
This is beta preview version.

sdk/hanaonazure/azure-mgmt-hanaonazure/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.0.6369",
3+
"use": "@autorest/[email protected]",
4+
"commit": "58f2489b1dc4752b6470d45e30ed1bd2469741f3",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/hanaonazure/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] --version=3.0.6369",
7+
"readme": "specification/hanaonazure/resource-manager/readme.md"
8+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"chosen_version": "2020-02-07-preview",
3+
"total_api_version_list": ["2020-02-07-preview"],
4+
"client": {
5+
"name": "HanaManagementClient",
6+
"filename": "_hana_management_client",
7+
"description": "HANA on Azure Client.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"client_side_validation": false,
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HanaManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HanaManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"sync_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\": [\"TokenCredential\"]}}}",
98+
"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\"]}}}"
99+
},
100+
"operation_groups": {
101+
"operations": "Operations",
102+
"sap_monitors": "SapMonitorsOperations",
103+
"provider_instances": "ProviderInstancesOperations"
104+
},
105+
"operation_mixins": {
106+
"sync_imports": "None",
107+
"async_imports": "None",
108+
"operations": {
109+
}
110+
}
111+
}

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

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

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

sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def get_next(next_link=None):
9393
response = pipeline_response.http_response
9494

9595
if response.status_code not in [200]:
96-
error = self._deserialize(_models.ErrorResponse, response)
96+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
9797
map_error(status_code=response.status_code, response=response, error_map=error_map)
9898
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
9999

sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/aio/operations/_provider_instances_operations.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async def get_next(next_link=None):
110110
response = pipeline_response.http_response
111111

112112
if response.status_code not in [200]:
113-
error = self._deserialize(_models.ErrorResponse, response)
113+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
114114
map_error(status_code=response.status_code, response=response, error_map=error_map)
115115
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
116116

@@ -176,7 +176,7 @@ async def get(
176176

177177
if response.status_code not in [200]:
178178
map_error(status_code=response.status_code, response=response, error_map=error_map)
179-
error = self._deserialize(_models.ErrorResponse, response)
179+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
180180
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
181181

182182
deserialized = self._deserialize('ProviderInstance', pipeline_response)
@@ -232,7 +232,7 @@ async def _create_initial(
232232

233233
if response.status_code not in [200, 201]:
234234
map_error(status_code=response.status_code, response=response, error_map=error_map)
235-
error = self._deserialize(_models.ErrorResponse, response)
235+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
236236
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
237237

238238
if response.status_code == 200:
@@ -270,8 +270,8 @@ async def begin_create(
270270
:type provider_instance_parameter: ~azure.mgmt.hanaonazure.models.ProviderInstance
271271
:keyword callable cls: A custom type or function that will be passed the direct response
272272
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
273-
:keyword polling: True for ARMPolling, False for no polling, or a
274-
polling object for personal polling strategy
273+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
274+
False for no polling, or your own initialized polling object for a personal polling strategy.
275275
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
276276
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
277277
:return: An instance of AsyncLROPoller that returns either ProviderInstance or the result of cls(response)
@@ -365,7 +365,7 @@ async def _delete_initial(
365365

366366
if response.status_code not in [200, 202, 204]:
367367
map_error(status_code=response.status_code, response=response, error_map=error_map)
368-
error = self._deserialize(_models.ErrorResponse, response)
368+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
369369
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
370370

371371
if cls:
@@ -393,8 +393,8 @@ async def begin_delete(
393393
:type provider_instance_name: str
394394
:keyword callable cls: A custom type or function that will be passed the direct response
395395
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
396-
:keyword polling: True for ARMPolling, False for no polling, or a
397-
polling object for personal polling strategy
396+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
397+
False for no polling, or your own initialized polling object for a personal polling strategy.
398398
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
399399
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
400400
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)

sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/aio/operations/_sap_monitors_operations.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async def get_next(next_link=None):
102102
response = pipeline_response.http_response
103103

104104
if response.status_code not in [200]:
105-
error = self._deserialize(_models.ErrorResponse, response)
105+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
106106
map_error(status_code=response.status_code, response=response, error_map=error_map)
107107
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
108108

@@ -164,7 +164,7 @@ async def get(
164164

165165
if response.status_code not in [200]:
166166
map_error(status_code=response.status_code, response=response, error_map=error_map)
167-
error = self._deserialize(_models.ErrorResponse, response)
167+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
168168
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
169169

170170
deserialized = self._deserialize('SapMonitor', pipeline_response)
@@ -218,7 +218,7 @@ async def _create_initial(
218218

219219
if response.status_code not in [200, 201]:
220220
map_error(status_code=response.status_code, response=response, error_map=error_map)
221-
error = self._deserialize(_models.ErrorResponse, response)
221+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
222222
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
223223

224224
if response.status_code == 200:
@@ -252,8 +252,8 @@ async def begin_create(
252252
:type sap_monitor_parameter: ~azure.mgmt.hanaonazure.models.SapMonitor
253253
:keyword callable cls: A custom type or function that will be passed the direct response
254254
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
255-
:keyword polling: True for ARMPolling, False for no polling, or a
256-
polling object for personal polling strategy
255+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
256+
False for no polling, or your own initialized polling object for a personal polling strategy.
257257
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
258258
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
259259
:return: An instance of AsyncLROPoller that returns either SapMonitor or the result of cls(response)
@@ -343,7 +343,7 @@ async def _delete_initial(
343343

344344
if response.status_code not in [200, 202, 204]:
345345
map_error(status_code=response.status_code, response=response, error_map=error_map)
346-
error = self._deserialize(_models.ErrorResponse, response)
346+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
347347
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
348348

349349
if cls:
@@ -367,8 +367,8 @@ async def begin_delete(
367367
:type sap_monitor_name: str
368368
:keyword callable cls: A custom type or function that will be passed the direct response
369369
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
370-
:keyword polling: True for ARMPolling, False for no polling, or a
371-
polling object for personal polling strategy
370+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
371+
False for no polling, or your own initialized polling object for a personal polling strategy.
372372
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
373373
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
374374
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -476,7 +476,7 @@ async def update(
476476

477477
if response.status_code not in [200]:
478478
map_error(status_code=response.status_code, response=response, error_map=error_map)
479-
error = self._deserialize(_models.ErrorResponse, response)
479+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
480480
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
481481

482482
deserialized = self._deserialize('SapMonitor', pipeline_response)

sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
try:
1010
from ._models_py3 import Display
1111
from ._models_py3 import ErrorResponse
12+
from ._models_py3 import ErrorResponseError
1213
from ._models_py3 import Operation
1314
from ._models_py3 import OperationList
1415
from ._models_py3 import ProviderInstance
@@ -22,6 +23,7 @@
2223
except (SyntaxError, ImportError):
2324
from ._models import Display # type: ignore
2425
from ._models import ErrorResponse # type: ignore
26+
from ._models import ErrorResponseError # type: ignore
2527
from ._models import Operation # type: ignore
2628
from ._models import OperationList # type: ignore
2729
from ._models import ProviderInstance # type: ignore
@@ -40,6 +42,7 @@
4042
__all__ = [
4143
'Display',
4244
'ErrorResponse',
45+
'ErrorResponseError',
4346
'Operation',
4447
'OperationList',
4548
'ProviderInstance',

0 commit comments

Comments
 (0)