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