@@ -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