Class: Google::Apis::ComputeBeta::MultiMigResourcePolicies
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::MultiMigResourcePolicies
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Resource policies message for a multi-MIG. Specifies the workload policy configuration of the multi-MIG.
Instance Attribute Summary collapse
-
#workload_policy ⇒ String
The URL of the workload policy for this multi-MIG.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MultiMigResourcePolicies
constructor
A new instance of MultiMigResourcePolicies.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MultiMigResourcePolicies
Returns a new instance of MultiMigResourcePolicies.
34412 34413 34414 |
# File 'lib/google/apis/compute_beta/classes.rb', line 34412 def initialize(**args) update!(**args) end |
Instance Attribute Details
#workload_policy ⇒ String
The URL of the workload policy for this multi-MIG. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/ resourcePolicies/resourcePolicy
- projects/project/regions/region/resourcePolicies/resourcePolicy
- regions/region/resourcePolicies/resourcePolicy
Corresponds to the JSON property
workloadPolicy
34410 34411 34412 |
# File 'lib/google/apis/compute_beta/classes.rb', line 34410 def workload_policy @workload_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
34417 34418 34419 |
# File 'lib/google/apis/compute_beta/classes.rb', line 34417 def update!(**args) @workload_policy = args[:workload_policy] if args.key?(:workload_policy) end |