Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb
Overview
A Policy.
Instance Attribute Summary collapse
-
#created_date ⇒ DateTime
The creation date of the policy.
-
#description ⇒ String
The description of the policy.
-
#evaluator_type ⇒ PolicyEvaluatorType
AllowedValuesPolicy, MaxValuePolicy).
-
#fact_data ⇒ String
The fact data of the policy.
-
#fact_name ⇒ PolicyFactName
LabVmSize, MaxVmsAllowedPerLab, etc.
-
#provisioning_state ⇒ String
The provisioning status of the resource.
-
#status ⇒ PolicyStatus
include: ‘Enabled’, ‘Disabled’.
-
#threshold ⇒ String
MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
-
#unique_identifier ⇒ String
The unique immutable identifier of a resource (Guid).
Attributes inherited from Resource
#id, #location, #name, #tags, #type
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Policy class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#created_date ⇒ DateTime
Returns The creation date of the policy.
42 43 44 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 42 def created_date @created_date end |
#description ⇒ String
Returns The description of the policy.
16 17 18 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 16 def description @description end |
#evaluator_type ⇒ PolicyEvaluatorType
AllowedValuesPolicy, MaxValuePolicy). Possible values include: ‘AllowedValuesPolicy’, ‘MaxValuePolicy’
39 40 41 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 39 def evaluator_type @evaluator_type end |
#fact_data ⇒ String
Returns The fact data of the policy.
30 31 32 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 30 def fact_data @fact_data end |
#fact_name ⇒ PolicyFactName
LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: ‘UserOwnedLabVmCount’, ‘UserOwnedLabPremiumVmCount’, ‘LabVmCount’, ‘LabPremiumVmCount’, ‘LabVmSize’, ‘GalleryImage’, ‘UserOwnedLabVmCountInSubnet’, ‘LabTargetCost’
27 28 29 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 27 def fact_name @fact_name end |
#provisioning_state ⇒ String
Returns The provisioning status of the resource.
45 46 47 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 45 def provisioning_state @provisioning_state end |
#status ⇒ PolicyStatus
include: ‘Enabled’, ‘Disabled’
20 21 22 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 20 def status @status end |
#threshold ⇒ String
MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
34 35 36 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 34 def threshold @threshold end |
#unique_identifier ⇒ String
Returns The unique immutable identifier of a resource (Guid).
48 49 50 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 48 def unique_identifier @unique_identifier end |
Class Method Details
.mapper ⇒ Object
Mapper for Policy class as Ruby Hash. This will be used for serialization/deserialization.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb', line 55 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, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, unique_identifier: { client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { name: 'String' } } } } } end |