PackageFilter

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

Bases: object

Provides the information used to create a filter for packages from a vendor software source to create or update a custom software source.

Attributes

FILTER_TYPE_EXCLUDE A constant which can be used with the filter_type property of a PackageFilter.
FILTER_TYPE_INCLUDE A constant which can be used with the filter_type property of a PackageFilter.
filter_type [Required] Gets the filter_type of this PackageFilter.
package_name Gets the package_name of this PackageFilter.
package_name_pattern Gets the package_name_pattern of this PackageFilter.
package_version Gets the package_version of this PackageFilter.

Methods

__init__(**kwargs) Initializes a new PackageFilter object with values from keyword arguments.
FILTER_TYPE_EXCLUDE = 'EXCLUDE'

A constant which can be used with the filter_type property of a PackageFilter. This constant has a value of “EXCLUDE”

FILTER_TYPE_INCLUDE = 'INCLUDE'

A constant which can be used with the filter_type property of a PackageFilter. This constant has a value of “INCLUDE”

__init__(**kwargs)

Initializes a new PackageFilter 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 PackageFilter.
  • package_name_pattern (str) – The value to assign to the package_name_pattern property of this PackageFilter.
  • package_version (str) – The value to assign to the package_version property of this PackageFilter.
  • filter_type (str) – The value to assign to the filter_type property of this PackageFilter. Allowed values for this property are: “INCLUDE”, “EXCLUDE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
filter_type

[Required] Gets the filter_type of this PackageFilter. The type of the filter.

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

Returns:The filter_type of this PackageFilter.
Return type:str
package_name

Gets the package_name of this PackageFilter. The package name.

Returns:The package_name of this PackageFilter.
Return type:str
package_name_pattern

Gets the package_name_pattern of this PackageFilter. The package name pattern.

Returns:The package_name_pattern of this PackageFilter.
Return type:str
package_version

Gets the package_version of this PackageFilter. The package version, which is denoted by ‘version-release’, or ‘epoch:version-release’.

Returns:The package_version of this PackageFilter.
Return type:str