azure_mgmt_server_management 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_server_management.rb +1 -1
  3. data/lib/generated/azure_mgmt_server_management/gateway.rb +38 -39
  4. data/lib/generated/azure_mgmt_server_management/models/credential_data_format.rb +1 -1
  5. data/lib/generated/azure_mgmt_server_management/models/encryption_jwk_resource.rb +2 -1
  6. data/lib/generated/azure_mgmt_server_management/models/error.rb +2 -1
  7. data/lib/generated/azure_mgmt_server_management/models/gateway_expand_option.rb +1 -1
  8. data/lib/generated/azure_mgmt_server_management/models/gateway_parameters.rb +2 -1
  9. data/lib/generated/azure_mgmt_server_management/models/gateway_profile.rb +2 -1
  10. data/lib/generated/azure_mgmt_server_management/models/gateway_resource.rb +2 -1
  11. data/lib/generated/azure_mgmt_server_management/models/gateway_resources.rb +2 -1
  12. data/lib/generated/azure_mgmt_server_management/models/gateway_status.rb +2 -1
  13. data/lib/generated/azure_mgmt_server_management/models/node_parameters.rb +2 -1
  14. data/lib/generated/azure_mgmt_server_management/models/node_resource.rb +2 -1
  15. data/lib/generated/azure_mgmt_server_management/models/node_resources.rb +2 -1
  16. data/lib/generated/azure_mgmt_server_management/models/power_shell_command_parameters.rb +2 -1
  17. data/lib/generated/azure_mgmt_server_management/models/power_shell_command_result.rb +2 -1
  18. data/lib/generated/azure_mgmt_server_management/models/power_shell_command_results.rb +2 -1
  19. data/lib/generated/azure_mgmt_server_management/models/power_shell_command_status.rb +2 -1
  20. data/lib/generated/azure_mgmt_server_management/models/power_shell_expand_option.rb +1 -1
  21. data/lib/generated/azure_mgmt_server_management/models/power_shell_session_resource.rb +2 -1
  22. data/lib/generated/azure_mgmt_server_management/models/power_shell_session_resources.rb +2 -1
  23. data/lib/generated/azure_mgmt_server_management/models/power_shell_tab_completion_parameters.rb +2 -1
  24. data/lib/generated/azure_mgmt_server_management/models/power_shell_tab_completion_results.rb +2 -1
  25. data/lib/generated/azure_mgmt_server_management/models/prompt_field_description.rb +2 -1
  26. data/lib/generated/azure_mgmt_server_management/models/prompt_field_type.rb +1 -1
  27. data/lib/generated/azure_mgmt_server_management/models/prompt_message_response.rb +2 -1
  28. data/lib/generated/azure_mgmt_server_management/models/resource.rb +2 -1
  29. data/lib/generated/azure_mgmt_server_management/models/retention_period.rb +1 -1
  30. data/lib/generated/azure_mgmt_server_management/models/session_parameters.rb +2 -1
  31. data/lib/generated/azure_mgmt_server_management/models/session_resource.rb +2 -1
  32. data/lib/generated/azure_mgmt_server_management/models/upgrade_mode.rb +1 -1
  33. data/lib/generated/azure_mgmt_server_management/models/version.rb +2 -1
  34. data/lib/generated/azure_mgmt_server_management/module_definition.rb +1 -1
  35. data/lib/generated/azure_mgmt_server_management/node.rb +31 -32
  36. data/lib/generated/azure_mgmt_server_management/power_shell.rb +34 -35
  37. data/lib/generated/azure_mgmt_server_management/server_management.rb +1 -1
  38. data/lib/generated/azure_mgmt_server_management/session.rb +14 -15
  39. data/lib/generated/azure_mgmt_server_management/version.rb +2 -2
  40. metadata +4 -4
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<PowerShellCommandResult>]
16
17
  attr_accessor :results
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<PowerShellCommandResult>]
16
17
  attr_accessor :results
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -13,6 +13,7 @@ module Azure::ARM::ServerManagement
13
13
 
14
14
  include MsRestAzure
15
15
 
16
+ include MsRest::JSONable
16
17
  # @return [String] The PowerShell Session ID.
17
18
  attr_accessor :session_id
18
19
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<PowerShellSessionResource>] Collection of PowerShell
16
17
  # session resources.
17
18
  attr_accessor :value
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] Command to get tab completion for.
16
17
  attr_accessor :command
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -13,6 +13,7 @@ module Azure::ARM::ServerManagement
13
13
 
14
14
  include MsRestAzure
15
15
 
16
+ include MsRest::JSONable
16
17
  # @return [Array<String>]
