Class: Google::Apis::ClouddeployV1::AutomationResourceSelector

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

Overview

AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutomationResourceSelector

Returns a new instance of AutomationResourceSelector.



492
493
494
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 492

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

Instance Attribute Details

#targetsArray<Google::Apis::ClouddeployV1::TargetAttribute>

Contains attributes about a target. Corresponds to the JSON property targets



490
491
492
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 490

def targets
  @targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



497
498
499
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 497

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