public interface Policy
An immutable client-side representation of Policy.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static 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 Type
    Method
    Description
    Gets 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.
    Gets the factData property: The fact data of the policy.
    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.
    Gets the location property: The geo-location where the resource lives.
    Gets the name property: The name of the resource.
    Gets the provisioningState property: The provisioning status of the resource.
    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
    Gets the region of the resource.
    Gets the name of the resource region.
    Gets the name of the resource group.
    Gets the status property: The status of the policy.
    Gets the tags property: Resource tags.
    Gets the threshold property: The threshold of the policy (i.e.
    Gets the type property: The type of the resource.
    Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
    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

      Map<String,String> 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

      Policy refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.