Class: Google::Apis::VersionhistoryV1::Platform
- Inherits:
-
Object
- Object
- Google::Apis::VersionhistoryV1::Platform
- 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 Platform is owned by a Product and owns a collection of channels. Available platforms are listed in Platform enum below. Not all Channels are available for every Platform (e.g. CANARY does not exist for LINUX).
Instance Attribute Summary collapse
-
#name ⇒ String
Platform name.
-
#platform_type ⇒ String
Type of platform.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Platform
constructor
A new instance of Platform.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Platform
Returns a new instance of Platform.
202 203 204 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 202 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Platform name. Format is "product
/platforms/platform
"
Corresponds to the JSON property name
195 196 197 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 195 def name @name end |
#platform_type ⇒ String
Type of platform.
Corresponds to the JSON property platformType
200 201 202 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 200 def platform_type @platform_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
207 208 209 210 |
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 207 def update!(**args) @name = args[:name] if args.key?(:name) @platform_type = args[:platform_type] if args.key?(:platform_type) end |