azure_mgmt_policy_insights 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights.rb +46 -0
  4. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/column.rb +68 -0
  5. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
  6. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
  7. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +55 -0
  8. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +55 -0
  9. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table.rb +88 -0
  10. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table_columns.rb +387 -0
  11. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results_table_metadata.rb +47 -0
  12. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +55 -0
  13. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table.rb +88 -0
  14. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table_columns.rb +362 -0
  15. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results_table_metadata.rb +47 -0
  16. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
  17. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
  18. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +58 -0
  19. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +112 -0
  20. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  21. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/operations.rb +107 -0
  22. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_events.rb +507 -0
  23. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +135 -0
  24. data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_states.rb +555 -0
  25. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights.rb +41 -0
  26. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
  27. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
  28. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +70 -0
  29. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +384 -0
  30. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +82 -0
  31. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +361 -0
  32. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +82 -0
  33. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
  34. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
  35. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +58 -0
  36. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +112 -0
  37. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  38. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/operations.rb +107 -0
  39. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_events.rb +607 -0
  40. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +135 -0
  41. data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_states.rb +655 -0
  42. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights.rb +46 -0
  43. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
  44. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
  45. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +70 -0
  46. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +91 -0
  47. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +70 -0
  48. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_event.rb +384 -0
  49. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +82 -0
  50. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +361 -0
  51. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +82 -0
  52. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
  53. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
  54. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +58 -0
  55. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +112 -0
  56. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/summarize_results.rb +83 -0
  57. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/summary.rb +92 -0
  58. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/summary_results.rb +76 -0
  59. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  60. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/operations.rb +107 -0
  61. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_events.rb +1107 -0
  62. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +135 -0
  63. data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_states.rb +2089 -0
  64. data/lib/2018-04-04/generated/azure_mgmt_policy_insights.rb +46 -0
  65. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
  66. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
  67. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +70 -0
  68. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +91 -0
  69. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +81 -0
  70. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_event.rb +384 -0
  71. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +82 -0
  72. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb +361 -0
  73. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +82 -0
  74. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
  75. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
  76. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +58 -0
  77. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/query_options.rb +112 -0
  78. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/summarize_results.rb +83 -0
  79. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/summary.rb +92 -0
  80. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/models/summary_results.rb +76 -0
  81. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
  82. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/operations.rb +107 -0
  83. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_events.rb +1107 -0
  84. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +135 -0
  85. data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb +2089 -0
  86. data/lib/azure_mgmt_policy_insights.rb +9 -0
  87. data/lib/module_definition.rb +7 -0
  88. data/lib/profiles/latest/modules/policyinsights_profile_module.rb +129 -0
  89. data/lib/profiles/latest/policyinsights_latest_profile_client.rb +40 -0
  90. data/lib/profiles/latest/policyinsights_module_definition.rb +8 -0
  91. data/lib/version.rb +7 -0
  92. metadata +210 -0
