azure_mgmt_policy_insights 0.17.2 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2017-08-09-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2017-10-17-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_insights_client.rb +1 -1
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights.rb +27 -11
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/expression_evaluation_details.rb +103 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/if_not_exists_evaluation_details.rb +59 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/operation.rb +59 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/operation_display.rb +79 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/operations_list_results.rb +70 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_assignment_summary.rb +91 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_definition_summary.rb +81 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_evaluation_details.rb +69 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_state.rb +384 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_query_results.rb +82 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb +16 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/query_options.rb +69 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/summarize_results.rb +83 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/summary.rb +92 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/summary_results.rb +76 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/operations.rb +107 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_insights_client.rb +9 -1
- data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/policy_states.rb +2093 -0
- data/lib/profiles/latest/modules/policyinsights_profile_module.rb +91 -79
- data/lib/version.rb +1 -1
- metadata +18 -2
@@ -0,0 +1,82 @@
|
|
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
|
+
# Query results.
|
10
|
+
#
|
11
|
+
class PolicyStatesQueryResults
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] OData context string; used by OData clients to resolve
|
16
|
+
# type information based on metadata.
|
17
|
+
attr_accessor :odatacontext
|
18
|
+
|
19
|
+
# @return [Integer] OData entity count; represents the number of policy
|
20
|
+
# state records returned.
|
21
|
+
attr_accessor :odatacount
|
22
|
+
|
23
|
+
# @return [Array<PolicyState>] Query results.
|
24
|
+
attr_accessor :value
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for PolicyStatesQueryResults class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'PolicyStatesQueryResults',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'PolicyStatesQueryResults',
|
39
|
+
model_properties: {
|
40
|
+
odatacontext: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: '@odata\\.context',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
odatacount: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: '@odata\\.count',
|
52
|
+
constraints: {
|
53
|
+
InclusiveMinimum: 0
|
54
|
+
},
|
55
|
+
type: {
|
56
|
+
name: 'Number'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
value: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'value',
|
63
|
+
type: {
|
64
|
+
name: 'Sequence',
|
65
|
+
element: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'PolicyStateElementType',
|
69
|
+
type: {
|
70
|
+
name: 'Composite',
|
71
|
+
class_name: 'PolicyState'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
data/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_states_resource.rb
ADDED
@@ -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::V2018_07_01_preview
|
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
|
@@ -18,6 +18,33 @@ module Azure::PolicyInsights::Mgmt::V2018_07_01_preview
|
|
18
18
|
# @return [String] OData filter expression.
|
19
19
|
attr_accessor :filter
|
20
20
|
|
21
|
+
# @return [String] Ordering expression using OData notation. One or more
|
22
|
+
# comma-separated column names with an optional "desc" (the default) or
|
23
|
+
# "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
|
24
|
+
attr_accessor :order_by
|
25
|
+
|
26
|
+
# @return [String] Select expression using OData notation. Limits the
|
27
|
+
# columns on each record to just those requested, e.g.
|
28
|
+
# "$select=PolicyAssignmentId, ResourceId".
|
29
|
+
attr_accessor :select
|
30
|
+
|
31
|
+
# @return [DateTime] ISO 8601 formatted timestamp specifying the start
|
32
|
+
# time of the interval to query. When not specified, the service uses
|
33
|
+
# ($to - 1-day).
|
34
|
+
attr_accessor :from
|
35
|
+
|
36
|
+
# @return [DateTime] ISO 8601 formatted timestamp specifying the end time
|
37
|
+
# of the interval to query. When not specified, the service uses request
|
38
|
+
# time.
|
39
|
+
attr_accessor :to
|
40
|
+
|
41
|
+
# @return [String] OData apply expression for aggregations.
|
42
|
+
attr_accessor :apply
|
43
|
+
|
44
|
+
# @return [String] The $expand query parameter. For example, to expand
|
45
|
+
# policyEvaluationDetails, use $expand=policyEvaluationDetails
|
46
|
+
attr_accessor :expand
|
47
|
+
|
21
48
|
|
22
49
|
#
|
23
50
|
# Mapper for QueryOptions class as Ruby Hash.
|
@@ -44,6 +71,48 @@ module Azure::PolicyInsights::Mgmt::V2018_07_01_preview
|
|
44
71
|
type: {
|
45
72
|
name: 'String'
|
46
73
|
}
|
74
|
+
},
|
75
|
+
order_by: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
select: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
},
|
89
|
+
from: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
type: {
|
93
|
+
name: 'DateTime'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
to: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
type: {
|
100
|
+
name: 'DateTime'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
apply: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
type: {
|
107
|
+
name: 'String'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
expand: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
type: {
|
114
|
+
name: 'String'
|
115
|
+
}
|
47
116
|
}
|
48
117
|
}
|
49
118
|
}
|
@@ -0,0 +1,83 @@
|
|
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
|
+
# Summarize action results.
|
10
|
+
#
|
11
|
+
class SummarizeResults
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] OData context string; used by OData clients to resolve
|
16
|
+
# type information based on metadata.
|
17
|
+
attr_accessor :odatacontext
|
18
|
+
|
19
|
+
# @return [Integer] OData entity count; represents the number of
|
20
|
+
# summaries returned; always set to 1.
|
21
|
+
attr_accessor :odatacount
|
22
|
+
|
23
|
+
# @return [Array<Summary>] Summarize action results.
|
24
|
+
attr_accessor :value
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for SummarizeResults class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'SummarizeResults',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'SummarizeResults',
|
39
|
+
model_properties: {
|
40
|
+
odatacontext: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: '@odata\\.context',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
odatacount: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: '@odata\\.count',
|
52
|
+
constraints: {
|
53
|
+
InclusiveMaximum: 1,
|
54
|
+
InclusiveMinimum: 1
|
55
|
+
},
|
56
|
+
type: {
|
57
|
+
name: 'Number'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
value: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'value',
|
64
|
+
type: {
|
65
|
+
name: 'Sequence',
|
66
|
+
element: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'SummaryElementType',
|
70
|
+
type: {
|
71
|
+
name: 'Composite',
|
72
|
+
class_name: 'Summary'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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
|
+
# Summary results.
|
10
|
+
#
|
11
|
+
class Summary
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] OData entity ID; always set to null since summaries do
|
16
|
+
# not have an entity ID.
|
17
|
+
attr_accessor :odataid
|
18
|
+
|
19
|
+
# @return [String] OData context string; used by OData clients to resolve
|
20
|
+
# type information based on metadata.
|
21
|
+
attr_accessor :odatacontext
|
22
|
+
|
23
|
+
# @return [SummaryResults] Non-compliance summary for all policy
|
24
|
+
# assignments.
|
25
|
+
attr_accessor :results
|
26
|
+
|
27
|
+
# @return [Array<PolicyAssignmentSummary>] Policy assignments summary.
|
28
|
+
attr_accessor :policy_assignments
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for Summary class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'Summary',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'Summary',
|
43
|
+
model_properties: {
|
44
|
+
odataid: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: '@odata\\.id',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
odatacontext: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: '@odata\\.context',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
results: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'results',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'SummaryResults'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
policy_assignments: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'policyAssignments',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'PolicyAssignmentSummaryElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'PolicyAssignmentSummary'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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
|
+
# Non-compliance summary on a particular summary level.
|
10
|
+
#
|
11
|
+
class SummaryResults
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] HTTP POST URI for queryResults action on
|
16
|
+
# Microsoft.PolicyInsights to retrieve raw results for the non-compliance
|
17
|
+
# summary.
|
18
|
+
attr_accessor :query_results_uri
|
19
|
+
|
20
|
+
# @return [Integer] Number of non-compliant resources.
|
21
|
+
attr_accessor :non_compliant_resources
|
22
|
+
|
23
|
+
# @return [Integer] Number of non-compliant policies.
|
24
|
+
attr_accessor :non_compliant_policies
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for SummaryResults class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'SummaryResults',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'SummaryResults',
|
39
|
+
model_properties: {
|
40
|
+
query_results_uri: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'queryResultsUri',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
non_compliant_resources: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'nonCompliantResources',
|
52
|
+
constraints: {
|
53
|
+
InclusiveMinimum: 0
|
54
|
+
},
|
55
|
+
type: {
|
56
|
+
name: 'Number'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
non_compliant_policies: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'nonCompliantPolicies',
|
63
|
+
constraints: {
|
64
|
+
InclusiveMinimum: 0
|
65
|
+
},
|
66
|
+
type: {
|
67
|
+
name: 'Number'
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,107 @@
|
|
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
|
+
#
|
8
|
+
# Operations
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [PolicyInsightsClient] reference to the PolicyInsightsClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists available operations.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [OperationsListResults] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
response = list_async(custom_headers:custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Lists available operations.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Lists available operations.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers:nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
|
60
|
+
|
61
|
+
request_headers = {}
|
62
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
63
|
+
|
64
|
+
# Set Headers
|
65
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
66
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
67
|
+
path_template = 'providers/Microsoft.PolicyInsights/operations'
|
68
|
+
|
69
|
+
request_url = @base_url || @client.base_url
|
70
|
+
|
71
|
+
options = {
|
72
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
73
|
+
query_params: {'api-version' => @client.api_version},
|
74
|
+
headers: request_headers.merge(custom_headers || {}),
|
75
|
+
base_url: request_url
|
76
|
+
}
|
77
|
+
promise = @client.make_request_async(:get, path_template, options)
|
78
|
+
|
79
|
+
promise = promise.then do |result|
|
80
|
+
http_response = result.response
|
81
|
+
status_code = http_response.status
|
82
|
+
response_content = http_response.body
|
83
|
+
unless status_code == 200
|
84
|
+
error_model = JSON.load(response_content)
|
85
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
86
|
+
end
|
87
|
+
|
88
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
89
|
+
# Deserialize Response
|
90
|
+
if status_code == 200
|
91
|
+
begin
|
92
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
93
|
+
result_mapper = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationsListResults.mapper()
|
94
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
95
|
+
rescue Exception => e
|
96
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
result
|
101
|
+
end
|
102
|
+
|
103
|
+
promise.execute
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
end
|