Class: Google::Apis::WorkloadmanagerV1::Product

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

Overview

Contains the details of a product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Product

Returns a new instance of Product.



2233
2234
2235
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2233

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

Instance Attribute Details

#nameString

Optional. Name of the product. Corresponds to the JSON property name

Returns:

  • (String)


2226
2227
2228
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2226

def name
  @name
end

#versionString

Optional. Version of the product. Corresponds to the JSON property version

Returns:

  • (String)


2231
2232
2233
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2231

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2238
2239
2240
2241
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2238

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