PullRequestAttachment

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

Bases: object

Pull Request attachment created by users.

Methods:

__init__(**kwargs)

Initializes a new PullRequestAttachment object with values from keyword arguments.

Attributes:

created_by

[Required] Gets the created_by of this PullRequestAttachment.

file_name

[Required] Gets the file_name of this PullRequestAttachment.

id

[Required] Gets the id of this PullRequestAttachment.

pull_request_id

[Required] Gets the pull_request_id of this PullRequestAttachment.

time_created

[Required] Gets the time_created of this PullRequestAttachment.

__init__(**kwargs)

Initializes a new PullRequestAttachment object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • id (str) – The value to assign to the id property of this PullRequestAttachment.

  • pull_request_id (str) – The value to assign to the pull_request_id property of this PullRequestAttachment.

  • file_name (str) – The value to assign to the file_name property of this PullRequestAttachment.

  • time_created (datetime) – The value to assign to the time_created property of this PullRequestAttachment.

  • created_by (oci.devops.models.PrincipalDetails) – The value to assign to the created_by property of this PullRequestAttachment.

property created_by

[Required] Gets the created_by of this PullRequestAttachment.

Returns

The created_by of this PullRequestAttachment.

Return type

oci.devops.models.PrincipalDetails

property file_name

[Required] Gets the file_name of this PullRequestAttachment. name to display in description or comment

Returns

The file_name of this PullRequestAttachment.

Return type

str

property id

[Required] Gets the id of this PullRequestAttachment. Unique identifier that is immutable on creation

Returns

The id of this PullRequestAttachment.

Return type

str

property pull_request_id

[Required] Gets the pull_request_id of this PullRequestAttachment. OCID of the pull request that this attachment belongs to

Returns

The pull_request_id of this PullRequestAttachment.

Return type

str

property time_created

[Required] Gets the time_created of this PullRequestAttachment. Creation timestamp. Format defined by RFC3339.

Returns

The time_created of this PullRequestAttachment.

Return type

datetime