Class: Google::Apis::SecuresourcemanagerV1::PullRequestComment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#codeGoogle::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

#commentGoogle::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_timeString

Output only. Creation timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


1882
1883
1884
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1882

def create_time
  @create_time
end

#nameString

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`

Returns:

  • (String)


1890
1891
1892
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1890

def name
  @name
end

#reviewGoogle::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_timeString

Output only. Last updated timestamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


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