Class: OCI::Devops::Models::OkeHelmChartDeployStageSummary

Inherits:
DeployStageSummary show all
Defined in:
lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb

Overview

Specifies the OKE cluster deployment stage using Helm charts.

Instance Attribute Summary collapse

Attributes inherited from DeployStageSummary

#compartment_id, #defined_tags, #deploy_pipeline_id, #deploy_stage_predecessor_collection, #deploy_stage_type, #description, #display_name, #freeform_tags, #id, #lifecycle_details, #lifecycle_state, #project_id, #system_tags, #time_created, #time_updated

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DeployStageSummary

get_subtype

Constructor Details

#initialize(attributes = {}) ⇒ OkeHelmChartDeployStageSummary

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 208

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']

  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.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.

Returns:

  • (BOOLEAN)


47
48
49
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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. Set to false by default.

Returns:

  • (BOOLEAN)


83
84
85
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.rb', line 14

def oke_cluster_deploy_environment_id
  @oke_cluster_deploy_environment_id
end

#release_nameString

[Required] Release name of the Helm chart.

Returns:

  • (String)


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

def release_name
  @release_name
end

#rollback_policyOCI::Devops::Models::DeployStageRollbackPolicy



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

def rollback_policy
  @rollback_policy
end

#set_stringOCI::Devops::Models::HelmSetValueCollection



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

def set_string
  @set_string
end

#set_valuesOCI::Devops::Models::HelmSetValueCollection



40
41
42
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.rb', line 63

def should_cleanup_on_fail
  @should_cleanup_on_fail
end

#should_not_waitBOOLEAN

Waits until all the resources are in a ready state to mark the release as successful. Set to false by default.

Returns:

  • (BOOLEAN)


79
80
81
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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/oke_helm_chart_deploy_stage_summary.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
118
119
120
121
122
123
124
125
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 86

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'description': :'description',
    'display_name': :'displayName',
    'project_id': :'projectId',
    'deploy_pipeline_id': :'deployPipelineId',
    'compartment_id': :'compartmentId',
    'deploy_stage_type': :'deployStageType',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'lifecycle_state': :'lifecycleState',
    'lifecycle_details': :'lifecycleDetails',
    'deploy_stage_predecessor_collection': :'deployStagePredecessorCollection',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags',
    '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.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 128

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'description': :'String',
    'display_name': :'String',
    'project_id': :'String',
    'deploy_pipeline_id': :'String',
    'compartment_id': :'String',
    'deploy_stage_type': :'String',
    'time_created': :'DateTime',
    'time_updated': :'DateTime',
    'lifecycle_state': :'String',
    'lifecycle_details': :'String',
    'deploy_stage_predecessor_collection': :'OCI::Devops::Models::DeployStagePredecessorCollection',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'system_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



355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 355

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

  self.class == other.class &&
    id == other.id &&
    description == other.description &&
    display_name == other.display_name &&
    project_id == other.project_id &&
    deploy_pipeline_id == other.deploy_pipeline_id &&
    compartment_id == other.compartment_id &&
    deploy_stage_type == other.deploy_stage_type &&
    time_created == other.time_created &&
    time_updated == other.time_updated &&
    lifecycle_state == other.lifecycle_state &&
    lifecycle_details == other.lifecycle_details &&
    deploy_stage_predecessor_collection == other.deploy_stage_predecessor_collection &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    system_tags == other.system_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



418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 418

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


398
399
400
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 398

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



407
408
409
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 407

def hash
  [id, description, display_name, project_id, deploy_pipeline_id, compartment_id, deploy_stage_type, time_created, time_updated, lifecycle_state, lifecycle_details, deploy_stage_predecessor_collection, freeform_tags, defined_tags, system_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



451
452
453
454
455
456
457
458
459
460
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 451

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



445
446
447
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 445

def to_s
  to_hash.to_s
end