Skip to content

Commit 0dec745

Browse files
Azure CLI BotSDKAutomsyycRAY-316
authored
[AutoRelease] t2-rdbms-2021-06-03-12642 (#19065)
* CodeGen from PR 14608 in Azure/azure-rest-api-specs Mariadb t2 config (#14608) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * mariadb readme config * readme.python config * track1 del Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * version,CHANGELOG * test * test config * changelog config * _version confgi * version * Update CHANGELOG.md Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <601306339@qq.com>
1 parent f24a2a6 commit 0dec745

File tree

53 files changed

+811
-5716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+811
-5716
lines changed

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

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

3+
## 8.1.0 (2021-06-08)
4+
5+
- New models and operations for mariadb
6+
37
## 8.1.0b4 (2021-04-29)
48

59
**Features**

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/python@5.6.6",
4-
"commit": "62e437e7b686c6f4fbc3e7f8b34749899932c221",
2+
"autorest": "3.4.2",
3+
"use": [
4+
"@autorest/python@5.8.0",
5+
"@autorest/modelerfour@4.19.2"
6+
],
7+
"commit": "5b141b3de81d3a38ee2406e1a9db5a9ecd08ff7d",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/postgresql/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/python@5.6.6 --version=3.3.0",
7-
"readme": "specification/postgresql/resource-manager/readme.md"
9+
"autorest_command": "autorest specification/mariadb/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/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
10+
"readme": "specification/mariadb/resource-manager/readme.md"
811
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "8.1.0b4"
8+
VERSION = "8.1.0"

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._maria_db_management_client import MariaDBManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['MariaDBManagementClient']
1114

1215
try:

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from typing import Any
1820

1921
from azure.core.credentials import TokenCredential
2022

21-
VERSION = "unknown"
2223

2324
class MariaDBManagementClientConfiguration(Configuration):
2425
"""Configuration for MariaDBManagementClient.

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_maria_db_management_client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import MariaDBManagementClientConfiguration
2122
from .operations import ServersOperations
@@ -167,6 +168,24 @@ def __init__(
167168
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
168169
self._client, self._config, self._serialize, self._deserialize)
169170

171+
def _send_request(self, http_request, **kwargs):
172+
# type: (HttpRequest, Any) -> HttpResponse
173+
"""Runs the network request through the client's chained policies.
174+
175+
:param http_request: The network request you want to make. Required.
176+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
177+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
178+
:return: The response of your network call. Does not do error handling on your response.
179+
:rtype: ~azure.core.pipeline.transport.HttpResponse
180+
"""
181+
path_format_arguments = {
182+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
183+
}
184+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
185+
stream = kwargs.pop("stream", True)
186+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
187+
return pipeline_response.http_response
188+
170189
def close(self):
171190
# type: () -> None
172191
self._client.close()

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_metadata.json

Lines changed: 167 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
VERSION = "8.1.0"

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
1414

15+
from .._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from azure.core.credentials_async import AsyncTokenCredential
1820

19-
VERSION = "unknown"
2021

2122
class MariaDBManagementClientConfiguration(Configuration):
2223
"""Configuration for MariaDBManagementClient.

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_maria_db_management_client.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -164,6 +165,23 @@ def __init__(
164165
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
165166
self._client, self._config, self._serialize, self._deserialize)
166167

168+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
169+
"""Runs the network request through the client's chained policies.
170+
171+
:param http_request: The network request you want to make. Required.
172+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
173+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
174+
:return: The response of your network call. Does not do error handling on your response.
175+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
176+
"""
177+
path_format_arguments = {
178+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
179+
}
180+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
181+
stream = kwargs.pop("stream", True)
182+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
183+
return pipeline_response.http_response
184+
167185
async def close(self) -> None:
168186
await self._client.close()
169187

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_advisors_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def get(
4646
resource_group_name: str,
4747
server_name: str,
4848
advisor_name: str,
49-
**kwargs
49+
**kwargs: Any
5050
) -> "_models.Advisor":
5151
"""Get a recommendation action advisor.
5252
@@ -107,7 +107,7 @@ def list_by_server(
107107
self,
108108
resource_group_name: str,
109109
server_name: str,
110-
**kwargs
110+
**kwargs: Any
111111
) -> AsyncIterable["_models.AdvisorsResultList"]:
112112
"""List recommendation action advisors.
113113

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_check_name_availability_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4343
async def execute(
4444
self,
4545
name_availability_request: "_models.NameAvailabilityRequest",
46-
**kwargs
46+
**kwargs: Any
4747
) -> "_models.NameAvailability":
4848
"""Check the availability of name for resource.
4949

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_configurations_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def _create_or_update_initial(
4949
server_name: str,
5050
configuration_name: str,
5151
parameters: "_models.Configuration",
52-
**kwargs
52+
**kwargs: Any
5353
) -> Optional["_models.Configuration"]:
5454
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Configuration"]]
5555
error_map = {
@@ -106,7 +106,7 @@ async def begin_create_or_update(
106106
server_name: str,
107107
configuration_name: str,
108108
parameters: "_models.Configuration",
109-
**kwargs
109+
**kwargs: Any
110110
) -> AsyncLROPoller["_models.Configuration"]:
111111
"""Updates a configuration of a server.
112112
@@ -120,8 +120,8 @@ async def begin_create_or_update(
120120
:type parameters: ~azure.mgmt.rdbms.mariadb.models.Configuration
121121
:keyword callable cls: A custom type or function that will be passed the direct response
122122
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
123-
:keyword polling: True for ARMPolling, False for no polling, or a
124-
polling object for personal polling strategy
123+
:keyword polling: By default, your polling method will be AsyncARMPolling.
124+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
125125
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
126126
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
127127
:return: An instance of AsyncLROPoller that returns either Configuration or the result of cls(response)
@@ -181,7 +181,7 @@ async def get(
181181
resource_group_name: str,
182182
server_name: str,
183183
configuration_name: str,
184-
**kwargs
184+
**kwargs: Any
185185
) -> "_models.Configuration":
186186
"""Gets information about a configuration of server.
187187
@@ -242,7 +242,7 @@ def list_by_server(
242242
self,
243243
resource_group_name: str,
244244
server_name: str,
245-
**kwargs
245+
**kwargs: Any
246246
) -> AsyncIterable["_models.ConfigurationListResult"]:
247247
"""List all the configurations in a given server.
248248

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_databases_operations.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def _create_or_update_initial(
4949
server_name: str,
5050
database_name: str,
5151
parameters: "_models.Database",
52-
**kwargs
52+
**kwargs: Any
5353
) -> Optional["_models.Database"]:
5454
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Database"]]
5555
error_map = {
@@ -109,7 +109,7 @@ async def begin_create_or_update(
109109
server_name: str,
110110
database_name: str,
111111
parameters: "_models.Database",
112-
**kwargs
112+
**kwargs: Any
113113
) -> AsyncLROPoller["_models.Database"]:
114114
"""Creates a new database or updates an existing database.
115115
@@ -123,8 +123,8 @@ async def begin_create_or_update(
123123
:type parameters: ~azure.mgmt.rdbms.mariadb.models.Database
124124
:keyword callable cls: A custom type or function that will be passed the direct response
125125
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
126-
:keyword polling: True for ARMPolling, False for no polling, or a
127-
polling object for personal polling strategy
126+
:keyword polling: By default, your polling method will be AsyncARMPolling.
127+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
128128
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
129129
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
130130
:return: An instance of AsyncLROPoller that returns either Database or the result of cls(response)
@@ -184,7 +184,7 @@ async def _delete_initial(
184184
resource_group_name: str,
185185
server_name: str,
186186
database_name: str,
187-
**kwargs
187+
**kwargs: Any
188188
) -> None:
189189
cls = kwargs.pop('cls', None) # type: ClsType[None]
190190
error_map = {
@@ -230,7 +230,7 @@ async def begin_delete(
230230
resource_group_name: str,
231231
server_name: str,
232232
database_name: str,
233-
**kwargs
233+
**kwargs: Any
234234
) -> AsyncLROPoller[None]:
235235
"""Deletes a database.
236236
@@ -242,8 +242,8 @@ async def begin_delete(
242242
:type database_name: str
243243
:keyword callable cls: A custom type or function that will be passed the direct response
244244
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
245-
:keyword polling: True for ARMPolling, False for no polling, or a
246-
polling object for personal polling strategy
245+
:keyword polling: By default, your polling method will be AsyncARMPolling.
246+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
247247
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
248248
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
249249
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -299,7 +299,7 @@ async def get(
299299
resource_group_name: str,
300300
server_name: str,
301301
database_name: str,
302-
**kwargs
302+
**kwargs: Any
303303
) -> "_models.Database":
304304
"""Gets information about a database.
305305
@@ -360,7 +360,7 @@ def list_by_server(
360360
self,
361361
resource_group_name: str,
362362
server_name: str,
363-
**kwargs
363+
**kwargs: Any
364364
) -> AsyncIterable["_models.DatabaseListResult"]:
365365
"""List all the databases in a given server.
366366

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_firewall_rules_operations.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def _create_or_update_initial(
4949
server_name: str,
5050
firewall_rule_name: str,
5151
parameters: "_models.FirewallRule",
52-
**kwargs
52+
**kwargs: Any
5353
) -> Optional["_models.FirewallRule"]:
5454
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.FirewallRule"]]
5555
error_map = {
@@ -109,7 +109,7 @@ async def begin_create_or_update(
109109
server_name: str,
110110
firewall_rule_name: str,
111111
parameters: "_models.FirewallRule",
112-
**kwargs
112+
**kwargs: Any
113113
) -> AsyncLROPoller["_models.FirewallRule"]:
114114
"""Creates a new firewall rule or updates an existing firewall rule.
115115
@@ -123,8 +123,8 @@ async def begin_create_or_update(
123123
:type parameters: ~azure.mgmt.rdbms.mariadb.models.FirewallRule
124124
:keyword callable cls: A custom type or function that will be passed the direct response
125125
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
126-
:keyword polling: True for ARMPolling, False for no polling, or a
127-
polling object for personal polling strategy
126+
:keyword polling: By default, your polling method will be AsyncARMPolling.
127+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
128128
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
129129
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
130130
:return: An instance of AsyncLROPoller that returns either FirewallRule or the result of cls(response)
@@ -184,7 +184,7 @@ async def _delete_initial(
184184
resource_group_name: str,
185185
server_name: str,
186186
firewall_rule_name: str,
187-
**kwargs
187+
**kwargs: Any
188188
) -> None:
189189
cls = kwargs.pop('cls', None) # type: ClsType[None]
190190
error_map = {
@@ -230,7 +230,7 @@ async def begin_delete(
230230
resource_group_name: str,
231231
server_name: str,
232232
firewall_rule_name: str,
233-
**kwargs
233+
**kwargs: Any
234234
) -> AsyncLROPoller[None]:
235235
"""Deletes a server firewall rule.
236236
@@ -242,8 +242,8 @@ async def begin_delete(
242242
:type firewall_rule_name: str
243243
:keyword callable cls: A custom type or function that will be passed the direct response
244244
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
245-
:keyword polling: True for ARMPolling, False for no polling, or a
246-
polling object for personal polling strategy
245+
:keyword polling: By default, your polling method will be AsyncARMPolling.
246+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
247247
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
248248
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
249249
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -299,7 +299,7 @@ async def get(
299299
resource_group_name: str,
300300
server_name: str,
301301
firewall_rule_name: str,
302-
**kwargs
302+
**kwargs: Any
303303
) -> "_models.FirewallRule":
304304
"""Gets information about a server firewall rule.
305305
@@ -360,7 +360,7 @@ def list_by_server(
360360
self,
361361
resource_group_name: str,
362362
server_name: str,
363-
**kwargs
363+
**kwargs: Any
364364
) -> AsyncIterable["_models.FirewallRuleListResult"]:
365365
"""List all the firewall rules in a given server.
366366

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_performance_tier_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4444
def list(
4545
self,
4646
location_name: str,
47-
**kwargs
47+
**kwargs: Any
4848
) -> AsyncIterable["_models.PerformanceTierListResult"]:
4949
"""List all the performance tiers at specified location in a given subscription.
5050

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_operation_status_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def get(
4444
self,
4545
location_name: str,
4646
operation_id: str,
47-
**kwargs
47+
**kwargs: Any
4848
) -> "_models.RecommendedActionSessionsOperationStatus":
4949
"""Recommendation action session operation status.
5050

0 commit comments

Comments
 (0)