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.



531
532
533
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 531

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



529
530
531
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 529

def targets
  @targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



536
537
538
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 536

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