Class: Google::Apis::ClouddeployV1::DeployParameters

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

DeployParameters contains deploy parameters information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeployParameters

Returns a new instance of DeployParameters.



1919
1920
1921
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1919

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

Instance Attribute Details

#match_target_labelsHash<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

Returns:

  • (Hash<String,String>)


1912
1913
1914
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1912

def match_target_labels
  @match_target_labels
end

#valuesHash<String,String>

Required. Values are deploy parameters in key-value pairs. Corresponds to the JSON property values

Returns:

  • (Hash<String,String>)


1917
1918
1919
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1917

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1924
1925
1926
1927
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1924

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