Class: Google::Apis::BigqueryV2::Model

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

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) ⇒ Model

Returns a new instance of Model



3237
3238
3239
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3237

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

Instance Attribute Details

#creation_timeFixnum

Output only. The time when this model was created, in millisecs since the epoch. Corresponds to the JSON property creationTime

Returns:

  • (Fixnum)


3158
3159
3160
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3158

def creation_time
  @creation_time
end

#descriptionString

[Optional] A user-friendly description of this model. Corresponds to the JSON property description

Returns:

  • (String)


3164
3165
3166
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3164

def description
  @description
end

#etagString

Output only. A hash of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


3169
3170
3171
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3169

def etag
  @etag
end

#expiration_timeFixnum

[Optional] The time when this model expires, in milliseconds since the epoch. If not present, the model will persist indefinitely. Expired models will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created models. Corresponds to the JSON property expirationTime

Returns:

  • (Fixnum)


3179
3180
3181
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3179

def expiration_time
  @expiration_time
end

#feature_columnsArray<Google::Apis::BigqueryV2::StandardSqlField>

Output only. Input feature columns that were used to train this model. Corresponds to the JSON property featureColumns



3184
3185
3186
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3184

def feature_columns
  @feature_columns
end

#friendly_nameString

[Optional] A descriptive name for this model. Corresponds to the JSON property friendlyName

Returns:

  • (String)


3190
3191
3192
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3190

def friendly_name
  @friendly_name
end

#label_columnsArray<Google::Apis::BigqueryV2::StandardSqlField>

Output only. Label columns that were used to train this model. The output of the model will have a “predicted_” prefix to these columns. Corresponds to the JSON property labelColumns



3196
3197
3198
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3196

def label_columns
  @label_columns
end

#labelsHash<String,String>

[Optional] The labels associated with this model. You can use these to organize and group your models. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3207
3208
3209
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3207

def labels
  @labels
end

#last_modified_timeFixnum

Output only. The time when this model was last modified, in millisecs since the epoch. Corresponds to the JSON property lastModifiedTime

Returns:

  • (Fixnum)


3213
3214
3215
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3213

def last_modified_time
  @last_modified_time
end

#locationString

Output only. The geographic location where the model resides. This value is inherited from the dataset. Corresponds to the JSON property location

Returns:

  • (String)


3219
3220
3221
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3219

def location
  @location
end

#model_referenceGoogle::Apis::BigqueryV2::ModelReference

Id path of a model. Corresponds to the JSON property modelReference



3224
3225
3226
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3224

def model_reference
  @model_reference
end

#model_typeString

Output only. Type of the model resource. Corresponds to the JSON property modelType

Returns:

  • (String)


3229
3230
3231
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3229

def model_type
  @model_type
end

#training_runsArray<Google::Apis::BigqueryV2::TrainingRun>

Output only. Information for all training runs in increasing order of start_time. Corresponds to the JSON property trainingRuns



3235
3236
3237
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3235

def training_runs
  @training_runs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3242

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @feature_columns = args[:feature_columns] if args.key?(:feature_columns)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
  @label_columns = args[:label_columns] if args.key?(:label_columns)
  @labels = args[:labels] if args.key?(:labels)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @location = args[:location] if args.key?(:location)
  @model_reference = args[:model_reference] if args.key?(:model_reference)
  @model_type = args[:model_type] if args.key?(:model_type)
  @training_runs = args[:training_runs] if args.key?(:training_runs)
end