azure_mgmt_policy_insights 0.17.3 → 0.17.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  3. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_events.rb +8 -0
  4. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  5. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_states.rb +8 -0
  6. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  7. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_events.rb +10 -0
  8. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  9. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_states.rb +10 -0
  10. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  11. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_events.rb +18 -0
  12. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  13. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_states.rb +34 -0
  14. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  15. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_events.rb +18 -0
  16. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  17. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb +34 -0
  18. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +4 -4
  19. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +43 -0
  20. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +11 -0
  21. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  22. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  23. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_states.rb +1032 -32
  24. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_tracked_resources.rb +16 -0
  25. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb +64 -0
  26. data/lib/2019-07-01/generated/azure_mgmt_policy_insights.rb +39 -0
  27. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
  28. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
  29. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/query_options.rb +54 -0
  30. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation.rb +172 -0
  31. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb +124 -0
  32. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb +75 -0
  33. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb +101 -0
  34. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_filters.rb +55 -0
  35. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb +100 -0
  36. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/resource_discovery_mode.rb +16 -0
  37. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
  38. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  39. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb +131 -0
  40. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/remediations.rb +3294 -0
  41. data/lib/2019-10-01/generated/azure_mgmt_policy_insights.rb +60 -0
  42. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/compliance_detail.rb +57 -0
  43. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb +132 -0
  44. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_state_details.rb +109 -0
  45. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
  46. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
  47. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +115 -0
  48. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/if_not_exists_evaluation_details.rb +59 -0
  49. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
  50. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
  51. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +70 -0
  52. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +110 -0
  53. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +99 -0
  54. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_evaluation_details.rb +69 -0
  55. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb +416 -0
  56. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +125 -0
  57. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_group_summary.rb +59 -0
  58. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata.rb +168 -0
  59. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata_collection.rb +101 -0
  60. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_state.rb +461 -0
  61. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +125 -0
  62. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
  63. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
  64. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +60 -0
  65. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb +134 -0
  66. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/slim_policy_metadata.rb +145 -0
  67. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summarize_results.rb +83 -0
  68. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summary.rb +91 -0
  69. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summary_results.rb +140 -0
  70. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
  71. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  72. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/operations.rb +109 -0
  73. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_events.rb +1961 -0
  74. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb +140 -0
  75. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_metadata_operations.rb +316 -0
  76. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_states.rb +3233 -0
  77. data/lib/azure_mgmt_policy_insights.rb +4 -2
  78. data/lib/profiles/latest/modules/policyinsights_profile_module.rb +55 -13
  79. data/lib/version.rb +1 -1
  80. metadata +56 -5
