Server IP : 103.119.228.120 / Your IP : 3.139.87.113 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/opsi/models/ |
Upload File : |
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class CreateNewsReportDetails(object): """ The information about the news report to be created. """ #: A constant which can be used with the news_frequency property of a CreateNewsReportDetails. #: This constant has a value of "WEEKLY" NEWS_FREQUENCY_WEEKLY = "WEEKLY" #: A constant which can be used with the locale property of a CreateNewsReportDetails. #: This constant has a value of "EN" LOCALE_EN = "EN" #: A constant which can be used with the status property of a CreateNewsReportDetails. #: This constant has a value of "DISABLED" STATUS_DISABLED = "DISABLED" #: A constant which can be used with the status property of a CreateNewsReportDetails. #: This constant has a value of "ENABLED" STATUS_ENABLED = "ENABLED" #: A constant which can be used with the status property of a CreateNewsReportDetails. #: This constant has a value of "TERMINATED" STATUS_TERMINATED = "TERMINATED" #: A constant which can be used with the day_of_week property of a CreateNewsReportDetails. #: This constant has a value of "MONDAY" DAY_OF_WEEK_MONDAY = "MONDAY" #: A constant which can be used with the day_of_week property of a CreateNewsReportDetails. #: This constant has a value of "TUESDAY" DAY_OF_WEEK_TUESDAY = "TUESDAY" #: A constant which can be used with the day_of_week property of a CreateNewsReportDetails. #: This constant has a value of "WEDNESDAY" DAY_OF_WEEK_WEDNESDAY = "WEDNESDAY" #: A constant which can be used with the day_of_week property of a CreateNewsReportDetails. #: This constant has a value of "THURSDAY" DAY_OF_WEEK_THURSDAY = "THURSDAY" #: A constant which can be used with the day_of_week property of a CreateNewsReportDetails. #: This constant has a value of "FRIDAY" DAY_OF_WEEK_FRIDAY = "FRIDAY" #: A constant which can be used with the day_of_week property of a CreateNewsReportDetails. #: This constant has a value of "SATURDAY" DAY_OF_WEEK_SATURDAY = "SATURDAY" #: A constant which can be used with the day_of_week property of a CreateNewsReportDetails. #: This constant has a value of "SUNDAY" DAY_OF_WEEK_SUNDAY = "SUNDAY" def __init__(self, **kwargs): """ Initializes a new CreateNewsReportDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this CreateNewsReportDetails. :type name: str :param news_frequency: The value to assign to the news_frequency property of this CreateNewsReportDetails. Allowed values for this property are: "WEEKLY" :type news_frequency: str :param description: The value to assign to the description property of this CreateNewsReportDetails. :type description: str :param ons_topic_id: The value to assign to the ons_topic_id property of this CreateNewsReportDetails. :type ons_topic_id: str :param compartment_id: The value to assign to the compartment_id property of this CreateNewsReportDetails. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateNewsReportDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateNewsReportDetails. :type defined_tags: dict(str, dict(str, object)) :param content_types: The value to assign to the content_types property of this CreateNewsReportDetails. :type content_types: oci.opsi.models.NewsContentTypes :param locale: The value to assign to the locale property of this CreateNewsReportDetails. Allowed values for this property are: "EN" :type locale: str :param status: The value to assign to the status property of this CreateNewsReportDetails. Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED" :type status: str :param day_of_week: The value to assign to the day_of_week property of this CreateNewsReportDetails. Allowed values for this property are: "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" :type day_of_week: str :param are_child_compartments_included: The value to assign to the are_child_compartments_included property of this CreateNewsReportDetails. :type are_child_compartments_included: bool """ self.swagger_types = { 'name': 'str', 'news_frequency': 'str', 'description': 'str', 'ons_topic_id': 'str', 'compartment_id': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'content_types': 'NewsContentTypes', 'locale': 'str', 'status': 'str', 'day_of_week': 'str', 'are_child_compartments_included': 'bool' } self.attribute_map = { 'name': 'name', 'news_frequency': 'newsFrequency', 'description': 'description', 'ons_topic_id': 'onsTopicId', 'compartment_id': 'compartmentId', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'content_types': 'contentTypes', 'locale': 'locale', 'status': 'status', 'day_of_week': 'dayOfWeek', 'are_child_compartments_included': 'areChildCompartmentsIncluded' } self._name = None self._news_frequency = None self._description = None self._ons_topic_id = None self._compartment_id = None self._freeform_tags = None self._defined_tags = None self._content_types = None self._locale = None self._status = None self._day_of_week = None self._are_child_compartments_included = None @property def name(self): """ **[Required]** Gets the name of this CreateNewsReportDetails. The news report name. :return: The name of this CreateNewsReportDetails. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this CreateNewsReportDetails. The news report name. :param name: The name of this CreateNewsReportDetails. :type: str """ self._name = name @property def news_frequency(self): """ **[Required]** Gets the news_frequency of this CreateNewsReportDetails. News report frequency. Allowed values for this property are: "WEEKLY" :return: The news_frequency of this CreateNewsReportDetails. :rtype: str """ return self._news_frequency @news_frequency.setter def news_frequency(self, news_frequency): """ Sets the news_frequency of this CreateNewsReportDetails. News report frequency. :param news_frequency: The news_frequency of this CreateNewsReportDetails. :type: str """ allowed_values = ["WEEKLY"] if not value_allowed_none_or_none_sentinel(news_frequency, allowed_values): raise ValueError( f"Invalid value for `news_frequency`, must be None or one of {allowed_values}" ) self._news_frequency = news_frequency @property def description(self): """ **[Required]** Gets the description of this CreateNewsReportDetails. The description of the news report. :return: The description of this CreateNewsReportDetails. :rtype: str """ return self._description @description.setter def description(self, description): """ Sets the description of this CreateNewsReportDetails. The description of the news report. :param description: The description of this CreateNewsReportDetails. :type: str """ self._description = description @property def ons_topic_id(self): """ **[Required]** Gets the ons_topic_id of this CreateNewsReportDetails. The `OCID`__ of the ONS topic. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The ons_topic_id of this CreateNewsReportDetails. :rtype: str """ return self._ons_topic_id @ons_topic_id.setter def ons_topic_id(self, ons_topic_id): """ Sets the ons_topic_id of this CreateNewsReportDetails. The `OCID`__ of the ONS topic. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param ons_topic_id: The ons_topic_id of this CreateNewsReportDetails. :type: str """ self._ons_topic_id = ons_topic_id @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this CreateNewsReportDetails. Compartment Identifier where the news report will be created. :return: The compartment_id of this CreateNewsReportDetails. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this CreateNewsReportDetails. Compartment Identifier where the news report will be created. :param compartment_id: The compartment_id of this CreateNewsReportDetails. :type: str """ self._compartment_id = compartment_id @property def freeform_tags(self): """ Gets the freeform_tags of this CreateNewsReportDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :return: The freeform_tags of this CreateNewsReportDetails. :rtype: dict(str, str) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ Sets the freeform_tags of this CreateNewsReportDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :param freeform_tags: The freeform_tags of this CreateNewsReportDetails. :type: dict(str, str) """ self._freeform_tags = freeform_tags @property def defined_tags(self): """ Gets the defined_tags of this CreateNewsReportDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :return: The defined_tags of this CreateNewsReportDetails. :rtype: dict(str, dict(str, object)) """ return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ Sets the defined_tags of this CreateNewsReportDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :param defined_tags: The defined_tags of this CreateNewsReportDetails. :type: dict(str, dict(str, object)) """ self._defined_tags = defined_tags @property def content_types(self): """ **[Required]** Gets the content_types of this CreateNewsReportDetails. :return: The content_types of this CreateNewsReportDetails. :rtype: oci.opsi.models.NewsContentTypes """ return self._content_types @content_types.setter def content_types(self, content_types): """ Sets the content_types of this CreateNewsReportDetails. :param content_types: The content_types of this CreateNewsReportDetails. :type: oci.opsi.models.NewsContentTypes """ self._content_types = content_types @property def locale(self): """ **[Required]** Gets the locale of this CreateNewsReportDetails. Language of the news report. Allowed values for this property are: "EN" :return: The locale of this CreateNewsReportDetails. :rtype: str """ return self._locale @locale.setter def locale(self, locale): """ Sets the locale of this CreateNewsReportDetails. Language of the news report. :param locale: The locale of this CreateNewsReportDetails. :type: str """ allowed_values = ["EN"] if not value_allowed_none_or_none_sentinel(locale, allowed_values): raise ValueError( f"Invalid value for `locale`, must be None or one of {allowed_values}" ) self._locale = locale @property def status(self): """ Gets the status of this CreateNewsReportDetails. Defines if the news report will be enabled or disabled. Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED" :return: The status of this CreateNewsReportDetails. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this CreateNewsReportDetails. Defines if the news report will be enabled or disabled. :param status: The status of this CreateNewsReportDetails. :type: str """ allowed_values = ["DISABLED", "ENABLED", "TERMINATED"] if not value_allowed_none_or_none_sentinel(status, allowed_values): raise ValueError( f"Invalid value for `status`, must be None or one of {allowed_values}" ) self._status = status @property def day_of_week(self): """ Gets the day_of_week of this CreateNewsReportDetails. 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" :return: The day_of_week of this CreateNewsReportDetails. :rtype: str """ return self._day_of_week @day_of_week.setter def day_of_week(self, day_of_week): """ Sets the day_of_week of this CreateNewsReportDetails. Day of the week in which the news report will be sent if the frequency is set to WEEKLY. :param day_of_week: The day_of_week of this CreateNewsReportDetails. :type: str """ allowed_values = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"] if not value_allowed_none_or_none_sentinel(day_of_week, allowed_values): raise ValueError( f"Invalid value for `day_of_week`, must be None or one of {allowed_values}" ) self._day_of_week = day_of_week @property def are_child_compartments_included(self): """ Gets the are_child_compartments_included of this CreateNewsReportDetails. A flag to consider the resources within a given compartment and all sub-compartments. :return: The are_child_compartments_included of this CreateNewsReportDetails. :rtype: bool """ return self._are_child_compartments_included @are_child_compartments_included.setter def are_child_compartments_included(self, are_child_compartments_included): """ Sets the are_child_compartments_included of this CreateNewsReportDetails. A flag to consider the resources within a given compartment and all sub-compartments. :param are_child_compartments_included: The are_child_compartments_included of this CreateNewsReportDetails. :type: bool """ self._are_child_compartments_included = are_child_compartments_included def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other