Class: Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyState

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb

Overview

Policy state record.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#additional_propertiesObject

collection



17
18
19
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 17

def additional_properties
  @additional_properties
end

#effective_parametersString



40
41
42
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 40

def effective_parameters
  @effective_parameters
end

#is_compliantBoolean

against the policy assignment it was evaluated against.



44
45
46
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 44

def is_compliant
  @is_compliant
end

#management_group_idsString

represent the hierarchy of the management groups the resource is under.



104
105
106
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 104

def management_group_ids
  @management_group_ids
end

#odatacontextString

type information based on metadata.



25
26
27
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 25

def odatacontext
  @odatacontext
end

#odataidString

records do not have an entity ID.



21
22
23
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 21

def odataid
  @odataid
end

#policy_assignment_idString



34
35
36
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 34

def policy_assignment_id
  @policy_assignment_id
end

#policy_assignment_nameString



62
63
64
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 62

def policy_assignment_name
  @policy_assignment_name
end

#policy_assignment_ownerString



65
66
67
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 65

def policy_assignment_owner
  @policy_assignment_owner
end

#policy_assignment_parametersString



68
69
70
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 68

def policy_assignment_parameters
  @policy_assignment_parameters
end

#policy_assignment_scopeString



71
72
73
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 71

def policy_assignment_scope
  @policy_assignment_scope
end

#policy_definition_actionString



77
78
79
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 77

def policy_definition_action
  @policy_definition_action
end

#policy_definition_categoryString



80
81
82
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 80

def policy_definition_category
  @policy_definition_category
end

#policy_definition_idString



37
38
39
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 37

def policy_definition_id
  @policy_definition_id
end

#policy_definition_nameString



74
75
76
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 74

def policy_definition_name
  @policy_definition_name
end

#policy_definition_reference_idString

policy set, if the policy assignment is for a policy set.



108
109
110
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 108

def policy_definition_reference_id
  @policy_definition_reference_id
end

#policy_set_definition_categoryString

assignment is for a policy set.



96
97
98
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 96

def policy_set_definition_category
  @policy_set_definition_category
end

#policy_set_definition_idString

for a policy set.



84
85
86
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 84

def policy_set_definition_id
  @policy_set_definition_id
end

#policy_set_definition_nameString

is for a policy set.



88
89
90
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 88

def policy_set_definition_name
  @policy_set_definition_name
end

#policy_set_definition_ownerString

is for a policy set.



92
93
94
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 92

def policy_set_definition_owner
  @policy_set_definition_owner
end

#policy_set_definition_parametersString

assignment is for a policy set.



100
101
102
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 100

def policy_set_definition_parameters
  @policy_set_definition_parameters
end

#resource_groupString



56
57
58
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 56

def resource_group
  @resource_group
end

#resource_idString



31
32
33
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 31

def resource_id
  @resource_id
end

#resource_locationString



53
54
55
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 53

def resource_location
  @resource_location
end

#resource_tagsString



59
60
61
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 59

def resource_tags
  @resource_tags
end

#resource_typeString



50
51
52
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 50

def resource_type
  @resource_type
end

#subscription_idString



47
48
49
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 47

def subscription_id
  @subscription_id
end

#timestampDateTime



28
29
30
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 28

def timestamp
  @timestamp
end

Class Method Details

.mapperObject

Mapper for PolicyState class as Ruby Hash. This will be used for serialization/deserialization.



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
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
# File 'lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb', line 115

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PolicyState',
    type: {
      name: 'Composite',
      class_name: 'PolicyState',
      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'
          }
        }
      }
    }
  }
end