github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/dash-named-schema/nodejs/submodule1/fooencryptedBarClass.ts (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 import * as pulumi from "@pulumi/pulumi"; 5 import * as utilities from "../utilities"; 6 7 export class FOOEncryptedBarClass extends pulumi.CustomResource { 8 /** 9 * Get an existing FOOEncryptedBarClass resource's state with the given name, ID, and optional extra 10 * properties used to qualify the lookup. 11 * 12 * @param name The _unique_ name of the resulting resource. 13 * @param id The _unique_ provider ID of the resource to lookup. 14 * @param opts Optional settings to control the behavior of the CustomResource. 15 */ 16 public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): FOOEncryptedBarClass { 17 return new FOOEncryptedBarClass(name, undefined as any, { ...opts, id: id }); 18 } 19 20 /** @internal */ 21 public static readonly __pulumiType = 'foo-bar:submodule1:FOOEncryptedBarClass'; 22 23 /** 24 * Returns true if the given object is an instance of FOOEncryptedBarClass. This is designed to work even 25 * when multiple copies of the Pulumi SDK have been loaded into the same process. 26 */ 27 public static isInstance(obj: any): obj is FOOEncryptedBarClass { 28 if (obj === undefined || obj === null) { 29 return false; 30 } 31 return obj['__pulumiType'] === FOOEncryptedBarClass.__pulumiType; 32 } 33 34 35 /** 36 * Create a FOOEncryptedBarClass resource with the given unique name, arguments, and options. 37 * 38 * @param name The _unique_ name of the resource. 39 * @param args The arguments to use to populate this resource's properties. 40 * @param opts A bag of options that control this resource's behavior. 41 */ 42 constructor(name: string, args?: FOOEncryptedBarClassArgs, opts?: pulumi.CustomResourceOptions) { 43 let resourceInputs: pulumi.Inputs = {}; 44 opts = opts || {}; 45 if (!opts.id) { 46 } else { 47 } 48 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); 49 super(FOOEncryptedBarClass.__pulumiType, name, resourceInputs, opts); 50 } 51 } 52 53 /** 54 * The set of arguments for constructing a FOOEncryptedBarClass resource. 55 */ 56 export interface FOOEncryptedBarClassArgs { 57 }