azure_mgmt_server_management 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a46018c69274ffb5c56c6094cea99974a3db09db
4
- data.tar.gz: 6c2858fa7a9e906c47d7c6adb6dfaea17a8a1b11
3
+ metadata.gz: 00aae6702e4c52a6ac270d88a98f1187a9767b2a
4
+ data.tar.gz: 6684a0835ab5889804b071bd7efb52f2550906b9
5
5
  SHA512:
6
- metadata.gz: 5a18b11325abf8ce027fe51085c7a183f753d6a0644a0e1c159dcff9268eced87aeb4fba18aa61614c7f3195a389140d92b89f7e8ae18ec108c4839364b14197
7
- data.tar.gz: 8bb1d869f69022cf89146572fe3175cf0df3d6071e16cdaea57768259886635bbba9b75a793741aa7e7a16705305a0e3fc6a0141abce95847239b1fb60df4f35
6
+ metadata.gz: 8d9f0d985bd8ce228277945d41ab69fe99e4e000828c3eebfc573f691e017f14937356c8df7f16c4d94cb690ec11bf24dfb84fe230caeb3c2c5f8c2283e6c3de
7
+ data.tar.gz: 0ce6596f322222ce482d0d158974ff97fa54fcba3a8ee7a44ffc1115a1e66b86e7552b9ec8cd11f29c524fa37df26fedee075fb960688e853b138564ebf16d69
@@ -38,8 +38,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
38
38
  #
39
39
  # @return [GatewayResource] operation results.
40
40
  #
41
- def create(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
42
- response = create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value!
41
+ def create(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
42
+ response = create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value!
43
43
  response.body unless response.nil?
44
44
  end
45
45
 
@@ -59,9 +59,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
59
59
  # @return [Concurrent::Promise] promise which provides async access to http
60
60
  # response.
61
61
  #
62
- def create_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
62
+ def create_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
63
63
  # Send request
64
- promise = begin_create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers)
64
+ promise = begin_create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers)
65
65
 
66
66
  promise = promise.then do |response|
67
67
  # Defining deserialization method.
@@ -94,8 +94,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
94
94
  #
95
95
  # @return [GatewayResource] operation results.
96
96
  #
97
- def update(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
98
- response = update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value!
97
+ def update(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
98
+ response = update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value!
99
99
  response.body unless response.nil?
100
100
  end
101
101
 
@@ -115,9 +115,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
115
115
  # @return [Concurrent::Promise] promise which provides async access to http
116
116
  # response.
117
117
  #
118
- def update_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
118
+ def update_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
119
119
  # Send request
120
- promise = begin_update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers)
120
+ promise = begin_update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers)
121
121
 
122
122
  promise = promise.then do |response|
123
123
  # Defining deserialization method.
@@ -143,8 +143,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
143
143
  # will be added to the HTTP request.
144
144
  #
145
145
  #
146
- def delete(resource_group_name, gateway_name, custom_headers = nil)
147
- response = delete_async(resource_group_name, gateway_name, custom_headers).value!
146
+ def delete(resource_group_name, gateway_name, custom_headers:nil)
147
+ response = delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
148
148
  nil
149
149
  end
150
150
 
@@ -159,8 +159,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
159
159
  #
160
160
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
161
  #
162
- def delete_with_http_info(resource_group_name, gateway_name, custom_headers = nil)
163
- delete_async(resource_group_name, gateway_name, custom_headers).value!
162
+ def delete_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
163
+ delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
164
164
  end
165
165
 
166
166
  #
@@ -174,7 +174,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
174
174
  #
175
175
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
176
176
  #
177
- def delete_async(resource_group_name, gateway_name, custom_headers = nil)
177
+ def delete_async(resource_group_name, gateway_name, custom_headers:nil)
178
178
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
179
179
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
180
180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -187,6 +187,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
187
187
 
188
188
 
189
189
  request_headers = {}
190
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
190
191
 
191
192
  # Set Headers
192
193
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -236,8 +237,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
236
237
  #
237
238
  # @return [GatewayResource] operation results.
238
239
  #
