Class: OCI::Devops::Models::CreateOkeHelmChartDeployStageDetails

Inherits:
CreateDeployStageDetails show all
Defined in:
lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb

Overview

Specifies the Helm chart deployment to a Kubernetes cluster stage.

Instance Attribute Summary collapse

Attributes inherited from CreateDeployStageDetails

#defined_tags, #deploy_pipeline_id, #deploy_stage_predecessor_collection, #deploy_stage_type, #description, #display_name, #freeform_tags

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CreateDeployStageDetails

get_subtype

Constructor Details

#initialize(attributes = {}) ⇒ CreateOkeHelmChartDeployStageDetails

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 184

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  attributes['deployStageType'] = 'OKE_HELM_CHART_DEPLOYMENT'

  super(attributes)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.oke_cluster_deploy_environment_id = attributes[:'okeClusterDeployEnvironmentId'] if attributes[:'okeClusterDeployEnvironmentId']

  raise 'You cannot provide both :okeClusterDeployEnvironmentId and :oke_cluster_deploy_environment_id' if attributes.key?(:'okeClusterDeployEnvironmentId') && attributes.key?(:'oke_cluster_deploy_environment_id')

  self.oke_cluster_deploy_environment_id = attributes[:'oke_cluster_deploy_environment_id'] if attributes[:'oke_cluster_deploy_environment_id']

  self.helm_chart_deploy_artifact_id = attributes[:'helmChartDeployArtifactId'] if attributes[:'helmChartDeployArtifactId']

  raise 'You cannot provide both :helmChartDeployArtifactId and :helm_chart_deploy_artifact_id' if attributes.key?(:'helmChartDeployArtifactId') && attributes.key?(:'helm_chart_deploy_artifact_id')

  self.helm_chart_deploy_artifact_id = attributes[:'helm_chart_deploy_artifact_id'] if attributes[:'helm_chart_deploy_artifact_id']

  self.values_artifact_ids = attributes[:'valuesArtifactIds'] if attributes[:'valuesArtifactIds']

  raise 'You cannot provide both :valuesArtifactIds and :values_artifact_ids' if attributes.key?(:'valuesArtifactIds') && attributes.key?(:'values_artifact_ids')

  self.values_artifact_ids = attributes[:'values_artifact_ids'] if attributes[:'values_artifact_ids']

  self.release_name = attributes[:'releaseName'] if attributes[:'releaseName']

  raise 'You cannot provide both :releaseName and :release_name' if attributes.key?(:'releaseName') && attributes.key?(:'release_name')

  self.release_name = attributes[:'release_name'] if attributes[:'release_name']

  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
  self.namespace = "default" if namespace.nil? && !attributes.key?(:'namespace') # rubocop:disable Style/StringLiterals

  self.timeout_in_seconds = attributes[:'timeoutInSeconds'] if attributes[:'timeoutInSeconds']
  self.timeout_in_seconds = 300 if timeout_in_seconds.nil? && !attributes.key?(:'timeoutInSeconds') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :timeoutInSeconds and :timeout_in_seconds' if attributes.key?(:'timeoutInSeconds') && attributes.key?(:'timeout_in_seconds')

  self.timeout_in_seconds = attributes[:'timeout_in_seconds'] if attributes[:'timeout_in_seconds']
  self.timeout_in_seconds = 300 if timeout_in_seconds.nil? && !attributes.key?(:'timeoutInSeconds') && !attributes.key?(:'timeout_in_seconds') # rubocop:disable Style/StringLiterals

  self.rollback_policy = attributes[:'rollbackPolicy'] if attributes[:'rollbackPolicy']

  raise 'You cannot provide both :rollbackPolicy and :rollback_policy' if attributes.key?(:'rollbackPolicy') && attributes.key?(:'rollback_policy')

  self.rollback_policy = attributes[:'rollback_policy'] if attributes[:'rollback_policy']

  self.set_values = attributes[:'setValues'] if attributes[:'setValues']

  raise 'You cannot provide both :setValues and :set_values' if attributes.key?(:'setValues') && attributes.key?(:'set_values')

  self.set_values = attributes[:'set_values'] if attributes[:'set_values']

  self.set_string = attributes[:'setString'] if attributes[:'setString']

  raise 'You cannot provide both :setString and :set_string' if attributes.key?(:'setString') && attributes.key?(:'set_string')

  self.set_string = attributes[:'set_string'] if attributes[:'set_string']

  self.are_hooks_enabled = attributes[:'areHooksEnabled'] unless attributes[:'areHooksEnabled'].nil?
  self.are_hooks_enabled = false if are_hooks_enabled.nil? && !attributes.key?(:'areHooksEnabled') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :areHooksEnabled and :are_hooks_enabled' if attributes.key?(:'areHooksEnabled') && attributes.key?(:'are_hooks_enabled')

  self.are_hooks_enabled = attributes[:'are_hooks_enabled'] unless attributes[:'are_hooks_enabled'].nil?
  self.are_hooks_enabled = false if are_hooks_enabled.nil? && !attributes.key?(:'areHooksEnabled') && !attributes.key?(:'are_hooks_enabled') # rubocop:disable Style/StringLiterals

  self.should_reuse_values = attributes[:'shouldReuseValues'] unless attributes[:'shouldReuseValues'].nil?
  self.should_reuse_values = false if should_reuse_values.nil? && !attributes.key?(:'shouldReuseValues') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :shouldReuseValues and :should_reuse_values' if attributes.key?(:'shouldReuseValues') && attributes.key?(:'should_reuse_values')

  self.should_reuse_values = attributes[:'should_reuse_values'] unless attributes[:'should_reuse_values'].nil?
  self.should_reuse_values = false if should_reuse_values.nil? && !attributes.key?(:'shouldReuseValues') && !attributes.key?(:'should_reuse_values') # rubocop:disable Style/StringLiterals

  self.should_reset_values = attributes[:'shouldResetValues'] unless attributes[:'shouldResetValues'].nil?
  self.should_reset_values = false if should_reset_values.nil? && !attributes.key?(:'shouldResetValues') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :shouldResetValues and :should_reset_values' if attributes.key?(:'shouldResetValues') && attributes.key?(:'should_reset_values')

  self.should_reset_values = attributes[:'should_reset_values'] unless attributes[:'should_reset_values'].nil?
  self.should_reset_values = false if should_reset_values.nil? && !attributes.key?(:'shouldResetValues') && !attributes.key?(:'should_reset_values') # rubocop:disable Style/StringLiterals

  self.is_force_enabled = attributes[:'isForceEnabled'] unless attributes[:'isForceEnabled'].nil?
  self.is_force_enabled = false if is_force_enabled.nil? && !attributes.key?(:'isForceEnabled') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :isForceEnabled and :is_force_enabled' if attributes.key?(:'isForceEnabled') && attributes.key?(:'is_force_enabled')

  self.is_force_enabled = attributes[:'is_force_enabled'] unless attributes[:'is_force_enabled'].nil?
  self.is_force_enabled = false if is_force_enabled.nil? && !attributes.key?(:'isForceEnabled') && !attributes.key?(:'is_force_enabled') # rubocop:disable Style/StringLiterals

  self.should_cleanup_on_fail = attributes[:'shouldCleanupOnFail'] unless attributes[:'shouldCleanupOnFail'].nil?
  self.should_cleanup_on_fail = false if should_cleanup_on_fail.nil? && !attributes.key?(:'shouldCleanupOnFail') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :shouldCleanupOnFail and :should_cleanup_on_fail' if attributes.key?(:'shouldCleanupOnFail') && attributes.key?(:'should_cleanup_on_fail')

  self.should_cleanup_on_fail = attributes[:'should_cleanup_on_fail'] unless attributes[:'should_cleanup_on_fail'].nil?
  self.should_cleanup_on_fail = false if should_cleanup_on_fail.nil? && !attributes.key?(:'shouldCleanupOnFail') && !attributes.key?(:'should_cleanup_on_fail') # rubocop:disable Style/StringLiterals

  self.max_history = attributes[:'maxHistory'] if attributes[:'maxHistory']

  raise 'You cannot provide both :maxHistory and :max_history' if attributes.key?(:'maxHistory') && attributes.key?(:'max_history')

  self.max_history = attributes[:'max_history'] if attributes[:'max_history']

  self.should_skip_crds = attributes[:'shouldSkipCrds'] unless attributes[:'shouldSkipCrds'].nil?
  self.should_skip_crds = false if should_skip_crds.nil? && !attributes.key?(:'shouldSkipCrds') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :shouldSkipCrds and :should_skip_crds' if attributes.key?(:'shouldSkipCrds') && attributes.key?(:'should_skip_crds')

  self.should_skip_crds = attributes[:'should_skip_crds'] unless attributes[:'should_skip_crds'].nil?
  self.should_skip_crds = false if should_skip_crds.nil? && !attributes.key?(:'shouldSkipCrds') && !attributes.key?(:'should_skip_crds') # rubocop:disable Style/StringLiterals

  self.should_skip_render_subchart_notes = attributes[:'shouldSkipRenderSubchartNotes'] unless attributes[:'shouldSkipRenderSubchartNotes'].nil?
  self.should_skip_render_subchart_notes = false if should_skip_render_subchart_notes.nil? && !attributes.key?(:'shouldSkipRenderSubchartNotes') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :shouldSkipRenderSubchartNotes and :should_skip_render_subchart_notes' if attributes.key?(:'shouldSkipRenderSubchartNotes') && attributes.key?(:'should_skip_render_subchart_notes')

  self.should_skip_render_subchart_notes = attributes[:'should_skip_render_subchart_notes'] unless attributes[:'should_skip_render_subchart_notes'].nil?
  self.should_skip_render_subchart_notes = false if should_skip_render_subchart_notes.nil? && !attributes.key?(:'shouldSkipRenderSubchartNotes') && !attributes.key?(:'should_skip_render_subchart_notes') # rubocop:disable Style/StringLiterals

  self.should_not_wait = attributes[:'shouldNotWait'] unless attributes[:'shouldNotWait'].nil?
  self.should_not_wait = false if should_not_wait.nil? && !attributes.key?(:'shouldNotWait') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :shouldNotWait and :should_not_wait' if attributes.key?(:'shouldNotWait') && attributes.key?(:'should_not_wait')

  self.should_not_wait = attributes[:'should_not_wait'] unless attributes[:'should_not_wait'].nil?
  self.should_not_wait = false if should_not_wait.nil? && !attributes.key?(:'shouldNotWait') && !attributes.key?(:'should_not_wait') # rubocop:disable Style/StringLiterals

  self.is_debug_enabled = attributes[:'isDebugEnabled'] unless attributes[:'isDebugEnabled'].nil?
  self.is_debug_enabled = false if is_debug_enabled.nil? && !attributes.key?(:'isDebugEnabled') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :isDebugEnabled and :is_debug_enabled' if attributes.key?(:'isDebugEnabled') && attributes.key?(:'is_debug_enabled')

  self.is_debug_enabled = attributes[:'is_debug_enabled'] unless attributes[:'is_debug_enabled'].nil?
  self.is_debug_enabled = false if is_debug_enabled.nil? && !attributes.key?(:'isDebugEnabled') && !attributes.key?(:'is_debug_enabled') # rubocop:disable Style/StringLiterals
