ModuleStream¶
-
class
oci.os_management_hub.models.ModuleStream(**kwargs)¶ Bases:
objectAn object that defines a module stream provided by a software source.
Attributes
ARCH_TYPE_AARCH64A constant which can be used with the arch_type property of a ModuleStream. ARCH_TYPE_I386A constant which can be used with the arch_type property of a ModuleStream. ARCH_TYPE_I686A constant which can be used with the arch_type property of a ModuleStream. ARCH_TYPE_NOARCHA constant which can be used with the arch_type property of a ModuleStream. ARCH_TYPE_SRCA constant which can be used with the arch_type property of a ModuleStream. ARCH_TYPE_X86_64A constant which can be used with the arch_type property of a ModuleStream. arch_typeGets the arch_type of this ModuleStream. descriptionGets the description of this ModuleStream. is_defaultGets the is_default of this ModuleStream. is_latestGets the is_latest of this ModuleStream. module_name[Required] Gets the module_name of this ModuleStream. name[Required] Gets the name of this ModuleStream. packagesGets the packages of this ModuleStream. profilesGets the profiles of this ModuleStream. software_source_idGets 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_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”, ‘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.
-
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”, ‘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
-
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
-
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
-
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
-
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
-
name¶ [Required] Gets the name of this ModuleStream. The name of the stream.
Returns: The name of this ModuleStream. Return type: str
-
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]
-
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]
-