-
string
uuid
Unique identifier/object reference
-
string
name_label
a human-readable name
-
string
name_description
a notes field containg human-readable description
-
string
version
Patch version number
-
string
filename
Filename of the patch
-
int
size
Size of the patch
-
bool
pool_applied
This patch should be applied across the entire pool
-
Set[host_patch]
host_patches
This hosts this patch is applied to.
-
Set[enum after_apply_guidance]
after_apply_guidance
What the client should do after this patch has been applied.
-
Map[string,string]
other_config
additional configuration
-
Record[pool_patch]
get_record
(session session_id, pool_patch self)
Get a record containing the current state of the given pool_patch.
-
pool_patch
get_by_uuid
(session session_id, string uuid)
Get a reference to the pool_patch instance with the specified UUID.
-
Set[pool_patch]
get_by_name_label
(session session_id, string label)
Get all the pool_patch instances with the given label.
-
Set[pool_patch]
get_all
(session session_id)
Return a list of all the pool_patchs known to the system.
-
Map[pool_patch,Record[pool_patch]]
get_all_records
(session session_id)
Return a map of pool_patch references to pool_patch records for all pool_patchs known to the system.
-
string
apply
(session session_id, pool_patch self, host host)
Apply the selected patch to a host and return its output
-
void
pool_apply
(session session_id, pool_patch self)
Apply the selected patch to all hosts in the pool and return a map of host_ref -> patch output
-
string
precheck
(session session_id, pool_patch self, host host)
Execute the precheck stage of the selected patch on a host and return its output
-
void
clean
(session session_id, pool_patch self)
Removes the patch's files from all hosts in the pool, but does not remove the database entries
-
void
destroy
(session session_id, pool_patch self)
Removes the patch's files from all hosts in the pool, and removes the database entries. Only works on unapplied patches.