azure-armrest 0.0.4 → 0.0.5
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e179ee5e5853898b30670ef77c0712147645dceb
|
4
|
+
data.tar.gz: 4bc9931e741b70bf8fd189f5f2cb9872447b9561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffceed5d4458e742b15869b04cc1820a42a496f0399a422c343d59ebb405f31b3f7c42e4dc86dae25dd5caf38d2cab646e8533ab9ffcba8891cc652cfbd7e15d
|
7
|
+
data.tar.gz: 781f073af2d49351cffbb17c54786ed0fbd378b8cf2f3f66f516c5e219deaf508506a6a46626049509f87a1df3a52921abc6c3dd15da60cfce9ad9f7cfc7f4ca
|
data/CHANGES
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
= 0.0.5 - 21-Oct-2015
|
2
|
+
* The VirtualMachineService#series method now returns VirtualMachineSize
|
3
|
+
objects instead of a raw hash.
|
4
|
+
* Fixed a bug in the Network::IpAddress::Service class.
|
5
|
+
* Cleaned up some spec warnings.
|
6
|
+
|
1
7
|
= 0.0.4 - 19-Oct-2015
|
2
8
|
* All get/list/list_all methods now return wrapper class instances, e.g.
|
3
9
|
a call to VirtualMachineService#get will return a VirtualMachine instance.
|
@@ -147,6 +147,7 @@ module Azure
|
|
147
147
|
class VirtualMachineModel < VirtualMachine; end
|
148
148
|
class VirtualMachineExtension < BaseModel; end
|
149
149
|
class VirtualMachineImage < BaseModel; end
|
150
|
+
class VirtualMachineSize < BaseModel; end
|
150
151
|
|
151
152
|
module Network
|
152
153
|
class IpAddress < BaseModel; end
|
@@ -17,7 +17,7 @@ module Azure
|
|
17
17
|
# IP address name.
|
18
18
|
#
|
19
19
|
def get_ip(ip_name, resource_group = armrest_configuration.resource_group)
|
20
|
-
get(ip_name, resource_group).properties.
|
20
|
+
get(ip_name, resource_group).properties.ip_address
|
21
21
|
end
|
22
22
|
|
23
23
|
alias get_ip_address get_ip
|
@@ -47,7 +47,7 @@ module Azure
|
|
47
47
|
'providers', provider, 'locations', location, 'vmSizes'
|
48
48
|
)
|
49
49
|
|
50
|
-
JSON.parse(rest_get(url))['value']
|
50
|
+
JSON.parse(rest_get(url))['value'].map{ |hash| VirtualMachineSize.new(hash) }
|
51
51
|
end
|
52
52
|
|
53
53
|
alias sizes series
|
@@ -64,94 +64,6 @@ module Azure
|
|
64
64
|
vm_operate('capture', vmname, group, options)
|
65
65
|
end
|
66
66
|
|
67
|
-
# Creates a new virtual machine (or updates an existing one). Pass a hash
|
68
|
-
# of options to configure the VM as you see fit. Some options are
|
69
|
-
# mandatory. The following are a list of possible options:
|
70
|
-
#
|
71
|
-
# - :name
|
72
|
-
# Required. The name of the virtual machine. The name must be unique
|
73
|
-
# within the availability set that it belongs to.
|
74
|
-
#
|
75
|
-
# - :location
|
76
|
-
# Required. The location where the VM should be created, e.g. "West US".
|
77
|
-
#
|
78
|
-
# - :tags
|
79
|
-
# Optional. Specifies an identifier for the availability set.
|
80
|
-
#
|
81
|
-
# - :hardwareprofile
|
82
|
-
# Required. Contains a collection of hardware settings for the VM.
|
83
|
-
#
|
84
|
-
# - :vmsize
|
85
|
-
# Required. Specifies the size of the virtual machine. Possible
|
86
|
-
# sizes are Standard_A0..Standard_A4.
|
87
|
-
#
|
88
|
-
# - :osprofile
|
89
|
-
# Required. Contains a collection of settings for the OS configuration
|
90
|
-
# which must contain all of the following:
|
91
|
-
#
|
92
|
-
# - :computername
|
93
|
-
# - :adminusername
|
94
|
-
# - :adminpassword
|
95
|
-
# - :username
|
96
|
-
# - :password
|
97
|
-
#
|
98
|
-
# - :storageprofile
|
99
|
-
# Required. Contains a collection of settings for storage and disk
|
100
|
-
# settings for the VM. You must specify an :osdisk and :name. The
|
101
|
-
# :datadisks setting is optional.
|
102
|
-
#
|
103
|
-
# - :osdisk
|
104
|
-
# Required. Contains a collection of settings for the operating
|
105
|
-
# system disk.
|
106
|
-
#
|
107
|
-
# - :name
|
108
|
-
# - :ostype
|
109
|
-
# - :caching
|
110
|
-
# - :image
|
111
|
-
# - :vhd
|
112
|
-
#
|
113
|
-
# - :datadisks
|
114
|
-
# Optional. Contains a collection of settings for data disks.
|
115
|
-
#
|
116
|
-
# - :name
|
117
|
-
# - :image
|
118
|
-
# - :vhd
|
119
|
-
# - :lun
|
120
|
-
# - :caching
|
121
|
-
#
|
122
|
-
# - :name
|
123
|
-
# Required. Specifies the name of the disk.
|
124
|
-
#
|
125
|
-
# For clarity, we recommend using the update method for existing VM's.
|
126
|
-
#
|
127
|
-
# Example:
|
128
|
-
#
|
129
|
-
# vmm = VirtualMachineService.new(x, y, z)
|
130
|
-
#
|
131
|
-
# vm = vmm.create(
|
132
|
-
# :name => 'test1',
|
133
|
-
# :location => 'West US',
|
134
|
-
# :hardwareprofile => {:vmsize => 'Standard_A0'},
|
135
|
-
# :osprofile => {
|
136
|
-
# :computername => 'some_name',
|
137
|
-
# :adminusername => 'admin_user',
|
138
|
-
# :adminpassword => 'adminxxxxxx',
|
139
|
-
# :username => 'some_user',
|
140
|
-
# :password => 'userpassxxxxxx',
|
141
|
-
# },
|
142
|
-
# :storageprofile => {
|
143
|
-
# :osdisk => {
|
144
|
-
# :ostype => 'Windows',
|
145
|
-
# :caching => 'Read'
|
146
|
-
# }
|
147
|
-
# }
|
148
|
-
# )
|
149
|
-
#--
|
150
|
-
# PUT operation
|
151
|
-
# TODO: Implement
|
152
|
-
#def create(options = {})
|
153
|
-
#end
|
154
|
-
|
155
67
|
# Stop the VM +vmname+ in +group+ and deallocate the tenant in Fabric.
|
156
68
|
#
|
157
69
|
def deallocate(vmname, group = armrest_configuration.resource_group)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure-armrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-10-
|
14
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|