Class: Google::Apis::WalletobjectsV1::Blobstore2Info
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::Blobstore2Info
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Overview
Information to read/write to blobstore2.
Instance Attribute Summary collapse
-
#blob_generation ⇒ Fixnum
The blob generation id.
-
#blob_id ⇒ String
The blob id, e.g., /blobstore/prod/playground/scotty Corresponds to the JSON property
blobId. -
#download_external_read_token ⇒ String
A serialized External Read Token passed from Bigstore -> Scotty for a GCS download.
-
#download_read_handle ⇒ String
Read handle passed from Bigstore -> Scotty for a GCS download.
-
#read_token ⇒ String
The blob read token.
-
#upload_metadata_container ⇒ String
Metadata passed from Blobstore -> Scotty for a new GCS upload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Blobstore2Info
constructor
A new instance of Blobstore2Info.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Blobstore2Info
Returns a new instance of Blobstore2Info.
391 392 393 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 391 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blob_generation ⇒ Fixnum
The blob generation id.
Corresponds to the JSON property blobGeneration
354 355 356 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 354 def blob_generation @blob_generation end |
#blob_id ⇒ String
The blob id, e.g., /blobstore/prod/playground/scotty
Corresponds to the JSON property blobId
359 360 361 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 359 def blob_id @blob_id end |
#download_external_read_token ⇒ String
A serialized External Read Token passed from Bigstore -> Scotty for a GCS
download. This field must never be consumed outside of Bigstore, and is not
applicable to non-GCS media uploads.
Corresponds to the JSON property downloadExternalReadToken
NOTE: Values are automatically base64 encoded/decoded in the client library.
367 368 369 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 367 def download_external_read_token @download_external_read_token end |
#download_read_handle ⇒ String
Read handle passed from Bigstore -> Scotty for a GCS download. This is a
signed, serialized blobstore2.ReadHandle proto which must never be set outside
of Bigstore, and is not applicable to non-GCS media downloads.
Corresponds to the JSON property downloadReadHandle
NOTE: Values are automatically base64 encoded/decoded in the client library.
375 376 377 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 375 def download_read_handle @download_read_handle end |
#read_token ⇒ String
The blob read token. Needed to read blobs that have not been replicated. Might
not be available until the final call.
Corresponds to the JSON property readToken
381 382 383 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 381 def read_token @read_token end |
#upload_metadata_container ⇒ String
Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a
signed, serialized blobstore2.BlobMetadataContainer proto which must never be
consumed outside of Bigstore, and is not applicable to non-GCS media uploads.
Corresponds to the JSON property uploadMetadataContainer
NOTE: Values are automatically base64 encoded/decoded in the client library.
389 390 391 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 389 def @upload_metadata_container end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
396 397 398 399 400 401 402 403 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 396 def update!(**args) @blob_generation = args[:blob_generation] if args.key?(:blob_generation) @blob_id = args[:blob_id] if args.key?(:blob_id) @download_external_read_token = args[:download_external_read_token] if args.key?(:download_external_read_token) @download_read_handle = args[:download_read_handle] if args.key?(:download_read_handle) @read_token = args[:read_token] if args.key?(:read_token) @upload_metadata_container = args[:upload_metadata_container] if args.key?(:upload_metadata_container) end |