vmware_web_service 2.0.3 → 2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e574683780708a47c577b3917ed87bf1557bc5cf74754a316779dbf22078e41
4
- data.tar.gz: adaf9d2ceee9103c3f1f523c09741f851265b3a751b3bc4485f2d94f778c6dcf
3
+ metadata.gz: 4d5a7058d7db794775f6a27766ae62dc2e17b6334d3d69c3dce8dc73df888906
4
+ data.tar.gz: 2b1fc2a2d07776d19c995cdc56e271d9bf14303534960c5f60a2d9b3f85b7429
5
5
  SHA512:
6
- metadata.gz: 8bbd90473121a7d542350232dca9525e33c836e84274e41574550e4dd2123b317d23345a73ff8cf5bc6e8f98b849358571288aef91a44d5fbc076a979c0ac7ca
7
- data.tar.gz: c423d660ce2d62115449de15b130495794625344b58a1ba7d7d331155b62e4d29738a69c55991931050a0dba29ddbad318b367189edf990113ca5745c983fbe3
6
+ metadata.gz: f6a4bfefe875d792e2020d087cb913f2a418515ebb5a05a8f60814781227405b58985bd33e091d856ac28777658675aa8507a57b4975ff87d48a3966b0255c9b
7
+ data.tar.gz: 93543cf64a0c43a43ea82b585418f9e95cb4e4c2f367b3aac5969b753b47a75799520734951aa38731b0a2f2f9dbbf3b69b72cae7c402aadb03313e15e3766eb
@@ -20,7 +20,7 @@ class MiqVim < MiqVimInventory
20
20
 
21
21
  attr_reader :updateThread, :monitor_updates
22
22
 
23
- # @param server [String] DNS name or IP address of the vCenter Server
23
+ # @param server [String] DNS name or IP address of the vCenter Server
24
24
  # @param username [String] Username to connect to the vCenter Server
25
25
  # @param password [String] Password to connect to the vCenter Server
26
26
  # @param cacheScope [Symbol] A pre-defined set of properties to cache (default: nil)
@@ -30,9 +30,12 @@ class MiqVim < MiqVimInventory
30
30
  # @param notifyMethod [Method] A optional method to call for each update (default: nil)
31
31
  # @param maxWait [Integer] How many seconds to wait before breaking out of WaitForUpdates (default: 60)
32
32
  # @param maxObjects [Integer] How many objects to return from each WaitForUpdates page (default: 250)
33
- def initialize(server, username, password, cacheScope = nil, monitor_updates = false, preLoad = false, debugUpdates = false, notifyMethod = nil, maxWait = 60, maxObjects = 250)
33
+ def initialize(server, username, password, cacheScope = nil, monitor_updates = nil, preLoad = nil, debugUpdates = false, notifyMethod = nil, maxWait = 60, maxObjects = 250)
34
34
  super(server, username, password, cacheScope)
35
35
 
36
+ monitor_updates = self.class.monitor_updates if monitor_updates.nil?
37
+ preLoad = self.class.pre_load if preLoad.nil?
38
+
36
39
  @monitor_updates = monitor_updates
37
40
  @updateMonitorReady = false
38
41
  @error = nil
@@ -44,6 +47,25 @@ class MiqVim < MiqVimInventory
44
47
  start_monitor_updates_thread(preLoad) if @monitor_updates
45
48
  end
46
49
 
50
+ @@monitor_updates = false
51
+ @@pre_load = false
52
+
53
+ def self.monitor_updates
54
+ @@monitor_updates
55
+ end
56
+
57
+ def self.monitor_updates=(val)
58
+ @@monitor_updates = val
59
+ end
60
+
61
+ def self.pre_load
62
+ @@pre_load
63
+ end
64
+
65
+ def self.pre_load=(val)
66
+ @@pre_load = val
67
+ end
68
+
47
69
  def getVimVm(path)
48
70
  $vim_log.info "MiqVimMod.getVimVm: called"
49
71
  miqVimVm = nil
@@ -1,3 +1,3 @@
1
1
  module VMwareWebService
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.1.0'.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: 2.0.3
4
+ version: 2.1.0
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-12-15 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport