Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSourceCode

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

Instance Method Summary collapse

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

#codeString

Required. Source code. Corresponds to the JSON property code

Returns:

  • (String)


613
614
615
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 613

def code
  @code
end

#end_lineFixnum

Required. End line number (1-based). Corresponds to the JSON property endLine

Returns:

  • (Fixnum)


618
619
620
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 618

def end_line
  @end_line
end

#pathString

Required. Path of the file. Corresponds to the JSON property path

Returns:

  • (String)


623
624
625
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 623

def path
  @path
end

#start_lineFixnum

Required. Start line number (1-based). Corresponds to the JSON property startLine

Returns:

  • (Fixnum)


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