@@ -0,0 +1,461 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::PolicyInsights::Mgmt::V2019_10_01
7
+ module Models
8
+ #
9
+ # Policy state record.
10
+ #
11
+ class PolicyState
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Unmatched properties from the message are deserialized this
16
+ # collection
17
+ attr_accessor :additional_properties
18
+
19
+ # @return [String] OData entity ID; always set to null since policy state
20
+ # records do not have an entity ID.
21
+ attr_accessor :odataid
22
+
23
+ # @return [String] OData context string; used by OData clients to resolve
24
+ # type information based on metadata.
25
+ attr_accessor :odatacontext
26
+
27
+ # @return [DateTime] Timestamp for the policy state record.
28
+ attr_accessor :timestamp
29
+
30
+ # @return [String] Resource ID.
31
+ attr_accessor :resource_id
32
+
33
+ # @return [String] Policy assignment ID.
34
+ attr_accessor :policy_assignment_id
35
+
36
+ # @return [String] Policy definition ID.
37
+ attr_accessor :policy_definition_id
38
+
39
+ # @return [String] Effective parameters for the policy assignment.
40
+ attr_accessor :effective_parameters
41
+
42
+ # @return [Boolean] Flag which states whether the resource is compliant
43
+ # against the policy assignment it was evaluated against. This property
44
+ # is deprecated; please use ComplianceState instead.
45
+ attr_accessor :is_compliant
46
+
47
+ # @return [String] Subscription ID.
48
+ attr_accessor :subscription_id
49
+
50
+ # @return [String] Resource type.
51
+ attr_accessor :resource_type
52
+
53
+ # @return [String] Resource location.
54
+ attr_accessor :resource_location
55
+
56
+ # @return [String] Resource group name.
57
+ attr_accessor :resource_group
58
+
59
+ # @return [String] List of resource tags.
60
+ attr_accessor :resource_tags
61
+
62
+ # @return [String] Policy assignment name.
63
+ attr_accessor :policy_assignment_name
64
+
65
+ # @return [String] Policy assignment owner.
66
+ attr_accessor :policy_assignment_owner
67
+
68
+ # @return [String] Policy assignment parameters.
69
+ attr_accessor :policy_assignment_parameters
70
+
71
+ # @return [String] Policy assignment scope.
72
+ attr_accessor :policy_assignment_scope
73
+
74
+ # @return [String] Policy definition name.
75
+ attr_accessor :policy_definition_name
76
+
77
+ # @return [String] Policy definition action, i.e. effect.
78
+ attr_accessor :policy_definition_action
79
+
80
+ # @return [String] Policy definition category.
81
+ attr_accessor :policy_definition_category
82
+
83
+ # @return [String] Policy set definition ID, if the policy assignment is
84
+ # for a policy set.
85
+ attr_accessor :policy_set_definition_id
86
+
87
+ # @return [String] Policy set definition name, if the policy assignment
88
+ # is for a policy set.
89
+ attr_accessor :policy_set_definition_name
90
+
91
+ # @return [String] Policy set definition owner, if the policy assignment
92
+ # is for a policy set.
93
+ attr_accessor :policy_set_definition_owner
94
+
95
+ # @return [String] Policy set definition category, if the policy
96
+ # assignment is for a policy set.
97
+ attr_accessor :policy_set_definition_category
98
+
99
+ # @return [String] Policy set definition parameters, if the policy
100
+ # assignment is for a policy set.
101
+ attr_accessor :policy_set_definition_parameters
102
+
103
+ # @return [String] Comma separated list of management group IDs, which
104
+ # represent the hierarchy of the management groups the resource is under.
105
+ attr_accessor :management_group_ids
106
+
107
+ # @return [String] Reference ID for the policy definition inside the
108
+ # policy set, if the policy assignment is for a policy set.
109
+ attr_accessor :policy_definition_reference_id
110
+
111
+ # @return [String] Compliance state of the resource.
112
+ attr_accessor :compliance_state
113
+
114
+ # @return [PolicyEvaluationDetails] Policy evaluation details.
115
+ attr_accessor :policy_evaluation_details
116
+
117
+ # @return [Array<String>] Policy definition group names.
118
+ attr_accessor :policy_definition_group_names
119
+
120
+ # @return [Array<ComponentStateDetails>] Components state compliance
121
+ # records populated only when URL contains $expand=components clause.
122
+ attr_accessor :components
123
+
124
+ # @return [String] Evaluated policy definition version.
125
+ attr_accessor :policy_definition_version
126
+
127
+ # @return [String] Evaluated policy set definition version.
128
+ attr_accessor :policy_set_definition_version
129
+
130
+ # @return [String] Evaluated policy assignment version.
131
+ attr_accessor :policy_assignment_version
132
+
133
+
134
+ #
135
+ # Mapper for PolicyState class as Ruby Hash.
136
+ # This will be used for serialization/deserialization.
137
+ #
138
+ def self.mapper()
139
+ {
140
+ client_side_validation: true,
141
+ required: false,
142
+ serialized_name: 'PolicyState',
143
+ type: {
144
+ name: 'Composite',
145
+ class_name: 'PolicyState',
146
+ model_properties: {
147
+ additional_properties: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ type: {
151
+ name: 'Dictionary',
152
+ value: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ serialized_name: 'ObjectElementType',
156
+ type: {
157
+ name: 'Object'
158
+ }
159
+ }
160
+ }
161
+ },
162
+ odataid: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ serialized_name: '@odata\\.id',
166
+ type: {
167
+ name: 'String'
168
+ }
169
+ },
170
+ odatacontext: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ serialized_name: '@odata\\.context',
174
+ type: {
175
+ name: 'String'
176
+ }
177
+ },
178
+ timestamp: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ serialized_name: 'timestamp',
182
+ type: {
183
+ name: 'DateTime'
184
+ }
185
+ },
186
+ resource_id: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ serialized_name: 'resourceId',
190
+ type: {
191
+ name: 'String'
192
+ }
193
+ },
194
+ policy_assignment_id: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ serialized_name: 'policyAssignmentId',
198
+ type: {
199
+ name: 'String'
200
+ }
201
+ },
202
+ policy_definition_id: {
203
+ client_side_validation: true,
204
+ required: false,
205
+ serialized_name: 'policyDefinitionId',
206
+ type: {
207
+ name: 'String'
208
+ }
209
+ },
210
+ effective_parameters: {
211
+ client_side_validation: true,
212
+ required: false,
213
+ serialized_name: 'effectiveParameters',
214
+ type: {
215
+ name: 'String'
216
+ }
217
+ },
218
+ is_compliant: {
219
+ client_side_validation: true,
220
+ required: false,
221
+ serialized_name: 'isCompliant',
222
+ type: {
223
+ name: 'Boolean'
224
+ }
225
+ },
226
+ subscription_id: {
227
+ client_side_validation: true,
228
+ required: false,
229
+ serialized_name: 'subscriptionId',
230
+ type: {
231
+ name: 'String'
232
+ }
233
+ },
234
+ resource_type: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ serialized_name: 'resourceType',
238
+ type: {
239
+ name: 'String'
240
+ }
241
+ },
242
+ resource_location: {
243
+ client_side_validation: true,
244
+ required: false,
245
+ serialized_name: 'resourceLocation',
246
+ type: {
247
+ name: 'String'
248
+ }
249
+ },
250
+ resource_group: {
251
+ client_side_validation: true,
252
+ required: false,
253
+ serialized_name: 'resourceGroup',
254
+ type: {
255
+ name: 'String'
256
+ }
257
+ },
258
+ resource_tags: {
259
+ client_side_validation: true,
260
+ required: false,
261
+ serialized_name: 'resourceTags',
262
+ type: {
263
+ name: 'String'
264
+ }
265
+ },
266
+ policy_assignment_name: {
267
+ client_side_validation: true,
268
+ required: false,
269
+ serialized_name: 'policyAssignmentName',
270
+ type: {
271
+ name: 'String'
272
+ }
273
+ },
274
+ policy_assignment_owner: {
275
+ client_side_validation: true,
276
+ required: false,
277
+ serialized_name: 'policyAssignmentOwner',
278
+ type: {
279
+ name: 'String'
280
+ }
281
+ },
282
+ policy_assignment_parameters: {
283
+ client_side_validation: true,
284
+ required: false,
285
+ serialized_name: 'policyAssignmentParameters',
286
+ type: {
287
+ name: 'String'
288
+ }
289
+ },
290
+ policy_assignment_scope: {
291
+ client_side_validation: true,
292
+ required: false,
293
+ serialized_name: 'policyAssignmentScope',
294
+ type: {
295
+ name: 'String'
296
+ }
297
+ },
298
+ policy_definition_name: {
299
+ client_side_validation: true,
300
+ required: false,
301
+ serialized_name: 'policyDefinitionName',
302
+ type: {
303
+ name: 'String'
304
+ }
305
+ },
306
+ policy_definition_action: {
307
+ client_side_validation: true,
308
+ required: false,
309
+ serialized_name: 'policyDefinitionAction',
310
+ type: {
311
+ name: 'String'
312
+ }
313
+ },
314
+ policy_definition_category: {
315
+ client_side_validation: true,
316
+ required: false,
317
+ serialized_name: 'policyDefinitionCategory',
318
+ type: {
319
+ name: 'String'
320
+ }
321
+ },
322
+ policy_set_definition_id: {
323
+ client_side_validation: true,
324
+ required: false,
325
+ serialized_name: 'policySetDefinitionId',
326
+ type: {
327
+ name: 'String'
328
+ }
329
+ },
330
+ policy_set_definition_name: {
331
+ client_side_validation: true,
332
+ required: false,
333
+ serialized_name: 'policySetDefinitionName',
334
+ type: {
335
+ name: 'String'
336
+ }
337
+ },
338
+ policy_set_definition_owner: {
339
+ client_side_validation: true,
340
+ required: false,
341
+ serialized_name: 'policySetDefinitionOwner',
342
+ type: {
343
+ name: 'String'
344
+ }
345
+ },
346
+ policy_set_definition_category: {
347
+ client_side_validation: true,
348
+ required: false,
349
+ serialized_name: 'policySetDefinitionCategory',
350
+ type: {
351
+ name: 'String'
352
+ }
353
+ },
354
+ policy_set_definition_parameters: {
355
+ client_side_validation: true,
356
+ required: false,
357
+ serialized_name: 'policySetDefinitionParameters',
358
+ type: {
359
+ name: 'String'
360
+ }
361
+ },
362
+ management_group_ids: {
363
+ client_side_validation: true,
364
+ required: false,
365
+ serialized_name: 'managementGroupIds',
366
+ type: {
367
+ name: 'String'
368
+ }
369
+ },
370
+ policy_definition_reference_id: {
371
+ client_side_validation: true,
372
+ required: false,
373
+ serialized_name: 'policyDefinitionReferenceId',
374
+ type: {
375
+ name: 'String'
376
+ }
377
+ },
378
+ compliance_state: {
379
+ client_side_validation: true,
380
+ required: false,
381
+ serialized_name: 'complianceState',
382
+ type: {
383
+ name: 'String'
384
+ }
385
+ },
386
+ policy_evaluation_details: {
387
+ client_side_validation: true,
388
+ required: false,
389
+ serialized_name: 'policyEvaluationDetails',
390
+ type: {
391
+ name: 'Composite',
392
+ class_name: 'PolicyEvaluationDetails'
393
+ }
394
+ },
395
+ policy_definition_group_names: {
396
+ client_side_validation: true,
397
+ required: false,
398
+ serialized_name: 'policyDefinitionGroupNames',
399
+ type: {
400
+ name: 'Sequence',
401
+ element: {
402
+ client_side_validation: true,
403
+ required: false,
404
+ serialized_name: 'StringElementType',
405
+ type: {
406
+ name: 'String'
407
+ }
408
+ }
409
+ }
410
+ },
411
+ components: {
412
+ client_side_validation: true,
413
+ required: false,
414
+ serialized_name: 'components',
415
+ type: {
416
+ name: 'Sequence',
417
+ element: {
418
+ client_side_validation: true,
419
+ required: false,
420
+ serialized_name: 'ComponentStateDetailsElementType',
421
+ type: {
422
+ name: 'Composite',
423
+ class_name: 'ComponentStateDetails'
424
+ }
425
+ }
426
+ }
427
+ },
428
+ policy_definition_version: {
429
+ client_side_validation: true,
430
+ required: false,
431
+ read_only: true,
432
+ serialized_name: 'policyDefinitionVersion',
433
+ type: {
434
+ name: 'String'
435
+ }
436
+ },
437
+ policy_set_definition_version: {
438
+ client_side_validation: true,
439
+ required: false,
440
+ read_only: true,
441
+ serialized_name: 'policySetDefinitionVersion',
442
+ type: {
443
+ name: 'String'
444
+ }
445
+ },
446
+ policy_assignment_version: {
447
+ client_side_validation: true,
448
+ required: false,
449
+ read_only: true,
450
+ serialized_name: 'policyAssignmentVersion',
451
+ type: {
452
+ name: 'String'
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ end
459
+ end
460
+ end
461
+ end