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.

Constant Summary collapse

PURPOSE_ENUM =
[
  PURPOSE_EXECUTE_HELM_UPGRADE = 'EXECUTE_HELM_UPGRADE'.freeze,
  PURPOSE_EXECUTE_HELM_COMMAND = 'EXECUTE_HELM_COMMAND'.freeze,
  PURPOSE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

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):



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
347
348
349
350
351
352
353
354
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
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 236

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.is_uninstall_on_stage_delete = attributes[:'isUninstallOnStageDelete'] unless attributes[:'isUninstallOnStageDelete'].nil?
  self.is_uninstall_on_stage_delete = false if is_uninstall_on_stage_delete.nil? && !attributes.key?(:'isUninstallOnStageDelete') # rubocop:disable Style/StringLiterals

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

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

  self.helm_command_artifact_ids = attributes[:'helmCommandArtifactIds'] if attributes[:'helmCommandArtifactIds']

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

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

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

  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)


66
67
68
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 66

def are_hooks_enabled
  @are_hooks_enabled
end

#helm_chart_deploy_artifact_idString

[Required] Helm chart artifact OCID.

Returns:

  • (String)


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

def helm_chart_deploy_artifact_id
  @helm_chart_deploy_artifact_id
end

#helm_command_artifact_idsArray<String>

List of Helm command artifact OCIDs.

Returns:

  • (Array<String>)


41
42
43
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 41

def helm_command_artifact_ids
  @helm_command_artifact_ids
end

#is_debug_enabledBOOLEAN

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

Returns:

  • (BOOLEAN)


102
103
104
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 102

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)


78
79
80
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 78

def is_force_enabled
  @is_force_enabled
end

#is_uninstall_on_stage_deleteBOOLEAN

Uninstall the Helm chart release on deleting the stage.

Returns:

  • (BOOLEAN)


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

def is_uninstall_on_stage_delete
  @is_uninstall_on_stage_delete
end

#max_historyInteger

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

Returns:

  • (Integer)


86
87
88
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 86

def max_history
  @max_history
end

#namespaceString

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

Returns:

  • (String)


49
50
51
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 49

def namespace
  @namespace
end

#oke_cluster_deploy_environment_idString

[Required] Kubernetes cluster environment OCID for deployment.

Returns:

  • (String)


21
22
23
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 21

def oke_cluster_deploy_environment_id
  @oke_cluster_deploy_environment_id
end

#purposeString

The purpose of running this Helm stage

Returns:

  • (String)


45
46
47
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 45

def purpose
  @purpose
end

#release_nameString

[Required] Release name of the Helm chart.

Returns:

  • (String)


33
34
35
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 33

def release_name
  @release_name
end

#rollback_policyOCI::Devops::Models::DeployStageRollbackPolicy



56
57
58
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 56

def rollback_policy
  @rollback_policy
end

#set_stringOCI::Devops::Models::HelmSetValueCollection



62
63
64
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 62

def set_string
  @set_string
end

#set_valuesOCI::Devops::Models::HelmSetValueCollection



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

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)


82
83
84
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 82

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)


98
99
100
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 98

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)


74
75
76
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 74

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)


70
71
72
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 70

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)


90
91
92
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 90

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)


94
95
96
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 94

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)


53
54
55
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 53

def timeout_in_seconds
  @timeout_in_seconds
end

#values_artifact_idsArray<String>

List of values.yaml file artifact OCIDs.

Returns:

  • (Array<String>)


29
30
31
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 29

def values_artifact_ids
  @values_artifact_ids
end

Class Method Details

.attribute_mapObject

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



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 105

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',
    'is_uninstall_on_stage_delete': :'isUninstallOnStageDelete',
    'helm_command_artifact_ids': :'helmCommandArtifactIds',
    'purpose': :'purpose',
    '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.



150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 150

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',
    'is_uninstall_on_stage_delete': :'BOOLEAN',
    'helm_command_artifact_ids': :'Array<String>',
    'purpose': :'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



413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 413

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 &&
    is_uninstall_on_stage_delete == other.is_uninstall_on_stage_delete &&
    helm_command_artifact_ids == other.helm_command_artifact_ids &&
    purpose == other.purpose &&
    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



479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 479

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


459
460
461
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 459

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



468
469
470
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 468

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, is_uninstall_on_stage_delete, helm_command_artifact_ids, purpose, 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



512
513
514
515
516
517
518
519
520
521
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 512

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



506
507
508
# File 'lib/oci/devops/models/oke_helm_chart_deploy_stage_summary.rb', line 506

def to_s
  to_hash.to_s
end