end

Instance Attribute Details

#are_hooks_enabledBOOLEAN

Disable pre/post upgrade hooks. Set to false by default.

Returns:

  • (BOOLEAN)


47
48
49
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 47

def are_hooks_enabled
  @are_hooks_enabled
end

#helm_chart_deploy_artifact_idString

[Required] Helm chart artifact OCID.

Returns:

  • (String)


18
19
20
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 18

def helm_chart_deploy_artifact_id
  @helm_chart_deploy_artifact_id
end

#is_debug_enabledBOOLEAN

Enables helm –debug option to stream output to tf stdout. Set to false by default.

Returns:

  • (BOOLEAN)


83
84
85
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 83

def is_debug_enabled
  @is_debug_enabled
end

#is_force_enabledBOOLEAN

Force resource update through delete; or if required, recreate. Set to false by default.

Returns:

  • (BOOLEAN)


59
60
61
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 59

def is_force_enabled
  @is_force_enabled
end

#max_historyInteger

Limit the maximum number of revisions saved per release. Use 0 for no limit. Set to 10 by default

Returns:

  • (Integer)


67
68
69
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 67

def max_history
  @max_history
end

#namespaceString

Default namespace to be used for Kubernetes deployment when not specified in the manifest.

Returns:

  • (String)


30
31
32
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 30

