Class: Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse

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

Returns a new instance of PopulateVersionFilesResponse



412
413
414
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 412

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

Instance Attribute Details

#upload_required_hashesArray<String>

The content hashes of the specified files that need to be uploaded to the specified endpoint. Corresponds to the JSON property uploadRequiredHashes

Returns:

  • (Array<String>)


401
402
403
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 401

def upload_required_hashes
  @upload_required_hashes
end

#upload_urlString

The URL to which the files should be uploaded, in the format:
"https://upload-firebasehosting.googleapis.com/upload/sites/site-name< /var>/versions/versionID/files".
Perform a multipart POST of the Gzipped file contents to the URL using a forward slash and the hash of the file appended to the end. Corresponds to the JSON property uploadUrl

Returns:

  • (String)


410
411
412
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 410

def upload_url
  @upload_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



417
418
419
420
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 417

def update!(**args)
  @upload_required_hashes = args[:upload_required_hashes] if args.key?(:upload_required_hashes)
  @upload_url = args[:upload_url] if args.key?(:upload_url)
end