Class: Google::Apis::VersionhistoryV1::Channel
- Inherits:
-
Object
- Object
- Google::Apis::VersionhistoryV1::Channel
- 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
-
#channel_type ⇒ String
Type of channel.
-
#name ⇒ String
Channel name.
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.
41 42 43 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 41 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel_type ⇒ String
Type of channel.
Corresponds to the JSON property channelType
34 35 36 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 34 def channel_type @channel_type end |
#name ⇒ String
Channel name. Format is "product
/platforms/platform
/channels/channel
"
Corresponds to the JSON property name
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 |