Skip to content

Commit c43a3ec

Browse files
author
SDKAuto
committed
CodeGen from PR 14580 in Azure/azure-rest-api-specs
Merge 709604a1c610936422613d50acf6f168ae4aeb54 into 08f5e39
1 parent d8feed9 commit c43a3ec

File tree

48 files changed

+253
-250
lines changed

Some content is hidden

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

48 files changed

+253
-250
lines changed
Lines changed: 7 additions & 4 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": "797c7724ab4c935dc52409cd532f0f3c559b4c08",
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",
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/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
710
"readme": "specification/postgresql/resource-manager/readme.md"
811
}

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.0b4"
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: 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.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)
@@ -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/postgresql/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.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)
@@ -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: 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)
@@ -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/postgresql/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.postgresql.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: 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 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: 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)
@@ -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/postgresql/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/postgresql/aio/operations/_log_files_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def list_by_server(
4545
self,
4646
resource_group_name: str,
4747
server_name: str,
48-
**kwargs
48+
**kwargs: Any
4949
) -> AsyncIterable["_models.LogFileListResult"]:
5050
"""List all the log files in a given server.
5151

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4242

4343
async def list(
4444
self,
45-
**kwargs
45+
**kwargs: Any
4646
) -> "_models.OperationListResult":
4747
"""Lists all of the available REST API operations.
4848

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def get(
4848
resource_group_name: str,
4949
server_name: str,
5050
private_endpoint_connection_name: str,
51-
**kwargs
51+
**kwargs: Any
5252
) -> "_models.PrivateEndpointConnection":
5353
"""Gets a private endpoint connection.
5454
@@ -111,7 +111,7 @@ async def _create_or_update_initial(
111111
server_name: str,
112112
private_endpoint_connection_name: str,
113113
parameters: "_models.PrivateEndpointConnection",
114-
**kwargs
114+
**kwargs: Any
115115
) -> Optional["_models.PrivateEndpointConnection"]:
116116
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]]
117117
error_map = {
@@ -168,7 +168,7 @@ async def begin_create_or_update(
168168
server_name: str,
169169
private_endpoint_connection_name: str,
170170
parameters: "_models.PrivateEndpointConnection",
171-
**kwargs
171+
**kwargs: Any
172172
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
173173
"""Approve or reject a private endpoint connection with a given name.
174174
@@ -182,8 +182,8 @@ async def begin_create_or_update(
182182
:type parameters: ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointConnection
183183
:keyword callable cls: A custom type or function that will be passed the direct response
184184
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
185-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
186-
False for no polling, or your own initialized polling object for a personal polling strategy.
185+
:keyword polling: By default, your polling method will be AsyncARMPolling.
186+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
187187
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
188188
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
189189
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
@@ -243,7 +243,7 @@ async def _delete_initial(
243243
resource_group_name: str,
244244
server_name: str,
245245
private_endpoint_connection_name: str,
246-
**kwargs
246+
**kwargs: Any
247247
) -> None:
248248
cls = kwargs.pop('cls', None) # type: ClsType[None]
249249
error_map = {
@@ -289,7 +289,7 @@ async def begin_delete(
289289
resource_group_name: str,
290290
server_name: str,
291291
private_endpoint_connection_name: str,
292-
**kwargs
292+
**kwargs: Any
293293
) -> AsyncLROPoller[None]:
294294
"""Deletes a private endpoint connection with a given name.
295295
@@ -301,8 +301,8 @@ async def begin_delete(
301301
:type private_endpoint_connection_name: str
302302
:keyword callable cls: A custom type or function that will be passed the direct response
303303
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
304-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
305-
False for no polling, or your own initialized polling object for a personal polling strategy.
304+
:keyword polling: By default, your polling method will be AsyncARMPolling.
305+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
306306
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
307307
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
308308
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -359,7 +359,7 @@ async def _update_tags_initial(
359359
server_name: str,
360360
private_endpoint_connection_name: str,
361361
parameters: "_models.TagsObject",
362-
**kwargs
362+
**kwargs: Any
363363
) -> "_models.PrivateEndpointConnection":
364364
cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"]
365365
error_map = {
@@ -414,7 +414,7 @@ async def begin_update_tags(
414414
server_name: str,
415415
private_endpoint_connection_name: str,
416416
parameters: "_models.TagsObject",
417-
**kwargs
417+
**kwargs: Any
418418
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
419419
"""Updates tags on private endpoint connection.
420420
@@ -431,8 +431,8 @@ async def begin_update_tags(
431431
:type parameters: ~azure.mgmt.rdbms.postgresql.models.TagsObject
432432
:keyword callable cls: A custom type or function that will be passed the direct response
433433
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
434-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
435-
False for no polling, or your own initialized polling object for a personal polling strategy.
434+
:keyword polling: By default, your polling method will be AsyncARMPolling.
435+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
436436
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
437437
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
438438
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
@@ -491,7 +491,7 @@ def list_by_server(
491491
self,
492492
resource_group_name: str,
493493
server_name: str,
494-
**kwargs
494+
**kwargs: Any
495495
) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]:
496496
"""Gets all private endpoint connections on a server.
497497

0 commit comments

Comments
 (0)