azure_mgmt_authorization 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,8 +44,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
44
44
  #
45
45
  # @return [Array<RoleAssignment>] operation results.
46
46
  #
47
- def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
48
- first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers)
47
+ def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil)
48
+ first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers)
49
49
  first_page.get_all_items
50
50
  end
51
51
 
@@ -68,8 +68,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
68
68
  #
69
69
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
70
70
  #
71
- def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
72
- list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value!
71
+ def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil)
72
+ list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value!
73
73
  end
74
74
 
75
75
  #
@@ -91,7 +91,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
91
91
  #
92
92
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
93
93
  #
94
- def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
94
+ def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil)
95
95
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
96
96
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
97
97
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
@@ -102,6 +102,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
102
102
 
103
103
 
104
104
  request_headers = {}
105
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
105
106
 
106
107
  # Set Headers
107
108
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -160,8 +161,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
160
161
  #
161
162
  # @return [Array<RoleAssignment>] operation results.
162
163
  #
163
- def list_for_resource_group(resource_group_name, filter = nil, custom_headers = nil)
164
- first_page = list_for_resource_group_as_lazy(resource_group_name, filter, custom_headers)
164
+ def list_for_resource_group(resource_group_name, filter:nil, custom_headers:nil)
165
+ first_page = list_for_resource_group_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers)
165
166
  first_page.get_all_items
166
167
  end
167
168
 
@@ -178,8 +179,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
178
179
  #
179
180
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
180
181
  #
181
- def list_for_resource_group_with_http_info(resource_group_name, filter = nil, custom_headers = nil)
182
- list_for_resource_group_async(resource_group_name, filter, custom_headers).value!
182
+ def list_for_resource_group_with_http_info(resource_group_name, filter:nil, custom_headers:nil)
183
+ list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value!
183
184
  end
184
185
 
185
186
  #
@@ -195,13 +196,14 @@ module Azure::Authorization::Mgmt::V2015_07_01
195
196
  #
196
197
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
197
198
  #
198
- def list_for_resource_group_async(resource_group_name, filter = nil, custom_headers = nil)
199
+ def list_for_resource_group_async(resource_group_name, filter:nil, custom_headers:nil)
199
200
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
200
201
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
201
202
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
202
203
 
203
204
 
204
205
  request_headers = {}
206
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
205
207
 
206
208
  # Set Headers
207
209
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -257,8 +259,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
257
259
  #
258
260
  # @return [RoleAssignment] operation results.
259
261
  #
260
- def delete(scope, role_assignment_name, custom_headers = nil)
261
- response = delete_async(scope, role_assignment_name, custom_headers).value!
262
+ def delete(scope, role_assignment_name, custom_headers:nil)
263
+ response = delete_async(scope, role_assignment_name, custom_headers:custom_headers).value!
262
264
  response.body unless response.nil?
263
265
  end
264
266
 
@@ -273,8 +275,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
273
275
  #
274
276
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
275
277
  #
276
- def delete_with_http_info(scope, role_assignment_name, custom_headers = nil)
277
- delete_async(scope, role_assignment_name, custom_headers).value!
278
+ def delete_with_http_info(scope, role_assignment_name, custom_headers:nil)
279
+ delete_async(scope, role_assignment_name, custom_headers:custom_headers).value!
278
280
  end
279
281
 
280
282
  #
@@ -288,13 +290,14 @@ module Azure::Authorization::Mgmt::V2015_07_01
288
290
  #
289
291
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
290
292
  #
291
- def delete_async(scope, role_assignment_name, custom_headers = nil)
293
+ def delete_async(scope, role_assignment_name, custom_headers:nil)
292
294
  fail ArgumentError, 'scope is nil' if scope.nil?
293
295
  fail ArgumentError, 'role_assignment_name is nil' if role_assignment_name.nil?
294
296
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
295
297
 
296
298
 
297
299
  request_headers = {}
300
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
298
301
 
299
302
  # Set Headers
300
303
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -359,8 +362,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
359
362
  #
360
363
  # @return [RoleAssignment] operation results.
361
364
  #
362
- def create(scope, role_assignment_name, parameters, custom_headers = nil)
363
- response = create_async(scope, role_assignment_name, parameters, custom_headers).value!
365
+ def create(scope, role_assignment_name, parameters, custom_headers:nil)
366
+ response = create_async(scope, role_assignment_name, parameters, custom_headers:custom_headers).value!
364
367
  response.body unless response.nil?
365
368
  end
366
369
 
