PolicyExemptionCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class representing a collection of PolicyExemptionResource and their operations. Each PolicyExemptionResource in the collection will belong to the same instance of ArmResource. To get a PolicyExemptionCollection instance call the GetPolicyExemptions method from an instance of ArmResource.
public class PolicyExemptionCollection : Azure.ResourceManager.ArmCollection
type PolicyExemptionCollection = class
inherit ArmCollection
Public Class PolicyExemptionCollection
Inherits ArmCollection
- Inheritance
Constructors
| Name | Description |
|---|---|
| PolicyExemptionCollection() |
Initializes a new instance of PolicyExemptionCollection for mocking. |
Properties
| Name | Description |
|---|---|
| Client |
Gets the ArmClient this resource client was created from. (Inherited from ArmCollection) |
| Diagnostics |
Gets the diagnostic options for this resource client. (Inherited from ArmCollection) |
| Endpoint |
Gets the base uri for this resource client. (Inherited from ArmCollection) |
| Id |
Gets the resource identifier. (Inherited from ArmCollection) |
| Pipeline |
Gets the pipeline for this resource client. (Inherited from ArmCollection) |
Methods
| Name | Description |
|---|---|
| CreateOrUpdate(WaitUntil, String, PolicyExemptionData, CancellationToken) |
This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.
|
| CreateOrUpdateAsync(WaitUntil, String, PolicyExemptionData, CancellationToken) |
This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.
|
| Exists(String, CancellationToken) |
Checks to see if the resource exists in azure.
|
| ExistsAsync(String, CancellationToken) |
Checks to see if the resource exists in azure.
|
| Get(String, CancellationToken) |
This operation retrieves a single policy exemption, given its name and the scope it was created at.
|
| GetAsync(String, CancellationToken) |
This operation retrieves a single policy exemption, given its name and the scope it was created at.
|
| GetIfExists(String, CancellationToken) |
Tries to get details for this resource from the service.
|
| GetIfExistsAsync(String, CancellationToken) |
Tries to get details for this resource from the service.
|
| TryGetApiVersion(ResourceType, String) |
Gets the api version override if it has been set for the current client options. (Inherited from ArmCollection) |