SoftwarePackage

class oci.os_management_hub.models.SoftwarePackage(**kwargs)

Bases: object

An object that defines a software package.

Attributes

ARCHITECTURE_AARCH64 A constant which can be used with the architecture property of a SoftwarePackage.
ARCHITECTURE_I386 A constant which can be used with the architecture property of a SoftwarePackage.
ARCHITECTURE_I686 A constant which can be used with the architecture property of a SoftwarePackage.
ARCHITECTURE_NOARCH A constant which can be used with the architecture property of a SoftwarePackage.
ARCHITECTURE_OTHER A constant which can be used with the architecture property of a SoftwarePackage.
ARCHITECTURE_SRC A constant which can be used with the architecture property of a SoftwarePackage.
ARCHITECTURE_X86_64 A constant which can be used with the architecture property of a SoftwarePackage.
architecture Gets the architecture of this SoftwarePackage.
checksum Gets the checksum of this SoftwarePackage.
checksum_type Gets the checksum_type of this SoftwarePackage.
dependencies Gets the dependencies of this SoftwarePackage.
description Gets the description of this SoftwarePackage.
display_name [Required] Gets the display_name of this SoftwarePackage.
files Gets the files of this SoftwarePackage.
is_latest Gets the is_latest of this SoftwarePackage.
last_modified_date Gets the last_modified_date of this SoftwarePackage.
name [Required] Gets the name of this SoftwarePackage.
os_families Gets the os_families of this SoftwarePackage.
size_in_bytes Gets the size_in_bytes of this SoftwarePackage.
software_sources Gets the software_sources of this SoftwarePackage.
type [Required] Gets the type of this SoftwarePackage.
version [Required] Gets the version of this SoftwarePackage.

Methods

__init__(**kwargs) Initializes a new SoftwarePackage object with values from keyword arguments.
ARCHITECTURE_AARCH64 = 'AARCH64'

A constant which can be used with the architecture property of a SoftwarePackage. This constant has a value of “AARCH64”

ARCHITECTURE_I386 = 'I386'

A constant which can be used with the architecture property of a SoftwarePackage. This constant has a value of “I386”

ARCHITECTURE_I686 = 'I686'

A constant which can be used with the architecture property of a SoftwarePackage. This constant has a value of “I686”

ARCHITECTURE_NOARCH = 'NOARCH'

A constant which can be used with the architecture property of a SoftwarePackage. This constant has a value of “NOARCH”

ARCHITECTURE_OTHER = 'OTHER'

A constant which can be used with the architecture property of a SoftwarePackage. This constant has a value of “OTHER”

ARCHITECTURE_SRC = 'SRC'

A constant which can be used with the architecture property of a SoftwarePackage. This constant has a value of “SRC”

ARCHITECTURE_X86_64 = 'X86_64'

A constant which can be used with the architecture property of a SoftwarePackage. This constant has a value of “X86_64”

__init__(**kwargs)

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

Parameters:
  • display_name (str) – The value to assign to the display_name property of this SoftwarePackage.
  • name (str) – The value to assign to the name property of this SoftwarePackage.
  • type (str) – The value to assign to the type property of this SoftwarePackage.
  • version (str) – The value to assign to the version property of this SoftwarePackage.
  • architecture (str) – The value to assign to the architecture property of this SoftwarePackage. Allowed values for this property are: “I386”, “I686”, “AARCH64”, “X86_64”, “SRC”, “NOARCH”, “OTHER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • last_modified_date (str) – The value to assign to the last_modified_date property of this SoftwarePackage.
  • checksum (str) – The value to assign to the checksum property of this SoftwarePackage.
  • checksum_type (str) – The value to assign to the checksum_type property of this SoftwarePackage.
  • description (str) – The value to assign to the description property of this SoftwarePackage.
  • size_in_bytes (int) – The value to assign to the size_in_bytes property of this SoftwarePackage.
  • dependencies (list[oci.os_management_hub.models.SoftwarePackageDependency]) – The value to assign to the dependencies property of this SoftwarePackage.
  • files (list[oci.os_management_hub.models.SoftwarePackageFile]) – The value to assign to the files property of this SoftwarePackage.
  • software_sources (list[oci.os_management_hub.models.SoftwareSourceDetails]) – The value to assign to the software_sources property of this SoftwarePackage.
  • is_latest (bool) – The value to assign to the is_latest property of this SoftwarePackage.
  • os_families (list[oci.os_management_hub.models.OsFamily]) – The value to assign to the os_families property of this SoftwarePackage.
architecture

Gets the architecture of this SoftwarePackage. The architecture for which this software was built

Allowed values for this property are: “I386”, “I686”, “AARCH64”, “X86_64”, “SRC”, “NOARCH”, “OTHER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The architecture of this SoftwarePackage.
Return type:str
checksum

Gets the checksum of this SoftwarePackage. Checksum of the package.

Returns:The checksum of this SoftwarePackage.
Return type:str
checksum_type

Gets the checksum_type of this SoftwarePackage. Type of the checksum.

Returns:The checksum_type of this SoftwarePackage.
Return type:str
dependencies

Gets the dependencies of this SoftwarePackage. List of dependencies for the software package.

Returns:The dependencies of this SoftwarePackage.
Return type:list[oci.os_management_hub.models.SoftwarePackageDependency]
description

Gets the description of this SoftwarePackage. Description of the package.

Returns:The description of this SoftwarePackage.
Return type:str
display_name

[Required] Gets the display_name of this SoftwarePackage. Package name.

Returns:The display_name of this SoftwarePackage.
Return type:str
files

Gets the files of this SoftwarePackage. List of files for the software package.

Returns:The files of this SoftwarePackage.
Return type:list[oci.os_management_hub.models.SoftwarePackageFile]
is_latest

Gets the is_latest of this SoftwarePackage. Indicates whether this package is the latest version.

Returns:The is_latest of this SoftwarePackage.
Return type:bool
last_modified_date

Gets the last_modified_date of this SoftwarePackage. The date and time the package was last modified (in RFC 3339 format).

Returns:The last_modified_date of this SoftwarePackage.
Return type:str
name

[Required] Gets the name of this SoftwarePackage. Unique identifier for the package. Note that this is not an OCID.

Returns:The name of this SoftwarePackage.
Return type:str
os_families

Gets the os_families of this SoftwarePackage. The OS families the package belongs to.

Returns:The os_families of this SoftwarePackage.
Return type:list[oci.os_management_hub.models.OsFamily]
size_in_bytes

Gets the size_in_bytes of this SoftwarePackage. Size of the package in bytes.

Returns:The size_in_bytes of this SoftwarePackage.
Return type:int
software_sources

Gets the software_sources of this SoftwarePackage. List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.

Returns:The software_sources of this SoftwarePackage.
Return type:list[oci.os_management_hub.models.SoftwareSourceDetails]
type

[Required] Gets the type of this SoftwarePackage. Type of the package.

Returns:The type of this SoftwarePackage.
Return type:str
version

[Required] Gets the version of this SoftwarePackage. Version of the package.

Returns:The version of this SoftwarePackage.
Return type:str