Skip to content

Commit

Permalink
CodeGen from PR 14443 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add configurations for 5 ring 0 RPs (Azure#14443)
  • Loading branch information
SDKAuto committed May 24, 2021
1 parent bdaea28 commit dae8365
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sdk/resources/azure-mgmt-resource/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "14d2ddf809ea5c8ce9d6017b5ab1aca96df05643",
"commit": "f69f2e8053ac8ae352b11c33655234dea4cf4cfd",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"readme": "specification/resources/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def create_or_update(


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

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

# Construct headers
Expand All @@ -206,7 +206,7 @@ def _delete_initial(
return client_raw_response

def delete(
self, resource_group_name, force_deletion_resource_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Deletes a resource group.
When you delete a resource group, all of its resources are also
Expand All @@ -216,10 +216,10 @@ def delete(
:param resource_group_name: The name of the resource group to delete.
The name is case insensitive.
:type resource_group_name: str
:param force_deletion_resource_types: The resource types you want to
force delete. Currently, only the following is supported:
forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
:type force_deletion_resource_types: str
:param force_deletion_types: The resource types you want to force
delete. Currently, only the following is supported:
forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
:type force_deletion_types: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -233,7 +233,7 @@ def delete(
"""
raw_result = self._delete_initial(
resource_group_name=resource_group_name,
force_deletion_resource_types=force_deletion_resource_types,
force_deletion_types=force_deletion_types,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def create_or_update(


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

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

# Construct headers
Expand All @@ -204,7 +206,7 @@ def _delete_initial(
return client_raw_response

def delete(
self, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Deletes a resource group.
When you delete a resource group, all of its resources are also
Expand All @@ -214,6 +216,10 @@ def delete(
:param resource_group_name: The name of the resource group to delete.
The name is case insensitive.
:type resource_group_name: str
:param force_deletion_types: The resource types you want to force
delete. Currently, only the following is supported:
forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
:type force_deletion_types: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -227,6 +233,7 @@ def delete(
"""
raw_result = self._delete_initial(
resource_group_name=resource_group_name,
force_deletion_types=force_deletion_types,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def create_or_update(


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

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

# Construct headers
Expand All @@ -204,7 +206,7 @@ def _delete_initial(
return client_raw_response

def delete(
self, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, force_deletion_types=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Deletes a resource group.
When you delete a resource group, all of its resources are also
Expand All @@ -214,6 +216,10 @@ def delete(
:param resource_group_name: The name of the resource group to delete.
The name is case insensitive.
:type resource_group_name: str
:param force_deletion_types: The resource types you want to force
delete. Currently, only the following is supported:
forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
:type force_deletion_types: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -227,6 +233,7 @@ def delete(
"""
raw_result = self._delete_initial(
resource_group_name=resource_group_name,
force_deletion_types=force_deletion_types,
custom_headers=custom_headers,
raw=True,
**operation_config
Expand Down

0 comments on commit dae8365

Please sign in to comment.