Interface Policy
public interface Policy
An immutable client-side representation of Policy.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the Policy definition.static interface
The Policy definition stages.static interface
The template for Policy update.static interface
The Policy update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the createdDate property: The creation date of the policy.Gets the description property: The description of the policy.Gets the evaluatorType property: The evaluator type of the policy (i.e.factData()
Gets the factData property: The fact data of the policy.factName()
Gets the factName property: The fact name of the policy (e.g.id()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.PolicyInner object.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: The name of the resource.Gets the provisioningState property: The provisioning status of the resource.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.status()
Gets the status property: The status of the policy.tags()
Gets the tags property: Resource tags.Gets the threshold property: The threshold of the policy (i.e.type()
Gets the type property: The type of the resource.Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).update()
Begins update for the Policy resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
description
String description()Gets the description property: The description of the policy.- Returns:
- the description value.
-
status
PolicyStatus status()Gets the status property: The status of the policy.- Returns:
- the status value.
-
factName
PolicyFactName factName()Gets the factName property: The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.- Returns:
- the factName value.
-
factData
String factData()Gets the factData property: The fact data of the policy.- Returns:
- the factData value.
-
threshold
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.
-
evaluatorType
PolicyEvaluatorType evaluatorType()Gets the evaluatorType property: The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).- Returns:
- the evaluatorType value.
-
createdDate
OffsetDateTime createdDate()Gets the createdDate property: The creation date of the policy.- Returns:
- the createdDate value.
-
provisioningState
String provisioningState()Gets the provisioningState property: The provisioning status of the resource.- Returns:
- the provisioningState value.
-
uniqueIdentifier
String uniqueIdentifier()Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).- Returns:
- the uniqueIdentifier value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
PolicyInner innerModel()Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.PolicyInner object.- Returns:
- the inner object.
-
update
Policy.Update update()Begins update for the Policy resource.- Returns:
- the stage of resource update.
-
refresh
Policy refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-