ResourceGroupsOperations Class  
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:resource_groups> attribute.
Constructor
ResourceGroupsOperations(*args, **kwargs)
	Methods
| begin_delete | 
					 Deletes a resource group. When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.  | 
			
| check_existence | 
					 Checks whether a resource group exists.  | 
			
| create_or_update | 
					 Creates a resource group.  | 
			
| export_template | 
					 Captures the specified resource group as a template.  | 
			
| get | 
					 Gets a resource group.  | 
			
| list | 
					 Gets all the resource groups for a subscription.  | 
			
| list_resources | 
					 Get all the resources for a resource group.  | 
			
| patch | 
					 Updates a resource group. Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained.  | 
			
begin_delete
Deletes a resource group.
When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.
begin_delete(resource_group_name: str, **kwargs: Any) -> LROPoller[None]
		Parameters
| Name | Description | 
|---|---|
| 
		 resource_group_name 
			
				Required
			 
	 | 
	
		
		 The name of the resource group to delete. The name is case insensitive. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 An instance of LROPoller that returns either None or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
check_existence
Checks whether a resource group exists.
check_existence(resource_group_name: str, **kwargs: Any) -> bool
		Parameters
| Name | Description | 
|---|---|
| 
		 resource_group_name 
			
				Required
			 
	 | 
	
		
		 The name of the resource group to check. The name is case insensitive. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 bool or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
create_or_update
Creates a resource group.
create_or_update(resource_group_name: str, parameters: _models.ResourceGroup, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ResourceGroup
		Parameters
| Name | Description | 
|---|---|
| 
		 resource_group_name 
			
				Required
			 
	 | 
	
		
		 The name of the resource group to create or update. Required.  | 
| 
		 parameters 
			
				Required
			 
	 | 
	
		
		 Parameters supplied to the create or update a resource group. Is either a ResourceGroup type or a IO[bytes] type. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 ResourceGroup or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
export_template
Captures the specified resource group as a template.
export_template(resource_group_name: str, parameters: _models.ExportTemplateRequest, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ResourceGroupExportResult
		Parameters
| Name | Description | 
|---|---|
| 
		 resource_group_name 
			
				Required
			 
	 | 
	
		
		 The name of the resource group to export as a template. Required.  | 
| 
		 parameters 
			
				Required
			 
	 | 
	
		
		 Parameters for exporting the template. Is either a ExportTemplateRequest type or a IO[bytes] type. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 ResourceGroupExportResult or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
get
Gets a resource group.
get(resource_group_name: str, **kwargs: Any) -> ResourceGroup
		Parameters
| Name | Description | 
|---|---|
| 
		 resource_group_name 
			
				Required
			 
	 | 
	
		
		 The name of the resource group to get. The name is case insensitive. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 ResourceGroup or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
list
Gets all the resource groups for a subscription.
list(filter: str | None = None, top: int | None = None, **kwargs: Any) -> ItemPaged[ResourceGroup]
		Parameters
| Name | Description | 
|---|---|
| 
		 filter 
	 | 
	
		
		 The filter to apply on the operation. Default value is None. Default value: None 
			 | 
| 
		 top 
	 | 
	
		
		 The number of results to return. If null is passed, returns all resource groups. Default value is None. Default value: None 
			 | 
Returns
| Type | Description | 
|---|---|
| 
					 An iterator like instance of either ResourceGroup or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
list_resources
Get all the resources for a resource group.
list_resources(resource_group_name: str, filter: str | None = None, expand: str | None = None, top: int | None = None, **kwargs: Any) -> ItemPaged[GenericResourceExpanded]
		Parameters
| Name | Description | 
|---|---|
| 
		 resource_group_name 
			
				Required
			 
	 | 
	
		
		 The resource group with the resources to get. Required.  | 
| 
		 filter 
	 | 
	
		
		 The filter to apply on the operation. Default value is None. Default value: None 
			 | 
| 
		 expand 
	 | 
	
		
		 Comma-separated list of additional properties to be included in the response.
Valid values include  Default value: None 
			 | 
| 
		 top 
	 | 
	
		
		 The number of results to return. If null is passed, returns all resources. Default value is None. Default value: None 
			 | 
Returns
| Type | Description | 
|---|---|
| 
					 An iterator like instance of either GenericResourceExpanded or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
patch
Updates a resource group.
Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained.
patch(resource_group_name: str, parameters: _models.ResourceGroup, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ResourceGroup
		Parameters
| Name | Description | 
|---|---|
| 
		 resource_group_name 
			
				Required
			 
	 | 
	
		
		 The name of the resource group to update. The name is case insensitive. Required.  | 
| 
		 parameters 
			
				Required
			 
	 | 
	
		
		 Parameters supplied to update a resource group. Is either a ResourceGroup type or a IO[bytes] type. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 ResourceGroup or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
Attributes
models
models = <module 'azure.mgmt.resource.resources.v2016_09_01.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv206\\Lib\\site-packages\\azure\\mgmt\\resource\\resources\\v2016_09_01\\models\\__init__.py'>