"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.Job = void 0;
const pulumi = require("@pulumi/pulumi");
const inputs = require("../types/input");
const utilities = require("../utilities");
/**
 * Job Resource.
 *
 * Uses Azure REST API version 2024-03-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-12-01.
 *
 * Other available API versions: 2022-12-01, 2023-03-01, 2023-12-01, 2024-02-01-preview, 2025-02-01, 2025-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native databox [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class Job extends pulumi.CustomResource {
    /**
     * Get an existing Job 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 Job(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Job.  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'] === Job.__pulumiType;
    }
    /**
     * Create a Job 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?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.sku === undefined && !opts.urn) {
                throw new Error("Missing required property 'sku'");
            }
            if (args?.transferType === undefined && !opts.urn) {
                throw new Error("Missing required property 'transferType'");
            }
            resourceInputs["deliveryInfo"] = args?.deliveryInfo;
            resourceInputs["deliveryType"] = (args?.deliveryType) ?? "NonScheduled";
            resourceInputs["details"] = args?.details;
            resourceInputs["identity"] = args ? (args.identity ? pulumi.output(args.identity).apply(inputs.databox.resourceIdentityArgsProvideDefaults) : undefined) : undefined;
            resourceInputs["jobName"] = args?.jobName;
            resourceInputs["location"] = args?.location;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["sku"] = args?.sku;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["transferType"] = args?.transferType;
            resourceInputs["allDevicesLost"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["cancellationReason"] = undefined /*out*/;
            resourceInputs["delayedStage"] = undefined /*out*/;
            resourceInputs["error"] = undefined /*out*/;
            resourceInputs["isCancellable"] = undefined /*out*/;
            resourceInputs["isCancellableWithoutFee"] = undefined /*out*/;
            resourceInputs["isDeletable"] = undefined /*out*/;
            resourceInputs["isPrepareToShipEnabled"] = undefined /*out*/;
            resourceInputs["isShippingAddressEditable"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["reverseShippingDetailsUpdate"] = undefined /*out*/;
            resourceInputs["reverseTransportPreferenceUpdate"] = undefined /*out*/;
            resourceInputs["startTime"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["allDevicesLost"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["cancellationReason"] = undefined /*out*/;
            resourceInputs["delayedStage"] = undefined /*out*/;
            resourceInputs["deliveryInfo"] = undefined /*out*/;
            resourceInputs["deliveryType"] = undefined /*out*/;
            resourceInputs["details"] = undefined /*out*/;
            resourceInputs["error"] = undefined /*out*/;
            resourceInputs["identity"] = undefined /*out*/;
            resourceInputs["isCancellable"] = undefined /*out*/;
            resourceInputs["isCancellableWithoutFee"] = undefined /*out*/;
            resourceInputs["isDeletable"] = undefined /*out*/;
            resourceInputs["isPrepareToShipEnabled"] = undefined /*out*/;
            resourceInputs["isShippingAddressEditable"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["reverseShippingDetailsUpdate"] = undefined /*out*/;
            resourceInputs["reverseTransportPreferenceUpdate"] = undefined /*out*/;
            resourceInputs["sku"] = undefined /*out*/;
            resourceInputs["startTime"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["transferType"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:databox/v20180101:Job" }, { type: "azure-native:databox/v20190901:Job" }, { type: "azure-native:databox/v20200401:Job" }, { type: "azure-native:databox/v20201101:Job" }, { type: "azure-native:databox/v20210301:Job" }, { type: "azure-native:databox/v20210501:Job" }, { type: "azure-native:databox/v20210801preview:Job" }, { type: "azure-native:databox/v20211201:Job" }, { type: "azure-native:databox/v20220201:Job" }, { type: "azure-native:databox/v20220901:Job" }, { type: "azure-native:databox/v20221001:Job" }, { type: "azure-native:databox/v20221201:Job" }, { type: "azure-native:databox/v20230301:Job" }, { type: "azure-native:databox/v20231201:Job" }, { type: "azure-native:databox/v20240201preview:Job" }, { type: "azure-native:databox/v20240301preview:Job" }, { type: "azure-native:databox/v20250201:Job" }, { type: "azure-native:databox/v20250701:Job" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(Job.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Job = Job;
/** @internal */
Job.__pulumiType = 'azure-native:databox:Job';
//# sourceMappingURL=data:application/json;base64, 