@@ -383,8 +386,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
383
386
  #
384
387
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
385
388
  #
386
- def create_with_http_info(scope, role_assignment_name, parameters, custom_headers = nil)
387
- create_async(scope, role_assignment_name, parameters, custom_headers).value!
389
+ def create_with_http_info(scope, role_assignment_name, parameters, custom_headers:nil)
390
+ create_async(scope, role_assignment_name, parameters, custom_headers:custom_headers).value!
388
391
  end
389
392
 
390
393
  #
@@ -406,7 +409,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
406
409
  #
407
410
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
408
411
  #
409
- def create_async(scope, role_assignment_name, parameters, custom_headers = nil)
412
+ def create_async(scope, role_assignment_name, parameters, custom_headers:nil)
410
413
  fail ArgumentError, 'scope is nil' if scope.nil?
411
414
  fail ArgumentError, 'role_assignment_name is nil' if role_assignment_name.nil?
412
415
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -414,13 +417,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
414
417
 
415
418
 
416
419
  request_headers = {}
420
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
417
421
 
418
422
  # Set Headers
419
423
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
420
424
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
421
425
 
422
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
423
-
424
426
  # Serialize Request
425
427
  request_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters.mapper()
426
428
  request_content = @client.serialize(request_mapper, parameters)
@@ -478,8 +480,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
478
480
  #
479
481
  # @return [RoleAssignment] operation results.
480
482
  #
481
- def get(scope, role_assignment_name, custom_headers = nil)
482
- response = get_async(scope, role_assignment_name, custom_headers).value!
483
+ def get(scope, role_assignment_name, custom_headers:nil)
484
+ response = get_async(scope, role_assignment_name, custom_headers:custom_headers).value!
483
485
  response.body unless response.nil?
484
486
  end
485
487
 
@@ -493,8 +495,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
493
495
  #
494
496
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
495
497
  #
496
- def get_with_http_info(scope, role_assignment_name, custom_headers = nil)
497
- get_async(scope, role_assignment_name, custom_headers).value!
498
+ def get_with_http_info(scope, role_assignment_name, custom_headers:nil)
499
+ get_async(scope, role_assignment_name, custom_headers:custom_headers).value!
498
500
  end
499
501
 
500
502
  #
@@ -507,13 +509,14 @@ module Azure::Authorization::Mgmt::V2015_07_01
507
509
  #
508
510
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
509
511
  #
510
- def get_async(scope, role_assignment_name, custom_headers = nil)
512
+ def get_async(scope, role_assignment_name, custom_headers:nil)
511
513
  fail ArgumentError, 'scope is nil' if scope.nil?
512
514
  fail ArgumentError, 'role_assignment_name is nil' if role_assignment_name.nil?
513
515
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
514
516
 
515
517
 
516
518
  request_headers = {}
519
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
517
520
 
518
521
  # Set Headers
519
522
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -562,45 +565,61 @@ module Azure::Authorization::Mgmt::V2015_07_01
562
565
  #
563
566
  # Deletes a role assignment.
564
567
  #
565
- # @param role_assignment_id [String] The ID of the role assignment to delete.
568
+ # @param role_assignment_id [String] The fully qualified ID of the role
569
+ # assignment, including the scope, resource name and resource type. Use the
570
+ # format,
571
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
572
+ # Example:
573
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
566
574
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
567
575
  # will be added to the HTTP request.
568
576
  #
569
577
  # @return [RoleAssignment] operation results.
570
578
  #
571
- def delete_by_id(role_assignment_id, custom_headers = nil)
572
- response = delete_by_id_async(role_assignment_id, custom_headers).value!
579
+ def delete_by_id(role_assignment_id, custom_headers:nil)
580
+ response = delete_by_id_async(role_assignment_id, custom_headers:custom_headers).value!
573
581
  response.body unless response.nil?
574
582
  end
575
583
 
576
584
  #
577
585
  # Deletes a role assignment.
578
586
  #
579
- # @param role_assignment_id [String] The ID of the role assignment to delete.
587
+ # @param role_assignment_id [String] The fully qualified ID of the role
588
+ # assignment, including the scope, resource name and resource type. Use the
589
+ # format,
590
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
591
+ # Example:
592
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
580
593
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
581
594
  # will be added to the HTTP request.
582
595
  #
583
596
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
584
597
  #
585
- def delete_by_id_with_http_info(role_assignment_id, custom_headers = nil)
586
- delete_by_id_async(role_assignment_id, custom_headers).value!
598
+ def delete_by_id_with_http_info(role_assignment_id, custom_headers:nil)
599
+ delete_by_id_async(role_assignment_id, custom_headers:custom_headers).value!
587
600
  end
588
601
 
589
602
  #
590
603
  # Deletes a role assignment.
591
604
  #
592
- # @param role_assignment_id [String] The ID of the role assignment to delete.
605
+ # @param role_assignment_id [String] The fully qualified ID of the role
606
+ # assignment, including the scope, resource name and resource type. Use the
607
+ # format,
608
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
609
+ # Example:
610
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
593
611
  # @param [Hash{String => String}] A hash of custom headers that will be added
594
612
  # to the HTTP request.
595
613
  #
596
614
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
597
615
  #
598
- def delete_by_id_async(role_assignment_id, custom_headers = nil)
616
+ def delete_by_id_async(role_assignment_id, custom_headers:nil)
599
617
  fail ArgumentError, 'role_assignment_id is nil' if role_assignment_id.nil?
600
618
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
601
619
 
602
620
 
603
621
  request_headers = {}
622
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
604
623
 
605
624
  # Set Headers
606
625
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -648,7 +667,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
648
667
  #
649
668
  # Creates a role assignment by ID.
650
669
  #
651
- # @param role_assignment_id [String] The ID of the role assignment to create.
670
+ # @param role_assignment_id [String] The fully qualified ID of the role
671
+ # assignment, including the scope, resource name and resource type. Use the
672
+ # format,
673
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
674
+ # Example:
675
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
652
676
  # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
653
677
  # assignment.
654
678
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -656,15 +680,20 @@ module Azure::Authorization::Mgmt::V2015_07_01
656
680
  #
657
681
  # @return [RoleAssignment] operation results.
658
682
  #
659
- def create_by_id(role_assignment_id, parameters, custom_headers = nil)
660
- response = create_by_id_async(role_assignment_id, parameters, custom_headers).value!
683
+ def create_by_id(role_assignment_id, parameters, custom_headers:nil)
684
+ response = create_by_id_async(role_assignment_id, parameters, custom_headers:custom_headers).value!
661
685
  response.body unless response.nil?
662
686
  end
663
687
 
664
688
  #
665
689
  # Creates a role assignment by ID.
666
690
  #
667
- # @param role_assignment_id [String] The ID of the role assignment to create.
691
+ # @param role_assignment_id [String] The fully qualified ID of the role
692
+ # assignment, including the scope, resource name and resource type. Use the
693
+ # format,
694
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
695
+ # Example:
696
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
668
697
  # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
669
698
  # assignment.
670
699
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -672,14 +701,19 @@ module Azure::Authorization::Mgmt::V2015_07_01
672
701
  #
673
702
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
674
703
  #
675
- def create_by_id_with_http_info(role_assignment_id, parameters, custom_headers = nil)
676
- create_by_id_async(role_assignment_id, parameters, custom_headers).value!
704
+ def create_by_id_with_http_info(role_assignment_id, parameters, custom_headers:nil)
705
+ create_by_id_async(role_assignment_id, parameters, custom_headers:custom_headers).value!
677
706
  end
678
707
 
679
708
  #
680
709
  # Creates a role assignment by ID.
681
710
  #
682
- # @param role_assignment_id [String] The ID of the role assignment to create.
711
+ # @param role_assignment_id [String] The fully qualified ID of the role
712
+ # assignment, including the scope, resource name and resource type. Use the
713
+ # format,
714
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
715
+ # Example:
716
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
683
717
  # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
684
718
  # assignment.
685
719
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -687,20 +721,19 @@ module Azure::Authorization::Mgmt::V2015_07_01
687
721
  #
688
722
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
689
723
  #
690
- def create_by_id_async(role_assignment_id, parameters, custom_headers = nil)
724
+ def create_by_id_async(role_assignment_id, parameters, custom_headers:nil)
691
725
  fail ArgumentError, 'role_assignment_id is nil' if role_assignment_id.nil?
692
726
  fail ArgumentError, 'parameters is nil' if parameters.nil?
693
727
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
694
728
 
695
729
 
696
730
  request_headers = {}
731
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
697
732
 
698
733
  # Set Headers
699
734
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
700
735
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
701
736
 
702
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
703
-
704
737
  # Serialize Request
705
738
  request_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters.mapper()
706
739
  request_content = @client.serialize(request_mapper, parameters)
@@ -750,45 +783,61 @@ module Azure::Authorization::Mgmt::V2015_07_01
750
783
  #
