Class: Google::Apis::ClouddeployV1::TargetAttribute
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::TargetAttribute
- 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
-
#id ⇒ String
ID of the
Target. -
#labels ⇒ Hash<String,String>
Target labels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetAttribute
constructor
A new instance of TargetAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TargetAttribute
Returns a new instance of TargetAttribute.
5854 5855 5856 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5854 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
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
5847 5848 5849 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5847 def id @id end |
#labels ⇒ Hash<String,String>
Target labels.
Corresponds to the JSON property labels
5852 5853 5854 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5852 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5859 5860 5861 5862 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5859 def update!(**args) @id = args[:id] if args.key?(:id) @labels = args[:labels] if args.key?(:labels) end |