Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScan

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

A requested analysis of source code. Contains the source code and processing state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaCodeScan

Returns a new instance of GoogleChecksRepoScanV1alphaCodeScan.



362
363
364
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 362

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

Instance Attribute Details

#data_type_classificationsArray<Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification>

Optional. Data type classification requests. Corresponds to the JSON property dataTypeClassifications



355
356
357
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 355

def data_type_classifications
  @data_type_classifications
end

#source_codeGoogle::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSourceCode

Contains source code from a repo. Corresponds to the JSON property sourceCode



360
361
362
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 360

def source_code
  @source_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



367
368
369
370
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 367

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