Class: OCI::Devops::Models::HelmDiffArgument
- Inherits:
-
Object
- Object
- OCI::Devops::Models::HelmDiffArgument
- Defined in:
- lib/oci/devops/models/helm_diff_argument.rb
Overview
Parameters for all the helm stages passed for retrieving Helm Diff
Instance Attribute Summary collapse
- #helm_arg_set_values ⇒ OCI::Devops::Models::HelmSetValueCollection
- #helm_arg_string_values ⇒ OCI::Devops::Models::HelmSetValueCollection
-
#helm_stage_contents ⇒ Array<OCI::Devops::Models::HelmStageContent>
Stage specific values along with the helm chart injected by Shepherd.
-
#stage_id ⇒ String
Deploy Stage OCID.
- #value_artifact_contents ⇒ OCI::Devops::Models::ValueArtifactContentCollection
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ HelmDiffArgument
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ HelmDiffArgument
Initializes the object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 65 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.stage_id = attributes[:'stageId'] if attributes[:'stageId'] raise 'You cannot provide both :stageId and :stage_id' if attributes.key?(:'stageId') && attributes.key?(:'stage_id') self.stage_id = attributes[:'stage_id'] if attributes[:'stage_id'] self.helm_arg_set_values = attributes[:'helmArgSetValues'] if attributes[:'helmArgSetValues'] raise 'You cannot provide both :helmArgSetValues and :helm_arg_set_values' if attributes.key?(:'helmArgSetValues') && attributes.key?(:'helm_arg_set_values') self.helm_arg_set_values = attributes[:'helm_arg_set_values'] if attributes[:'helm_arg_set_values'] self.helm_arg_string_values = attributes[:'helmArgStringValues'] if attributes[:'helmArgStringValues'] raise 'You cannot provide both :helmArgStringValues and :helm_arg_string_values' if attributes.key?(:'helmArgStringValues') && attributes.key?(:'helm_arg_string_values') self.helm_arg_string_values = attributes[:'helm_arg_string_values'] if attributes[:'helm_arg_string_values'] self.value_artifact_contents = attributes[:'valueArtifactContents'] if attributes[:'valueArtifactContents'] raise 'You cannot provide both :valueArtifactContents and :value_artifact_contents' if attributes.key?(:'valueArtifactContents') && attributes.key?(:'value_artifact_contents') self.value_artifact_contents = attributes[:'value_artifact_contents'] if attributes[:'value_artifact_contents'] self.helm_stage_contents = attributes[:'helmStageContents'] if attributes[:'helmStageContents'] raise 'You cannot provide both :helmStageContents and :helm_stage_contents' if attributes.key?(:'helmStageContents') && attributes.key?(:'helm_stage_contents') self.helm_stage_contents = attributes[:'helm_stage_contents'] if attributes[:'helm_stage_contents'] end |
Instance Attribute Details
#helm_arg_set_values ⇒ OCI::Devops::Models::HelmSetValueCollection
16 17 18 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 16 def helm_arg_set_values @helm_arg_set_values end |
#helm_arg_string_values ⇒ OCI::Devops::Models::HelmSetValueCollection
19 20 21 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 19 def helm_arg_string_values @helm_arg_string_values end |
#helm_stage_contents ⇒ Array<OCI::Devops::Models::HelmStageContent>
Stage specific values along with the helm chart injected by Shepherd
26 27 28 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 26 def helm_stage_contents @helm_stage_contents end |
#stage_id ⇒ String
Deploy Stage OCID.
13 14 15 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 13 def stage_id @stage_id end |
#value_artifact_contents ⇒ OCI::Devops::Models::ValueArtifactContentCollection
22 23 24 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 22 def value_artifact_contents @value_artifact_contents end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 29 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'stage_id': :'stageId', 'helm_arg_set_values': :'helmArgSetValues', 'helm_arg_string_values': :'helmArgStringValues', 'value_artifact_contents': :'valueArtifactContents', 'helm_stage_contents': :'helmStageContents' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 42 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'stage_id': :'String', 'helm_arg_set_values': :'OCI::Devops::Models::HelmSetValueCollection', 'helm_arg_string_values': :'OCI::Devops::Models::HelmSetValueCollection', 'value_artifact_contents': :'OCI::Devops::Models::ValueArtifactContentCollection', 'helm_stage_contents': :'Array<OCI::Devops::Models::HelmStageContent>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
109 110 111 112 113 114 115 116 117 118 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 109 def ==(other) return true if equal?(other) self.class == other.class && stage_id == other.stage_id && helm_arg_set_values == other.helm_arg_set_values && helm_arg_string_values == other.helm_arg_string_values && value_artifact_contents == other.value_artifact_contents && helm_stage_contents == other.helm_stage_contents end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 143 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
123 124 125 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 123 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
132 133 134 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 132 def hash [stage_id, helm_arg_set_values, helm_arg_string_values, value_artifact_contents, helm_stage_contents].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
176 177 178 179 180 181 182 183 184 185 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 176 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
170 171 172 |
# File 'lib/oci/devops/models/helm_diff_argument.rb', line 170 def to_s to_hash.to_s end |