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,124 @@
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
+ # Details of a single deployment created by the remediation.
10
+ #
11
+ class RemediationDeployment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource ID of the resource that is being remediated
16
+ # by the deployment.
17
+ attr_accessor :remediated_resource_id
18
+
19
+ # @return [String] Resource ID of the template deployment that will
20
+ # remediate the resource.
21
+ attr_accessor :deployment_id
22
+
23
+ # @return [String] Status of the remediation deployment.
24
+ attr_accessor :status
25
+
26
+ # @return [String] Location of the resource that is being remediated.
27
+ attr_accessor :resource_location
28
+
29
+ # @return [ErrorDefinition] Error encountered while remediated the
30
+ # resource.
31
+ attr_accessor :error
32
+
33
+ # @return [DateTime] The time at which the remediation was created.
34
+ attr_accessor :created_on
35
+
36
+ # @return [DateTime] The time at which the remediation deployment was
37
+ # last updated.
38
+ attr_accessor :last_updated_on
39
+
40
+
41
+ #
42
+ # Mapper for RemediationDeployment class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'RemediationDeployment',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'RemediationDeployment',
53
+ model_properties: {
54
+ remediated_resource_id: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'remediatedResourceId',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ deployment_id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'deploymentId',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ status: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'status',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ resource_location: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'resourceLocation',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ error: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'error',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'ErrorDefinition'
98
+ }
99
+ },
100
+ created_on: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'createdOn',
105
+ type: {
106
+ name: 'DateTime'
107
+ }
108
+ },
109
+ last_updated_on: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'lastUpdatedOn',
114
+ type: {
115
+ name: 'DateTime'
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,72 @@
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 deployment status summary for all deployments created by the
10
+ # remediation.
11
+ #
12
+ class RemediationDeploymentSummary
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Integer] The number of deployments required by the
17
+ # remediation.
18
+ attr_accessor :total_deployments
19
+
20
+ # @return [Integer] The number of deployments required by the remediation
21
+ # that have succeeded.
22
+ attr_accessor :successful_deployments
23
+
24
+ # @return [Integer] The number of deployments required by the remediation
25
+ # that have failed.
26
+ attr_accessor :failed_deployments
27
+
28
+
29
+ #
30
+ # Mapper for RemediationDeploymentSummary 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: 'RemediationDeploymentSummary',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'RemediationDeploymentSummary',
41
+ model_properties: {
42
+ total_deployments: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'totalDeployments',
46
+ type: {
47
+ name: 'Number'
48
+ }
49
+ },
50
+ successful_deployments: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'successfulDeployments',
54
+ type: {
55
+ name: 'Number'
56
+ }
57
+ },
58
+ failed_deployments: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'failedDeployments',
62
+ type: {
63
+ name: 'Number'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,101 @@
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
+ # List of deployments for a remediation.
10
+ #
11
+ class RemediationDeploymentsListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<RemediationDeployment>] Array of deployments for the
17
+ # remediation.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The URL to get the next set of results.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<RemediationDeployment>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [RemediationDeploymentsListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for RemediationDeploymentsListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'RemediationDeploymentsListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'RemediationDeploymentsListResult',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'RemediationDeploymentElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'RemediationDeployment'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,55 @@
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 filters that will be applied to determine which resources to
10
+ # remediate.
11
+ #
12
+ class RemediationFilters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<String>] The resource locations that will be remediated.
17
+ attr_accessor :locations
18
+
19
+
20
+ #
21
+ # Mapper for RemediationFilters class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'RemediationFilters',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'RemediationFilters',
32
+ model_properties: {
33
+ locations: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'locations',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'StringElementType',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ 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
+ # List of remediations.
10
+ #
11
+ class RemediationListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Remediation>] Array of remediation definitions.
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<Remediation>] 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 [RemediationListResult] 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 RemediationListResult 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: 'RemediationListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'RemediationListResult',
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: 'RemediationElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'Remediation'
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