@@ -40,9 +40,11 @@ def __init__(self, client, config, serializer, deserializer):
4040 self .config = config
4141
4242 def check_name_availability (
43- self , type , name , custom_headers = None , raw = False , ** operation_config ):
43+ self , location , type , name , custom_headers = None , raw = False , ** operation_config ):
4444 """Checks that the SignalR name is valid and is not already in use.
4545
46+ :param location: the region
47+ :type location: str
4648 :param type: The resource type. Should be always
4749 "Microsoft.SignalRService/SignalR".
4850 :type type: str
@@ -66,6 +68,7 @@ def check_name_availability(
6668 # Construct URL
6769 url = self .check_name_availability .metadata ['url' ]
6870 path_format_arguments = {
71+ 'location' : self ._serialize .url ("location" , location , 'str' ),
6972 'subscriptionId' : self ._serialize .url ("self.config.subscription_id" , self .config .subscription_id , 'str' )
7073 }
7174 url = self ._client .format_url (url , ** path_format_arguments )
@@ -110,7 +113,7 @@ def check_name_availability(
110113 return client_raw_response
111114
112115 return deserialized
113- check_name_availability .metadata = {'url' : '/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/checkNameAvailability' }
116+ check_name_availability .metadata = {'url' : '/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/ checkNameAvailability' }
114117
115118 def list_by_subscription (
116119 self , custom_headers = None , raw = False , ** operation_config ):
0 commit comments