Class: Google::Apis::PredictionV1_6::Insert2

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/representations.rb

Defined Under Namespace

Classes: ModelInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Insert2

Returns a new instance of Insert2.



537
538
539
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 537

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

Instance Attribute Details

#createdDateTime

Insert time of the model (as a RFC 3339 timestamp). Corresponds to the JSON property created

Returns:

  • (DateTime)


484
485
486
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 484

def created
  @created
end

#idString

The unique name for the predictive model. Corresponds to the JSON property id

Returns:

  • (String)


489
490
491
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 489

def id
  @id
end

#kindString

What kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


494
495
496
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 494

def kind
  @kind
end

#model_infoGoogle::Apis::PredictionV1_6::Insert2::ModelInfo

Model metadata. Corresponds to the JSON property modelInfo



499
500
501
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 499

def model_info
  @model_info
end

#model_typeString

Type of predictive model (CLASSIFICATION or REGRESSION). Corresponds to the JSON property modelType

Returns:

  • (String)


504
505
506
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 504

def model_type
  @model_type
end

A URL to re-request this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


509
510
511
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 509

def self_link
  @self_link
end

#storage_data_locationString

Google storage location of the training data file. Corresponds to the JSON property storageDataLocation

Returns:

  • (String)


514
515
516
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 514

def storage_data_location
  @storage_data_location
end

#storage_pmml_locationString

Google storage location of the preprocessing pmml file. Corresponds to the JSON property storagePMMLLocation

Returns:

  • (String)


519
520
521
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 519

def storage_pmml_location
  @storage_pmml_location
end

#storage_pmml_model_locationString

Google storage location of the pmml model file. Corresponds to the JSON property storagePMMLModelLocation

Returns:

  • (String)


524
525
526
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 524

def storage_pmml_model_location
  @storage_pmml_model_location
end

#training_completeDateTime

Training completion time (as a RFC 3339 timestamp). Corresponds to the JSON property trainingComplete

Returns:

  • (DateTime)


529
530
531
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 529

def training_complete
  @training_complete
end

#training_statusString

The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND Corresponds to the JSON property trainingStatus

Returns:

  • (String)


535
536
537
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 535

def training_status
  @training_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



542
543
544
545
546
547
548
549
550
551
552
553
554
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 542

def update!(**args)
  @created = args[:created] if args.key?(:created)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @model_info = args[:model_info] if args.key?(:model_info)
  @model_type = args[:model_type] if args.key?(:model_type)
  @self_link = args[:self_link] if args.key?(:self_link)
  @storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location)
  @storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location)
  @storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location)
  @training_complete = args[:training_complete] if args.key?(:training_complete)
  @training_status = args[:training_status] if args.key?(:training_status)
end