Class: Google::Apis::FirebasehostingV1beta1::PreviewConfig

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

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.

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

Returns a new instance of PreviewConfig.



625
626
627
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 625

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

Instance Attribute Details

#activeBoolean Also known as: active?

If true, preview URLs are enabled for this version. Corresponds to the JSON property active

Returns:

  • (Boolean)


616
617
618
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 616

def active
  @active
end

#expire_timeString

Indicates the expiration time for previewing this version; preview URL requests received after this time will 404. Corresponds to the JSON property expireTime

Returns:

  • (String)


623
624
625
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 623

def expire_time
  @expire_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



630
631
632
633
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 630

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