azure_mgmt_compute 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_compute.gemspec +3 -11
  3. data/lib/azure_mgmt_compute/availability_sets.rb +226 -241
  4. data/lib/azure_mgmt_compute/compute_management_client.rb +26 -11
  5. data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +8 -11
  6. data/lib/azure_mgmt_compute/models/api_entity_reference.rb +58 -0
  7. data/lib/azure_mgmt_compute/models/api_error.rb +4 -6
  8. data/lib/azure_mgmt_compute/models/api_error_base.rb +1 -3
  9. data/lib/azure_mgmt_compute/models/availability_set.rb +1 -3
  10. data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +4 -6
  11. data/lib/azure_mgmt_compute/models/availability_set_properties.rb +9 -11
  12. data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +67 -0
  13. data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +65 -0
  14. data/lib/azure_mgmt_compute/models/caching_types.rb +1 -1
  15. data/lib/azure_mgmt_compute/models/component_names.rb +1 -1
  16. data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -3
  17. data/lib/azure_mgmt_compute/models/compute_long_running_operation_result.rb +3 -6
  18. data/lib/azure_mgmt_compute/models/compute_operation_status.rb +1 -1
  19. data/lib/azure_mgmt_compute/models/data_disk.rb +27 -26
  20. data/lib/azure_mgmt_compute/models/data_disk_image.rb +1 -3
  21. data/lib/azure_mgmt_compute/models/delete_operation_result.rb +6 -5
  22. data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +62 -0
  23. data/lib/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
  24. data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +81 -0
  25. data/lib/azure_mgmt_compute/models/disk_instance_view.rb +4 -6
  26. data/lib/azure_mgmt_compute/models/hardware_profile.rb +15 -9
  27. data/lib/azure_mgmt_compute/models/image_reference.rb +1 -3
  28. data/lib/azure_mgmt_compute/models/inner_error.rb +1 -3
  29. data/lib/azure_mgmt_compute/models/instance_view_status.rb +3 -5
  30. data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +74 -0
  31. data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +75 -0
  32. data/lib/azure_mgmt_compute/models/linux_configuration.rb +1 -3
  33. data/lib/azure_mgmt_compute/models/list_usages_result.rb +4 -6
  34. data/lib/azure_mgmt_compute/models/network_interface_reference.rb +1 -3
  35. data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +1 -3
  36. data/lib/azure_mgmt_compute/models/network_profile.rb +4 -6
  37. data/lib/azure_mgmt_compute/models/operating_system_types.rb +1 -1
  38. data/lib/azure_mgmt_compute/models/operation_status.rb +1 -1
  39. data/lib/azure_mgmt_compute/models/osdisk.rb +54 -26
  40. data/lib/azure_mgmt_compute/models/osdisk_image.rb +4 -6
  41. data/lib/azure_mgmt_compute/models/osprofile.rb +4 -6
  42. data/lib/azure_mgmt_compute/models/pass_names.rb +1 -1
  43. data/lib/azure_mgmt_compute/models/plan.rb +1 -3
  44. data/lib/azure_mgmt_compute/models/protocol_types.rb +1 -1
  45. data/lib/azure_mgmt_compute/models/purchase_plan.rb +4 -4
  46. data/lib/azure_mgmt_compute/models/setting_names.rb +1 -1
  47. data/lib/azure_mgmt_compute/models/sku.rb +75 -0
  48. data/lib/azure_mgmt_compute/models/ssh_configuration.rb +4 -6
  49. data/lib/azure_mgmt_compute/models/ssh_public_key.rb +1 -3
  50. data/lib/azure_mgmt_compute/models/status_level_types.rb +1 -1
  51. data/lib/azure_mgmt_compute/models/storage_profile.rb +4 -6
  52. data/lib/azure_mgmt_compute/models/{usage_unit.rb → upgrade_mode.rb} +5 -4
  53. data/lib/azure_mgmt_compute/models/upgrade_policy.rb +60 -0
  54. data/lib/azure_mgmt_compute/models/usage.rb +7 -9
  55. data/lib/azure_mgmt_compute/models/usage_name.rb +1 -3
  56. data/lib/azure_mgmt_compute/models/vault_certificate.rb +1 -3
  57. data/lib/azure_mgmt_compute/models/vault_secret_group.rb +6 -8
  58. data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -3
  59. data/lib/azure_mgmt_compute/models/virtual_machine.rb +4 -6
  60. data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +7 -9
  61. data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +4 -4
  62. data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +68 -0
  63. data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +56 -0
  64. data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -3
  65. data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -3
  66. data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +15 -15
  67. data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +4 -4
  68. data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +7 -9
  69. data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +11 -3
  70. data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +15 -15
  71. data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +4 -6
  72. data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +9 -9
  73. data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +28 -14
  74. data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +4 -6
  75. data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +29 -5
  76. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +108 -0
  77. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +77 -0
  78. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +77 -0
  79. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +116 -0
  80. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +125 -0
  81. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +79 -0
  82. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +78 -0
  83. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +127 -0
  84. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +77 -0
  85. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +77 -0
  86. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +88 -0
  87. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +80 -0
  88. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +89 -0
  89. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +77 -0
  90. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +129 -0
  91. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +147 -0
  92. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +89 -0
  93. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +88 -0
  94. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +90 -0
  95. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
  96. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +78 -0
  97. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +165 -0
  98. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +87 -0
  99. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
  100. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +59 -0
  101. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +202 -0
  102. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +77 -0
  103. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +114 -0
  104. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +190 -0
  105. data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +1 -3
  106. data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +4 -6
  107. data/lib/azure_mgmt_compute/models/virtual_machine_size_types.rb +53 -45
  108. data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +68 -0
  109. data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +4 -6
  110. data/lib/azure_mgmt_compute/models/win_rmlistener.rb +3 -5
  111. data/lib/azure_mgmt_compute/models/windows_configuration.rb +4 -6
  112. data/lib/azure_mgmt_compute/module_definition.rb +5 -3
  113. data/lib/azure_mgmt_compute/usage_operations.rb +75 -42
  114. data/lib/azure_mgmt_compute/version.rb +5 -3
  115. data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +71 -158
  116. data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +66 -149
  117. data/lib/azure_mgmt_compute/virtual_machine_images.rb +121 -264
  118. data/lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +750 -0
  119. data/lib/azure_mgmt_compute/virtual_machine_scale_sets.rb +1327 -0
  120. data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +75 -42
  121. data/lib/azure_mgmt_compute/virtual_machines.rb +397 -623
  122. data/lib/azure_mgmt_compute.rb +57 -18
  123. metadata +50 -128
  124. data/.gitignore +0 -10
  125. data/.travis.yml +0 -3
  126. data/Gemfile +0 -17
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -14,7 +14,7 @@ module Azure::ARM::Compute
14
14
  # @return [String] the base URI of the service.
