@pulumi/vsphere 4.16.0 → 4.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/computeCluster.d.ts +87 -195
- package/computeCluster.js +141 -141
- package/computeCluster.js.map +1 -1
- package/computeClusterHostGroup.js +8 -8
- package/computeClusterHostGroup.js.map +1 -1
- package/computeClusterVmAffinityRule.js +13 -13
- package/computeClusterVmAffinityRule.js.map +1 -1
- package/computeClusterVmAntiAffinityRule.js +13 -13
- package/computeClusterVmAntiAffinityRule.js.map +1 -1
- package/computeClusterVmDependencyRule.js +16 -16
- package/computeClusterVmDependencyRule.js.map +1 -1
- package/computeClusterVmGroup.js +8 -8
- package/computeClusterVmGroup.js.map +1 -1
- package/computeClusterVmHostRule.js +17 -17
- package/computeClusterVmHostRule.js.map +1 -1
- package/config/vars.js +8 -16
- package/config/vars.js.map +1 -1
- package/configurationProfile.js +9 -9
- package/configurationProfile.js.map +1 -1
- package/contentLibrary.js +12 -12
- package/contentLibrary.js.map +1 -1
- package/contentLibraryItem.js +14 -14
- package/contentLibraryItem.js.map +1 -1
- package/customAttribute.js +5 -5
- package/customAttribute.js.map +1 -1
- package/datacenter.js +10 -10
- package/datacenter.js.map +1 -1
- package/datastoreCluster.d.ts +15 -30
- package/datastoreCluster.js +52 -52
- package/datastoreCluster.js.map +1 -1
- package/datastoreClusterVmAntiAffinityRule.js +13 -13
- package/datastoreClusterVmAntiAffinityRule.js.map +1 -1
- package/distributedPortGroup.d.ts +9 -18
- package/distributedPortGroup.js +96 -96
- package/distributedPortGroup.js.map +1 -1
- package/distributedVirtualSwitch.d.ts +15 -30
- package/distributedVirtualSwitch.js +191 -191
- package/distributedVirtualSwitch.js.map +1 -1
- package/distributedVirtualSwitchPvlanMapping.js +13 -13
- package/distributedVirtualSwitchPvlanMapping.js.map +1 -1
- package/dpmHostOverride.js +11 -11
- package/dpmHostOverride.js.map +1 -1
- package/drsVmOverride.js +11 -11
- package/drsVmOverride.js.map +1 -1
- package/entityPermissions.js +10 -10
- package/entityPermissions.js.map +1 -1
- package/file.js +18 -18
- package/file.js.map +1 -1
- package/folder.js +13 -13
- package/folder.js.map +1 -1
- package/getGuestOsCustomization.d.ts +4 -0
- package/getGuestOsCustomization.js +4 -0
- package/getGuestOsCustomization.js.map +1 -1
- package/guestOsCustomization.js +13 -13
- package/guestOsCustomization.js.map +1 -1
- package/haVmOverride.d.ts +33 -69
- package/haVmOverride.js +33 -33
- package/haVmOverride.js.map +1 -1
- package/host.js +34 -34
- package/host.js.map +1 -1
- package/hostPortGroup.d.ts +9 -18
- package/hostPortGroup.js +40 -40
- package/hostPortGroup.js.map +1 -1
- package/hostVirtualSwitch.d.ts +9 -18
- package/hostVirtualSwitch.js +46 -46
- package/hostVirtualSwitch.js.map +1 -1
- package/license.js +10 -10
- package/license.js.map +1 -1
- package/nasDatastore.js +34 -34
- package/nasDatastore.js.map +1 -1
- package/offlineSoftwareDepot.js +5 -5
- package/offlineSoftwareDepot.js.map +1 -1
- package/package.json +2 -2
- package/provider.js +13 -14
- package/provider.js.map +1 -1
- package/resourcePool.js +32 -32
- package/resourcePool.js.map +1 -1
- package/role.js +6 -6
- package/role.js.map +1 -1
- package/storageDrsVmOverride.js +13 -13
- package/storageDrsVmOverride.js.map +1 -1
- package/supervisor.js +51 -51
- package/supervisor.js.map +1 -1
- package/tag.js +8 -8
- package/tag.js.map +1 -1
- package/tagCategory.js +11 -11
- package/tagCategory.js.map +1 -1
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
- package/vappContainer.js +32 -32
- package/vappContainer.js.map +1 -1
- package/vappEntity.js +23 -23
- package/vappEntity.js.map +1 -1
- package/virtualDisk.js +18 -18
- package/virtualDisk.js.map +1 -1
- package/virtualMachine.d.ts +39 -84
- package/virtualMachine.js +167 -167
- package/virtualMachine.js.map +1 -1
- package/virtualMachineClass.js +15 -15
- package/virtualMachineClass.js.map +1 -1
- package/virtualMachineSnapshot.js +20 -20
- package/virtualMachineSnapshot.js.map +1 -1
- package/vmStoragePolicy.js +8 -8
- package/vmStoragePolicy.js.map +1 -1
- package/vmfsDatastore.js +24 -24
- package/vmfsDatastore.js.map +1 -1
- package/vnic.js +22 -22
- package/vnic.js.map +1 -1
package/utilities.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
5
|
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
6
|
const runtime = require("@pulumi/pulumi/runtime");
|
|
@@ -77,26 +68,24 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
77
68
|
}
|
|
78
69
|
exports.lazyLoad = lazyLoad;
|
|
79
70
|
/** @internal */
|
|
80
|
-
function callAsync(tok, props, res, opts) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return value;
|
|
99
|
-
});
|
|
71
|
+
async function callAsync(tok, props, res, opts) {
|
|
72
|
+
const o = runtime.call(tok, props, res);
|
|
73
|
+
const value = await o.promise(true /*withUnknowns*/);
|
|
74
|
+
const isKnown = await o.isKnown;
|
|
75
|
+
const isSecret = await o.isSecret;
|
|
76
|
+
const problem = !isKnown ? "an unknown value"
|
|
77
|
+
: isSecret ? "a secret value"
|
|
78
|
+
: undefined;
|
|
79
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
80
|
+
if (problem) {
|
|
81
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
82
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
83
|
+
}
|
|
84
|
+
// Extract a single property if requested.
|
|
85
|
+
if (opts && opts.property) {
|
|
86
|
+
return value[opts.property];
|
|
87
|
+
}
|
|
88
|
+
return value;
|
|
100
89
|
}
|
|
101
90
|
exports.callAsync = callAsync;
|
|
102
91
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3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AwBC"}
|
package/vappContainer.js
CHANGED
|
@@ -113,7 +113,7 @@ class VappContainer extends pulumi.CustomResource {
|
|
|
113
113
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
114
114
|
*/
|
|
115
115
|
static get(name, id, state, opts) {
|
|
116
|
-
return new VappContainer(name, state,
|
|
116
|
+
return new VappContainer(name, state, { ...opts, id: id });
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* Returns true if the given object is an instance of VappContainer. This is designed to work even
|
|
@@ -130,42 +130,42 @@ class VappContainer extends pulumi.CustomResource {
|
|
|
130
130
|
opts = opts || {};
|
|
131
131
|
if (opts.id) {
|
|
132
132
|
const state = argsOrState;
|
|
133
|
-
resourceInputs["cpuExpandable"] = state
|
|
134
|
-
resourceInputs["cpuLimit"] = state
|
|
135
|
-
resourceInputs["cpuReservation"] = state
|
|
136
|
-
resourceInputs["cpuShareLevel"] = state
|
|
137
|
-
resourceInputs["cpuShares"] = state
|
|
138
|
-
resourceInputs["customAttributes"] = state
|
|
139
|
-
resourceInputs["memoryExpandable"] = state
|
|
140
|
-
resourceInputs["memoryLimit"] = state
|
|
141
|
-
resourceInputs["memoryReservation"] = state
|
|
142
|
-
resourceInputs["memoryShareLevel"] = state
|
|
143
|
-
resourceInputs["memoryShares"] = state
|
|
144
|
-
resourceInputs["name"] = state
|
|
145
|
-
resourceInputs["parentFolderId"] = state
|
|
146
|
-
resourceInputs["parentResourcePoolId"] = state
|
|
147
|
-
resourceInputs["tags"] = state
|
|
133
|
+
resourceInputs["cpuExpandable"] = state?.cpuExpandable;
|
|
134
|
+
resourceInputs["cpuLimit"] = state?.cpuLimit;
|
|
135
|
+
resourceInputs["cpuReservation"] = state?.cpuReservation;
|
|
136
|
+
resourceInputs["cpuShareLevel"] = state?.cpuShareLevel;
|
|
137
|
+
resourceInputs["cpuShares"] = state?.cpuShares;
|
|
138
|
+
resourceInputs["customAttributes"] = state?.customAttributes;
|
|
139
|
+
resourceInputs["memoryExpandable"] = state?.memoryExpandable;
|
|
140
|
+
resourceInputs["memoryLimit"] = state?.memoryLimit;
|
|
141
|
+
resourceInputs["memoryReservation"] = state?.memoryReservation;
|
|
142
|
+
resourceInputs["memoryShareLevel"] = state?.memoryShareLevel;
|
|
143
|
+
resourceInputs["memoryShares"] = state?.memoryShares;
|
|
144
|
+
resourceInputs["name"] = state?.name;
|
|
145
|
+
resourceInputs["parentFolderId"] = state?.parentFolderId;
|
|
146
|
+
resourceInputs["parentResourcePoolId"] = state?.parentResourcePoolId;
|
|
147
|
+
resourceInputs["tags"] = state?.tags;
|
|
148
148
|
}
|
|
149
149
|
else {
|
|
150
150
|
const args = argsOrState;
|
|
151
|
-
if (
|
|
151
|
+
if (args?.parentResourcePoolId === undefined && !opts.urn) {
|
|
152
152
|
throw new Error("Missing required property 'parentResourcePoolId'");
|
|
153
153
|
}
|
|
154
|
-
resourceInputs["cpuExpandable"] = args
|
|
155
|
-
resourceInputs["cpuLimit"] = args
|
|
156
|
-
resourceInputs["cpuReservation"] = args
|
|
157
|
-
resourceInputs["cpuShareLevel"] = args
|
|
158
|
-
resourceInputs["cpuShares"] = args
|
|
159
|
-
resourceInputs["customAttributes"] = args
|
|
160
|
-
resourceInputs["memoryExpandable"] = args
|
|
161
|
-
resourceInputs["memoryLimit"] = args
|
|
162
|
-
resourceInputs["memoryReservation"] = args
|
|
163
|
-
resourceInputs["memoryShareLevel"] = args
|
|
164
|
-
resourceInputs["memoryShares"] = args
|
|
165
|
-
resourceInputs["name"] = args
|
|
166
|
-
resourceInputs["parentFolderId"] = args
|
|
167
|
-
resourceInputs["parentResourcePoolId"] = args
|
|
168
|
-
resourceInputs["tags"] = args
|
|
154
|
+
resourceInputs["cpuExpandable"] = args?.cpuExpandable;
|
|
155
|
+
resourceInputs["cpuLimit"] = args?.cpuLimit;
|
|
156
|
+
resourceInputs["cpuReservation"] = args?.cpuReservation;
|
|
157
|
+
resourceInputs["cpuShareLevel"] = args?.cpuShareLevel;
|
|
158
|
+
resourceInputs["cpuShares"] = args?.cpuShares;
|
|
159
|
+
resourceInputs["customAttributes"] = args?.customAttributes;
|
|
160
|
+
resourceInputs["memoryExpandable"] = args?.memoryExpandable;
|
|
161
|
+
resourceInputs["memoryLimit"] = args?.memoryLimit;
|
|
162
|
+
resourceInputs["memoryReservation"] = args?.memoryReservation;
|
|
163
|
+
resourceInputs["memoryShareLevel"] = args?.memoryShareLevel;
|
|
164
|
+
resourceInputs["memoryShares"] = args?.memoryShares;
|
|
165
|
+
resourceInputs["name"] = args?.name;
|
|
166
|
+
resourceInputs["parentFolderId"] = args?.parentFolderId;
|
|
167
|
+
resourceInputs["parentResourcePoolId"] = args?.parentResourcePoolId;
|
|
168
|
+
resourceInputs["tags"] = args?.tags;
|
|
169
169
|
}
|
|
170
170
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
171
171
|
super(VappContainer.__pulumiType, name, resourceInputs, opts);
|
package/vappContainer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vappContainer.js","sourceRoot":"","sources":["../vappContainer.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"vappContainer.js","sourceRoot":"","sources":["../vappContainer.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;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iBAAiB,CAAC;YAC9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAxKL,sCAyKC;AA3JG,gBAAgB;AACO,0BAAY,GAAG,2CAA2C,CAAC"}
|
package/vappEntity.js
CHANGED
|
@@ -97,7 +97,7 @@ class VappEntity extends pulumi.CustomResource {
|
|
|
97
97
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
98
98
|
*/
|
|
99
99
|
static get(name, id, state, opts) {
|
|
100
|
-
return new VappEntity(name, state,
|
|
100
|
+
return new VappEntity(name, state, { ...opts, id: id });
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* Returns true if the given object is an instance of VappEntity. This is designed to work even
|
|
@@ -114,35 +114,35 @@ class VappEntity extends pulumi.CustomResource {
|
|
|
114
114
|
opts = opts || {};
|
|
115
115
|
if (opts.id) {
|
|
116
116
|
const state = argsOrState;
|
|
117
|
-
resourceInputs["containerId"] = state
|
|
118
|
-
resourceInputs["customAttributes"] = state
|
|
119
|
-
resourceInputs["startAction"] = state
|
|
120
|
-
resourceInputs["startDelay"] = state
|
|
121
|
-
resourceInputs["startOrder"] = state
|
|
122
|
-
resourceInputs["stopAction"] = state
|
|
123
|
-
resourceInputs["stopDelay"] = state
|
|
124
|
-
resourceInputs["tags"] = state
|
|
125
|
-
resourceInputs["targetId"] = state
|
|
126
|
-
resourceInputs["waitForGuest"] = state
|
|
117
|
+
resourceInputs["containerId"] = state?.containerId;
|
|
118
|
+
resourceInputs["customAttributes"] = state?.customAttributes;
|
|
119
|
+
resourceInputs["startAction"] = state?.startAction;
|
|
120
|
+
resourceInputs["startDelay"] = state?.startDelay;
|
|
121
|
+
resourceInputs["startOrder"] = state?.startOrder;
|
|
122
|
+
resourceInputs["stopAction"] = state?.stopAction;
|
|
123
|
+
resourceInputs["stopDelay"] = state?.stopDelay;
|
|
124
|
+
resourceInputs["tags"] = state?.tags;
|
|
125
|
+
resourceInputs["targetId"] = state?.targetId;
|
|
126
|
+
resourceInputs["waitForGuest"] = state?.waitForGuest;
|
|
127
127
|
}
|
|
128
128
|
else {
|
|
129
129
|
const args = argsOrState;
|
|
130
|
-
if (
|
|
130
|
+
if (args?.containerId === undefined && !opts.urn) {
|
|
131
131
|
throw new Error("Missing required property 'containerId'");
|
|
132
132
|
}
|
|
133
|
-
if (
|
|
133
|
+
if (args?.targetId === undefined && !opts.urn) {
|
|
134
134
|
throw new Error("Missing required property 'targetId'");
|
|
135
135
|
}
|
|
136
|
-
resourceInputs["containerId"] = args
|
|
137
|
-
resourceInputs["customAttributes"] = args
|
|
138
|
-
resourceInputs["startAction"] = args
|
|
139
|
-
resourceInputs["startDelay"] = args
|
|
140
|
-
resourceInputs["startOrder"] = args
|
|
141
|
-
resourceInputs["stopAction"] = args
|
|
142
|
-
resourceInputs["stopDelay"] = args
|
|
143
|
-
resourceInputs["tags"] = args
|
|
144
|
-
resourceInputs["targetId"] = args
|
|
145
|
-
resourceInputs["waitForGuest"] = args
|
|
136
|
+
resourceInputs["containerId"] = args?.containerId;
|
|
137
|
+
resourceInputs["customAttributes"] = args?.customAttributes;
|
|
138
|
+
resourceInputs["startAction"] = args?.startAction;
|
|
139
|
+
resourceInputs["startDelay"] = args?.startDelay;
|
|
140
|
+
resourceInputs["startOrder"] = args?.startOrder;
|
|
141
|
+
resourceInputs["stopAction"] = args?.stopAction;
|
|
142
|
+
resourceInputs["stopDelay"] = args?.stopDelay;
|
|
143
|
+
resourceInputs["tags"] = args?.tags;
|
|
144
|
+
resourceInputs["targetId"] = args?.targetId;
|
|
145
|
+
resourceInputs["waitForGuest"] = args?.waitForGuest;
|
|
146
146
|
}
|
|
147
147
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
148
148
|
super(VappEntity.__pulumiType, name, resourceInputs, opts);
|
package/vappEntity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vappEntity.js","sourceRoot":"","sources":["../vappEntity.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"vappEntity.js","sourceRoot":"","sources":["../vappEntity.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAA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opts Optional settings to control the behavior of the CustomResource.
|
|
63
63
|
*/
|
|
64
64
|
static get(name, id, state, opts) {
|
|
65
|
-
return new VirtualDisk(name, state,
|
|
65
|
+
return new VirtualDisk(name, state, { ...opts, id: id });
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Returns true if the given object is an instance of VirtualDisk. This is designed to work even
|
|
@@ -79,32 +79,32 @@ class VirtualDisk extends pulumi.CustomResource {
|
|
|
79
79
|
opts = opts || {};
|
|
80
80
|
if (opts.id) {
|
|
81
81
|
const state = argsOrState;
|
|
82
|
-
resourceInputs["adapterType"] = state
|
|
83
|
-
resourceInputs["createDirectories"] = state
|
|
84
|
-
resourceInputs["datacenter"] = state
|
|
85
|
-
resourceInputs["datastore"] = state
|
|
86
|
-
resourceInputs["size"] = state
|
|
87
|
-
resourceInputs["type"] = state
|
|
88
|
-
resourceInputs["vmdkPath"] = state
|
|
82
|
+
resourceInputs["adapterType"] = state?.adapterType;
|
|
83
|
+
resourceInputs["createDirectories"] = state?.createDirectories;
|
|
84
|
+
resourceInputs["datacenter"] = state?.datacenter;
|
|
85
|
+
resourceInputs["datastore"] = state?.datastore;
|
|
86
|
+
resourceInputs["size"] = state?.size;
|
|
87
|
+
resourceInputs["type"] = state?.type;
|
|
88
|
+
resourceInputs["vmdkPath"] = state?.vmdkPath;
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
91
|
const args = argsOrState;
|
|
92
|
-
if (
|
|
92
|
+
if (args?.datastore === undefined && !opts.urn) {
|
|
93
93
|
throw new Error("Missing required property 'datastore'");
|
|
94
94
|
}
|
|
95
|
-
if (
|
|
95
|
+
if (args?.size === undefined && !opts.urn) {
|
|
96
96
|
throw new Error("Missing required property 'size'");
|
|
97
97
|
}
|
|
98
|
-
if (
|
|
98
|
+
if (args?.vmdkPath === undefined && !opts.urn) {
|
|
99
99
|
throw new Error("Missing required property 'vmdkPath'");
|
|
100
100
|
}
|
|
101
|
-
resourceInputs["adapterType"] = args
|
|
102
|
-
resourceInputs["createDirectories"] = args
|
|
103
|
-
resourceInputs["datacenter"] = args
|
|
104
|
-
resourceInputs["datastore"] = args
|
|
105
|
-
resourceInputs["size"] = args
|
|
106
|
-
resourceInputs["type"] = args
|
|
107
|
-
resourceInputs["vmdkPath"] = args
|
|
101
|
+
resourceInputs["adapterType"] = args?.adapterType;
|
|
102
|
+
resourceInputs["createDirectories"] = args?.createDirectories;
|
|
103
|
+
resourceInputs["datacenter"] = args?.datacenter;
|
|
104
|
+
resourceInputs["datastore"] = args?.datastore;
|
|
105
|
+
resourceInputs["size"] = args?.size;
|
|
106
|
+
resourceInputs["type"] = args?.type;
|
|
107
|
+
resourceInputs["vmdkPath"] = args?.vmdkPath;
|
|
108
108
|
}
|
|
109
109
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
110
|
super(VirtualDisk.__pulumiType, name, resourceInputs, opts);
|
package/virtualDisk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualDisk.js","sourceRoot":"","sources":["../virtualDisk.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"virtualDisk.js","sourceRoot":"","sources":["../virtualDisk.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,WAAY,SAAQ,MA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