azure_mgmt_policy 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_policy.rb +1 -1
- data/lib/generated/azure_mgmt_policy/models/policy_assignment.rb +2 -1
- data/lib/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_policy/models/policy_definition.rb +2 -1
- data/lib/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_policy/models/policy_type.rb +1 -1
- data/lib/generated/azure_mgmt_policy/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_policy/policy_assignments.rb +38 -39
- data/lib/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/generated/azure_mgmt_policy/policy_definitions.rb +15 -16
- data/lib/generated/azure_mgmt_policy/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a94dea9b99c1f36cd8f41e2ceb10f36e57d36e7
|
4
|
+
data.tar.gz: 6d2a53b7335b0b6fe81bcb8f591a5f853af2c421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad6998537e9408be4f3ee907b6c707424ebee65deea929b1156a622e1e2d2a84b5ac308360c50f3b8bed652842c1c9ab55f370cabded50db967534cc71296f48
|
7
|
+
data.tar.gz: 40d1b2f948f629cc05e9bb60e7ebbd2aee020ed6c90ec2bd255ecbfcf03961da1157f7e64f8b754d4fd68e611ec4467d066383ad5651358feb449dd249ebf39d
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Policy
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The display name of the policy assignment.
|
16
17
|
attr_accessor :display_name
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Policy
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<PolicyAssignment>] An array of policy assignments.
|
16
17
|
attr_accessor :value
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Policy
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [PolicyType] The type of policy definition. Possible values are
|
16
17
|
# NotSpecified, BuiltIn, and Custom. Possible values include:
|
17
18
|
# 'NotSpecified', 'BuiltIn', 'Custom'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Policy
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<PolicyDefinition>] An array of policy definitions.
|
16
17
|
attr_accessor :value
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -9,7 +9,6 @@ module Azure::ARM::Policy
|
|
9
9
|
# policies and assign them at a scope.
|
10
10
|
#
|
11
11
|
class PolicyAssignments
|
12
|
-
include Azure::ARM::Policy::Models
|
13
12
|
include MsRestAzure
|
14
13
|
|
15
14
|
#
|
@@ -76,7 +75,7 @@ module Azure::ARM::Policy
|
|
76
75
|
# Set Headers
|
77
76
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
78
77
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
79
|
-
path_template = '
|
78
|
+
path_template = '{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'
|
80
79
|
|
81
80
|
request_url = @base_url || @client.base_url
|
82
81
|
|
@@ -104,8 +103,8 @@ module Azure::ARM::Policy
|
|
104
103
|
if status_code == 200
|
105
104
|
begin
|
106
105
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
107
|
-
result_mapper = PolicyAssignment.mapper()
|
108
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
106
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
107
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
109
108
|
rescue Exception => e
|
110
109
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
111
110
|
end
|
@@ -187,11 +186,11 @@ module Azure::ARM::Policy
|
|
187
186
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
188
187
|
|
189
188
|
# Serialize Request
|
190
|
-
request_mapper = PolicyAssignment.mapper()
|
191
|
-
request_content = @client.serialize(request_mapper, parameters
|
189
|
+
request_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
190
|
+
request_content = @client.serialize(request_mapper, parameters)
|
192
191
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
193
192
|
|
194
|
-
path_template = '
|
193
|
+
path_template = '{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'
|
195
194
|
|
196
195
|
request_url = @base_url || @client.base_url
|
197
196
|
|
@@ -220,8 +219,8 @@ module Azure::ARM::Policy
|
|
220
219
|
if status_code == 201
|
221
220
|
begin
|
222
221
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
223
|
-
result_mapper = PolicyAssignment.mapper()
|
224
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
222
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
223
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
225
224
|
rescue Exception => e
|
226
225
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
227
226
|
end
|
@@ -286,7 +285,7 @@ module Azure::ARM::Policy
|
|
286
285
|
# Set Headers
|
287
286
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
288
287
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
289
|
-
path_template = '
|
288
|
+
path_template = '{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'
|
290
289
|
|
291
290
|
request_url = @base_url || @client.base_url
|
292
291
|
|
@@ -314,8 +313,8 @@ module Azure::ARM::Policy
|
|
314
313
|
if status_code == 200
|
315
314
|
begin
|
316
315
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
317
|
-
result_mapper = PolicyAssignment.mapper()
|
318
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
316
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
317
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
319
318
|
rescue Exception => e
|
320
319
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
321
320
|
end
|
@@ -380,7 +379,7 @@ module Azure::ARM::Policy
|
|
380
379
|
# Set Headers
|
381
380
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
382
381
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
383
|
-
path_template = '
|
382
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'
|
384
383
|
|
385
384
|
request_url = @base_url || @client.base_url
|
386
385
|
|
@@ -408,8 +407,8 @@ module Azure::ARM::Policy
|
|
408
407
|
if status_code == 200
|
409
408
|
begin
|
410
409
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
411
|
-
result_mapper = PolicyAssignmentListResult.mapper()
|
412
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
410
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignmentListResult.mapper()
|
411
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
413
412
|
rescue Exception => e
|
414
413
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
415
414
|
end
|
@@ -496,7 +495,7 @@ module Azure::ARM::Policy
|
|
496
495
|
# Set Headers
|
497
496
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
498
497
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
499
|
-
path_template = '
|
498
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments'
|
500
499
|
|
501
500
|
request_url = @base_url || @client.base_url
|
502
501
|
|
@@ -524,8 +523,8 @@ module Azure::ARM::Policy
|
|
524
523
|
if status_code == 200
|
525
524
|
begin
|
526
525
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
527
|
-
result_mapper = PolicyAssignmentListResult.mapper()
|
528
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
526
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignmentListResult.mapper()
|
527
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
529
528
|
rescue Exception => e
|
530
529
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
531
530
|
end
|
@@ -583,7 +582,7 @@ module Azure::ARM::Policy
|
|
583
582
|
# Set Headers
|
584
583
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
585
584
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
586
|
-
path_template = '
|
585
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments'
|
587
586
|
|
588
587
|
request_url = @base_url || @client.base_url
|
589
588
|
|
@@ -610,8 +609,8 @@ module Azure::ARM::Policy
|
|
610
609
|
if status_code == 200
|
611
610
|
begin
|
612
611
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
613
|
-
result_mapper = PolicyAssignmentListResult.mapper()
|
614
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
612
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignmentListResult.mapper()
|
613
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
615
614
|
rescue Exception => e
|
616
615
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
617
616
|
end
|
@@ -696,7 +695,7 @@ module Azure::ARM::Policy
|
|
696
695
|
# Set Headers
|
697
696
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
698
697
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
699
|
-
path_template = '
|
698
|
+
path_template = '{policyAssignmentId}'
|
700
699
|
|
701
700
|
request_url = @base_url || @client.base_url
|
702
701
|
|
@@ -723,8 +722,8 @@ module Azure::ARM::Policy
|
|
723
722
|
if status_code == 200
|
724
723
|
begin
|
725
724
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
726
|
-
result_mapper = PolicyAssignment.mapper()
|
727
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
725
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
726
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
728
727
|
rescue Exception => e
|
729
728
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
730
729
|
end
|
@@ -823,11 +822,11 @@ module Azure::ARM::Policy
|
|
823
822
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
824
823
|
|
825
824
|
# Serialize Request
|
826
|
-
request_mapper = PolicyAssignment.mapper()
|
827
|
-
request_content = @client.serialize(request_mapper, parameters
|
825
|
+
request_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
826
|
+
request_content = @client.serialize(request_mapper, parameters)
|
828
827
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
829
828
|
|
830
|
-
path_template = '
|
829
|
+
path_template = '{policyAssignmentId}'
|
831
830
|
|
832
831
|
request_url = @base_url || @client.base_url
|
833
832
|
|
@@ -855,8 +854,8 @@ module Azure::ARM::Policy
|
|
855
854
|
if status_code == 201
|
856
855
|
begin
|
857
856
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
858
|
-
result_mapper = PolicyAssignment.mapper()
|
859
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
857
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
858
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
860
859
|
rescue Exception => e
|
861
860
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
862
861
|
end
|
@@ -941,7 +940,7 @@ module Azure::ARM::Policy
|
|
941
940
|
# Set Headers
|
942
941
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
943
942
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
944
|
-
path_template = '
|
943
|
+
path_template = '{policyAssignmentId}'
|
945
944
|
|
946
945
|
request_url = @base_url || @client.base_url
|
947
946
|
|
@@ -968,8 +967,8 @@ module Azure::ARM::Policy
|
|
968
967
|
if status_code == 200
|
969
968
|
begin
|
970
969
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
971
|
-
result_mapper = PolicyAssignment.mapper()
|
972
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
970
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignment.mapper()
|
971
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
973
972
|
rescue Exception => e
|
974
973
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
975
974
|
end
|
@@ -1055,8 +1054,8 @@ module Azure::ARM::Policy
|
|
1055
1054
|
if status_code == 200
|
1056
1055
|
begin
|
1057
1056
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1058
|
-
result_mapper = PolicyAssignmentListResult.mapper()
|
1059
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1057
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignmentListResult.mapper()
|
1058
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1060
1059
|
rescue Exception => e
|
1061
1060
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1062
1061
|
end
|
@@ -1142,8 +1141,8 @@ module Azure::ARM::Policy
|
|
1142
1141
|
if status_code == 200
|
1143
1142
|
begin
|
1144
1143
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1145
|
-
result_mapper = PolicyAssignmentListResult.mapper()
|
1146
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1144
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignmentListResult.mapper()
|
1145
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1147
1146
|
rescue Exception => e
|
1148
1147
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1149
1148
|
end
|
@@ -1229,8 +1228,8 @@ module Azure::ARM::Policy
|
|
1229
1228
|
if status_code == 200
|
1230
1229
|
begin
|
1231
1230
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1232
|
-
result_mapper = PolicyAssignmentListResult.mapper()
|
1233
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1231
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyAssignmentListResult.mapper()
|
1232
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1234
1233
|
rescue Exception => e
|
1235
1234
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1236
1235
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -9,7 +9,6 @@ module Azure::ARM::Policy
|
|
9
9
|
# policies and assign them at a scope.
|
10
10
|
#
|
11
11
|
class PolicyDefinitions
|
12
|
-
include Azure::ARM::Policy::Models
|
13
12
|
include MsRestAzure
|
14
13
|
|
15
14
|
#
|
@@ -81,11 +80,11 @@ module Azure::ARM::Policy
|
|
81
80
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
82
81
|
|
83
82
|
# Serialize Request
|
84
|
-
request_mapper = PolicyDefinition.mapper()
|
85
|
-
request_content = @client.serialize(request_mapper, parameters
|
83
|
+
request_mapper = Azure::ARM::Policy::Models::PolicyDefinition.mapper()
|
84
|
+
request_content = @client.serialize(request_mapper, parameters)
|
86
85
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
87
86
|
|
88
|
-
path_template = '
|
87
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'
|
89
88
|
|
90
89
|
request_url = @base_url || @client.base_url
|
91
90
|
|
@@ -113,8 +112,8 @@ module Azure::ARM::Policy
|
|
113
112
|
if status_code == 201
|
114
113
|
begin
|
115
114
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
-
result_mapper = PolicyDefinition.mapper()
|
117
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
115
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyDefinition.mapper()
|
116
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
118
117
|
rescue Exception => e
|
119
118
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
120
119
|
end
|
@@ -175,7 +174,7 @@ module Azure::ARM::Policy
|
|
175
174
|
# Set Headers
|
176
175
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
177
176
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
178
|
-
path_template = '
|
177
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'
|
179
178
|
|
180
179
|
request_url = @base_url || @client.base_url
|
181
180
|
|
@@ -255,7 +254,7 @@ module Azure::ARM::Policy
|
|
255
254
|
# Set Headers
|
256
255
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
257
256
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
258
|
-
path_template = '
|
257
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'
|
259
258
|
|
260
259
|
request_url = @base_url || @client.base_url
|
261
260
|
|
@@ -282,8 +281,8 @@ module Azure::ARM::Policy
|
|
282
281
|
if status_code == 200
|
283
282
|
begin
|
284
283
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
285
|
-
result_mapper = PolicyDefinition.mapper()
|
286
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
284
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyDefinition.mapper()
|
285
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
287
286
|
rescue Exception => e
|
288
287
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
289
288
|
end
|
@@ -341,7 +340,7 @@ module Azure::ARM::Policy
|
|
341
340
|
# Set Headers
|
342
341
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
343
342
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
344
|
-
path_template = '
|
343
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions'
|
345
344
|
|
346
345
|
request_url = @base_url || @client.base_url
|
347
346
|
|
@@ -368,8 +367,8 @@ module Azure::ARM::Policy
|
|
368
367
|
if status_code == 200
|
369
368
|
begin
|
370
369
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
371
|
-
result_mapper = PolicyDefinitionListResult.mapper()
|
372
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
370
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyDefinitionListResult.mapper()
|
371
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
373
372
|
rescue Exception => e
|
374
373
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
375
374
|
end
|
@@ -455,8 +454,8 @@ module Azure::ARM::Policy
|
|
455
454
|
if status_code == 200
|
456
455
|
begin
|
457
456
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
458
|
-
result_mapper = PolicyDefinitionListResult.mapper()
|
459
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
457
|
+
result_mapper = Azure::ARM::Policy::Models::PolicyDefinitionListResult.mapper()
|
458
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
460
459
|
rescue Exception => e
|
461
460
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
462
461
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Policy
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.11.0'
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.8.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.8.0
|
83
83
|
description: Microsoft Azure Resource Policy Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|