azure_mgmt_policy_insights 0.17.4 → 0.17.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +20 -20
  3. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights.rb +0 -0
  4. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/column.rb +0 -0
  5. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/operation.rb +0 -0
  6. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +0 -0
  7. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +0 -0
  8. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +0 -0
  9. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table.rb +0 -0
  10. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table_columns.rb +0 -0
  11. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table_metadata.rb +0 -0
  12. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +0 -0
  13. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table.rb +0 -0
  14. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table_columns.rb +0 -0
  15. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table_metadata.rb +0 -0
  16. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +0 -0
  17. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +0 -0
  18. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +0 -0
  19. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +0 -0
  20. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/module_definition.rb +0 -0
  21. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  22. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_events.rb +8 -0
  23. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  24. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_states.rb +8 -0
  25. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights.rb +0 -0
  26. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/operation.rb +0 -0
  27. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +0 -0
  28. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +0 -0
  29. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +0 -0
  30. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +0 -0
  31. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +0 -0
  32. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +0 -0
  33. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +0 -0
  34. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +0 -0
  35. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +0 -0
  36. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +0 -0
  37. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/module_definition.rb +0 -0
  38. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  39. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_events.rb +10 -0
  40. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  41. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_states.rb +10 -0
  42. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights.rb +0 -0
  43. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/operation.rb +0 -0
  44. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +0 -0
  45. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +0 -0
  46. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +0 -0
  47. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +0 -0
  48. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +0 -0
  49. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +0 -0
  50. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +0 -0
  51. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +0 -0
  52. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +0 -0
  53. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +0 -0
  54. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +0 -0
  55. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +0 -0
  56. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/summarize_results.rb +0 -0
  57. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/summary.rb +0 -0
  58. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/summary_results.rb +0 -0
  59. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/module_definition.rb +0 -0
  60. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  61. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_events.rb +18 -0
  62. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  63. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_states.rb +34 -0
  64. data/lib/2018-04-04/generated/azure_mgmt_policy_insights.rb +0 -0
  65. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/operation.rb +0 -0
  66. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/operation_display.rb +0 -0
  67. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +0 -0
  68. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +0 -0
  69. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +0 -0
  70. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_event.rb +0 -0
  71. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +0 -0
  72. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb +0 -0
  73. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +0 -0
  74. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +0 -0
  75. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure.rb +0 -0
  76. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +0 -0
  77. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_options.rb +0 -0
  78. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/summarize_results.rb +0 -0
  79. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/summary.rb +0 -0
  80. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/summary_results.rb +0 -0
  81. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/module_definition.rb +0 -0
  82. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  83. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_events.rb +18 -0
  84. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  85. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb +34 -0
  86. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights.rb +0 -0
  87. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_definition.rb +0 -0
  88. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_response.rb +0 -0
  89. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +0 -0
  90. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/if_not_exists_evaluation_details.rb +0 -0
  91. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/operation.rb +0 -0
  92. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +0 -0
  93. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +0 -0
  94. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +0 -0
  95. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +0 -0
  96. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_details.rb +0 -0
  97. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_evaluation_details.rb +0 -0
  98. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +0 -0
  99. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +0 -0
  100. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +0 -0
  101. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb +0 -0
  102. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resources_query_results.rb +0 -0
  103. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +0 -0
  104. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +0 -0
  105. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +0 -0
  106. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation.rb +0 -0
  107. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb +0 -0
  108. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb +0 -0
  109. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb +0 -0
  110. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_filters.rb +0 -0
  111. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb +0 -0
  112. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/summarize_results.rb +0 -0
  113. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/summary.rb +0 -0
  114. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/summary_results.rb +0 -0
  115. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/tracked_resource_modification_details.rb +0 -0
  116. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +0 -0
  117. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/module_definition.rb +0 -0
  118. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
  119. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  120. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_states.rb +34 -0
  121. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_tracked_resources.rb +16 -0
  122. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb +64 -0
  123. data/lib/2019-10-01/generated/azure_mgmt_policy_insights.rb +55 -0
  124. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/compliance_detail.rb +57 -0
  125. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
  126. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
  127. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +103 -0
  128. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/if_not_exists_evaluation_details.rb +59 -0
  129. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
  130. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
  131. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +70 -0
  132. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +110 -0
  133. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +99 -0
  134. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_evaluation_details.rb +69 -0
  135. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_group_summary.rb +59 -0
  136. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata.rb +168 -0
  137. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata_collection.rb +101 -0
  138. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_state.rb +404 -0
  139. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +82 -0
  140. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
  141. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
  142. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +60 -0
  143. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb +123 -0
  144. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/slim_policy_metadata.rb +145 -0
  145. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summarize_results.rb +83 -0
  146. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summary.rb +91 -0
  147. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summary_results.rb +140 -0
  148. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
  149. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  150. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/operations.rb +109 -0
  151. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb +136 -0
  152. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_metadata_operations.rb +316 -0
  153. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_states.rb +2025 -0
  154. data/lib/azure_mgmt_policy_insights.rb +3 -2
  155. data/lib/module_definition.rb +7 -7
  156. data/lib/profiles/latest/modules/policyinsights_profile_module.rb +39 -9
  157. data/lib/profiles/latest/policyinsights_latest_profile_client.rb +40 -40
  158. data/lib/profiles/latest/policyinsights_module_definition.rb +8 -8
  159. data/lib/version.rb +1 -1
  160. metadata +36 -5
