"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileServiceProperties = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The properties of File services in storage account.
 *
 * Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01.
 *
 * Other available API versions: 2022-09-01, 2023-01-01, 2023-04-01, 2023-05-01, 2025-01-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native storage [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class FileServiceProperties extends pulumi.CustomResource {
    /**
     * Get an existing FileServiceProperties resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new FileServiceProperties(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of FileServiceProperties.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === FileServiceProperties.__pulumiType;
    }
    /**
     * Create a FileServiceProperties resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.accountName === undefined && !opts.urn) {
                throw new Error("Missing required property 'accountName'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["accountName"] = args?.accountName;
            resourceInputs["cors"] = args?.cors;
            resourceInputs["fileServicesName"] = args?.fileServicesName;
            resourceInputs["protocolSettings"] = args?.protocolSettings;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["shareDeleteRetentionPolicy"] = args?.shareDeleteRetentionPolicy;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["sku"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["cors"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["protocolSettings"] = undefined /*out*/;
            resourceInputs["shareDeleteRetentionPolicy"] = undefined /*out*/;
            resourceInputs["sku"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:storage/v20190401:FileServiceProperties" }, { type: "azure-native:storage/v20190601:FileServiceProperties" }, { type: "azure-native:storage/v20200801preview:FileServiceProperties" }, { type: "azure-native:storage/v20210101:FileServiceProperties" }, { type: "azure-native:storage/v20210201:FileServiceProperties" }, { type: "azure-native:storage/v20210401:FileServiceProperties" }, { type: "azure-native:storage/v20210601:FileServiceProperties" }, { type: "azure-native:storage/v20210801:FileServiceProperties" }, { type: "azure-native:storage/v20210901:FileServiceProperties" }, { type: "azure-native:storage/v20220501:FileServiceProperties" }, { type: "azure-native:storage/v20220901:FileServiceProperties" }, { type: "azure-native:storage/v20230101:FileServiceProperties" }, { type: "azure-native:storage/v20230401:FileServiceProperties" }, { type: "azure-native:storage/v20230501:FileServiceProperties" }, { type: "azure-native:storage/v20240101:FileServiceProperties" }, { type: "azure-native:storage/v20250101:FileServiceProperties" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(FileServiceProperties.__pulumiType, name, resourceInputs, opts);
    }
}
exports.FileServiceProperties = FileServiceProperties;
/** @internal */
FileServiceProperties.__pulumiType = 'azure-native:storage:FileServiceProperties';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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