Class: Google::Apis::ComposerV1::ComposerWorkload
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1::ComposerWorkload
- 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
-
#name ⇒ String
Name of a workload.
-
#status ⇒ Google::Apis::ComposerV1::ComposerWorkloadStatus
Workload status.
-
#type ⇒ String
Type of a workload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComposerWorkload
constructor
A new instance of ComposerWorkload.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Name of a workload.
Corresponds to the JSON property name
212 213 214 |
# File 'lib/google/apis/composer_v1/classes.rb', line 212 def name @name end |
#status ⇒ Google::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 |
#type ⇒ String
Type of a workload.
Corresponds to the JSON property type
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 |