azure_mgmt_server_management 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-07-01-preview/generated/azure_mgmt_server_management.rb +61 -0
  3. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/gateway.rb +15 -15
  4. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/credential_data_format.rb +1 -1
  5. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/encryption_jwk_resource.rb +1 -1
  6. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/error.rb +1 -1
  7. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/gateway_expand_option.rb +1 -1
  8. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/gateway_parameters.rb +1 -1
  9. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/gateway_profile.rb +1 -1
  10. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/gateway_resource.rb +1 -1
  11. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/gateway_resources.rb +1 -1
  12. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/gateway_status.rb +1 -1
  13. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/node_parameters.rb +1 -1
  14. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/node_resource.rb +1 -1
  15. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/node_resources.rb +1 -1
  16. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_command_parameters.rb +1 -1
  17. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_command_result.rb +1 -1
  18. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_command_results.rb +1 -1
  19. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_command_status.rb +1 -1
  20. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_expand_option.rb +1 -1
  21. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_session_resource.rb +1 -1
  22. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_session_resources.rb +1 -1
  23. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_tab_completion_parameters.rb +1 -1
  24. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/power_shell_tab_completion_results.rb +1 -1
  25. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/prompt_field_description.rb +1 -1
  26. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/prompt_field_type.rb +1 -1
  27. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/prompt_message_response.rb +1 -1
  28. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/resource.rb +1 -1
  29. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/retention_period.rb +1 -1
  30. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/session_parameters.rb +1 -1
  31. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/session_resource.rb +1 -1
  32. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/upgrade_mode.rb +1 -1
  33. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/models/version.rb +1 -1
  34. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/module_definition.rb +3 -2
  35. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/node.rb +13 -13
  36. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/power_shell.rb +14 -14
  37. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/server_management.rb +3 -3
  38. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/session.rb +6 -6
  39. data/lib/{generated → 2016-07-01-preview/generated}/azure_mgmt_server_management/version.rb +2 -2
  40. data/lib/azure_mgmt_server_management.rb +2 -1
  41. data/lib/module_definition.rb +7 -0
  42. data/lib/profiles/common/configurable.rb +73 -0
  43. data/lib/profiles/common/default.rb +68 -0
  44. data/lib/profiles/latest/modules/servermanagement_profile_module.rb +168 -0
  45. data/lib/profiles/latest/servermanagement_latest_profile_client.rb +33 -0
  46. data/lib/profiles/latest/servermanagement_module_definition.rb +9 -0
  47. data/lib/version.rb +7 -0
  48. metadata +47 -40
  49. data/lib/generated/azure_mgmt_server_management.rb +0 -61
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  module Models
8
8
  #
9
9
  # Resource Manager Resource Information.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  module Models
8
8
  #
9
9
  # Defines values for RetentionPeriod
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  module Models
8
8
  #
9
9
  # Parameter collection for creation and other operations on sessions.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  module Models
8
8
  #
9
9
  # The session object.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  module Models
8
8
  #
9
9
  # Defines values for UpgradeMode
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  module Models
8
8
  #
9
9
  # A multipart-numeric version number.
@@ -4,5 +4,6 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure end
7
- module Azure::ARM end
8
- module Azure::ARM::ServerManagement end
7
+ module Azure::ServerManagement end
8
+ module Azure::ServerManagement::Mgmt end
9
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  #
8
8
  # REST API for Azure Server Management Service.
9
9
  #
@@ -66,7 +66,7 @@ module Azure::ARM::ServerManagement
66
66
  promise = promise.then do |response|
67
67
  # Defining deserialization method.
68
68
  deserialize_method = lambda do |parsed_response|
69
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
69
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource.mapper()
70
70
  parsed_response = @client.deserialize(result_mapper, parsed_response)
71
71
  end
72
72
 
@@ -122,7 +122,7 @@ module Azure::ARM::ServerManagement
122
122
  promise = promise.then do |response|
123
123
  # Defining deserialization method.
124
124
  deserialize_method = lambda do |parsed_response|
125
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
125
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource.mapper()
126
126
  parsed_response = @client.deserialize(result_mapper, parsed_response)
127
127
  end
128
128
 
@@ -297,7 +297,7 @@ module Azure::ARM::ServerManagement
297
297
  if status_code == 200
298
298
  begin
299
299
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
300
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
300
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource.mapper()
301
301
  result.body = @client.deserialize(result_mapper, parsed_response)
302
302
  rescue Exception => e
303
303
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -380,7 +380,7 @@ module Azure::ARM::ServerManagement
380
380
  if status_code == 200
381
381
  begin
382
382
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
383
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
383
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResources.mapper()
384
384
  result.body = @client.deserialize(result_mapper, parsed_response)
385
385
  rescue Exception => e
386
386
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -470,7 +470,7 @@ module Azure::ARM::ServerManagement
470
470
  if status_code == 200
471
471
  begin
472
472
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
473
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
473
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResources.mapper()
474
474
  result.body = @client.deserialize(result_mapper, parsed_response)
475
475
  rescue Exception => e
476
476
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -568,7 +568,7 @@ module Azure::ARM::ServerManagement
568
568
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
569
569
 
570
570
  # Serialize Request
571
- request_mapper = Azure::ARM::ServerManagement::Models::NodeParameters.mapper()
571
+ request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeParameters.mapper()
572
572
  request_content = @client.serialize(request_mapper, gateway_parameters)
573
573
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
574
574
 
@@ -600,7 +600,7 @@ module Azure::ARM::ServerManagement
600
600
  if status_code == 200
601
601
  begin
602
602
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
603
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
603
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource.mapper()
604
604
  result.body = @client.deserialize(result_mapper, parsed_response)
605
605
  rescue Exception => e
606
606
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -610,7 +610,7 @@ module Azure::ARM::ServerManagement
610
610
  if status_code == 201
611
611
  begin
612
612
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
613
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
613
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource.mapper()
614
614
  result.body = @client.deserialize(result_mapper, parsed_response)
615
615
  rescue Exception => e
616
616
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -708,7 +708,7 @@ module Azure::ARM::ServerManagement
708
708
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
709
709
 
710
710
  # Serialize Request
711
- request_mapper = Azure::ARM::ServerManagement::Models::NodeParameters.mapper()
711
+ request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeParameters.mapper()
712
712
  request_content = @client.serialize(request_mapper, node_parameters)
713
713
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
714
714
 
@@ -740,7 +740,7 @@ module Azure::ARM::ServerManagement
740
740
  if status_code == 200
741
741
  begin
742
742
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
743
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResource.mapper()
743
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource.mapper()
744
744
  result.body = @client.deserialize(result_mapper, parsed_response)
745
745
  rescue Exception => e
746
746
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -827,7 +827,7 @@ module Azure::ARM::ServerManagement
827
827
  if status_code == 200
828
828
  begin
829
829
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
830
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
830
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResources.mapper()
831
831
  result.body = @client.deserialize(result_mapper, parsed_response)
832
832
  rescue Exception => e
833
833
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -914,7 +914,7 @@ module Azure::ARM::ServerManagement
914
914
  if status_code == 200
915
915
  begin
916
916
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
917
- result_mapper = Azure::ARM::ServerManagement::Models::NodeResources.mapper()
917
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResources.mapper()
918
918
  result.body = @client.deserialize(result_mapper, parsed_response)
919
919
  rescue Exception => e
920
920
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  #
8
8
  # REST API for Azure Server Management Service.
9
9
  #
@@ -106,7 +106,7 @@ module Azure::ARM::ServerManagement
106
106
  if status_code == 200
107
107
  begin
108
108
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
109
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellSessionResources.mapper()
109
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellSessionResources.mapper()
110
110
  result.body = @client.deserialize(result_mapper, parsed_response)
111
111
  rescue Exception => e
112
112
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -156,7 +156,7 @@ module Azure::ARM::ServerManagement
156
156
  promise = promise.then do |response|
157
157
  # Defining deserialization method.
158
158
  deserialize_method = lambda do |parsed_response|
159
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellSessionResource.mapper()
159
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellSessionResource.mapper()
160
160
  parsed_response = @client.deserialize(result_mapper, parsed_response)
161
161
  end
162
162
 
@@ -262,7 +262,7 @@ module Azure::ARM::ServerManagement
262
262
  if status_code == 200
263
263
  begin
264
264
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
265
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandStatus.mapper()
265
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandStatus.mapper()
266
266
  result.body = @client.deserialize(result_mapper, parsed_response)
