Skip to content

Commit 381a234

Browse files
author
SDKAuto
committed
CodeGen from PR 14736 in Azure/azure-rest-api-specs
Merge f14ca5ab390c6baba6effb115fc558f52921e5fb into e92d236
1 parent fd411ac commit 381a234

File tree

11 files changed

+57
-40
lines changed

11 files changed

+57
-40
lines changed

sdk/resources/azure-mgmt-resource/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"autorest": "V2",
33
"use": "@microsoft.azure/autorest.python@~4.0.71",
4-
"commit": "14d2ddf809ea5c8ce9d6017b5ab1aca96df05643",
4+
"commit": "63a0871e54a3e91fc6cbe320fcb84dea9c2e52d3",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
66
"autorest_command": "autorest specification/resources/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
77
"readme": "specification/resources/resource-manager/readme.md"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ResourceManagementClientConfiguration(AzureConfiguration):
2121
:param credentials: Credentials needed for the client to connect to Azure.
2222
:type credentials: :mod:`A msrestazure Credentials
2323
object<msrestazure.azure_active_directory>`
24-
:param subscription_id: The ID of the target subscription.
24+
:param subscription_id: The Microsoft Azure subscription ID.
2525
:type subscription_id: str
2626
:param str base_url: Service URL
2727
"""

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resource_groups_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def _export_template_initial(
387387
url = self.export_template.metadata['url']
388388
path_format_arguments = {
389389
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
390-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
390+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1)
391391
}
392392
url = self._client.format_url(url, **path_format_arguments)
393393

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_resource_groups_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def _export_template_initial(
387387
url = self.export_template.metadata['url']
388388
path_format_arguments = {
389389
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
390-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
390+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1)
391391
}
392392
url = self._client.format_url(url, **path_format_arguments)
393393

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01/operations/_resource_groups_operations.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def create_or_update(
168168

169169

170170
def _delete_initial(
171-
self, resource_group_name, force_deletion_resource_types=None, custom_headers=None, raw=False, **operation_config):
171+
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, **operation_config):
172172
# Construct URL
173173
url = self.delete.metadata['url']
174174
path_format_arguments = {
@@ -179,8 +179,8 @@ def _delete_initial(
179179

180180
# Construct parameters
181181
query_parameters = {}
182-
if force_deletion_resource_types is not None:
183-
query_parameters['forceDeletionResourceTypes'] = self._serialize.query("force_deletion_resource_types", force_deletion_resource_types, 'str')
182+
if force_deletion_types is not None:
183+
query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str')
184184
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
185185

186186
# Construct headers
@@ -206,7 +206,7 @@ def _delete_initial(
206206
return client_raw_response
207207

208208
def delete(
209-
self, resource_group_name, force_deletion_resource_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
209+
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
210210
"""Deletes a resource group.
211211
212212
When you delete a resource group, all of its resources are also
@@ -216,10 +216,10 @@ def delete(
216216
:param resource_group_name: The name of the resource group to delete.
217217
The name is case insensitive.
218218
:type resource_group_name: str
219-
:param force_deletion_resource_types: The resource types you want to
220-
force delete. Currently, only the following is supported:
221-
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
222-
:type force_deletion_resource_types: str
219+
:param force_deletion_types: The resource types you want to force
220+
delete. Currently, only the following is supported:
221+
forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
222+
:type force_deletion_types: str
223223
:param dict custom_headers: headers that will be added to the request
224224
:param bool raw: The poller return type is ClientRawResponse, the
225225
direct response alongside the deserialized response
@@ -233,7 +233,7 @@ def delete(
233233
"""
234234
raw_result = self._delete_initial(
235235
resource_group_name=resource_group_name,
236-
force_deletion_resource_types=force_deletion_resource_types,
236+
force_deletion_types=force_deletion_types,
237237
custom_headers=custom_headers,
238238
raw=True,
239239
**operation_config
@@ -394,7 +394,7 @@ def _export_template_initial(
394394
url = self.export_template.metadata['url']
395395
path_format_arguments = {
396396
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
397-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
397+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1)
398398
}
399399
url = self._client.format_url(url, **path_format_arguments)
400400

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/operations/_resource_groups_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def _export_template_initial(
387387
url = self.export_template.metadata['url']
388388
path_format_arguments = {
389389
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
390-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
390+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1)
391391
}
392392
url = self._client.format_url(url, **path_format_arguments)
393393

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/operations/_resource_groups_operations.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def create_or_update(
168168

169169

170170
def _delete_initial(
171-
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
171+
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, **operation_config):
172172
# Construct URL
173173
url = self.delete.metadata['url']
174174
path_format_arguments = {
@@ -179,6 +179,8 @@ def _delete_initial(
179179

180180
# Construct parameters
181181
query_parameters = {}
182+
if force_deletion_types is not None:
183+
query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str')
182184
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
183185

184186
# Construct headers
@@ -204,7 +206,7 @@ def _delete_initial(
204206
return client_raw_response
205207

206208
def delete(
207-
self, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config):
209+
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
208210
"""Deletes a resource group.
209211
210212
When you delete a resource group, all of its resources are also
@@ -214,6 +216,10 @@ def delete(
214216
:param resource_group_name: The name of the resource group to delete.
215217
The name is case insensitive.
216218
:type resource_group_name: str
219+
:param force_deletion_types: The resource types you want to force
220+
delete. Currently, only the following is supported:
221+
forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
222+
:type force_deletion_types: str
217223
:param dict custom_headers: headers that will be added to the request
218224
:param bool raw: The poller return type is ClientRawResponse, the
219225
direct response alongside the deserialized response
@@ -227,6 +233,7 @@ def delete(
227233
"""
228234
raw_result = self._delete_initial(
229235
resource_group_name=resource_group_name,
236+
force_deletion_types=force_deletion_types,
230237
custom_headers=custom_headers,
231238
raw=True,
232239
**operation_config
@@ -387,7 +394,7 @@ def _export_template_initial(
387394
url = self.export_template.metadata['url']
388395
path_format_arguments = {
389396
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
390-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
397+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1)
391398
}
392399
url = self._client.format_url(url, **path_format_arguments)
393400

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ResourceManagementClientConfiguration(AzureConfiguration):
2121
:param credentials: Credentials needed for the client to connect to Azure.
2222
:type credentials: :mod:`A msrestazure Credentials
2323
object<msrestazure.azure_active_directory>`
24-
:param subscription_id: The ID of the target subscription.
24+
:param subscription_id: The Microsoft Azure subscription ID.
2525
:type subscription_id: str
2626
:param str base_url: Service URL
2727
"""

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/_resource_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ResourceManagementClient(SDKClient):
5050
:param credentials: Credentials needed for the client to connect to Azure.
5151
:type credentials: :mod:`A msrestazure Credentials
5252
object<msrestazure.azure_active_directory>`
53-
:param subscription_id: The ID of the target subscription.
53+
:param subscription_id: The Microsoft Azure subscription ID.
5454
:type subscription_id: str
5555
:param str base_url: Service URL
5656
"""

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_resource_groups_operations.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def create_or_update(
168168

169169

170170
def _delete_initial(
171-
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
171+
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, **operation_config):
172172
# Construct URL
173173
url = self.delete.metadata['url']
174174
path_format_arguments = {
@@ -179,6 +179,8 @@ def _delete_initial(
179179

180180
# Construct parameters
181181
query_parameters = {}
182+
if force_deletion_types is not None:
183+
query_parameters['forceDeletionTypes'] = self._serialize.query("force_deletion_types", force_deletion_types, 'str')
182184
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
183185

184186
# Construct headers
@@ -204,7 +206,7 @@ def _delete_initial(
204206
return client_raw_response
205207

206208
def delete(
207-
self, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config):
209+
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
208210
"""Deletes a resource group.
209211
210212
When you delete a resource group, all of its resources are also
@@ -214,6 +216,10 @@ def delete(
214216
:param resource_group_name: The name of the resource group to delete.
215217
The name is case insensitive.
216218
:type resource_group_name: str
219+
:param force_deletion_types: The resource types you want to force
220+
delete. Currently, only the following is supported:
221+
forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
222+
:type force_deletion_types: str
217223
:param dict custom_headers: headers that will be added to the request
218224
:param bool raw: The poller return type is ClientRawResponse, the
219225
direct response alongside the deserialized response
@@ -227,6 +233,7 @@ def delete(
227233
"""
228234
raw_result = self._delete_initial(
229235
resource_group_name=resource_group_name,
236+
force_deletion_types=force_deletion_types,
230237
custom_headers=custom_headers,
231238
raw=True,
232239
**operation_config
@@ -387,7 +394,7 @@ def _export_template_initial(
387394
url = self.export_template.metadata['url']
388395
path_format_arguments = {
389396
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
390-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
397+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1)
391398
}
392399
url = self._client.format_url(url, **path_format_arguments)
393400

0 commit comments

Comments
 (0)