Class: Google::Apis::FirebasehostingV1beta1::Version
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::Version
- 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 Version
is the collection of configuration and
static files that determine how a site is displayed.
Instance Attribute Summary collapse
-
#config ⇒ Google::Apis::FirebasehostingV1beta1::ServingConfig
The configuration for how incoming requests to a site should be routed and processed before serving content.
-
#create_time ⇒ String
Output only.
-
#create_user ⇒ Google::Apis::FirebasehostingV1beta1::ActingUser
Contains metadata about the user who performed an action, such as creating a release or finalizing a version.
-
#delete_time ⇒ String
Output only.
-
#delete_user ⇒ Google::Apis::FirebasehostingV1beta1::ActingUser
Contains metadata about the user who performed an action, such as creating a release or finalizing a version.
-
#file_count ⇒ Fixnum
Output only.
-
#finalize_time ⇒ String
Output only.
-
#finalize_user ⇒ Google::Apis::FirebasehostingV1beta1::ActingUser
Contains metadata about the user who performed an action, such as creating a release or finalizing a version.
-
#labels ⇒ Hash<String,String>
The labels used for extra metadata and/or filtering.
-
#name ⇒ String
The unique identifier for a version, in the format:
sites/site-name/versions/versionID
This name is provided in the response body when you call theCreateVersion
endpoint. -
#preview ⇒ Google::Apis::FirebasehostingV1beta1::PreviewConfig
Version preview configuration.
-
#status ⇒ String
The deploy status of a version.
-
#version_bytes ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Version
constructor
A new instance of Version.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Version
Returns a new instance of Version
835 836 837 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 835 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::FirebasehostingV1beta1::ServingConfig
The configuration for how incoming requests to a site should be routed and
processed before serving content. The patterns are matched and applied
according to a specific
priority order.
Corresponds to the JSON property config
750 751 752 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 750 def config @config end |
#create_time ⇒ String
Output only. The time at which the version was created.
Corresponds to the JSON property createTime
755 756 757 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 755 def create_time @create_time end |
#create_user ⇒ Google::Apis::FirebasehostingV1beta1::ActingUser
Contains metadata about the user who performed an action, such as creating
a release or finalizing a version.
Corresponds to the JSON property createUser
761 762 763 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 761 def create_user @create_user end |
#delete_time ⇒ String
Output only. The time at which the version was DELETED
.
Corresponds to the JSON property deleteTime
766 767 768 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 766 def delete_time @delete_time end |
#delete_user ⇒ Google::Apis::FirebasehostingV1beta1::ActingUser
Contains metadata about the user who performed an action, such as creating
a release or finalizing a version.
Corresponds to the JSON property deleteUser
772 773 774 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 772 def delete_user @delete_user end |
#file_count ⇒ Fixnum
Output only. The total number of files associated with the version.
This value is calculated after a version is FINALIZED
.
Corresponds to the JSON property fileCount
778 779 780 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 778 def file_count @file_count end |
#finalize_time ⇒ String
Output only. The time at which the version was FINALIZED
.
Corresponds to the JSON property finalizeTime
783 784 785 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 783 def finalize_time @finalize_time end |
#finalize_user ⇒ Google::Apis::FirebasehostingV1beta1::ActingUser
Contains metadata about the user who performed an action, such as creating
a release or finalizing a version.
Corresponds to the JSON property finalizeUser
789 790 791 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 789 def finalize_user @finalize_user end |
#labels ⇒ Hash<String,String>
The labels used for extra metadata and/or filtering.
Corresponds to the JSON property labels
794 795 796 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 794 def labels @labels end |
#name ⇒ String
The unique identifier for a version, in the format:
sites/site-name/versions/versionID
This name is provided in the response body when you call the
CreateVersion
endpoint.
Corresponds to the JSON property name
802 803 804 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 802 def name @name end |
#preview ⇒ Google::Apis::FirebasehostingV1beta1::PreviewConfig
Version preview configuration. If active and unexpired,
this version will be accessible via a custom URL even
if it is not the currently released version.
Corresponds to the JSON property preview
809 810 811 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 809 def preview @preview end |
#status ⇒ String
The deploy status of a version.
For a successful deploy, call the
CreateVersion
endpoint to make a new version
(CREATED
status),
upload all desired files to the version,
then update the version to the FINALIZED
status.
Note that if you leave the version in the CREATED
state for more
than 12 hours, the system will automatically mark the version as
ABANDONED
.
You can also change the status of a version to DELETED
by calling the
DeleteVersion
endpoint.
Corresponds to the JSON property status
827 828 829 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 827 def status @status end |
#version_bytes ⇒ Fixnum
Output only. The total stored bytesize of the version.
This value is calculated after a version is FINALIZED
.
Corresponds to the JSON property versionBytes
833 834 835 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 833 def version_bytes @version_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 840 def update!(**args) @config = args[:config] if args.key?(:config) @create_time = args[:create_time] if args.key?(:create_time) @create_user = args[:create_user] if args.key?(:create_user) @delete_time = args[:delete_time] if args.key?(:delete_time) @delete_user = args[:delete_user] if args.key?(:delete_user) @file_count = args[:file_count] if args.key?(:file_count) @finalize_time = args[:finalize_time] if args.key?(:finalize_time) @finalize_user = args[:finalize_user] if args.key?(:finalize_user) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @preview = args[:preview] if args.key?(:preview) @status = args[:status] if args.key?(:status) @version_bytes = args[:version_bytes] if args.key?(:version_bytes) end |