Announcement

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

Bases: oci.announcements_service.models.base_announcement.BaseAnnouncement

A message about an impactful operational event.

ANNOUNCEMENT_TYPE_ACTION_REQUIRED = 'ACTION_REQUIRED'
ANNOUNCEMENT_TYPE_EMERGENCY_CHANGE = 'EMERGENCY_CHANGE'
ANNOUNCEMENT_TYPE_EMERGENCY_MAINTENANCE = 'EMERGENCY_MAINTENANCE'
ANNOUNCEMENT_TYPE_EMERGENCY_MAINTENANCE_COMPLETE = 'EMERGENCY_MAINTENANCE_COMPLETE'
ANNOUNCEMENT_TYPE_EMERGENCY_MAINTENANCE_EXTENDED = 'EMERGENCY_MAINTENANCE_EXTENDED'
ANNOUNCEMENT_TYPE_EMERGENCY_MAINTENANCE_RESCHEDULED = 'EMERGENCY_MAINTENANCE_RESCHEDULED'
ANNOUNCEMENT_TYPE_INFORMATION = 'INFORMATION'
ANNOUNCEMENT_TYPE_PLANNED_CHANGE = 'PLANNED_CHANGE'
ANNOUNCEMENT_TYPE_PLANNED_CHANGE_COMPLETE = 'PLANNED_CHANGE_COMPLETE'
ANNOUNCEMENT_TYPE_PLANNED_CHANGE_EXTENDED = 'PLANNED_CHANGE_EXTENDED'
ANNOUNCEMENT_TYPE_PLANNED_CHANGE_RESCHEDULED = 'PLANNED_CHANGE_RESCHEDULED'
ANNOUNCEMENT_TYPE_PRODUCTION_EVENT_NOTIFICATION = 'PRODUCTION_EVENT_NOTIFICATION'
ANNOUNCEMENT_TYPE_SCHEDULED_MAINTENANCE = 'SCHEDULED_MAINTENANCE'
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'
__init__(**kwargs)

Initializes a new Announcement object with values from keyword arguments. The default value of the type attribute of this class is Announcement and it should not be changed. 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 Announcement.
  • type (str) -- The value to assign to the type property of this Announcement.
  • reference_ticket_number (str) -- The value to assign to the reference_ticket_number property of this Announcement.
  • summary (str) -- The value to assign to the summary property of this Announcement.
  • time_one_title (str) -- The value to assign to the time_one_title property of this Announcement.
  • time_one_value (datetime) -- The value to assign to the time_one_value property of this Announcement.
  • time_two_title (str) -- The value to assign to the time_two_title property of this Announcement.
  • time_two_value (datetime) -- The value to assign to the time_two_value property of this Announcement.
  • services (list[str]) -- The value to assign to the services property of this Announcement.
  • affected_regions (list[str]) -- The value to assign to the affected_regions property of this Announcement.
  • announcement_type (str) -- The value to assign to the announcement_type property of this Announcement. Allowed values for this property are: "ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • lifecycle_state (str) -- The value to assign to the lifecycle_state property of this Announcement. Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • is_banner (bool) -- The value to assign to the is_banner property of this Announcement.
  • time_created (datetime) -- The value to assign to the time_created property of this Announcement.
  • time_updated (datetime) -- The value to assign to the time_updated property of this Announcement.
  • description (str) -- The value to assign to the description property of this Announcement.
  • additional_information (str) -- The value to assign to the additional_information property of this Announcement.
  • affected_resources (list[AffectedResource]) -- The value to assign to the affected_resources property of this Announcement.
additional_information

Gets the additional_information of this Announcement. Additional information about the event, expressed by using Markdown language and included in the details view of an announcement. Additional information might include remediation steps or answers to frequently asked questions. Avoid entering confidential information.

Returns:The additional_information of this Announcement.
Return type:str
affected_regions

[Required] Gets the affected_regions of this BaseAnnouncement. Impacted regions.

Returns:The affected_regions of this BaseAnnouncement.
Return type:list[str]
affected_resources

Gets the affected_resources of this Announcement. The list of resources, if any, affected by the event described in the announcement.

Returns:The affected_resources of this Announcement.
Return type:list[AffectedResource]
announcement_type

[Required] Gets the announcement_type of this BaseAnnouncement. The type of announcement. An announcement's type signals its severity.

Allowed values for this property are: "ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE"

Returns:The announcement_type of this BaseAnnouncement.
Return type:str
description

Gets the description of this Announcement. A detailed explanation of the event, expressed by using Markdown language. Avoid entering confidential information.

Returns:The description of this Announcement.
Return type:str
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.

id

[Required] Gets the id of this BaseAnnouncement. The OCID of the announcement.

Returns:The id of this BaseAnnouncement.
Return type:str
is_banner

[Required] Gets the is_banner of this BaseAnnouncement. Whether the announcement is displayed as a banner in the console.

Returns:The is_banner of this BaseAnnouncement.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this BaseAnnouncement. The current lifecycle state of the announcement.

Allowed values for this property are: "ACTIVE", "INACTIVE"

Returns:The lifecycle_state of this BaseAnnouncement.
Return type:str
reference_ticket_number

[Required] Gets the reference_ticket_number of this BaseAnnouncement. The reference Jira ticket number.

Returns:The reference_ticket_number of this BaseAnnouncement.
Return type:str
services

[Required] Gets the services of this BaseAnnouncement. Impacted Oracle Cloud Infrastructure services.

Returns:The services of this BaseAnnouncement.
Return type:list[str]
summary

[Required] Gets the summary of this BaseAnnouncement. A summary of the issue. A summary might appear in the console banner view of the announcement or in an email subject line. Avoid entering confidential information.

Returns:The summary of this BaseAnnouncement.
Return type:str
time_created

Gets the time_created of this BaseAnnouncement. The date and time the announcement was created, expressed in RFC 3339 timestamp format. Example: 2019-01-01T17:43:01.389+0000

Returns:The time_created of this BaseAnnouncement.
Return type:datetime
time_one_title

Gets the time_one_title of this BaseAnnouncement. The label associated with an initial time value. Example: Time Started

Returns:The time_one_title of this BaseAnnouncement.
Return type:str
time_one_value

Gets the time_one_value of this BaseAnnouncement. The actual value of the first time value for the event. Typically, this is the time an event started, but the meaning can vary, depending on the announcement type.

Returns:The time_one_value of this BaseAnnouncement.
Return type:datetime
time_two_title

Gets the time_two_title of this BaseAnnouncement. The label associated with a second time value. Example: Time Ended

Returns:The time_two_title of this BaseAnnouncement.
Return type:str
time_two_value

Gets the time_two_value of this BaseAnnouncement. The actual value of the second time value. Typically, this is the time an event ended, but the meaning can vary, depending on the announcement type.

Returns:The time_two_value of this BaseAnnouncement.
Return type:datetime
time_updated

Gets the time_updated of this BaseAnnouncement. The date and time the announcement was last updated, expressed in RFC 3339 timestamp format. Example: 2019-01-01T17:43:01.389+0000

Returns:The time_updated of this BaseAnnouncement.
Return type:datetime
type

[Required] Gets the type of this BaseAnnouncement. The entity type.

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