ModuleStream

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

Bases: object

An object that defines a module stream provided by a software source.

Attributes:

ARCH_TYPE_AARCH64

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_ALL

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_AMD64

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_ARM64

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_I386

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_I686

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_NOARCH

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_SRC

A constant which can be used with the arch_type property of a ModuleStream.

ARCH_TYPE_X86_64

A constant which can be used with the arch_type property of a ModuleStream.

arch_type

Gets the arch_type of this ModuleStream.

description

Gets the description of this ModuleStream.

is_default

Gets the is_default of this ModuleStream.

is_latest

Gets the is_latest of this ModuleStream.

module_name

[Required] Gets the module_name of this ModuleStream.

name

[Required] Gets the name of this ModuleStream.

packages

Gets the packages of this ModuleStream.

profiles

Gets the profiles of this ModuleStream.

software_source_id

Gets the software_source_id of this ModuleStream.

Methods:

__init__(**kwargs)

Initializes a new ModuleStream object with values from keyword arguments.

ARCH_TYPE_AARCH64 = 'AARCH64'

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

ARCH_TYPE_ALL = 'ALL'

A constant which can be used with the arch_type property of a ModuleStream. This constant has a value of “ALL”

ARCH_TYPE_AMD64 = 'AMD64'

A constant which can be used with the arch_type property of a ModuleStream. This constant has a value of “AMD64”

ARCH_TYPE_ARM64 = 'ARM64'

A constant which can be used with the arch_type property of a ModuleStream. This constant has a value of “ARM64”

ARCH_TYPE_I386 = 'I386'

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

ARCH_TYPE_I686 = 'I686'

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

ARCH_TYPE_NOARCH = 'NOARCH'

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

ARCH_TYPE_SRC = 'SRC'

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

ARCH_TYPE_X86_64 = 'X86_64'

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

__init__(**kwargs)

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

Parameters
  • module_name (str) – The value to assign to the module_name property of this ModuleStream.

  • name (str) – The value to assign to the name property of this ModuleStream.

  • is_default (bool) – The value to assign to the is_default property of this ModuleStream.

  • software_source_id (str) – The value to assign to the software_source_id property of this ModuleStream.

  • arch_type (str) – The value to assign to the arch_type property of this ModuleStream. Allowed values for this property are: “X86_64”, “AARCH64”, “I686”, “NOARCH”, “SRC”, “I386”, “AMD64”, “ARM64”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • description (str) – The value to assign to the description property of this ModuleStream.

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

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

  • is_latest (bool) – The value to assign to the is_latest property of this ModuleStream.

property arch_type

Gets the arch_type of this ModuleStream. The architecture for which the packages in this module stream were built.

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

Returns

The arch_type of this ModuleStream.

Return type

str

property description

Gets the description of this ModuleStream. A description of the contents of the module stream.

Returns

The description of this ModuleStream.

Return type

str

property is_default

Gets the is_default of this ModuleStream. Indicates if this stream is the default for its module.

Returns

The is_default of this ModuleStream.

Return type

bool

property is_latest

Gets the is_latest of this ModuleStream. Indicates whether this module stream is the latest.

Returns

The is_latest of this ModuleStream.

Return type

bool

property module_name

[Required] Gets the module_name of this ModuleStream. The name of the module that contains the stream.

Returns

The module_name of this ModuleStream.

Return type

str

property name

[Required] Gets the name of this ModuleStream. The name of the stream.

Returns

The name of this ModuleStream.

Return type

str

property packages

Gets the packages of this ModuleStream. A list of packages that are contained by the stream. Each element in the list is the name of a package. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with packages.

Returns

The packages of this ModuleStream.

Return type

list[str]

property profiles

Gets the profiles of this ModuleStream. A list of profiles that are part of the stream. Each element in the list is the name of a profile. The name is suitable to use as an argument to other OS Management Hub APIs that interact directly with module stream profiles. However, it is not URL encoded.

Returns

The profiles of this ModuleStream.

Return type

list[str]

property software_source_id

Gets the software_source_id of this ModuleStream. The OCID of the software source that provides this module stream.

Returns

The software_source_id of this ModuleStream.

Return type

str