Class: Google::Apis::ClouddeployV1::TargetAttribute

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

Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetAttribute

Returns a new instance of TargetAttribute.



5930
5931
5932
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5930

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

Instance Attribute Details

#idString

ID of the Target. The value of this field could be one of the following: * The last segment of a target name * "*", all targets in a location Corresponds to the JSON property id

Returns:

  • (String)


5923
5924
5925
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5923

def id
  @id
end

#labelsHash<String,String>

Target labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


5928
5929
5930
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5928

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5935
5936
5937
5938
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5935

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