Class: Google::Apis::ComposerV1::ComposerWorkload

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

Overview

Information about a single workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComposerWorkload

Returns a new instance of ComposerWorkload.



224
225
226
# File 'lib/google/apis/composer_v1/classes.rb', line 224

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

Instance Attribute Details

#nameString

Name of a workload. Corresponds to the JSON property name

Returns:

  • (String)


212
213
214
# File 'lib/google/apis/composer_v1/classes.rb', line 212

def name
  @name
end

#statusGoogle::Apis::ComposerV1::ComposerWorkloadStatus

Workload status. Corresponds to the JSON property status



217
218
219
# File 'lib/google/apis/composer_v1/classes.rb', line 217

def status
  @status
end

#typeString

Type of a workload. Corresponds to the JSON property type

Returns:

  • (String)


222
223
224
# File 'lib/google/apis/composer_v1/classes.rb', line 222

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



229
230
231
232
233
# File 'lib/google/apis/composer_v1/classes.rb', line 229

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