UpdateAnnouncementsPreferencesDetails

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

Bases: oci.announcements_service.models.base_create_announcements_preferences_details.BaseCreateAnnouncementsPreferencesDetails

The object used to update announcement email preferences.

Attributes

PREFERENCE_TYPE_OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS str(object=’’) -> str
PREFERENCE_TYPE_OPT_IN_TENANT_ANNOUNCEMENTS str(object=’’) -> str
PREFERENCE_TYPE_OPT_OUT_ALL_ANNOUNCEMENTS str(object=’’) -> str
compartment_id Gets the compartment_id of this BaseCreateAnnouncementsPreferencesDetails.
is_unsubscribed Gets the is_unsubscribed of this BaseCreateAnnouncementsPreferencesDetails.
preference_type [Required] Gets the preference_type of this BaseCreateAnnouncementsPreferencesDetails.
preferred_time_zone Gets the preferred_time_zone of this BaseCreateAnnouncementsPreferencesDetails.
type [Required] Gets the type of this BaseCreateAnnouncementsPreferencesDetails.

Methods

__init__(**kwargs) Initializes a new UpdateAnnouncementsPreferencesDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
PREFERENCE_TYPE_OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS = 'OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS'
PREFERENCE_TYPE_OPT_IN_TENANT_ANNOUNCEMENTS = 'OPT_IN_TENANT_ANNOUNCEMENTS'
PREFERENCE_TYPE_OPT_OUT_ALL_ANNOUNCEMENTS = 'OPT_OUT_ALL_ANNOUNCEMENTS'
__init__(**kwargs)

Initializes a new UpdateAnnouncementsPreferencesDetails object with values from keyword arguments. The default value of the type attribute of this class is UpdateAnnouncementsPreferencesDetails and it should not be changed. 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 UpdateAnnouncementsPreferencesDetails.
  • is_unsubscribed (bool) – The value to assign to the is_unsubscribed property of this UpdateAnnouncementsPreferencesDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this UpdateAnnouncementsPreferencesDetails.
  • preference_type (str) – The value to assign to the preference_type property of this UpdateAnnouncementsPreferencesDetails. Allowed values for this property are: “OPT_IN_TENANT_ANNOUNCEMENTS”, “OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS”, “OPT_OUT_ALL_ANNOUNCEMENTS”
  • preferred_time_zone (str) – The value to assign to the preferred_time_zone property of this UpdateAnnouncementsPreferencesDetails.
compartment_id

Gets the compartment_id of this BaseCreateAnnouncementsPreferencesDetails. The OCID of the compartment for which you want to manage announcement email preferences. (Specify the tenancy by providing the root compartment OCID.)

Returns:The compartment_id of this BaseCreateAnnouncementsPreferencesDetails.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

is_unsubscribed

Gets the is_unsubscribed of this BaseCreateAnnouncementsPreferencesDetails. A Boolean value to indicate whether the specified compartment chooses to not to receive informational announcements by email. (Manage preferences for receiving announcements by email by specifying the preferenceType attribute instead.)

Returns:The is_unsubscribed of this BaseCreateAnnouncementsPreferencesDetails.
Return type:bool
preference_type

[Required] Gets the preference_type of this BaseCreateAnnouncementsPreferencesDetails. The string representing the user’s preference, whether to opt in to only required announcements, to opt in to all announcements, including informational announcements, or to opt out of all announcements.

Allowed values for this property are: “OPT_IN_TENANT_ANNOUNCEMENTS”, “OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS”, “OPT_OUT_ALL_ANNOUNCEMENTS”

Returns:The preference_type of this BaseCreateAnnouncementsPreferencesDetails.
Return type:str
preferred_time_zone

Gets the preferred_time_zone of this BaseCreateAnnouncementsPreferencesDetails. The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles

Returns:The preferred_time_zone of this BaseCreateAnnouncementsPreferencesDetails.
Return type:str
type

[Required] Gets the type of this BaseCreateAnnouncementsPreferencesDetails. The entity type, which specifies a model that either creates new announcement email preferences or updates existing preferences.

Returns:The type of this BaseCreateAnnouncementsPreferencesDetails.
Return type:str