NewsReport¶
-
class
oci.opsi.models.NewsReport(**kwargs)¶ Bases:
objectNews report resource.
Attributes
DAY_OF_WEEK_FRIDAYA constant which can be used with the day_of_week property of a NewsReport. DAY_OF_WEEK_MONDAYA constant which can be used with the day_of_week property of a NewsReport. DAY_OF_WEEK_SATURDAYA constant which can be used with the day_of_week property of a NewsReport. DAY_OF_WEEK_SUNDAYA constant which can be used with the day_of_week property of a NewsReport. DAY_OF_WEEK_THURSDAYA constant which can be used with the day_of_week property of a NewsReport. DAY_OF_WEEK_TUESDAYA constant which can be used with the day_of_week property of a NewsReport. DAY_OF_WEEK_WEDNESDAYA constant which can be used with the day_of_week property of a NewsReport. LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a NewsReport. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a NewsReport. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a NewsReport. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a NewsReport. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a NewsReport. LIFECYCLE_STATE_NEEDS_ATTENTIONA constant which can be used with the lifecycle_state property of a NewsReport. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a NewsReport. LOCALE_ENA constant which can be used with the locale property of a NewsReport. MATCH_RULE_MATCH_ALLA constant which can be used with the match_rule property of a NewsReport. MATCH_RULE_MATCH_ANYA constant which can be used with the match_rule property of a NewsReport. MATCH_RULE_MATCH_NONEA constant which can be used with the match_rule property of a NewsReport. NEWS_FREQUENCY_DAILYA constant which can be used with the news_frequency property of a NewsReport. NEWS_FREQUENCY_HOURLYA constant which can be used with the news_frequency property of a NewsReport. NEWS_FREQUENCY_WEEKLYA constant which can be used with the news_frequency property of a NewsReport. STATUS_DISABLEDA constant which can be used with the status property of a NewsReport. STATUS_ENABLEDA constant which can be used with the status property of a NewsReport. STATUS_TERMINATEDA constant which can be used with the status property of a NewsReport. are_child_compartments_includedGets 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_weekGets the day_of_week of this NewsReport. defined_tagsGets the defined_tags of this NewsReport. descriptionGets the description of this NewsReport. freeform_tagsGets the freeform_tags of this NewsReport. id[Required] Gets the id of this NewsReport. lifecycle_detailsGets the lifecycle_details of this NewsReport. lifecycle_stateGets the lifecycle_state of this NewsReport. localeGets the locale of this NewsReport. match_ruleGets the match_rule of this NewsReport. nameGets 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. statusGets the status of this NewsReport. system_tagsGets the system_tags of this NewsReport. tag_filtersGets the tag_filters of this NewsReport. time_createdGets the time_created of this NewsReport. time_updatedGets 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”
-
MATCH_RULE_MATCH_ALL= 'MATCH_ALL'¶ A constant which can be used with the match_rule property of a NewsReport. This constant has a value of “MATCH_ALL”
-
MATCH_RULE_MATCH_ANY= 'MATCH_ANY'¶ A constant which can be used with the match_rule property of a NewsReport. This constant has a value of “MATCH_ANY”
-
MATCH_RULE_MATCH_NONE= 'MATCH_NONE'¶ A constant which can be used with the match_rule property of a NewsReport. This constant has a value of “MATCH_NONE”
-
NEWS_FREQUENCY_DAILY= 'DAILY'¶ A constant which can be used with the news_frequency property of a NewsReport. This constant has a value of “DAILY”
-
NEWS_FREQUENCY_HOURLY= 'HOURLY'¶ A constant which can be used with the news_frequency property of a NewsReport. This constant has a value of “HOURLY”
-
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”, “DAILY”, “HOURLY”, ‘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.
- tag_filters (list[str]) – The value to assign to the tag_filters property of this NewsReport.
- match_rule (str) – The value to assign to the match_rule property of this NewsReport. Allowed values for this property are: “MATCH_ANY”, “MATCH_ALL”, “MATCH_NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
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
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
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
-
match_rule¶ Gets the match_rule of this NewsReport. Match rule used for tag filters.
Allowed values for this property are: “MATCH_ANY”, “MATCH_ALL”, “MATCH_NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The match_rule 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”, “DAILY”, “HOURLY”, ‘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 Ops 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
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))
-
tag_filters¶ Gets the tag_filters of this NewsReport. List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - ‘<TagNamespace>.<TagKey>=<TagValue>’. Example for freeform tags - ‘<TagKey>=<TagValue>’.
Returns: The tag_filters of this NewsReport. Return type: list[str]
-
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
-