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 +4 -4
- data/lib/VMwareWebService/MiqVim.rb +24 -2
- data/lib/VMwareWebService/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9387d2cd8bafbb20342e26e516df855fbc85d2a995d248fc092ad61a82b3864e
|
4
|
+
data.tar.gz: 7874514afcb8cdd2ef96b95bd6b06a7afdb8b2175465219ec5b88d08adfee024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
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.
|
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:
|
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.
|
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
|