267
267
  rescue Exception => e
268
268
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -312,7 +312,7 @@ module Azure::ARM::ServerManagement
312
312
  promise = promise.then do |response|
313
313
  # Defining deserialization method.
314
314
  deserialize_method = lambda do |parsed_response|
315
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
315
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults.mapper()
316
316
  parsed_response = @client.deserialize(result_mapper, parsed_response)
317
317
  end
318
318
 
@@ -362,7 +362,7 @@ module Azure::ARM::ServerManagement
362
362
  promise = promise.then do |response|
363
363
  # Defining deserialization method.
364
364
  deserialize_method = lambda do |parsed_response|
365
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
365
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults.mapper()
366
366
  parsed_response = @client.deserialize(result_mapper, parsed_response)
367
367
  end
368
368
 
@@ -410,7 +410,7 @@ module Azure::ARM::ServerManagement
410
410
  promise = promise.then do |response|
411
411
  # Defining deserialization method.
412
412
  deserialize_method = lambda do |parsed_response|
413
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
413
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults.mapper()
414
414
  parsed_response = @client.deserialize(result_mapper, parsed_response)
415
415
  end
416
416
 
@@ -494,7 +494,7 @@ module Azure::ARM::ServerManagement
494
494
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
495
495
 
496
496
  # Serialize Request
497
- request_mapper = Azure::ARM::ServerManagement::Models::PowerShellTabCompletionParameters.mapper()
497
+ request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellTabCompletionParameters.mapper()
498
498
  request_content = @client.serialize(request_mapper, power_shell_tab_completion_paramters)
499
499
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
500
500
 
@@ -526,7 +526,7 @@ module Azure::ARM::ServerManagement
526
526
  if status_code == 200
527
527
  begin
528
528
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
529
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellTabCompletionResults.mapper()
529
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellTabCompletionResults.mapper()
530
530
  result.body = @client.deserialize(result_mapper, parsed_response)
531
531
  rescue Exception => e
532
532
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -628,7 +628,7 @@ module Azure::ARM::ServerManagement
628
628
  if status_code == 200
629
629
  begin
630
630
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
631
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellSessionResource.mapper()
631
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellSessionResource.mapper()
632
632
  result.body = @client.deserialize(result_mapper, parsed_response)
633
633
  rescue Exception => e
634
634
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -730,7 +730,7 @@ module Azure::ARM::ServerManagement
730
730
  if status_code == 200
731
731
  begin
732
732
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
733
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
733
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults.mapper()
734
734
  result.body = @client.deserialize(result_mapper, parsed_response)
735
735
  rescue Exception => e
736
736
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -816,7 +816,7 @@ module Azure::ARM::ServerManagement
816
816
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
817
817
 
818
818
  # Serialize Request
819
- request_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandParameters.mapper()
819
+ request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandParameters.mapper()
820
820
  request_content = @client.serialize(request_mapper, power_shell_command_parameters)
821
821
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
822
822
 
@@ -848,7 +848,7 @@ module Azure::ARM::ServerManagement
848
848
  if status_code == 200
849
849
  begin
850
850
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
851
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
851
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults.mapper()
852
852
  result.body = @client.deserialize(result_mapper, parsed_response)
853
853
  rescue Exception => e
854
854
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -950,7 +950,7 @@ module Azure::ARM::ServerManagement
950
950
  if status_code == 200
951
951
  begin
952
952
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
953
- result_mapper = Azure::ARM::ServerManagement::Models::PowerShellCommandResults.mapper()
953
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults.mapper()
954
954
  result.body = @client.deserialize(result_mapper, parsed_response)
955
955
  rescue Exception => e
956
956
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -134,8 +134,8 @@ module Azure::ARM::ServerManagement
134
134
  #
135
135
  def add_telemetry
136
136
  sdk_information = 'azure_mgmt_server_management'
137
- if defined? Azure::ARM::ServerManagement::VERSION
138
- sdk_information = "#{sdk_information}/#{Azure::ARM::ServerManagement::VERSION}"
137
+ if defined? Azure::ServerManagement::Mgmt::V2016_07_01_preview::VERSION
138
+ sdk_information = "#{sdk_information}/#{Azure::ServerManagement::Mgmt::V2016_07_01_preview::VERSION}"
139
139
  end
