Skip to content

Commit 5b71190

Browse files
author
SDKAuto
committed
CodeGen from PR 14714 in Azure/azure-rest-api-specs
Merge 7a3eeb8530e1935618f79c2927de6e86c92b71b0 into 0c05756
1 parent fae3605 commit 5b71190

File tree

65 files changed

+2143
-458
lines changed

Some content is hidden

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

65 files changed

+2143
-458
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.4.2",
33
"use": [
4-
"@autorest/[email protected].0",
4+
"@autorest/[email protected].1",
55
"@autorest/[email protected]"
66
],
7-
"commit": "5b141b3de81d3a38ee2406e1a9db5a9ecd08ff7d",
7+
"commit": "def6aa444c899fe9f30667a5650c5e9bfec587e5",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
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/[email protected].0 --use=@autorest/[email protected] --version=3.4.2",
10-
"readme": "specification/mariadb/resource-manager/readme.md"
9+
"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/[email protected].1 --use=@autorest/[email protected] --version=3.4.2",
10+
"readme": "specification/postgresql/resource-manager/readme.md"
1111
}

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_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 = "8.1.0"
9+
VERSION = "1.0.0b1"

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/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/postgresql/aio/operations/_configurations_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
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 = {
@@ -64,7 +64,7 @@ async def _create_or_update_initial(
6464
url = self._create_or_update_initial.metadata['url'] # type: ignore
6565
path_format_arguments = {
6666
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
67-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
67+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
6868
'serverName': self._serialize.url("server_name", server_name, 'str'),
6969
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
7070
}
@@ -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.postgresql.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: Pass in True if you'd like the AsyncARMPolling polling method,
124-
False for no polling, or your own initialized polling object for a 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)
@@ -157,7 +157,7 @@ def get_long_running_output(pipeline_response):
157157

158158
path_format_arguments = {
159159
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
160-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
160+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
161161
'serverName': self._serialize.url("server_name", server_name, 'str'),
162162
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
163163
}
@@ -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
@@ -208,7 +208,7 @@ async def get(
208208
url = self.get.metadata['url'] # type: ignore
209209
path_format_arguments = {
210210
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
211-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
211+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
212212
'serverName': self._serialize.url("server_name", server_name, 'str'),
213213
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
214214
}
@@ -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
@@ -273,7 +273,7 @@ def prepare_request(next_link=None):
273273
url = self.list_by_server.metadata['url'] # type: ignore
274274
path_format_arguments = {
275275
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
276-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
276+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
277277
'serverName': self._serialize.url("server_name", server_name, 'str'),
278278
}
279279
url = self._client.format_url(url, **path_format_arguments)

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

Lines changed: 16 additions & 16 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 = {
@@ -64,7 +64,7 @@ async def _create_or_update_initial(
6464
url = self._create_or_update_initial.metadata['url'] # type: ignore
6565
path_format_arguments = {
6666
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
67-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
67+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
6868
'serverName': self._serialize.url("server_name", server_name, 'str'),
6969
'databaseName': self._serialize.url("database_name", database_name, 'str'),
7070
}
@@ -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.postgresql.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: Pass in True if you'd like the AsyncARMPolling polling method,
127-
False for no polling, or your own initialized polling object for a 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)
@@ -160,7 +160,7 @@ def get_long_running_output(pipeline_response):
160160

161161
path_format_arguments = {
162162
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
163-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
163+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
164164
'serverName': self._serialize.url("server_name", server_name, 'str'),
165165
'databaseName': self._serialize.url("database_name", database_name, 'str'),
166166
}
@@ -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 = {
@@ -198,7 +198,7 @@ async def _delete_initial(
198198
url = self._delete_initial.metadata['url'] # type: ignore
199199
path_format_arguments = {
200200
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
201-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
201+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
202202
'serverName': self._serialize.url("server_name", server_name, 'str'),
203203
'databaseName': self._serialize.url("database_name", database_name, 'str'),
204204
}
@@ -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: Pass in True if you'd like the AsyncARMPolling polling method,
246-
False for no polling, or your own initialized polling object for a 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)
@@ -275,7 +275,7 @@ def get_long_running_output(pipeline_response):
275275

276276
path_format_arguments = {
277277
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
278-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
278+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
279279
'serverName': self._serialize.url("server_name", server_name, 'str'),
280280
'databaseName': self._serialize.url("database_name", database_name, 'str'),
281281
}
@@ -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
@@ -326,7 +326,7 @@ async def get(
326326
url = self.get.metadata['url'] # type: ignore
327327
path_format_arguments = {
328328
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
329-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
329+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
330330
'serverName': self._serialize.url("server_name", server_name, 'str'),
331331
'databaseName': self._serialize.url("database_name", database_name, 'str'),
332332
}
@@ -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
@@ -391,7 +391,7 @@ def prepare_request(next_link=None):
391391
url = self.list_by_server.metadata['url'] # type: ignore
392392
path_format_arguments = {
393393
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
394-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
394+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
395395
'serverName': self._serialize.url("server_name", server_name, 'str'),
396396
}
397397
url = self._client.format_url(url, **path_format_arguments)

0 commit comments

Comments
 (0)