Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSourceCode
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSourceCode
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Overview
Contains source code from a repo.
Instance Attribute Summary collapse
-
#code ⇒ String
Required.
-
#end_line ⇒ Fixnum
Required.
-
#path ⇒ String
Required.
-
#start_line ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaSourceCode
constructor
A new instance of GoogleChecksRepoScanV1alphaSourceCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaSourceCode
Returns a new instance of GoogleChecksRepoScanV1alphaSourceCode.
630 631 632 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 630 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Required. Source code.
Corresponds to the JSON property code
613 614 615 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 613 def code @code end |
#end_line ⇒ Fixnum
Required. End line number (1-based).
Corresponds to the JSON property endLine
618 619 620 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 618 def end_line @end_line end |
#path ⇒ String
Required. Path of the file.
Corresponds to the JSON property path
623 624 625 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 623 def path @path end |
#start_line ⇒ Fixnum
Required. Start line number (1-based).
Corresponds to the JSON property startLine
628 629 630 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 628 def start_line @start_line end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
635 636 637 638 639 640 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 635 def update!(**args) @code = args[:code] if args.key?(:code) @end_line = args[:end_line] if args.key?(:end_line) @path = args[:path] if args.key?(:path) @start_line = args[:start_line] if args.key?(:start_line) end |