Class: Google::Apis::FirebasehostingV1beta1::Version

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 Version is the collection of configuration and static files that determine how a site is displayed.

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

Returns a new instance of Version



778
779
780
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 778

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

Instance Attribute Details

#configGoogle::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



700
701
702
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 700

def config
  @config
end

#create_timeString

Output only. The time at which the version was created. Corresponds to the JSON property createTime

Returns:

  • (String)


705
706
707
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 705

def create_time
  @create_time
end

#create_userGoogle::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



711
712
713
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 711

def create_user
  @create_user
end

#delete_timeString

Output only. The time at which the version was DELETED. Corresponds to the JSON property deleteTime

Returns:

  • (String)


716
717
718
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 716

def delete_time
  @delete_time
end

#delete_userGoogle::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



722
723
724
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 722

def delete_user
  @delete_user
end

#file_countFixnum

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

Returns:

  • (Fixnum)


728
729
730
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 728

def file_count
  @file_count
end

#finalize_timeString

Output only. The time at which the version was FINALIZED. Corresponds to the JSON property finalizeTime

Returns:

  • (String)


733
734
735
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 733

def finalize_time
  @finalize_time
end

#finalize_userGoogle::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



739
740
741
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 739

def finalize_user
  @finalize_user
end

#labelsHash<String,String>

The labels used for extra metadata and/or filtering. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


744
745
746
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 744

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


752
753
754
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 752

def name
  @name
end

#statusString

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

Returns:

  • (String)


770
771
772
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 770

def status
  @status
end

#version_bytesFixnum

Output only. The total stored bytesize of the version.
This value is calculated after a version is FINALIZED. Corresponds to the JSON property versionBytes

Returns:

  • (Fixnum)


776
777
778
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 776

def version_bytes
  @version_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



783
784
785
786
787
788
789
790
791
792
793
794
795
796
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 783

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