Skip to content

Commit 4d84096

Browse files
author
SDKAuto
committed
CodeGen from PR 14608 in Azure/azure-rest-api-specs
Merge 5d36f85574e1c2052e457256310c215d11843be5 into a380bd6
1 parent f559b78 commit 4d84096

File tree

45 files changed

+802
-287
lines changed

Some content is hidden

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

45 files changed

+802
-287
lines changed
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": "183313e5bd744c0946a0dbde961a15fca5f2f947",
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/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 = "1.0.0b1"

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

0 commit comments

Comments
 (0)