Class: Google::Apis::FirebasehostingV1beta1::Channel
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::Channel
- 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 Channel
represents a stream of releases for a site. All sites have a
default live
channel that serves content to the live Firebase-provided
domains and any connected custom domains.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#expire_time ⇒ String
The time at which the channel will be automatically deleted.
-
#labels ⇒ Hash<String,String>
Text labels used for extra metadata and/or filtering.
-
#name ⇒ String
The fully-qualified identifier of the Channel.
-
#release ⇒ Google::Apis::FirebasehostingV1beta1::Release
A
Release
is a particular collection of configurations and files that is set to be public at a particular time. -
#retained_release_count ⇒ Fixnum
The number of previous releases to retain on the channel for rollback or other purposes.
-
#ttl ⇒ String
Input only.
-
#update_time ⇒ String
Output only.
-
#url ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Channel
constructor
A new instance of Channel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Channel
Returns a new instance of Channel.
162 163 164 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time at which the channel was created.
Corresponds to the JSON property createTime
114 115 116 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 114 def create_time @create_time end |
#expire_time ⇒ String
The time at which the channel will be automatically deleted. If null, the
channel will not be automatically deleted. This field is present in output
whether set directly or via the ttl
field.
Corresponds to the JSON property expireTime
121 122 123 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 121 def expire_time @expire_time end |
#labels ⇒ Hash<String,String>
Text labels used for extra metadata and/or filtering.
Corresponds to the JSON property labels
126 127 128 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 126 def labels @labels end |
#name ⇒ String
The fully-qualified identifier of the Channel.
Corresponds to the JSON property name
131 132 133 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 131 def name @name end |
#release ⇒ Google::Apis::FirebasehostingV1beta1::Release
A Release
is a particular collection of configurations and files that is set to be public at a particular time.
Corresponds to the JSON property release
137 138 139 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 137 def release @release end |
#retained_release_count ⇒ Fixnum
The number of previous releases to retain on the channel for rollback or other
purposes. Must be a number between 1-100. Defaults to 10 for new channels.
Corresponds to the JSON property retainedReleaseCount
143 144 145 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 143 def retained_release_count @retained_release_count end |
#ttl ⇒ String
Input only. A time-to-live for this channel. Sets expire_time
to the
provided duration past the time of the request.
Corresponds to the JSON property ttl
149 150 151 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 149 def ttl @ttl end |
#update_time ⇒ String
Output only. The time at which the channel was last updated.
Corresponds to the JSON property updateTime
154 155 156 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 154 def update_time @update_time end |
#url ⇒ String
Output only. The URL at which the channel can be viewed. For the live
channel, the content of the current release may also be visible at other URLs.
Corresponds to the JSON property url
160 161 162 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 160 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
167 168 169 170 171 172 173 174 175 176 177 |
# File 'generated/google/apis/firebasehosting_v1beta1/classes.rb', line 167 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @expire_time = args[:expire_time] if args.key?(:expire_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @release = args[:release] if args.key?(:release) @retained_release_count = args[:retained_release_count] if args.key?(:retained_release_count) @ttl = args[:ttl] if args.key?(:ttl) @update_time = args[:update_time] if args.key?(:update_time) @url = args[:url] if args.key?(:url) end |