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.



2235
2236
2237
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2235

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2228
2229
2230
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2228

def name
  @name
end

#versionString

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

Returns:

  • (String)


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

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2240
2241
2242
2243
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2240

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