PackageGroup¶
- class oci.os_management_hub.models.PackageGroup(**kwargs)¶
Bases:
objectYum or DNF package group, category, or environment.
Attributes:
A constant which can be used with the group_type property of a PackageGroup.
A constant which can be used with the group_type property of a PackageGroup.
A constant which can be used with the group_type property of a PackageGroup.
Gets the description of this PackageGroup.
Gets the display_order of this PackageGroup.
Gets the group_type of this PackageGroup.
[Required] Gets the id of this PackageGroup.
Gets the is_default of this PackageGroup.
Gets the is_user_visible of this PackageGroup.
[Required] Gets the name of this PackageGroup.
[Required] Gets the packages of this PackageGroup.
Gets the repositories of this PackageGroup.
Methods:
__init__(**kwargs)Initializes a new PackageGroup object with values from keyword arguments.
- GROUP_TYPE_CATEGORY = 'CATEGORY'¶
A constant which can be used with the group_type property of a PackageGroup. This constant has a value of “CATEGORY”
- GROUP_TYPE_ENVIRONMENT = 'ENVIRONMENT'¶
A constant which can be used with the group_type property of a PackageGroup. This constant has a value of “ENVIRONMENT”
- GROUP_TYPE_GROUP = 'GROUP'¶
A constant which can be used with the group_type property of a PackageGroup. This constant has a value of “GROUP”
- __init__(**kwargs)¶
Initializes a new PackageGroup object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this PackageGroup.
name (str) – The value to assign to the name property of this PackageGroup.
repositories (list[str]) – The value to assign to the repositories property of this PackageGroup.
description (str) – The value to assign to the description property of this PackageGroup.
is_user_visible (bool) – The value to assign to the is_user_visible property of this PackageGroup.
is_default (bool) – The value to assign to the is_default property of this PackageGroup.
group_type (str) – The value to assign to the group_type property of this PackageGroup. Allowed values for this property are: “GROUP”, “ENVIRONMENT”, “CATEGORY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
display_order (int) – The value to assign to the display_order property of this PackageGroup.
packages (list[str]) – The value to assign to the packages property of this PackageGroup.
- property description¶
Gets the description of this PackageGroup. Description of the package group.
- Returns
The description of this PackageGroup.
- Return type
str
- property display_order¶
Gets the display_order of this PackageGroup. Indicates the order to display category or environment.
- Returns
The display_order of this PackageGroup.
- Return type
int
- property group_type¶
Gets the group_type of this PackageGroup. Indicates if this is a group, category, or environment.
Allowed values for this property are: “GROUP”, “ENVIRONMENT”, “CATEGORY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The group_type of this PackageGroup.
- Return type
str
- property id¶
[Required] Gets the id of this PackageGroup. Package group identifier.
- Returns
The id of this PackageGroup.
- Return type
str
- property is_default¶
Gets the is_default of this PackageGroup. Indicates if this package group is the default.
- Returns
The is_default of this PackageGroup.
- Return type
bool
- property is_user_visible¶
Gets the is_user_visible of this PackageGroup. Indicates if this package group is visible to users.
- Returns
The is_user_visible of this PackageGroup.
- Return type
bool
- property name¶
[Required] Gets the name of this PackageGroup. Package group name.
- Returns
The name of this PackageGroup.
- Return type
str
- property packages¶
[Required] Gets the packages of this PackageGroup. The list of packages in the package group.
- Returns
The packages of this PackageGroup.
- Return type
list[str]
- property repositories¶
Gets the repositories of this PackageGroup. The repository IDs of the package group’s repositories.
- Returns
The repositories of this PackageGroup.
- Return type
list[str]