fog-vsphere 1.2.2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eb3235564589a56f8e9d7a059f3ceb103b257f5
4
- data.tar.gz: 2991c0d30c009b96ee8b7fc45147f800652921af
3
+ metadata.gz: 0274b352d3f0ba9537632985666d0b9ab20b7377
4
+ data.tar.gz: 04fe32fe536cebb26e20aa1259aff7fbd27f11fe
5
5
  SHA512:
6
- metadata.gz: 1233d9bc964fe4986b9ad0635adba67670a572f27774bc32c69b4642d85ee19914dbb0bc32943e03b43a199896d2b8891ee40ef1427b8f46a60798a7f00469e2
7
- data.tar.gz: 4f8faf0d5bc1206a9863c61d028f4603bcf51281cb330f73f39efd0422f187d6109ef0a7af40c9e0fe795256c2036ee6d68ad34df7607eed7492c877229b98da
6
+ metadata.gz: a41b6cb9084bfe613cb9ac940e1dca77b8d508c29a6c4561c5d8921aac88480bd0f218360f359bca7f817a69109fdf8175857aa9759c39b4a07df81fc9b66168
7
+ data.tar.gz: c74aab1fa50371cb87bb0ddcf3feed952bdf9400a54759b3e68457648d9e72fc74f26aefe9813c25bfafa3af5dd66e8e473d4f89f08ff3f05d44af27b6792035
@@ -1,3 +1,23 @@
1
+ ## v1.3.0
2
+
3
+ * Add the add_vm_controller method
4
+
5
+ ## v1.2.2
6
+
7
+ * Upgrade rbvmomi depenency to latest stable series (1.9.x)
8
+
9
+ ## v1.2.1
10
+
11
+ * Do not fail on 'undefined method' when nicSettingMap not present
12
+
13
+ ## v1.2.0
14
+
15
+ * Add functionality for creating, listing, and destroying groups
16
+
17
+ ## v1.1.0
18
+
19
+ * Add ability to list ClusterVmHostRuleInfo type rules
20
+
1
21
  ## v1.0.1 8/23/2016
2
22
 
3
23
  * Update fog-vsphere.gemspec to pin RbVmomi for Ruby 1.8.x versions
@@ -116,6 +116,7 @@ module Fog
116
116
  request :list_groups
117
117
  request :destroy_group
118
118
  request :get_host
119
+ request :modify_vm_controller
119
120
 
120
121
  module Shared
121
122
  attr_reader :vsphere_is_vcenter
@@ -6,6 +6,7 @@ module Fog
6
6
  attribute :type
7
7
  attribute :unit_number
8
8
  attribute :key
9
+ attribute :server_id
9
10
 
10
11
  def to_s
11
12
  "#{type} ##{key}: shared: #{shared_bus}, unit_number: #{unit_number}"
@@ -0,0 +1,29 @@
1
+ module Fog
2
+ module Compute
3
+ class Vsphere
4
+ class Real
5
+ def add_vm_controller(controller)
6
+ options = {}
7
+ options[:operation] = 'add'
8
+ options[:type] = controller.type
9
+ options[:key] = controller.key
10
+ options[:shared] = controller.shared_bus
11
+
12
+ vm_reconfig_hardware('instance_uuid' => controller.server_id, 'hardware_spec' => {'deviceChange'=>[create_controller(options)]})
13
+ end
14
+ end
15
+
16
+ class Mock
17
+ def add_vm_controller(controller)
18
+ options = {}
19
+ options[:operation] = 'add'
20
+ options[:type] = RbVmomi::VIM.VirtualLsiLogicController.class
21
+ options[:key] = 1000
22
+ options[:shared] = false
23
+
24
+ vm_reconfig_hardware('instance_uuid' => controller.server_id, 'hardware_spec' => {'deviceChange'=>[create_controller(options)]})
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '1.2.2'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.R. Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-16 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -231,6 +231,7 @@ files:
231
231
  - lib/fog/vsphere/requests/compute/list_vm_snapshots.rb
232
232
  - lib/fog/vsphere/requests/compute/list_vm_volumes.rb
233
233
  - lib/fog/vsphere/requests/compute/modify_vm_cdrom.rb
234
+ - lib/fog/vsphere/requests/compute/modify_vm_controller.rb
234
235
  - lib/fog/vsphere/requests/compute/modify_vm_interface.rb
235
236
  - lib/fog/vsphere/requests/compute/modify_vm_volume.rb
236
237
  - lib/fog/vsphere/requests/compute/revert_to_snapshot.rb