Filter

class oci.announcements_service.models.Filter(**kwargs)

Bases: object

Criteria that the Announcements service uses to match announcements so it can provide only desired announcements to subscribers.

Attributes

TYPE_ANNOUNCEMENT_TYPE A constant which can be used with the type property of a Filter.
TYPE_COMPARTMENT_ID A constant which can be used with the type property of a Filter.
TYPE_PLATFORM_TYPE A constant which can be used with the type property of a Filter.
TYPE_REGION A constant which can be used with the type property of a Filter.
TYPE_RESOURCE_ID A constant which can be used with the type property of a Filter.
TYPE_SERVICE A constant which can be used with the type property of a Filter.
type [Required] Gets the type of this Filter.
value [Required] Gets the value of this Filter.

Methods

__init__(**kwargs) Initializes a new Filter object with values from keyword arguments.
TYPE_ANNOUNCEMENT_TYPE = 'ANNOUNCEMENT_TYPE'

A constant which can be used with the type property of a Filter. This constant has a value of “ANNOUNCEMENT_TYPE”

TYPE_COMPARTMENT_ID = 'COMPARTMENT_ID'

A constant which can be used with the type property of a Filter. This constant has a value of “COMPARTMENT_ID”

TYPE_PLATFORM_TYPE = 'PLATFORM_TYPE'

A constant which can be used with the type property of a Filter. This constant has a value of “PLATFORM_TYPE”

TYPE_REGION = 'REGION'

A constant which can be used with the type property of a Filter. This constant has a value of “REGION”

TYPE_RESOURCE_ID = 'RESOURCE_ID'

A constant which can be used with the type property of a Filter. This constant has a value of “RESOURCE_ID”

TYPE_SERVICE = 'SERVICE'

A constant which can be used with the type property of a Filter. This constant has a value of “SERVICE”

__init__(**kwargs)

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

Parameters:
  • type (str) – The value to assign to the type property of this Filter. Allowed values for this property are: “COMPARTMENT_ID”, “PLATFORM_TYPE”, “REGION”, “SERVICE”, “RESOURCE_ID”, “ANNOUNCEMENT_TYPE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • value (str) – The value to assign to the value property of this Filter.
type

[Required] Gets the type of this Filter. The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.

Allowed values for this property are: “COMPARTMENT_ID”, “PLATFORM_TYPE”, “REGION”, “SERVICE”, “RESOURCE_ID”, “ANNOUNCEMENT_TYPE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this Filter.
Return type:str
value

[Required] Gets the value of this Filter. The value of the filter.

Returns:The value of this Filter.
Return type:str