CreatePullRequestDetails¶
- class oci.devops.models.CreatePullRequestDetails(**kwargs)¶
Bases:
objectThe information about new Pull Request.
Methods:
__init__(**kwargs)Initializes a new CreatePullRequestDetails object with values from keyword arguments.
Attributes:
Gets the defined_tags of this CreatePullRequestDetails.
Gets the description of this CreatePullRequestDetails.
Gets the destination_branch of this CreatePullRequestDetails.
[Required] Gets the display_name of this CreatePullRequestDetails.
Gets the freeform_tags of this CreatePullRequestDetails.
[Required] Gets the repository_id of this CreatePullRequestDetails.
Gets the reviewers of this CreatePullRequestDetails.
[Required] Gets the source_branch of this CreatePullRequestDetails.
Gets the source_repository_id of this CreatePullRequestDetails.
- __init__(**kwargs)¶
Initializes a new CreatePullRequestDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this CreatePullRequestDetails.
source_branch (str) – The value to assign to the source_branch property of this CreatePullRequestDetails.
destination_branch (str) – The value to assign to the destination_branch property of this CreatePullRequestDetails.
repository_id (str) – The value to assign to the repository_id property of this CreatePullRequestDetails.
source_repository_id (str) – The value to assign to the source_repository_id property of this CreatePullRequestDetails.
description (str) – The value to assign to the description property of this CreatePullRequestDetails.
reviewers (list[oci.devops.models.CreateReviewerDetails]) – The value to assign to the reviewers property of this CreatePullRequestDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreatePullRequestDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreatePullRequestDetails.
- property defined_tags¶
Gets the defined_tags of this CreatePullRequestDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this CreatePullRequestDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this CreatePullRequestDetails. Details of the pull request. Avoid entering confidential information.
- Returns
The description of this CreatePullRequestDetails.
- Return type
str
- property destination_branch¶
Gets the destination_branch of this CreatePullRequestDetails. The destination branch of the pull request. If not provided, default branch will be used as the destination branch.
- Returns
The destination_branch of this CreatePullRequestDetails.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this CreatePullRequestDetails. Pull Request title
- Returns
The display_name of this CreatePullRequestDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreatePullRequestDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this CreatePullRequestDetails.
- Return type
dict(str, str)
- property repository_id¶
[Required] Gets the repository_id of this CreatePullRequestDetails. The OCID of the repository.
- Returns
The repository_id of this CreatePullRequestDetails.
- Return type
str
- property reviewers¶
Gets the reviewers of this CreatePullRequestDetails. Reviewers for this pull request.
- Returns
The reviewers of this CreatePullRequestDetails.
- Return type
- property source_branch¶
[Required] Gets the source_branch of this CreatePullRequestDetails. The source branch of the pull request.
- Returns
The source_branch of this CreatePullRequestDetails.
- Return type
str
- property source_repository_id¶
Gets the source_repository_id of this CreatePullRequestDetails. The OCID of the forked repository that will act as the source of the changes to be included in the pull request against the parent repository.
- Returns
The source_repository_id of this CreatePullRequestDetails.
- Return type
str