"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPatchedGoogleWorkspaceProviderRequest = instanceOfPatchedGoogleWorkspaceProviderRequest;
exports.PatchedGoogleWorkspaceProviderRequestFromJSON = PatchedGoogleWorkspaceProviderRequestFromJSON;
exports.PatchedGoogleWorkspaceProviderRequestFromJSONTyped = PatchedGoogleWorkspaceProviderRequestFromJSONTyped;
exports.PatchedGoogleWorkspaceProviderRequestToJSON = PatchedGoogleWorkspaceProviderRequestToJSON;
exports.PatchedGoogleWorkspaceProviderRequestToJSONTyped = PatchedGoogleWorkspaceProviderRequestToJSONTyped;
const OutgoingSyncDeleteAction_1 = require("./OutgoingSyncDeleteAction");
/**
 * Check if a given object implements the PatchedGoogleWorkspaceProviderRequest interface.
 */
function instanceOfPatchedGoogleWorkspaceProviderRequest(value) {
    return true;
}
function PatchedGoogleWorkspaceProviderRequestFromJSON(json) {
    return PatchedGoogleWorkspaceProviderRequestFromJSONTyped(json, false);
}
function PatchedGoogleWorkspaceProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'propertyMappings': json['property_mappings'] == null ? undefined : json['property_mappings'],
        'propertyMappingsGroup': json['property_mappings_group'] == null ? undefined : json['property_mappings_group'],
        'delegatedSubject': json['delegated_subject'] == null ? undefined : json['delegated_subject'],
        'credentials': json['credentials'] == null ? undefined : json['credentials'],
        'scopes': json['scopes'] == null ? undefined : json['scopes'],
        'excludeUsersServiceAccount': json['exclude_users_service_account'] == null ? undefined : json['exclude_users_service_account'],
        'filterGroup': json['filter_group'] == null ? undefined : json['filter_group'],
        'userDeleteAction': json['user_delete_action'] == null ? undefined : (0, OutgoingSyncDeleteAction_1.OutgoingSyncDeleteActionFromJSON)(json['user_delete_action']),
        'groupDeleteAction': json['group_delete_action'] == null ? undefined : (0, OutgoingSyncDeleteAction_1.OutgoingSyncDeleteActionFromJSON)(json['group_delete_action']),
        'defaultGroupEmailDomain': json['default_group_email_domain'] == null ? undefined : json['default_group_email_domain'],
        'syncPageSize': json['sync_page_size'] == null ? undefined : json['sync_page_size'],
        'syncPageTimeout': json['sync_page_timeout'] == null ? undefined : json['sync_page_timeout'],
        'dryRun': json['dry_run'] == null ? undefined : json['dry_run'],
    };
}
function PatchedGoogleWorkspaceProviderRequestToJSON(json) {
    return PatchedGoogleWorkspaceProviderRequestToJSONTyped(json, false);
}
function PatchedGoogleWorkspaceProviderRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'property_mappings': value['propertyMappings'],
        'property_mappings_group': value['propertyMappingsGroup'],
        'delegated_subject': value['delegatedSubject'],
        'credentials': value['credentials'],
        'scopes': value['scopes'],
        'exclude_users_service_account': value['excludeUsersServiceAccount'],
        'filter_group': value['filterGroup'],
        'user_delete_action': (0, OutgoingSyncDeleteAction_1.OutgoingSyncDeleteActionToJSON)(value['userDeleteAction']),
        'group_delete_action': (0, OutgoingSyncDeleteAction_1.OutgoingSyncDeleteActionToJSON)(value['groupDeleteAction']),
        'default_group_email_domain': value['defaultGroupEmailDomain'],
        'sync_page_size': value['syncPageSize'],
        'sync_page_timeout': value['syncPageTimeout'],
        'dry_run': value['dryRun'],
    };
}
//# sourceMappingURL=PatchedGoogleWorkspaceProviderRequest.js.map