Class: Google::Apis::VersionhistoryV1::Channel

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

Overview

Each Channel is owned by a Platform and owns a collection of versions. Possible Channels are listed in the Channel enum below. Not all Channels are available for every Platform (e.g. CANARY does not exist for LINUX).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Channel

Returns a new instance of Channel.



41
42
43
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 41

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

Instance Attribute Details

#channel_typeString

Type of channel. Corresponds to the JSON property channelType

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 34

def channel_type
  @channel_type
end

#nameString

Channel name. Format is "product/platforms/platform/channels/channel" Corresponds to the JSON property name

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 39

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 46

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