Class: Google::Apis::ComputeAlpha::InstanceGroupManagerResourcePolicies

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerResourcePolicies

Returns a new instance of InstanceGroupManagerResourcePolicies.



19892
19893
19894
# File 'lib/google/apis/compute_alpha/classes.rb', line 19892

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

Instance Attribute Details

#workload_policyString

The URL of the workload policy that is specified for this managed instance group. 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

Returns:

  • (String)


19890
19891
19892
# File 'lib/google/apis/compute_alpha/classes.rb', line 19890

def workload_policy
  @workload_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19897
19898
19899
# File 'lib/google/apis/compute_alpha/classes.rb', line 19897

def update!(**args)
  @workload_policy = args[:workload_policy] if args.key?(:workload_policy)
end