@@ -0,0 +1,46 @@
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 '2018-04-04/generated/azure_mgmt_policy_insights/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::PolicyInsights::Mgmt::V2018_04_04
23
+ autoload :PolicyEvents, '2018-04-04/generated/azure_mgmt_policy_insights/policy_events.rb'
24
+ autoload :PolicyStates, '2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb'
25
+ autoload :Operations, '2018-04-04/generated/azure_mgmt_policy_insights/operations.rb'
26
+ autoload :PolicyInsightsClient, '2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb'
27
+
28
+ module Models
29
+ autoload :PolicyDefinitionSummary, '2018-04-04/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb'
30
+ autoload :PolicyAssignmentSummary, '2018-04-04/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb'
31
+ autoload :PolicyEventsQueryResults, '2018-04-04/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb'
32
+ autoload :Summary, '2018-04-04/generated/azure_mgmt_policy_insights/models/summary.rb'
33
+ autoload :QueryFailure, '2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure.rb'
34
+ autoload :SummarizeResults, '2018-04-04/generated/azure_mgmt_policy_insights/models/summarize_results.rb'
35
+ autoload :PolicyStatesQueryResults, '2018-04-04/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb'
36
+ autoload :OperationDisplay, '2018-04-04/generated/azure_mgmt_policy_insights/models/operation_display.rb'
37
+ autoload :PolicyEvent, '2018-04-04/generated/azure_mgmt_policy_insights/models/policy_event.rb'
38
+ autoload :Operation, '2018-04-04/generated/azure_mgmt_policy_insights/models/operation.rb'
39
+ autoload :PolicyState, '2018-04-04/generated/azure_mgmt_policy_insights/models/policy_state.rb'
40
+ autoload :OperationsListResults, '2018-04-04/generated/azure_mgmt_policy_insights/models/operations_list_results.rb'
41
+ autoload :QueryFailureError, '2018-04-04/generated/azure_mgmt_policy_insights/models/query_failure_error.rb'
42
+ autoload :QueryOptions, '2018-04-04/generated/azure_mgmt_policy_insights/models/query_options.rb'
43
+ autoload :SummaryResults, '2018-04-04/generated/azure_mgmt_policy_insights/models/summary_results.rb'
44
+ autoload :PolicyStatesResource, '2018-04-04/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb'
45
+ end
46
+ 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::V2018_04_04
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::V2018_04_04
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::V2018_04_04
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,91 @@
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_04_04
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] Non-compliance summary for the policy
23
+ # assignment.
24
+ attr_accessor :results
25
+
26
+ # @return [Array<PolicyDefinitionSummary>] Policy definitions summary.
27
+ attr_accessor :policy_definitions
28
+
29
+
30
+ #
31
+ # Mapper for PolicyAssignmentSummary class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'PolicyAssignmentSummary',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'PolicyAssignmentSummary',
42
+ model_properties: {
43
+ policy_assignment_id: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'policyAssignmentId',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ policy_set_definition_id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'policySetDefinitionId',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ results: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'results',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'SummaryResults'
66
+ }
67
+ },
68
+ policy_definitions: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'policyDefinitions',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'PolicyDefinitionSummaryElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'PolicyDefinitionSummary'
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ end
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,81 @@
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_04_04
7
+ module Models
8
+ #
9
+ # Policy definition summary.
10
+ #
11
+ class PolicyDefinitionSummary
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Policy definition ID.
16
+ attr_accessor :policy_definition_id
17
+
18
+ # @return [String] Policy definition reference ID.
19
+ attr_accessor :policy_definition_reference_id
20
+
21
+ # @return [String] Policy effect, i.e. policy definition action.
22
+ attr_accessor :effect
23
+
24
+ # @return [SummaryResults] Non-compliance summary for the policy
25
+ # definition.
26
+ attr_accessor :results
27
+
28
+
29
+ #
30
+ # Mapper for PolicyDefinitionSummary class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'PolicyDefinitionSummary',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'PolicyDefinitionSummary',
41
+ model_properties: {
42
+ policy_definition_id: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'policyDefinitionId',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ policy_definition_reference_id: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'policyDefinitionReferenceId',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ effect: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'effect',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ results: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'results',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'SummaryResults'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,384 @@
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_04_04
7
+ module Models
8
+ #
9
+ # Policy event record.
10
+ #
11
+ class PolicyEvent
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Unmatched properties from the message are deserialized this
16
+ # collection
17
+ attr_accessor :additional_properties
18
+
19
+ # @return [String] OData entity ID; always set to null since policy event
20
+ # records do not have an entity ID.
21
+ attr_accessor :odataid
22
+
23
+ # @return [String] OData context string; used by OData clients to resolve
24
+ # type information based on metadata.
25
+ attr_accessor :odatacontext
26
+
27
+ # @return [DateTime] Timestamp for the policy event record.
28
+ attr_accessor :timestamp
29
+
30
+ # @return [String] Resource ID.
31
+ attr_accessor :resource_id
32
+
33
+ # @return [String] Policy assignment ID.
34
+ attr_accessor :policy_assignment_id
35
+
36
+ # @return [String] Policy definition ID.
37
+ attr_accessor :policy_definition_id
38
+
39
+ # @return [String] Effective parameters for the policy assignment.
40
+ attr_accessor :effective_parameters
41
+
42
+ # @return [Boolean] Flag which states whether the resource is compliant
43
+ # against the policy assignment it was evaluated against.
44
+ attr_accessor :is_compliant
45
+
46
+ # @return [String] Subscription ID.
47
+ attr_accessor :subscription_id
48
+
49
+ # @return [String] Resource type.
50
+ attr_accessor :resource_type
51
+
52
+ # @return [String] Resource location.
53
+ attr_accessor :resource_location
54
+
55
+ # @return [String] Resource group name.
56
+ attr_accessor :resource_group
57
+
58
+ # @return [String] List of resource tags.
59
+ attr_accessor :resource_tags
60
+
61
+ # @return [String] Policy assignment name.
62
+ attr_accessor :policy_assignment_name
63
+
64
+ # @return [String] Policy assignment owner.
65
+ attr_accessor :policy_assignment_owner
66
+
67
+ # @return [String] Policy assignment parameters.
68
+ attr_accessor :policy_assignment_parameters
69
+
70
+ # @return [String] Policy assignment scope.
71
+ attr_accessor :policy_assignment_scope
72
+
73
+ # @return [String] Policy definition name.
74
+ attr_accessor :policy_definition_name
75
+
76
+ # @return [String] Policy definition action, i.e. effect.
77
+ attr_accessor :policy_definition_action
78
+
79
+ # @return [String] Policy definition category.
80
+ attr_accessor :policy_definition_category
81
+
82
+ # @return [String] Policy set definition ID, if the policy assignment is
83
+ # for a policy set.
84
+ attr_accessor :policy_set_definition_id
85
+
86
+ # @return [String] Policy set definition name, if the policy assignment
87
+ # is for a policy set.
88
+ attr_accessor :policy_set_definition_name
89
+
90
+ # @return [String] Policy set definition owner, if the policy assignment
91
+ # is for a policy set.
92
+ attr_accessor :policy_set_definition_owner
93
+
94
+ # @return [String] Policy set definition category, if the policy
95
+ # assignment is for a policy set.
96
+ attr_accessor :policy_set_definition_category
97
+
98
+ # @return [String] Policy set definition parameters, if the policy
99
+ # assignment is for a policy set.
100
+ attr_accessor :policy_set_definition_parameters
101
+
102
+ # @return [String] Comma seperated list of management group IDs, which
103
+ # represent the hierarchy of the management groups the resource is under.
104
+ attr_accessor :management_group_ids
105
+
106
+ # @return [String] Reference ID for the policy definition inside the
107
+ # policy set, if the policy assignment is for a policy set.
108
+ attr_accessor :policy_definition_reference_id
109
+
110
+ # @return [String] Tenant ID for the policy event record.
111
+ attr_accessor :tenant_id
112
+
113
+ # @return [String] Principal object ID for the user who initiated the
114
+ # resource operation that triggered the policy event.
115
+ attr_accessor :principal_oid
116
+
117
+
118
+ #
119
+ # Mapper for PolicyEvent class as Ruby Hash.
120
+ # This will be used for serialization/deserialization.
121
+ #
122
+ def self.mapper()
123
+ {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'PolicyEvent',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'PolicyEvent',
130
+ model_properties: {
131
+ additional_properties: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ type: {
135
+ name: 'Dictionary',
136
+ value: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'ObjectElementType',
140
+ type: {
141
+ name: 'Object'
142
+ }
143
+ }
144
+ }
145
+ },
146
+ odataid: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ serialized_name: '@odata\\.id',
150
+ type: {
151
+ name: 'String'
152
+ }
153
+ },
154
+ odatacontext: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: '@odata\\.context',
158
+ type: {
159
+ name: 'String'
160
+ }
161
+ },
162
+ timestamp: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ serialized_name: 'timestamp',
166
+ type: {
167
+ name: 'DateTime'
168
+ }
169
+ },
170
+ resource_id: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ serialized_name: 'resourceId',
174
+ type: {
175
+ name: 'String'
176
+ }
177
+ },
178
+ policy_assignment_id: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ serialized_name: 'policyAssignmentId',
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ },
186
+ policy_definition_id: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ serialized_name: 'policyDefinitionId',
190
+ type: {
191
+ name: 'String'
192
+ }
193
+ },
194
+ effective_parameters: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ serialized_name: 'effectiveParameters',
198
+ type: {
199
+ name: 'String'
200
+ }
201
+ },
202
+ is_compliant: {
203
+ client_side_validation: true,
204
+ required: false,
205
+ serialized_name: 'isCompliant',
206
+ type: {
207
+ name: 'Boolean'
208
+ }
209
+ },
210
+ subscription_id: {
211
+ client_side_validation: true,
212
+ required: false,
213
+ serialized_name: 'subscriptionId',
214
+ type: {
215
+ name: 'String'
216
+ }
217
+ },
218
+ resource_type: {
219
+ client_side_validation: true,
220
+ required: false,
221
+ serialized_name: 'resourceType',
222
+ type: {
223
+ name: 'String'
224
+ }
225
+ },
226
+ resource_location: {
227
+ client_side_validation: true,
228
+ required: false,
229
+ serialized_name: 'resourceLocation',
230
+ type: {
231
+ name: 'String'
232
+ }
233
+ },
234
+ resource_group: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ serialized_name: 'resourceGroup',
238
+ type: {
239
+ name: 'String'
240
+ }
241
+ },
242
+ resource_tags: {
243
+ client_side_validation: true,
244
+ required: false,
245
+ serialized_name: 'resourceTags',
246
+ type: {
247
+ name: 'String'
248
+ }
249
+ },
250
+ policy_assignment_name: {
251
+ client_side_validation: true,
252
+ required: false,
253
+ serialized_name: 'policyAssignmentName',
254
+ type: {
255
+ name: 'String'
256
+ }
257
+ },
258
+ policy_assignment_owner: {
259
+ client_side_validation: true,
260
+ required: false,
261
+ serialized_name: 'policyAssignmentOwner',
262
+ type: {
263
+ name: 'String'
264
+ }
265
+ },
266
+ policy_assignment_parameters: {
267
+ client_side_validation: true,
268
+ required: false,
269
+ serialized_name: 'policyAssignmentParameters',
270
+ type: {
271
+ name: 'String'
272
+ }
273
+ },
274
+ policy_assignment_scope: {
275
+ client_side_validation: true,
276
+ required: false,
277
+ serialized_name: 'policyAssignmentScope',
278
+ type: {
279
+ name: 'String'
280
+ }
281
+ },
282
+ policy_definition_name: {
283
+ client_side_validation: true,
284
+ required: false,
285
+ serialized_name: 'policyDefinitionName',
286
+ type: {
287
+ name: 'String'
288
+ }
289
+ },
290
+ policy_definition_action: {
291
+ client_side_validation: true,
292
+ required: false,
293
+ serialized_name: 'policyDefinitionAction',
294
+ type: {
295
+ name: 'String'
296
+ }
297
+ },
298
+ policy_definition_category: {
299
+ client_side_validation: true,
300
+ required: false,
301
+ serialized_name: 'policyDefinitionCategory',
302
+ type: {
303
+ name: 'String'
304
+ }
305
+ },
306
+ policy_set_definition_id: {
307
+ client_side_validation: true,
308
+ required: false,
309
+ serialized_name: 'policySetDefinitionId',
310
+ type: {
311
+ name: 'String'
312
+ }
313
+ },
314
+ policy_set_definition_name: {
315
+ client_side_validation: true,
316
+ required: false,
317
+ serialized_name: 'policySetDefinitionName',
318
+ type: {
319
+ name: 'String'
320
+ }
321
+ },
322
+ policy_set_definition_owner: {
323
+ client_side_validation: true,
324
+ required: false,
325
+ serialized_name: 'policySetDefinitionOwner',
326
+ type: {
327
+ name: 'String'
328
+ }
329
+ },
330
+ policy_set_definition_category: {
331
+ client_side_validation: true,
332
+ required: false,
333
+ serialized_name: 'policySetDefinitionCategory',
334
+ type: {
335
+ name: 'String'
336
+ }
337
+ },
338
+ policy_set_definition_parameters: {
339
+ client_side_validation: true,
340
+ required: false,
341
+ serialized_name: 'policySetDefinitionParameters',
342
+ type: {
343
+ name: 'String'
344
+ }
345
+ },
346
+ management_group_ids: {
347
+ client_side_validation: true,
348
+ required: false,
349
+ serialized_name: 'managementGroupIds',
350
+ type: {
351
+ name: 'String'
352
+ }
353
+ },
354
+ policy_definition_reference_id: {
355
+ client_side_validation: true,
356
+ required: false,
357
+ serialized_name: 'policyDefinitionReferenceId',
358
+ type: {
359
+ name: 'String'
360
+ }
361
+ },
362
+ tenant_id: {
363
+ client_side_validation: true,
364
+ required: false,
365
+ serialized_name: 'tenantId',
366
+ type: {
367
+ name: 'String'
368
+ }
369
+ },
370
+ principal_oid: {
371
+ client_side_validation: true,
372
+ required: false,
373
+ serialized_name: 'principalOid',
374
+ type: {
375
+ name: 'String'
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
+ end
382
+ end
383
+ end
384
+ end