Class: Google::Apis::ClouddeployV1::DeployParameters
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::DeployParameters
- 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
DeployParameters contains deploy parameters information.
Instance Attribute Summary collapse
-
#match_target_labels ⇒ Hash<String,String>
Optional.
-
#values ⇒ Hash<String,String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeployParameters
constructor
A new instance of DeployParameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeployParameters
Returns a new instance of DeployParameters.
1938 1939 1940 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#match_target_labels ⇒ Hash<String,String>
Optional. Deploy parameters are applied to targets with match labels. If
unspecified, deploy parameters are applied to all targets (including child
targets of a multi-target).
Corresponds to the JSON property matchTargetLabels
1931 1932 1933 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1931 def match_target_labels @match_target_labels end |
#values ⇒ Hash<String,String>
Required. Values are deploy parameters in key-value pairs.
Corresponds to the JSON property values
1936 1937 1938 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1936 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1943 1944 1945 1946 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1943 def update!(**args) @match_target_labels = args[:match_target_labels] if args.key?(:match_target_labels) @values = args[:values] if args.key?(:values) end |