PurgeQueueDetails¶
- class oci.queue.models.PurgeQueueDetails(**kwargs)¶
Bases:
objectPurge parameters.
Attributes:
A constant which can be used with the purge_type property of a PurgeQueueDetails.
A constant which can be used with the purge_type property of a PurgeQueueDetails.
A constant which can be used with the purge_type property of a PurgeQueueDetails.
Gets the channel_ids of this PurgeQueueDetails.
Gets the consumer_group_id of this PurgeQueueDetails.
[Required] Gets the purge_type of this PurgeQueueDetails.
Methods:
__init__(**kwargs)Initializes a new PurgeQueueDetails object with values from keyword arguments.
- PURGE_TYPE_BOTH = 'BOTH'¶
A constant which can be used with the purge_type property of a PurgeQueueDetails. This constant has a value of “BOTH”
- PURGE_TYPE_DLQ = 'DLQ'¶
A constant which can be used with the purge_type property of a PurgeQueueDetails. This constant has a value of “DLQ”
- PURGE_TYPE_NORMAL = 'NORMAL'¶
A constant which can be used with the purge_type property of a PurgeQueueDetails. This constant has a value of “NORMAL”
- __init__(**kwargs)¶
Initializes a new PurgeQueueDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
purge_type (str) – The value to assign to the purge_type property of this PurgeQueueDetails. Allowed values for this property are: “NORMAL”, “DLQ”, “BOTH”
channel_ids (list[str]) – The value to assign to the channel_ids property of this PurgeQueueDetails.
consumer_group_id (str) – The value to assign to the consumer_group_id property of this PurgeQueueDetails.
- property channel_ids¶
Gets the channel_ids of this PurgeQueueDetails. Optional parameter to specify the destination of purge operation. If the channel ID is specified, the purge operation will delete all the messages in the specific channels. If the channel ID is not specified, the purge operation will delete all the messages in the queue and in the child channels.
- Returns
The channel_ids of this PurgeQueueDetails.
- Return type
list[str]
- property consumer_group_id¶
Gets the consumer_group_id of this PurgeQueueDetails. The consumer group ID to purge. If the CONSUMER_GROUPS capability is enabled on the queue, omitting that field will purge the “Primary Consumer Group”, otherwise it will purge the queue. If you wish to purge all consumer groups in the queue, you can pass the special value ‘all’.
- Returns
The consumer_group_id of this PurgeQueueDetails.
- Return type
str
- property purge_type¶
[Required] Gets the purge_type of this PurgeQueueDetails. Type of the purge to perform: - NORMAL - purge only the normal queue - DLQ - purge only the dead letter queue - BOTH - purge both the normal queue and the dead letter queue
Allowed values for this property are: “NORMAL”, “DLQ”, “BOTH”
- Returns
The purge_type of this PurgeQueueDetails.
- Return type
str