239
- def get(resource_group_name, gateway_name, expand = nil, custom_headers = nil)
240
- response = get_async(resource_group_name, gateway_name, expand, custom_headers).value!
240
+ def get(resource_group_name, gateway_name, expand:nil, custom_headers:nil)
241
+ response = get_async(resource_group_name, gateway_name, expand:expand, custom_headers:custom_headers).value!
241
242
  response.body unless response.nil?
242
243
  end
243
244
 
@@ -256,8 +257,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
256
257
  #
257
258
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
258
259
  #
259
- def get_with_http_info(resource_group_name, gateway_name, expand = nil, custom_headers = nil)
260
- get_async(resource_group_name, gateway_name, expand, custom_headers).value!
260
+ def get_with_http_info(resource_group_name, gateway_name, expand:nil, custom_headers:nil)
261
+ get_async(resource_group_name, gateway_name, expand:expand, custom_headers:custom_headers).value!
261
262
  end
262
263
 
263
264
  #
@@ -275,7 +276,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
275
276
  #
276
277
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
277
278
  #
278
- def get_async(resource_group_name, gateway_name, expand = nil, custom_headers = nil)
279
+ def get_async(resource_group_name, gateway_name, expand:nil, custom_headers:nil)
279
280
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
280
281
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
281
282
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -288,6 +289,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
288
289
 
289
290
 
290
291
  request_headers = {}
292
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
291
293
 
292
294
  # Set Headers
293
295
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -340,8 +342,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
340
342
  #
341
343
  # @return [Array<GatewayResource>] operation results.
342
344
  #
343
- def list(custom_headers = nil)
344
- first_page = list_as_lazy(custom_headers)
345
+ def list(custom_headers:nil)
346
+ first_page = list_as_lazy(custom_headers:custom_headers)
345
347
  first_page.get_all_items
346
348
  end
347
349
 
@@ -353,8 +355,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
353
355
  #
354
356
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
355
357
  #
356
- def list_with_http_info(custom_headers = nil)
357
- list_async(custom_headers).value!
358
+ def list_with_http_info(custom_headers:nil)
359
+ list_async(custom_headers:custom_headers).value!
358
360
  end
359
361
 
360
362
  #
@@ -365,12 +367,13 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
365
367
  #
366
368
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
367
369
  #
368
- def list_async(custom_headers = nil)
370
+ def list_async(custom_headers:nil)
369
371
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
370
372
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
371
373
 
372
374
 
373
375
  request_headers = {}
376
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
374
377
 
375
378
  # Set Headers
376
379
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -425,8 +428,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
425
428
  #
426
429
  # @return [Array<GatewayResource>] operation results.
427
430
  #
428
- def list_for_resource_group(resource_group_name, custom_headers = nil)
429
- first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers)
431
+ def list_for_resource_group(resource_group_name, custom_headers:nil)
432
+ first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
430
433
  first_page.get_all_items
431
434
  end
432
435
 
@@ -440,8 +443,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
440
443
  #
441
444
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
442
445
  #
443
- def list_for_resource_group_with_http_info(resource_group_name, custom_headers = nil)
444
- list_for_resource_group_async(resource_group_name, custom_headers).value!
446
+ def list_for_resource_group_with_http_info(resource_group_name, custom_headers:nil)
447
+ list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
445
448
  end
446
449
 
447
450
  #
@@ -454,7 +457,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
454
457
  #
455
458
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
456
459
  #
457
- def list_for_resource_group_async(resource_group_name, custom_headers = nil)
460
+ def list_for_resource_group_async(resource_group_name, custom_headers:nil)
458
461
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
459
462
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
460
463
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -463,6 +466,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
463
466
 
464
467
 
465
468
  request_headers = {}
469
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
466
470
 
467
471
  # Set Headers
468
472
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -516,8 +520,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
516
520
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
517
521
  # will be added to the HTTP request.
518
522
  #
519
- def upgrade(resource_group_name, gateway_name, custom_headers = nil)
520
- response = upgrade_async(resource_group_name, gateway_name, custom_headers).value!
523
+ def upgrade(resource_group_name, gateway_name, custom_headers:nil)
524
+ response = upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
521
525
  nil
522
526
  end
523
527
 
@@ -531,9 +535,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
531
535
  # @return [Concurrent::Promise] promise which provides async access to http