17
18
  attr_accessor :results
18
19
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] The name of the prompt.
16
17
  attr_accessor :name
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<String>] The list of responses a cmdlet expects.
16
17
  attr_accessor :response
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String]
16
17
  attr_accessor :etag
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] Encrypted User name to be used to connect to node.
16
17
  attr_accessor :user_name
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] The username connecting to the session.
16
17
  attr_accessor :user_name
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::ServerManagement
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Integer] The leftmost number of the version.
16
17
  attr_accessor :major
17
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,7 +8,6 @@ module Azure::ARM::ServerManagement
8
8
  # REST API for Azure Server Management Service.
9
9
  #
10
10
  class Node
11
- include Azure::ARM::ServerManagement::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -67,8 +66,8 @@ module Azure::ARM::ServerManagement
67
66
  promise = promise.then do |response|
68
67
  # Defining deserialization method.
69
68
  deserialize_method = lambda do |parsed_response|
70
- result_mapper = NodeResource.mapper()
71
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
69
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
70
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
72
71
  end
73
72
 
74
73
  # Waiting for response.
@@ -123,8 +122,8 @@ module Azure::ARM::ServerManagement
123
122
  promise = promise.then do |response|
124
123
  # Defining deserialization method.
125
124
  deserialize_method = lambda do |parsed_response|
126
- result_mapper = NodeResource.mapper()
127
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
125
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
126
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
128
127
  end
129
128
 
130
129
  # Waiting for response.
@@ -187,7 +186,7 @@ module Azure::ARM::ServerManagement
187
186
  # Set Headers
188
187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
189
188
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
190
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
189
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
191
190
 
192
191
  request_url = @base_url || @client.base_url
193
192
 
@@ -271,7 +270,7 @@ module Azure::ARM::ServerManagement
271
270
  # Set Headers
272
271
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
273
272
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
274
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
273
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
275
274
 
276
275
  request_url = @base_url || @client.base_url
277
276
 
@@ -298,8 +297,8 @@ module Azure::ARM::ServerManagement
298
297
  if status_code == 200
299
298
  begin
300
299
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
301
- result_mapper = NodeResource.mapper()
302
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
300
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
301
+ result.body = @client.deserialize(result_mapper, parsed_response)
303
302
  rescue Exception => e
304
303
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
305
304
  end
@@ -354,7 +353,7 @@ module Azure::ARM::ServerManagement
354
353
  # Set Headers
355
354
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
356
355
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
357
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.ServerManagement/nodes'
356
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ServerManagement/nodes'
358
357
 
359
358
  request_url = @base_url || @client.base_url
360
359
 
@@ -381,8 +380,8 @@ module Azure::ARM::ServerManagement
381
380
  if status_code == 200
382
381
  begin
383
382
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
384
- result_mapper = NodeResources.mapper()
385
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
383
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
384
+ result.body = @client.deserialize(result_mapper, parsed_response)
386
385
  rescue Exception => e
387
386
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
388
387
  end
@@ -444,7 +443,7 @@ module Azure::ARM::ServerManagement
444
443
  # Set Headers
445
444
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
446
445
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
447
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes'
446
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes'
448
447
 
449
448
  request_url = @base_url || @client.base_url
450
449
 
@@ -471,8 +470,8 @@ module Azure::ARM::ServerManagement
471
470
  if status_code == 200
472
471
  begin
473
472
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
474
- result_mapper = NodeResources.mapper()
475
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
473
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
474
+ result.body = @client.deserialize(result_mapper, parsed_response)
476
475
  rescue Exception => e
477
476
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
478
477
  end
@@ -569,11 +568,11 @@ module Azure::ARM::ServerManagement
569
568
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
570
569
 
571
570
  # Serialize Request
572
- request_mapper = NodeParameters.mapper()
573
- request_content = @client.serialize(request_mapper, gateway_parameters, 'gateway_parameters')
571
+ request_mapper = Azure::ARM::ServerManagement::Models::NodeParameters.mapper()
572
+ request_content = @client.serialize(request_mapper, gateway_parameters)
574
573
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
575
574
 
576
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
575
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
577
576
 
578
577
  request_url = @base_url || @client.base_url
579
578
 
@@ -601,8 +600,8 @@ module Azure::ARM::ServerManagement
601
600
  if status_code == 200
602
601
  begin
603
602
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
604
- result_mapper = NodeResource.mapper()
605
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
603
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
604
+ result.body = @client.deserialize(result_mapper, parsed_response)
606
605
  rescue Exception => e
607
606
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
608
607
  end
@@ -611,8 +610,8 @@ module Azure::ARM::ServerManagement
611
610
  if status_code == 201
