CreatePullRequestDetails

class oci.devops.models.CreatePullRequestDetails(**kwargs)

Bases: object

The information about new Pull Request.

Methods

__init__(**kwargs) Initializes a new CreatePullRequestDetails object with values from keyword arguments.

Attributes

defined_tags Gets the defined_tags of this CreatePullRequestDetails.
description Gets the description of this CreatePullRequestDetails.
destination_branch Gets the destination_branch of this CreatePullRequestDetails.
display_name [Required] Gets the display_name of this CreatePullRequestDetails.
freeform_tags Gets the freeform_tags of this CreatePullRequestDetails.
repository_id [Required] Gets the repository_id of this CreatePullRequestDetails.
reviewers Gets the reviewers of this CreatePullRequestDetails.
source_branch [Required] Gets the source_branch of this CreatePullRequestDetails.
source_repository_id 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.
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))
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
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
display_name

[Required] Gets the display_name of this CreatePullRequestDetails. Pull Request title

Returns:The display_name of this CreatePullRequestDetails.
Return type:str
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)
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
reviewers

Gets the reviewers of this CreatePullRequestDetails. Reviewers for this pull request.

Returns:The reviewers of this CreatePullRequestDetails.
Return type:list[oci.devops.models.CreateReviewerDetails]
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
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