Class: Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyEvent
- Inherits:
-
Object
- Object
- Azure::PolicyInsights::Mgmt::V2019_10_01::Models::PolicyEvent
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb
Overview
Policy event record.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
collection.
-
#compliance_state ⇒ String
Compliance state of the resource.
-
#components ⇒ Array<ComponentEventDetails>
populated only when URL contains $expand=components clause.
-
#effective_parameters ⇒ String
Effective parameters for the policy assignment.
-
#is_compliant ⇒ Boolean
against the policy assignment it was evaluated against.
-
#management_group_ids ⇒ String
represent the hierarchy of the management groups the resource is under.
-
#odatacontext ⇒ String
type information based on metadata.
-
#odataid ⇒ String
records do not have an entity ID.
-
#policy_assignment_id ⇒ String
Policy assignment ID.
-
#policy_assignment_name ⇒ String
Policy assignment name.
-
#policy_assignment_owner ⇒ String
Policy assignment owner.
-
#policy_assignment_parameters ⇒ String
Policy assignment parameters.
-
#policy_assignment_scope ⇒ String
Policy assignment scope.
-
#policy_definition_action ⇒ String
Policy definition action, i.e.
-
#policy_definition_category ⇒ String
Policy definition category.
-
#policy_definition_id ⇒ String
Policy definition ID.
-
#policy_definition_name ⇒ String
Policy definition name.
-
#policy_definition_reference_id ⇒ String
policy set, if the policy assignment is for a policy set.
-
#policy_set_definition_category ⇒ String
assignment is for a policy set.
-
#policy_set_definition_id ⇒ String
for a policy set.
-
#policy_set_definition_name ⇒ String
is for a policy set.
-
#policy_set_definition_owner ⇒ String
is for a policy set.
-
#policy_set_definition_parameters ⇒ String
assignment is for a policy set.
-
#principal_oid ⇒ String
resource operation that triggered the policy event.
-
#resource_group ⇒ String
Resource group name.
-
#resource_id ⇒ String
Resource ID.
-
#resource_location ⇒ String
Resource location.
-
#resource_tags ⇒ String
List of resource tags.
-
#resource_type ⇒ String
Resource type.
-
#subscription_id ⇒ String
Subscription ID.
-
#tenant_id ⇒ String
Tenant ID for the policy event record.
-
#timestamp ⇒ DateTime
Timestamp for the policy event record.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PolicyEvent class as Ruby Hash.
Instance Attribute Details
#additional_properties ⇒ Object
collection
17 18 19 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 17 def additional_properties @additional_properties end |
#compliance_state ⇒ String
Returns Compliance state of the resource.
111 112 113 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 111 def compliance_state @compliance_state end |
#components ⇒ Array<ComponentEventDetails>
populated only when URL contains $expand=components clause.
122 123 124 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 122 def components @components end |
#effective_parameters ⇒ String
Returns Effective parameters for the policy assignment.
40 41 42 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 40 def effective_parameters @effective_parameters end |
#is_compliant ⇒ Boolean
against the policy assignment it was evaluated against.
44 45 46 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 44 def is_compliant @is_compliant end |
#management_group_ids ⇒ String
represent the hierarchy of the management groups the resource is under.
104 105 106 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 104 def management_group_ids @management_group_ids end |
#odatacontext ⇒ String
type information based on metadata.
25 26 27 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 25 def odatacontext @odatacontext end |
#odataid ⇒ String
records do not have an entity ID.
21 22 23 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 21 def odataid @odataid end |
#policy_assignment_id ⇒ String
Returns Policy assignment ID.
34 35 36 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 34 def policy_assignment_id @policy_assignment_id end |
#policy_assignment_name ⇒ String
Returns Policy assignment name.
62 63 64 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 62 def policy_assignment_name @policy_assignment_name end |
#policy_assignment_owner ⇒ String
Returns Policy assignment owner.
65 66 67 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 65 def policy_assignment_owner @policy_assignment_owner end |
#policy_assignment_parameters ⇒ String
Returns Policy assignment parameters.
68 69 70 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 68 def policy_assignment_parameters @policy_assignment_parameters end |
#policy_assignment_scope ⇒ String
Returns Policy assignment scope.
71 72 73 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 71 def policy_assignment_scope @policy_assignment_scope end |
#policy_definition_action ⇒ String
Returns Policy definition action, i.e. effect.
77 78 79 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 77 def policy_definition_action @policy_definition_action end |
#policy_definition_category ⇒ String
Returns Policy definition category.
80 81 82 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 80 def policy_definition_category @policy_definition_category end |
#policy_definition_id ⇒ String
Returns Policy definition ID.
37 38 39 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 37 def policy_definition_id @policy_definition_id end |
#policy_definition_name ⇒ String
Returns Policy definition name.
74 75 76 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 74 def policy_definition_name @policy_definition_name end |
#policy_definition_reference_id ⇒ String
policy set, if the policy assignment is for a policy set.
108 109 110 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 108 def policy_definition_reference_id @policy_definition_reference_id end |
#policy_set_definition_category ⇒ String
assignment is for a policy set.
96 97 98 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 96 def policy_set_definition_category @policy_set_definition_category end |
#policy_set_definition_id ⇒ String
for a policy set.
84 85 86 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 84 def policy_set_definition_id @policy_set_definition_id end |
#policy_set_definition_name ⇒ String
is for a policy set.
88 89 90 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 88 def policy_set_definition_name @policy_set_definition_name end |
#policy_set_definition_owner ⇒ String
is for a policy set.
92 93 94 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 92 def policy_set_definition_owner @policy_set_definition_owner end |
#policy_set_definition_parameters ⇒ String
assignment is for a policy set.
100 101 102 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 100 def policy_set_definition_parameters @policy_set_definition_parameters end |
#principal_oid ⇒ String
resource operation that triggered the policy event.
118 119 120 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 118 def principal_oid @principal_oid end |
#resource_group ⇒ String
Returns Resource group name.
56 57 58 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 56 def resource_group @resource_group end |
#resource_id ⇒ String
Returns Resource ID.
31 32 33 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 31 def resource_id @resource_id end |
#resource_location ⇒ String
Returns Resource location.
53 54 55 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 53 def resource_location @resource_location end |
#resource_tags ⇒ String
Returns List of resource tags.
59 60 61 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 59 def end |
#resource_type ⇒ String
Returns Resource type.
50 51 52 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 50 def resource_type @resource_type end |
#subscription_id ⇒ String
Returns Subscription ID.
47 48 49 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 47 def subscription_id @subscription_id end |
#tenant_id ⇒ String
Returns Tenant ID for the policy event record.
114 115 116 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 114 def tenant_id @tenant_id end |
#timestamp ⇒ DateTime
Returns Timestamp for the policy event record.
28 29 30 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 28 def end |
Class Method Details
.mapper ⇒ Object
Mapper for PolicyEvent class as Ruby Hash. This will be used for serialization/deserialization.
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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb', line 129 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PolicyEvent', type: { name: 'Composite', class_name: 'PolicyEvent', model_properties: { additional_properties: { client_side_validation: true, required: false, type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'ObjectElementType', type: { name: 'Object' } } } }, odataid: { client_side_validation: true, required: false, serialized_name: '@odata\\.id', type: { name: 'String' } }, odatacontext: { client_side_validation: true, required: false, serialized_name: '@odata\\.context', type: { name: 'String' } }, timestamp: { client_side_validation: true, required: false, serialized_name: 'timestamp', type: { name: 'DateTime' } }, resource_id: { client_side_validation: true, required: false, serialized_name: 'resourceId', type: { name: 'String' } }, policy_assignment_id: { client_side_validation: true, required: false, serialized_name: 'policyAssignmentId', type: { name: 'String' } }, policy_definition_id: { client_side_validation: true, required: false, serialized_name: 'policyDefinitionId', type: { name: 'String' } }, effective_parameters: { client_side_validation: true, required: false, serialized_name: 'effectiveParameters', type: { name: 'String' } }, is_compliant: { client_side_validation: true, required: false, serialized_name: 'isCompliant', type: { name: 'Boolean' } }, subscription_id: { client_side_validation: true, required: false, serialized_name: 'subscriptionId', type: { name: 'String' } }, resource_type: { client_side_validation: true, required: false, serialized_name: 'resourceType', type: { name: 'String' } }, resource_location: { client_side_validation: true, required: false, serialized_name: 'resourceLocation', type: { name: 'String' } }, resource_group: { client_side_validation: true, required: false, serialized_name: 'resourceGroup', type: { name: 'String' } }, resource_tags: { client_side_validation: true, required: false, serialized_name: 'resourceTags', type: { name: 'String' } }, policy_assignment_name: { client_side_validation: true, required: false, serialized_name: 'policyAssignmentName', type: { name: 'String' } }, policy_assignment_owner: { client_side_validation: true, required: false, serialized_name: 'policyAssignmentOwner', type: { name: 'String' } }, policy_assignment_parameters: { client_side_validation: true, required: false, serialized_name: 'policyAssignmentParameters', type: { name: 'String' } }, policy_assignment_scope: { client_side_validation: true, required: false, serialized_name: 'policyAssignmentScope', type: { name: 'String' } }, policy_definition_name: { client_side_validation: true, required: false, serialized_name: 'policyDefinitionName', type: { name: 'String' } }, policy_definition_action: { client_side_validation: true, required: false, serialized_name: 'policyDefinitionAction', type: { name: 'String' } }, policy_definition_category: { client_side_validation: true, required: false, serialized_name: 'policyDefinitionCategory', type: { name: 'String' } }, policy_set_definition_id: { client_side_validation: true, required: false, serialized_name: 'policySetDefinitionId', type: { name: 'String' } }, policy_set_definition_name: { client_side_validation: true, required: false, serialized_name: 'policySetDefinitionName', type: { name: 'String' } }, policy_set_definition_owner: { client_side_validation: true, required: false, serialized_name: 'policySetDefinitionOwner', type: { name: 'String' } }, policy_set_definition_category: { client_side_validation: true, required: false, serialized_name: 'policySetDefinitionCategory', type: { name: 'String' } }, policy_set_definition_parameters: { client_side_validation: true, required: false, serialized_name: 'policySetDefinitionParameters', type: { name: 'String' } }, management_group_ids: { client_side_validation: true, required: false, serialized_name: 'managementGroupIds', type: { name: 'String' } }, policy_definition_reference_id: { client_side_validation: true, required: false, serialized_name: 'policyDefinitionReferenceId', type: { name: 'String' } }, compliance_state: { client_side_validation: true, required: false, serialized_name: 'complianceState', type: { name: 'String' } }, tenant_id: { client_side_validation: true, required: false, serialized_name: 'tenantId', type: { name: 'String' } }, principal_oid: { client_side_validation: true, required: false, serialized_name: 'principalOid', type: { name: 'String' } }, components: { client_side_validation: true, required: false, serialized_name: 'components', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ComponentEventDetailsElementType', type: { name: 'Composite', class_name: 'ComponentEventDetails' } } } } } } } end |