140
140
  add_user_agent_information(sdk_information)
141
141
  end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
7
  #
8
8
  # REST API for Azure Server Management Service.
9
9
  #
@@ -72,7 +72,7 @@ module Azure::ARM::ServerManagement
72
72
  promise = promise.then do |response|
73
73
  # Defining deserialization method.
74
74
  deserialize_method = lambda do |parsed_response|
75
- result_mapper = Azure::ARM::ServerManagement::Models::SessionResource.mapper()
75
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionResource.mapper()
76
76
  parsed_response = @client.deserialize(result_mapper, parsed_response)
77
77
  end
78
78
 
@@ -255,7 +255,7 @@ module Azure::ARM::ServerManagement
255
255
  if status_code == 200
256
256
  begin
257
257
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
258
- result_mapper = Azure::ARM::ServerManagement::Models::SessionResource.mapper()
258
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionResource.mapper()
259
259
  result.body = @client.deserialize(result_mapper, parsed_response)
260
260
  rescue Exception => e
261
261
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -362,7 +362,7 @@ module Azure::ARM::ServerManagement
362
362
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
363
363
 
364
364
  # Serialize Request
365
- request_mapper = Azure::ARM::ServerManagement::Models::SessionParameters.mapper()
365
+ request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionParameters.mapper()
366
366
  request_content = @client.serialize(request_mapper, session_parameters)
367
367
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
368
368
 
@@ -394,7 +394,7 @@ module Azure::ARM::ServerManagement
394
394
  if status_code == 200
395
395
  begin
396
396
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
397
- result_mapper = Azure::ARM::ServerManagement::Models::SessionResource.mapper()
397
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionResource.mapper()
398
398
  result.body = @client.deserialize(result_mapper, parsed_response)
399
399
  rescue Exception => e
400
400
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -404,7 +404,7 @@ module Azure::ARM::ServerManagement
404
404
  if status_code == 201
405
405
  begin
406
406
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
407
- result_mapper = Azure::ARM::ServerManagement::Models::SessionResource.mapper()
407
+ result_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionResource.mapper()
408
408
  result.body = @client.deserialize(result_mapper, parsed_response)
409
409
  rescue Exception => e
410
410
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::ServerManagement
7
- VERSION = '0.14.0'
6
+ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
7
+ VERSION = '0.15.0'
8
8
  end
@@ -2,4 +2,5 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require 'generated/azure_mgmt_server_management'
5
+ require '2016-07-01-preview/generated/azure_mgmt_server_management'
6
+ require 'profiles/latest/servermanagement_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::ServerManagement end
7
+ module Azure::ServerManagement::Mgmt end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
7
+ module Configurable
8
+ # @return [String] Azure tenant id (also known as domain).
9
+ attr_accessor :tenant_id
10
+
11
+ # @return [String] Azure client id.
12
+ attr_accessor :client_id
13
+
14
+ # @return [String] Azure secret key.
15
+ attr_accessor :client_secret
16
+
17
+ # @return [String] Azure subscription id.
18
+ attr_accessor :subscription_id
19
+
20
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
+ attr_accessor :active_directory_settings
22
+
23
+ # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
+ attr_accessor :credentials
25
+
26
+ class << self
27
+ #
28
+ # List of configurable keys for {Azure::ARM::Client}.
29
+ # @return [Array] of option keys.
30
+ #
31
+ def keys
32
+ @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
33
+ end
34
+ end
35
+
36
+ #
37
+ # Set configuration options using a block.
38
+ #
39
+ def configure
40
+ yield self
41
+ end
42
+
43
+ #
44
+ # Resets the configurable options to provided options or defaults.
45
+ # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
+ #
47
+ def reset!(options = {})
48
+ Azure::ARM::Configurable.keys.each do |key|
49
+ default_value = Azure::ARM::Default.options[key]
50
+ instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
+ end
52
+
53
+ self
54
+ end
55
+
56
+ def config
57
+ self
58
+ end
59
+
60
+ private
61
+
62
+ #
63
+ # configures configurable options to default values
64
+ #
65
+ def setup_options
66
+ opts = {}
67
+ Azure::ARM::Configurable.keys.map do |key|
68
+ opts[key] = Azure::ARM::Default.options[key]
69
+ end
70
+ opts
71
+ end
72
+ end
73
+ end