"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.ManagedNetworkSettingsRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Outbound Rule Basic Resource for the managed network of a machine learning workspace.
 *
 * Uses Azure REST API version 2025-09-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01-preview.
 *
 * Other available API versions: 2023-04-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-10-01, 2024-01-01-preview, 2024-04-01, 2024-07-01-preview, 2024-10-01, 2024-10-01-preview, 2025-01-01-preview, 2025-04-01, 2025-04-01-preview, 2025-06-01, 2025-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native machinelearningservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class ManagedNetworkSettingsRule extends pulumi.CustomResource {
    /**
     * Get an existing ManagedNetworkSettingsRule 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 ManagedNetworkSettingsRule(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ManagedNetworkSettingsRule.  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'] === ManagedNetworkSettingsRule.__pulumiType;
    }
    /**
     * Create a ManagedNetworkSettingsRule 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?.properties === undefined && !opts.urn) {
                throw new Error("Missing required property 'properties'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.workspaceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'workspaceName'");
            }
            resourceInputs["properties"] = args?.properties;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["ruleName"] = args?.ruleName;
            resourceInputs["workspaceName"] = args?.workspaceName;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["properties"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:machinelearningservices/v20230401preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20230601preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20230801preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20231001:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20240101preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20240401:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20240401preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20240701preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20241001:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20241001preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20250101preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20250401:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20250401preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20250601:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20250701preview:ManagedNetworkSettingsRule" }, { type: "azure-native:machinelearningservices/v20250901:ManagedNetworkSettingsRule" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ManagedNetworkSettingsRule.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ManagedNetworkSettingsRule = ManagedNetworkSettingsRule;
/** @internal */
ManagedNetworkSettingsRule.__pulumiType = 'azure-native:machinelearningservices:ManagedNetworkSettingsRule';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFuYWdlZE5ldHdvcmtTZXR0aW5nc1J1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9tYWNoaW5lbGVhcm5pbmdzZXJ2aWNlcy9tYW5hZ2VkTmV0d29ya1NldHRpbmdzUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0VBQXNFO0FBQ3RFLGlGQUFpRjs7O0FBRWpGLHlDQUF5QztBQUl6QywwQ0FBMEM7QUFFMUM7Ozs7OztHQU1HO0FBQ0gsTUFBYSwwQkFBMkIsU0FBUSxNQUFNLENBQUMsY0FBYztJQUNqRTs7Ozs7OztPQU9HO0lBQ0ksTUFBTSxDQUFDLEdBQUcsQ0FBQyxJQUFZLEVBQUUsRUFBMkIsRUFBRSxJQUFtQztRQUM1RixPQUFPLElBQUksMEJBQTBCLENBQUMsSUFBSSxFQUFFLFNBQWdCLEVBQUUsRUFBRSxHQUFHLElBQUksRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUN2RixDQUFDO0lBS0Q7OztPQUdHO0lBQ0ksTUFBTSxDQUFDLFVBQVUsQ0FBQyxHQUFRO1FBQzdCLElBQUksR0FBRyxLQUFLLFNBQVMsSUFBSSxHQUFHLEtBQUssSUFBSSxFQUFFO1lBQ25DLE9BQU8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