def namespace
  @namespace
end

#oke_cluster_deploy_environment_idString

[Required] Kubernetes cluster environment OCID for deployment.

Returns:

  • (String)


14
15
16
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 14

def oke_cluster_deploy_environment_id
  @oke_cluster_deploy_environment_id
end

#release_nameString

[Required] Default name of the chart instance. Must be unique within a Kubernetes namespace.

Returns:

  • (String)


26
27
28
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 26

def release_name
  @release_name
end

#rollback_policyOCI::Devops::Models::DeployStageRollbackPolicy



37
38
39
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 37

def rollback_policy
  @rollback_policy
end

#set_stringOCI::Devops::Models::HelmSetValueCollection



43
44
45
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 43

def set_string
  @set_string
end

#set_valuesOCI::Devops::Models::HelmSetValueCollection



40
41
42
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 40

def set_values
  @set_values
end

#should_cleanup_on_failBOOLEAN

Allow deletion of new resources created during when an upgrade fails. Set to false by default.

Returns:

  • (BOOLEAN)


63
64
65
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 63

def should_cleanup_on_fail
  @should_cleanup_on_fail
end

#should_not_waitBOOLEAN

Does not wait until all the resources are in a ready state to mark the release as successful if set to true. Set to false by default.

Returns:

  • (BOOLEAN)


