@staticmethod
def _set(rest, disable_http_ui, encryption_level, tls_min_version, honor_order, cipher_suites, disable_www_authenticate):
    if (not any([(True if (x is not None) else False) for x in [disable_http_ui, encryption_level, tls_min_version, honor_order, cipher_suites, disable_www_authenticate]])):
        _exit_if_errors(['please provide at least one of --cluster-encryption-level, --disable-http-ui, --tls-min-version, --tls-honor-cipher-order or --cipher-suites together with --set'])
    if (disable_http_ui == '1'):
        disable_http_ui = 'true'
    elif (disable_http_ui == '0'):
        disable_http_ui = 'false'
    if (disable_www_authenticate == '1'):
        disable_www_authenticate = 'true'
    elif (disable_www_authenticate == '0'):
        disable_www_authenticate = 'false'
    if (honor_order == '1'):
        honor_order = 'true'
    elif (honor_order == '0'):
        honor_order = 'false'
    if (cipher_suites == ''):
        cipher_suites = json.dumps([])
    elif (cipher_suites is not None):
        cipher_suites = json.dumps(cipher_suites.split(','))
    (_, errors) = rest.set_security_settings(disable_http_ui, encryption_level, tls_min_version, honor_order, cipher_suites, disable_www_authenticate)
    _exit_if_errors(errors)
    _success('Security settings updated')
@staticmethod
def _set(rest, disable_http_ui, encryption_level, tls_min_version, honor_order, cipher_suites, disable_www_authenticate):
    if (not any([(True if (x is not None) else False) for x in [disable_http_ui, encryption_level, tls_min_version, honor_order, cipher_suites, disable_www_authenticate]])):
        _exit_if_errors(['please provide at least one of --cluster-encryption-level, --disable-http-ui, --tls-min-version, --tls-honor-cipher-order or --cipher-suites together with --set'])
    if (disable_http_ui == '1'):
        disable_http_ui = 'true'
    elif (disable_http_ui == '0'):
        disable_http_ui = 'false'
    if (disable_www_authenticate == '1'):
        disable_www_authenticate = 'true'
    elif (disable_www_authenticate == '0'):
        disable_www_authenticate = 'false'
    if (honor_order == '1'):
        honor_order = 'true'
    elif (honor_order == '0'):
        honor_order = 'false'
    if (cipher_suites == ):
        cipher_suites = json.dumps([])
    elif (cipher_suites is not None):
        cipher_suites = json.dumps(cipher_suites.split(','))
    (_, errors) = rest.set_security_settings(disable_http_ui, encryption_level, tls_min_version, honor_order, cipher_suites, disable_www_authenticate)
    _exit_if_errors(errors)
    _success('Security settings updated')