ProjectNotificationPreference¶
-
class
oci.devops.models.
ProjectNotificationPreference
(**kwargs)¶ Bases:
object
The notification preference of the project.
Attributes
NOTIFICATION_PREFERENCE_IGNORE
A constant which can be used with the notification_preference property of a ProjectNotificationPreference. NOTIFICATION_PREFERENCE_MENTION
A constant which can be used with the notification_preference property of a ProjectNotificationPreference. NOTIFICATION_PREFERENCE_WATCH
A constant which can be used with the notification_preference property of a ProjectNotificationPreference. notification_preference
[Required] Gets the notification_preference of this ProjectNotificationPreference. project_id
[Required] Gets the project_id of this ProjectNotificationPreference. user_id
[Required] Gets the user_id of this ProjectNotificationPreference. Methods
__init__
(**kwargs)Initializes a new ProjectNotificationPreference object with values from keyword arguments. -
NOTIFICATION_PREFERENCE_IGNORE
= 'IGNORE'¶ A constant which can be used with the notification_preference property of a ProjectNotificationPreference. This constant has a value of “IGNORE”
-
NOTIFICATION_PREFERENCE_MENTION
= 'MENTION'¶ A constant which can be used with the notification_preference property of a ProjectNotificationPreference. This constant has a value of “MENTION”
-
NOTIFICATION_PREFERENCE_WATCH
= 'WATCH'¶ A constant which can be used with the notification_preference property of a ProjectNotificationPreference. This constant has a value of “WATCH”
-
__init__
(**kwargs)¶ Initializes a new ProjectNotificationPreference object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - project_id (str) – The value to assign to the project_id property of this ProjectNotificationPreference.
- user_id (str) – The value to assign to the user_id property of this ProjectNotificationPreference.
- notification_preference (str) – The value to assign to the notification_preference property of this ProjectNotificationPreference. Allowed values for this property are: “WATCH”, “IGNORE”, “MENTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
notification_preference
¶ [Required] Gets the notification_preference of this ProjectNotificationPreference. The override value of project notification preference.
Allowed values for this property are: “WATCH”, “IGNORE”, “MENTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The notification_preference of this ProjectNotificationPreference. Return type: str
-
project_id
¶ [Required] Gets the project_id of this ProjectNotificationPreference. The ocid of project resource
Returns: The project_id of this ProjectNotificationPreference. Return type: str
-
user_id
¶ [Required] Gets the user_id of this ProjectNotificationPreference. The ocid of user.
Returns: The user_id of this ProjectNotificationPreference. Return type: str
-