79
80
81
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 79

def should_not_wait
  @should_not_wait
end

#should_reset_valuesBOOLEAN

During upgrade, reset the values to the ones built into the chart. It overrides shouldReuseValues. Set to false by default.

Returns:

  • (BOOLEAN)


55
56
57
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 55

def should_reset_values
  @should_reset_values
end

#should_reuse_valuesBOOLEAN

During upgrade, reuse the values of the last release and merge overrides from the command line. Set to false by default.

Returns:

  • (BOOLEAN)


51
52
53
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 51

def should_reuse_values
  @should_reuse_values
end

#should_skip_crdsBOOLEAN

If set, no CRDs are installed. By default, CRDs are installed only if they are not present already. Set to false by default.

Returns:

  • (BOOLEAN)


71
72
73
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 71

def should_skip_crds
  @should_skip_crds
end

#should_skip_render_subchart_notesBOOLEAN

If set, renders subchart notes along with the parent. Set to false by default.

Returns:

  • (BOOLEAN)


75
76
77
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 75

def should_skip_render_subchart_notes
  @should_skip_render_subchart_notes
end

#timeout_in_secondsInteger

Time to wait for execution of a helm stage. Defaults to 300 seconds.

Returns:

  • (Integer)


34
35
36
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 34

def timeout_in_seconds
  @timeout_in_seconds
end

#values_artifact_idsArray<String>

List of values.yaml file artifact OCIDs.

Returns:

  • (Array<String>)


22
23
24
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 22

