azure_mgmt_policy_insights 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table_columns.rb +1 -1
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table_columns.rb +1 -1
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +1 -1
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +1 -1
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +1 -1
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +1 -1
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_event.rb +1 -1
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb +1 -1
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +2 -0
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights.rb +45 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_details.rb +108 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb +102 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resources_query_results.rb +100 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +60 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +54 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation.rb +158 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb +124 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb +72 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb +101 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_filters.rb +55 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb +100 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/tracked_resource_modification_details.rb +76 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +135 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_tracked_resources.rb +860 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb +3230 -0
- data/lib/azure_mgmt_policy_insights.rb +1 -0
- data/lib/profiles/latest/modules/policyinsights_profile_module.rb +78 -14
- data/lib/version.rb +1 -1
- metadata +24 -3
@@ -5,5 +5,6 @@
|
|
5
5
|
require '2018-04-04/generated/azure_mgmt_policy_insights'
|
6
6
|
require '2017-08-09-preview/generated/azure_mgmt_policy_insights'
|
7
7
|
require '2017-10-17-preview/generated/azure_mgmt_policy_insights'
|
8
|
+
require '2018-07-01-preview/generated/azure_mgmt_policy_insights'
|
8
9
|
require '2017-12-12-preview/generated/azure_mgmt_policy_insights'
|
9
10
|
require 'profiles/latest/policyinsights_latest_profile_client'
|
@@ -9,13 +9,14 @@ module Azure::PolicyInsights::Profiles::Latest
|
|
9
9
|
PolicyEvents = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyEvents
|
10
10
|
PolicyStates = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyStates
|
11
11
|
Operations = Azure::PolicyInsights::Mgmt::V2018_04_04::Operations
|
12
|
+
PolicyTrackedResources = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyTrackedResources
|
13
|
+
Remediations = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Remediations
|
12
14
|
|
13
15
|
module Models
|
14
16
|
PolicyDefinitionSummary = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyDefinitionSummary
|
15
17
|
PolicyAssignmentSummary = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyAssignmentSummary
|
16
18
|
PolicyEventsQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults
|
17
19
|
Summary = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Summary
|
18
|
-
QueryFailure = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailure
|
19
20
|
SummarizeResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummarizeResults
|
20
21
|
PolicyStatesQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesQueryResults
|
21
22
|
OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay
|
@@ -23,17 +24,31 @@ module Azure::PolicyInsights::Profiles::Latest
|
|
23
24
|
Operation = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation
|
24
25
|
PolicyState = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyState
|
25
26
|
OperationsListResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults
|
26
|
-
QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError
|
27
|
-
QueryOptions = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions
|
28
27
|
SummaryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults
|
29
28
|
PolicyStatesResource = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesResource
|
29
|
+
Remediation = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
|
30
|
+
PolicyDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
|
31
|
+
RemediationListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
|
32
|
+
PolicyTrackedResource = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
|
33
|
+
TypedErrorInfo = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
|
34
|
+
QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
|
35
|
+
ErrorDefinition = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
|
36
|
+
RemediationFilters = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
|
37
|
+
RemediationDeployment = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
|
38
|
+
TrackedResourceModificationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
|
39
|
+
RemediationDeploymentsListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
|
40
|
+
QueryFailure = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
|
41
|
+
ErrorResponse = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
|
42
|
+
PolicyTrackedResourcesQueryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
|
43
|
+
QueryOptions = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
|
44
|
+
RemediationDeploymentSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
|
30
45
|
end
|
31
46
|
|
32
47
|
#
|
33
48
|
# PolicyInsightsManagementClass
|
34
49
|
#
|
35
50
|
class PolicyInsightsManagementClass
|
36
|
-
attr_reader :policy_events, :policy_states, :operations, :configurable, :base_url, :options, :model_classes
|
51
|
+
attr_reader :policy_events, :policy_states, :operations, :policy_tracked_resources, :remediations, :configurable, :base_url, :options, :model_classes
|
37
52
|
|
38
53
|
def initialize(options = {})
|
39
54
|
if options.is_a?(Hash) && options.length == 0
|
@@ -57,6 +72,14 @@ module Azure::PolicyInsights::Profiles::Latest
|
|
57
72
|
@policy_states = @client_0.policy_states
|
58
73
|
@operations = @client_0.operations
|
59
74
|
|
75
|
+
@client_1 = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyInsightsClient.new(configurable.credentials, base_url, options)
|
76
|
+
if(@client_1.respond_to?(:subscription_id))
|
77
|
+
@client_1.subscription_id = configurable.subscription_id
|
78
|
+
end
|
79
|
+
add_telemetry(@client_1)
|
80
|
+
@policy_tracked_resources = @client_1.policy_tracked_resources
|
81
|
+
@remediations = @client_1.remediations
|
82
|
+
|
60
83
|
@model_classes = ModelClasses.new
|
61
84
|
end
|
62
85
|
|
@@ -66,7 +89,9 @@ module Azure::PolicyInsights::Profiles::Latest
|
|
66
89
|
end
|
67
90
|
|
68
91
|
def method_missing(method, *args)
|
69
|
-
if @
|
92
|
+
if @client_1.respond_to?method
|
93
|
+
@client_1.send(method, *args)
|
94
|
+
elsif @client_0.respond_to?method
|
70
95
|
@client_0.send(method, *args)
|
71
96
|
else
|
72
97
|
super
|
@@ -88,9 +113,6 @@ module Azure::PolicyInsights::Profiles::Latest
|
|
88
113
|
def summary
|
89
114
|
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Summary
|
90
115
|
end
|
91
|
-
def query_failure
|
92
|
-
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailure
|
93
|
-
end
|
94
116
|
def summarize_results
|
95
117
|
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummarizeResults
|
96
118
|
end
|
@@ -112,18 +134,60 @@ module Azure::PolicyInsights::Profiles::Latest
|
|
112
134
|
def operations_list_results
|
113
135
|
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults
|
114
136
|
end
|
115
|
-
def query_failure_error
|
116
|
-
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError
|
117
|
-
end
|
118
|
-
def query_options
|
119
|
-
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions
|
120
|
-
end
|
121
137
|
def summary_results
|
122
138
|
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults
|
123
139
|
end
|
124
140
|
def policy_states_resource
|
125
141
|
Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesResource
|
126
142
|
end
|
143
|
+
def remediation
|
144
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
|
145
|
+
end
|
146
|
+
def policy_details
|
147
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
|
148
|
+
end
|
149
|
+
def remediation_list_result
|
150
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
|
151
|
+
end
|
152
|
+
def policy_tracked_resource
|
153
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
|
154
|
+
end
|
155
|
+
def typed_error_info
|
156
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
|
157
|
+
end
|
158
|
+
def query_failure_error
|
159
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
|
160
|
+
end
|
161
|
+
def error_definition
|
162
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
|
163
|
+
end
|
164
|
+
def remediation_filters
|
165
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
|
166
|
+
end
|
167
|
+
def remediation_deployment
|
168
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
|
169
|
+
end
|
170
|
+
def tracked_resource_modification_details
|
171
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
|
172
|
+
end
|
173
|
+
def remediation_deployments_list_result
|
174
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
|
175
|
+
end
|
176
|
+
def query_failure
|
177
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
|
178
|
+
end
|
179
|
+
def error_response
|
180
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
|
181
|
+
end
|
182
|
+
def policy_tracked_resources_query_results
|
183
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
|
184
|
+
end
|
185
|
+
def query_options
|
186
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
|
187
|
+
end
|
188
|
+
def remediation_deployment_summary
|
189
|
+
Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
|
190
|
+
end
|
127
191
|
end
|
128
192
|
end
|
129
193
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_policy_insights
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -171,6 +171,27 @@ files:
|
|
171
171
|
- lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_events.rb
|
172
172
|
- lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb
|
173
173
|
- lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb
|
174
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights.rb
|
175
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_definition.rb
|
176
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_response.rb
|
177
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_details.rb
|
178
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb
|
179
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resources_query_results.rb
|
180
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb
|
181
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb
|
182
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb
|
183
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation.rb
|
184
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb
|
185
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb
|
186
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb
|
187
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_filters.rb
|
188
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb
|
189
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/tracked_resource_modification_details.rb
|
190
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/typed_error_info.rb
|
191
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/module_definition.rb
|
192
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb
|
193
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_tracked_resources.rb
|
194
|
+
- lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb
|
174
195
|
- lib/azure_mgmt_policy_insights.rb
|
175
196
|
- lib/module_definition.rb
|
176
197
|
- lib/profiles/latest/modules/policyinsights_profile_module.rb
|
@@ -202,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
223
|
version: '0'
|
203
224
|
requirements: []
|
204
225
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.7.6
|
206
227
|
signing_key:
|
207
228
|
specification_version: 4
|
208
229
|
summary: Official Ruby client library to consume Microsoft Azure Resource Policy Insights
|