<commit_before>package com.sequenceiq.sdx.api.model;

import java.util.Objects;

import com.sequenceiq.sdx.validation.ValidUpgradeRequest;

import io.swagger.annotations.ApiModelProperty;

@ValidUpgradeRequest
public class SdxUpgradeRequest {

    private String imageId;

    private String runtime;

    private Boolean lockComponents;

    private Boolean dryRun;

    private SdxUpgradeReplaceVms replaceVms = SdxUpgradeReplaceVms.DISABLED;

    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    public String getRuntime() {
        return runtime;
    }

    public void setRuntime(String runtime) {
        this.runtime = runtime;
    }<commit_msg>CB-8215 OS upgrade should automatically replace the VM on Cloud Provider The default value of replaceVms was set to DISABLED. This means whenever an upgrade request is sent without specifying this parameter we didn't actually replace the VM on the Cloud Provider. This must have been introduced as VM replacement doesn't work with Runtime upgrade yet. However, OS upgrade doesn't do anything without VM replacement, hence removing the default value of this parameter. The SdxRuntimeUpgradeService has a condition to properly set this value based on the type of the upgrade. As of now the logic says: isOsUpgrade(request) ? SdxUpgradeReplaceVms.ENABLED : SdxUpgradeReplaceVms.DISABLED.<commit_after>package com.sequenceiq.sdx.api.model;

import java.util.Objects;

import com.sequenceiq.sdx.validation.ValidUpgradeRequest;

import io.swagger.annotations.ApiModelProperty;

@ValidUpgradeRequest
public class SdxUpgradeRequest {

    private String imageId;

    private String runtime;

    private Boolean lockComponents;

    private Boolean dryRun;

    private SdxUpgradeReplaceVms replaceVms;

    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    public String getRuntime() {
        return runtime;
    }

    public void setRuntime(String runtime) {
        this.runtime = runtime;
    }
{'fraction_non_alphanumeric': 0.05739617358842744, 'fraction_numerical': 0.0018665422305179655, 'mean_word_length': 3.7120879120879122, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4047684', 'n_tokens_mistral': 586, 'n_tokens_neox': 562, 'n_words': 197}