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_10_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,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_10_01
7
+ module Models
8
+ #
9
+ # Evaluation details of policy language expressions.
10
+ #
11
+ class ExpressionEvaluationDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Evaluation result.
16
+ attr_accessor :result
17
+
18
+ # @return [String] Expression evaluated.
19
+ attr_accessor :expression
20
+
21
+ # @return [String] The kind of expression that was evaluated.
22
+ attr_accessor :expression_kind
23
+
24
+ # @return [String] Property path if the expression is a field or an
25
+ # alias.
26
+ attr_accessor :path
27
+
28
+ # @return Value of the expression.
29
+ attr_accessor :expression_value
30
+
31
+ # @return Target value to be compared with the expression value.
32
+ attr_accessor :target_value
33
+
34
+ # @return [String] Operator to compare the expression value and the
35
+ # target value.
36
+ attr_accessor :operator
37
+
38
+
39
+ #
40
+ # Mapper for ExpressionEvaluationDetails class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'ExpressionEvaluationDetails',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'ExpressionEvaluationDetails',
51
+ model_properties: {
52
+ result: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'result',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ expression: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'expression',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ expression_kind: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'expressionKind',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ path: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'path',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ expression_value: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'expressionValue',
89
+ type: {
90
+ name: 'Object'
91
+ }
92
+ },
93
+ target_value: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'targetValue',
97
+ type: {
98
+ name: 'Object'
99
+ }
100
+ },
101
+ operator: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'operator',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,59 @@
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
+ # Evaluation details of IfNotExists effect.
10
+ #
11
+ class IfNotExistsEvaluationDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] ID of the last evaluated resource for IfNotExists
16
+ # effect.
17
+ attr_accessor :resource_id
18
+
19
+ # @return [Integer] Total number of resources to which the existence
20
+ # condition is applicable.
21
+ attr_accessor :total_resources
22
+
23
+
24
+ #
25
+ # Mapper for IfNotExistsEvaluationDetails class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'IfNotExistsEvaluationDetails',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'IfNotExistsEvaluationDetails',
36
+ model_properties: {
37
+ resource_id: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'resourceId',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ total_resources: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'totalResources',
49
+ type: {
50
+ name: 'Number'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,59 @@
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
+ # Operation definition.
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name.
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] Display metadata associated with the
19
+ # operation.
20
+ attr_accessor :display
21
+
22
+
23
+ #
24
+ # Mapper for Operation 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: 'Operation',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'Operation',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ display: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'display',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'OperationDisplay'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,79 @@
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
+ # Display metadata associated with the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource provider name.
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource name on which the operation is performed.
19
+ attr_accessor :resource
20
+
21
+ # @return [String] Operation name.
22
+ attr_accessor :operation
23
+
24
+ # @return [String] Operation description.
25
+ attr_accessor :description
26
+
27
+
28
+ #
29
+ # Mapper for OperationDisplay class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'Operation_display',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'OperationDisplay',
40
+ model_properties: {
41
+ provider: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'provider',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ resource: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'resource',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ operation: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'operation',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ description: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'description',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,70 @@
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
+ # List of available operations.
10
+ #
11
+ class OperationsListResults
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] OData entity count; represents the number of
16
+ # operations returned.
17
+ attr_accessor :odatacount
18
+
19
+ # @return [Array<Operation>] List of available operations.
20
+ attr_accessor :value
21
+
22
+
23
+ #
24
+ # Mapper for OperationsListResults 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: 'OperationsListResults',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'OperationsListResults',
35
+ model_properties: {
36
+ odatacount: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: '@odata\\.count',
40
+ constraints: {
41
+ InclusiveMinimum: 1
42
+ },
43
+ type: {
44
+ name: 'Number'
45
+ }
46
+ },
47
+ value: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'value',
51
+ type: {
52
+ name: 'Sequence',
53
+ element: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'OperationElementType',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'Operation'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,110 @@
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
+ # Policy assignment summary.
10
+ #
11
+ class PolicyAssignmentSummary
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Policy assignment ID.
16
+ attr_accessor :policy_assignment_id
17
+
18
+ # @return [String] Policy set definition ID, if the policy assignment is
19
+ # for a policy set.
20
+ attr_accessor :policy_set_definition_id
21
+
22
+ # @return [SummaryResults] Compliance summary for the policy assignment.
23
+ attr_accessor :results
24
+
25
+ # @return [Array<PolicyDefinitionSummary>] Policy definitions summary.
26
+ attr_accessor :policy_definitions
27
+
28
+ # @return [Array<PolicyGroupSummary>] Policy definition group summary.
29
+ attr_accessor :policy_groups
30
+
31
+
32
+ #
33
+ # Mapper for PolicyAssignmentSummary class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'PolicyAssignmentSummary',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'PolicyAssignmentSummary',
44
+ model_properties: {
45
+ policy_assignment_id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'policyAssignmentId',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ policy_set_definition_id: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'policySetDefinitionId',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ results: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'results',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'SummaryResults'
68
+ }
69
+ },
70
+ policy_definitions: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'policyDefinitions',
74
+ type: {
75
+ name: 'Sequence',
76
+ element: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'PolicyDefinitionSummaryElementType',
80
+ type: {
81
+ name: 'Composite',
82
+ class_name: 'PolicyDefinitionSummary'
83
+ }
84
+ }
85
+ }
86
+ },
87
+ policy_groups: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'policyGroups',
91
+ type: {
92
+ name: 'Sequence',
93
+ element: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'PolicyGroupSummaryElementType',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'PolicyGroupSummary'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ end
108
+ end
109
+ end
110
+ end