15
15
  attr_accessor :base_url
16
16
 
17
- # @return [ServiceClientCredentials] The management credentials for Azure.
17
+ # @return Gets Azure subscription credentials.
18
18
  attr_reader :credentials
19
19
 
20
20
  # @return [String] Gets subscription credentials which uniquely identify
@@ -28,25 +28,30 @@ module Azure::ARM::Compute
28
28
  # @return [String] Gets or sets the preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] The retry timeout for Long Running Operations.
31
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
+ # Running Operations. Default value is 30.
32
33
  attr_accessor :long_running_operation_retry_timeout
33
34
 
34
- # @return [ServiceClient] Subscription credentials which uniquely identify
35
- # client subscription.
35
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
+ # is generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return Subscription credentials which uniquely identify client
40
+ # subscription.
36
41
  attr_accessor :credentials
37
42
 
38
43
  # @return availability_sets
39
44
  attr_reader :availability_sets
40
45
 
41
- # @return virtual_machine_images
42
- attr_reader :virtual_machine_images
43
-
44
46
  # @return virtual_machine_extension_images
45
47
  attr_reader :virtual_machine_extension_images
46
48
 
47
49
  # @return virtual_machine_extensions
48
50
  attr_reader :virtual_machine_extensions
49
51
 
52
+ # @return virtual_machine_images
53
+ attr_reader :virtual_machine_images
54
+
50
55
  # @return usage_operations
