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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasehosting_v1beta1/classes.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Version

Returns a new instance of Version.



1227
1228
1229
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1227

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 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. Corresponds to the JSON property config



1151
1152
1153
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1151

def config
  @config
end

#create_timeString

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

Returns:

  • (String)


1156
1157
1158
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1156

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



1162
1163
1164
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1162

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)


1167
1168
1169
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1167

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



1173
1174
1175
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1173

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)


1179
1180
1181
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1179

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)


1184
1185
1186
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1184

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



1190
1191
1192
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1190

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


1195
1196
1197
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1195

def labels
  @labels
end

#nameString

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. Corresponds to the JSON property name

Returns:

  • (String)


1202
1203
1204
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1202

def name
  @name
end

#previewGoogle::Apis::FirebasehostingV1beta1::PreviewConfig

Deprecated in favor of site channels. Corresponds to the JSON property preview



1207
1208
1209
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1207

def preview
  @preview
end

#statusString

The deploy status of the version. For a successful deploy, call CreateVersion 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 DeleteVersion. Corresponds to the JSON property status

Returns:

  • (String)


1219
1220
1221
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1219

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)


1225
1226
1227
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1225

def version_bytes
  @version_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1232

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)
  @preview = args[:preview] if args.key?(:preview)
  @status = args[:status] if args.key?(:status)
  @version_bytes = args[:version_bytes] if args.key?(:version_bytes)
end