def values_artifact_ids
  @values_artifact_ids
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 86

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'description': :'description',
    'display_name': :'displayName',
    'deploy_stage_type': :'deployStageType',
    'deploy_pipeline_id': :'deployPipelineId',
    'deploy_stage_predecessor_collection': :'deployStagePredecessorCollection',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'oke_cluster_deploy_environment_id': :'okeClusterDeployEnvironmentId',
    'helm_chart_deploy_artifact_id': :'helmChartDeployArtifactId',
    'values_artifact_ids': :'valuesArtifactIds',
    'release_name': :'releaseName',
    'namespace': :'namespace',
    'timeout_in_seconds': :'timeoutInSeconds',
    'rollback_policy': :'rollbackPolicy',
    'set_values': :'setValues',
    'set_string': :'setString',
    'are_hooks_enabled': :'areHooksEnabled',
    'should_reuse_values': :'shouldReuseValues',
    'should_reset_values': :'shouldResetValues',
    'is_force_enabled': :'isForceEnabled',
    'should_cleanup_on_fail': :'shouldCleanupOnFail',
    'max_history': :'maxHistory',
    'should_skip_crds': :'shouldSkipCrds',
    'should_skip_render_subchart_notes': :'shouldSkipRenderSubchartNotes',
    'should_not_wait': :'shouldNotWait',
    'is_debug_enabled': :'isDebugEnabled'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 120

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'description': :'String',
    'display_name': :'String',
    'deploy_stage_type': :'String',
    'deploy_pipeline_id': :'String',
    'deploy_stage_predecessor_collection': :'OCI::Devops::Models::DeployStagePredecessorCollection',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'oke_cluster_deploy_environment_id': :'String',
    'helm_chart_deploy_artifact_id': :'String',
    'values_artifact_ids': :'Array<String>',
    'release_name': :'String',
    'namespace': :'String',
    'timeout_in_seconds': :'Integer',
    'rollback_policy': :'OCI::Devops::Models::DeployStageRollbackPolicy',
    'set_values': :'OCI::Devops::Models::HelmSetValueCollection',
    'set_string': :'OCI::Devops::Models::HelmSetValueCollection',
    'are_hooks_enabled': :'BOOLEAN',
    'should_reuse_values': :'BOOLEAN',
    'should_reset_values': :'BOOLEAN',
    'is_force_enabled': :'BOOLEAN',
    'should_cleanup_on_fail': :'BOOLEAN',
    'max_history': :'Integer',
    'should_skip_crds': :'BOOLEAN',
    'should_skip_render_subchart_notes': :'BOOLEAN',
    'should_not_wait': :'BOOLEAN',
    'is_debug_enabled': :'BOOLEAN'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 333

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    description == other.description &&
    display_name == other.display_name &&
    deploy_stage_type == other.deploy_stage_type &&
    deploy_pipeline_id == other.deploy_pipeline_id &&
    deploy_stage_predecessor_collection == other.deploy_stage_predecessor_collection &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    oke_cluster_deploy_environment_id == other.oke_cluster_deploy_environment_id &&
    helm_chart_deploy_artifact_id == other.helm_chart_deploy_artifact_id &&
    values_artifact_ids == other.values_artifact_ids &&
    release_name == other.release_name &&
    namespace == other.namespace &&
    timeout_in_seconds == other.timeout_in_seconds &&
    rollback_policy == other.rollback_policy &&
    set_values == other.set_values &&
    set_string == other.set_string &&
    are_hooks_enabled == other.are_hooks_enabled &&
    should_reuse_values == other.should_reuse_values &&
    should_reset_values == other.should_reset_values &&
    is_force_enabled == other.is_force_enabled &&
    should_cleanup_on_fail == other.should_cleanup_on_fail &&
    max_history == other.max_history &&
    should_skip_crds == other.should_skip_crds &&
    should_skip_render_subchart_notes == other.should_skip_render_subchart_notes &&
    should_not_wait == other.should_not_wait &&
    is_debug_enabled == other.is_debug_enabled
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 388

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


368
369
370
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 368

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



377
378
379
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 377

def hash
  [description, display_name, deploy_stage_type, deploy_pipeline_id, deploy_stage_predecessor_collection, freeform_tags, defined_tags, oke_cluster_deploy_environment_id, helm_chart_deploy_artifact_id, values_artifact_ids, release_name, namespace, timeout_in_seconds, rollback_policy, set_values, set_string, are_hooks_enabled, should_reuse_values, should_reset_values, is_force_enabled, should_cleanup_on_fail, max_history, should_skip_crds, should_skip_render_subchart_notes, should_not_wait, is_debug_enabled].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



421
422
423
424
425
426
427
428
429
430
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 421

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



415
416
417
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 415

def to_s
  to_hash.to_s
end