Class: Google::Apis::FirebasemlV1beta2::DownloadModelResponse
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV1beta2::DownloadModelResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v1beta2/classes.rb,
lib/google/apis/firebaseml_v1beta2/representations.rb,
lib/google/apis/firebaseml_v1beta2/representations.rb
Overview
The response for downloading a model to device.
Instance Attribute Summary collapse
-
#download_uri ⇒ String
Output only.
-
#expire_time ⇒ String
Output only.
-
#model_format ⇒ String
Output only.
-
#size_bytes ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DownloadModelResponse
constructor
A new instance of DownloadModelResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DownloadModelResponse
Returns a new instance of DownloadModelResponse.
50 51 52 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 50 def initialize(**args) update!(**args) end |
Instance Attribute Details
#download_uri ⇒ String
Output only. A download URI for the model/zip file.
Corresponds to the JSON property downloadUri
32 33 34 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 32 def download_uri @download_uri end |
#expire_time ⇒ String
Output only. The time that the download URI link expires. If the link has
expired, the REST call must be repeated.
Corresponds to the JSON property expireTime
38 39 40 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 38 def expire_time @expire_time end |
#model_format ⇒ String
Output only. The format of the model being downloaded.
Corresponds to the JSON property modelFormat
43 44 45 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 43 def model_format @model_format end |
#size_bytes ⇒ Fixnum
Output only. The size of the file(s), if this information is available.
Corresponds to the JSON property sizeBytes
48 49 50 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 48 def size_bytes @size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
55 56 57 58 59 60 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 55 def update!(**args) @download_uri = args[:download_uri] if args.key?(:download_uri) @expire_time = args[:expire_time] if args.key?(:expire_time) @model_format = args[:model_format] if args.key?(:model_format) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) end |