Class: Google::Apis::ComputeV1::RolloutPlanWaveSelector

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

A selector which specifies what resource(s) are included in a given wave.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolloutPlanWaveSelector

Returns a new instance of RolloutPlanWaveSelector.



50346
50347
50348
# File 'lib/google/apis/compute_v1/classes.rb', line 50346

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

Instance Attribute Details

#location_selectorGoogle::Apis::ComputeV1::RolloutPlanWaveSelectorLocationSelector

Roll out to resources by location. Corresponds to the JSON property locationSelector



50338
50339
50340
# File 'lib/google/apis/compute_v1/classes.rb', line 50338

def location_selector
  @location_selector
end

#resource_hierarchy_selectorGoogle::Apis::ComputeV1::RolloutPlanWaveSelectorResourceHierarchySelector

Roll out to resources by Cloud Resource Manager resource hierarchy nodes such as projects, folders, orgs. Corresponds to the JSON property resourceHierarchySelector



50344
50345
50346
# File 'lib/google/apis/compute_v1/classes.rb', line 50344

def resource_hierarchy_selector
  @resource_hierarchy_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



50351
50352
50353
50354
# File 'lib/google/apis/compute_v1/classes.rb', line 50351

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