Class: Google::Apis::FirebasehostingV1beta1::Release

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 Release is a particular collection of configurations and files that is set to be public at a particular time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Release

Returns a new instance of Release.



1424
1425
1426
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1424

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

Instance Attribute Details

#messageString

The deploy description when the release was created. The value can be up to 512 characters. Corresponds to the JSON property message

Returns:

  • (String)


1390
1391
1392
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1390

def message
  @message
end

#nameString

Output only. The unique identifier for the release, in either of the following formats: - sites/SITE_ID/releases/RELEASE_ID - sites/SITE_ID/channels/ CHANNEL_ID/releases/RELEASE_ID This name is provided in the response body when you call releases.create or channels.releases. create. Corresponds to the JSON property name

Returns:

  • (String)


1399
1400
1401
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1399

def name
  @name
end

#release_timeString

Output only. The time at which the version is set to be public. Corresponds to the JSON property releaseTime

Returns:

  • (String)


1404
1405
1406
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1404

def release_time
  @release_time
end

#release_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 releaseUser



1410
1411
1412
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1410

def release_user
  @release_user
end

#typeString

Explains the reason for the release. Specify a value for this field only when creating a SITE_DISABLE type release. Corresponds to the JSON property type

Returns:

  • (String)


1416
1417
1418
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1416

def type
  @type
end

#versionGoogle::Apis::FirebasehostingV1beta1::Version

A Version is a configuration and a collection of static files which determine how a site is displayed. Corresponds to the JSON property version



1422
1423
1424
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1422

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1429
1430
1431
1432
1433
1434
1435
1436
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1429

def update!(**args)
  @message = args[:message] if args.key?(:message)
  @name = args[:name] if args.key?(:name)
  @release_time = args[:release_time] if args.key?(:release_time)
  @release_user = args[:release_user] if args.key?(:release_user)
  @type = args[:type] if args.key?(:type)
  @version = args[:version] if args.key?(:version)
end