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.

Constant Summary collapse

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

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



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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 210

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


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

def are_hooks_enabled
  @are_hooks_enabled
end

#helm_chart_deploy_artifact_idString

[Required] Helm chart artifact OCID.

Returns:

  • (String)


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

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


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

def helm_command_artifact_ids
  @helm_command_artifact_ids
end

#is_debug_enabledBOOLEAN

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

Returns:

  • (BOOLEAN)


100
101
102
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 100

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)


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

def is_force_enabled
  @is_force_enabled
end

#is_uninstall_on_stage_deleteBOOLEAN

Uninstall the Helm chart release on deleting the stage.

Returns:

  • (BOOLEAN)


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

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)


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

def max_history
  @max_history
end

#namespaceString

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

Returns:

  • (String)


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

def namespace
  @namespace
end

#oke_cluster_deploy_environment_idString

[Required] Kubernetes cluster environment OCID for deployment.

Returns:

  • (String)


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

def oke_cluster_deploy_environment_id
  @oke_cluster_deploy_environment_id
end

#purposeString

The purpose of running this Helm stage

Returns:

  • (String)


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

def purpose
  @purpose
end

#release_nameString

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

Returns:

  • (String)


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

def release_name
  @release_name
end

#rollback_policyOCI::Devops::Models::DeployStageRollbackPolicy



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

def rollback_policy
  @rollback_policy
end

#set_stringOCI::Devops::Models::HelmSetValueCollection



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

def set_string
  @set_string
end

#set_valuesOCI::Devops::Models::HelmSetValueCollection



57
58
59
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 57

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)


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

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)


96
97
98
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 96

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)


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

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)


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

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)


88
89
90
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 88

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)


92
93
94
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 92

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)


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

def timeout_in_seconds
  @timeout_in_seconds
end

#values_artifact_idsArray<String>

List of values.yaml file artifact OCIDs.

Returns:

  • (Array<String>)


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

def values_artifact_ids
  @values_artifact_ids
end

Class Method Details

.attribute_mapObject

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



103
104
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
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 103

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



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
168
169
170
171
172
173
174
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 140

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



384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 384

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



442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 442

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


422
423
424
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 422

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



431
432
433
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 431

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



475
476
477
478
479
480
481
482
483
484
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 475

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



469
470
471
# File 'lib/oci/devops/models/create_oke_helm_chart_deploy_stage_details.rb', line 469

def to_s
  to_hash.to_s
end