PullRequestNotificationPreference¶
- 
class oci.devops.models.PullRequestNotificationPreference(**kwargs)¶
- Bases: - object- The notification preference of the pull request. - Attributes - NOTIFICATION_PREFERENCE_IGNORE- A constant which can be used with the notification_preference property of a PullRequestNotificationPreference. - NOTIFICATION_PREFERENCE_MENTION- A constant which can be used with the notification_preference property of a PullRequestNotificationPreference. - NOTIFICATION_PREFERENCE_WATCH- A constant which can be used with the notification_preference property of a PullRequestNotificationPreference. - notification_preference- [Required] Gets the notification_preference of this PullRequestNotificationPreference. - pull_request_id- [Required] Gets the pull_request_id of this PullRequestNotificationPreference. - user_id- [Required] Gets the user_id of this PullRequestNotificationPreference. - Methods - __init__(**kwargs)- Initializes a new PullRequestNotificationPreference object with values from keyword arguments. - 
NOTIFICATION_PREFERENCE_IGNORE= 'IGNORE'¶
- A constant which can be used with the notification_preference property of a PullRequestNotificationPreference. This constant has a value of “IGNORE” 
 - 
NOTIFICATION_PREFERENCE_MENTION= 'MENTION'¶
- A constant which can be used with the notification_preference property of a PullRequestNotificationPreference. This constant has a value of “MENTION” 
 - 
NOTIFICATION_PREFERENCE_WATCH= 'WATCH'¶
- A constant which can be used with the notification_preference property of a PullRequestNotificationPreference. This constant has a value of “WATCH” 
 - 
__init__(**kwargs)¶
- Initializes a new PullRequestNotificationPreference object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): - Parameters: - pull_request_id (str) – The value to assign to the pull_request_id property of this PullRequestNotificationPreference.
- user_id (str) – The value to assign to the user_id property of this PullRequestNotificationPreference.
- notification_preference (str) – The value to assign to the notification_preference property of this PullRequestNotificationPreference. 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 PullRequestNotificationPreference. The override value of pull request 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 PullRequestNotificationPreference. - Return type: - str 
 - 
pull_request_id¶
- [Required] Gets the pull_request_id of this PullRequestNotificationPreference. The ocid of pull request resource - Returns: - The pull_request_id of this PullRequestNotificationPreference. - Return type: - str 
 - 
user_id¶
- [Required] Gets the user_id of this PullRequestNotificationPreference. The ocid of user. - Returns: - The user_id of this PullRequestNotificationPreference. - Return type: - str 
 
-