NewsReport

class oci.opsi.models.NewsReport(**kwargs)

Bases: object

News report resource.

Attributes

DAY_OF_WEEK_FRIDAY A constant which can be used with the day_of_week property of a NewsReport.
DAY_OF_WEEK_MONDAY A constant which can be used with the day_of_week property of a NewsReport.
DAY_OF_WEEK_SATURDAY A constant which can be used with the day_of_week property of a NewsReport.
DAY_OF_WEEK_SUNDAY A constant which can be used with the day_of_week property of a NewsReport.
DAY_OF_WEEK_THURSDAY A constant which can be used with the day_of_week property of a NewsReport.
DAY_OF_WEEK_TUESDAY A constant which can be used with the day_of_week property of a NewsReport.
DAY_OF_WEEK_WEDNESDAY A constant which can be used with the day_of_week property of a NewsReport.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a NewsReport.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a NewsReport.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a NewsReport.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a NewsReport.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a NewsReport.
LIFECYCLE_STATE_NEEDS_ATTENTION A constant which can be used with the lifecycle_state property of a NewsReport.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a NewsReport.
LOCALE_EN A constant which can be used with the locale property of a NewsReport.
NEWS_FREQUENCY_WEEKLY A constant which can be used with the news_frequency property of a NewsReport.
STATUS_DISABLED A constant which can be used with the status property of a NewsReport.
STATUS_ENABLED A constant which can be used with the status property of a NewsReport.
STATUS_TERMINATED A constant which can be used with the status property of a NewsReport.
are_child_compartments_included Gets the are_child_compartments_included of this NewsReport.
compartment_id [Required] Gets the compartment_id of this NewsReport.
content_types [Required] Gets the content_types of this NewsReport.
day_of_week Gets the day_of_week of this NewsReport.
defined_tags Gets the defined_tags of this NewsReport.
description Gets the description of this NewsReport.
freeform_tags Gets the freeform_tags of this NewsReport.
id [Required] Gets the id of this NewsReport.
lifecycle_details Gets the lifecycle_details of this NewsReport.
lifecycle_state Gets the lifecycle_state of this NewsReport.
locale Gets the locale of this NewsReport.
name Gets the name of this NewsReport.
news_frequency [Required] Gets the news_frequency of this NewsReport.
ons_topic_id [Required] Gets the ons_topic_id of this NewsReport.
status Gets the status of this NewsReport.
system_tags Gets the system_tags of this NewsReport.
time_created Gets the time_created of this NewsReport.
time_updated Gets the time_updated of this NewsReport.

Methods

__init__(**kwargs) Initializes a new NewsReport object with values from keyword arguments.
DAY_OF_WEEK_FRIDAY = 'FRIDAY'

A constant which can be used with the day_of_week property of a NewsReport. This constant has a value of “FRIDAY”

DAY_OF_WEEK_MONDAY = 'MONDAY'

A constant which can be used with the day_of_week property of a NewsReport. This constant has a value of “MONDAY”

DAY_OF_WEEK_SATURDAY = 'SATURDAY'

A constant which can be used with the day_of_week property of a NewsReport. This constant has a value of “SATURDAY”

DAY_OF_WEEK_SUNDAY = 'SUNDAY'

A constant which can be used with the day_of_week property of a NewsReport. This constant has a value of “SUNDAY”

DAY_OF_WEEK_THURSDAY = 'THURSDAY'

A constant which can be used with the day_of_week property of a NewsReport. This constant has a value of “THURSDAY”

DAY_OF_WEEK_TUESDAY = 'TUESDAY'

A constant which can be used with the day_of_week property of a NewsReport. This constant has a value of “TUESDAY”

DAY_OF_WEEK_WEDNESDAY = 'WEDNESDAY'

A constant which can be used with the day_of_week property of a NewsReport. This constant has a value of “WEDNESDAY”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a NewsReport. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a NewsReport. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a NewsReport. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a NewsReport. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a NewsReport. This constant has a value of “FAILED”

LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'

A constant which can be used with the lifecycle_state property of a NewsReport. This constant has a value of “NEEDS_ATTENTION”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a NewsReport. This constant has a value of “UPDATING”

LOCALE_EN = 'EN'

A constant which can be used with the locale property of a NewsReport. This constant has a value of “EN”

NEWS_FREQUENCY_WEEKLY = 'WEEKLY'

A constant which can be used with the news_frequency property of a NewsReport. This constant has a value of “WEEKLY”

STATUS_DISABLED = 'DISABLED'

A constant which can be used with the status property of a NewsReport. This constant has a value of “DISABLED”