612
611
  begin
613
612
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
614
- result_mapper = NodeResource.mapper()
615
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
613
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
614
+ result.body = @client.deserialize(result_mapper, parsed_response)
616
615
  rescue Exception => e
617
616
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
618
617
  end
@@ -709,11 +708,11 @@ module Azure::ARM::ServerManagement
709
708
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
710
709
 
711
710
  # Serialize Request
712
- request_mapper = NodeParameters.mapper()
713
- request_content = @client.serialize(request_mapper, node_parameters, 'node_parameters')
711
+ request_mapper = Azure::ARM::ServerManagement::Models::NodeParameters.mapper()
712
+ request_content = @client.serialize(request_mapper, node_parameters)
714
713
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
715
714
 
716
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
715
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}'
717
716
 
718
717
  request_url = @base_url || @client.base_url
719
718
 
@@ -741,8 +740,8 @@ module Azure::ARM::ServerManagement
741
740
  if status_code == 200
742
741
  begin
743
742
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
744
- result_mapper = NodeResource.mapper()
745
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
743
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
744
+ result.body = @client.deserialize(result_mapper, parsed_response)
746
745
  rescue Exception => e
747
746
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
748
747
  end
@@ -828,8 +827,8 @@ module Azure::ARM::ServerManagement
828
827
  if status_code == 200
829
828
  begin
830
829
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
831
- result_mapper = NodeResources.mapper()
832
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
830
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
831
+ result.body = @client.deserialize(result_mapper, parsed_response)
833
832
  rescue Exception => e
834
833
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
835
834
  end
@@ -915,8 +914,8 @@ module Azure::ARM::ServerManagement
915
914
  if status_code == 200
916
915
  begin
917
916
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
918
- result_mapper = NodeResources.mapper()
919
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
917
+ result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
918
+ result.body = @client.deserialize(result_mapper, parsed_response)
920
919
  rescue Exception => e
921
920
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
922
921
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,7 +8,6 @@ module Azure::ARM::ServerManagement
8
8
  # REST API for Azure Server Management Service.
9
9
  #
10
10
  class PowerShell
11
- include Azure::ARM::ServerManagement::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -80,7 +79,7 @@ module Azure::ARM::ServerManagement
80
79
  # Set Headers
81
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
82
81
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
83
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions'
82
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions'
84
83
 
85
84
  request_url = @base_url || @client.base_url
86
85
 
@@ -107,8 +106,8 @@ module Azure::ARM::ServerManagement
107
106
  if status_code == 200
108
107
  begin
109
108
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
110
- result_mapper = PowerShellSessionResources.mapper()
111
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
109
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellSessionResources.mapper()
110
+ result.body = @client.deserialize(result_mapper, parsed_response)
112
111
  rescue Exception => e
113
112
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
114
113
  end
@@ -157,8 +156,8 @@ module Azure::ARM::ServerManagement
157
156
  promise = promise.then do |response|
158
157
  # Defining deserialization method.
159
158
  deserialize_method = lambda do |parsed_response|
160
- result_mapper = PowerShellSessionResource.mapper()
161
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
159
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellSessionResource.mapper()
160
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
162
161
  end
163
162
 
164
163
  # Waiting for response.
@@ -236,7 +235,7 @@ module Azure::ARM::ServerManagement
236
235
  # Set Headers
237
236
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
238
237
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
239
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}'
238
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}'
240
239
 
241
240
  request_url = @base_url || @client.base_url
242
241
 
@@ -263,8 +262,8 @@ module Azure::ARM::ServerManagement
263
262
  if status_code == 200
264
263
  begin
265
264
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
266
- result_mapper = PowerShellCommandStatus.mapper()
267
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
265
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandStatus.mapper()
266
+ result.body = @client.deserialize(result_mapper, parsed_response)
268
267
  rescue Exception => e
269
268
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
270
269
  end
@@ -313,8 +312,8 @@ module Azure::ARM::ServerManagement
313
312
  promise = promise.then do |response|
314
313
  # Defining deserialization method.
315
314
  deserialize_method = lambda do |parsed_response|
316
- result_mapper = PowerShellCommandResults.mapper()
317
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
315
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
316
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
318
317
  end
319
318
 
320
319
  # Waiting for response.
@@ -363,8 +362,8 @@ module Azure::ARM::ServerManagement
363
362
  promise = promise.then do |response|
364
363
  # Defining deserialization method.
365
364
  deserialize_method = lambda do |parsed_response|
366
- result_mapper = PowerShellCommandResults.mapper()
367
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
365
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
366
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
368
367
  end