@@ -0,0 +1,168 @@
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 metadata resource definition.
10
+ #
11
+ class PolicyMetadata
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The policy metadata identifier.
16
+ attr_accessor :metadata_id
17
+
18
+ # @return [String] The category of the policy metadata.
19
+ attr_accessor :category
20
+
21
+ # @return [String] The title of the policy metadata.
22
+ attr_accessor :title
23
+
24
+ # @return [String] The owner of the policy metadata.
25
+ attr_accessor :owner
26
+
27
+ # @return [String] Url for getting additional content about the resource
28
+ # metadata.
29
+ attr_accessor :additional_content_url
30
+
31
+ # @return Additional metadata.
32
+ attr_accessor :metadata
33
+
34
+ # @return [String] The description of the policy metadata.
35
+ attr_accessor :description
36
+
37
+ # @return [String] The requirements of the policy metadata.
38
+ attr_accessor :requirements
39
+
40
+ # @return [String] The ID of the policy metadata.
41
+ attr_accessor :id
42
+
43
+ # @return [String] The type of the policy metadata.
44
+ attr_accessor :type
45
+
46
+ # @return [String] The name of the policy metadata.
47
+ attr_accessor :name
48
+
49
+
50
+ #
51
+ # Mapper for PolicyMetadata class as Ruby Hash.
52
+ # This will be used for serialization/deserialization.
53
+ #
54
+ def self.mapper()
55
+ {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'PolicyMetadata',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'PolicyMetadata',
62
+ model_properties: {
63
+ metadata_id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'properties.metadataId',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ category: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'properties.category',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ title: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'properties.title',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ owner: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'properties.owner',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ additional_content_url: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'properties.additionalContentUrl',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ metadata: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'properties.metadata',
113
+ type: {
114
+ name: 'Object'
115
+ }
116
+ },
117
+ description: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'properties.description',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ requirements: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: 'properties.requirements',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ id: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ read_only: true,
139
+ serialized_name: 'id',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ },
144
+ type: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ read_only: true,
148
+ serialized_name: 'type',
149
+ type: {
150
+ name: 'String'
151
+ }
152
+ },
153
+ name: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ read_only: true,
157
+ serialized_name: 'name',
158
+ type: {
159
+ name: 'String'
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+ end
166
+ end
167
+ end
168
+ end
@@ -0,0 +1,101 @@
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
+ # Collection of policy metadata resources.
10
+ #
11
+ class PolicyMetadataCollection
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SlimPolicyMetadata>] Array of policy metadata
17
+ # definitions.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The URL to get the next set of results.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<SlimPolicyMetadata>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [PolicyMetadataCollection] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for PolicyMetadataCollection class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'PolicyMetadataCollection',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'PolicyMetadataCollection',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'SlimPolicyMetadataElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'SlimPolicyMetadata'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,404 @@
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
+
121
+ #
122
+ # Mapper for PolicyState class as Ruby Hash.
123
+ # This will be used for serialization/deserialization.
124
+ #
125
+ def self.mapper()
126
+ {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'PolicyState',
130
+ type: {
131
+ name: 'Composite',
132
+ class_name: 'PolicyState',
133
+ model_properties: {
134
+ additional_properties: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ type: {
138
+ name: 'Dictionary',
139
+ value: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ serialized_name: 'ObjectElementType',
143
+ type: {
144
+ name: 'Object'
145
+ }
146
+ }
147
+ }
148
+ },
149
+ odataid: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ serialized_name: '@odata\\.id',
153
+ type: {
154
+ name: 'String'
155
+ }
156
+ },
157
+ odatacontext: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ serialized_name: '@odata\\.context',
161
+ type: {
162
+ name: 'String'
163
+ }
164
+ },
165
+ timestamp: {
166
+ client_side_validation: true,
167
+ required: false,
168
+ serialized_name: 'timestamp',
169
+ type: {
170
+ name: 'DateTime'
171
+ }
172
+ },
173
+ resource_id: {
174
+ client_side_validation: true,
175
+ required: false,
176
+ serialized_name: 'resourceId',
177
+ type: {
178
+ name: 'String'
179
+ }
180
+ },
181
+ policy_assignment_id: {
182
+ client_side_validation: true,
183
+ required: false,
184
+ serialized_name: 'policyAssignmentId',
185
+ type: {
186
+ name: 'String'
187
+ }
188
+ },
189
+ policy_definition_id: {
190
+ client_side_validation: true,
191
+ required: false,
192
+ serialized_name: 'policyDefinitionId',
193
+ type: {
194
+ name: 'String'
195
+ }
196
+ },
197
+ effective_parameters: {
198
+ client_side_validation: true,
199
+ required: false,
200
+ serialized_name: 'effectiveParameters',
201
+ type: {
202
+ name: 'String'
203
+ }
204
+ },
205
+ is_compliant: {
206
+ client_side_validation: true,
207
+ required: false,
208
+ serialized_name: 'isCompliant',
209
+ type: {
210
+ name: 'Boolean'
211
+ }
212
+ },
213
+ subscription_id: {
214
+ client_side_validation: true,
215
+ required: false,
216
+ serialized_name: 'subscriptionId',
217
+ type: {
218
+ name: 'String'
219
+ }
220
+ },
221
+ resource_type: {
222
+ client_side_validation: true,
223
+ required: false,
224
+ serialized_name: 'resourceType',
225
+ type: {
226
+ name: 'String'
227
+ }
228
+ },
229
+ resource_location: {
230
+ client_side_validation: true,
231
+ required: false,
232
+ serialized_name: 'resourceLocation',
233
+ type: {
234
+ name: 'String'
235
+ }
236
+ },
237
+ resource_group: {
238
+ client_side_validation: true,
239
+ required: false,
240
+ serialized_name: 'resourceGroup',
241
+ type: {
242
+ name: 'String'
243
+ }
244
+ },
245
+ resource_tags: {
246
+ client_side_validation: true,
247
+ required: false,
248
+ serialized_name: 'resourceTags',
249
+ type: {
250
+ name: 'String'
251
+ }
252
+ },
253
+ policy_assignment_name: {
254
+ client_side_validation: true,
255
+ required: false,
256
+ serialized_name: 'policyAssignmentName',
257
+ type: {
258
+ name: 'String'
259
+ }
260
+ },
261
+ policy_assignment_owner: {
262
+ client_side_validation: true,
263
+ required: false,
264
+ serialized_name: 'policyAssignmentOwner',
265
+ type: {
266
+ name: 'String'
267
+ }
268
+ },
269
+ policy_assignment_parameters: {
270
+ client_side_validation: true,
271
+ required: false,
272
+ serialized_name: 'policyAssignmentParameters',
273
+ type: {
274
+ name: 'String'
275
+ }
276
+ },
277
+ policy_assignment_scope: {
278
+ client_side_validation: true,
279
+ required: false,
280
+ serialized_name: 'policyAssignmentScope',
281
+ type: {
282
+ name: 'String'
283
+ }
284
+ },
285
+ policy_definition_name: {
286
+ client_side_validation: true,
287
+ required: false,
288
+ serialized_name: 'policyDefinitionName',
289
+ type: {
290
+ name: 'String'
291
+ }
292
+ },
293
+ policy_definition_action: {
294
+ client_side_validation: true,
295
+ required: false,
296
+ serialized_name: 'policyDefinitionAction',
297
+ type: {
298
+ name: 'String'
299
+ }
300
+ },
301
+ policy_definition_category: {
302
+ client_side_validation: true,
303
+ required: false,
304
+ serialized_name: 'policyDefinitionCategory',
305
+ type: {
306
+ name: 'String'
307
+ }
308
+ },
309
+ policy_set_definition_id: {
310
+ client_side_validation: true,
311
+ required: false,
312
+ serialized_name: 'policySetDefinitionId',
313
+ type: {
314
+ name: 'String'
315
+ }
316
+ },
317
+ policy_set_definition_name: {
318
+ client_side_validation: true,
319
+ required: false,
320
+ serialized_name: 'policySetDefinitionName',
321
+ type: {
322
+ name: 'String'
323
+ }
324
+ },
325
+ policy_set_definition_owner: {
326
+ client_side_validation: true,
327
+ required: false,
328
+ serialized_name: 'policySetDefinitionOwner',
329
+ type: {
330
+ name: 'String'
331
+ }
332
+ },
333
+ policy_set_definition_category: {
334
+ client_side_validation: true,
335
+ required: false,
336
+ serialized_name: 'policySetDefinitionCategory',
337
+ type: {
338
+ name: 'String'
339
+ }
340
+ },
341
+ policy_set_definition_parameters: {
342
+ client_side_validation: true,
343
+ required: false,
344
+ serialized_name: 'policySetDefinitionParameters',
345
+ type: {
346
+ name: 'String'
347
+ }
348
+ },
349
+ management_group_ids: {
350
+ client_side_validation: true,
351
+ required: false,
352
+ serialized_name: 'managementGroupIds',
353
+ type: {
354
+ name: 'String'
355
+ }
356
+ },
357
+ policy_definition_reference_id: {
358
+ client_side_validation: true,
359
+ required: false,
360
+ serialized_name: 'policyDefinitionReferenceId',
361
+ type: {
362
+ name: 'String'
363
+ }
364
+ },
365
+ compliance_state: {
366
+ client_side_validation: true,
367
+ required: false,
368
+ serialized_name: 'complianceState',
369
+ type: {
370
+ name: 'String'
371
+ }
372
+ },
373
+ policy_evaluation_details: {
374
+ client_side_validation: true,
375
+ required: false,
376
+ serialized_name: 'policyEvaluationDetails',
377
+ type: {
378
+ name: 'Composite',
379
+ class_name: 'PolicyEvaluationDetails'
380
+ }
381
+ },
382
+ policy_definition_group_names: {
383
+ client_side_validation: true,
384
+ required: false,
385
+ serialized_name: 'policyDefinitionGroupNames',
386
+ type: {
387
+ name: 'Sequence',
388
+ element: {
389
+ client_side_validation: true,
390
+ required: false,
391
+ serialized_name: 'StringElementType',
392
+ type: {
393
+ name: 'String'
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+ }
401
+ end
402
+ end
403
+ end
404
+ end