Class: Google::Apis::ComputeAlpha::ResourcePolicyWorkloadPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ResourcePolicyWorkloadPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Represents the workload policy.
Instance Attribute Summary collapse
-
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourcePolicyWorkloadPolicy
constructor
A new instance of ResourcePolicyWorkloadPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourcePolicyWorkloadPolicy
Returns a new instance of ResourcePolicyWorkloadPolicy.
43610 43611 43612 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 43610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
Corresponds to the JSON property type
43608 43609 43610 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 43608 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
43615 43616 43617 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 43615 def update!(**args) @type = args[:type] if args.key?(:type) end |