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.
- checksums.yaml +4 -4
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_events.rb +8 -0
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_states.rb +8 -0
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_events.rb +10 -0
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_states.rb +10 -0
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_events.rb +18 -0
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_states.rb +34 -0
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/operations.rb +2 -0
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_events.rb +18 -0
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb +34 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +4 -4
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +43 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +11 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/operations.rb +2 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_states.rb +1032 -32
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_tracked_resources.rb +16 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb +64 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights.rb +39 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/query_options.rb +54 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation.rb +172 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment.rb +124 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployment_summary.rb +75 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_deployments_list_result.rb +101 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_filters.rb +55 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/remediation_list_result.rb +100 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/resource_discovery_mode.rb +16 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb +131 -0
- data/lib/2019-07-01/generated/azure_mgmt_policy_insights/remediations.rb +3294 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights.rb +60 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/compliance_detail.rb +57 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb +132 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_state_details.rb +109 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/error_definition.rb +115 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/error_response.rb +47 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +115 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/if_not_exists_evaluation_details.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +70 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +110 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +99 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_evaluation_details.rb +69 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb +416 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb +125 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_group_summary.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata.rb +168 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata_collection.rb +101 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_state.rb +461 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +125 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure.rb +47 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure_error.rb +60 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb +134 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/slim_policy_metadata.rb +145 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summarize_results.rb +83 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summary.rb +91 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/summary_results.rb +140 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb +59 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/module_definition.rb +9 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/operations.rb +109 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_events.rb +1961 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb +140 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_metadata_operations.rb +316 -0
- data/lib/2019-10-01/generated/azure_mgmt_policy_insights/policy_states.rb +3233 -0
- data/lib/azure_mgmt_policy_insights.rb +4 -2
- data/lib/profiles/latest/modules/policyinsights_profile_module.rb +55 -13
- data/lib/version.rb +1 -1
- metadata +56 -5
@@ -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
|
+
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 '2019-10-01/generated/azure_mgmt_policy_insights/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::PolicyInsights::Mgmt::V2019_10_01
|
23
|
+
autoload :PolicyEvents, '2019-10-01/generated/azure_mgmt_policy_insights/policy_events.rb'
|
24
|
+
autoload :PolicyStates, '2019-10-01/generated/azure_mgmt_policy_insights/policy_states.rb'
|
25
|
+
autoload :Operations, '2019-10-01/generated/azure_mgmt_policy_insights/operations.rb'
|
26
|
+
autoload :PolicyMetadataOperations, '2019-10-01/generated/azure_mgmt_policy_insights/policy_metadata_operations.rb'
|
27
|
+
autoload :PolicyInsightsClient, '2019-10-01/generated/azure_mgmt_policy_insights/policy_insights_client.rb'
|
28
|
+
|
29
|
+
module Models
|
30
|
+
autoload :PolicyGroupSummary, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_group_summary.rb'
|
31
|
+
autoload :ComponentEventDetails, '2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb'
|
32
|
+
autoload :PolicyAssignmentSummary, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb'
|
33
|
+
autoload :PolicyEventsQueryResults, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_events_query_results.rb'
|
34
|
+
autoload :Summary, '2019-10-01/generated/azure_mgmt_policy_insights/models/summary.rb'
|
35
|
+
autoload :QueryFailure, '2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure.rb'
|
36
|
+
autoload :SummarizeResults, '2019-10-01/generated/azure_mgmt_policy_insights/models/summarize_results.rb'
|
37
|
+
autoload :IfNotExistsEvaluationDetails, '2019-10-01/generated/azure_mgmt_policy_insights/models/if_not_exists_evaluation_details.rb'
|
38
|
+
autoload :OperationDisplay, '2019-10-01/generated/azure_mgmt_policy_insights/models/operation_display.rb'
|
39
|
+
autoload :ComponentStateDetails, '2019-10-01/generated/azure_mgmt_policy_insights/models/component_state_details.rb'
|
40
|
+
autoload :Operation, '2019-10-01/generated/azure_mgmt_policy_insights/models/operation.rb'
|
41
|
+
autoload :PolicyStatesQueryResults, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb'
|
42
|
+
autoload :OperationsListResults, '2019-10-01/generated/azure_mgmt_policy_insights/models/operations_list_results.rb'
|
43
|
+
autoload :SummaryResults, '2019-10-01/generated/azure_mgmt_policy_insights/models/summary_results.rb'
|
44
|
+
autoload :PolicyMetadata, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata.rb'
|
45
|
+
autoload :PolicyEvent, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_event.rb'
|
46
|
+
autoload :SlimPolicyMetadata, '2019-10-01/generated/azure_mgmt_policy_insights/models/slim_policy_metadata.rb'
|
47
|
+
autoload :ExpressionEvaluationDetails, '2019-10-01/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb'
|
48
|
+
autoload :PolicyMetadataCollection, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_metadata_collection.rb'
|
49
|
+
autoload :PolicyState, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_state.rb'
|
50
|
+
autoload :TypedErrorInfo, '2019-10-01/generated/azure_mgmt_policy_insights/models/typed_error_info.rb'
|
51
|
+
autoload :PolicyDefinitionSummary, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb'
|
52
|
+
autoload :ErrorDefinition, '2019-10-01/generated/azure_mgmt_policy_insights/models/error_definition.rb'
|
53
|
+
autoload :PolicyEvaluationDetails, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_evaluation_details.rb'
|
54
|
+
autoload :ErrorResponse, '2019-10-01/generated/azure_mgmt_policy_insights/models/error_response.rb'
|
55
|
+
autoload :QueryFailureError, '2019-10-01/generated/azure_mgmt_policy_insights/models/query_failure_error.rb'
|
56
|
+
autoload :QueryOptions, '2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb'
|
57
|
+
autoload :ComplianceDetail, '2019-10-01/generated/azure_mgmt_policy_insights/models/compliance_detail.rb'
|
58
|
+
autoload :PolicyStatesResource, '2019-10-01/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb'
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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
|
+
# The compliance state rollup.
|
10
|
+
#
|
11
|
+
class ComplianceDetail
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The compliance state.
|
16
|
+
attr_accessor :compliance_state
|
17
|
+
|
18
|
+
# @return [Integer] Summarized count value for this compliance state.
|
19
|
+
attr_accessor :count
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ComplianceDetail 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
|
+
serialized_name: 'ComplianceDetail',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ComplianceDetail',
|
34
|
+
model_properties: {
|
35
|
+
compliance_state: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'complianceState',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
count: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'count',
|
47
|
+
type: {
|
48
|
+
name: 'Number'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,132 @@
|
|
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
|
+
# Component event details.
|
10
|
+
#
|
11
|
+
class ComponentEventDetails
|
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] Component Id.
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# @return [String] Component type.
|
23
|
+
attr_accessor :type
|
24
|
+
|
25
|
+
# @return [String] Component name.
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
# @return [DateTime] Timestamp for component policy event record.
|
29
|
+
attr_accessor :timestamp
|
30
|
+
|
31
|
+
# @return [String] Tenant ID for the policy event record.
|
32
|
+
attr_accessor :tenant_id
|
33
|
+
|
34
|
+
# @return [String] Principal object ID for the user who initiated the
|
35
|
+
# resource component operation that triggered the policy event.
|
36
|
+
attr_accessor :principal_oid
|
37
|
+
|
38
|
+
# @return [String] Policy definition action, i.e. effect.
|
39
|
+
attr_accessor :policy_definition_action
|
40
|
+
|
41
|
+
|
42
|
+
#
|
43
|
+
# Mapper for ComponentEventDetails class as Ruby Hash.
|
44
|
+
# This will be used for serialization/deserialization.
|
45
|
+
#
|
46
|
+
def self.mapper()
|
47
|
+
{
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'ComponentEventDetails',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'ComponentEventDetails',
|
54
|
+
model_properties: {
|
55
|
+
additional_properties: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
type: {
|
59
|
+
name: 'Dictionary',
|
60
|
+
value: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'ObjectElementType',
|
64
|
+
type: {
|
65
|
+
name: 'Object'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
id: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'id',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
type: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'type',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
name: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'name',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
timestamp: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'timestamp',
|
98
|
+
type: {
|
99
|
+
name: 'DateTime'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
tenant_id: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
serialized_name: 'tenantId',
|
106
|
+
type: {
|
107
|
+
name: 'String'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
principal_oid: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
serialized_name: 'principalOid',
|
114
|
+
type: {
|
115
|
+
name: 'String'
|
116
|
+
}
|
117
|
+
},
|
118
|
+
policy_definition_action: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
serialized_name: 'policyDefinitionAction',
|
122
|
+
type: {
|
123
|
+
name: 'String'
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,109 @@
|
|
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
|
+
# Component state details.
|
10
|
+
#
|
11
|
+
class ComponentStateDetails
|
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] Component Id.
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# @return [String] Component type.
|
23
|
+
attr_accessor :type
|
24
|
+
|
25
|
+
# @return [String] Component name.
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
# @return [DateTime] Component compliance evaluation timestamp.
|
29
|
+
attr_accessor :timestamp
|
30
|
+
|
31
|
+
# @return [String] Component compliance state.
|
32
|
+
attr_accessor :compliance_state
|
33
|
+
|
34
|
+
|
35
|
+
#
|
36
|
+
# Mapper for ComponentStateDetails 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: 'ComponentStateDetails',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'ComponentStateDetails',
|
47
|
+
model_properties: {
|
48
|
+
additional_properties: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
type: {
|
52
|
+
name: 'Dictionary',
|
53
|
+
value: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'ObjectElementType',
|
57
|
+
type: {
|
58
|
+
name: 'Object'
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
},
|
63
|
+
id: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'id',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
type: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'type',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
name: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'name',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
timestamp: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'timestamp',
|
91
|
+
type: {
|
92
|
+
name: 'DateTime'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
compliance_state: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
serialized_name: 'complianceState',
|
99
|
+
type: {
|
100
|
+
name: 'String'
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
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
|
+
# Error definition.
|
10
|
+
#
|
11
|
+
class ErrorDefinition
|
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
|
+
# @return [String] The target of the error.
|
23
|
+
attr_accessor :target
|
24
|
+
|
25
|
+
# @return [Array<ErrorDefinition>] Internal error details.
|
26
|
+
attr_accessor :details
|
27
|
+
|
28
|
+
# @return [Array<TypedErrorInfo>] Additional scenario specific error
|
29
|
+
# details.
|
30
|
+
attr_accessor :additional_info
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for ErrorDefinition class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'ErrorDefinition',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'ErrorDefinition',
|
45
|
+
model_properties: {
|
46
|
+
code: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'code',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
message: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'message',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
target: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'target',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
details: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
read_only: true,
|
77
|
+
serialized_name: 'details',
|
78
|
+
type: {
|
79
|
+
name: 'Sequence',
|
80
|
+
element: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'ErrorDefinitionElementType',
|
84
|
+
type: {
|
85
|
+
name: 'Composite',
|
86
|
+
class_name: 'ErrorDefinition'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
},
|
91
|
+
additional_info: {
|
92
|
+
client_side_validation: true,
|
93
|
+
required: false,
|
94
|
+
read_only: true,
|
95
|
+
serialized_name: 'additionalInfo',
|
96
|
+
type: {
|
97
|
+
name: 'Sequence',
|
98
|
+
element: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'TypedErrorInfoElementType',
|
102
|
+
type: {
|
103
|
+
name: 'Composite',
|
104
|
+
class_name: 'TypedErrorInfo'
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|