369
368
 
370
369
  # Waiting for response.
@@ -411,8 +410,8 @@ module Azure::ARM::ServerManagement
411
410
  promise = promise.then do |response|
412
411
  # Defining deserialization method.
413
412
  deserialize_method = lambda do |parsed_response|
414
- result_mapper = PowerShellCommandResults.mapper()
415
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
413
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
414
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
416
415
  end
417
416
 
418
417
  # Waiting for response.
@@ -495,11 +494,11 @@ module Azure::ARM::ServerManagement
495
494
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
496
495
 
497
496
  # Serialize Request
498
- request_mapper = PowerShellTabCompletionParameters.mapper()
499
- request_content = @client.serialize(request_mapper, power_shell_tab_completion_paramters, 'power_shell_tab_completion_paramters')
497
+ request_mapper = Azure::ARM::ServerManagement::Models::PowerShellTabCompletionParameters.mapper()
498
+ request_content = @client.serialize(request_mapper, power_shell_tab_completion_paramters)
500
499
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
501
500
 
502
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/tab'
501
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/tab'
503
502
 
504
503
  request_url = @base_url || @client.base_url
505
504
 
@@ -527,8 +526,8 @@ module Azure::ARM::ServerManagement
527
526
  if status_code == 200
528
527
  begin
529
528
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
530
- result_mapper = PowerShellTabCompletionResults.mapper()
531
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
529
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellTabCompletionResults.mapper()
530
+ result.body = @client.deserialize(result_mapper, parsed_response)
532
531
  rescue Exception => e
533
532
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
534
533
  end
@@ -602,7 +601,7 @@ module Azure::ARM::ServerManagement
602
601
  # Set Headers
603
602
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
604
603
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
605
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}'
604
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}'
606
605
 
607
606
  request_url = @base_url || @client.base_url
608
607
 
@@ -629,8 +628,8 @@ module Azure::ARM::ServerManagement
629
628
  if status_code == 200
630
629
  begin
631
630
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
632
- result_mapper = PowerShellSessionResource.mapper()
633
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
631
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellSessionResource.mapper()
632
+ result.body = @client.deserialize(result_mapper, parsed_response)
634
633
  rescue Exception => e
635
634
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
636
635
  end
@@ -704,7 +703,7 @@ module Azure::ARM::ServerManagement
704
703
  # Set Headers
705
704
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
706
705
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
707
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}'
706
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}'
708
707
 
709
708
  request_url = @base_url || @client.base_url
710
709
 
@@ -731,8 +730,8 @@ module Azure::ARM::ServerManagement
731
730
  if status_code == 200
732
731
  begin
733
732
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
734
- result_mapper = PowerShellCommandResults.mapper()
735
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
733
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
734
+ result.body = @client.deserialize(result_mapper, parsed_response)
736
735
  rescue Exception => e
737
736
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
738
737
  end
@@ -817,11 +816,11 @@ module Azure::ARM::ServerManagement
817
816
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
818
817
 
819
818
  # Serialize Request
820
- request_mapper = PowerShellCommandParameters.mapper()
821
- request_content = @client.serialize(request_mapper, power_shell_command_parameters, 'power_shell_command_parameters')
819
+ request_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandParameters.mapper()
820
+ request_content = @client.serialize(request_mapper, power_shell_command_parameters)
822
821
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
823
822
 
824
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/invokeCommand'
823
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/invokeCommand'
825
824
 
826
825
  request_url = @base_url || @client.base_url
827
826
 
@@ -849,8 +848,8 @@ module Azure::ARM::ServerManagement
849
848
  if status_code == 200
850
849
  begin
851
850
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
852
- result_mapper = PowerShellCommandResults.mapper()
853
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
851
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
852
+ result.body = @client.deserialize(result_mapper, parsed_response)
854
853
  rescue Exception => e
855
854
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
856
855
  end
@@ -924,7 +923,7 @@ module Azure::ARM::ServerManagement
924
923
  # Set Headers
925
924
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
926
925
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
927
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/cancel'
926
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServerManagement/nodes/{nodeName}/sessions/{session}/features/powerShellConsole/pssessions/{pssession}/cancel'
928
927
 
929
928
  request_url = @base_url || @client.base_url
930
929
 
@@ -951,8 +950,8 @@ module Azure::ARM::ServerManagement
951
950
  if status_code == 200
952
951
  begin
953
952
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
954
- result_mapper = PowerShellCommandResults.mapper()
955
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
953
+ result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
954
+ result.body = @client.deserialize(result_mapper, parsed_response)
956
955
  rescue Exception => e
957
956
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
958
957
  end