vmware_web_service 1.0.8 → 1.0.9

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
  SHA256:
3
- metadata.gz: b73de1ee5f2d243a464a790d35752220e182e6f0fbe888707a35b2b5183c44f3
4
- data.tar.gz: 64f8c7d2b6643806068b2c4042fed7390f5905f59536e160f5633672b3eba215
3
+ metadata.gz: 9387d2cd8bafbb20342e26e516df855fbc85d2a995d248fc092ad61a82b3864e
4
+ data.tar.gz: 7874514afcb8cdd2ef96b95bd6b06a7afdb8b2175465219ec5b88d08adfee024
5
5
  SHA512:
6
- metadata.gz: 16a8effd7ef4615e017c543fc662f9a7eda22a74089f6a02518bc7a47687102d13e6fe3955c8b6b82d8b000c4db48ca0b176231f0d0e825f19be922370eb85cd
7
- data.tar.gz: 52bf388bc55afb1343e9d276812ee20b99c2d5b9e4250e62550b68ab73e150367ee3c43a3a46382a2ee65bf79577f8e52f4f2b94b89ca047c9c0759ad1d76594
6
+ metadata.gz: 5387c14724142857b488e24bf49a8ac2cc79e38d85bed837441bd42b468e21cf029eed99b0779eab260440f8ee370972b61b9c23885d04a6dfe1c35f40bc7e97
7
+ data.tar.gz: 9f03fd556dcb003f139950d518ea08f21666f56ddd15acbd2a6cecc3571880ee48de5cbb941f4b7e047abcf98d77fec477a7846eb57be78b585ab36c3f3f4499
@@ -22,7 +22,7 @@ class MiqVim < MiqVimInventory
22
22
 
23
23
  attr_reader :updateThread, :monitor_updates
24
24
 
25
- # @param server [String] DNS name or IP address of the vCenter Server
25
+ # @param server [String] DNS name or IP address of the vCenter Server
26
26
  # @param username [String] Username to connect to the vCenter Server
27
27
  # @param password [String] Password to connect to the vCenter Server
28
28
  # @param cacheScope [Symbol] A pre-defined set of properties to cache (default: nil)
@@ -32,11 +32,14 @@ class MiqVim < MiqVimInventory
32
32
  # @param notifyMethod [Method] A optional method to call for each update (default: nil)
33
33
  # @param maxWait [Integer] How many seconds to wait before breaking out of WaitForUpdates (default: 60)
34
34
  # @param maxObjects [Integer] How many objects to return from each WaitForUpdates page (default: 250)
35
- def initialize(server, username, password, cacheScope = nil, monitor_updates = false, preLoad = false, debugUpdates = false, notifyMethod = nil, maxWait = 60, maxObjects = 250)
35
+ def initialize(server, username, password, cacheScope = nil, monitor_updates = nil, preLoad = nil, debugUpdates = false, notifyMethod = nil, maxWait = 60, maxObjects = 250)
36
36
  super(server, username, password, cacheScope)
37
37
 
38
38
  pbm_initialize(self)
39
39
 
40
+ monitor_updates = self.class.monitor_updates if monitor_updates.nil?
41
+ preLoad = self.class.pre_load if preLoad.nil?
42
+
40
43
  @monitor_updates = monitor_updates
41
44
  @updateMonitorReady = false
42
45
  @error = nil
@@ -48,6 +51,25 @@ class MiqVim < MiqVimInventory
48
51
  start_monitor_updates_thread(preLoad) if @monitor_updates
49
52
  end
50
53
 
54
+ @@monitor_updates = false
55
+ @@pre_load = false
56
+
57
+ def self.monitor_updates
58
+ @@monitor_updates
59
+ end
60
+
61
+ def self.monitor_updates=(val)
62
+ @@monitor_updates = val
63
+ end
64
+
65
+ def self.pre_load
66
+ @@pre_load
67
+ end
68
+
69
+ def self.pre_load=(val)
70
+ @@pre_load = val
71
+ end
72
+
51
73
  def getVimVm(path)
52
74
  $vim_log.info "MiqVimMod.getVimVm: called"
53
75
  miqVimVm = nil
@@ -1,3 +1,3 @@
1
1
  module VMwareWebService
2
- VERSION = '1.0.8'.freeze
2
+ VERSION = '1.0.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmware_web_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-06 00:00:00.000000000 Z
11
+ date: 2021-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -4476,7 +4476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4476
4476
  - !ruby/object:Gem::Version
4477
4477
  version: '0'
4478
4478
  requirements: []
4479
- rubygems_version: 3.1.3
4479
+ rubygems_version: 3.2.4
4480
4480
  signing_key:
4481
4481
  specification_version: 4
4482
4482
  summary: A ruby interface to Vmware Web Services SDK