class Google::Apis::FirebasehostingV1beta1::Version

A `Version` is a configuration and a collection of static files which determine how a site is displayed.

Attributes

config[RW]

The configuration for how incoming requests to a site should be routed and processed before serving content. The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific [priority order](https:// firebase.google.com/docs/hosting/full-config#hosting_priority_order). Corresponds to the JSON property `config` @return [Google::Apis::FirebasehostingV1beta1::ServingConfig]

create_time[RW]

Output only. The time at which the version was created. Corresponds to the JSON property `createTime` @return [String]

create_user[RW]

Contains metadata about the user who performed an action, such as creating a release or finalizing a version. Corresponds to the JSON property `createUser` @return [Google::Apis::FirebasehostingV1beta1::ActingUser]

delete_time[RW]

Output only. The time at which the version was `DELETED`. Corresponds to the JSON property `deleteTime` @return [String]

delete_user[RW]

Contains metadata about the user who performed an action, such as creating a release or finalizing a version. Corresponds to the JSON property `deleteUser` @return [Google::Apis::FirebasehostingV1beta1::ActingUser]

file_count[RW]

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` @return [Fixnum]

finalize_time[RW]

Output only. The time at which the version was `FINALIZED`. Corresponds to the JSON property `finalizeTime` @return [String]

finalize_user[RW]

Contains metadata about the user who performed an action, such as creating a release or finalizing a version. Corresponds to the JSON property `finalizeUser` @return [Google::Apis::FirebasehostingV1beta1::ActingUser]

labels[RW]

The labels used for extra metadata and/or filtering. Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call [`CreateVersion`](sites.versions/create). Corresponds to the JSON property `name` @return [String]

status[RW]

The deploy status of the version. For a successful deploy, call [` CreateVersion`](sites.versions/create) to make a new version (`CREATED` status) , [upload all desired files](sites.versions/populateFiles) to the version, then [update](sites.versions/patch) 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 [`DeleteVersion`]( sites.versions/delete). Corresponds to the JSON property `status` @return [String]

version_bytes[RW]

Output only. The total stored bytesize of the version. This value is calculated after a version is `FINALIZED`. Corresponds to the JSON property `versionBytes` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 1195
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 1200
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)
  @status = args[:status] if args.key?(:status)
  @version_bytes = args[:version_bytes] if args.key?(:version_bytes)
end