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.
Files changed (39) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table_columns.rb +1 -1
  3. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table_columns.rb +1 -1
  4. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  5. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +1 -1
  6. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +1 -1
  7. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  8. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +1 -1
  9. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +1 -1
  10. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  11. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_event.rb +1 -1
  12. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb +1 -1
  13. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +2 -0
  14. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
  15. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights.rb +45 -0
  16. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
  17. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
  18. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_details.rb +108 -0
  19. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb +102 -0
  20. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resources_query_results.rb +100 -0
  21. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
  22. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +60 -0
  23. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +54 -0
  24. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation.rb +158 -0
  25. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb +124 -0
  26. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb +72 -0
  27. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb +101 -0
  28. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_filters.rb +55 -0
  29. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb +100 -0
  30. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/tracked_resource_modification_details.rb +76 -0
  31. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
  32. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  33. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +135 -0
  34. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_tracked_resources.rb +860 -0
  35. data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb +3230 -0
  36. data/lib/azure_mgmt_policy_insights.rb +1 -0
  37. data/lib/profiles/latest/modules/policyinsights_profile_module.rb +78 -14
  38. data/lib/version.rb +1 -1
  39. metadata +24 -3
@@ -0,0 +1,102 @@
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::V2018_07_01_preview
7
+ module Models
8
+ #
9
+ # Policy tracked resource record.
10
+ #
11
+ class PolicyTrackedResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ID of the policy tracked resource.
16
+ attr_accessor :tracked_resource_id
17
+
18
+ # @return [PolicyDetails] The details of the policy that require the
19
+ # tracked resource.
20
+ attr_accessor :policy_details
21
+
22
+ # @return [TrackedResourceModificationDetails] The details of the policy
23
+ # triggered deployment that created the tracked resource.
24
+ attr_accessor :created_by
25
+
26
+ # @return [TrackedResourceModificationDetails] The details of the policy
27
+ # triggered deployment that modified the tracked resource.
28
+ attr_accessor :last_modified_by
29
+
30
+ # @return [DateTime] Timestamp of the last update to the tracked
31
+ # resource.
32
+ attr_accessor :last_update_utc
33
+
34
+
35
+ #
36
+ # Mapper for PolicyTrackedResource class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'PolicyTrackedResource',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'PolicyTrackedResource',
47
+ model_properties: {
48
+ tracked_resource_id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'trackedResourceId',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ policy_details: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'policyDetails',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'PolicyDetails'
65
+ }
66
+ },
67
+ created_by: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'createdBy',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'TrackedResourceModificationDetails'
75
+ }
76
+ },
77
+ last_modified_by: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'lastModifiedBy',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'TrackedResourceModificationDetails'
85
+ }
86
+ },
87
+ last_update_utc: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ read_only: true,
91
+ serialized_name: 'lastUpdateUtc',
92
+ type: {
93
+ name: 'DateTime'
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,100 @@
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::V2018_07_01_preview
7
+ module Models
8
+ #
9
+ # Query results.
10
+ #
11
+ class PolicyTrackedResourcesQueryResults
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<PolicyTrackedResource>] Query results.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to get the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<PolicyTrackedResource>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [PolicyTrackedResourcesQueryResults] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for PolicyTrackedResourcesQueryResults class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'PolicyTrackedResourcesQueryResults',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'PolicyTrackedResourcesQueryResults',
66
+ model_properties: {
67
+ value: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'PolicyTrackedResourceElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'PolicyTrackedResource'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ 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::V2018_07_01_preview
7
+ module Models
8
+ #
9
+ # Error response.
10
+ #
11
+ class QueryFailure
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [QueryFailureError] Error definition.
16
+ attr_accessor :error
17
+
18
+
19
+ #
20
+ # Mapper for QueryFailure 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: 'QueryFailure',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'QueryFailure',
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: 'QueryFailureError'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,60 @@
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::V2018_07_01_preview
7
+ module Models
8
+ #
9
+ # Error definition.
10
+ #
11
+ class QueryFailureError
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
+
23
+ #
24
+ # Mapper for QueryFailureError class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'QueryFailure_error',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'QueryFailureError',
35
+ model_properties: {
36
+ code: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'code',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ message: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'message',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ 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::V2018_07_01_preview
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,158 @@
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::V2018_07_01_preview
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 [String] The status of the remediation.
25
+ attr_accessor :provisioning_state
26
+
27
+ # @return [DateTime] The time at which the remediation was created.
28
+ attr_accessor :created_on
29
+
30
+ # @return [DateTime] The time at which the remediation was last updated.
31
+ attr_accessor :last_updated_on
32
+
33
+ # @return [RemediationFilters] The filters that will be applied to
34
+ # determine which resources to remediate.
35
+ attr_accessor :filters
36
+
37
+ # @return [RemediationDeploymentSummary] The deployment status summary
38
+ # for all deployments created by the remediation.
39
+ attr_accessor :deployment_status
40
+
41
+ # @return [String] The ID of the remediation.
42
+ attr_accessor :id
43
+
44
+ # @return [String] The type of the remediation.
45
+ attr_accessor :type
46
+
47
+ # @return [String] The name of the remediation.
48
+ attr_accessor :name
49
+
50
+
51
+ #
52
+ # Mapper for Remediation class as Ruby Hash.
53
+ # This will be used for serialization/deserialization.
54
+ #
55
+ def self.mapper()
56
+ {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'Remediation',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'Remediation',
63
+ model_properties: {
64
+ policy_assignment_id: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'properties.policyAssignmentId',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ policy_definition_reference_id: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'properties.policyDefinitionReferenceId',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ provisioning_state: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'properties.provisioningState',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ created_on: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'properties.createdOn',
94
+ type: {
95
+ name: 'DateTime'
96
+ }
97
+ },
98
+ last_updated_on: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ read_only: true,
102
+ serialized_name: 'properties.lastUpdatedOn',
103
+ type: {
104
+ name: 'DateTime'
105
+ }
106
+ },
107
+ filters: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'properties.filters',
111
+ type: {
112
+ name: 'Composite',
113
+ class_name: 'RemediationFilters'
114
+ }
115
+ },
116
+ deployment_status: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'properties.deploymentStatus',
120
+ type: {
121
+ name: 'Composite',
122
+ class_name: 'RemediationDeploymentSummary'
123
+ }
124
+ },
125
+ id: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ read_only: true,
129
+ serialized_name: 'id',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ },
134
+ type: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ read_only: true,
138
+ serialized_name: 'type',
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ },
143
+ name: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ read_only: true,
147
+ serialized_name: 'name',
148
+ type: {
149
+ name: 'String'
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ end
156
+ end
157
+ end
158
+ end