532
536
  # response.
533
537
  #
534
- def upgrade_async(resource_group_name, gateway_name, custom_headers = nil)
538
+ def upgrade_async(resource_group_name, gateway_name, custom_headers:nil)
535
539
  # Send request
536
- promise = begin_upgrade_async(resource_group_name, gateway_name, custom_headers)
540
+ promise = begin_upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers)
537
541
 
538
542
  promise = promise.then do |response|
539
543
  # Defining deserialization method.
@@ -556,8 +560,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
556
560
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
557
561
  # will be added to the HTTP request.
558
562
  #
559
- def regenerate_profile(resource_group_name, gateway_name, custom_headers = nil)
560
- response = regenerate_profile_async(resource_group_name, gateway_name, custom_headers).value!
563
+ def regenerate_profile(resource_group_name, gateway_name, custom_headers:nil)
564
+ response = regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
561
565
  nil
562
566
  end
563
567
 
@@ -571,9 +575,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
571
575
  # @return [Concurrent::Promise] promise which provides async access to http
572
576
  # response.
573
577
  #
574
- def regenerate_profile_async(resource_group_name, gateway_name, custom_headers = nil)
578
+ def regenerate_profile_async(resource_group_name, gateway_name, custom_headers:nil)
575
579
  # Send request
576
- promise = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers)
580
+ promise = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers)
577
581
 
578
582
  promise = promise.then do |response|
579
583
  # Defining deserialization method.
@@ -598,8 +602,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
598
602
  #
599
603
  # @return [GatewayProfile] operation results.
600
604
  #
601
- def get_profile(resource_group_name, gateway_name, custom_headers = nil)
602
- response = get_profile_async(resource_group_name, gateway_name, custom_headers).value!
605
+ def get_profile(resource_group_name, gateway_name, custom_headers:nil)
606
+ response = get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
603
607
  response.body unless response.nil?
604
608
  end
605
609
 
@@ -613,9 +617,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
613
617
  # @return [Concurrent::Promise] promise which provides async access to http
614
618
  # response.
615
619
  #
616
- def get_profile_async(resource_group_name, gateway_name, custom_headers = nil)
620
+ def get_profile_async(resource_group_name, gateway_name, custom_headers:nil)
617
621
  # Send request
618
- promise = begin_get_profile_async(resource_group_name, gateway_name, custom_headers)
622
+ promise = begin_get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers)
619
623
 
620
624
  promise = promise.then do |response|
621
625
  # Defining deserialization method.
@@ -648,8 +652,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
648
652
  #
649
653
  # @return [GatewayResource] operation results.
650
654
  #