51
56
  attr_reader :usage_operations
52
57
 
@@ -56,6 +61,12 @@ module Azure::ARM::Compute
56
61
  # @return virtual_machines
57
62
  attr_reader :virtual_machines
58
63
 
64
+ # @return virtual_machine_scale_sets
65
+ attr_reader :virtual_machine_scale_sets
66
+
67
+ # @return virtual_machine_scale_set_vms
68
+ attr_reader :virtual_machine_scale_set_vms
69
+
59
70
  #
60
71
  # Creates initializes a new instance of the ComputeManagementClient class.
61
72
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -71,14 +82,18 @@ module Azure::ARM::Compute
71
82
  @credentials = credentials
72
83
 
73
84
  @availability_sets = AvailabilitySets.new(self)
74
- @virtual_machine_images = VirtualMachineImages.new(self)
75
85
  @virtual_machine_extension_images = VirtualMachineExtensionImages.new(self)
76
86
  @virtual_machine_extensions = VirtualMachineExtensions.new(self)
87
+ @virtual_machine_images = VirtualMachineImages.new(self)
77
88
  @usage_operations = UsageOperations.new(self)
78
89
  @virtual_machine_sizes = VirtualMachineSizes.new(self)
79
90
  @virtual_machines = VirtualMachines.new(self)
80
- @api_version = "2015-06-15"
81
- @accept_language = "en-US"
91
+ @virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
92
+ @virtual_machine_scale_set_vms = VirtualMachineScaleSetVMs.new(self)
93
+ @api_version = '2015-06-15'
94
+ @accept_language = 'en-US'
95
+ @long_running_operation_retry_timeout = 30
96
+ @generate_client_request_id = true
82
97
  end
83
98
 
84
99
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -16,18 +16,17 @@ module Azure::ARM::Compute
16
16
  include MsRestAzure
17
17
 
18
18
  # @return [PassNames] Gets or sets the pass name. Currently, the only
19
- # allowable value is oobeSystem. Possible values for this property
20
- # include: 'oobeSystem'.
19
+ # allowable value is oobeSystem. Possible values include: 'oobeSystem'
21
20
  attr_accessor :pass_name
22
21
 
23
22
  # @return [ComponentNames] Gets or sets the component name. Currently,
24
23
  # the only allowable value is Microsoft-Windows-Shell-Setup. Possible
25
- # values for this property include: 'Microsoft-Windows-Shell-Setup'.
24
+ # values include: 'Microsoft-Windows-Shell-Setup'
26
25
  attr_accessor :component_name
27
26
 
28
27
  # @return [SettingNames] Gets or sets setting name (e.g.
29
- # FirstLogonCommands, AutoLogon ). Possible values for this property
30
- # include: 'AutoLogon', 'FirstLogonCommands'.
28
+ # FirstLogonCommands, AutoLogon ). Possible values include:
29
+ # 'AutoLogon', 'FirstLogonCommands'
31
30
  attr_accessor :setting_name
32
31
 
33
32
  # @return [String] Gets or sets XML formatted content that is added to
@@ -78,29 +77,27 @@ module Azure::ARM::Compute
78
77
  deserialized_property = object['passName']
79
78
  if (!deserialized_property.nil? && !deserialized_property.empty?)
80
79
  enum_is_valid = PassNames.constants.any? { |e| PassNames.const_get(e).to_s.downcase == deserialized_property.downcase }
81
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
80
+ warn 'Enum PassNames does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
82
81
  end
83
82
  output_object.pass_name = deserialized_property
