azure_mgmt_policy 0.15.2 → 0.16.0
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 +81 -73
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +4 -1
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +33 -30
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +81 -73
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb +4 -1
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +33 -30
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +81 -73
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +4 -1
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb +87 -78
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +81 -73
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +4 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb +87 -78
- data/lib/profiles/latest/modules/policy_profile_module.rb +68 -46
- data/lib/profiles/latest/policy_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/policy_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/modules/policy_profile_module.rb +43 -24
- data/lib/profiles/v2017_03_09/policy_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/policy_v2017_03_09_profile_client.rb +28 -9
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -108,6 +108,9 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
108
108
|
fail ArgumentError, 'path is nil' if path.nil?
|
109
109
|
|
110
110
|
request_url = options[:base_url] || @base_url
|
111
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
112
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
113
|
+
end
|
111
114
|
|
112
115
|
request_headers = @request_headers
|
113
116
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -124,7 +127,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
124
127
|
#
|
125
128
|
def add_telemetry
|
126
129
|
sdk_information = 'azure_mgmt_policy'
|
127
|
-
sdk_information = "#{sdk_information}/0.
|
130
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
128
131
|
add_user_agent_information(sdk_information)
|
129
132
|
end
|
130
133
|
end
|
@@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
33
33
|
#
|
34
34
|
# @return [PolicySetDefinition] operation results.
|
35
35
|
#
|
36
|
-
def create_or_update(policy_set_definition_name, parameters, custom_headers
|
37
|
-
response = create_or_update_async(policy_set_definition_name, parameters, custom_headers).value!
|
36
|
+
def create_or_update(policy_set_definition_name, parameters, custom_headers:nil)
|
37
|
+
response = create_or_update_async(policy_set_definition_name, parameters, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
39
39
|
end
|
40
40
|
|
@@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
49
49
|
#
|
50
50
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
51
|
#
|
52
|
-
def create_or_update_with_http_info(policy_set_definition_name, parameters, custom_headers
|
53
|
-
create_or_update_async(policy_set_definition_name, parameters, custom_headers).value!
|
52
|
+
def create_or_update_with_http_info(policy_set_definition_name, parameters, custom_headers:nil)
|
53
|
+
create_or_update_async(policy_set_definition_name, parameters, custom_headers:custom_headers).value!
|
54
54
|
end
|
55
55
|
|
56
56
|
#
|
@@ -64,7 +64,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
64
64
|
#
|
65
65
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
66
66
|
#
|
67
|
-
def create_or_update_async(policy_set_definition_name, parameters, custom_headers
|
67
|
+
def create_or_update_async(policy_set_definition_name, parameters, custom_headers:nil)
|
68
68
|
fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil?
|
69
69
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
70
70
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -72,13 +72,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
72
72
|
|
73
73
|
|
74
74
|
request_headers = {}
|
75
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
76
|
|
76
77
|
# Set Headers
|
77
78
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
78
79
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
79
80
|
|
80
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
-
|
82
81
|
# Serialize Request
|
83
82
|
request_mapper = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySetDefinition.mapper()
|
84
83
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -144,8 +143,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
144
143
|
# will be added to the HTTP request.
|
145
144
|
#
|
146
145
|
#
|
147
|
-
def delete(policy_set_definition_name, custom_headers
|
148
|
-
response = delete_async(policy_set_definition_name, custom_headers).value!
|
146
|
+
def delete(policy_set_definition_name, custom_headers:nil)
|
147
|
+
response = delete_async(policy_set_definition_name, custom_headers:custom_headers).value!
|
149
148
|
nil
|
150
149
|
end
|
151
150
|
|
@@ -159,8 +158,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
159
158
|
#
|
160
159
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
161
160
|
#
|
162
|
-
def delete_with_http_info(policy_set_definition_name, custom_headers
|
163
|
-
delete_async(policy_set_definition_name, custom_headers).value!
|
161
|
+
def delete_with_http_info(policy_set_definition_name, custom_headers:nil)
|
162
|
+
delete_async(policy_set_definition_name, custom_headers:custom_headers).value!
|
164
163
|
end
|
165
164
|
|
166
165
|
#
|
@@ -173,13 +172,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
173
172
|
#
|
174
173
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
175
174
|
#
|
176
|
-
def delete_async(policy_set_definition_name, custom_headers
|
175
|
+
def delete_async(policy_set_definition_name, custom_headers:nil)
|
177
176
|
fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil?
|
178
177
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
179
178
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
180
179
|
|
181
180
|
|
182
181
|
request_headers = {}
|
182
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
183
183
|
|
184
184
|
# Set Headers
|
185
185
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -224,8 +224,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
224
224
|
#
|
225
225
|
# @return [PolicySetDefinition] operation results.
|
226
226
|
#
|
227
|
-
def get(policy_set_definition_name, custom_headers
|
228
|
-
response = get_async(policy_set_definition_name, custom_headers).value!
|
227
|
+
def get(policy_set_definition_name, custom_headers:nil)
|
228
|
+
response = get_async(policy_set_definition_name, custom_headers:custom_headers).value!
|
229
229
|
response.body unless response.nil?
|
230
230
|
end
|
231
231
|
|
@@ -239,8 +239,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
239
239
|
#
|
240
240
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
241
241
|
#
|
242
|
-
def get_with_http_info(policy_set_definition_name, custom_headers
|
243
|
-
get_async(policy_set_definition_name, custom_headers).value!
|
242
|
+
def get_with_http_info(policy_set_definition_name, custom_headers:nil)
|
243
|
+
get_async(policy_set_definition_name, custom_headers:custom_headers).value!
|
244
244
|
end
|
245
245
|
|
246
246
|
#
|
@@ -253,13 +253,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
253
253
|
#
|
254
254
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
255
255
|
#
|
256
|
-
def get_async(policy_set_definition_name, custom_headers
|
256
|
+
def get_async(policy_set_definition_name, custom_headers:nil)
|
257
257
|
fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil?
|
258
258
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
259
259
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
260
260
|
|
261
261
|
|
262
262
|
request_headers = {}
|
263
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
263
264
|
|
264
265
|
# Set Headers
|
265
266
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -314,8 +315,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
314
315
|
#
|
315
316
|
# @return [PolicySetDefinition] operation results.
|
316
317
|
#
|
317
|
-
def get_built_in(policy_set_definition_name, custom_headers
|
318
|
-
response = get_built_in_async(policy_set_definition_name, custom_headers).value!
|
318
|
+
def get_built_in(policy_set_definition_name, custom_headers:nil)
|
319
|
+
response = get_built_in_async(policy_set_definition_name, custom_headers:custom_headers).value!
|
319
320
|
response.body unless response.nil?
|
320
321
|
end
|
321
322
|
|
@@ -329,8 +330,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
329
330
|
#
|
330
331
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
331
332
|
#
|
332
|
-
def get_built_in_with_http_info(policy_set_definition_name, custom_headers
|
333
|
-
get_built_in_async(policy_set_definition_name, custom_headers).value!
|
333
|
+
def get_built_in_with_http_info(policy_set_definition_name, custom_headers:nil)
|
334
|
+
get_built_in_async(policy_set_definition_name, custom_headers:custom_headers).value!
|
334
335
|
end
|
335
336
|
|
336
337
|
#
|
@@ -343,12 +344,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
343
344
|
#
|
344
345
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
345
346
|
#
|
346
|
-
def get_built_in_async(policy_set_definition_name, custom_headers
|
347
|
+
def get_built_in_async(policy_set_definition_name, custom_headers:nil)
|
347
348
|
fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil?
|
348
349
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
349
350
|
|
350
351
|
|
351
352
|
request_headers = {}
|
353
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
352
354
|
|
353
355
|
# Set Headers
|
354
356
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -401,8 +403,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
401
403
|
#
|
402
404
|
# @return [Array<PolicySetDefinition>] operation results.
|
403
405
|
#
|
404
|
-
def list(custom_headers
|
405
|
-
first_page = list_as_lazy(custom_headers)
|
406
|
+
def list(custom_headers:nil)
|
407
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
406
408
|
first_page.get_all_items
|
407
409
|
end
|
408
410
|
|
@@ -414,8 +416,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
414
416
|
#
|
415
417
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
416
418
|
#
|
417
|
-
def list_with_http_info(custom_headers
|
418
|
-
list_async(custom_headers).value!
|
419
|
+
def list_with_http_info(custom_headers:nil)
|
420
|
+
list_async(custom_headers:custom_headers).value!
|
419
421
|
end
|
420
422
|
|
421
423
|
#
|
@@ -426,12 +428,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
426
428
|
#
|
427
429
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
428
430
|
#
|
429
|
-
def list_async(custom_headers
|
431
|
+
def list_async(custom_headers:nil)
|
430
432
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
431
433
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
432
434
|
|
433
435
|
|
434
436
|
request_headers = {}
|
437
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
435
438
|
|
436
439
|
# Set Headers
|
437
440
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -484,8 +487,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
484
487
|
#
|
485
488
|
# @return [Array<PolicySetDefinition>] operation results.
|
486
489
|
#
|
487
|
-
def list_built_in(custom_headers
|
488
|
-
first_page = list_built_in_as_lazy(custom_headers)
|
490
|
+
def list_built_in(custom_headers:nil)
|
491
|
+
first_page = list_built_in_as_lazy(custom_headers:custom_headers)
|
489
492
|
first_page.get_all_items
|
490
493
|
end
|
491
494
|
|
@@ -497,8 +500,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
497
500
|
#
|
498
501
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
499
502
|
#
|
500
|
-
def list_built_in_with_http_info(custom_headers
|
501
|
-
list_built_in_async(custom_headers).value!
|
503
|
+
def list_built_in_with_http_info(custom_headers:nil)
|
504
|
+
list_built_in_async(custom_headers:custom_headers).value!
|
502
505
|
end
|
503
506
|
|
504
507
|
#
|
@@ -509,11 +512,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
509
512
|
#
|
510
513
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
511
514
|
#
|
512
|
-
def list_built_in_async(custom_headers
|
515
|
+
def list_built_in_async(custom_headers:nil)
|
513
516
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
514
517
|
|
515
518
|
|
516
519
|
request_headers = {}
|
520
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
517
521
|
|
518
522
|
# Set Headers
|
519
523
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -569,8 +573,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
569
573
|
#
|
570
574
|
# @return [PolicySetDefinition] operation results.
|
571
575
|
#
|
572
|
-
def create_or_update_at_management_group(policy_set_definition_name, parameters, management_group_id, custom_headers
|
573
|
-
response = create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers).value!
|
576
|
+
def create_or_update_at_management_group(policy_set_definition_name, parameters, management_group_id, custom_headers:nil)
|
577
|
+
response = create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers:custom_headers).value!
|
574
578
|
response.body unless response.nil?
|
575
579
|
end
|
576
580
|
|
@@ -586,8 +590,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
586
590
|
#
|
587
591
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
588
592
|
#
|
589
|
-
def create_or_update_at_management_group_with_http_info(policy_set_definition_name, parameters, management_group_id, custom_headers
|
590
|
-
create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers).value!
|
593
|
+
def create_or_update_at_management_group_with_http_info(policy_set_definition_name, parameters, management_group_id, custom_headers:nil)
|
594
|
+
create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers:custom_headers).value!
|
591
595
|
end
|
592
596
|
|
593
597
|
#
|
@@ -602,7 +606,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
602
606
|
#
|
603
607
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
604
608
|
#
|
605
|
-
def create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers
|
609
|
+
def create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers:nil)
|
606
610
|
fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil?
|
607
611
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
608
612
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -610,13 +614,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
610
614
|
|
611
615
|
|
612
616
|
request_headers = {}
|
617
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
613
618
|
|
614
619
|
# Set Headers
|
615
620
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
616
621
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
617
622
|
|
618
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
619
|
-
|
620
623
|
# Serialize Request
|
621
624
|
request_mapper = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySetDefinition.mapper()
|
622
625
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -683,8 +686,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
683
686
|
# will be added to the HTTP request.
|
684
687
|
#
|
685
688
|
#
|
686
|
-
def delete_at_management_group(policy_set_definition_name, management_group_id, custom_headers
|
687
|
-
response = delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value!
|
689
|
+
def delete_at_management_group(policy_set_definition_name, management_group_id, custom_headers:nil)
|
690
|
+
response = delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value!
|
688
691
|
nil
|
689
692
|
end
|
690
693
|
|
@@ -699,8 +702,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
699
702
|
#
|
700
703
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
701
704
|
#
|
702
|
-
def delete_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers
|
703
|
-
delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value!
|
705
|
+
def delete_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers:nil)
|
706
|
+
delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value!
|
704
707
|
end
|
705
708
|
|
706
709
|
#
|
@@ -714,13 +717,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
714
717
|
#
|
715
718
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
716
719
|
#
|
717
|
-
def delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers
|
720
|
+
def delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:nil)
|
718
721
|
fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil?
|
719
722
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
720
723
|
fail ArgumentError, 'management_group_id is nil' if management_group_id.nil?
|
721
724
|
|
722
725
|
|
723
726
|
request_headers = {}
|
727
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
724
728
|
|
725
729
|
# Set Headers
|
726
730
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -766,8 +770,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
766
770
|
#
|
767
771
|
# @return [PolicySetDefinition] operation results.
|
768
772
|
#
|
769
|
-
def get_at_management_group(policy_set_definition_name, management_group_id, custom_headers
|
770
|
-
response = get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value!
|
773
|
+
def get_at_management_group(policy_set_definition_name, management_group_id, custom_headers:nil)
|
774
|
+
response = get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value!
|
771
775
|
response.body unless response.nil?
|
772
776
|
end
|
773
777
|
|
@@ -782,8 +786,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
782
786
|
#
|
783
787
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
784
788
|
#
|
785
|
-
def get_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers
|
786
|
-
get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value!
|
789
|
+
def get_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers:nil)
|
790
|
+
get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value!
|
787
791
|
end
|
788
792
|
|
789
793
|
#
|
@@ -797,13 +801,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
797
801
|
#
|
798
802
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
799
803
|
#
|
800
|
-
def get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers
|
804
|
+
def get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:nil)
|
801
805
|
fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil?
|
802
806
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
803
807
|
fail ArgumentError, 'management_group_id is nil' if management_group_id.nil?
|
804
808
|
|
805
809
|
|
806
810
|
request_headers = {}
|
811
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
807
812
|
|
808
813
|
# Set Headers
|
809
814
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -857,8 +862,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
857
862
|
#
|
858
863
|
# @return [Array<PolicySetDefinition>] operation results.
|
859
864
|
#
|
860
|
-
def list_by_management_group(management_group_id, custom_headers
|
861
|
-
first_page = list_by_management_group_as_lazy(management_group_id, custom_headers)
|
865
|
+
def list_by_management_group(management_group_id, custom_headers:nil)
|
866
|
+
first_page = list_by_management_group_as_lazy(management_group_id, custom_headers:custom_headers)
|
862
867
|
first_page.get_all_items
|
863
868
|
end
|
864
869
|
|
@@ -871,8 +876,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
871
876
|
#
|
872
877
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
873
878
|
#
|
874
|
-
def list_by_management_group_with_http_info(management_group_id, custom_headers
|
875
|
-
list_by_management_group_async(management_group_id, custom_headers).value!
|
879
|
+
def list_by_management_group_with_http_info(management_group_id, custom_headers:nil)
|
880
|
+
list_by_management_group_async(management_group_id, custom_headers:custom_headers).value!
|
876
881
|
end
|
877
882
|
|
878
883
|
#
|
@@ -884,12 +889,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
884
889
|
#
|
885
890
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
886
891
|
#
|
887
|
-
def list_by_management_group_async(management_group_id, custom_headers
|
892
|
+
def list_by_management_group_async(management_group_id, custom_headers:nil)
|
888
893
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
889
894
|
fail ArgumentError, 'management_group_id is nil' if management_group_id.nil?
|
890
895
|
|
891
896
|
|
892
897
|
request_headers = {}
|
898
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
893
899
|
|
894
900
|
# Set Headers
|
895
901
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -944,8 +950,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
944
950
|
#
|
945
951
|
# @return [PolicySetDefinitionListResult] operation results.
|
946
952
|
#
|
947
|
-
def list_next(next_page_link, custom_headers
|
948
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
953
|
+
def list_next(next_page_link, custom_headers:nil)
|
954
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
949
955
|
response.body unless response.nil?
|
950
956
|
end
|
951
957
|
|
@@ -959,8 +965,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
959
965
|
#
|
960
966
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
961
967
|
#
|
962
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
963
|
-
list_next_async(next_page_link, custom_headers).value!
|
968
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
969
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
964
970
|
end
|
965
971
|
|
966
972
|
#
|
@@ -973,11 +979,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
973
979
|
#
|
974
980
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
975
981
|
#
|
976
|
-
def list_next_async(next_page_link, custom_headers
|
982
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
977
983
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
978
984
|
|
979
985
|
|
980
986
|
request_headers = {}
|
987
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
981
988
|
|
982
989
|
# Set Headers
|
983
990
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1031,8 +1038,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1031
1038
|
#
|
1032
1039
|
# @return [PolicySetDefinitionListResult] operation results.
|
1033
1040
|
#
|
1034
|
-
def list_built_in_next(next_page_link, custom_headers
|
1035
|
-
response = list_built_in_next_async(next_page_link, custom_headers).value!
|
1041
|
+
def list_built_in_next(next_page_link, custom_headers:nil)
|
1042
|
+
response = list_built_in_next_async(next_page_link, custom_headers:custom_headers).value!
|
1036
1043
|
response.body unless response.nil?
|
1037
1044
|
end
|
1038
1045
|
|
@@ -1046,8 +1053,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1046
1053
|
#
|
1047
1054
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1048
1055
|
#
|
1049
|
-
def list_built_in_next_with_http_info(next_page_link, custom_headers
|
1050
|
-
list_built_in_next_async(next_page_link, custom_headers).value!
|
1056
|
+
def list_built_in_next_with_http_info(next_page_link, custom_headers:nil)
|
1057
|
+
list_built_in_next_async(next_page_link, custom_headers:custom_headers).value!
|
1051
1058
|
end
|
1052
1059
|
|
1053
1060
|
#
|
@@ -1060,11 +1067,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1060
1067
|
#
|
1061
1068
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1062
1069
|
#
|
1063
|
-
def list_built_in_next_async(next_page_link, custom_headers
|
1070
|
+
def list_built_in_next_async(next_page_link, custom_headers:nil)
|
1064
1071
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1065
1072
|
|
1066
1073
|
|
1067
1074
|
request_headers = {}
|
1075
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1068
1076
|
|
1069
1077
|
# Set Headers
|
1070
1078
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1118,8 +1126,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1118
1126
|
#
|
1119
1127
|
# @return [PolicySetDefinitionListResult] operation results.
|
1120
1128
|
#
|
1121
|
-
def list_by_management_group_next(next_page_link, custom_headers
|
1122
|
-
response = list_by_management_group_next_async(next_page_link, custom_headers).value!
|
1129
|
+
def list_by_management_group_next(next_page_link, custom_headers:nil)
|
1130
|
+
response = list_by_management_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1123
1131
|
response.body unless response.nil?
|
1124
1132
|
end
|
1125
1133
|
|
@@ -1133,8 +1141,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1133
1141
|
#
|
1134
1142
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1135
1143
|
#
|
1136
|
-
def list_by_management_group_next_with_http_info(next_page_link, custom_headers
|
1137
|
-
list_by_management_group_next_async(next_page_link, custom_headers).value!
|
1144
|
+
def list_by_management_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1145
|
+
list_by_management_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1138
1146
|
end
|
1139
1147
|
|
1140
1148
|
#
|
@@ -1147,11 +1155,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1147
1155
|
#
|
1148
1156
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1149
1157
|
#
|
1150
|
-
def list_by_management_group_next_async(next_page_link, custom_headers
|
1158
|
+
def list_by_management_group_next_async(next_page_link, custom_headers:nil)
|
1151
1159
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1152
1160
|
|
1153
1161
|
|
1154
1162
|
request_headers = {}
|
1163
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1155
1164
|
|
1156
1165
|
# Set Headers
|
1157
1166
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1204,12 +1213,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1204
1213
|
# @return [PolicySetDefinitionListResult] which provide lazy access to pages of
|
1205
1214
|
# the response.
|
1206
1215
|
#
|
1207
|
-
def list_as_lazy(custom_headers
|
1208
|
-
response = list_async(custom_headers).value!
|
1216
|
+
def list_as_lazy(custom_headers:nil)
|
1217
|
+
response = list_async(custom_headers:custom_headers).value!
|
1209
1218
|
unless response.nil?
|
1210
1219
|
page = response.body
|
1211
1220
|
page.next_method = Proc.new do |next_page_link|
|
1212
|
-
list_next_async(next_page_link, custom_headers)
|
1221
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1213
1222
|
end
|
1214
1223
|
page
|
1215
1224
|
end
|
@@ -1224,12 +1233,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1224
1233
|
# @return [PolicySetDefinitionListResult] which provide lazy access to pages of
|
1225
1234
|
# the response.
|
1226
1235
|
#
|
1227
|
-
def list_built_in_as_lazy(custom_headers
|
1228
|
-
response = list_built_in_async(custom_headers).value!
|
1236
|
+
def list_built_in_as_lazy(custom_headers:nil)
|
1237
|
+
response = list_built_in_async(custom_headers:custom_headers).value!
|
1229
1238
|
unless response.nil?
|
1230
1239
|
page = response.body
|
1231
1240
|
page.next_method = Proc.new do |next_page_link|
|
1232
|
-
list_built_in_next_async(next_page_link, custom_headers)
|
1241
|
+
list_built_in_next_async(next_page_link, custom_headers:custom_headers)
|
1233
1242
|
end
|
1234
1243
|
page
|
1235
1244
|
end
|
@@ -1245,12 +1254,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
1245
1254
|
# @return [PolicySetDefinitionListResult] which provide lazy access to pages of
|
1246
1255
|
# the response.
|
1247
1256
|
#
|
1248
|
-
def list_by_management_group_as_lazy(management_group_id, custom_headers
|
1249
|
-
response = list_by_management_group_async(management_group_id, custom_headers).value!
|
1257
|
+
def list_by_management_group_as_lazy(management_group_id, custom_headers:nil)
|
1258
|
+
response = list_by_management_group_async(management_group_id, custom_headers:custom_headers).value!
|
1250
1259
|
unless response.nil?
|
1251
1260
|
page = response.body
|
1252
1261
|
page.next_method = Proc.new do |next_page_link|
|
1253
|
-
list_by_management_group_next_async(next_page_link, custom_headers)
|
1262
|
+
list_by_management_group_next_async(next_page_link, custom_headers:custom_headers)
|
1254
1263
|
end
|
1255
1264
|
page
|
1256
1265
|
end
|