Class: Google::Apis::SecuresourcemanagerV1::CreatePullRequestCommentRequest

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

The request to create a pull request comment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreatePullRequestCommentRequest

Returns a new instance of CreatePullRequestCommentRequest.



517
518
519
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 517

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

Instance Attribute Details

#parentString

Required. The pull request in which to create the pull request comment. Format: projects/project_number/locations/location_id/repositories/ repository_id/pullRequests/pull_request_id` Corresponds to the JSON propertyparent`

Returns:

  • (String)


510
511
512
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 510

def parent
  @parent
end

#pull_request_commentGoogle::Apis::SecuresourcemanagerV1::PullRequestComment

PullRequestComment represents a comment on a pull request. Corresponds to the JSON property pullRequestComment



515
516
517
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 515

def pull_request_comment
  @pull_request_comment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



522
523
524
525
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 522

def update!(**args)
  @parent = args[:parent] if args.key?(:parent)
  @pull_request_comment = args[:pull_request_comment] if args.key?(:pull_request_comment)
end