STATUS_ENABLED = 'ENABLED'

A constant which can be used with the status property of a NewsReport. This constant has a value of “ENABLED”

STATUS_TERMINATED = 'TERMINATED'

A constant which can be used with the status property of a NewsReport. This constant has a value of “TERMINATED”

__init__(**kwargs)

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

Parameters:
  • news_frequency (str) – The value to assign to the news_frequency property of this NewsReport. Allowed values for this property are: “WEEKLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • content_types (oci.opsi.models.NewsContentTypes) – The value to assign to the content_types property of this NewsReport.
  • locale (str) – The value to assign to the locale property of this NewsReport. Allowed values for this property are: “EN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • id (str) – The value to assign to the id property of this NewsReport.
  • description (str) – The value to assign to the description property of this NewsReport.
  • compartment_id (str) – The value to assign to the compartment_id property of this NewsReport.
  • name (str) – The value to assign to the name property of this NewsReport.
  • ons_topic_id (str) – The value to assign to the ons_topic_id property of this NewsReport.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this NewsReport.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this NewsReport.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this NewsReport.
  • status (str) – The value to assign to the status property of this NewsReport. Allowed values for this property are: “DISABLED”, “ENABLED”, “TERMINATED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this NewsReport.
  • time_updated (datetime) – The value to assign to the time_updated property of this NewsReport.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this NewsReport. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, “NEEDS_ATTENTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this NewsReport.
  • day_of_week (str) – The value to assign to the day_of_week property of this NewsReport. Allowed values for this property are: “MONDAY”, “TUESDAY”, “WEDNESDAY”, “THURSDAY”, “FRIDAY”, “SATURDAY”, “SUNDAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • are_child_compartments_included (bool) – The value to assign to the are_child_compartments_included property of this NewsReport.
are_child_compartments_included

Gets the are_child_compartments_included of this NewsReport. A flag to consider the resources within a given compartment and all sub-compartments.

Returns:The are_child_compartments_included of this NewsReport.
Return type:bool
compartment_id

[Required] Gets the compartment_id of this NewsReport. The OCID of the compartment.

Returns:The compartment_id of this NewsReport.
Return type:str
content_types

[Required] Gets the content_types of this NewsReport.

Returns:The content_types of this NewsReport.
Return type:oci.opsi.models.NewsContentTypes
day_of_week

Gets the day_of_week of this NewsReport. Day of the week in which the news report will be sent if the frequency is set to WEEKLY.

Allowed values for this property are: “MONDAY”, “TUESDAY”, “WEDNESDAY”, “THURSDAY”, “FRIDAY”, “SATURDAY”, “SUNDAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The day_of_week of this NewsReport.
Return type:str
defined_tags

Gets the defined_tags of this NewsReport. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this NewsReport.
Return type:dict(str, dict(str, object))
description

Gets the description of this NewsReport. The description of the news report.

Returns:The description of this NewsReport.
Return type:str
freeform_tags

Gets the freeform_tags of this NewsReport. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this NewsReport.
Return type:dict(str, str)
id

[Required] Gets the id of this NewsReport. The OCID of the news report resource.

Returns:The id of this NewsReport.
Return type:str
lifecycle_details

Gets the lifecycle_details of this NewsReport. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

Returns:The lifecycle_details of this NewsReport.
Return type:str
lifecycle_state

Gets the lifecycle_state of this NewsReport. The current state of the news report.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, “NEEDS_ATTENTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this NewsReport.
Return type:str
locale

Gets the locale of this NewsReport. Language of the news report.

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

Returns:The locale of this NewsReport.
Return type:str
name

Gets the name of this NewsReport. The news report name.

Returns:The name of this NewsReport.
Return type:str
news_frequency

[Required] Gets the news_frequency of this NewsReport. News report frequency.

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

Returns:The news_frequency of this NewsReport.
Return type:str
ons_topic_id

[Required] Gets the ons_topic_id of this NewsReport. The OCID of the ONS topic.

Returns:The ons_topic_id of this NewsReport.
Return type:str
status

Gets the status of this NewsReport. Indicates the status of a news report in Operations Insights.

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

Returns:The status of this NewsReport.
Return type:str
system_tags

Gets the system_tags of this NewsReport. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this NewsReport.
Return type:dict(str, dict(str, object))
time_created

Gets the time_created of this NewsReport. The time the the news report was first enabled. An RFC3339 formatted datetime string.

Returns:The time_created of this NewsReport.
Return type:datetime
time_updated

Gets the time_updated of this NewsReport. The time the news report was updated. An RFC3339 formatted datetime string.

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