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,72 @@
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 information about SSH certificate public key and the path on
10
+ # the Linux VM where the public key is placed.
11
+ #
12
+ class SshPublicKey
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Gets or sets the full path on the created VM where
17
+ # SSH public key is stored. If the file already exists, the specified
18
+ # key is appended to the file.
19
+ attr_accessor :path
20
+
21
+ # @return [String] Gets or sets Certificate public key used to
22
+ # authenticate with VM through SSH.The certificate must be in Pem
23
+ # format with or without headers.
24
+ attr_accessor :key_data
25
+
26
+ #
27
+ # Validate the object. Throws ValidationError if validation fails.
28
+ #
29
+ def validate
30
+ # Nothing to validate
31
+ end
32
+
33
+ #
34
+ # Serializes given Model object into Ruby Hash.
35
+ # @param object Model object to serialize.
36
+ # @return [Hash] Serialized object in form of Ruby Hash.
37
+ #
38
+ def self.serialize_object(object)
39
+ object.validate
40
+ output_object = {}
41
+
42
+ serialized_property = object.path
43
+ output_object['path'] = serialized_property unless serialized_property.nil?
44
+
45
+ serialized_property = object.key_data
46
+ output_object['keyData'] = serialized_property unless serialized_property.nil?
47
+
48
+ output_object
49
+ end
50
+
51
+ #
52
+ # Deserializes given Ruby Hash into Model object.
53
+ # @param object [Hash] Ruby Hash object to deserialize.
54
+ # @return [SshPublicKey] Deserialized object.
55
+ #
56
+ def self.deserialize_object(object)
57
+ return if object.nil?
58
+ output_object = SshPublicKey.new
59
+
60
+ deserialized_property = object['path']
61
+ output_object.path = deserialized_property
62
+
63
+ deserialized_property = object['keyData']
64
+ output_object.key_data = deserialized_property
65
+
66
+ output_object.validate
67
+
68
+ output_object
69
+ end
70
+ end
71
+ end
72
+ end
@@ -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 StatusLevelTypes
10
+ #
11
+ module StatusLevelTypes
12
+ Info = "Info"
13
+ Warning = "Warning"
14
+ Error = "Error"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,110 @@
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 storage profile.
10
+ #
11
+ class StorageProfile
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ImageReference] Gets or sets the image reference.
16
+ attr_accessor :image_reference
17
+
18
+ # @return [OSDisk] Gets or sets the OS disk.
19
+ attr_accessor :os_disk
20
+
21
+ # @return [Array<DataDisk>] Gets or sets the data disks.
22
+ attr_accessor :data_disks
23
+
24
+ #
25
+ # Validate the object. Throws ValidationError if validation fails.
26
+ #
27
+ def validate
28
+ @image_reference.validate unless @image_reference.nil?
29
+ @os_disk.validate unless @os_disk.nil?
30
+ @data_disks.each{ |e| e.validate if e.respond_to?(:validate) } unless @data_disks.nil?
31
+ end
32
+
33
+ #
34
+ # Serializes given Model object into Ruby Hash.
35
+ # @param object Model object to serialize.
36
+ # @return [Hash] Serialized object in form of Ruby Hash.
37
+ #
38
+ def self.serialize_object(object)
39
+ object.validate
40
+ output_object = {}
41
+
42
+ serialized_property = object.image_reference
43
+ unless serialized_property.nil?
44
+ serialized_property = ImageReference.serialize_object(serialized_property)
45
+ end
46
+ output_object['imageReference'] = serialized_property unless serialized_property.nil?
47
+
48
+ serialized_property = object.os_disk
49
+ unless serialized_property.nil?
50
+ serialized_property = OSDisk.serialize_object(serialized_property)
51
+ end
52
+ output_object['osDisk'] = serialized_property unless serialized_property.nil?
53
+
54
+ serialized_property = object.data_disks
55
+ unless serialized_property.nil?
56
+ serializedArray = []
57
+ serialized_property.each do |element|
58
+ unless element.nil?
59
+ element = DataDisk.serialize_object(element)
60
+ end
61
+ serializedArray.push(element)
62
+ end
63
+ serialized_property = serializedArray
64
+ end
65
+ output_object['dataDisks'] = serialized_property unless serialized_property.nil?
66
+
67
+ output_object
68
+ end
69
+
70
+ #
71
+ # Deserializes given Ruby Hash into Model object.
72
+ # @param object [Hash] Ruby Hash object to deserialize.
73
+ # @return [StorageProfile] Deserialized object.
74
+ #
75
+ def self.deserialize_object(object)
76
+ return if object.nil?
77
+ output_object = StorageProfile.new
78
+
79
+ deserialized_property = object['imageReference']
80
+ unless deserialized_property.nil?
81
+ deserialized_property = ImageReference.deserialize_object(deserialized_property)
82
+ end
83
+ output_object.image_reference = deserialized_property
84
+
85
+ deserialized_property = object['osDisk']
86
+ unless deserialized_property.nil?
87
+ deserialized_property = OSDisk.deserialize_object(deserialized_property)
88
+ end
89
+ output_object.os_disk = deserialized_property
90
+
91
+ deserialized_property = object['dataDisks']
92
+ unless deserialized_property.nil?
93
+ deserializedArray = [];
94
+ deserialized_property.each do |element1|
95
+ unless element1.nil?
96
+ element1 = DataDisk.deserialize_object(element1)
97
+ end
98
+ deserializedArray.push(element1);
99
+ end
100
+ deserialized_property = deserializedArray;
101
+ end
102
+ output_object.data_disks = deserialized_property
103
+
104
+ output_object.validate
105
+
106
+ output_object
107
+ end
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,98 @@
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 Compute Resource Usage.
10
+ #
11
+ class Usage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [UsageUnit] Gets or sets an enum describing the unit of
16
+ # measurement. Possible values for this property include: 'Count'.
17
+ attr_accessor :unit
18
+
19
+ # @return [Integer] Gets or sets the current value of the usage.
20
+ attr_accessor :current_value
21
+
22
+ # @return [Integer] Gets or sets the limit of usage.
23
+ attr_accessor :limit
24
+
25
+ # @return [UsageName] Gets or sets the name of the type of usage.
26
+ attr_accessor :name
27
+
28
+ #
29
+ # Validate the object. Throws ValidationError if validation fails.
30
+ #
31
+ def validate
32
+ @name.validate unless @name.nil?
33
+ end
34
+
35
+ #
36
+ # Serializes given Model object into Ruby Hash.
37
+ # @param object Model object to serialize.
38
+ # @return [Hash] Serialized object in form of Ruby Hash.
39
+ #
40
+ def self.serialize_object(object)
41
+ object.validate
42
+ output_object = {}
43
+
44
+ serialized_property = object.unit
45
+ output_object['unit'] = serialized_property unless serialized_property.nil?
46
+
47
+ serialized_property = object.current_value
48
+ output_object['currentValue'] = serialized_property unless serialized_property.nil?
49
+
50
+ serialized_property = object.limit
51
+ output_object['limit'] = serialized_property unless serialized_property.nil?
52
+
53
+ serialized_property = object.name
54
+ unless serialized_property.nil?
55
+ serialized_property = UsageName.serialize_object(serialized_property)
56
+ end
57
+ output_object['name'] = serialized_property unless serialized_property.nil?
58
+
59
+ output_object
60
+ end
61
+
62
+ #
63
+ # Deserializes given Ruby Hash into Model object.
64
+ # @param object [Hash] Ruby Hash object to deserialize.
65
+ # @return [Usage] Deserialized object.
66
+ #
67
+ def self.deserialize_object(object)
68
+ return if object.nil?
69
+ output_object = Usage.new
70
+
71
+ deserialized_property = object['unit']
72
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
73
+ enum_is_valid = UsageUnit.constants.any? { |e| UsageUnit.const_get(e).to_s.downcase == deserialized_property.downcase }
74
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
75
+ end
76
+ output_object.unit = deserialized_property
77
+
78
+ deserialized_property = object['currentValue']
79
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
80
+ output_object.current_value = deserialized_property
81
+
82
+ deserialized_property = object['limit']
83
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
84
+ output_object.limit = deserialized_property
85
+
86
+ deserialized_property = object['name']
87
+ unless deserialized_property.nil?
88
+ deserialized_property = UsageName.deserialize_object(deserialized_property)
89
+ end
90
+ output_object.name = deserialized_property
91
+
92
+ output_object.validate
93
+
94
+ output_object
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,68 @@
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 Usage Names.
10
+ #
11
+ class UsageName
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets a string describing the resource name.
16
+ attr_accessor :value
17
+
18
+ # @return [String] Gets or sets a localized string describing the
19
+ # resource name.
20
+ attr_accessor :localized_value
21
+
22
+ #
23
+ # Validate the object. Throws ValidationError if validation fails.
24
+ #
25
+ def validate
26
+ # Nothing to validate
27
+ end
28
+
29
+ #
30
+ # Serializes given Model object into Ruby Hash.
31
+ # @param object Model object to serialize.
32
+ # @return [Hash] Serialized object in form of Ruby Hash.
33
+ #
34
+ def self.serialize_object(object)
35
+ object.validate
36
+ output_object = {}
37
+
38
+ serialized_property = object.value
39
+ output_object['value'] = serialized_property unless serialized_property.nil?
40
+
41
+ serialized_property = object.localized_value
42
+ output_object['localizedValue'] = serialized_property unless serialized_property.nil?
43
+
44
+ output_object
45
+ end
46
+
47
+ #
48
+ # Deserializes given Ruby Hash into Model object.
49
+ # @param object [Hash] Ruby Hash object to deserialize.
50
+ # @return [UsageName] Deserialized object.
51
+ #
52
+ def self.deserialize_object(object)
53
+ return if object.nil?
54
+ output_object = UsageName.new
55
+
56
+ deserialized_property = object['value']
57
+ output_object.value = deserialized_property
58
+
59
+ deserialized_property = object['localizedValue']
60
+ output_object.localized_value = deserialized_property
61
+
62
+ output_object.validate
63
+
64
+ output_object
65
+ end
66
+ end
67
+ end
68
+ 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 UsageUnit
10
+ #
11
+ module UsageUnit
12
+ Count = "Count"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,70 @@
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 single certificate reference in a Key Vault, and where the
10
+ # certificate should reside on the VM.
11
+ #
12
+ class VaultCertificate
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Gets or sets the URL referencing a secret in a Key
17
+ # Vault which contains a properly formatted certificate.
18
+ attr_accessor :certificate_url
19
+
20
+ # @return [String] Gets or sets the Certificate store in LocalMachine to
21
+ # add the certificate to on Windows, leave empty on Linux.
22
+ attr_accessor :certificate_store
23
+
24
+ #
25
+ # Validate the object. Throws ValidationError if validation fails.
26
+ #
27
+ def validate
28
+ # Nothing to validate
29
+ end
30
+
31
+ #
32
+ # Serializes given Model object into Ruby Hash.
33
+ # @param object Model object to serialize.
34
+ # @return [Hash] Serialized object in form of Ruby Hash.
35
+ #
36
+ def self.serialize_object(object)
37
+ object.validate
38
+ output_object = {}
39
+
40
+ serialized_property = object.certificate_url
41
+ output_object['certificateUrl'] = serialized_property unless serialized_property.nil?
42
+
43
+ serialized_property = object.certificate_store
44
+ output_object['certificateStore'] = serialized_property unless serialized_property.nil?
45
+
46
+ output_object
47
+ end
48
+
49
+ #
50
+ # Deserializes given Ruby Hash into Model object.
51
+ # @param object [Hash] Ruby Hash object to deserialize.
52
+ # @return [VaultCertificate] Deserialized object.
53
+ #
54
+ def self.deserialize_object(object)
55
+ return if object.nil?
56
+ output_object = VaultCertificate.new
57
+
58
+ deserialized_property = object['certificateUrl']
59
+ output_object.certificate_url = deserialized_property
60
+
61
+ deserialized_property = object['certificateStore']
62
+ output_object.certificate_store = deserialized_property
63
+
64
+ output_object.validate
65
+
66
+ output_object
67
+ end
68
+ end
69
+ end
70
+ end