Class: Google::Apis::FirebasehostingV1beta1::PreviewConfig
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::PreviewConfig
- 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. Deprecated in favor of site channels.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
(also: #active?)
If true, preview URLs are enabled for this version.
-
#expire_time ⇒ String
Indicates the expiration time for previewing this version; preview URL requests received after this time will 404.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PreviewConfig
constructor
A new instance of PreviewConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PreviewConfig
Returns a new instance of PreviewConfig.
740 741 742 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 740 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
If true, preview URLs are enabled for this version.
Corresponds to the JSON property active
731 732 733 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 731 def active @active end |
#expire_time ⇒ String
Indicates the expiration time for previewing this version; preview URL
requests received after this time will 404.
Corresponds to the JSON property expireTime
738 739 740 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 738 def expire_time @expire_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
745 746 747 748 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 745 def update!(**args) @active = args[:active] if args.key?(:active) @expire_time = args[:expire_time] if args.key?(:expire_time) end |