azure_mgmt_compute 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,63 @@
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 os disk image information.
10
+ #
11
+ class OSDiskImage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [OperatingSystemTypes] Gets or sets the operating system of
16
+ # the osDiskImage. Possible values for this property include:
17
+ # 'Windows', 'Linux'.
18
+ attr_accessor :operating_system
19
+
20
+ #
21
+ # Validate the object. Throws ValidationError if validation fails.
22
+ #
23
+ def validate
24
+ end
25
+
26
+ #
27
+ # Serializes given Model object into Ruby Hash.
28
+ # @param object Model object to serialize.
29
+ # @return [Hash] Serialized object in form of Ruby Hash.
30
+ #
31
+ def self.serialize_object(object)
32
+ object.validate
33
+ output_object = {}
34
+
35
+ serialized_property = object.operating_system
36
+ output_object['operatingSystem'] = serialized_property unless serialized_property.nil?
37
+
38
+ output_object
39
+ end
40
+
41
+ #
42
+ # Deserializes given Ruby Hash into Model object.
43
+ # @param object [Hash] Ruby Hash object to deserialize.
44
+ # @return [OSDiskImage] Deserialized object.
45
+ #
46
+ def self.deserialize_object(object)
47
+ return if object.nil?
48
+ output_object = OSDiskImage.new
49
+
50
+ deserialized_property = object['operatingSystem']
51
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
52
+ enum_is_valid = OperatingSystemTypes.constants.any? { |e| OperatingSystemTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
53
+ fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
54
+ end
55
+ output_object.operating_system = deserialized_property
56
+
57
+ output_object.validate
58
+
59
+ output_object
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,149 @@
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 an OS profile.
10
+ #
11
+ class OSProfile
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the computer name.
16
+ attr_accessor :computer_name
17
+
18
+ # @return [String] Gets or sets the admin user name.
19
+ attr_accessor :admin_username
20
+
21
+ # @return [String] Gets or sets the admin user password.
22
+ attr_accessor :admin_password
23
+
24
+ # @return [String] Gets or sets a base-64 encoded string of custom data.
25
+ attr_accessor :custom_data
26
+
27
+ # @return [WindowsConfiguration] Gets or sets the Windows Configuration
28
+ # of the OS profile.
29
+ attr_accessor :windows_configuration
30
+
31
+ # @return [LinuxConfiguration] Gets or sets the Linux Configuration of
32
+ # the OS profile.
33
+ attr_accessor :linux_configuration
34
+
35
+ # @return [Array<VaultSecretGroup>] Gets or sets the List of
36
+ # certificates for addition to the VM.
37
+ attr_accessor :secrets
38
+
39
+ #
40
+ # Validate the object. Throws ValidationError if validation fails.
41
+ #
42
+ def validate
43
+ @windows_configuration.validate unless @windows_configuration.nil?
44
+ @linux_configuration.validate unless @linux_configuration.nil?
45
+ @secrets.each{ |e| e.validate if e.respond_to?(:validate) } unless @secrets.nil?
46
+ end
47
+
48
+ #
49
+ # Serializes given Model object into Ruby Hash.
50
+ # @param object Model object to serialize.
51
+ # @return [Hash] Serialized object in form of Ruby Hash.
52
+ #
53
+ def self.serialize_object(object)
54
+ object.validate
55
+ output_object = {}
56
+
57
+ serialized_property = object.computer_name
58
+ output_object['computerName'] = serialized_property unless serialized_property.nil?
59
+
60
+ serialized_property = object.admin_username
61
+ output_object['adminUsername'] = serialized_property unless serialized_property.nil?
62
+
63
+ serialized_property = object.admin_password
64
+ output_object['adminPassword'] = serialized_property unless serialized_property.nil?
65
+
66
+ serialized_property = object.custom_data
67
+ output_object['customData'] = serialized_property unless serialized_property.nil?
68
+
69
+ serialized_property = object.windows_configuration
70
+ unless serialized_property.nil?
71
+ serialized_property = WindowsConfiguration.serialize_object(serialized_property)
72
+ end
73
+ output_object['windowsConfiguration'] = serialized_property unless serialized_property.nil?
74
+
75
+ serialized_property = object.linux_configuration
76
+ unless serialized_property.nil?
77
+ serialized_property = LinuxConfiguration.serialize_object(serialized_property)
78
+ end
79
+ output_object['linuxConfiguration'] = serialized_property unless serialized_property.nil?
80
+
81
+ serialized_property = object.secrets
82
+ unless serialized_property.nil?
83
+ serializedArray = []
84
+ serialized_property.each do |element|
85
+ unless element.nil?
86
+ element = VaultSecretGroup.serialize_object(element)
87
+ end
88
+ serializedArray.push(element)
89
+ end
90
+ serialized_property = serializedArray
91
+ end
92
+ output_object['secrets'] = serialized_property unless serialized_property.nil?
93
+
94
+ output_object
95
+ end
96
+
97
+ #
98
+ # Deserializes given Ruby Hash into Model object.
99
+ # @param object [Hash] Ruby Hash object to deserialize.
100
+ # @return [OSProfile] Deserialized object.
101
+ #
102
+ def self.deserialize_object(object)
103
+ return if object.nil?
104
+ output_object = OSProfile.new
105
+
106
+ deserialized_property = object['computerName']
107
+ output_object.computer_name = deserialized_property
108
+
109
+ deserialized_property = object['adminUsername']
110
+ output_object.admin_username = deserialized_property
111
+
112
+ deserialized_property = object['adminPassword']
113
+ output_object.admin_password = deserialized_property
114
+
115
+ deserialized_property = object['customData']
116
+ output_object.custom_data = deserialized_property
117
+
118
+ deserialized_property = object['windowsConfiguration']
119
+ unless deserialized_property.nil?
120
+ deserialized_property = WindowsConfiguration.deserialize_object(deserialized_property)
121
+ end
122
+ output_object.windows_configuration = deserialized_property
123
+
124
+ deserialized_property = object['linuxConfiguration']
125
+ unless deserialized_property.nil?
126
+ deserialized_property = LinuxConfiguration.deserialize_object(deserialized_property)
127
+ end
128
+ output_object.linux_configuration = deserialized_property
129
+
130
+ deserialized_property = object['secrets']
131
+ unless deserialized_property.nil?
132
+ deserializedArray = [];
133
+ deserialized_property.each do |element1|
134
+ unless element1.nil?
135
+ element1 = VaultSecretGroup.deserialize_object(element1)
136
+ end
137
+ deserializedArray.push(element1);
138
+ end
139
+ deserialized_property = deserializedArray;
140
+ end
141
+ output_object.secrets = deserialized_property
142
+
143
+ output_object.validate
144
+
145
+ output_object
146
+ end
147
+ end
148
+ end
149
+ 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 PassNames
10
+ #
11
+ module PassNames
12
+ OobeSystem = "oobeSystem"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,85 @@
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
+ # Plan for the resource.
10
+ #
11
+ class Plan
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the plan ID.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Gets or sets the publisher ID.
19
+ attr_accessor :publisher
20
+
21
+ # @return [String] Gets or sets the offer ID.
22
+ attr_accessor :product
23
+
24
+ # @return [String] Gets or sets the promotion code.
25
+ attr_accessor :promotion_code
26
+
27
+ #
28
+ # Validate the object. Throws ValidationError if validation fails.
29
+ #
30
+ def validate
31
+ # Nothing to validate
32
+ end
33
+
34
+ #
35
+ # Serializes given Model object into Ruby Hash.
36
+ # @param object Model object to serialize.
37
+ # @return [Hash] Serialized object in form of Ruby Hash.
38
+ #
39
+ def self.serialize_object(object)
40
+ object.validate
41
+ output_object = {}
42
+
43
+ serialized_property = object.name
44
+ output_object['name'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.publisher
47
+ output_object['publisher'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.product
50
+ output_object['product'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.promotion_code
53
+ output_object['promotionCode'] = serialized_property unless serialized_property.nil?
54
+
55
+ output_object
56
+ end
57
+
58
+ #
59
+ # Deserializes given Ruby Hash into Model object.
60
+ # @param object [Hash] Ruby Hash object to deserialize.
61
+ # @return [Plan] Deserialized object.
62
+ #
63
+ def self.deserialize_object(object)
64
+ return if object.nil?
65
+ output_object = Plan.new
66
+
67
+ deserialized_property = object['name']
68
+ output_object.name = deserialized_property
69
+
70
+ deserialized_property = object['publisher']
71
+ output_object.publisher = deserialized_property
72
+
73
+ deserialized_property = object['product']
74
+ output_object.product = deserialized_property
75
+
76
+ deserialized_property = object['promotionCode']
77
+ output_object.promotion_code = deserialized_property
78
+
79
+ output_object.validate
80
+
81
+ output_object
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,16 @@
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 ProtocolTypes
10
+ #
11
+ module ProtocolTypes
12
+ Http = "Http"
13
+ Https = "Https"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,77 @@
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
+ # Used for establishing the purchase context of any 3rd Party artifact
10
+ # through MarketPlace.
11
+ #
12
+ class PurchasePlan
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Gets or sets the publisher ID.
17
+ attr_accessor :publisher
18
+
19
+ # @return [String] Gets or sets the plan ID.
20
+ attr_accessor :name
21
+
22
+ # @return [String] Gets or sets the product ID.
23
+ attr_accessor :product
24
+
25
+ #
26
+ # Validate the object. Throws ValidationError if validation fails.
27
+ #
28
+ def validate
29
+ # Nothing to validate
30
+ end
31
+
32
+ #
33
+ # Serializes given Model object into Ruby Hash.
34
+ # @param object Model object to serialize.
35
+ # @return [Hash] Serialized object in form of Ruby Hash.
36
+ #
37
+ def self.serialize_object(object)
38
+ object.validate
39
+ output_object = {}
40
+
41
+ serialized_property = object.publisher
42
+ output_object['publisher'] = serialized_property unless serialized_property.nil?
43
+
44
+ serialized_property = object.name
45
+ output_object['name'] = serialized_property unless serialized_property.nil?
46
+
47
+ serialized_property = object.product
48
+ output_object['product'] = serialized_property unless serialized_property.nil?
49
+
50
+ output_object
51
+ end
52
+
53
+ #
54
+ # Deserializes given Ruby Hash into Model object.
55
+ # @param object [Hash] Ruby Hash object to deserialize.
56
+ # @return [PurchasePlan] Deserialized object.
57
+ #
58
+ def self.deserialize_object(object)
59
+ return if object.nil?
60
+ output_object = PurchasePlan.new
61
+
62
+ deserialized_property = object['publisher']
63
+ output_object.publisher = deserialized_property
64
+
65
+ deserialized_property = object['name']
66
+ output_object.name = deserialized_property
67
+
68
+ deserialized_property = object['product']
69
+ output_object.product = deserialized_property
70
+
71
+ output_object.validate
72
+
73
+ output_object
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,16 @@
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 SettingNames
10
+ #
11
+ module SettingNames
12
+ AutoLogon = "AutoLogon"
13
+ FirstLogonCommands = "FirstLogonCommands"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,79 @@
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
+ # SSH configuration for Linux based VMs running on Azure
10
+ #
11
+ class SshConfiguration
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<SshPublicKey>] Gets or sets the list of SSH public keys
16
+ # used to authenticate with linux based VMs
17
+ attr_accessor :public_keys
18
+
19
+ #
20
+ # Validate the object. Throws ValidationError if validation fails.
21
+ #
22
+ def validate
23
+ @public_keys.each{ |e| e.validate if e.respond_to?(:validate) } unless @public_keys.nil?
24
+ end
25
+
26
+ #
27
+ # Serializes given Model object into Ruby Hash.
28
+ # @param object Model object to serialize.
29
+ # @return [Hash] Serialized object in form of Ruby Hash.
30
+ #
31
+ def self.serialize_object(object)
32
+ object.validate
33
+ output_object = {}
34
+
35
+ serialized_property = object.public_keys
36
+ unless serialized_property.nil?
37
+ serializedArray = []
38
+ serialized_property.each do |element|
39
+ unless element.nil?
40
+ element = SshPublicKey.serialize_object(element)
41
+ end
42
+ serializedArray.push(element)
43
+ end
44
+ serialized_property = serializedArray
45
+ end
46
+ output_object['publicKeys'] = 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 [SshConfiguration] Deserialized object.
55
+ #
56
+ def self.deserialize_object(object)
57
+ return if object.nil?
58
+ output_object = SshConfiguration.new
59
+
60
+ deserialized_property = object['publicKeys']
61
+ unless deserialized_property.nil?
62
+ deserializedArray = [];
63
+ deserialized_property.each do |element1|
64
+ unless element1.nil?
65
+ element1 = SshPublicKey.deserialize_object(element1)
66
+ end
67
+ deserializedArray.push(element1);
68
+ end
69
+ deserialized_property = deserializedArray;
70
+ end
71
+ output_object.public_keys = deserialized_property
72
+
73
+ output_object.validate
74
+
75
+ output_object
76
+ end
77
+ end
78
+ end
79
+ end