class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Policy
A Policy
.
Attributes
@return [DateTime] The creation date of the policy.
@return [String] The description of the policy.
@return [PolicyEvaluatorType] The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy'
@return [String] The fact data of the policy.
@return [PolicyFactName] The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', 'EnvironmentTemplate', 'ScheduleEditPermission'
@return [String] The provisioning status of the resource.
@return [PolicyStatus] The status of the policy. Possible values include: 'Enabled', 'Disabled'
@return [String] The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
@return [String] The unique immutable identifier of a resource (Guid).
Private Class Methods
Mapper for Policy
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb, line 56 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Policy', type: { name: 'Composite', class_name: 'Policy', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: false, serialized_name: 'location', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, description: { client_side_validation: true, required: false, serialized_name: 'properties.description', type: { name: 'String' } }, status: { client_side_validation: true, required: false, serialized_name: 'properties.status', type: { name: 'String' } }, fact_name: { client_side_validation: true, required: false, serialized_name: 'properties.factName', type: { name: 'String' } }, fact_data: { client_side_validation: true, required: false, serialized_name: 'properties.factData', type: { name: 'String' } }, threshold: { client_side_validation: true, required: false, serialized_name: 'properties.threshold', type: { name: 'String' } }, evaluator_type: { client_side_validation: true, required: false, serialized_name: 'properties.evaluatorType', type: { name: 'String' } }, created_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', type: { name: 'DateTime' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, unique_identifier: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.uniqueIdentifier', type: { name: 'String' } } } } } end