Compartir a través de


Policy Interface

public interface Policy

An immutable client-side representation of Policy.

Method Summary

Modifier and Type Method and Description
abstract OffsetDateTime createdDate()

Gets the createdDate property: The creation date of the policy.

abstract String description()

Gets the description property: The description of the policy.

abstract PolicyEvaluatorType evaluatorType()

Gets the evaluatorType property: The evaluator type of the policy (i.e.

abstract String factData()

Gets the factData property: The fact data of the policy.

abstract PolicyFactName factName()

Gets the factName property: The fact name of the policy (e.g.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract PolicyInner innerModel()

Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.PolicyInner object.

abstract String location()

Gets the location property: The geo-location where the resource lives.

abstract String name()

Gets the name property: The name of the resource.

abstract String provisioningState()

Gets the provisioningState property: The provisioning status of the resource.

abstract Policy refresh()

Refreshes the resource to sync with Azure.

abstract Policy refresh(Context context)

Refreshes the resource to sync with Azure.

abstract Region region()

Gets the region of the resource.

abstract String regionName()

Gets the name of the resource region.

abstract String resourceGroupName()

Gets the name of the resource group.

abstract PolicyStatus status()

Gets the status property: The status of the policy.

abstract Map<String,String> tags()

Gets the tags property: Resource tags.

abstract String threshold()

Gets the threshold property: The threshold of the policy (i.e.

abstract String type()

Gets the type property: The type of the resource.

abstract String uniqueIdentifier()

Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

abstract Update update()

Begins update for the Policy resource.

Method Details

createdDate

public abstract OffsetDateTime createdDate()

Gets the createdDate property: The creation date of the policy.

Returns:

the createdDate value.

description

public abstract String description()

Gets the description property: The description of the policy.

Returns:

the description value.

evaluatorType

public abstract PolicyEvaluatorType evaluatorType()

Gets the evaluatorType property: The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).

Returns:

the evaluatorType value.

factData

public abstract String factData()

Gets the factData property: The fact data of the policy.

Returns:

the factData value.

factName

public abstract PolicyFactName factName()

Gets the factName property: The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.

Returns:

the factName value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

innerModel

public abstract PolicyInner innerModel()

Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.PolicyInner object.

Returns:

the inner object.

location

public abstract String location()

Gets the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

provisioningState

public abstract String provisioningState()

Gets the provisioningState property: The provisioning status of the resource.

Returns:

the provisioningState value.

refresh

public abstract Policy refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract Policy refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

region

public abstract Region region()

Gets the region of the resource.

Returns:

the region of the resource.

regionName

public abstract String regionName()

Gets the name of the resource region.

Returns:

the name of the resource region.

resourceGroupName

public abstract String resourceGroupName()

Gets the name of the resource group.

Returns:

the name of the resource group.

status

public abstract PolicyStatus status()

Gets the status property: The status of the policy.

Returns:

the status value.

tags

public abstract Map<String,String> tags()

Gets the tags property: Resource tags.

Returns:

the tags value.

threshold

public abstract String threshold()

Gets the threshold property: The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).

Returns:

the threshold value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

uniqueIdentifier

public abstract String uniqueIdentifier()

Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

Returns:

the uniqueIdentifier value.

update

public abstract Policy.Update update()

Begins update for the Policy resource.

Returns:

the stage of resource update.

Applies to