Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification

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 request to classify data types.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification

Returns a new instance of GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification.



387
388
389
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 387

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

Instance Attribute Details

#data_typeString

Required. Candidate data type. Corresponds to the JSON property dataType

Returns:

  • (String)


380
381
382
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 380

def data_type
  @data_type
end

#line_numberFixnum

Required. Line number (1-based). Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)


385
386
387
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 385

def line_number
  @line_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



392
393
394
395
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 392

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