84
83
 
85
84
  deserialized_property = object['componentName']
86
85
  if (!deserialized_property.nil? && !deserialized_property.empty?)
87
86
  enum_is_valid = ComponentNames.constants.any? { |e| ComponentNames.const_get(e).to_s.downcase == deserialized_property.downcase }
88
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
87
+ warn 'Enum ComponentNames does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
89
88
  end
90
89
  output_object.component_name = deserialized_property
91
90
 
92
91
  deserialized_property = object['settingName']
93
92
  if (!deserialized_property.nil? && !deserialized_property.empty?)
94
93
  enum_is_valid = SettingNames.constants.any? { |e| SettingNames.const_get(e).to_s.downcase == deserialized_property.downcase }
95
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
94
+ warn 'Enum SettingNames does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
96
95
  end
97
96
  output_object.setting_name = deserialized_property
98
97
 
99
98
  deserialized_property = object['content']
100
99
  output_object.content = deserialized_property
101
100
 
102
- output_object.validate
103
-
104
101
  output_object
105
102
  end
106
103
  end
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # The API entity reference.
10
+ #
11
+ class ApiEntityReference
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the relative URL in the previous Service
16
+ # Management API's namespace. For Example:
17
+ # /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/...
18
+ attr_accessor :id
19
+
20
+ #
21
+ # Validate the object. Throws ValidationError if validation fails.
22
+ #
23
+ def validate
24
+ # Nothing to validate
25
+ end
26
+
27
+ #
28
+ # Serializes given Model object into Ruby Hash.
29
+ # @param object Model object to serialize.
30
+ # @return [Hash] Serialized object in form of Ruby Hash.
31
+ #
32
+ def self.serialize_object(object)
33
+ object.validate
34
+ output_object = {}
35
+
36
+ serialized_property = object.id
37
+ output_object['id'] = serialized_property unless serialized_property.nil?
38
+
39
+ output_object
40
+ end
41
+
42
+ #
43
+ # Deserializes given Ruby Hash into Model object.
44
+ # @param object [Hash] Ruby Hash object to deserialize.
45
+ # @return [ApiEntityReference] Deserialized object.
46
+ #
47
+ def self.deserialize_object(object)
48
+ return if object.nil?
49
+ output_object = ApiEntityReference.new
50
+
51
+ deserialized_property = object['id']
52
+ output_object.id = deserialized_property
53
+
54
+ output_object
55
+ end
56
+ end
57
+ end
58
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -86,14 +86,14 @@ module Azure::ARM::Compute
86
86
 
87
87
  deserialized_property = object['details']
88
88
  unless deserialized_property.nil?
89
- deserializedArray = [];
89
+ deserialized_array = []
90
90
  deserialized_property.each do |element1|
91
91
  unless element1.nil?
92
92
  element1 = ApiErrorBase.deserialize_object(element1)
93
93
  end
94
- deserializedArray.push(element1);
94
+ deserialized_array.push(element1)
95
95
  end
96
- deserialized_property = deserializedArray;
96
+ deserialized_property = deserialized_array
97
97
  end
98
98
  output_object.details = deserialized_property
99
99
 
@@ -112,8 +112,6 @@ module Azure::ARM::Compute
112
112
  deserialized_property = object['message']
113
113
  output_object.message = deserialized_property
114
114
 
115
- output_object.validate
116
-
117
115
  output_object
118
116
  end
119
117
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -67,8 +67,6 @@ module Azure::ARM::Compute
67
67
  deserialized_property = object['message']
68
68
  output_object.message = deserialized_property
69
69
 
70
- output_object.validate
71
-
72
70
  output_object
73
71
  end
74
72
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -85,8 +85,6 @@ module Azure::ARM::Compute
85
85
  end
86
86
  output_object.properties = deserialized_property
87
87
 
88
- output_object.validate
89
-
90
88
  output_object
91
89
  end
92
90
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -59,19 +59,17 @@ module Azure::ARM::Compute
59
59
 
60
60
  deserialized_property = object['value']
61
61
  unless deserialized_property.nil?
62
- deserializedArray = [];
62
+ deserialized_array = []
63
63
  deserialized_property.each do |element1|
64
64
  unless element1.nil?
65
65
  element1 = AvailabilitySet.deserialize_object(element1)
66
66
  end
67
- deserializedArray.push(element1);
67
+ deserialized_array.push(element1)
68
68
  end
69
- deserialized_property = deserializedArray;
69
+ deserialized_property = deserialized_array
70
70
  end
71
71
  output_object.value = deserialized_property
72
72
 
73
- output_object.validate
74
-
75
73
  output_object
76
74
  end
77
75
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -54,7 +54,7 @@ module Azure::ARM::Compute
54
54
  serializedArray = []
55
55
  serialized_property.each do |element|
56
56
  unless element.nil?
57
- element = SubResource.serialize_object(element)
57
+ element = MsRestAzure::SubResource.serialize_object(element)
58
58
  end
59
59
  serializedArray.push(element)
60
60
  end
@@ -97,32 +97,30 @@ module Azure::ARM::Compute
97
97
 
98
98
  deserialized_property = object['virtualMachines']
99
99
  unless deserialized_property.nil?
100
- deserializedArray = [];
100
+ deserialized_array = []
101
101
  deserialized_property.each do |element2|
102
102
  unless element2.nil?
103
- element2 = SubResource.deserialize_object(element2)
103
+ element2 = MsRestAzure::SubResource.deserialize_object(element2)
104
104
  end
105
- deserializedArray.push(element2);
105
+ deserialized_array.push(element2)
106
106
  end
107
- deserialized_property = deserializedArray;
107
+ deserialized_property = deserialized_array
108
108
  end
109
109
  output_object.virtual_machines = deserialized_property
110
110
 
111
111
  deserialized_property = object['statuses']
112
112
  unless deserialized_property.nil?
113
- deserializedArray = [];
113
+ deserialized_array = []
114
114
  deserialized_property.each do |element3|
115
115
  unless element3.nil?
116
116
  element3 = InstanceViewStatus.deserialize_object(element3)
117
117
  end
118
- deserializedArray.push(element3);
118
+ deserialized_array.push(element3)
119
119
  end
120
- deserialized_property = deserializedArray;
120
+ deserialized_property = deserialized_array
121
121
  end
122
122
  output_object.statuses = deserialized_property
123
123
 
124
- output_object.validate
125
-
126
124
  output_object
127
125
  end
128
126
  end
