Class: Google::Apis::ComposerV1beta1::ComposerWorkload
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1beta1::ComposerWorkload
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/composer_v1beta1/classes.rb,
lib/google/apis/composer_v1beta1/representations.rb,
lib/google/apis/composer_v1beta1/representations.rb
Overview
Information about a single workload.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of a workload.
-
#status ⇒ Google::Apis::ComposerV1beta1::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.
231 232 233 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of a workload.
Corresponds to the JSON property name
219 220 221 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 219 def name @name end |
#status ⇒ Google::Apis::ComposerV1beta1::ComposerWorkloadStatus
Workload status.
Corresponds to the JSON property status
224 225 226 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 224 def status @status end |
#type ⇒ String
Type of a workload.
Corresponds to the JSON property type
229 230 231 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 229 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
236 237 238 239 240 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 236 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 |