Class: Google::Apis::SecuresourcemanagerV1::IssueComment

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

IssueComment represents a comment on an issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IssueComment

Returns a new instance of IssueComment.



1112
1113
1114
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1112

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bodyString

Required. The comment body. Corresponds to the JSON property body

Returns:

  • (String)


1093
1094
1095
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1093

def body
  @body
end

#create_timeString

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

Returns:

  • (String)


1098
1099
1100
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1098

def create_time
  @create_time
end

#nameString

Identifier. Unique identifier for an issue comment. The comment id is generated by the server. Format: projects/project/locations/location/ repositories/repository/issues/issue/issueComments/comment_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


1105
1106
1107
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1105

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


1110
1111
1112
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1110

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1117
1118
1119
1120
1121
1122
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1117

def update!(**args)
  @body = args[:body] if args.key?(:body)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end