651
- def begin_create(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
652
- response = begin_create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value!
655
+ def begin_create(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
656
+ response = begin_create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value!
653
657
  response.body unless response.nil?
654
658
  end
655
659
 
@@ -670,8 +674,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
670
674
  #
671
675
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
672
676
  #
673
- def begin_create_with_http_info(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
674
- begin_create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value!
677
+ def begin_create_with_http_info(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
678
+ begin_create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value!
675
679
  end
676
680
 
677
681
  #
@@ -691,7 +695,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
691
695
  #
692
696
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
693
697
  #
694
- def begin_create_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
698
+ def begin_create_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
695
699
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
696
700
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
697
701
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -710,13 +714,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
710
714
  end
711
715
 
712
716
  request_headers = {}
717
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
713
718
 
714
719
  # Set Headers
715
720
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
716
721
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
717
722
 
718
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
719
-
720
723
  # Serialize Request
721
724
  request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayParameters.mapper()
722
725
  request_content = @client.serialize(request_mapper, gateway_parameters)
@@ -790,8 +793,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
790
793
  #
791
794
  # @return [GatewayResource] operation results.
792
795
  #
793
- def begin_update(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
794
- response = begin_update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value!
796
+ def begin_update(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
797
+ response = begin_update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value!
795
798
  response.body unless response.nil?
796
799
  end
797
800
 
@@ -812,8 +815,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
812
815
  #
813
816
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
814
817
  #
815
- def begin_update_with_http_info(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
816
- begin_update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value!
818
+ def begin_update_with_http_info(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
819
+ begin_update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value!
817
820
  end
818
821
 
819
822
  #
@@ -833,7 +836,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
833
836
  #
834
837
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
835
838
  #
836
- def begin_update_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil)
839
+ def begin_update_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil)
837
840
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
838
841
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
839
842
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -852,13 +855,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
852
855
  end
853
856
 
854
857
  request_headers = {}
858
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
855
859
 
856
860
  # Set Headers
857
861
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
858
862
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
859
863
 
860
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
861
-
862
864
  # Serialize Request
863
865
  request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayParameters.mapper()
864
866
  request_content = @client.serialize(request_mapper, gateway_parameters)
@@ -915,8 +917,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
915
917
  # will be added to the HTTP request.
916
918
  #
917
919
  #
918
- def begin_upgrade(resource_group_name, gateway_name, custom_headers = nil)
919
- response = begin_upgrade_async(resource_group_name, gateway_name, custom_headers).value!
920
+ def begin_upgrade(resource_group_name, gateway_name, custom_headers:nil)
921
+ response = begin_upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
920
922
  nil
921
923
  end
922
924
 
@@ -931,8 +933,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
931
933
  #
932
934
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
933
935
  #
934
- def begin_upgrade_with_http_info(resource_group_name, gateway_name, custom_headers = nil)
935
- begin_upgrade_async(resource_group_name, gateway_name, custom_headers).value!
936
+ def begin_upgrade_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
937
+ begin_upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
936
938
  end
937
939
 
938
940
  #
@@ -946,7 +948,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
946
948
  #
947
949
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
948
950
  #
949
- def begin_upgrade_async(resource_group_name, gateway_name, custom_headers = nil)
951
+ def begin_upgrade_async(resource_group_name, gateway_name, custom_headers:nil)
950
952
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
951
953
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
952
954
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -959,6 +961,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
959
961
 
960
962
 
961
963
  request_headers = {}
964
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
962
965
 
963
966
  # Set Headers
964
967
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1003,8 +1006,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1003
1006
  # will be added to the HTTP request.
1004
1007
  #
1005
1008
  #
1006
- def begin_regenerate_profile(resource_group_name, gateway_name, custom_headers = nil)
1007
- response = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers).value!
1009
+ def begin_regenerate_profile(resource_group_name, gateway_name, custom_headers:nil)
1010
+ response = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
1008
1011
  nil
1009
1012
  end
1010
1013
 
@@ -1019,8 +1022,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1019
1022
  #
1020
1023
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1021
1024
  #
1022
- def begin_regenerate_profile_with_http_info(resource_group_name, gateway_name, custom_headers = nil)
1023
- begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers).value!
1025
+ def begin_regenerate_profile_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
1026
+ begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
1024
1027
  end
1025
1028
 
1026
1029
  #
@@ -1034,7 +1037,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1034
1037
  #
1035
1038
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1036
1039
  #
1037
- def begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers = nil)
1040
+ def begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:nil)
1038
1041
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1039
1042
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1040
1043
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1047,6 +1050,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1047
1050
 
1048
1051
 
1049
1052
  request_headers = {}
1053
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1050
1054
 
1051
1055
  # Set Headers
1052
1056
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1092,8 +1096,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1092
1096
  #
1093
1097
  # @return [GatewayProfile] operation results.
1094
1098
  #
1095
- def begin_get_profile(resource_group_name, gateway_name, custom_headers = nil)
1096
- response = begin_get_profile_async(resource_group_name, gateway_name, custom_headers).value!
1099
+ def begin_get_profile(resource_group_name, gateway_name, custom_headers:nil)
1100
+ response = begin_get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
1097
1101
  response.body unless response.nil?
1098
1102
  end
1099
1103
 
@@ -1108,8 +1112,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1108
1112
  #
1109
1113
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1110
1114
  #
1111
- def begin_get_profile_with_http_info(resource_group_name, gateway_name, custom_headers = nil)
1112
- begin_get_profile_async(resource_group_name, gateway_name, custom_headers).value!
1115
+ def begin_get_profile_with_http_info(resource_group_name, gateway_name, custom_headers:nil)
1116
+ begin_get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value!
1113
1117
  end
1114
1118
 
1115
1119
  #
@@ -1123,7 +1127,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1123
1127
  #
1124
1128
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1125
1129
  #
1126
- def begin_get_profile_async(resource_group_name, gateway_name, custom_headers = nil)
1130
+ def begin_get_profile_async(resource_group_name, gateway_name, custom_headers:nil)
1127
1131
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1128
1132
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1129
1133
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1136,6 +1140,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1136
1140
 
1137
1141
 
1138
1142
  request_headers = {}
1143
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1139
1144
 
1140
1145
  # Set Headers
1141
1146
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1190,8 +1195,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1190
1195
  #
1191
1196
  # @return [GatewayResources] operation results.
1192
1197
  #
1193
- def list_next(next_page_link, custom_headers = nil)
1194
- response = list_next_async(next_page_link, custom_headers).value!
1198
+ def list_next(next_page_link, custom_headers:nil)
1199
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1195
1200
  response.body unless response.nil?
1196
1201
  end
1197
1202
 
@@ -1205,8 +1210,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1205
1210
  #
1206
1211
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1207
1212
  #
1208
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1209
- list_next_async(next_page_link, custom_headers).value!
1213
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1214
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1210
1215
  end
1211
1216
 
1212
1217
  #
@@ -1219,11 +1224,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1219
1224
  #
1220
1225
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1221
1226
  #
1222
- def list_next_async(next_page_link, custom_headers = nil)
1227
+ def list_next_async(next_page_link, custom_headers:nil)
1223
1228
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1224
1229
 
1225
1230
 
1226
1231
  request_headers = {}
1232
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1227
1233
 
1228
1234
  # Set Headers
1229
1235
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1277,8 +1283,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1277
1283
  #
1278
1284
  # @return [GatewayResources] operation results.
1279
1285
  #
1280
- def list_for_resource_group_next(next_page_link, custom_headers = nil)
1281
- response = list_for_resource_group_next_async(next_page_link, custom_headers).value!
1286
+ def list_for_resource_group_next(next_page_link, custom_headers:nil)
1287
+ response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1282
1288
  response.body unless response.nil?
1283
1289
  end
1284
1290
 
@@ -1292,8 +1298,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1292
1298
  #
1293
1299
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1294
1300
  #
1295
- def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1296
- list_for_resource_group_next_async(next_page_link, custom_headers).value!
1301
+ def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1302
+ list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1297
1303
  end
1298
1304
 
1299
1305
  #
@@ -1306,11 +1312,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1306
1312
  #
1307
1313
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1308
1314
  #
1309
- def list_for_resource_group_next_async(next_page_link, custom_headers = nil)
1315
+ def list_for_resource_group_next_async(next_page_link, custom_headers:nil)
1310
1316
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1311
1317
 
1312
1318
 
1313
1319
  request_headers = {}
1320
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1314
1321
 
1315
1322
  # Set Headers
1316
1323
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1363,12 +1370,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1363
1370
  # @return [GatewayResources] which provide lazy access to pages of the
1364
1371
  # response.
1365
1372
  #
1366
- def list_as_lazy(custom_headers = nil)
1367
- response = list_async(custom_headers).value!
1373
+ def list_as_lazy(custom_headers:nil)
1374
+ response = list_async(custom_headers:custom_headers).value!
1368
1375
  unless response.nil?
1369
1376
  page = response.body
1370
1377
  page.next_method = Proc.new do |next_page_link|
1371
- list_next_async(next_page_link, custom_headers)
1378
+ list_next_async(next_page_link, custom_headers:custom_headers)
1372
1379
  end
1373
1380
  page
1374
1381
  end
@@ -1385,12 +1392,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
1385
1392
  # @return [GatewayResources] which provide lazy access to pages of the
1386
1393
  # response.
1387
1394
  #
1388
- def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1389
- response = list_for_resource_group_async(resource_group_name, custom_headers).value!
1395
+ def list_for_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1396
+ response = list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1390
1397
  unless response.nil?
1391
1398
  page = response.body
1392
1399
  page.next_method = Proc.new do |next_page_link|
1393
- list_for_resource_group_next_async(next_page_link, custom_headers)
1400
+ list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1394
1401
  end
1395
1402
  page
1396
1403
  end