@@ -46,7 +46,7 @@ async def create_or_update(
4646 resource_group_name : str ,
4747 account_name : str ,
4848 maps_account : "_models.MapsAccount" ,
49- ** kwargs
49+ ** kwargs : Any
5050 ) -> "_models.MapsAccount" :
5151 """Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps
5252 REST APIs.
@@ -67,15 +67,15 @@ async def create_or_update(
6767 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
6868 }
6969 error_map .update (kwargs .pop ('error_map' , {}))
70- api_version = "2021-02 -01"
70+ api_version = "2021-07 -01-preview "
7171 content_type = kwargs .pop ("content_type" , "application/json" )
7272 accept = "application/json"
7373
7474 # Construct URL
7575 url = self .create_or_update .metadata ['url' ] # type: ignore
7676 path_format_arguments = {
7777 'subscriptionId' : self ._serialize .url ("self._config.subscription_id" , self ._config .subscription_id , 'str' , min_length = 1 ),
78- 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$' ),
78+ 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 ),
7979 'accountName' : self ._serialize .url ("account_name" , account_name , 'str' ),
8080 }
8181 url = self ._client .format_url (url , ** path_format_arguments )
@@ -118,7 +118,7 @@ async def update(
118118 resource_group_name : str ,
119119 account_name : str ,
120120 maps_account_update_parameters : "_models.MapsAccountUpdateParameters" ,
121- ** kwargs
121+ ** kwargs : Any
122122 ) -> "_models.MapsAccount" :
123123 """Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as
124124 Sku, Tags, Properties.
@@ -139,15 +139,15 @@ async def update(
139139 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
140140 }
141141 error_map .update (kwargs .pop ('error_map' , {}))
142- api_version = "2021-02 -01"
142+ api_version = "2021-07 -01-preview "
143143 content_type = kwargs .pop ("content_type" , "application/json" )
144144 accept = "application/json"
145145
146146 # Construct URL
147147 url = self .update .metadata ['url' ] # type: ignore
148148 path_format_arguments = {
149149 'subscriptionId' : self ._serialize .url ("self._config.subscription_id" , self ._config .subscription_id , 'str' , min_length = 1 ),
150- 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$' ),
150+ 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 ),
151151 'accountName' : self ._serialize .url ("account_name" , account_name , 'str' ),
152152 }
153153 url = self ._client .format_url (url , ** path_format_arguments )
@@ -185,7 +185,7 @@ async def delete(
185185 self ,
186186 resource_group_name : str ,
187187 account_name : str ,
188- ** kwargs
188+ ** kwargs : Any
189189 ) -> None :
190190 """Delete a Maps Account.
191191
@@ -203,14 +203,14 @@ async def delete(
203203 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
204204 }
205205 error_map .update (kwargs .pop ('error_map' , {}))
206- api_version = "2021-02 -01"
206+ api_version = "2021-07 -01-preview "
207207 accept = "application/json"
208208
209209 # Construct URL
210210 url = self .delete .metadata ['url' ] # type: ignore
211211 path_format_arguments = {
212212 'subscriptionId' : self ._serialize .url ("self._config.subscription_id" , self ._config .subscription_id , 'str' , min_length = 1 ),
213- 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$' ),
213+ 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 ),
214214 'accountName' : self ._serialize .url ("account_name" , account_name , 'str' ),
215215 }
216216 url = self ._client .format_url (url , ** path_format_arguments )
@@ -241,7 +241,7 @@ async def get(
241241 self ,
242242 resource_group_name : str ,
243243 account_name : str ,
244- ** kwargs
244+ ** kwargs : Any
245245 ) -> "_models.MapsAccount" :
246246 """Get a Maps Account.
247247
@@ -259,14 +259,14 @@ async def get(
259259 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
260260 }
261261 error_map .update (kwargs .pop ('error_map' , {}))
262- api_version = "2021-02 -01"
262+ api_version = "2021-07 -01-preview "
263263 accept = "application/json"
264264
265265 # Construct URL
266266 url = self .get .metadata ['url' ] # type: ignore
267267 path_format_arguments = {
268268 'subscriptionId' : self ._serialize .url ("self._config.subscription_id" , self ._config .subscription_id , 'str' , min_length = 1 ),
269- 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$' ),
269+ 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 ),
270270 'accountName' : self ._serialize .url ("account_name" , account_name , 'str' ),
271271 }
272272 url = self ._client .format_url (url , ** path_format_arguments )
@@ -299,7 +299,7 @@ async def get(
299299 def list_by_resource_group (
300300 self ,
301301 resource_group_name : str ,
302- ** kwargs
302+ ** kwargs : Any
303303 ) -> AsyncIterable ["_models.MapsAccounts" ]:
304304 """Get all Maps Accounts in a Resource Group.
305305
@@ -315,7 +315,7 @@ def list_by_resource_group(
315315 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
316316 }
317317 error_map .update (kwargs .pop ('error_map' , {}))
318- api_version = "2021-02 -01"
318+ api_version = "2021-07 -01-preview "
319319 accept = "application/json"
320320
321321 def prepare_request (next_link = None ):
@@ -328,7 +328,7 @@ def prepare_request(next_link=None):
328328 url = self .list_by_resource_group .metadata ['url' ] # type: ignore
329329 path_format_arguments = {
330330 'subscriptionId' : self ._serialize .url ("self._config.subscription_id" , self ._config .subscription_id , 'str' , min_length = 1 ),
331- 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$' ),
331+ 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 ),
332332 }
333333 url = self ._client .format_url (url , ** path_format_arguments )
334334 # Construct parameters
@@ -369,7 +369,7 @@ async def get_next(next_link=None):
369369
370370 def list_by_subscription (
371371 self ,
372- ** kwargs
372+ ** kwargs : Any
373373 ) -> AsyncIterable ["_models.MapsAccounts" ]:
374374 """Get all Maps Accounts in a Subscription.
375375
@@ -383,7 +383,7 @@ def list_by_subscription(
383383 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
384384 }
385385 error_map .update (kwargs .pop ('error_map' , {}))
386- api_version = "2021-02 -01"
386+ api_version = "2021-07 -01-preview "
387387 accept = "application/json"
388388
389389 def prepare_request (next_link = None ):
@@ -438,7 +438,7 @@ async def list_keys(
438438 self ,
439439 resource_group_name : str ,
440440 account_name : str ,
441- ** kwargs
441+ ** kwargs : Any
442442 ) -> "_models.MapsAccountKeys" :
443443 """Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to
444444 the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
@@ -458,14 +458,14 @@ async def list_keys(
458458 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
459459 }
460460 error_map .update (kwargs .pop ('error_map' , {}))
461- api_version = "2021-02 -01"
461+ api_version = "2021-07 -01-preview "
462462 accept = "application/json"
463463
464464 # Construct URL
465465 url = self .list_keys .metadata ['url' ] # type: ignore
466466 path_format_arguments = {
467467 'subscriptionId' : self ._serialize .url ("self._config.subscription_id" , self ._config .subscription_id , 'str' , min_length = 1 ),
468- 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$' ),
468+ 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 ),
469469 'accountName' : self ._serialize .url ("account_name" , account_name , 'str' ),
470470 }
471471 url = self ._client .format_url (url , ** path_format_arguments )
@@ -500,7 +500,7 @@ async def regenerate_keys(
500500 resource_group_name : str ,
501501 account_name : str ,
502502 key_specification : "_models.MapsKeySpecification" ,
503- ** kwargs
503+ ** kwargs : Any
504504 ) -> "_models.MapsAccountKeys" :
505505 """Regenerate either the primary or secondary key for use with the Maps APIs. The old key will
506506 stop working immediately.
@@ -521,15 +521,15 @@ async def regenerate_keys(
521521 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
522522 }
523523 error_map .update (kwargs .pop ('error_map' , {}))
524- api_version = "2021-02 -01"
524+ api_version = "2021-07 -01-preview "
525525 content_type = kwargs .pop ("content_type" , "application/json" )
526526 accept = "application/json"
527527
528528 # Construct URL
529529 url = self .regenerate_keys .metadata ['url' ] # type: ignore
530530 path_format_arguments = {
531531 'subscriptionId' : self ._serialize .url ("self._config.subscription_id" , self ._config .subscription_id , 'str' , min_length = 1 ),
532- 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$' ),
532+ 'resourceGroupName' : self ._serialize .url ("resource_group_name" , resource_group_name , 'str' , max_length = 90 , min_length = 1 ),
533533 'accountName' : self ._serialize .url ("account_name" , account_name , 'str' ),
534534 }
535535 url = self ._client .format_url (url , ** path_format_arguments )
0 commit comments