Class: Google::Apis::FirebasemlV1beta2::Model
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV1beta2::Model
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firebaseml_v1beta2/classes.rb,
generated/google/apis/firebaseml_v1beta2/representations.rb,
generated/google/apis/firebaseml_v1beta2/representations.rb
Overview
An ML model hosted in Firebase ML
Instance Attribute Summary collapse
-
#active_operations ⇒ Array<Google::Apis::FirebasemlV1beta2::Operation>
Output only.
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
Required.
-
#etag ⇒ String
Output only.
-
#model_hash ⇒ String
Output only.
-
#name ⇒ String
The resource name of the Model.
-
#state ⇒ Google::Apis::FirebasemlV1beta2::ModelState
State common to all model types.
-
#tags ⇒ Array<String>
User defined tags which can be used to group/filter models during listing Corresponds to the JSON property
tags
. -
#tflite_model ⇒ Google::Apis::FirebasemlV1beta2::TfLiteModel
Information that is specific to TfLite models.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Model
constructor
A new instance of Model.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Model
Returns a new instance of Model.
128 129 130 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 128 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_operations ⇒ Array<Google::Apis::FirebasemlV1beta2::Operation>
Output only. Lists operation ids associated with this model whose status is
NOT done.
Corresponds to the JSON property activeOperations
76 77 78 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 76 def active_operations @active_operations end |
#create_time ⇒ String
Output only. Timestamp when this model was created in Firebase ML.
Corresponds to the JSON property createTime
81 82 83 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 81 def create_time @create_time end |
#display_name ⇒ String
Required. The name of the model to create. The name can be up to 32 characters
long and can consist only of ASCII Latin letters A-Z and a-z, underscores(_)
and ASCII digits 0-9. It must start with a letter.
Corresponds to the JSON property displayName
88 89 90 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 88 def display_name @display_name end |
#etag ⇒ String
Output only. See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
Corresponds to the JSON property etag
93 94 95 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 93 def etag @etag end |
#model_hash ⇒ String
Output only. The model_hash will change if a new file is available for
download.
Corresponds to the JSON property modelHash
99 100 101 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 99 def model_hash @model_hash end |
#name ⇒ String
The resource name of the Model. Model names have the form projects/
project_id/models/
model_id`The name is ignored when creating a model.
Corresponds to the JSON property
name`
105 106 107 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 105 def name @name end |
#state ⇒ Google::Apis::FirebasemlV1beta2::ModelState
State common to all model types. Includes publishing and validation
information.
Corresponds to the JSON property state
111 112 113 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 111 def state @state end |
#tags ⇒ Array<String>
User defined tags which can be used to group/filter models during listing
Corresponds to the JSON property tags
116 117 118 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 116 def @tags end |
#tflite_model ⇒ Google::Apis::FirebasemlV1beta2::TfLiteModel
Information that is specific to TfLite models.
Corresponds to the JSON property tfliteModel
121 122 123 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 121 def tflite_model @tflite_model end |
#update_time ⇒ String
Output only. Timestamp when this model was updated in Firebase ML.
Corresponds to the JSON property updateTime
126 127 128 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 126 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 133 def update!(**args) @active_operations = args[:active_operations] if args.key?(:active_operations) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @model_hash = args[:model_hash] if args.key?(:model_hash) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @tags = args[:tags] if args.key?(:tags) @tflite_model = args[:tflite_model] if args.key?(:tflite_model) @update_time = args[:update_time] if args.key?(:update_time) end |