751
784
  # Gets a role assignment by ID.
752
785
  #
753
- # @param role_assignment_id [String] The ID of the role assignment to get.
786
+ # @param role_assignment_id [String] The fully qualified ID of the role
787
+ # assignment, including the scope, resource name and resource type. Use the
788
+ # format,
789
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
790
+ # Example:
791
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
754
792
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
755
793
  # will be added to the HTTP request.
756
794
  #
757
795
  # @return [RoleAssignment] operation results.
758
796
  #
759
- def get_by_id(role_assignment_id, custom_headers = nil)
760
- response = get_by_id_async(role_assignment_id, custom_headers).value!
797
+ def get_by_id(role_assignment_id, custom_headers:nil)
798
+ response = get_by_id_async(role_assignment_id, custom_headers:custom_headers).value!
761
799
  response.body unless response.nil?
762
800
  end
763
801
 
764
802
  #
765
803
  # Gets a role assignment by ID.
766
804
  #
767
- # @param role_assignment_id [String] The ID of the role assignment to get.
805
+ # @param role_assignment_id [String] The fully qualified ID of the role
806
+ # assignment, including the scope, resource name and resource type. Use the
807
+ # format,
808
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
809
+ # Example:
810
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
768
811
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
769
812
  # will be added to the HTTP request.
770
813
  #
771
814
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
772
815
  #
773
- def get_by_id_with_http_info(role_assignment_id, custom_headers = nil)
774
- get_by_id_async(role_assignment_id, custom_headers).value!
816
+ def get_by_id_with_http_info(role_assignment_id, custom_headers:nil)
817
+ get_by_id_async(role_assignment_id, custom_headers:custom_headers).value!
775
818
  end
776
819
 
777
820
  #
778
821
  # Gets a role assignment by ID.
779
822
  #
780
- # @param role_assignment_id [String] The ID of the role assignment to get.
823
+ # @param role_assignment_id [String] The fully qualified ID of the role
824
+ # assignment, including the scope, resource name and resource type. Use the
825
+ # format,
826
+ # /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
827
+ # Example:
828
+ # /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.
781
829
  # @param [Hash{String => String}] A hash of custom headers that will be added
782
830
  # to the HTTP request.
783
831
  #
784
832
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
785
833
  #
786
- def get_by_id_async(role_assignment_id, custom_headers = nil)
834
+ def get_by_id_async(role_assignment_id, custom_headers:nil)
787
835
  fail ArgumentError, 'role_assignment_id is nil' if role_assignment_id.nil?
788
836
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
789
837
 
790
838
 
791
839
  request_headers = {}
840
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
792
841
 
793
842
  # Set Headers
794
843
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -845,8 +894,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
845
894
  #
846
895
  # @return [Array<RoleAssignment>] operation results.
847
896
  #
848
- def list(filter = nil, custom_headers = nil)
849
- first_page = list_as_lazy(filter, custom_headers)
897
+ def list(filter:nil, custom_headers:nil)
898
+ first_page = list_as_lazy(filter:filter, custom_headers:custom_headers)
850
899
  first_page.get_all_items
851
900
  end
852
901
 
@@ -862,8 +911,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
862
911
  #
863
912
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
864
913
  #
865
- def list_with_http_info(filter = nil, custom_headers = nil)
866
- list_async(filter, custom_headers).value!
914
+ def list_with_http_info(filter:nil, custom_headers:nil)
915
+ list_async(filter:filter, custom_headers:custom_headers).value!
867
916
  end
868
917
 
869
918
  #
@@ -878,12 +927,13 @@ module Azure::Authorization::Mgmt::V2015_07_01
878
927
  #
879
928
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
880
929
  #
881
- def list_async(filter = nil, custom_headers = nil)
930
+ def list_async(filter:nil, custom_headers:nil)
882
931
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
883
932
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
884
933
 
885
934
 
886
935
  request_headers = {}
936
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
887
937
 
888
938
  # Set Headers
889
939
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -941,8 +991,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
941
991
  #
942
992
  # @return [Array<RoleAssignment>] operation results.
943
993
  #
944
- def list_for_scope(scope, filter = nil, custom_headers = nil)
945
- first_page = list_for_scope_as_lazy(scope, filter, custom_headers)
994
+ def list_for_scope(scope, filter:nil, custom_headers:nil)
995
+ first_page = list_for_scope_as_lazy(scope, filter:filter, custom_headers:custom_headers)
946
996
  first_page.get_all_items
