Class: Google::Apis::VersionhistoryV1::Platform

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

Instance Method Summary collapse

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

#nameString

Platform name. Format is "product/platforms/platform" Corresponds to the JSON property name

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 195

def name
  @name
end

#platform_typeString

Type of platform. Corresponds to the JSON property platformType

Returns:

  • (String)


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