UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

80 lines 3.95 kB
"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.SandboxFileSubmission = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ### Submit Raw Or Archive Files * * ### Submits Raw Or Archive For Out-Of-Band File Inspection */ class SandboxFileSubmission extends pulumi.CustomResource { /** * Get an existing SandboxFileSubmission 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 SandboxFileSubmission(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SandboxFileSubmission. 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'] === SandboxFileSubmission.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["code"] = state ? state.code : undefined; resourceInputs["filePath"] = state ? state.filePath : undefined; resourceInputs["fileType"] = state ? state.fileType : undefined; resourceInputs["force"] = state ? state.force : undefined; resourceInputs["md5"] = state ? state.md5 : undefined; resourceInputs["message"] = state ? state.message : undefined; resourceInputs["sandboxSubmission"] = state ? state.sandboxSubmission : undefined; resourceInputs["submissionMethod"] = state ? state.submissionMethod : undefined; resourceInputs["virusName"] = state ? state.virusName : undefined; resourceInputs["virusType"] = state ? state.virusType : undefined; } else { const args = argsOrState; if ((!args || args.filePath === undefined) && !opts.urn) { throw new Error("Missing required property 'filePath'"); } if ((!args || args.submissionMethod === undefined) && !opts.urn) { throw new Error("Missing required property 'submissionMethod'"); } resourceInputs["filePath"] = args ? args.filePath : undefined; resourceInputs["force"] = args ? args.force : undefined; resourceInputs["submissionMethod"] = args ? args.submissionMethod : undefined; resourceInputs["code"] = undefined /*out*/; resourceInputs["fileType"] = undefined /*out*/; resourceInputs["md5"] = undefined /*out*/; resourceInputs["message"] = undefined /*out*/; resourceInputs["sandboxSubmission"] = undefined /*out*/; resourceInputs["virusName"] = undefined /*out*/; resourceInputs["virusType"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SandboxFileSubmission.__pulumiType, name, resourceInputs, opts); } } exports.SandboxFileSubmission = SandboxFileSubmission; /** @internal */ SandboxFileSubmission.__pulumiType = 'zia:index/sandboxFileSubmission:SandboxFileSubmission'; //# sourceMappingURL=sandboxFileSubmission.js.map