azure_mgmt_policy_insights 0.17.7 → 0.17.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  3. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  4. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  5. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  6. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +43 -0
  7. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +11 -0
  8. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  9. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_states.rb +998 -32
  10. data/lib/2019-07-01/generated/azure_mgmt_policy_insights.rb +39 -0
  11. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
  12. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
  13. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/query_options.rb +54 -0
  14. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation.rb +172 -0
  15. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb +124 -0
  16. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb +75 -0
  17. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb +101 -0
  18. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_filters.rb +55 -0
  19. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb +100 -0
  20. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/resource_discovery_mode.rb +16 -0
  21. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
  22. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  23. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb +131 -0
  24. data/lib/2019-07-01/generated/azure_mgmt_policy_insights/remediations.rb +3294 -0
  25. data/lib/2019-10-01/generated/azure_mgmt_policy_insights.rb +18 -13
  26. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb +132 -0
  27. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_state_details.rb +109 -0
  28. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +12 -0
  29. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb +416 -0
  30. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +125 -0
  31. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_state.rb +21 -0
  32. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +43 -0
  33. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb +12 -1
  34. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_events.rb +1961 -0
  35. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb +5 -1
  36. data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_states.rb +998 -32
  37. data/lib/azure_mgmt_policy_insights.rb +4 -3
  38. data/lib/profiles/latest/modules/policyinsights_profile_module.rb +23 -11
  39. data/lib/version.rb +1 -1
  40. metadata +23 -3
@@ -0,0 +1,39 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2019-07-01/generated/azure_mgmt_policy_insights/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::PolicyInsights::Mgmt::V2019_07_01
23
+ autoload :Remediations, '2019-07-01/generated/azure_mgmt_policy_insights/remediations.rb'
24
+ autoload :PolicyInsightsClient, '2019-07-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb'
25
+
26
+ module Models
27
+ autoload :ErrorDefinition, '2019-07-01/generated/azure_mgmt_policy_insights/models/error_definition.rb'
28
+ autoload :RemediationFilters, '2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_filters.rb'
29
+ autoload :RemediationDeployment, '2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb'
30
+ autoload :Remediation, '2019-07-01/generated/azure_mgmt_policy_insights/models/remediation.rb'
31
+ autoload :RemediationDeploymentsListResult, '2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb'
32
+ autoload :TypedErrorInfo, '2019-07-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb'
33
+ autoload :ErrorResponse, '2019-07-01/generated/azure_mgmt_policy_insights/models/error_response.rb'
34
+ autoload :RemediationListResult, '2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb'
35
+ autoload :QueryOptions, '2019-07-01/generated/azure_mgmt_policy_insights/models/query_options.rb'
36
+ autoload :RemediationDeploymentSummary, '2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb'
37
+ autoload :ResourceDiscoveryMode, '2019-07-01/generated/azure_mgmt_policy_insights/models/resource_discovery_mode.rb'
38
+ end
39
+ end
@@ -0,0 +1,115 @@
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 definition.
10
+ #
11
+ class ErrorDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service specific error code which serves as the
16
+ # substatus for the HTTP error code.
17
+ attr_accessor :code
18
+
19
+ # @return [String] Description of the error.
20
+ attr_accessor :message
21
+
22
+ # @return [String] The target of the error.
23
+ attr_accessor :target
24
+
25
+ # @return [Array<ErrorDefinition>] Internal error details.
26
+ attr_accessor :details
27
+
28
+ # @return [Array<TypedErrorInfo>] Additional scenario specific error
29
+ # details.
30
+ attr_accessor :additional_info
31
+
32
+
33
+ #
34
+ # Mapper for ErrorDefinition class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ErrorDefinition',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ErrorDefinition',
45
+ model_properties: {
46
+ code: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'code',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ message: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'message',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ target: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'target',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ details: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'details',
78
+ type: {
79
+ name: 'Sequence',
80
+ element: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'ErrorDefinitionElementType',
84
+ type: {
85
+ name: 'Composite',
86
+ class_name: 'ErrorDefinition'
87
+ }
88
+ }
89
+ }
90
+ },
91
+ additional_info: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ read_only: true,
95
+ serialized_name: 'additionalInfo',
96
+ type: {
97
+ name: 'Sequence',
98
+ element: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'TypedErrorInfoElementType',
102
+ type: {
103
+ name: 'Composite',
104
+ class_name: 'TypedErrorInfo'
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -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