PoliciesClient Interface

public interface PoliciesClient

An instance of this class provides access to all the operations defined in PoliciesClient.

Method Summary

Modifier and Type Method and Description
abstract PolicyInner createOrUpdate(String resourceGroupName, String labName, String policySetName, String name, PolicyInner policy)

Create or replace an existing policy.

abstract Response<PolicyInner> createOrUpdateWithResponse(String resourceGroupName, String labName, String policySetName, String name, PolicyInner policy, Context context)

Create or replace an existing policy.

abstract void delete(String resourceGroupName, String labName, String policySetName, String name)

Delete policy.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String labName, String policySetName, String name, Context context)

Delete policy.

abstract PolicyInner get(String resourceGroupName, String labName, String policySetName, String name)

Get policy.

abstract Response<PolicyInner> getWithResponse(String resourceGroupName, String labName, String policySetName, String name, String expand, Context context)

Get policy.

abstract PagedIterable<PolicyInner> list(String resourceGroupName, String labName, String policySetName)

List policies in a given policy set.

abstract PagedIterable<PolicyInner> list(String resourceGroupName, String labName, String policySetName, String expand, String filter, Integer top, String orderby, Context context)

List policies in a given policy set.

abstract PolicyInner update(String resourceGroupName, String labName, String policySetName, String name, PolicyFragment policy)

Allows modifying tags of policies.

abstract Response<PolicyInner> updateWithResponse(String resourceGroupName, String labName, String policySetName, String name, PolicyFragment policy, Context context)

Allows modifying tags of policies.

Method Details

createOrUpdate

public abstract PolicyInner createOrUpdate(String resourceGroupName, String labName, String policySetName, String name, PolicyInner policy)

Create or replace an existing policy.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.
policy - A Policy.

Returns:

a Policy.

createOrUpdateWithResponse

public abstract Response<PolicyInner> createOrUpdateWithResponse(String resourceGroupName, String labName, String policySetName, String name, PolicyInner policy, Context context)

Create or replace an existing policy.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.
policy - A Policy.
context - The context to associate with this operation.

Returns:

a Policy along with Response<T>.

delete

public abstract void delete(String resourceGroupName, String labName, String policySetName, String name)

Delete policy.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String labName, String policySetName, String name, Context context)

Delete policy.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.
context - The context to associate with this operation.

Returns:

get

public abstract PolicyInner get(String resourceGroupName, String labName, String policySetName, String name)

Get policy.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.

Returns:

policy.

getWithResponse

public abstract Response<PolicyInner> getWithResponse(String resourceGroupName, String labName, String policySetName, String name, String expand, Context context)

Get policy.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.
expand - Specify the $expand query. Example: 'properties($select=description)'.
context - The context to associate with this operation.

Returns:

policy along with Response<T>.

list

public abstract PagedIterable<PolicyInner> list(String resourceGroupName, String labName, String policySetName)

List policies in a given policy set.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.

Returns:

the response of a list operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<PolicyInner> list(String resourceGroupName, String labName, String policySetName, String expand, String filter, Integer top, String orderby, Context context)

List policies in a given policy set.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
expand - Specify the $expand query. Example: 'properties($select=description)'.
filter - The filter to apply to the operation. Example: '$filter=contains(name,'myName').
top - The maximum number of resources to return from the operation. Example: '$top=10'.
orderby - The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
context - The context to associate with this operation.

Returns:

the response of a list operation as paginated response with PagedIterable<T>.

update

public abstract PolicyInner update(String resourceGroupName, String labName, String policySetName, String name, PolicyFragment policy)

Allows modifying tags of policies. All other properties will be ignored.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.
policy - A Policy.

Returns:

a Policy.

updateWithResponse

public abstract Response<PolicyInner> updateWithResponse(String resourceGroupName, String labName, String policySetName, String name, PolicyFragment policy, Context context)

Allows modifying tags of policies. All other properties will be ignored.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
policySetName - The name of the policy set.
name - The name of the policy.
policy - A Policy.
context - The context to associate with this operation.

Returns:

a Policy along with Response<T>.

Applies to