Class: Google::Apis::PredictionV1_2::Training

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_2/classes.rb,
generated/google/apis/prediction_v1_2/representations.rb,
generated/google/apis/prediction_v1_2/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) ⇒ Training

Returns a new instance of Training



166
167
168
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 166

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


144
145
146
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 144

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


149
150
151
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 149

def kind
  @kind
end

#model_infoGoogle::Apis::PredictionV1_2::Training::ModelInfo

Corresponds to the JSON property modelInfo



154
155
156
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 154

def model_info
  @model_info
end

Corresponds to the JSON property selfLink

Returns:

  • (String)


159
160
161
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 159

def self_link
  @self_link
end

#training_statusString

Corresponds to the JSON property trainingStatus

Returns:

  • (String)


164
165
166
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 164

def training_status
  @training_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



171
172
173
174
175
176
177
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 171

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @model_info = args[:model_info] if args.key?(:model_info)
  @self_link = args[:self_link] if args.key?(:self_link)
  @training_status = args[:training_status] if args.key?(:training_status)
end