azure_mgmt_policy 0.17.4 → 0.17.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +10 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +10 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb +26 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb +26 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_assignments.rb +101 -84
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_definitions.rb +26 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_set_definitions.rb +26 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_assignments.rb +101 -84
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_definitions.rb +26 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_set_definitions.rb +26 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy.rb +42 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/error_response.rb +69 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/identity.rb +72 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment.rb +196 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy.rb +43 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/error_response.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/identity.rb +72 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment.rb +209 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy.rb +49 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_additional_info.rb +59 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_response.rb +113 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/identity.rb +73 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value.rb +91 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb +76 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_type.rb +21 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_values_value.rb +46 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment.rb +220 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb +164 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_group.rb +91 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +100 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +182 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_type.rb +18 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_assignments.rb +2179 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
- data/lib/azure_mgmt_policy.rb +6 -3
- data/lib/profiles/latest/modules/policy_profile_module.rb +32 -32
- data/lib/version.rb +1 -1
- metadata +67 -5
@@ -132,7 +132,7 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
132
132
|
#
|
133
133
|
def add_telemetry
|
134
134
|
sdk_information = 'azure_mgmt_policy'
|
135
|
-
sdk_information = "#{sdk_information}/0.17.
|
135
|
+
sdk_information = "#{sdk_information}/0.17.9"
|
136
136
|
add_user_agent_information(sdk_information)
|
137
137
|
end
|
138
138
|
end
|
@@ -116,6 +116,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
116
116
|
end
|
117
117
|
|
118
118
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
119
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
120
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
119
121
|
# Deserialize Response
|
120
122
|
if status_code == 201
|
121
123
|
begin
|
@@ -215,6 +217,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
215
217
|
end
|
216
218
|
|
217
219
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
220
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
221
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
218
222
|
|
219
223
|
result
|
220
224
|
end
|
@@ -305,6 +309,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
305
309
|
end
|
306
310
|
|
307
311
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
312
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
313
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
308
314
|
# Deserialize Response
|
309
315
|
if status_code == 200
|
310
316
|
begin
|
@@ -401,6 +407,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
401
407
|
end
|
402
408
|
|
403
409
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
410
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
411
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
404
412
|
# Deserialize Response
|
405
413
|
if status_code == 200
|
406
414
|
begin
|
@@ -515,6 +523,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
515
523
|
end
|
516
524
|
|
517
525
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
526
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
527
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
518
528
|
# Deserialize Response
|
519
529
|
if status_code == 201
|
520
530
|
begin
|
@@ -617,6 +627,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
617
627
|
end
|
618
628
|
|
619
629
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
630
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
631
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
620
632
|
|
621
633
|
result
|
622
634
|
end
|
@@ -710,6 +722,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
710
722
|
end
|
711
723
|
|
712
724
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
725
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
726
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
713
727
|
# Deserialize Response
|
714
728
|
if status_code == 200
|
715
729
|
begin
|
@@ -803,6 +817,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
803
817
|
end
|
804
818
|
|
805
819
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
820
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
821
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
806
822
|
# Deserialize Response
|
807
823
|
if status_code == 200
|
808
824
|
begin
|
@@ -891,6 +907,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
891
907
|
end
|
892
908
|
|
893
909
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
910
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
911
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
894
912
|
# Deserialize Response
|
895
913
|
if status_code == 200
|
896
914
|
begin
|
@@ -987,6 +1005,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
987
1005
|
end
|
988
1006
|
|
989
1007
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1008
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1009
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
990
1010
|
# Deserialize Response
|
991
1011
|
if status_code == 200
|
992
1012
|
begin
|
@@ -1084,6 +1104,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
1084
1104
|
end
|
1085
1105
|
|
1086
1106
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1107
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1108
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1087
1109
|
# Deserialize Response
|
1088
1110
|
if status_code == 200
|
1089
1111
|
begin
|
@@ -1178,6 +1200,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
1178
1200
|
end
|
1179
1201
|
|
1180
1202
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1203
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1204
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1181
1205
|
# Deserialize Response
|
1182
1206
|
if status_code == 200
|
1183
1207
|
begin
|
@@ -1275,6 +1299,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
1275
1299
|
end
|
1276
1300
|
|
1277
1301
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1302
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1303
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1278
1304
|
# Deserialize Response
|
1279
1305
|
if status_code == 200
|
1280
1306
|
begin
|
@@ -116,6 +116,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
116
116
|
end
|
117
117
|
|
118
118
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
119
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
120
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
119
121
|
# Deserialize Response
|
120
122
|
if status_code == 201
|
121
123
|
begin
|
@@ -225,6 +227,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
225
227
|
end
|
226
228
|
|
227
229
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
230
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
231
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
228
232
|
|
229
233
|
result
|
230
234
|
end
|
@@ -315,6 +319,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
315
319
|
end
|
316
320
|
|
317
321
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
322
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
323
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
318
324
|
# Deserialize Response
|
319
325
|
if status_code == 200
|
320
326
|
begin
|
@@ -414,6 +420,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
414
420
|
end
|
415
421
|
|
416
422
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
423
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
424
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
417
425
|
# Deserialize Response
|
418
426
|
if status_code == 200
|
419
427
|
begin
|
@@ -507,6 +515,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
507
515
|
end
|
508
516
|
|
509
517
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
518
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
519
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
510
520
|
# Deserialize Response
|
511
521
|
if status_code == 200
|
512
522
|
begin
|
@@ -595,6 +605,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
595
605
|
end
|
596
606
|
|
597
607
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
608
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
609
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
598
610
|
# Deserialize Response
|
599
611
|
if status_code == 200
|
600
612
|
begin
|
@@ -709,6 +721,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
709
721
|
end
|
710
722
|
|
711
723
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
724
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
725
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
712
726
|
# Deserialize Response
|
713
727
|
if status_code == 201
|
714
728
|
begin
|
@@ -821,6 +835,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
821
835
|
end
|
822
836
|
|
823
837
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
838
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
839
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
824
840
|
|
825
841
|
result
|
826
842
|
end
|
@@ -914,6 +930,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
914
930
|
end
|
915
931
|
|
916
932
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
933
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
934
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
917
935
|
# Deserialize Response
|
918
936
|
if status_code == 200
|
919
937
|
begin
|
@@ -1010,6 +1028,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
1010
1028
|
end
|
1011
1029
|
|
1012
1030
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1031
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1032
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1013
1033
|
# Deserialize Response
|
1014
1034
|
if status_code == 200
|
1015
1035
|
begin
|
@@ -1107,6 +1127,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
1107
1127
|
end
|
1108
1128
|
|
1109
1129
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1130
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1131
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1110
1132
|
# Deserialize Response
|
1111
1133
|
if status_code == 200
|
1112
1134
|
begin
|
@@ -1201,6 +1223,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
1201
1223
|
end
|
1202
1224
|
|
1203
1225
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1226
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1227
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1204
1228
|
# Deserialize Response
|
1205
1229
|
if status_code == 200
|
1206
1230
|
begin
|
@@ -1298,6 +1322,8 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
1298
1322
|
end
|
1299
1323
|
|
1300
1324
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1325
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1326
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1301
1327
|
# Deserialize Response
|
1302
1328
|
if status_code == 200
|
1303
1329
|
begin
|
@@ -0,0 +1,42 @@
|
|
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-01-01/generated/azure_mgmt_policy/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Policy::Mgmt::V2019_01_01
|
23
|
+
autoload :PolicyAssignments, '2019-01-01/generated/azure_mgmt_policy/policy_assignments.rb'
|
24
|
+
autoload :PolicyDefinitions, '2019-01-01/generated/azure_mgmt_policy/policy_definitions.rb'
|
25
|
+
autoload :PolicySetDefinitions, '2019-01-01/generated/azure_mgmt_policy/policy_set_definitions.rb'
|
26
|
+
autoload :PolicyClient, '2019-01-01/generated/azure_mgmt_policy/policy_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :PolicyDefinition, '2019-01-01/generated/azure_mgmt_policy/models/policy_definition.rb'
|
30
|
+
autoload :PolicySku, '2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb'
|
31
|
+
autoload :PolicyDefinitionListResult, '2019-01-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb'
|
32
|
+
autoload :PolicyAssignment, '2019-01-01/generated/azure_mgmt_policy/models/policy_assignment.rb'
|
33
|
+
autoload :PolicyDefinitionReference, '2019-01-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb'
|
34
|
+
autoload :ErrorResponse, '2019-01-01/generated/azure_mgmt_policy/models/error_response.rb'
|
35
|
+
autoload :PolicySetDefinition, '2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition.rb'
|
36
|
+
autoload :PolicyAssignmentListResult, '2019-01-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb'
|
37
|
+
autoload :PolicySetDefinitionListResult, '2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb'
|
38
|
+
autoload :Identity, '2019-01-01/generated/azure_mgmt_policy/models/identity.rb'
|
39
|
+
autoload :ResourceIdentityType, '2019-01-01/generated/azure_mgmt_policy/models/resource_identity_type.rb'
|
40
|
+
autoload :PolicyType, '2019-01-01/generated/azure_mgmt_policy/models/policy_type.rb'
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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::Policy::Mgmt::V2019_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Error response indicates Azure Resource Manager is not able to process
|
10
|
+
# the incoming request. The reason is provided in the error message.
|
11
|
+
#
|
12
|
+
class ErrorResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Http status code.
|
17
|
+
attr_accessor :http_status
|
18
|
+
|
19
|
+
# @return [String] Error code.
|
20
|
+
attr_accessor :error_code
|
21
|
+
|
22
|
+
# @return [String] Error message indicating why the operation failed.
|
23
|
+
attr_accessor :error_message
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'ErrorResponse',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'ErrorResponse',
|
38
|
+
model_properties: {
|
39
|
+
http_status: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'httpStatus',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
error_code: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'errorCode',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
error_message: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'errorMessage',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
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::Policy::Mgmt::V2019_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Identity for the resource.
|
10
|
+
#
|
11
|
+
class Identity
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The principal ID of the resource identity.
|
16
|
+
attr_accessor :principal_id
|
17
|
+
|
18
|
+
# @return [String] The tenant ID of the resource identity.
|
19
|
+
attr_accessor :tenant_id
|
20
|
+
|
21
|
+
# @return [ResourceIdentityType] The identity type. Possible values
|
22
|
+
# include: 'SystemAssigned', 'None'
|
23
|
+
attr_accessor :type
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for Identity class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Identity',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'Identity',
|
38
|
+
model_properties: {
|
39
|
+
principal_id: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'principalId',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
tenant_id: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'tenantId',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
type: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'type',
|
61
|
+
type: {
|
62
|
+
name: 'Enum',
|
63
|
+
module: 'ResourceIdentityType'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,196 @@
|
|
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::Policy::Mgmt::V2019_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The policy assignment.
|
10
|
+
#
|
11
|
+
class PolicyAssignment
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The display name of the policy assignment.
|
16
|
+
attr_accessor :display_name
|
17
|
+
|
18
|
+
# @return [String] The ID of the policy definition or policy set
|
19
|
+
# definition being assigned.
|
20
|
+
attr_accessor :policy_definition_id
|
21
|
+
|
22
|
+
# @return [String] The scope for the policy assignment.
|
23
|
+
attr_accessor :scope
|
24
|
+
|
25
|
+
# @return [Array<String>] The policy's excluded scopes.
|
26
|
+
attr_accessor :not_scopes
|
27
|
+
|
28
|
+
# @return Required if a parameter is used in policy rule.
|
29
|
+
attr_accessor :parameters
|
30
|
+
|
31
|
+
# @return [String] This message will be part of response in case of
|
32
|
+
# policy violation.
|
33
|
+
attr_accessor :description
|
34
|
+
|
35
|
+
# @return The policy assignment metadata.
|
36
|
+
attr_accessor :metadata
|
37
|
+
|
38
|
+
# @return [String] The ID of the policy assignment.
|
39
|
+
attr_accessor :id
|
40
|
+
|
41
|
+
# @return [String] The type of the policy assignment.
|
42
|
+
attr_accessor :type
|
43
|
+
|
44
|
+
# @return [String] The name of the policy assignment.
|
45
|
+
attr_accessor :name
|
46
|
+
|
47
|
+
# @return [PolicySku] The policy sku. This property is optional,
|
48
|
+
# obsolete, and will be ignored.
|
49
|
+
attr_accessor :sku
|
50
|
+
|
51
|
+
# @return [String] The location of the policy assignment. Only required
|
52
|
+
# when utilizing managed identity.
|
53
|
+
attr_accessor :location
|
54
|
+
|
55
|
+
# @return [Identity] The managed identity associated with the policy
|
56
|
+
# assignment.
|
57
|
+
attr_accessor :identity
|
58
|
+
|
59
|
+
|
60
|
+
#
|
61
|
+
# Mapper for PolicyAssignment class as Ruby Hash.
|
62
|
+
# This will be used for serialization/deserialization.
|
63
|
+
#
|
64
|
+
def self.mapper()
|
65
|
+
{
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'PolicyAssignment',
|
69
|
+
type: {
|
70
|
+
name: 'Composite',
|
71
|
+
class_name: 'PolicyAssignment',
|
72
|
+
model_properties: {
|
73
|
+
display_name: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'properties.displayName',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
policy_definition_id: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'properties.policyDefinitionId',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
},
|
89
|
+
scope: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
serialized_name: 'properties.scope',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
not_scopes: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'properties.notScopes',
|
101
|
+
type: {
|
102
|
+
name: 'Sequence',
|
103
|
+
element: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'StringElementType',
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
parameters: {
|
114
|
+
client_side_validation: true,
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'properties.parameters',
|
117
|
+
type: {
|
118
|
+
name: 'Object'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
description: {
|
122
|
+
client_side_validation: true,
|
123
|
+
required: false,
|
124
|
+
serialized_name: 'properties.description',
|
125
|
+
type: {
|
126
|
+
name: 'String'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
metadata: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: false,
|
132
|
+
serialized_name: 'properties.metadata',
|
133
|
+
type: {
|
134
|
+
name: 'Object'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
id: {
|
138
|
+
client_side_validation: true,
|
139
|
+
required: false,
|
140
|
+
read_only: true,
|
141
|
+
serialized_name: 'id',
|
142
|
+
type: {
|
143
|
+
name: 'String'
|
144
|
+
}
|
145
|
+
},
|
146
|
+
type: {
|
147
|
+
client_side_validation: true,
|
148
|
+
required: false,
|
149
|
+
read_only: true,
|
150
|
+
serialized_name: 'type',
|
151
|
+
type: {
|
152
|
+
name: 'String'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
name: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
read_only: true,
|
159
|
+
serialized_name: 'name',
|
160
|
+
type: {
|
161
|
+
name: 'String'
|
162
|
+
}
|
163
|
+
},
|
164
|
+
sku: {
|
165
|
+
client_side_validation: true,
|
166
|
+
required: false,
|
167
|
+
serialized_name: 'sku',
|
168
|
+
type: {
|
169
|
+
name: 'Composite',
|
170
|
+
class_name: 'PolicySku'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
location: {
|
174
|
+
client_side_validation: true,
|
175
|
+
required: false,
|
176
|
+
serialized_name: 'location',
|
177
|
+
type: {
|
178
|
+
name: 'String'
|
179
|
+
}
|
180
|
+
},
|
181
|
+
identity: {
|
182
|
+
client_side_validation: true,
|
183
|
+
required: false,
|
184
|
+
serialized_name: 'identity',
|
185
|
+
type: {
|
186
|
+
name: 'Composite',
|
187
|
+
class_name: 'Identity'
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|