@@ -39,11 +39,11 @@ def __init__(self, client, config, serializer, deserializer):
39
39
self .config = config
40
40
41
41
def list (
42
- self , resource_group , custom_headers = None , raw = False , ** operation_config ):
42
+ self , resource_group_name , custom_headers = None , raw = False , ** operation_config ):
43
43
"""Lists all NetApp accounts in the resource group.
44
44
45
- :param resource_group : The name of the resource group.
46
- :type resource_group : str
45
+ :param resource_group_name : The name of the resource group.
46
+ :type resource_group_name : str
47
47
:param dict custom_headers: headers that will be added to the request
48
48
:param bool raw: returns the direct response alongside the
49
49
deserialized response
@@ -62,7 +62,7 @@ def internal_paging(next_link=None, raw=False):
62
62
url = self .list .metadata ['url' ]
63
63
path_format_arguments = {
64
64
'subscriptionId' : self ._serialize .url ("self.config.subscription_id" , self .config .subscription_id , 'str' ),
65
- 'resourceGroup ' : self ._serialize .url ("resource_group " , resource_group , 'str' )
65
+ 'resourceGroupName ' : self ._serialize .url ("resource_group_name " , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$ ' )
66
66
}
67
67
url = self ._client .format_url (url , ** path_format_arguments )
68
68
@@ -102,14 +102,14 @@ def internal_paging(next_link=None, raw=False):
102
102
return client_raw_response
103
103
104
104
return deserialized
105
- list .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup }/providers/Microsoft.NetApp/netAppAccounts' }
105
+ list .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName }/providers/Microsoft.NetApp/netAppAccounts' }
106
106
107
107
def get (
108
- self , resource_group , account_name , custom_headers = None , raw = False , ** operation_config ):
108
+ self , resource_group_name , account_name , custom_headers = None , raw = False , ** operation_config ):
109
109
"""Get the NetApp account.
110
110
111
- :param resource_group : The name of the resource group.
112
- :type resource_group : str
111
+ :param resource_group_name : The name of the resource group.
112
+ :type resource_group_name : str
113
113
:param account_name: The name of the NetApp account
114
114
:type account_name: str
115
115
:param dict custom_headers: headers that will be added to the request
@@ -127,7 +127,7 @@ def get(
127
127
url = self .get .metadata ['url' ]
128
128
path_format_arguments = {
129
129
'subscriptionId' : self ._serialize .url ("self.config.subscription_id" , self .config .subscription_id , 'str' ),
130
- 'resourceGroup ' : self ._serialize .url ("resource_group " , resource_group , 'str' ),
130
+ 'resourceGroupName ' : self ._serialize .url ("resource_group_name " , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$ ' ),
131
131
'accountName' : self ._serialize .url ("account_name" , account_name , 'str' )
132
132
}
133
133
url = self ._client .format_url (url , ** path_format_arguments )
@@ -163,18 +163,18 @@ def get(
163
163
return client_raw_response
164
164
165
165
return deserialized
166
- get .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
166
+ get .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
167
167
168
168
169
169
def _create_or_update_initial (
170
- self , resource_group , account_name , location , tags = None , custom_headers = None , raw = False , ** operation_config ):
170
+ self , resource_group_name , account_name , location , tags = None , custom_headers = None , raw = False , ** operation_config ):
171
171
body = models .NetAppAccount (location = location , tags = tags )
172
172
173
173
# Construct URL
174
174
url = self .create_or_update .metadata ['url' ]
175
175
path_format_arguments = {
176
176
'subscriptionId' : self ._serialize .url ("self.config.subscription_id" , self .config .subscription_id , 'str' ),
177
- 'resourceGroup ' : self ._serialize .url ("resource_group " , resource_group , 'str' ),
177
+ 'resourceGroupName ' : self ._serialize .url ("resource_group_name " , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$ ' ),
178
178
'accountName' : self ._serialize .url ("account_name" , account_name , 'str' )
179
179
}
180
180
url = self ._client .format_url (url , ** path_format_arguments )
@@ -216,11 +216,11 @@ def _create_or_update_initial(
216
216
return deserialized
217
217
218
218
def create_or_update (
219
- self , resource_group , account_name , location , tags = None , custom_headers = None , raw = False , polling = True , ** operation_config ):
219
+ self , resource_group_name , account_name , location , tags = None , custom_headers = None , raw = False , polling = True , ** operation_config ):
220
220
"""Create or update a NetApp account.
221
221
222
- :param resource_group : The name of the resource group.
223
- :type resource_group : str
222
+ :param resource_group_name : The name of the resource group.
223
+ :type resource_group_name : str
224
224
:param account_name: The name of the NetApp account
225
225
:type account_name: str
226
226
:param location: Resource location
@@ -242,7 +242,7 @@ def create_or_update(
242
242
:class:`ErrorException<azure.mgmt.netapp.models.ErrorException>`
243
243
"""
244
244
raw_result = self ._create_or_update_initial (
245
- resource_group = resource_group ,
245
+ resource_group_name = resource_group_name ,
246
246
account_name = account_name ,
247
247
location = location ,
248
248
tags = tags ,
@@ -267,16 +267,16 @@ def get_long_running_output(response):
267
267
elif polling is False : polling_method = NoPolling ()
268
268
else : polling_method = polling
269
269
return LROPoller (self ._client , raw_result , get_long_running_output , polling_method )
270
- create_or_update .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
270
+ create_or_update .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
271
271
272
272
273
273
def _delete_initial (
274
- self , resource_group , account_name , custom_headers = None , raw = False , ** operation_config ):
274
+ self , resource_group_name , account_name , custom_headers = None , raw = False , ** operation_config ):
275
275
# Construct URL
276
276
url = self .delete .metadata ['url' ]
277
277
path_format_arguments = {
278
278
'subscriptionId' : self ._serialize .url ("self.config.subscription_id" , self .config .subscription_id , 'str' ),
279
- 'resourceGroup ' : self ._serialize .url ("resource_group " , resource_group , 'str' ),
279
+ 'resourceGroupName ' : self ._serialize .url ("resource_group_name " , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$ ' ),
280
280
'accountName' : self ._serialize .url ("account_name" , account_name , 'str' )
281
281
}
282
282
url = self ._client .format_url (url , ** path_format_arguments )
@@ -306,11 +306,11 @@ def _delete_initial(
306
306
return client_raw_response
307
307
308
308
def delete (
309
- self , resource_group , account_name , custom_headers = None , raw = False , polling = True , ** operation_config ):
309
+ self , resource_group_name , account_name , custom_headers = None , raw = False , polling = True , ** operation_config ):
310
310
"""Delete a NetApp account.
311
311
312
- :param resource_group : The name of the resource group.
313
- :type resource_group : str
312
+ :param resource_group_name : The name of the resource group.
313
+ :type resource_group_name : str
314
314
:param account_name: The name of the NetApp account
315
315
:type account_name: str
316
316
:param dict custom_headers: headers that will be added to the request
@@ -326,7 +326,7 @@ def delete(
326
326
:class:`ErrorException<azure.mgmt.netapp.models.ErrorException>`
327
327
"""
328
328
raw_result = self ._delete_initial (
329
- resource_group = resource_group ,
329
+ resource_group_name = resource_group_name ,
330
330
account_name = account_name ,
331
331
custom_headers = custom_headers ,
332
332
raw = True ,
@@ -345,14 +345,14 @@ def get_long_running_output(response):
345
345
elif polling is False : polling_method = NoPolling ()
346
346
else : polling_method = polling
347
347
return LROPoller (self ._client , raw_result , get_long_running_output , polling_method )
348
- delete .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
348
+ delete .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
349
349
350
350
def update (
351
- self , resource_group , account_name , tags = None , custom_headers = None , raw = False , ** operation_config ):
351
+ self , resource_group_name , account_name , tags = None , custom_headers = None , raw = False , ** operation_config ):
352
352
"""Patch a NetApp account.
353
353
354
- :param resource_group : The name of the resource group.
355
- :type resource_group : str
354
+ :param resource_group_name : The name of the resource group.
355
+ :type resource_group_name : str
356
356
:param account_name: The name of the NetApp account
357
357
:type account_name: str
358
358
:param tags: Resource tags
@@ -374,7 +374,7 @@ def update(
374
374
url = self .update .metadata ['url' ]
375
375
path_format_arguments = {
376
376
'subscriptionId' : self ._serialize .url ("self.config.subscription_id" , self .config .subscription_id , 'str' ),
377
- 'resourceGroup ' : self ._serialize .url ("resource_group " , resource_group , 'str' ),
377
+ 'resourceGroupName ' : self ._serialize .url ("resource_group_name " , resource_group_name , 'str' , max_length = 90 , min_length = 1 , pattern = r'^[-\w\._\(\)]+$ ' ),
378
378
'accountName' : self ._serialize .url ("account_name" , account_name , 'str' )
379
379
}
380
380
url = self ._client .format_url (url , ** path_format_arguments )
@@ -414,4 +414,4 @@ def update(
414
414
return client_raw_response
415
415
416
416
return deserialized
417
- update .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
417
+ update .metadata = {'url' : '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName }/providers/Microsoft.NetApp/netAppAccounts/{accountName}' }
0 commit comments