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,125 @@
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
+ # Query results.
10
+ #
11
+ class PolicyStatesQueryResults
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] OData context string; used by OData clients to resolve
17
+ # type information based on metadata.
18
+ attr_accessor :odatacontext
19
+
20
+ # @return [Integer] OData entity count; represents the number of policy
21
+ # state records returned.
22
+ attr_accessor :odatacount
23
+
24
+ # @return [String] Odata next link; URL to get the next set of results.
25
+ attr_accessor :odatanext_link
26
+
27
+ # @return [Array<PolicyState>] Query results.
28
+ attr_accessor :value
29
+
30
+ # return [Proc] with next page method call.
31
+ attr_accessor :next_method
32
+
33
+ #
34
+ # Gets the rest of the items for the request, enabling auto-pagination.
35
+ #
36
+ # @return [Array<PolicyState>] operation results.
37
+ #
38
+ def get_all_items
39
+ items = @value
40
+ page = self
41
+ while page.odatanext_link != nil && !page.odatanext_link.strip.empty? do
42
+ page = page.get_next_page
43
+ items.concat(page.value)
44
+ end
45
+ items
46
+ end
47
+
48
+ #
49
+ # Gets the next page of results.
50
+ #
51
+ # @return [PolicyStatesQueryResults] with next page content.
52
+ #
53
+ def get_next_page
54
+ response = @next_method.call(@odatanext_link).value! unless @next_method.nil?
55
+ unless response.nil?
56
+ @odatanext_link = response.body.odatanext_link
57
+ @value = response.body.value
58
+ self
59
+ end
60
+ end
61
+
62
+ #
63
+ # Mapper for PolicyStatesQueryResults class as Ruby Hash.
64
+ # This will be used for serialization/deserialization.
65
+ #
66
+ def self.mapper()
67
+ {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'PolicyStatesQueryResults',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'PolicyStatesQueryResults',
74
+ model_properties: {
75
+ odatacontext: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: '@odata\\.context',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ odatacount: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: '@odata\\.count',
87
+ constraints: {
88
+ InclusiveMinimum: 0
89
+ },
90
+ type: {
91
+ name: 'Number'
92
+ }
93
+ },
94
+ odatanext_link: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: '@odata\\.nextLink',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ value: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'value',
106
+ type: {
107
+ name: 'Sequence',
108
+ element: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'PolicyStateElementType',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'PolicyState'
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ end
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,16 @@
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
+ # Defines values for PolicyStatesResource
10
+ #
11
+ module PolicyStatesResource
12
+ Default = "default"
13
+ Latest = "latest"
14
+ end
15
+ end
16
+ 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_10_01
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::V2019_10_01
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,134 @@
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
+ # 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] Ordering expression using OData notation. One or more
19
+ # comma-separated column names with an optional "desc" (the default) or
20
+ # "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
21
+ attr_accessor :order_by
22
+
23
+ # @return [String] Select expression using OData notation. Limits the
24
+ # columns on each record to just those requested, e.g.
25
+ # "$select=PolicyAssignmentId, ResourceId".
26
+ attr_accessor :select
27
+
28
+ # @return [DateTime] ISO 8601 formatted timestamp specifying the start
29
+ # time of the interval to query. When not specified, the service uses
30
+ # ($to - 1-day).
31
+ attr_accessor :from
32
+
33
+ # @return [DateTime] ISO 8601 formatted timestamp specifying the end time
34
+ # of the interval to query. When not specified, the service uses request
35
+ # time.
36
+ attr_accessor :to
37
+
38
+ # @return [String] OData filter expression.
39
+ attr_accessor :filter
40
+
41
+ # @return [String] OData apply expression for aggregations.
42
+ attr_accessor :apply
43
+
44
+ # @return [String] Skiptoken is only provided if a previous response
45
+ # returned a partial result as a part of nextLink element.
46
+ attr_accessor :skip_token
47
+
48
+ # @return [String] The $expand query parameter. For example, to expand
49
+ # components use $expand=components
50
+ attr_accessor :expand
51
+
52
+
53
+ #
54
+ # Mapper for QueryOptions class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ client_side_validation: true,
60
+ required: false,
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'QueryOptions',
64
+ model_properties: {
65
+ top: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ type: {
69
+ name: 'Number'
70
+ }
71
+ },
72
+ order_by: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ select: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ from: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ type: {
90
+ name: 'DateTime'
91
+ }
92
+ },
93
+ to: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ type: {
97
+ name: 'DateTime'
98
+ }
99
+ },
100
+ filter: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ },
107
+ apply: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ skip_token: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ expand: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,145 @@
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
+ # Slim version of policy metadata resource definition, excluding properties
10
+ # with large strings
11
+ #
12
+ class SlimPolicyMetadata
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The policy metadata identifier.
17
+ attr_accessor :metadata_id
18
+
19
+ # @return [String] The category of the policy metadata.
20
+ attr_accessor :category
21
+
22
+ # @return [String] The title of the policy metadata.
23
+ attr_accessor :title
24
+
25
+ # @return [String] The owner of the policy metadata.
26
+ attr_accessor :owner
27
+
28
+ # @return [String] Url for getting additional content about the resource
29
+ # metadata.
30
+ attr_accessor :additional_content_url
31
+
32
+ # @return Additional metadata.
33
+ attr_accessor :metadata
34
+
35
+ # @return [String] The ID of the policy metadata.
36
+ attr_accessor :id
37
+
38
+ # @return [String] The type of the policy metadata.
39
+ attr_accessor :type
40
+
41
+ # @return [String] The name of the policy metadata.
42
+ attr_accessor :name
43
+
44
+
45
+ #
46
+ # Mapper for SlimPolicyMetadata class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'SlimPolicyMetadata',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'SlimPolicyMetadata',
57
+ model_properties: {
58
+ metadata_id: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'properties.metadataId',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ category: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'properties.category',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ title: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'properties.title',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ owner: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'properties.owner',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ additional_content_url: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'properties.additionalContentUrl',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ metadata: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ read_only: true,
107
+ serialized_name: 'properties.metadata',
108
+ type: {
109
+ name: 'Object'
110
+ }
111
+ },
112
+ id: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ read_only: true,
116
+ serialized_name: 'id',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ type: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ read_only: true,
125
+ serialized_name: 'type',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ name: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ read_only: true,
134
+ serialized_name: 'name',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ end
143
+ end
144
+ end
145
+ end