Class: Google::Apis::FirebasehostingV1beta1::VersionFile

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

Overview

A static content file that is part of a version.

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

Returns a new instance of VersionFile.



1064
1065
1066
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 1064

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

Instance Attribute Details

#hash_propString

The SHA256 content hash of the file. Corresponds to the JSON property hash

Returns:

  • (String)


1050
1051
1052
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 1050

def hash_prop
  @hash_prop
end

#pathString

The URI at which the file's content should display. Corresponds to the JSON property path

Returns:

  • (String)


1055
1056
1057
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 1055

def path
  @path
end

#statusString

Output only. The current status of a particular file in the specified version.
The value will be either pending upload or uploaded. Corresponds to the JSON property status

Returns:

  • (String)


1062
1063
1064
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 1062

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1069
1070
1071
1072
1073
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 1069

def update!(**args)
  @hash_prop = args[:hash_prop] if args.key?(:hash_prop)
  @path = args[:path] if args.key?(:path)
  @status = args[:status] if args.key?(:status)
end