Class: Google::Apis::SecuresourcemanagerV1::Review

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 review summary comment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Review

Returns a new instance of Review.



2063
2064
2065
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2063

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

Instance Attribute Details

#action_typeString

Required. The review action type. Corresponds to the JSON property actionType

Returns:

  • (String)


2051
2052
2053
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2051

def action_type
  @action_type
end

#bodyString

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

Returns:

  • (String)


2056
2057
2058
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2056

def body
  @body
end

#effective_commit_shaString

Output only. The effective commit sha this review is pointing to. Corresponds to the JSON property effectiveCommitSha

Returns:

  • (String)


2061
2062
2063
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2061

def effective_commit_sha
  @effective_commit_sha
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2068
2069
2070
2071
2072
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 2068

def update!(**args)
  @action_type = args[:action_type] if args.key?(:action_type)
  @body = args[:body] if args.key?(:body)
  @effective_commit_sha = args[:effective_commit_sha] if args.key?(:effective_commit_sha)
end