SubscriptionPolicySetDefinitionCollection 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 SubscriptionPolicySetDefinitionResource and their operations. Each SubscriptionPolicySetDefinitionResource in the collection will belong to the same instance of SubscriptionResource. To get a SubscriptionPolicySetDefinitionCollection instance call the GetSubscriptionPolicySetDefinitions method from an instance of SubscriptionResource.
public class SubscriptionPolicySetDefinitionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource>
type SubscriptionPolicySetDefinitionCollection = class
inherit ArmCollection
interface seq<SubscriptionPolicySetDefinitionResource>
interface IEnumerable
interface IAsyncEnumerable<SubscriptionPolicySetDefinitionResource>
Public Class SubscriptionPolicySetDefinitionCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SubscriptionPolicySetDefinitionResource), IEnumerable(Of SubscriptionPolicySetDefinitionResource)
- Inheritance
- Implements
Constructors
SubscriptionPolicySetDefinitionCollection() |
Initializes a new instance of the SubscriptionPolicySetDefinitionCollection class for mocking. |
Properties
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
CreateOrUpdate(WaitUntil, String, PolicySetDefinitionData, CancellationToken) |
This operation creates or updates a policy set definition in the given subscription with the given name.
|
CreateOrUpdateAsync(WaitUntil, String, PolicySetDefinitionData, CancellationToken) |
This operation creates or updates a policy set definition in the given subscription with the given name.
|
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 the policy set definition in the given subscription with the given name.
|
GetAll(String, Nullable<Int32>, CancellationToken) |
This operation retrieves a list of all the policy set definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.
|
GetAllAsync(String, Nullable<Int32>, CancellationToken) |
This operation retrieves a list of all the policy set definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.
|
GetAsync(String, CancellationToken) |
This operation retrieves the policy set definition in the given subscription with the given name.
|
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) |
Explicit Interface Implementations
IAsyncEnumerable<SubscriptionPolicySetDefinitionResource>.GetAsyncEnumerator(CancellationToken) |
Returns an enumerator that iterates asynchronously through the collection. |
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection. |
IEnumerable<SubscriptionPolicySetDefinitionResource>.GetEnumerator() |
Returns an enumerator that iterates through the collection. |
Applies to
Azure SDK for .NET