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.



163
164
165
# File 'lib/google/apis/composer_v1/classes.rb', line 163

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

Instance Attribute Details

#nameString

Name of a workload. Corresponds to the JSON property name

Returns:

  • (String)


151
152
153
# File 'lib/google/apis/composer_v1/classes.rb', line 151

def name
  @name
end

#statusGoogle::Apis::ComposerV1::ComposerWorkloadStatus

Workload status. Corresponds to the JSON property status



156
157
158
# File 'lib/google/apis/composer_v1/classes.rb', line 156

def status
  @status
end

#typeString

Type of a workload. Corresponds to the JSON property type

Returns:

  • (String)


161
162
163
# File 'lib/google/apis/composer_v1/classes.rb', line 161

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



168
169
170
171
172
# File 'lib/google/apis/composer_v1/classes.rb', line 168

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