947
997
  end
948
998
 
@@ -959,8 +1009,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
959
1009
  #
960
1010
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
961
1011
  #
962
- def list_for_scope_with_http_info(scope, filter = nil, custom_headers = nil)
963
- list_for_scope_async(scope, filter, custom_headers).value!
1012
+ def list_for_scope_with_http_info(scope, filter:nil, custom_headers:nil)
1013
+ list_for_scope_async(scope, filter:filter, custom_headers:custom_headers).value!
964
1014
  end
965
1015
 
966
1016
  #
@@ -976,12 +1026,13 @@ module Azure::Authorization::Mgmt::V2015_07_01
976
1026
  #
977
1027
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
978
1028
  #
979
- def list_for_scope_async(scope, filter = nil, custom_headers = nil)
1029
+ def list_for_scope_async(scope, filter:nil, custom_headers:nil)
980
1030
  fail ArgumentError, 'scope is nil' if scope.nil?
981
1031
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
982
1032
 
983
1033
 
984
1034
  request_headers = {}
1035
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
985
1036
 
986
1037
  # Set Headers
987
1038
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1036,8 +1087,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1036
1087
  #
1037
1088
  # @return [RoleAssignmentListResult] operation results.
1038
1089
  #
1039
- def list_for_resource_next(next_page_link, custom_headers = nil)
1040
- response = list_for_resource_next_async(next_page_link, custom_headers).value!
1090
+ def list_for_resource_next(next_page_link, custom_headers:nil)
1091
+ response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value!
1041
1092
  response.body unless response.nil?
1042
1093
  end
1043
1094
 
@@ -1051,8 +1102,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1051
1102
  #
1052
1103
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1053
1104
  #
1054
- def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil)
1055
- list_for_resource_next_async(next_page_link, custom_headers).value!
1105
+ def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil)
1106
+ list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value!
1056
1107
  end
1057
1108
 
1058
1109
  #
@@ -1065,11 +1116,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1065
1116
  #
1066
1117
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1067
1118
  #
1068
- def list_for_resource_next_async(next_page_link, custom_headers = nil)
1119
+ def list_for_resource_next_async(next_page_link, custom_headers:nil)
1069
1120
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1070
1121
 
1071
1122
 
1072
1123
  request_headers = {}
1124
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1073
1125
 
1074
1126
  # Set Headers
1075
1127
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1123,8 +1175,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1123
1175
  #
1124
1176
  # @return [RoleAssignmentListResult] operation results.
1125
1177
  #
1126
- def list_for_resource_group_next(next_page_link, custom_headers = nil)
1127
- response = list_for_resource_group_next_async(next_page_link, custom_headers).value!
1178
+ def list_for_resource_group_next(next_page_link, custom_headers:nil)
1179
+ response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1128
1180
  response.body unless response.nil?
1129
1181
  end
1130
1182
 
@@ -1138,8 +1190,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1138
1190
  #
1139
1191
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1140
1192
  #
1141
- def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1142
- list_for_resource_group_next_async(next_page_link, custom_headers).value!
1193
+ def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1194
+ list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1143
1195
  end
1144
1196
 
1145
1197
  #
@@ -1152,11 +1204,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1152
1204
  #
1153
1205
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1154
1206
  #
1155
- def list_for_resource_group_next_async(next_page_link, custom_headers = nil)
1207
+ def list_for_resource_group_next_async(next_page_link, custom_headers:nil)
1156
1208
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1157
1209
 
1158
1210
 
1159
1211
  request_headers = {}
1212
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1160
1213
 
1161
1214
  # Set Headers
1162
1215
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1210,8 +1263,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1210
1263
  #
1211
1264
  # @return [RoleAssignmentListResult] operation results.
1212
1265
  #
1213
- def list_next(next_page_link, custom_headers = nil)
1214
- response = list_next_async(next_page_link, custom_headers).value!
1266
+ def list_next(next_page_link, custom_headers:nil)
1267
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1215
1268
  response.body unless response.nil?
1216
1269
  end
1217
1270
 
@@ -1225,8 +1278,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1225
1278
  #
1226
1279
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1227
1280
  #
1228
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1229
- list_next_async(next_page_link, custom_headers).value!
1281
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1282
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1230
1283
  end
1231
1284
 
1232
1285
  #
@@ -1239,11 +1292,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1239
1292
  #
1240
1293
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1241
1294
  #
