OsPatchPackageSummary

class oci.bds.models.OsPatchPackageSummary(**kwargs)

Bases: object

Summary of a package contained in a os patch.

Attributes:

PACKAGE_TYPE_PIP

A constant which can be used with the package_type property of a OsPatchPackageSummary.

PACKAGE_TYPE_PIP3

A constant which can be used with the package_type property of a OsPatchPackageSummary.

PACKAGE_TYPE_PIP3_8

A constant which can be used with the package_type property of a OsPatchPackageSummary.

PACKAGE_TYPE_RPM

A constant which can be used with the package_type property of a OsPatchPackageSummary.

UPDATE_TYPE_INSTALL

A constant which can be used with the update_type property of a OsPatchPackageSummary.

UPDATE_TYPE_REMOVE

A constant which can be used with the update_type property of a OsPatchPackageSummary.

UPDATE_TYPE_UPDATE

A constant which can be used with the update_type property of a OsPatchPackageSummary.

package_name

[Required] Gets the package_name of this OsPatchPackageSummary.

package_type

Gets the package_type of this OsPatchPackageSummary.

related_cv_es

[Required] Gets the related_cv_es of this OsPatchPackageSummary.

target_version

Gets the target_version of this OsPatchPackageSummary.

update_type

[Required] Gets the update_type of this OsPatchPackageSummary.

Methods:

__init__(**kwargs)

Initializes a new OsPatchPackageSummary object with values from keyword arguments.

PACKAGE_TYPE_PIP = 'PIP'

A constant which can be used with the package_type property of a OsPatchPackageSummary. This constant has a value of “PIP”

PACKAGE_TYPE_PIP3 = 'PIP3'

A constant which can be used with the package_type property of a OsPatchPackageSummary. This constant has a value of “PIP3”

PACKAGE_TYPE_PIP3_8 = 'PIP3_8'

A constant which can be used with the package_type property of a OsPatchPackageSummary. This constant has a value of “PIP3_8”

PACKAGE_TYPE_RPM = 'RPM'

A constant which can be used with the package_type property of a OsPatchPackageSummary. This constant has a value of “RPM”

UPDATE_TYPE_INSTALL = 'INSTALL'

A constant which can be used with the update_type property of a OsPatchPackageSummary. This constant has a value of “INSTALL”

UPDATE_TYPE_REMOVE = 'REMOVE'

A constant which can be used with the update_type property of a OsPatchPackageSummary. This constant has a value of “REMOVE”

UPDATE_TYPE_UPDATE = 'UPDATE'

A constant which can be used with the update_type property of a OsPatchPackageSummary. This constant has a value of “UPDATE”

__init__(**kwargs)

Initializes a new OsPatchPackageSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • package_name (str) – The value to assign to the package_name property of this OsPatchPackageSummary.

  • target_version (str) – The value to assign to the target_version property of this OsPatchPackageSummary.

  • update_type (str) – The value to assign to the update_type property of this OsPatchPackageSummary. Allowed values for this property are: “INSTALL”, “REMOVE”, “UPDATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • related_cv_es (list[str]) – The value to assign to the related_cv_es property of this OsPatchPackageSummary.

  • package_type (str) – The value to assign to the package_type property of this OsPatchPackageSummary. Allowed values for this property are: “RPM”, “PIP”, “PIP3”, “PIP3_8”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property package_name

[Required] Gets the package_name of this OsPatchPackageSummary. The package’s name.

Returns

The package_name of this OsPatchPackageSummary.

Return type

str

property package_type

Gets the package_type of this OsPatchPackageSummary. Package type based on package installation manager.

Allowed values for this property are: “RPM”, “PIP”, “PIP3”, “PIP3_8”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The package_type of this OsPatchPackageSummary.

Return type

str

property related_cv_es

[Required] Gets the related_cv_es of this OsPatchPackageSummary. Related CVEs of the package update.

Returns

The related_cv_es of this OsPatchPackageSummary.

Return type

list[str]

property target_version

Gets the target_version of this OsPatchPackageSummary. The target version of the package.

Returns

The target_version of this OsPatchPackageSummary.

Return type

str

property update_type

[Required] Gets the update_type of this OsPatchPackageSummary. The action that current package will be executed on the cluster.

Allowed values for this property are: “INSTALL”, “REMOVE”, “UPDATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The update_type of this OsPatchPackageSummary.

Return type

str