ScheduledJobOperation¶
-
class
oci.os_management_hub.models.ScheduledJobOperation(**kwargs)¶ Bases:
objectDefines an operation that is performed by a scheduled job.
Attributes
OPERATION_TYPE_ATTACH_SOFTWARE_SOURCESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_DETACH_SOFTWARE_SOURCESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_INSTALL_ALL_WINDOWS_UPDATESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_INSTALL_BUGFIX_WINDOWS_UPDATESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_INSTALL_ENHANCEMENT_WINDOWS_UPDATESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_INSTALL_OTHER_WINDOWS_UPDATESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_INSTALL_PACKAGESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_INSTALL_SECURITY_WINDOWS_UPDATESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_INSTALL_WINDOWS_UPDATESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_MANAGE_MODULE_STREAMSA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_PROMOTE_LIFECYCLEA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_REBOOTA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_REMOVE_PACKAGESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_RERUN_WORK_REQUESTA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_SWITCH_MODULE_STREAMA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_SYNC_MANAGEMENT_STATION_MIRRORA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_ALLA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_BUGFIXA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_ENHANCEMENTA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_KSPLICE_KERNELA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_KSPLICE_USERSPACEA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_OTHERA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_PACKAGESA constant which can be used with the operation_type property of a ScheduledJobOperation. OPERATION_TYPE_UPDATE_SECURITYA constant which can be used with the operation_type property of a ScheduledJobOperation. manage_module_streams_detailsGets the manage_module_streams_details of this ScheduledJobOperation. operation_type[Required] Gets the operation_type of this ScheduledJobOperation. package_namesGets the package_names of this ScheduledJobOperation. reboot_timeout_in_minsGets the reboot_timeout_in_mins of this ScheduledJobOperation. software_source_idsGets the software_source_ids of this ScheduledJobOperation. switch_module_streams_detailsGets the switch_module_streams_details of this ScheduledJobOperation. windows_update_namesGets the windows_update_names of this ScheduledJobOperation. Methods
__init__(**kwargs)Initializes a new ScheduledJobOperation object with values from keyword arguments. -
OPERATION_TYPE_ATTACH_SOFTWARE_SOURCES= 'ATTACH_SOFTWARE_SOURCES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “ATTACH_SOFTWARE_SOURCES”
-
OPERATION_TYPE_DETACH_SOFTWARE_SOURCES= 'DETACH_SOFTWARE_SOURCES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “DETACH_SOFTWARE_SOURCES”
-
OPERATION_TYPE_INSTALL_ALL_WINDOWS_UPDATES= 'INSTALL_ALL_WINDOWS_UPDATES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “INSTALL_ALL_WINDOWS_UPDATES”
-
OPERATION_TYPE_INSTALL_BUGFIX_WINDOWS_UPDATES= 'INSTALL_BUGFIX_WINDOWS_UPDATES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “INSTALL_BUGFIX_WINDOWS_UPDATES”
-
OPERATION_TYPE_INSTALL_ENHANCEMENT_WINDOWS_UPDATES= 'INSTALL_ENHANCEMENT_WINDOWS_UPDATES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “INSTALL_ENHANCEMENT_WINDOWS_UPDATES”
-
OPERATION_TYPE_INSTALL_OTHER_WINDOWS_UPDATES= 'INSTALL_OTHER_WINDOWS_UPDATES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “INSTALL_OTHER_WINDOWS_UPDATES”
-
OPERATION_TYPE_INSTALL_PACKAGES= 'INSTALL_PACKAGES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “INSTALL_PACKAGES”
-
OPERATION_TYPE_INSTALL_SECURITY_WINDOWS_UPDATES= 'INSTALL_SECURITY_WINDOWS_UPDATES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “INSTALL_SECURITY_WINDOWS_UPDATES”
-
OPERATION_TYPE_INSTALL_WINDOWS_UPDATES= 'INSTALL_WINDOWS_UPDATES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “INSTALL_WINDOWS_UPDATES”
-
OPERATION_TYPE_MANAGE_MODULE_STREAMS= 'MANAGE_MODULE_STREAMS'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “MANAGE_MODULE_STREAMS”
-
OPERATION_TYPE_PROMOTE_LIFECYCLE= 'PROMOTE_LIFECYCLE'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “PROMOTE_LIFECYCLE”
-
OPERATION_TYPE_REBOOT= 'REBOOT'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “REBOOT”
-
OPERATION_TYPE_REMOVE_PACKAGES= 'REMOVE_PACKAGES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “REMOVE_PACKAGES”
-
OPERATION_TYPE_RERUN_WORK_REQUEST= 'RERUN_WORK_REQUEST'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “RERUN_WORK_REQUEST”
-
OPERATION_TYPE_SWITCH_MODULE_STREAM= 'SWITCH_MODULE_STREAM'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “SWITCH_MODULE_STREAM”
-
OPERATION_TYPE_SYNC_MANAGEMENT_STATION_MIRROR= 'SYNC_MANAGEMENT_STATION_MIRROR'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “SYNC_MANAGEMENT_STATION_MIRROR”
-
OPERATION_TYPE_UPDATE_ALL= 'UPDATE_ALL'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_ALL”
-
OPERATION_TYPE_UPDATE_BUGFIX= 'UPDATE_BUGFIX'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_BUGFIX”
-
OPERATION_TYPE_UPDATE_ENHANCEMENT= 'UPDATE_ENHANCEMENT'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_ENHANCEMENT”
-
OPERATION_TYPE_UPDATE_KSPLICE_KERNEL= 'UPDATE_KSPLICE_KERNEL'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_KSPLICE_KERNEL”
-
OPERATION_TYPE_UPDATE_KSPLICE_USERSPACE= 'UPDATE_KSPLICE_USERSPACE'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_KSPLICE_USERSPACE”
-
OPERATION_TYPE_UPDATE_OTHER= 'UPDATE_OTHER'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_OTHER”
-
OPERATION_TYPE_UPDATE_PACKAGES= 'UPDATE_PACKAGES'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_PACKAGES”
-
OPERATION_TYPE_UPDATE_SECURITY= 'UPDATE_SECURITY'¶ A constant which can be used with the operation_type property of a ScheduledJobOperation. This constant has a value of “UPDATE_SECURITY”
-
__init__(**kwargs)¶ Initializes a new ScheduledJobOperation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - operation_type (str) – The value to assign to the operation_type property of this ScheduledJobOperation. Allowed values for this property are: “INSTALL_PACKAGES”, “UPDATE_PACKAGES”, “REMOVE_PACKAGES”, “UPDATE_ALL”, “UPDATE_SECURITY”, “UPDATE_BUGFIX”, “UPDATE_ENHANCEMENT”, “UPDATE_OTHER”, “UPDATE_KSPLICE_USERSPACE”, “UPDATE_KSPLICE_KERNEL”, “MANAGE_MODULE_STREAMS”, “SWITCH_MODULE_STREAM”, “ATTACH_SOFTWARE_SOURCES”, “DETACH_SOFTWARE_SOURCES”, “SYNC_MANAGEMENT_STATION_MIRROR”, “PROMOTE_LIFECYCLE”, “INSTALL_WINDOWS_UPDATES”, “INSTALL_ALL_WINDOWS_UPDATES”, “INSTALL_SECURITY_WINDOWS_UPDATES”, “INSTALL_BUGFIX_WINDOWS_UPDATES”, “INSTALL_ENHANCEMENT_WINDOWS_UPDATES”, “INSTALL_OTHER_WINDOWS_UPDATES”, “REBOOT”, “RERUN_WORK_REQUEST”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- package_names (list[str]) – The value to assign to the package_names property of this ScheduledJobOperation.
- windows_update_names (list[str]) – The value to assign to the windows_update_names property of this ScheduledJobOperation.
- manage_module_streams_details (oci.os_management_hub.models.ManageModuleStreamsInScheduledJobDetails) – The value to assign to the manage_module_streams_details property of this ScheduledJobOperation.
- switch_module_streams_details (oci.os_management_hub.models.ModuleStreamDetails) – The value to assign to the switch_module_streams_details property of this ScheduledJobOperation.
- software_source_ids (list[str]) – The value to assign to the software_source_ids property of this ScheduledJobOperation.
- reboot_timeout_in_mins (int) – The value to assign to the reboot_timeout_in_mins property of this ScheduledJobOperation.
-
manage_module_streams_details¶ Gets the manage_module_streams_details of this ScheduledJobOperation.
Returns: The manage_module_streams_details of this ScheduledJobOperation. Return type: oci.os_management_hub.models.ManageModuleStreamsInScheduledJobDetails
-
operation_type¶ [Required] Gets the operation_type of this ScheduledJobOperation. The type of operation this scheduled job performs.
Allowed values for this property are: “INSTALL_PACKAGES”, “UPDATE_PACKAGES”, “REMOVE_PACKAGES”, “UPDATE_ALL”, “UPDATE_SECURITY”, “UPDATE_BUGFIX”, “UPDATE_ENHANCEMENT”, “UPDATE_OTHER”, “UPDATE_KSPLICE_USERSPACE”, “UPDATE_KSPLICE_KERNEL”, “MANAGE_MODULE_STREAMS”, “SWITCH_MODULE_STREAM”, “ATTACH_SOFTWARE_SOURCES”, “DETACH_SOFTWARE_SOURCES”, “SYNC_MANAGEMENT_STATION_MIRROR”, “PROMOTE_LIFECYCLE”, “INSTALL_WINDOWS_UPDATES”, “INSTALL_ALL_WINDOWS_UPDATES”, “INSTALL_SECURITY_WINDOWS_UPDATES”, “INSTALL_BUGFIX_WINDOWS_UPDATES”, “INSTALL_ENHANCEMENT_WINDOWS_UPDATES”, “INSTALL_OTHER_WINDOWS_UPDATES”, “REBOOT”, “RERUN_WORK_REQUEST”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The operation_type of this ScheduledJobOperation. Return type: str
-
package_names¶ Gets the package_names of this ScheduledJobOperation. The names of the target packages. This parameter only applies when the scheduled job is for installing, updating, or removing packages.
Returns: The package_names of this ScheduledJobOperation. Return type: list[str]
-
reboot_timeout_in_mins¶ Gets the reboot_timeout_in_mins of this ScheduledJobOperation. The number of minutes the service waits for the reboot to complete. If the instance doesn’t reboot within the timeout, the service marks the reboot job as failed.
Returns: The reboot_timeout_in_mins of this ScheduledJobOperation. Return type: int
-
software_source_ids¶ Gets the software_source_ids of this ScheduledJobOperation. The software source OCIDs. This parameter only applies when the scheduled job is for attaching or detaching software sources.
Returns: The software_source_ids of this ScheduledJobOperation. Return type: list[str]
-
switch_module_streams_details¶ Gets the switch_module_streams_details of this ScheduledJobOperation.
Returns: The switch_module_streams_details of this ScheduledJobOperation. Return type: oci.os_management_hub.models.ModuleStreamDetails
-
windows_update_names¶ Gets the windows_update_names of this ScheduledJobOperation. Unique identifier for the Windows update. This parameter only applies if the scheduled job is for installing Windows updates. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. For example: ‘6981d463-cd91-4a26-b7c4-ea4ded9183ed’.
Returns: The windows_update_names of this ScheduledJobOperation. Return type: list[str]
-