azure_mgmt_compute 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +17 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +139 -0
  8. data/Rakefile +5 -0
  9. data/azure_mgmt_compute.gemspec +39 -0
  10. data/lib/azure_mgmt_compute.rb +103 -0
  11. data/lib/azure_mgmt_compute/Models/additional_unattend_content.rb +108 -0
  12. data/lib/azure_mgmt_compute/Models/api_error.rb +121 -0
  13. data/lib/azure_mgmt_compute/Models/api_error_base.rb +76 -0
  14. data/lib/azure_mgmt_compute/Models/availability_set.rb +94 -0
  15. data/lib/azure_mgmt_compute/Models/availability_set_list_result.rb +79 -0
  16. data/lib/azure_mgmt_compute/Models/availability_set_properties.rb +130 -0
  17. data/lib/azure_mgmt_compute/Models/caching_types.rb +17 -0
  18. data/lib/azure_mgmt_compute/Models/component_names.rb +15 -0
  19. data/lib/azure_mgmt_compute/Models/compute_long_running_operation_properties.rb +58 -0
  20. data/lib/azure_mgmt_compute/Models/compute_long_running_operation_result.rb +126 -0
  21. data/lib/azure_mgmt_compute/Models/compute_operation_status.rb +18 -0
  22. data/lib/azure_mgmt_compute/Models/data_disk.rb +142 -0
  23. data/lib/azure_mgmt_compute/Models/data_disk_image.rb +62 -0
  24. data/lib/azure_mgmt_compute/Models/delete_operation_result.rb +109 -0
  25. data/lib/azure_mgmt_compute/Models/disk_create_option_types.rb +17 -0
  26. data/lib/azure_mgmt_compute/Models/disk_instance_view.rb +88 -0
  27. data/lib/azure_mgmt_compute/Models/hardware_profile.rb +67 -0
  28. data/lib/azure_mgmt_compute/Models/image_reference.rb +87 -0
  29. data/lib/azure_mgmt_compute/Models/inner_error.rb +68 -0
  30. data/lib/azure_mgmt_compute/Models/instance_view_status.rb +102 -0
  31. data/lib/azure_mgmt_compute/Models/linux_configuration.rb +75 -0
  32. data/lib/azure_mgmt_compute/Models/list_usages_result.rb +78 -0
  33. data/lib/azure_mgmt_compute/Models/network_interface_reference.rb +70 -0
  34. data/lib/azure_mgmt_compute/Models/network_interface_reference_properties.rb +59 -0
  35. data/lib/azure_mgmt_compute/Models/network_profile.rb +79 -0
  36. data/lib/azure_mgmt_compute/Models/operating_system_types.rb +16 -0
  37. data/lib/azure_mgmt_compute/Models/operation_status.rb +17 -0
  38. data/lib/azure_mgmt_compute/Models/osdisk.rb +135 -0
  39. data/lib/azure_mgmt_compute/Models/osdisk_image.rb +63 -0
  40. data/lib/azure_mgmt_compute/Models/osprofile.rb +149 -0
  41. data/lib/azure_mgmt_compute/Models/pass_names.rb +15 -0
  42. data/lib/azure_mgmt_compute/Models/plan.rb +85 -0
  43. data/lib/azure_mgmt_compute/Models/protocol_types.rb +16 -0
  44. data/lib/azure_mgmt_compute/Models/purchase_plan.rb +77 -0
  45. data/lib/azure_mgmt_compute/Models/setting_names.rb +16 -0
  46. data/lib/azure_mgmt_compute/Models/ssh_configuration.rb +79 -0
  47. data/lib/azure_mgmt_compute/Models/ssh_public_key.rb +72 -0
  48. data/lib/azure_mgmt_compute/Models/status_level_types.rb +17 -0
  49. data/lib/azure_mgmt_compute/Models/storage_profile.rb +110 -0
  50. data/lib/azure_mgmt_compute/Models/usage.rb +98 -0
  51. data/lib/azure_mgmt_compute/Models/usage_name.rb +68 -0
  52. data/lib/azure_mgmt_compute/Models/usage_unit.rb +15 -0
  53. data/lib/azure_mgmt_compute/Models/vault_certificate.rb +70 -0
  54. data/lib/azure_mgmt_compute/Models/vault_secret_group.rb +96 -0
  55. data/lib/azure_mgmt_compute/Models/virtual_hard_disk.rb +59 -0
  56. data/lib/azure_mgmt_compute/Models/virtual_machine.rb +142 -0
  57. data/lib/azure_mgmt_compute/Models/virtual_machine_agent_instance_view.rb +119 -0
  58. data/lib/azure_mgmt_compute/Models/virtual_machine_capture_parameters.rb +78 -0
  59. data/lib/azure_mgmt_compute/Models/virtual_machine_extension.rb +94 -0
  60. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_handler_instance_view.rb +85 -0
  61. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_image.rb +99 -0
  62. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_image_properties.rb +102 -0
  63. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_instance_view.rb +139 -0
  64. data/lib/azure_mgmt_compute/Models/virtual_machine_extension_properties.rb +133 -0
  65. data/lib/azure_mgmt_compute/Models/virtual_machine_image.rb +99 -0
  66. data/lib/azure_mgmt_compute/Models/virtual_machine_image_properties.rb +110 -0
  67. data/lib/azure_mgmt_compute/Models/virtual_machine_image_resource.rb +83 -0
  68. data/lib/azure_mgmt_compute/Models/virtual_machine_instance_view.rb +188 -0
  69. data/lib/azure_mgmt_compute/Models/virtual_machine_list_result.rb +89 -0
  70. data/lib/azure_mgmt_compute/Models/virtual_machine_properties.rb +156 -0
  71. data/lib/azure_mgmt_compute/Models/virtual_machine_size.rb +111 -0
  72. data/lib/azure_mgmt_compute/Models/virtual_machine_size_list_result.rb +79 -0
  73. data/lib/azure_mgmt_compute/Models/virtual_machine_size_types.rb +34 -0
  74. data/lib/azure_mgmt_compute/Models/win_rmconfiguration.rb +79 -0
  75. data/lib/azure_mgmt_compute/Models/win_rmlistener.rb +73 -0
  76. data/lib/azure_mgmt_compute/Models/windows_configuration.rb +126 -0
  77. data/lib/azure_mgmt_compute/availability_sets.rb +473 -0
  78. data/lib/azure_mgmt_compute/compute_management_client.rb +85 -0
  79. data/lib/azure_mgmt_compute/module_definition.rb +6 -0
  80. data/lib/azure_mgmt_compute/usage_operations.rb +113 -0
  81. data/lib/azure_mgmt_compute/version.rb +6 -0
  82. data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +325 -0
  83. data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +384 -0
  84. data/lib/azure_mgmt_compute/virtual_machine_images.rb +525 -0
  85. data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +114 -0
  86. data/lib/azure_mgmt_compute/virtual_machines.rb +1412 -0
  87. metadata +303 -0
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Defines values for CachingTypes
10
+ #
11
+ module CachingTypes
12
+ None = "None"
13
+ ReadOnly = "ReadOnly"
14
+ ReadWrite = "ReadWrite"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Defines values for ComponentNames
10
+ #
11
+ module ComponentNames
12
+ MicrosoftWindowsShellSetup = "Microsoft-Windows-Shell-Setup"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,58 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Compute-specific operation properties, including output
10
+ #
11
+ class ComputeLongRunningOperationProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Operation output data (raw JSON)
16
+ attr_accessor :output
17
+
18
+ #
19
+ # Validate the object. Throws ValidationError if validation fails.
20
+ #
21
+ def validate
22
+ # Nothing to validate
23
+ end
24
+
25
+ #
26
+ # Serializes given Model object into Ruby Hash.
27
+ # @param object Model object to serialize.
28
+ # @return [Hash] Serialized object in form of Ruby Hash.
29
+ #
30
+ def self.serialize_object(object)
31
+ object.validate
32
+ output_object = {}
33
+
34
+ serialized_property = object.output
35
+ output_object['output'] = serialized_property unless serialized_property.nil?
36
+
37
+ output_object
38
+ end
39
+
40
+ #
41
+ # Deserializes given Ruby Hash into Model object.
42
+ # @param object [Hash] Ruby Hash object to deserialize.
43
+ # @return [ComputeLongRunningOperationProperties] Deserialized object.
44
+ #
45
+ def self.deserialize_object(object)
46
+ return if object.nil?
47
+ output_object = ComputeLongRunningOperationProperties.new
48
+
49
+ deserialized_property = object['output']
50
+ output_object.output = deserialized_property
51
+
52
+ output_object.validate
53
+
54
+ output_object
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,126 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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 Compute service response for long-running operations.
10
+ #
11
+ class ComputeLongRunningOperationResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets the operation identifier.
16
+ attr_accessor :operation_id
17
+
18
+ # @return [ComputeOperationStatus] Gets the operation status. Possible
19
+ # values for this property include: 'InProgress', 'Failed',
20
+ # 'Succeeded', 'Preempted'.
21
+ attr_accessor :status
22
+
23
+ # @return [DateTime] Gets the operation start time
24
+ attr_accessor :start_time
25
+
26
+ # @return [DateTime] Gets the operation end time
27
+ attr_accessor :end_time
28
+
29
+ # @return [ComputeLongRunningOperationProperties]
30
+ attr_accessor :properties
31
+
32
+ # @return [ApiError] Gets the operation error, if any occurred.
33
+ attr_accessor :error
34
+
35
+ #
36
+ # Validate the object. Throws ValidationError if validation fails.
37
+ #
38
+ def validate
39
+ @properties.validate unless @properties.nil?
40
+ @error.validate unless @error.nil?
41
+ end
42
+
43
+ #
44
+ # Serializes given Model object into Ruby Hash.
45
+ # @param object Model object to serialize.
46
+ # @return [Hash] Serialized object in form of Ruby Hash.
47
+ #
48
+ def self.serialize_object(object)
49
+ object.validate
50
+ output_object = {}
51
+
52
+ serialized_property = object.operation_id
53
+ output_object['operationId'] = serialized_property unless serialized_property.nil?
54
+
55
+ serialized_property = object.status
56
+ output_object['status'] = serialized_property unless serialized_property.nil?
57
+
58
+ serialized_property = object.start_time
59
+ serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
60
+ output_object['startTime'] = serialized_property unless serialized_property.nil?
61
+
62
+ serialized_property = object.end_time
63
+ serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
64
+ output_object['endTime'] = serialized_property unless serialized_property.nil?
65
+
66
+ serialized_property = object.properties
67
+ unless serialized_property.nil?
68
+ serialized_property = ComputeLongRunningOperationProperties.serialize_object(serialized_property)
69
+ end
70
+ output_object['properties'] = serialized_property unless serialized_property.nil?
71
+
72
+ serialized_property = object.error
73
+ unless serialized_property.nil?
74
+ serialized_property = ApiError.serialize_object(serialized_property)
75
+ end
76
+ output_object['error'] = serialized_property unless serialized_property.nil?
77
+
78
+ output_object
79
+ end
80
+
81
+ #
82
+ # Deserializes given Ruby Hash into Model object.
83
+ # @param object [Hash] Ruby Hash object to deserialize.
84
+ # @return [ComputeLongRunningOperationResult] Deserialized object.
85
+ #
86
+ def self.deserialize_object(object)
87
+ return if object.nil?
88
+ output_object = ComputeLongRunningOperationResult.new
89
+
90
+ deserialized_property = object['operationId']
91
+ output_object.operation_id = deserialized_property
92
+
93
+ deserialized_property = object['status']
94
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
95
+ 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
97
+ end
98
+ output_object.status = deserialized_property
99
+
100
+ deserialized_property = object['startTime']
101
+ deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
102
+ output_object.start_time = deserialized_property
103
+
104
+ deserialized_property = object['endTime']
105
+ deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
106
+ output_object.end_time = deserialized_property
107
+
108
+ deserialized_property = object['properties']
109
+ unless deserialized_property.nil?
110
+ deserialized_property = ComputeLongRunningOperationProperties.deserialize_object(deserialized_property)
111
+ end
112
+ output_object.properties = deserialized_property
113
+
114
+ deserialized_property = object['error']
115
+ unless deserialized_property.nil?
116
+ deserialized_property = ApiError.deserialize_object(deserialized_property)
117
+ end
118
+ output_object.error = deserialized_property
119
+
120
+ output_object.validate
121
+
122
+ output_object
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Defines values for ComputeOperationStatus
10
+ #
11
+ module ComputeOperationStatus
12
+ InProgress = "InProgress"
13
+ Failed = "Failed"
14
+ Succeeded = "Succeeded"
15
+ Preempted = "Preempted"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,142 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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 a data disk.
10
+ #
11
+ class DataDisk
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Gets or sets the logical unit number.
16
+ attr_accessor :lun
17
+
18
+ # @return [Integer] Gets or sets the disk size in GB for a blank data
19
+ # disk to be created.
20
+ attr_accessor :disk_size_gb
21
+
22
+ # @return [String] Gets or sets the disk name.
23
+ attr_accessor :name
24
+
25
+ # @return [VirtualHardDisk] Gets or sets the Virtual Hard Disk.
26
+ attr_accessor :vhd
27
+
28
+ # @return [VirtualHardDisk] Gets or sets the Source User Image
29
+ # VirtualHardDisk. This VirtualHardDisk will be copied before using it
30
+ # to attach to the Virtual Machine.If SourceImage is provided, the
31
+ # destination VirtualHardDisk should not exist.
32
+ attr_accessor :image
33
+
34
+ # @return [CachingTypes] Gets or sets the caching type. Possible values
35
+ # for this property include: 'None', 'ReadOnly', 'ReadWrite'.
36
+ attr_accessor :caching
37
+
38
+ # @return [DiskCreateOptionTypes] Gets or sets the create option.
39
+ # Possible values for this property include: 'fromImage', 'empty',
40
+ # 'attach'.
41
+ attr_accessor :create_option
42
+
43
+ #
44
+ # Validate the object. Throws ValidationError if validation fails.
45
+ #
46
+ def validate
47
+ @vhd.validate unless @vhd.nil?
48
+ @image.validate unless @image.nil?
49
+ end
50
+
51
+ #
52
+ # Serializes given Model object into Ruby Hash.
53
+ # @param object Model object to serialize.
54
+ # @return [Hash] Serialized object in form of Ruby Hash.
55
+ #
56
+ def self.serialize_object(object)
57
+ object.validate
58
+ output_object = {}
59
+
60
+ serialized_property = object.lun
61
+ output_object['lun'] = serialized_property unless serialized_property.nil?
62
+
63
+ serialized_property = object.disk_size_gb
64
+ output_object['diskSizeGB'] = serialized_property unless serialized_property.nil?
65
+
66
+ serialized_property = object.name
67
+ output_object['name'] = serialized_property unless serialized_property.nil?
68
+
69
+ serialized_property = object.vhd
70
+ unless serialized_property.nil?
71
+ serialized_property = VirtualHardDisk.serialize_object(serialized_property)
72
+ end
73
+ output_object['vhd'] = serialized_property unless serialized_property.nil?
74
+
75
+ serialized_property = object.image
76
+ unless serialized_property.nil?
77
+ serialized_property = VirtualHardDisk.serialize_object(serialized_property)
78
+ end
79
+ output_object['image'] = serialized_property unless serialized_property.nil?
80
+
81
+ serialized_property = object.caching
82
+ output_object['caching'] = serialized_property unless serialized_property.nil?
83
+
84
+ serialized_property = object.create_option
85
+ output_object['createOption'] = serialized_property unless serialized_property.nil?
86
+
87
+ output_object
88
+ end
89
+
90
+ #
91
+ # Deserializes given Ruby Hash into Model object.
92
+ # @param object [Hash] Ruby Hash object to deserialize.
93
+ # @return [DataDisk] Deserialized object.
94
+ #
95
+ def self.deserialize_object(object)
96
+ return if object.nil?
97
+ output_object = DataDisk.new
98
+
99
+ deserialized_property = object['lun']
100
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
101
+ output_object.lun = deserialized_property
102
+
103
+ deserialized_property = object['diskSizeGB']
104
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
105
+ output_object.disk_size_gb = deserialized_property
106
+
107
+ deserialized_property = object['name']
108
+ output_object.name = deserialized_property
109
+
110
+ deserialized_property = object['vhd']
111
+ unless deserialized_property.nil?
112
+ deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
113
+ end
114
+ output_object.vhd = deserialized_property
115
+
116
+ deserialized_property = object['image']
117
+ unless deserialized_property.nil?
118
+ deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
119
+ end
120
+ output_object.image = deserialized_property
121
+
122
+ deserialized_property = object['caching']
123
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
124
+ enum_is_valid = CachingTypes.constants.any? { |e| CachingTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
125
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
126
+ end
127
+ output_object.caching = deserialized_property
128
+
129
+ deserialized_property = object['createOption']
130
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
131
+ enum_is_valid = DiskCreateOptionTypes.constants.any? { |e| DiskCreateOptionTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
132
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
133
+ end
134
+ output_object.create_option = deserialized_property
135
+
136
+ output_object.validate
137
+
138
+ output_object
139
+ end
140
+ end
141
+ end
142
+ end
@@ -0,0 +1,62 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.11.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
+ # Contains the data disk images information.
10
+ #
11
+ class DataDiskImage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Gets the LUN number for a data disk.This value is
16
+ # used to identify data disk image inside the VMImage therefore it must
17
+ # be unique for each data disk.The allowed character for the value is
18
+ # digit.
19
+ attr_accessor :lun
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.lun
38
+ output_object['lun'] = serialized_property unless serialized_property.nil?
39
+
40
+ output_object
41
+ end
42
+
43
+ #
44
+ # Deserializes given Ruby Hash into Model object.
45
+ # @param object [Hash] Ruby Hash object to deserialize.
46
+ # @return [DataDiskImage] Deserialized object.
47
+ #
48
+ def self.deserialize_object(object)
49
+ return if object.nil?
50
+ output_object = DataDiskImage.new
51
+
52
+ deserialized_property = object['lun']
53
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
54
+ output_object.lun = deserialized_property
55
+
56
+ output_object.validate
57
+
58
+ output_object
59
+ end
60
+ end
61
+ end
62
+ end