Class DataPolicyManifestCollection
- Namespace
- Azure.ResourceManager.Resources
- Assembly
- Azure.ResourceManager.dll
A class representing a collection of DataPolicyManifestResource and their operations. Each DataPolicyManifestResource in the collection will belong to the same instance of TenantResource. To get a DataPolicyManifestCollection instance call the GetDataPolicyManifests method from an instance of TenantResource.
public class DataPolicyManifestCollection : ArmCollection, IEnumerable<DataPolicyManifestResource>, IEnumerable, IAsyncEnumerable<DataPolicyManifestResource>
- Inheritance
-
DataPolicyManifestCollection
- Implements
-
IAsyncEnumerable<DataPolicyManifestResource>
- Inherited Members
Constructors
DataPolicyManifestCollection()
Initializes a new instance of the DataPolicyManifestCollection class for mocking.
protected DataPolicyManifestCollection()
Methods
Exists(string, CancellationToken)
Checks to see if the resource exists in azure.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}
- Operation IdDataPolicyManifests_GetByPolicyMode
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual Response<bool> Exists(string policyMode, CancellationToken cancellationToken = default)
Parameters
policyMode
stringThe policy mode of the data policy manifest to get.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- Response<bool>
Exceptions
- ArgumentException
policyMode
is an empty string, and was expected to be non-empty.- ArgumentNullException
policyMode
is null.
ExistsAsync(string, CancellationToken)
Checks to see if the resource exists in azure.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}
- Operation IdDataPolicyManifests_GetByPolicyMode
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual Task<Response<bool>> ExistsAsync(string policyMode, CancellationToken cancellationToken = default)
Parameters
policyMode
stringThe policy mode of the data policy manifest to get.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
Exceptions
- ArgumentException
policyMode
is an empty string, and was expected to be non-empty.- ArgumentNullException
policyMode
is null.
Get(string, CancellationToken)
This operation retrieves the data policy manifest with the given policy mode.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}
- Operation IdDataPolicyManifests_GetByPolicyMode
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual Response<DataPolicyManifestResource> Get(string policyMode, CancellationToken cancellationToken = default)
Parameters
policyMode
stringThe policy mode of the data policy manifest to get.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- Response<DataPolicyManifestResource>
Exceptions
- ArgumentException
policyMode
is an empty string, and was expected to be non-empty.- ArgumentNullException
policyMode
is null.
GetAll(string, CancellationToken)
This operation retrieves a list of all the data policy manifests that match the optional given $filter. Valid values for $filter are: "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered list includes all data policy manifests for data resource types. If $filter=namespace is provided, the returned list only includes all data policy manifests that have a namespace matching the provided value.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests
- Operation IdDataPolicyManifests_List
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual Pageable<DataPolicyManifestResource> GetAll(string filter = null, CancellationToken cancellationToken = default)
Parameters
filter
stringThe filter to apply on the operation. Valid values for $filter are: "namespace eq '{value}'". If $filter is not provided, no filtering is performed. If $filter=namespace eq '{value}' is provided, the returned list only includes all data policy manifests that have a namespace matching the provided value.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- Pageable<DataPolicyManifestResource>
A collection of DataPolicyManifestResource that may take multiple service requests to iterate over.
GetAllAsync(string, CancellationToken)
This operation retrieves a list of all the data policy manifests that match the optional given $filter. Valid values for $filter are: "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered list includes all data policy manifests for data resource types. If $filter=namespace is provided, the returned list only includes all data policy manifests that have a namespace matching the provided value.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests
- Operation IdDataPolicyManifests_List
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual AsyncPageable<DataPolicyManifestResource> GetAllAsync(string filter = null, CancellationToken cancellationToken = default)
Parameters
filter
stringThe filter to apply on the operation. Valid values for $filter are: "namespace eq '{value}'". If $filter is not provided, no filtering is performed. If $filter=namespace eq '{value}' is provided, the returned list only includes all data policy manifests that have a namespace matching the provided value.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- AsyncPageable<DataPolicyManifestResource>
An async collection of DataPolicyManifestResource that may take multiple service requests to iterate over.
GetAsync(string, CancellationToken)
This operation retrieves the data policy manifest with the given policy mode.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}
- Operation IdDataPolicyManifests_GetByPolicyMode
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual Task<Response<DataPolicyManifestResource>> GetAsync(string policyMode, CancellationToken cancellationToken = default)
Parameters
policyMode
stringThe policy mode of the data policy manifest to get.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- Task<Response<DataPolicyManifestResource>>
Exceptions
- ArgumentException
policyMode
is an empty string, and was expected to be non-empty.- ArgumentNullException
policyMode
is null.
GetIfExists(string, CancellationToken)
Tries to get details for this resource from the service.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}
- Operation IdDataPolicyManifests_GetByPolicyMode
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual NullableResponse<DataPolicyManifestResource> GetIfExists(string policyMode, CancellationToken cancellationToken = default)
Parameters
policyMode
stringThe policy mode of the data policy manifest to get.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- NullableResponse<DataPolicyManifestResource>
Exceptions
- ArgumentException
policyMode
is an empty string, and was expected to be non-empty.- ArgumentNullException
policyMode
is null.
GetIfExistsAsync(string, CancellationToken)
Tries to get details for this resource from the service.
- Request Path/providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}
- Operation IdDataPolicyManifests_GetByPolicyMode
- Default Api Version2020-09-01
- ResourceDataPolicyManifestResource
public virtual Task<NullableResponse<DataPolicyManifestResource>> GetIfExistsAsync(string policyMode, CancellationToken cancellationToken = default)
Parameters
policyMode
stringThe policy mode of the data policy manifest to get.
cancellationToken
CancellationTokenThe cancellation token to use.
Returns
- Task<NullableResponse<DataPolicyManifestResource>>
Exceptions
- ArgumentException
policyMode
is an empty string, and was expected to be non-empty.- ArgumentNullException
policyMode
is null.