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 +4 -4
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/gateway.rb +92 -85
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/node.rb +62 -58
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb +58 -55
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/server_management.rb +4 -1
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb +22 -21
- data/lib/profiles/latest/modules/servermanagement_profile_module.rb +121 -102
- data/lib/profiles/latest/servermanagement_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/servermanagement_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -38,8 +38,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
38
38
|
#
|
39
39
|
# @return [NodeResource] operation results.
|
40
40
|
#
|
41
|
-
def create(resource_group_name, node_name, location
|
42
|
-
response = create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value!
|
41
|
+
def create(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
42
|
+
response = create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, 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, node_name, location
|
62
|
+
def create_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
63
63
|
# Send request
|
64
|
-
promise = begin_create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers)
|
64
|
+
promise = begin_create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, 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 [NodeResource] operation results.
|
96
96
|
#
|
97
|
-
def update(resource_group_name, node_name, location
|
98
|
-
response = update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value!
|
97
|
+
def update(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
98
|
+
response = update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, 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, node_name, location
|
118
|
+
def update_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
119
119
|
# Send request
|
120
|
-
promise = begin_update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers)
|
120
|
+
promise = begin_update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, 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, node_name, custom_headers
|
147
|
-
response = delete_async(resource_group_name, node_name, custom_headers).value!
|
146
|
+
def delete(resource_group_name, node_name, custom_headers:nil)
|
147
|
+
response = delete_async(resource_group_name, node_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, node_name, custom_headers
|
163
|
-
delete_async(resource_group_name, node_name, custom_headers).value!
|
162
|
+
def delete_with_http_info(resource_group_name, node_name, custom_headers:nil)
|
163
|
+
delete_async(resource_group_name, node_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, node_name, custom_headers
|
177
|
+
def delete_async(resource_group_name, node_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
|
@@ -232,8 +233,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
232
233
|
#
|
233
234
|
# @return [NodeResource] operation results.
|
234
235
|
#
|
235
|
-
def get(resource_group_name, node_name, custom_headers
|
236
|
-
response = get_async(resource_group_name, node_name, custom_headers).value!
|
236
|
+
def get(resource_group_name, node_name, custom_headers:nil)
|
237
|
+
response = get_async(resource_group_name, node_name, custom_headers:custom_headers).value!
|
237
238
|
response.body unless response.nil?
|
238
239
|
end
|
239
240
|
|
@@ -248,8 +249,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
248
249
|
#
|
249
250
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
250
251
|
#
|
251
|
-
def get_with_http_info(resource_group_name, node_name, custom_headers
|
252
|
-
get_async(resource_group_name, node_name, custom_headers).value!
|
252
|
+
def get_with_http_info(resource_group_name, node_name, custom_headers:nil)
|
253
|
+
get_async(resource_group_name, node_name, custom_headers:custom_headers).value!
|
253
254
|
end
|
254
255
|
|
255
256
|
#
|
@@ -263,7 +264,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
263
264
|
#
|
264
265
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
265
266
|
#
|
266
|
-
def get_async(resource_group_name, node_name, custom_headers
|
267
|
+
def get_async(resource_group_name, node_name, custom_headers:nil)
|
267
268
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
268
269
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
269
270
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -276,6 +277,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
276
277
|
|
277
278
|
|
278
279
|
request_headers = {}
|
280
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
279
281
|
|
280
282
|
# Set Headers
|
281
283
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -328,8 +330,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
328
330
|
#
|
329
331
|
# @return [Array<NodeResource>] operation results.
|
330
332
|
#
|
331
|
-
def list(custom_headers
|
332
|
-
first_page = list_as_lazy(custom_headers)
|
333
|
+
def list(custom_headers:nil)
|
334
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
333
335
|
first_page.get_all_items
|
334
336
|
end
|
335
337
|
|
@@ -341,8 +343,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
341
343
|
#
|
342
344
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
343
345
|
#
|
344
|
-
def list_with_http_info(custom_headers
|
345
|
-
list_async(custom_headers).value!
|
346
|
+
def list_with_http_info(custom_headers:nil)
|
347
|
+
list_async(custom_headers:custom_headers).value!
|
346
348
|
end
|
347
349
|
|
348
350
|
#
|
@@ -353,12 +355,13 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
353
355
|
#
|
354
356
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
355
357
|
#
|
356
|
-
def list_async(custom_headers
|
358
|
+
def list_async(custom_headers:nil)
|
357
359
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
358
360
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
359
361
|
|
360
362
|
|
361
363
|
request_headers = {}
|
364
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
362
365
|
|
363
366
|
# Set Headers
|
364
367
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -413,8 +416,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
413
416
|
#
|
414
417
|
# @return [Array<NodeResource>] operation results.
|
415
418
|
#
|
416
|
-
def list_for_resource_group(resource_group_name, custom_headers
|
417
|
-
first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers)
|
419
|
+
def list_for_resource_group(resource_group_name, custom_headers:nil)
|
420
|
+
first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
418
421
|
first_page.get_all_items
|
419
422
|
end
|
420
423
|
|
@@ -428,8 +431,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
428
431
|
#
|
429
432
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
430
433
|
#
|
431
|
-
def list_for_resource_group_with_http_info(resource_group_name, custom_headers
|
432
|
-
list_for_resource_group_async(resource_group_name, custom_headers).value!
|
434
|
+
def list_for_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
435
|
+
list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
433
436
|
end
|
434
437
|
|
435
438
|
#
|
@@ -442,7 +445,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
442
445
|
#
|
443
446
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
444
447
|
#
|
445
|
-
def list_for_resource_group_async(resource_group_name, custom_headers
|
448
|
+
def list_for_resource_group_async(resource_group_name, custom_headers:nil)
|
446
449
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
447
450
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
448
451
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -451,6 +454,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
451
454
|
|
452
455
|
|
453
456
|
request_headers = {}
|
457
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
454
458
|
|
455
459
|
# Set Headers
|
456
460
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -512,8 +516,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
512
516
|
#
|
513
517
|
# @return [NodeResource] operation results.
|
514
518
|
#
|
515
|
-
def begin_create(resource_group_name, node_name, location
|
516
|
-
response = begin_create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value!
|
519
|
+
def begin_create(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
520
|
+
response = begin_create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value!
|
517
521
|
response.body unless response.nil?
|
518
522
|
end
|
519
523
|
|
@@ -534,8 +538,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
534
538
|
#
|
535
539
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
536
540
|
#
|
537
|
-
def begin_create_with_http_info(resource_group_name, node_name, location
|
538
|
-
begin_create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value!
|
541
|
+
def begin_create_with_http_info(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
542
|
+
begin_create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value!
|
539
543
|
end
|
540
544
|
|
541
545
|
#
|
@@ -555,7 +559,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
555
559
|
#
|
556
560
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
557
561
|
#
|
558
|
-
def begin_create_async(resource_group_name, node_name, location
|
562
|
+
def begin_create_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
559
563
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
560
564
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
561
565
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -577,13 +581,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
577
581
|
end
|
578
582
|
|
579
583
|
request_headers = {}
|
584
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
580
585
|
|
581
586
|
# Set Headers
|
582
587
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
583
588
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
584
589
|
|
585
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
586
|
-
|
587
590
|
# Serialize Request
|
588
591
|
request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeParameters.mapper()
|
589
592
|
request_content = @client.serialize(request_mapper, gateway_parameters)
|
@@ -657,8 +660,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
657
660
|
#
|
658
661
|
# @return [NodeResource] operation results.
|
659
662
|
#
|
660
|
-
def begin_update(resource_group_name, node_name, location
|
661
|
-
response = begin_update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value!
|
663
|
+
def begin_update(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
664
|
+
response = begin_update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value!
|
662
665
|
response.body unless response.nil?
|
663
666
|
end
|
664
667
|
|
@@ -679,8 +682,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
679
682
|
#
|
680
683
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
681
684
|
#
|
682
|
-
def begin_update_with_http_info(resource_group_name, node_name, location
|
683
|
-
begin_update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value!
|
685
|
+
def begin_update_with_http_info(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
686
|
+
begin_update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value!
|
684
687
|
end
|
685
688
|
|
686
689
|
#
|
@@ -700,7 +703,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
700
703
|
#
|
701
704
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
702
705
|
#
|
703
|
-
def begin_update_async(resource_group_name, node_name, location
|
706
|
+
def begin_update_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil)
|
704
707
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
705
708
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
706
709
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -722,13 +725,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
722
725
|
end
|
723
726
|
|
724
727
|
request_headers = {}
|
728
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
725
729
|
|
726
730
|
# Set Headers
|
727
731
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
728
732
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
729
733
|
|
730
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
731
|
-
|
732
734
|
# Serialize Request
|
733
735
|
request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeParameters.mapper()
|
734
736
|
request_content = @client.serialize(request_mapper, node_parameters)
|
@@ -785,8 +787,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
785
787
|
#
|
786
788
|
# @return [NodeResources] operation results.
|
787
789
|
#
|
788
|
-
def list_next(next_page_link, custom_headers
|
789
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
790
|
+
def list_next(next_page_link, custom_headers:nil)
|
791
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
790
792
|
response.body unless response.nil?
|
791
793
|
end
|
792
794
|
|
@@ -800,8 +802,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
800
802
|
#
|
801
803
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
802
804
|
#
|
803
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
804
|
-
list_next_async(next_page_link, custom_headers).value!
|
805
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
806
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
805
807
|
end
|
806
808
|
|
807
809
|
#
|
@@ -814,11 +816,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
814
816
|
#
|
815
817
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
816
818
|
#
|
817
|
-
def list_next_async(next_page_link, custom_headers
|
819
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
818
820
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
819
821
|
|
820
822
|
|
821
823
|
request_headers = {}
|
824
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
822
825
|
|
823
826
|
# Set Headers
|
824
827
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -872,8 +875,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
872
875
|
#
|
873
876
|
# @return [NodeResources] operation results.
|
874
877
|
#
|
875
|
-
def list_for_resource_group_next(next_page_link, custom_headers
|
876
|
-
response = list_for_resource_group_next_async(next_page_link, custom_headers).value!
|
878
|
+
def list_for_resource_group_next(next_page_link, custom_headers:nil)
|
879
|
+
response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
877
880
|
response.body unless response.nil?
|
878
881
|
end
|
879
882
|
|
@@ -887,8 +890,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
887
890
|
#
|
888
891
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
889
892
|
#
|
890
|
-
def list_for_resource_group_next_with_http_info(next_page_link, custom_headers
|
891
|
-
list_for_resource_group_next_async(next_page_link, custom_headers).value!
|
893
|
+
def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
894
|
+
list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
892
895
|
end
|
893
896
|
|
894
897
|
#
|
@@ -901,11 +904,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
901
904
|
#
|
902
905
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
903
906
|
#
|
904
|
-
def list_for_resource_group_next_async(next_page_link, custom_headers
|
907
|
+
def list_for_resource_group_next_async(next_page_link, custom_headers:nil)
|
905
908
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
906
909
|
|
907
910
|
|
908
911
|
request_headers = {}
|
912
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
909
913
|
|
910
914
|
# Set Headers
|
911
915
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -957,12 +961,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
957
961
|
#
|
958
962
|
# @return [NodeResources] which provide lazy access to pages of the response.
|
959
963
|
#
|
960
|
-
def list_as_lazy(custom_headers
|
961
|
-
response = list_async(custom_headers).value!
|
964
|
+
def list_as_lazy(custom_headers:nil)
|
965
|
+
response = list_async(custom_headers:custom_headers).value!
|
962
966
|
unless response.nil?
|
963
967
|
page = response.body
|
964
968
|
page.next_method = Proc.new do |next_page_link|
|
965
|
-
list_next_async(next_page_link, custom_headers)
|
969
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
966
970
|
end
|
967
971
|
page
|
968
972
|
end
|
@@ -978,12 +982,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
978
982
|
#
|
979
983
|
# @return [NodeResources] which provide lazy access to pages of the response.
|
980
984
|
#
|
981
|
-
def list_for_resource_group_as_lazy(resource_group_name, custom_headers
|
982
|
-
response = list_for_resource_group_async(resource_group_name, custom_headers).value!
|
985
|
+
def list_for_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
986
|
+
response = list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
983
987
|
unless response.nil?
|
984
988
|
page = response.body
|
985
989
|
page.next_method = Proc.new do |next_page_link|
|
986
|
-
list_for_resource_group_next_async(next_page_link, custom_headers)
|
990
|
+
list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
987
991
|
end
|
988
992
|
page
|
989
993
|
end
|
@@ -33,8 +33,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
33
33
|
#
|
34
34
|
# @return [PowerShellSessionResources] operation results.
|
35
35
|
#
|
36
|
-
def list_session(resource_group_name, node_name, session, custom_headers
|
37
|
-
response = list_session_async(resource_group_name, node_name, session, custom_headers).value!
|
36
|
+
def list_session(resource_group_name, node_name, session, custom_headers:nil)
|
37
|
+
response = list_session_async(resource_group_name, node_name, session, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
39
39
|
end
|
40
40
|
|
@@ -50,8 +50,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
50
50
|
#
|
51
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
52
|
#
|
53
|
-
def list_session_with_http_info(resource_group_name, node_name, session, custom_headers
|
54
|
-
list_session_async(resource_group_name, node_name, session, custom_headers).value!
|
53
|
+
def list_session_with_http_info(resource_group_name, node_name, session, custom_headers:nil)
|
54
|
+
list_session_async(resource_group_name, node_name, session, custom_headers:custom_headers).value!
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
@@ -66,7 +66,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
66
66
|
#
|
67
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
68
|
#
|
69
|
-
def list_session_async(resource_group_name, node_name, session, custom_headers
|
69
|
+
def list_session_async(resource_group_name, node_name, session, custom_headers:nil)
|
70
70
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
71
71
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
72
72
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -80,6 +80,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
80
80
|
|
81
81
|
|
82
82
|
request_headers = {}
|
83
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
84
|
|
84
85
|
# Set Headers
|
85
86
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -137,8 +138,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
137
138
|
#
|
138
139
|
# @return [PowerShellSessionResource] operation results.
|
139
140
|
#
|
140
|
-
def create_session(resource_group_name, node_name, session, pssession, custom_headers
|
141
|
-
response = create_session_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
141
|
+
def create_session(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
142
|
+
response = create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
142
143
|
response.body unless response.nil?
|
143
144
|
end
|
144
145
|
|
@@ -154,9 +155,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
154
155
|
# @return [Concurrent::Promise] promise which provides async access to http
|
155
156
|
# response.
|
156
157
|
#
|
157
|
-
def create_session_async(resource_group_name, node_name, session, pssession, custom_headers
|
158
|
+
def create_session_async(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
158
159
|
# Send request
|
159
|
-
promise = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers)
|
160
|
+
promise = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers)
|
160
161
|
|
161
162
|
promise = promise.then do |response|
|
162
163
|
# Defining deserialization method.
|
@@ -187,8 +188,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
187
188
|
#
|
188
189
|
# @return [PowerShellCommandStatus] operation results.
|
189
190
|
#
|
190
|
-
def get_command_status(resource_group_name, node_name, session, pssession, expand
|
191
|
-
response = get_command_status_async(resource_group_name, node_name, session, pssession, expand, custom_headers).value!
|
191
|
+
def get_command_status(resource_group_name, node_name, session, pssession, expand:nil, custom_headers:nil)
|
192
|
+
response = get_command_status_async(resource_group_name, node_name, session, pssession, expand:expand, custom_headers:custom_headers).value!
|
192
193
|
response.body unless response.nil?
|
193
194
|
end
|
194
195
|
|
@@ -207,8 +208,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
207
208
|
#
|
208
209
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
209
210
|
#
|
210
|
-
def get_command_status_with_http_info(resource_group_name, node_name, session, pssession, expand
|
211
|
-
get_command_status_async(resource_group_name, node_name, session, pssession, expand, custom_headers).value!
|
211
|
+
def get_command_status_with_http_info(resource_group_name, node_name, session, pssession, expand:nil, custom_headers:nil)
|
212
|
+
get_command_status_async(resource_group_name, node_name, session, pssession, expand:expand, custom_headers:custom_headers).value!
|
212
213
|
end
|
213
214
|
|
214
215
|
#
|
@@ -226,7 +227,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
226
227
|
#
|
227
228
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
228
229
|
#
|
229
|
-
def get_command_status_async(resource_group_name, node_name, session, pssession, expand
|
230
|
+
def get_command_status_async(resource_group_name, node_name, session, pssession, expand:nil, custom_headers:nil)
|
230
231
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
231
232
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
232
233
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -241,6 +242,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
241
242
|
|
242
243
|
|
243
244
|
request_headers = {}
|
245
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
244
246
|
|
245
247
|
# Set Headers
|
246
248
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -298,8 +300,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
298
300
|
#
|
299
301
|
# @return [PowerShellCommandResults] operation results.
|
300
302
|
#
|
301
|
-
def update_command(resource_group_name, node_name, session, pssession, custom_headers
|
302
|
-
response = update_command_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
303
|
+
def update_command(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
304
|
+
response = update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
303
305
|
response.body unless response.nil?
|
304
306
|
end
|
305
307
|
|
@@ -315,9 +317,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
315
317
|
# @return [Concurrent::Promise] promise which provides async access to http
|
316
318
|
# response.
|
317
319
|
#
|
318
|
-
def update_command_async(resource_group_name, node_name, session, pssession, custom_headers
|
320
|
+
def update_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
319
321
|
# Send request
|
320
|
-
promise = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers)
|
322
|
+
promise = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers)
|
321
323
|
|
322
324
|
promise = promise.then do |response|
|
323
325
|
# Defining deserialization method.
|
@@ -347,8 +349,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
347
349
|
#
|
348
350
|
# @return [PowerShellCommandResults] operation results.
|
349
351
|
#
|
350
|
-
def invoke_command(resource_group_name, node_name, session, pssession, command
|
351
|
-
response = invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers).value!
|
352
|
+
def invoke_command(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
353
|
+
response = invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value!
|
352
354
|
response.body unless response.nil?
|
353
355
|
end
|
354
356
|
|
@@ -365,9 +367,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
365
367
|
# @return [Concurrent::Promise] promise which provides async access to http
|
366
368
|
# response.
|
367
369
|
#
|
368
|
-
def invoke_command_async(resource_group_name, node_name, session, pssession, command
|
370
|
+
def invoke_command_async(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
369
371
|
# Send request
|
370
|
-
promise = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers)
|
372
|
+
promise = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers)
|
371
373
|
|
372
374
|
promise = promise.then do |response|
|
373
375
|
# Defining deserialization method.
|
@@ -396,8 +398,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
396
398
|
#
|
397
399
|
# @return [PowerShellCommandResults] operation results.
|
398
400
|
#
|
399
|
-
def cancel_command(resource_group_name, node_name, session, pssession, custom_headers
|
400
|
-
response = cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
401
|
+
def cancel_command(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
402
|
+
response = cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
401
403
|
response.body unless response.nil?
|
402
404
|
end
|
403
405
|
|
@@ -413,9 +415,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
413
415
|
# @return [Concurrent::Promise] promise which provides async access to http
|
414
416
|
# response.
|
415
417
|
#
|
416
|
-
def cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers
|
418
|
+
def cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
417
419
|
# Send request
|
418
|
-
promise = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers)
|
420
|
+
promise = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers)
|
419
421
|
|
420
422
|
promise = promise.then do |response|
|
421
423
|
# Defining deserialization method.
|
@@ -445,8 +447,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
445
447
|
#
|
446
448
|
# @return [PowerShellTabCompletionResults] operation results.
|
447
449
|
#
|
448
|
-
def tab_completion(resource_group_name, node_name, session, pssession, command
|
449
|
-
response = tab_completion_async(resource_group_name, node_name, session, pssession, command, custom_headers).value!
|
450
|
+
def tab_completion(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
451
|
+
response = tab_completion_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value!
|
450
452
|
response.body unless response.nil?
|
451
453
|
end
|
452
454
|
|
@@ -464,8 +466,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
464
466
|
#
|
465
467
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
466
468
|
#
|
467
|
-
def tab_completion_with_http_info(resource_group_name, node_name, session, pssession, command
|
468
|
-
tab_completion_async(resource_group_name, node_name, session, pssession, command, custom_headers).value!
|
469
|
+
def tab_completion_with_http_info(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
470
|
+
tab_completion_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value!
|
469
471
|
end
|
470
472
|
|
471
473
|
#
|
@@ -482,7 +484,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
482
484
|
#
|
483
485
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
484
486
|
#
|
485
|
-
def tab_completion_async(resource_group_name, node_name, session, pssession, command
|
487
|
+
def tab_completion_async(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
486
488
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
487
489
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
488
490
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -501,13 +503,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
501
503
|
end
|
502
504
|
|
503
505
|
request_headers = {}
|
506
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
504
507
|
|
505
508
|
# Set Headers
|
506
509
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
507
510
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
508
511
|
|
509
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
510
|
-
|
511
512
|
# Serialize Request
|
512
513
|
request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellTabCompletionParameters.mapper()
|
513
514
|
request_content = @client.serialize(request_mapper, power_shell_tab_completion_paramters)
|
@@ -567,8 +568,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
567
568
|
#
|
568
569
|
# @return [PowerShellSessionResource] operation results.
|
569
570
|
#
|
570
|
-
def begin_create_session(resource_group_name, node_name, session, pssession, custom_headers
|
571
|
-
response = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
571
|
+
def begin_create_session(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
572
|
+
response = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
572
573
|
response.body unless response.nil?
|
573
574
|
end
|
574
575
|
|
@@ -585,8 +586,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
585
586
|
#
|
586
587
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
587
588
|
#
|
588
|
-
def begin_create_session_with_http_info(resource_group_name, node_name, session, pssession, custom_headers
|
589
|
-
begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
589
|
+
def begin_create_session_with_http_info(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
590
|
+
begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
590
591
|
end
|
591
592
|
|
592
593
|
#
|
@@ -602,7 +603,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
602
603
|
#
|
603
604
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
604
605
|
#
|
605
|
-
def begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers
|
606
|
+
def begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
606
607
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
607
608
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
608
609
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -617,6 +618,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
617
618
|
|
618
619
|
|
619
620
|
request_headers = {}
|
621
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
620
622
|
|
621
623
|
# Set Headers
|
622
624
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -674,8 +676,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
674
676
|
#
|
675
677
|
# @return [PowerShellCommandResults] operation results.
|
676
678
|
#
|
677
|
-
def begin_update_command(resource_group_name, node_name, session, pssession, custom_headers
|
678
|
-
response = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
679
|
+
def begin_update_command(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
680
|
+
response = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
679
681
|
response.body unless response.nil?
|
680
682
|
end
|
681
683
|
|
@@ -692,8 +694,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
692
694
|
#
|
693
695
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
694
696
|
#
|
695
|
-
def begin_update_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers
|
696
|
-
begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
697
|
+
def begin_update_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
698
|
+
begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
697
699
|
end
|
698
700
|
|
699
701
|
#
|
@@ -709,7 +711,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
709
711
|
#
|
710
712
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
711
713
|
#
|
712
|
-
def begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers
|
714
|
+
def begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
713
715
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
714
716
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
715
717
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -724,6 +726,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
724
726
|
|
725
727
|
|
726
728
|
request_headers = {}
|
729
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
727
730
|
|
728
731
|
# Set Headers
|
729
732
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -782,8 +785,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
782
785
|
#
|
783
786
|
# @return [PowerShellCommandResults] operation results.
|
784
787
|
#
|
785
|
-
def begin_invoke_command(resource_group_name, node_name, session, pssession, command
|
786
|
-
response = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers).value!
|
788
|
+
def begin_invoke_command(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
789
|
+
response = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value!
|
787
790
|
response.body unless response.nil?
|
788
791
|
end
|
789
792
|
|
@@ -801,8 +804,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
801
804
|
#
|
802
805
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
803
806
|
#
|
804
|
-
def begin_invoke_command_with_http_info(resource_group_name, node_name, session, pssession, command
|
805
|
-
begin_invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers).value!
|
807
|
+
def begin_invoke_command_with_http_info(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
808
|
+
begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value!
|
806
809
|
end
|
807
810
|
|
808
811
|
#
|
@@ -819,7 +822,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
819
822
|
#
|
820
823
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
821
824
|
#
|
822
|
-
def begin_invoke_command_async(resource_group_name, node_name, session, pssession, command
|
825
|
+
def begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil)
|
823
826
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
824
827
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
825
828
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -838,13 +841,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
838
841
|
end
|
839
842
|
|
840
843
|
request_headers = {}
|
844
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
841
845
|
|
842
846
|
# Set Headers
|
843
847
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
844
848
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
845
849
|
|
846
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
847
|
-
|
848
850
|
# Serialize Request
|
849
851
|
request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandParameters.mapper()
|
850
852
|
request_content = @client.serialize(request_mapper, power_shell_command_parameters)
|
@@ -904,8 +906,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
904
906
|
#
|
905
907
|
# @return [PowerShellCommandResults] operation results.
|
906
908
|
#
|
907
|
-
def begin_cancel_command(resource_group_name, node_name, session, pssession, custom_headers
|
908
|
-
response = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
909
|
+
def begin_cancel_command(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
910
|
+
response = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
909
911
|
response.body unless response.nil?
|
910
912
|
end
|
911
913
|
|
@@ -922,8 +924,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
922
924
|
#
|
923
925
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
924
926
|
#
|
925
|
-
def begin_cancel_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers
|
926
|
-
begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers).value!
|
927
|
+
def begin_cancel_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
928
|
+
begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value!
|
927
929
|
end
|
928
930
|
|
929
931
|
#
|
@@ -939,7 +941,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
939
941
|
#
|
940
942
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
941
943
|
#
|
942
|
-
def begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers
|
944
|
+
def begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil)
|
943
945
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
944
946
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
945
947
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -954,6 +956,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
954
956
|
|
955
957
|
|
956
958
|
request_headers = {}
|
959
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
957
960
|
|
958
961
|
# Set Headers
|
959
962
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|