Class: OCI::Devops::Models::UpdateOkeHelmChartDeployStageDetails
- Inherits:
-
UpdateDeployStageDetails
- Object
- UpdateDeployStageDetails
- OCI::Devops::Models::UpdateOkeHelmChartDeployStageDetails
- Defined in:
- lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb
Overview
Specifies the Kubernetes cluster deployment 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
-
#are_hooks_enabled ⇒ BOOLEAN
Disable pre/post upgrade hooks.
-
#helm_chart_deploy_artifact_id ⇒ String
Helm chart artifact OCID.
-
#helm_command_artifact_ids ⇒ Array<String>
List of Helm command artifact OCIDs.
-
#is_debug_enabled ⇒ BOOLEAN
Enables helm –debug option to stream output to tf stdout.
-
#is_force_enabled ⇒ BOOLEAN
Force resource update through delete; or if required, recreate.
-
#is_uninstall_on_stage_delete ⇒ BOOLEAN
Uninstall the Helm chart release on deleting the stage.
-
#max_history ⇒ Integer
Limit the maximum number of revisions saved per release.
-
#namespace ⇒ String
Default namespace to be used for Kubernetes deployment when not specified in the manifest.
-
#oke_cluster_deploy_environment_id ⇒ String
Kubernetes cluster environment OCID for deployment.
-
#purpose ⇒ String
The purpose of running this Helm stage.
-
#release_name ⇒ String
Name of the Helm chart release.
- #rollback_policy ⇒ OCI::Devops::Models::DeployStageRollbackPolicy
- #set_string ⇒ OCI::Devops::Models::HelmSetValueCollection
- #set_values ⇒ OCI::Devops::Models::HelmSetValueCollection
-
#should_cleanup_on_fail ⇒ BOOLEAN
Allow deletion of new resources created during when an upgrade fails.
-
#should_not_wait ⇒ BOOLEAN
Waits until all the resources are in a ready state to mark the release as successful.
-
#should_reset_values ⇒ BOOLEAN
During upgrade, reset the values to the ones built into the chart.
-
#should_reuse_values ⇒ BOOLEAN
During upgrade, reuse the values of the last release and merge overrides from the command line.
-
#should_skip_crds ⇒ BOOLEAN
If set, no CRDs are installed.
-
#should_skip_render_subchart_notes ⇒ BOOLEAN
If set, renders subchart notes along with the parent.
-
#timeout_in_seconds ⇒ Integer
Time to wait for execution of a helm stage.
-
#values_artifact_ids ⇒ Array<String>
List of values.yaml file artifact OCIDs.
Attributes inherited from UpdateDeployStageDetails
#defined_tags, #deploy_stage_predecessor_collection, #deploy_stage_type, #description, #display_name, #freeform_tags
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ UpdateOkeHelmChartDeployStageDetails
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Methods inherited from UpdateDeployStageDetails
Constructor Details
#initialize(attributes = {}) ⇒ UpdateOkeHelmChartDeployStageDetails
Initializes the object
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 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 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 207 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_enabled ⇒ BOOLEAN
Disable pre/post upgrade hooks.
64 65 66 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 64 def are_hooks_enabled @are_hooks_enabled end |
#helm_chart_deploy_artifact_id ⇒ String
Helm chart artifact OCID.
23 24 25 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 23 def helm_chart_deploy_artifact_id @helm_chart_deploy_artifact_id end |
#helm_command_artifact_ids ⇒ Array<String>
List of Helm command artifact OCIDs.
39 40 41 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 39 def helm_command_artifact_ids @helm_command_artifact_ids end |
#is_debug_enabled ⇒ BOOLEAN
Enables helm –debug option to stream output to tf stdout. Set to false by default.
100 101 102 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 100 def is_debug_enabled @is_debug_enabled end |
#is_force_enabled ⇒ BOOLEAN
Force resource update through delete; or if required, recreate. Set to false by default.
76 77 78 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 76 def is_force_enabled @is_force_enabled end |
#is_uninstall_on_stage_delete ⇒ BOOLEAN
Uninstall the Helm chart release on deleting the stage.
35 36 37 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 35 def is_uninstall_on_stage_delete @is_uninstall_on_stage_delete end |
#max_history ⇒ Integer
Limit the maximum number of revisions saved per release. Use 0 for no limit. Set to 10 by default
84 85 86 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 84 def max_history @max_history end |
#namespace ⇒ String
Default namespace to be used for Kubernetes deployment when not specified in the manifest.
47 48 49 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 47 def namespace @namespace end |
#oke_cluster_deploy_environment_id ⇒ String
Kubernetes cluster environment OCID for deployment.
19 20 21 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 19 def oke_cluster_deploy_environment_id @oke_cluster_deploy_environment_id end |
#purpose ⇒ String
The purpose of running this Helm stage
43 44 45 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 43 def purpose @purpose end |
#release_name ⇒ String
Name of the Helm chart release.
31 32 33 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 31 def release_name @release_name end |
#rollback_policy ⇒ OCI::Devops::Models::DeployStageRollbackPolicy
54 55 56 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 54 def rollback_policy @rollback_policy end |
#set_string ⇒ OCI::Devops::Models::HelmSetValueCollection
60 61 62 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 60 def set_string @set_string end |
#set_values ⇒ OCI::Devops::Models::HelmSetValueCollection
57 58 59 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 57 def set_values @set_values end |
#should_cleanup_on_fail ⇒ BOOLEAN
Allow deletion of new resources created during when an upgrade fails. Set to false by default.
80 81 82 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 80 def should_cleanup_on_fail @should_cleanup_on_fail end |
#should_not_wait ⇒ BOOLEAN
Waits until all the resources are in a ready state to mark the release as successful. Set to false by default.
96 97 98 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 96 def should_not_wait @should_not_wait end |
#should_reset_values ⇒ BOOLEAN
During upgrade, reset the values to the ones built into the chart. It overrides shouldReuseValues. Set to false by default.
72 73 74 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 72 def should_reset_values @should_reset_values end |
#should_reuse_values ⇒ BOOLEAN
During upgrade, reuse the values of the last release and merge overrides from the command line. Set to false by default.
68 69 70 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 68 def should_reuse_values @should_reuse_values end |
#should_skip_crds ⇒ BOOLEAN
If set, no CRDs are installed. By default, CRDs are installed only if they are not present already. Set to false by default.
88 89 90 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 88 def should_skip_crds @should_skip_crds end |
#should_skip_render_subchart_notes ⇒ BOOLEAN
If set, renders subchart notes along with the parent. Set to false by default.
92 93 94 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 92 def should_skip_render_subchart_notes @should_skip_render_subchart_notes end |
#timeout_in_seconds ⇒ Integer
Time to wait for execution of a helm stage. Defaults to 300 seconds.
51 52 53 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 51 def timeout_in_seconds @timeout_in_seconds end |
#values_artifact_ids ⇒ Array<String>
List of values.yaml file artifact OCIDs.
27 28 29 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 27 def values_artifact_ids @values_artifact_ids end |
Class Method Details
.attribute_map ⇒ Object
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 |
# File 'lib/oci/devops/models/update_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_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_types ⇒ Object
Attribute type mapping.
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 168 169 170 171 172 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 139 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'description': :'String', 'display_name': :'String', 'deploy_stage_type': :'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.
381 382 383 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 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 381 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_stage_predecessor_collection == other.deploy_stage_predecessor_collection && == other. && == other. && 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
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 438 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
418 419 420 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 418 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
427 428 429 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 427 def hash [description, display_name, deploy_stage_type, deploy_stage_predecessor_collection, , , 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_hash ⇒ Hash
Returns the object in the form of hash
471 472 473 474 475 476 477 478 479 480 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 471 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
465 466 467 |
# File 'lib/oci/devops/models/update_oke_helm_chart_deploy_stage_details.rb', line 465 def to_s to_hash.to_s end |