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,47 @@
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_07_01
7
+ module Models
8
+ #
9
+ # Error response.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ErrorDefinition] The error details.
16
+ attr_accessor :error
17
+
18
+
19
+ #
20
+ # Mapper for ErrorResponse class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ErrorResponse',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ErrorResponse',
31
+ model_properties: {
32
+ error: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'error',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorDefinition'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,54 @@
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_07_01
7
+ module Models
8
+ #
9
+ # Additional parameters for a set of operations.
10
+ #
11
+ class QueryOptions
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Maximum number of records to return.
16
+ attr_accessor :top
17
+
18
+ # @return [String] OData filter expression.
19
+ attr_accessor :filter
20
+
21
+
22
+ #
23
+ # Mapper for QueryOptions class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'QueryOptions',
33
+ model_properties: {
34
+ top: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ type: {
38
+ name: 'Number'
39
+ }
40
+ },
41
+ filter: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,172 @@
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_07_01
7
+ module Models
8
+ #
9
+ # The remediation definition.
10
+ #
11
+ class Remediation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource ID of the policy assignment that should
16
+ # be remediated.
17
+ attr_accessor :policy_assignment_id
18
+
19
+ # @return [String] The policy definition reference ID of the individual
20
+ # definition that should be remediated. Required when the policy
21
+ # assignment being remediated assigns a policy set definition.
22
+ attr_accessor :policy_definition_reference_id
23
+
24
+ # @return [ResourceDiscoveryMode] The way resources to remediate are
25
+ # discovered. Defaults to ExistingNonCompliant if not specified. Possible
26
+ # values include: 'ExistingNonCompliant', 'ReEvaluateCompliance'
27
+ attr_accessor :resource_discovery_mode
28
+
29
+ # @return [String] The status of the remediation.
30
+ attr_accessor :provisioning_state
31
+
32
+ # @return [DateTime] The time at which the remediation was created.
33
+ attr_accessor :created_on
34
+
35
+ # @return [DateTime] The time at which the remediation was last updated.
36
+ attr_accessor :last_updated_on
37
+
38
+ # @return [RemediationFilters] The filters that will be applied to
39
+ # determine which resources to remediate.
40
+ attr_accessor :filters
41
+
42
+ # @return [RemediationDeploymentSummary] The deployment status summary
43
+ # for all deployments created by the remediation.
44
+ attr_accessor :deployment_status
45
+
46
+ # @return [String] The ID of the remediation.
47
+ attr_accessor :id
48
+
49
+ # @return [String] The type of the remediation.
50
+ attr_accessor :type
51
+
52
+ # @return [String] The name of the remediation.
53
+ attr_accessor :name
54
+
55
+
56
+ #
57
+ # Mapper for Remediation class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'Remediation',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'Remediation',
68
+ model_properties: {
69
+ policy_assignment_id: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'properties.policyAssignmentId',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ policy_definition_reference_id: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'properties.policyDefinitionReferenceId',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ resource_discovery_mode: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'properties.resourceDiscoveryMode',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ provisioning_state: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'properties.provisioningState',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ created_on: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'properties.createdOn',
107
+ type: {
108
+ name: 'DateTime'
109
+ }
110
+ },
111
+ last_updated_on: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'properties.lastUpdatedOn',
116
+ type: {
117
+ name: 'DateTime'
118
+ }
119
+ },
120
+ filters: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ serialized_name: 'properties.filters',
124
+ type: {
125
+ name: 'Composite',
126
+ class_name: 'RemediationFilters'
127
+ }
128
+ },
129
+ deployment_status: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'properties.deploymentStatus',
134
+ type: {
135
+ name: 'Composite',
136
+ class_name: 'RemediationDeploymentSummary'
137
+ }
138
+ },
139
+ id: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ read_only: true,
143
+ serialized_name: 'id',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ },
148
+ type: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ read_only: true,
152
+ serialized_name: 'type',
153
+ type: {
154
+ name: 'String'
155
+ }
156
+ },
157
+ name: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ read_only: true,
161
+ serialized_name: 'name',
162
+ type: {
163
+ name: 'String'
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ end
170
+ end
171
+ end
172
+ end
@@ -0,0 +1,124 @@
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_07_01
7
+ module Models
8
+ #
9
+ # Details of a single deployment created by the remediation.
10
+ #
11
+ class RemediationDeployment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource ID of the resource that is being remediated
16
+ # by the deployment.
17
+ attr_accessor :remediated_resource_id
18
+
19
+ # @return [String] Resource ID of the template deployment that will
20
+ # remediate the resource.
21
+ attr_accessor :deployment_id
22
+
23
+ # @return [String] Status of the remediation deployment.
24
+ attr_accessor :status
25
+
26
+ # @return [String] Location of the resource that is being remediated.
27
+ attr_accessor :resource_location
28
+
29
+ # @return [ErrorDefinition] Error encountered while remediated the
30
+ # resource.
31
+ attr_accessor :error
32
+
33
+ # @return [DateTime] The time at which the remediation was created.
34
+ attr_accessor :created_on
35
+
36
+ # @return [DateTime] The time at which the remediation deployment was
37
+ # last updated.
38
+ attr_accessor :last_updated_on
39
+
40
+
41
+ #
42
+ # Mapper for RemediationDeployment class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'RemediationDeployment',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'RemediationDeployment',
53
+ model_properties: {
54
+ remediated_resource_id: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'remediatedResourceId',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ deployment_id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'deploymentId',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ status: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'status',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ resource_location: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'resourceLocation',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ error: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'error',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'ErrorDefinition'
98
+ }
99
+ },
100
+ created_on: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'createdOn',
105
+ type: {
106
+ name: 'DateTime'
107
+ }
108
+ },
109
+ last_updated_on: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'lastUpdatedOn',
114
+ type: {
115
+ name: 'DateTime'
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,75 @@
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_07_01
7
+ module Models
8
+ #
9
+ # The deployment status summary for all deployments created by the
10
+ # remediation.
11
+ #
12
+ class RemediationDeploymentSummary
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Integer] The number of deployments required by the
17
+ # remediation.
18
+ attr_accessor :total_deployments
19
+
20
+ # @return [Integer] The number of deployments required by the remediation
21
+ # that have succeeded.
22
+ attr_accessor :successful_deployments
23
+
24
+ # @return [Integer] The number of deployments required by the remediation
25
+ # that have failed.
26
+ attr_accessor :failed_deployments
27
+
28
+
29
+ #
30
+ # Mapper for RemediationDeploymentSummary class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'RemediationDeploymentSummary',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'RemediationDeploymentSummary',
41
+ model_properties: {
42
+ total_deployments: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'totalDeployments',
47
+ type: {
48
+ name: 'Number'
49
+ }
50
+ },
51
+ successful_deployments: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'successfulDeployments',
56
+ type: {
57
+ name: 'Number'
58
+ }
59
+ },
60
+ failed_deployments: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'failedDeployments',
65
+ type: {
66
+ name: 'Number'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end