1242
- def list_next_async(next_page_link, custom_headers = nil)
1295
+ def list_next_async(next_page_link, custom_headers:nil)
1243
1296
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1244
1297
 
1245
1298
 
1246
1299
  request_headers = {}
1300
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1247
1301
 
1248
1302
  # Set Headers
1249
1303
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1297,8 +1351,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1297
1351
  #
1298
1352
  # @return [RoleAssignmentListResult] operation results.
1299
1353
  #
1300
- def list_for_scope_next(next_page_link, custom_headers = nil)
1301
- response = list_for_scope_next_async(next_page_link, custom_headers).value!
1354
+ def list_for_scope_next(next_page_link, custom_headers:nil)
1355
+ response = list_for_scope_next_async(next_page_link, custom_headers:custom_headers).value!
1302
1356
  response.body unless response.nil?
1303
1357
  end
1304
1358
 
@@ -1312,8 +1366,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
1312
1366
  #
1313
1367
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1314
1368
  #
1315
- def list_for_scope_next_with_http_info(next_page_link, custom_headers = nil)
1316
- list_for_scope_next_async(next_page_link, custom_headers).value!
1369
+ def list_for_scope_next_with_http_info(next_page_link, custom_headers:nil)
1370
+ list_for_scope_next_async(next_page_link, custom_headers:custom_headers).value!
1317
1371
  end
1318
1372
 
1319
1373
  #
@@ -1326,11 +1380,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1326
1380
  #
1327
1381
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1328
1382
  #
1329
- def list_for_scope_next_async(next_page_link, custom_headers = nil)
1383
+ def list_for_scope_next_async(next_page_link, custom_headers:nil)
1330
1384
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1331
1385
 
1332
1386
 
1333
1387
  request_headers = {}
1388
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1334
1389
 
1335
1390
  # Set Headers
1336
1391
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1394,12 +1449,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1394
1449
  # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1395
1450
  # response.
1396
1451
  #
1397
- def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
1398
- response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value!
1452
+ def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil)
1453
+ response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value!
1399
1454
  unless response.nil?
1400
1455
  page = response.body
1401
1456
  page.next_method = Proc.new do |next_page_link|
1402
- list_for_resource_next_async(next_page_link, custom_headers)
1457
+ list_for_resource_next_async(next_page_link, custom_headers:custom_headers)
1403
1458
  end
1404
1459
  page
1405
1460
  end
@@ -1419,12 +1474,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1419
1474
  # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1420
1475
  # response.
1421
1476
  #
1422
- def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil)
1423
- response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value!
1477
+ def list_for_resource_group_as_lazy(resource_group_name, filter:nil, custom_headers:nil)
1478
+ response = list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value!
1424
1479
  unless response.nil?
1425
1480
  page = response.body
1426
1481
  page.next_method = Proc.new do |next_page_link|
1427
- list_for_resource_group_next_async(next_page_link, custom_headers)
1482
+ list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1428
1483
  end
1429
1484
  page
1430
1485
  end
@@ -1443,12 +1498,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1443
1498
  # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1444
1499
  # response.
1445
1500
  #
1446
- def list_as_lazy(filter = nil, custom_headers = nil)
1447
- response = list_async(filter, custom_headers).value!
1501
+ def list_as_lazy(filter:nil, custom_headers:nil)
1502
+ response = list_async(filter:filter, custom_headers:custom_headers).value!
1448
1503
  unless response.nil?
1449
1504
  page = response.body
1450
1505
  page.next_method = Proc.new do |next_page_link|
1451
- list_next_async(next_page_link, custom_headers)
1506
+ list_next_async(next_page_link, custom_headers:custom_headers)
1452
1507
  end
1453
1508
  page
1454
1509
  end
@@ -1468,12 +1523,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
1468
1523
  # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1469
1524
  # response.
1470
1525
  #
1471
- def list_for_scope_as_lazy(scope, filter = nil, custom_headers = nil)
1472
- response = list_for_scope_async(scope, filter, custom_headers).value!
1526
+ def list_for_scope_as_lazy(scope, filter:nil, custom_headers:nil)
1527
+ response = list_for_scope_async(scope, filter:filter, custom_headers:custom_headers).value!
1473
1528
  unless response.nil?
1474
1529
  page = response.body
1475
1530
  page.next_method = Proc.new do |next_page_link|
1476
- list_for_scope_next_async(next_page_link, custom_headers)
1531
+ list_for_scope_next_async(next_page_link, custom_headers:custom_headers)
1477
1532
  end
1478
1533
  page
1479
1534
  end