@@ -0,0 +1,67 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # Describes Boot Diagnostics.
10
+ #
11
+ class BootDiagnostics
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] Gets or sets whether VM Agent should be provisioned
16
+ # on the Virtual Machine.
17
+ attr_accessor :enabled
18
+
19
+ # @return [String] Gets or sets the boot diagnostics storage Uri. It
20
+ # should be a valid Uri
21
+ attr_accessor :storage_uri
22
+
23
+ #
24
+ # Validate the object. Throws ValidationError if validation fails.
25
+ #
26
+ def validate
27
+ # Nothing to validate
28
+ end
29
+
30
+ #
31
+ # Serializes given Model object into Ruby Hash.
32
+ # @param object Model object to serialize.
33
+ # @return [Hash] Serialized object in form of Ruby Hash.
34
+ #
35
+ def self.serialize_object(object)
36
+ object.validate
37
+ output_object = {}
38
+
39
+ serialized_property = object.enabled
40
+ output_object['enabled'] = serialized_property unless serialized_property.nil?
41
+
42
+ serialized_property = object.storage_uri
43
+ output_object['storageUri'] = serialized_property unless serialized_property.nil?
44
+
45
+ output_object
46
+ end
47
+
48
+ #
49
+ # Deserializes given Ruby Hash into Model object.
50
+ # @param object [Hash] Ruby Hash object to deserialize.
51
+ # @return [BootDiagnostics] Deserialized object.
52
+ #
53
+ def self.deserialize_object(object)
54
+ return if object.nil?
55
+ output_object = BootDiagnostics.new
56
+
57
+ deserialized_property = object['enabled']
58
+ output_object.enabled = deserialized_property
59
+
60
+ deserialized_property = object['storageUri']
61
+ output_object.storage_uri = deserialized_property
62
+
63
+ output_object
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,65 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ module Models
8
+ #
9
+ # The instance view of a virtual machine boot diagnostics.
10
+ #
11
+ class BootDiagnosticsInstanceView
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the console screenshot blob Uri.
16
+ attr_accessor :console_screenshot_blob_uri
17
+
18
+ # @return [String] Gets or sets the Linux serial console log blob Uri.
19
+ attr_accessor :serial_console_log_blob_uri
20
+
21
+ #
22
+ # Validate the object. Throws ValidationError if validation fails.
23
+ #
24
+ def validate
25
+ # Nothing to validate
26
+ end
27
+
28
+ #
29
+ # Serializes given Model object into Ruby Hash.
30
+ # @param object Model object to serialize.
31
+ # @return [Hash] Serialized object in form of Ruby Hash.
32
+ #
33
+ def self.serialize_object(object)
34
+ object.validate
35
+ output_object = {}
36
+
37
+ serialized_property = object.console_screenshot_blob_uri
38
+ output_object['consoleScreenshotBlobUri'] = serialized_property unless serialized_property.nil?
39
+
40
+ serialized_property = object.serial_console_log_blob_uri
41
+ output_object['serialConsoleLogBlobUri'] = serialized_property unless serialized_property.nil?
42
+
43
+ output_object
44
+ end
45
+
46
+ #
47
+ # Deserializes given Ruby Hash into Model object.
48
+ # @param object [Hash] Ruby Hash object to deserialize.
49
+ # @return [BootDiagnosticsInstanceView] Deserialized object.
50
+ #
51
+ def self.deserialize_object(object)
52
+ return if object.nil?
53
+ output_object = BootDiagnosticsInstanceView.new
54
+
55
+ deserialized_property = object['consoleScreenshotBlobUri']
56
+ output_object.console_screenshot_blob_uri = deserialized_property
57
+
58
+ deserialized_property = object['serialConsoleLogBlobUri']
59
+ output_object.serial_console_log_blob_uri = deserialized_property
60
+
61
+ output_object
62
+ end
63
+ end
64
+ end
65
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -49,8 +49,6 @@ module Azure::ARM::Compute
49
49
  deserialized_property = object['output']
50
50
  output_object.output = deserialized_property
51
51
 
52
- output_object.validate
53
-
54
52
  output_object
55
53
  end
56
54
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -16,8 +16,7 @@ module Azure::ARM::Compute
16
16
  attr_accessor :operation_id
17
17
 
18
18
  # @return [ComputeOperationStatus] Gets the operation status. Possible
19
- # values for this property include: 'InProgress', 'Failed',
20
- # 'Succeeded', 'Preempted'.
19
+ # values include: 'InProgress', 'Failed', 'Succeeded', 'Preempted'
21
20
  attr_accessor :status
22
21
 
23
22
  # @return [DateTime] Gets the operation start time
@@ -93,7 +92,7 @@ module Azure::ARM::Compute
93
92
  deserialized_property = object['status']
94
93
  if (!deserialized_property.nil? && !deserialized_property.empty?)
95
94
  enum_is_valid = ComputeOperationStatus.constants.any? { |e| ComputeOperationStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
96
- fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
95
+ warn 'Enum ComputeOperationStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
97
96
  end
98
97
  output_object.status = deserialized_property
99
98
 
@@ -117,8 +116,6 @@ module Azure::ARM::Compute
117
116
  end
118
117
  output_object.error = deserialized_property
119
118
 
120
- output_object.validate
121
-
122
119
  output_object
123
120
  end
124
121
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5