Class: Google::Apis::SecuresourcemanagerV1::PullRequestComment
- Inherits:
-
Object
- Object
- Google::Apis::SecuresourcemanagerV1::PullRequestComment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securesourcemanager_v1/classes.rb,
lib/google/apis/securesourcemanager_v1/representations.rb,
lib/google/apis/securesourcemanager_v1/representations.rb
Overview
PullRequestComment represents a comment on a pull request.
Instance Attribute Summary collapse
-
#code ⇒ Google::Apis::SecuresourcemanagerV1::Code
The comment on a code line.
-
#comment ⇒ Google::Apis::SecuresourcemanagerV1::Comment
The general pull request comment.
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#review ⇒ Google::Apis::SecuresourcemanagerV1::Review
The review summary comment.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PullRequestComment
constructor
A new instance of PullRequestComment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PullRequestComment
Returns a new instance of PullRequestComment.
1902 1903 1904 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1902 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ Google::Apis::SecuresourcemanagerV1::Code
The comment on a code line.
Corresponds to the JSON property code
1872 1873 1874 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1872 def code @code end |
#comment ⇒ Google::Apis::SecuresourcemanagerV1::Comment
The general pull request comment.
Corresponds to the JSON property comment
1877 1878 1879 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1877 def comment @comment end |
#create_time ⇒ String
Output only. Creation timestamp.
Corresponds to the JSON property createTime
1882 1883 1884 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1882 def create_time @create_time end |
#name ⇒ String
Identifier. Unique identifier for the pull request comment. The comment id is
generated by the server. Format: projects/project/locations/location/
repositories/repository/pullRequests/pull_request/pullRequestComments/
comment_id`
Corresponds to the JSON propertyname`
1890 1891 1892 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1890 def name @name end |
#review ⇒ Google::Apis::SecuresourcemanagerV1::Review
The review summary comment.
Corresponds to the JSON property review
1895 1896 1897 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1895 def review @review end |
#update_time ⇒ String
Output only. Last updated timestamp.
Corresponds to the JSON property updateTime
1900 1901 1902 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1900 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1907 1908 1909 1910 1911 1912 1913 1914 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1907 def update!(**args) @code = args[:code] if args.key?(:code) @comment = args[:comment] if args.key?(:comment) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @review = args[:review] if args.key?(:review) @update_time = args[:update_time] if args.key?(:update_time) end |