Class PullRequest
Message representing a SCM Pull Request.
Implements
Inherited Members
Namespace: Google.Apis.DeveloperConnect.v1.Data
Assembly: Google.Apis.DeveloperConnect.v1.dll
Syntax
public class PullRequest : IDirectResponseSchema
Properties
Author
Output only. The username of the author.
Declaration
[JsonProperty("author")]
public virtual string Author { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
BaseRef
Required. The name of the target (base) branch that the changes are merged into.
Declaration
[JsonProperty("baseRef")]
public virtual string BaseRef { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Body
Optional. The body description of the PR.
Declaration
[JsonProperty("body")]
public virtual string Body { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CloseTime
object representation of CloseTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CloseTimeDateTimeOffset instead.")]
public virtual object CloseTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
CloseTimeDateTimeOffset
DateTimeOffset representation of CloseTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CloseTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
CloseTimeRaw
Output only. When the PR was closed.
Declaration
[JsonProperty("closeTime")]
public virtual string CloseTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
CreateTimeRaw
Output only. When the PR was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DeclineTime
object representation of DeclineTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use DeclineTimeDateTimeOffset instead.")]
public virtual object DeclineTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
DeclineTimeDateTimeOffset
DateTimeOffset representation of DeclineTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? DeclineTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
DeclineTimeRaw
Output only. When the PR was declined. Only set for SCM providers that support declining pull requests.
Never set for GitHub, GitHub Enterprise, GitLab, or GitLab Enterprise, where a pull request closed without
being merged is CLOSED.
Declaration
[JsonProperty("declineTime")]
public virtual string DeclineTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HeadRef
Required. The name of the source (head) branch that contains the changes.
Declaration
[JsonProperty("headRef")]
public virtual string HeadRef { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HtmlUrl
Output only. The HTML URL of the pull request on the SCM provider.
Declaration
[JsonProperty("htmlUrl")]
public virtual string HtmlUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Optional. The ID of the PR, assigned by the SCM provider (for example, "45"). Ignored by
OpenGitRepositoryLinkPullRequest.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MergeTime
object representation of MergeTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use MergeTimeDateTimeOffset instead.")]
public virtual object MergeTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
MergeTimeDateTimeOffset
DateTimeOffset representation of MergeTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? MergeTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
MergeTimeRaw
Output only. When the PR was merged.
Declaration
[JsonProperty("mergeTime")]
public virtual string MergeTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Mergeability
Output only. The mergeability state of the pull request.
Declaration
[JsonProperty("mergeability")]
public virtual string Mergeability { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
State
Output only. The current state of the PR.
Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Title
Required. The title of the PR.
Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
UpdateTimeRaw
Output only. When the PR was updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |