/* tslint:disable */
/* eslint-disable */
/**
 * Hexiosec Transfer API
 * API description for Hexiosec Transfer  ## Testing Requests  Endpoints that require authentication will use your session cookie from the main application if an API key is not provided. This is fine for testing GET requests, however POST/DELETE requests will require a CSRF token when using a session cookie. It is not possible to provide a CSRF token from this page, and so an API key must be used.
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: support@hexiosec.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { TenantThemeConfigFromJSON, TenantThemeConfigToJSON, } from './TenantThemeConfig.js';
import { TenantOneDriveConfigFromJSON, TenantOneDriveConfigToJSON, } from './TenantOneDriveConfig.js';
import { TenantEmailConfigFromJSON, TenantEmailConfigToJSON, } from './TenantEmailConfig.js';
import { TenantStorageConfigFromJSON, TenantStorageConfigToJSON, } from './TenantStorageConfig.js';
import { TenantOIDCConfigFromJSON, TenantOIDCConfigToJSON, } from './TenantOIDCConfig.js';
import { TenantSettingsFromJSON, TenantSettingsToJSON, } from './TenantSettings.js';
/**
 * Check if a given object implements the AdminTenantsUpdateRequest interface.
 */
export function instanceOfAdminTenantsUpdateRequest(value) {
    return true;
}
export function AdminTenantsUpdateRequestFromJSON(json) {
    return AdminTenantsUpdateRequestFromJSONTyped(json, false);
}
export function AdminTenantsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        name: json['name'] == null ? undefined : json['name'],
        displayName: json['display_name'] == null ? undefined : json['display_name'],
        hostname: json['hostname'] == null ? undefined : json['hostname'],
        enabled: json['enabled'] == null ? undefined : json['enabled'],
        defaultGroupId: json['default_group_id'] == null ? undefined : json['default_group_id'],
        clearDefaultGroupId: json['clear_default_group_id'] == null ? undefined : json['clear_default_group_id'],
        tcRequired: json['tc_required'] == null ? undefined : json['tc_required'],
        notes: json['notes'] == null ? undefined : json['notes'],
        attributes: json['attributes'] == null ? undefined : json['attributes'],
        settings: json['settings'] == null ? undefined : TenantSettingsFromJSON(json['settings']),
        clearSettings: json['clear_settings'] == null ? undefined : json['clear_settings'],
        email: json['email'] == null ? undefined : TenantEmailConfigFromJSON(json['email']),
        clearEmail: json['clear_email'] == null ? undefined : json['clear_email'],
        theme: json['theme'] == null ? undefined : TenantThemeConfigFromJSON(json['theme']),
        clearTheme: json['clear_theme'] == null ? undefined : json['clear_theme'],
        oidc: json['oidc'] == null ? undefined : TenantOIDCConfigFromJSON(json['oidc']),
        clearOidc: json['clear_oidc'] == null ? undefined : json['clear_oidc'],
        storage: json['storage'] == null ? undefined : TenantStorageConfigFromJSON(json['storage']),
        clearStorage: json['clear_storage'] == null ? undefined : json['clear_storage'],
        onedrive: json['onedrive'] == null ? undefined : TenantOneDriveConfigFromJSON(json['onedrive']),
        clearOnedrive: json['clear_onedrive'] == null ? undefined : json['clear_onedrive'],
    };
}
export function AdminTenantsUpdateRequestToJSON(json) {
    return AdminTenantsUpdateRequestToJSONTyped(json, false);
}
export function AdminTenantsUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        name: value['name'],
        display_name: value['displayName'],
        hostname: value['hostname'],
        enabled: value['enabled'],
        default_group_id: value['defaultGroupId'],
        clear_default_group_id: value['clearDefaultGroupId'],
        tc_required: value['tcRequired'],
        notes: value['notes'],
        attributes: value['attributes'],
        settings: TenantSettingsToJSON(value['settings']),
        clear_settings: value['clearSettings'],
        email: TenantEmailConfigToJSON(value['email']),
        clear_email: value['clearEmail'],
        theme: TenantThemeConfigToJSON(value['theme']),
        clear_theme: value['clearTheme'],
        oidc: TenantOIDCConfigToJSON(value['oidc']),
        clear_oidc: value['clearOidc'],
        storage: TenantStorageConfigToJSON(value['storage']),
        clear_storage: value['clearStorage'],
        onedrive: TenantOneDriveConfigToJSON(value['onedrive']),
        clear_onedrive: value['clearOnedrive'],
    };
}
