"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Fileset = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Provides a resource to manage vepfs fileset
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: "cn-beijing-a",
 *     vpcId: fooVpc.id,
 * });
 * const fooFileSystem = new volcengine.vepfs.FileSystem("fooFileSystem", {
 *     fileSystemName: "acc-test-file-system",
 *     subnetId: fooSubnet.id,
 *     storeType: "Advance_100",
 *     description: "tf-test",
 *     capacity: 12,
 *     project: "default",
 *     enableRestripe: false,
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 * });
 * const fooFileset = new volcengine.vepfs.Fileset("fooFileset", {
 *     fileSystemId: fooFileSystem.id,
 *     filesetName: "acc-test-fileset",
 *     filesetPath: "/tf-test/",
 *     maxIops: 100,
 *     maxBandwidth: 10,
 *     fileLimit: 20,
 *     capacityLimit: 30,
 * });
 * ```
 *
 * ## Import
 *
 * VepfsFileset can be imported using the file_system_id:fileset_id, e.g.
 *
 * ```sh
 * $ pulumi import volcengine:vepfs/fileset:Fileset default file_system_id:fileset_id
 * ```
 */
class Fileset extends pulumi.CustomResource {
    /**
     * Get an existing Fileset 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 state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new Fileset(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of Fileset.  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'] === Fileset.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["capacityLimit"] = state ? state.capacityLimit : undefined;
            resourceInputs["capacityUsed"] = state ? state.capacityUsed : undefined;
            resourceInputs["createTime"] = state ? state.createTime : undefined;
            resourceInputs["fileLimit"] = state ? state.fileLimit : undefined;
            resourceInputs["fileSystemId"] = state ? state.fileSystemId : undefined;
            resourceInputs["fileUsed"] = state ? state.fileUsed : undefined;
            resourceInputs["filesetName"] = state ? state.filesetName : undefined;
            resourceInputs["filesetPath"] = state ? state.filesetPath : undefined;
            resourceInputs["maxBandwidth"] = state ? state.maxBandwidth : undefined;
            resourceInputs["maxInodeNum"] = state ? state.maxInodeNum : undefined;
            resourceInputs["maxIops"] = state ? state.maxIops : undefined;
            resourceInputs["status"] = state ? state.status : undefined;
        }
        else {
            const args = argsOrState;
            if ((!args || args.fileSystemId === undefined) && !opts.urn) {
                throw new Error("Missing required property 'fileSystemId'");
            }
            if ((!args || args.filesetName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'filesetName'");
            }
            if ((!args || args.filesetPath === undefined) && !opts.urn) {
                throw new Error("Missing required property 'filesetPath'");
            }
            resourceInputs["capacityLimit"] = args ? args.capacityLimit : undefined;
            resourceInputs["fileLimit"] = args ? args.fileLimit : undefined;
            resourceInputs["fileSystemId"] = args ? args.fileSystemId : undefined;
            resourceInputs["filesetName"] = args ? args.filesetName : undefined;
            resourceInputs["filesetPath"] = args ? args.filesetPath : undefined;
            resourceInputs["maxBandwidth"] = args ? args.maxBandwidth : undefined;
            resourceInputs["maxIops"] = args ? args.maxIops : undefined;
            resourceInputs["capacityUsed"] = undefined /*out*/;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["fileUsed"] = undefined /*out*/;
            resourceInputs["maxInodeNum"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Fileset.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Fileset = Fileset;
/** @internal */
Fileset.__pulumiType = 'volcengine:vepfs/fileset:Fileset';
//# sourceMappingURL=fileset.js.map