Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan

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

Repo scan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaRepoScan

Returns a new instance of GoogleChecksRepoScanV1alphaRepoScan.



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

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

Instance Attribute Details

#cli_versionString

CLI version. Corresponds to the JSON property cliVersion

Returns:

  • (String)


495
496
497
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 495

def cli_version
  @cli_version
end

#local_scan_pathString

Local scan path. Corresponds to the JSON property localScanPath

Returns:

  • (String)


500
501
502
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 500

def local_scan_path
  @local_scan_path
end

#nameString

Identifier. Resource name of the scan. Corresponds to the JSON property name

Returns:

  • (String)


505
506
507
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 505

def name
  @name
end

#results_uriString

A URL to view results. Corresponds to the JSON property resultsUri

Returns:

  • (String)


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

def results_uri
  @results_uri
end

#scm_metadataGoogle::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata

SCM metadata. Corresponds to the JSON property scmMetadata



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

def 
  @scm_metadata
end

#sourcesArray<Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource>

Data sources detected. Corresponds to the JSON property sources



520
521
522
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 520

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



527
528
529
530
531
532
533
534
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 527

def update!(**args)
  @cli_version = args[:cli_version] if args.key?(:cli_version)
  @local_scan_path = args[:local_scan_path] if args.key?(:local_scan_path)
  @name = args[:name] if args.key?(:name)
  @results_uri = args[:results_uri] if args.key?(:results_uri)
  @scm_metadata = args[:scm_metadata] if args.key?(:scm_metadata)
  @sources = args[:sources] if args.key?(:sources)
end