@pulumi/vsphere 4.0.0 → 4.2.0-alpha.1641576184

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.
Files changed (205) hide show
  1. package/README.md +1 -1
  2. package/computeCluster.d.ts +111 -111
  3. package/computeCluster.js +1 -0
  4. package/computeCluster.js.map +1 -1
  5. package/computeClusterHostGroup.d.ts +6 -6
  6. package/computeClusterHostGroup.js +1 -0
  7. package/computeClusterHostGroup.js.map +1 -1
  8. package/computeClusterVmAffinityRule.d.ts +10 -10
  9. package/computeClusterVmAffinityRule.js +1 -0
  10. package/computeClusterVmAffinityRule.js.map +1 -1
  11. package/computeClusterVmAntiAffinityRule.d.ts +10 -10
  12. package/computeClusterVmAntiAffinityRule.js +1 -0
  13. package/computeClusterVmAntiAffinityRule.js.map +1 -1
  14. package/computeClusterVmDependencyRule.d.ts +12 -12
  15. package/computeClusterVmDependencyRule.js +1 -0
  16. package/computeClusterVmDependencyRule.js.map +1 -1
  17. package/computeClusterVmGroup.d.ts +6 -6
  18. package/computeClusterVmGroup.js +1 -0
  19. package/computeClusterVmGroup.js.map +1 -1
  20. package/computeClusterVmHostRule.d.ts +14 -14
  21. package/computeClusterVmHostRule.js +1 -0
  22. package/computeClusterVmHostRule.js.map +1 -1
  23. package/config/index.js +11 -4
  24. package/config/index.js.map +1 -1
  25. package/config/vars.d.ts +13 -13
  26. package/config/vars.js +87 -50
  27. package/config/vars.js.map +1 -1
  28. package/contentLibrary.d.ts +10 -10
  29. package/contentLibrary.js +1 -0
  30. package/contentLibrary.js.map +1 -1
  31. package/contentLibraryItem.d.ts +12 -12
  32. package/contentLibraryItem.js +1 -0
  33. package/contentLibraryItem.js.map +1 -1
  34. package/customAttribute.d.ts +4 -4
  35. package/customAttribute.js +1 -0
  36. package/customAttribute.js.map +1 -1
  37. package/datacenter.d.ts +9 -9
  38. package/datacenter.js +1 -0
  39. package/datacenter.js.map +1 -1
  40. package/datastoreCluster.d.ts +50 -50
  41. package/datastoreCluster.js +1 -0
  42. package/datastoreCluster.js.map +1 -1
  43. package/datastoreClusterVmAntiAffinityRule.d.ts +10 -10
  44. package/datastoreClusterVmAntiAffinityRule.js +1 -0
  45. package/datastoreClusterVmAntiAffinityRule.js.map +1 -1
  46. package/distributedPortGroup.d.ts +94 -94
  47. package/distributedPortGroup.js +1 -0
  48. package/distributedPortGroup.js.map +1 -1
  49. package/distributedVirtualSwitch.d.ts +189 -189
  50. package/distributedVirtualSwitch.js +1 -0
  51. package/distributedVirtualSwitch.js.map +1 -1
  52. package/dpmHostOverride.d.ts +8 -8
  53. package/dpmHostOverride.js +1 -0
  54. package/dpmHostOverride.js.map +1 -1
  55. package/drsVmOverride.d.ts +8 -8
  56. package/drsVmOverride.js +1 -0
  57. package/drsVmOverride.js.map +1 -1
  58. package/entityPermissions.d.ts +6 -6
  59. package/entityPermissions.js +1 -0
  60. package/entityPermissions.js.map +1 -1
  61. package/file.d.ts +14 -14
  62. package/file.js +1 -0
  63. package/file.js.map +1 -1
  64. package/folder.d.ts +10 -10
  65. package/folder.js +1 -0
  66. package/folder.js.map +1 -1
  67. package/getComputeCluster.d.ts +22 -4
  68. package/getComputeCluster.js +7 -2
  69. package/getComputeCluster.js.map +1 -1
  70. package/getContentLibrary.d.ts +12 -2
  71. package/getContentLibrary.js +6 -1
  72. package/getContentLibrary.js.map +1 -1
  73. package/getContentLibraryItem.d.ts +36 -3
  74. package/getContentLibraryItem.js +20 -0
  75. package/getContentLibraryItem.js.map +1 -1
  76. package/getCustomAttribute.d.ts +12 -2
  77. package/getCustomAttribute.js +6 -1
  78. package/getCustomAttribute.js.map +1 -1
  79. package/getDatacenter.d.ts +13 -2
  80. package/getDatacenter.js +6 -1
  81. package/getDatacenter.js.map +1 -1
  82. package/getDatastore.d.ts +22 -4
  83. package/getDatastore.js +7 -2
  84. package/getDatastore.js.map +1 -1
  85. package/getDatastoreCluster.d.ts +22 -4
  86. package/getDatastoreCluster.js +7 -2
  87. package/getDatastoreCluster.js.map +1 -1
  88. package/getDistributedVirtualSwitch.d.ts +23 -4
  89. package/getDistributedVirtualSwitch.js +7 -2
  90. package/getDistributedVirtualSwitch.js.map +1 -1
  91. package/getDynamic.d.ts +24 -3
  92. package/getDynamic.js +5 -0
  93. package/getDynamic.js.map +1 -1
  94. package/getFolder.d.ts +16 -2
  95. package/getFolder.js +6 -1
  96. package/getFolder.js.map +1 -1
  97. package/getHost.d.ts +20 -4
  98. package/getHost.js +7 -2
  99. package/getHost.js.map +1 -1
  100. package/getHostPciDevice.d.ts +28 -4
  101. package/getHostPciDevice.js +5 -0
  102. package/getHostPciDevice.js.map +1 -1
  103. package/getHostThumbprint.d.ts +24 -4
  104. package/getHostThumbprint.js +6 -1
  105. package/getHostThumbprint.js.map +1 -1
  106. package/getNetwork.d.ts +30 -5
  107. package/getNetwork.js +7 -2
  108. package/getNetwork.js.map +1 -1
  109. package/getOvfVmTemplate.d.ts +78 -14
  110. package/getOvfVmTemplate.js +5 -0
  111. package/getOvfVmTemplate.js.map +1 -1
  112. package/getPolicy.d.ts +12 -2
  113. package/getPolicy.js +6 -1
  114. package/getPolicy.js.map +1 -1
  115. package/getResourcePool.d.ts +24 -5
  116. package/getResourcePool.js +8 -3
  117. package/getResourcePool.js.map +1 -1
  118. package/getRole.d.ts +24 -5
  119. package/getRole.js +6 -1
  120. package/getRole.js.map +1 -1
  121. package/getTag.d.ts +18 -4
  122. package/getTag.js +7 -2
  123. package/getTag.js.map +1 -1
  124. package/getTagCategory.d.ts +12 -2
  125. package/getTagCategory.js +6 -1
  126. package/getTagCategory.js.map +1 -1
  127. package/getVappContainer.d.ts +20 -4
  128. package/getVappContainer.js +7 -2
  129. package/getVappContainer.js.map +1 -1
  130. package/getVirtualMachine.d.ts +150 -50
  131. package/getVirtualMachine.js +8 -2
  132. package/getVirtualMachine.js.map +1 -1
  133. package/getVmfsDisks.d.ts +28 -6
  134. package/getVmfsDisks.js +8 -3
  135. package/getVmfsDisks.js.map +1 -1
  136. package/haVmOverride.d.ts +30 -30
  137. package/haVmOverride.js +1 -0
  138. package/haVmOverride.js.map +1 -1
  139. package/host.d.ts +24 -24
  140. package/host.js +1 -0
  141. package/host.js.map +1 -1
  142. package/hostPortGroup.d.ts +41 -41
  143. package/hostPortGroup.js +5 -4
  144. package/hostPortGroup.js.map +1 -1
  145. package/hostVirtualSwitch.d.ts +42 -42
  146. package/hostVirtualSwitch.js +1 -0
  147. package/hostVirtualSwitch.js.map +1 -1
  148. package/index.js +74 -66
  149. package/index.js.map +1 -1
  150. package/license.d.ts +8 -8
  151. package/license.js +1 -0
  152. package/license.js.map +1 -1
  153. package/nasDatastore.d.ts +30 -30
  154. package/nasDatastore.js +1 -0
  155. package/nasDatastore.js.map +1 -1
  156. package/package.json +4 -3
  157. package/package.json.bak +3 -2
  158. package/package.json.dev +4 -3
  159. package/provider.d.ts +45 -13
  160. package/provider.js +9 -8
  161. package/provider.js.map +1 -1
  162. package/resourcePool.d.ts +28 -28
  163. package/resourcePool.js +1 -0
  164. package/resourcePool.js.map +1 -1
  165. package/role.d.ts +5 -5
  166. package/role.js +1 -0
  167. package/role.js.map +1 -1
  168. package/storageDrsVmOverride.d.ts +10 -10
  169. package/storageDrsVmOverride.js +1 -0
  170. package/storageDrsVmOverride.js.map +1 -1
  171. package/tag.d.ts +6 -6
  172. package/tag.js +1 -0
  173. package/tag.js.map +1 -1
  174. package/tagCategory.d.ts +8 -8
  175. package/tagCategory.js +1 -0
  176. package/tagCategory.js.map +1 -1
  177. package/types/index.js +1 -0
  178. package/types/index.js.map +1 -1
  179. package/types/input.d.ts +5 -0
  180. package/utilities.js +1 -0
  181. package/utilities.js.map +1 -1
  182. package/vappContainer.d.ts +30 -30
  183. package/vappContainer.js +1 -0
  184. package/vappContainer.js.map +1 -1
  185. package/vappEntity.d.ts +20 -20
  186. package/vappEntity.js +1 -0
  187. package/vappEntity.js.map +1 -1
  188. package/virtualDisk.d.ts +14 -14
  189. package/virtualDisk.js +1 -0
  190. package/virtualDisk.js.map +1 -1
  191. package/virtualMachine.d.ts +185 -158
  192. package/virtualMachine.js +3 -0
  193. package/virtualMachine.js.map +1 -1
  194. package/virtualMachineSnapshot.d.ts +14 -14
  195. package/virtualMachineSnapshot.js +1 -0
  196. package/virtualMachineSnapshot.js.map +1 -1
  197. package/vmStoragePolicy.d.ts +6 -6
  198. package/vmStoragePolicy.js +1 -0
  199. package/vmStoragePolicy.js.map +1 -1
  200. package/vmfsDatastore.d.ts +21 -21
  201. package/vmfsDatastore.js +1 -0
  202. package/vmfsDatastore.js.map +1 -1
  203. package/vnic.d.ts +18 -18
  204. package/vnic.js +1 -0
  205. package/vnic.js.map +1 -1
@@ -13,7 +13,7 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  *
14
14
  * const library = pulumi.output(vsphere.getContentLibrary({
15
15
  * name: "Content Library Test",
16
- * }, { async: true }));
16
+ * }));
17
17
  * ```
18
18
  */
19
19
  export declare function getContentLibrary(args: GetContentLibraryArgs, opts?: pulumi.InvokeOptions): Promise<GetContentLibraryResult>;
@@ -24,7 +24,7 @@ export interface GetContentLibraryArgs {
24
24
  /**
25
25
  * The name of the Content Library.
26
26
  */
27
- readonly name: string;
27
+ name: string;
28
28
  }
29
29
  /**
30
30
  * A collection of values returned by getContentLibrary.
@@ -36,3 +36,13 @@ export interface GetContentLibraryResult {
36
36
  readonly id: string;
37
37
  readonly name: string;
38
38
  }
39
+ export declare function getContentLibraryOutput(args: GetContentLibraryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetContentLibraryResult>;
40
+ /**
41
+ * A collection of arguments for invoking getContentLibrary.
42
+ */
43
+ export interface GetContentLibraryOutputArgs {
44
+ /**
45
+ * The name of the Content Library.
46
+ */
47
+ name: pulumi.Input<string>;
48
+ }
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getContentLibraryOutput = exports.getContentLibrary = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -18,7 +19,7 @@ const utilities = require("./utilities");
18
19
  *
19
20
  * const library = pulumi.output(vsphere.getContentLibrary({
20
21
  * name: "Content Library Test",
21
- * }, { async: true }));
22
+ * }));
22
23
  * ```
23
24
  */
24
25
  function getContentLibrary(args, opts) {
@@ -33,4 +34,8 @@ function getContentLibrary(args, opts) {
33
34
  }, opts);
34
35
  }
35
36
  exports.getContentLibrary = getContentLibrary;
37
+ function getContentLibraryOutput(args, opts) {
38
+ return pulumi.output(args).apply(a => getContentLibrary(a, opts));
39
+ }
40
+ exports.getContentLibraryOutput = getContentLibraryOutput;
36
41
  //# sourceMappingURL=getContentLibrary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getContentLibrary.js","sourceRoot":"","sources":["../getContentLibrary.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8CAWC"}
1
+ {"version":3,"file":"getContentLibrary.js","sourceRoot":"","sources":["../getContentLibrary.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8CAWC;AAuBD,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,0DAEC"}
@@ -4,6 +4,21 @@ import * as pulumi from "@pulumi/pulumi";
4
4
  *
5
5
  * > **NOTE:** This resource requires vCenter and is not available on direct ESXi
6
6
  * connections.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as vsphere from "@pulumi/vsphere";
13
+ *
14
+ * const library = vsphere.getContentLibrary({
15
+ * name: "Content Library Test",
16
+ * });
17
+ * const item = library.then(library => vsphere.getContentLibraryItem({
18
+ * name: "Ubuntu Bionic 18.04",
19
+ * libraryId: library.id,
20
+ * }));
21
+ * ```
7
22
  */
8
23
  export declare function getContentLibraryItem(args: GetContentLibraryItemArgs, opts?: pulumi.InvokeOptions): Promise<GetContentLibraryItemResult>;
9
24
  /**
@@ -13,15 +28,15 @@ export interface GetContentLibraryItemArgs {
13
28
  /**
14
29
  * The ID of the Content Library the item exists in.
15
30
  */
16
- readonly libraryId: string;
31
+ libraryId: string;
17
32
  /**
18
33
  * The name of the Content Library.
19
34
  */
20
- readonly name: string;
35
+ name: string;
21
36
  /**
22
37
  * The Content Library type. Can be ovf, iso, or vm-template.
23
38
  */
24
- readonly type: string;
39
+ type: string;
25
40
  }
26
41
  /**
27
42
  * A collection of values returned by getContentLibraryItem.
@@ -38,3 +53,21 @@ export interface GetContentLibraryItemResult {
38
53
  */
39
54
  readonly type: string;
40
55
  }
56
+ export declare function getContentLibraryItemOutput(args: GetContentLibraryItemOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetContentLibraryItemResult>;
57
+ /**
58
+ * A collection of arguments for invoking getContentLibraryItem.
59
+ */
60
+ export interface GetContentLibraryItemOutputArgs {
61
+ /**
62
+ * The ID of the Content Library the item exists in.
63
+ */
64
+ libraryId: pulumi.Input<string>;
65
+ /**
66
+ * The name of the Content Library.
67
+ */
68
+ name: pulumi.Input<string>;
69
+ /**
70
+ * The Content Library type. Can be ovf, iso, or vm-template.
71
+ */
72
+ type: pulumi.Input<string>;
73
+ }
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getContentLibraryItemOutput = exports.getContentLibraryItem = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -9,6 +10,21 @@ const utilities = require("./utilities");
9
10
  *
10
11
  * > **NOTE:** This resource requires vCenter and is not available on direct ESXi
11
12
  * connections.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as vsphere from "@pulumi/vsphere";
19
+ *
20
+ * const library = vsphere.getContentLibrary({
21
+ * name: "Content Library Test",
22
+ * });
23
+ * const item = library.then(library => vsphere.getContentLibraryItem({
24
+ * name: "Ubuntu Bionic 18.04",
25
+ * libraryId: library.id,
26
+ * }));
27
+ * ```
12
28
  */
13
29
  function getContentLibraryItem(args, opts) {
14
30
  if (!opts) {
@@ -24,4 +40,8 @@ function getContentLibraryItem(args, opts) {
24
40
  }, opts);
25
41
  }
26
42
  exports.getContentLibraryItem = getContentLibraryItem;
43
+ function getContentLibraryItemOutput(args, opts) {
44
+ return pulumi.output(args).apply(a => getContentLibraryItem(a, opts));
45
+ }
46
+ exports.getContentLibraryItemOutput = getContentLibraryItemOutput;
27
47
  //# sourceMappingURL=getContentLibraryItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getContentLibraryItem.js","sourceRoot":"","sources":["../getContentLibraryItem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,sDAaC"}
1
+ {"version":3,"file":"getContentLibraryItem.js","sourceRoot":"","sources":["../getContentLibraryItem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,sDAaC;AAoCD,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,kEAEC"}
@@ -17,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
17
17
  *
18
18
  * const attribute = pulumi.output(vsphere.getCustomAttribute({
19
19
  * name: "test-attribute",
20
- * }, { async: true }));
20
+ * }));
21
21
  * ```
22
22
  */
23
23
  export declare function getCustomAttribute(args: GetCustomAttributeArgs, opts?: pulumi.InvokeOptions): Promise<GetCustomAttributeResult>;
@@ -28,7 +28,7 @@ export interface GetCustomAttributeArgs {
28
28
  /**
29
29
  * The name of the custom attribute.
30
30
  */
31
- readonly name: string;
31
+ name: string;
32
32
  }
33
33
  /**
34
34
  * A collection of values returned by getCustomAttribute.
@@ -41,3 +41,13 @@ export interface GetCustomAttributeResult {
41
41
  readonly managedObjectType: string;
42
42
  readonly name: string;
43
43
  }
44
+ export declare function getCustomAttributeOutput(args: GetCustomAttributeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCustomAttributeResult>;
45
+ /**
46
+ * A collection of arguments for invoking getCustomAttribute.
47
+ */
48
+ export interface GetCustomAttributeOutputArgs {
49
+ /**
50
+ * The name of the custom attribute.
51
+ */
52
+ name: pulumi.Input<string>;
53
+ }
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getCustomAttributeOutput = exports.getCustomAttribute = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -22,7 +23,7 @@ const utilities = require("./utilities");
22
23
  *
23
24
  * const attribute = pulumi.output(vsphere.getCustomAttribute({
24
25
  * name: "test-attribute",
25
- * }, { async: true }));
26
+ * }));
26
27
  * ```
27
28
  */
28
29
  function getCustomAttribute(args, opts) {
@@ -37,4 +38,8 @@ function getCustomAttribute(args, opts) {
37
38
  }, opts);
38
39
  }
39
40
  exports.getCustomAttribute = getCustomAttribute;
41
+ function getCustomAttributeOutput(args, opts) {
42
+ return pulumi.output(args).apply(a => getCustomAttribute(a, opts));
43
+ }
44
+ exports.getCustomAttributeOutput = getCustomAttributeOutput;
40
45
  //# sourceMappingURL=getCustomAttribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCustomAttribute.js","sourceRoot":"","sources":["../getCustomAttribute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qDAAqD,EAAE;QAChF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gDAWC"}
1
+ {"version":3,"file":"getCustomAttribute.js","sourceRoot":"","sources":["../getCustomAttribute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qDAAqD,EAAE;QAChF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gDAWC;AAwBD,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,4DAEC"}
@@ -13,7 +13,7 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  *
14
14
  * const datacenter = pulumi.output(vsphere.getDatacenter({
15
15
  * name: "dc1",
16
- * }, { async: true }));
16
+ * }));
17
17
  * ```
18
18
  */
19
19
  export declare function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatacenterResult>;
@@ -25,7 +25,7 @@ export interface GetDatacenterArgs {
25
25
  * The name of the datacenter. This can be a name or path.
26
26
  * Can be omitted if there is only one datacenter in your inventory.
27
27
  */
28
- readonly name?: string;
28
+ name?: string;
29
29
  }
30
30
  /**
31
31
  * A collection of values returned by getDatacenter.
@@ -37,3 +37,14 @@ export interface GetDatacenterResult {
37
37
  readonly id: string;
38
38
  readonly name?: string;
39
39
  }
40
+ export declare function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatacenterResult>;
41
+ /**
42
+ * A collection of arguments for invoking getDatacenter.
43
+ */
44
+ export interface GetDatacenterOutputArgs {
45
+ /**
46
+ * The name of the datacenter. This can be a name or path.
47
+ * Can be omitted if there is only one datacenter in your inventory.
48
+ */
49
+ name?: pulumi.Input<string>;
50
+ }
package/getDatacenter.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getDatacenterOutput = exports.getDatacenter = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -18,7 +19,7 @@ const utilities = require("./utilities");
18
19
  *
19
20
  * const datacenter = pulumi.output(vsphere.getDatacenter({
20
21
  * name: "dc1",
21
- * }, { async: true }));
22
+ * }));
22
23
  * ```
23
24
  */
24
25
  function getDatacenter(args, opts) {
@@ -34,4 +35,8 @@ function getDatacenter(args, opts) {
34
35
  }, opts);
35
36
  }
36
37
  exports.getDatacenter = getDatacenter;
38
+ function getDatacenterOutput(args, opts) {
39
+ return pulumi.output(args).apply(a => getDatacenter(a, opts));
40
+ }
41
+ exports.getDatacenterOutput = getDatacenterOutput;
37
42
  //# sourceMappingURL=getDatacenter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDatacenter.js","sourceRoot":"","sources":["../getDatacenter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,sCAYC"}
1
+ {"version":3,"file":"getDatacenter.js","sourceRoot":"","sources":["../getDatacenter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,sCAYC;AAwBD,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,kDAEC"}
package/getDatastore.d.ts CHANGED
@@ -13,11 +13,11 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  *
14
14
  * const datacenter = pulumi.output(vsphere.getDatacenter({
15
15
  * name: "dc1",
16
- * }, { async: true }));
16
+ * }));
17
17
  * const datastore = datacenter.apply(datacenter => vsphere.getDatastore({
18
18
  * datacenterId: datacenter.id,
19
19
  * name: "datastore1",
20
- * }, { async: true }));
20
+ * }));
21
21
  * ```
22
22
  */
23
23
  export declare function getDatastore(args: GetDatastoreArgs, opts?: pulumi.InvokeOptions): Promise<GetDatastoreResult>;
@@ -32,11 +32,11 @@ export interface GetDatastoreArgs {
32
32
  * default datacenters, use the id attribute from an empty `vsphere.Datacenter`
33
33
  * data source.
34
34
  */
35
- readonly datacenterId?: string;
35
+ datacenterId?: string;
36
36
  /**
37
37
  * The name of the datastore. This can be a name or path.
38
38
  */
39
- readonly name: string;
39
+ name: string;
40
40
  }
41
41
  /**
42
42
  * A collection of values returned by getDatastore.
@@ -49,3 +49,21 @@ export interface GetDatastoreResult {
49
49
  readonly id: string;
50
50
  readonly name: string;
51
51
  }
52
+ export declare function getDatastoreOutput(args: GetDatastoreOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatastoreResult>;
53
+ /**
54
+ * A collection of arguments for invoking getDatastore.
55
+ */
56
+ export interface GetDatastoreOutputArgs {
57
+ /**
58
+ * The managed object reference
59
+ * ID of the datacenter the datastore is located in. This
60
+ * can be omitted if the search path used in `name` is an absolute path. For
61
+ * default datacenters, use the id attribute from an empty `vsphere.Datacenter`
62
+ * data source.
63
+ */
64
+ datacenterId?: pulumi.Input<string>;
65
+ /**
66
+ * The name of the datastore. This can be a name or path.
67
+ */
68
+ name: pulumi.Input<string>;
69
+ }
package/getDatastore.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getDatastoreOutput = exports.getDatastore = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -18,11 +19,11 @@ const utilities = require("./utilities");
18
19
  *
19
20
  * const datacenter = pulumi.output(vsphere.getDatacenter({
20
21
  * name: "dc1",
21
- * }, { async: true }));
22
+ * }));
22
23
  * const datastore = datacenter.apply(datacenter => vsphere.getDatastore({
23
24
  * datacenterId: datacenter.id,
24
25
  * name: "datastore1",
25
- * }, { async: true }));
26
+ * }));
26
27
  * ```
27
28
  */
28
29
  function getDatastore(args, opts) {
@@ -38,4 +39,8 @@ function getDatastore(args, opts) {
38
39
  }, opts);
39
40
  }
40
41
  exports.getDatastore = getDatastore;
42
+ function getDatastoreOutput(args, opts) {
43
+ return pulumi.output(args).apply(a => getDatastore(a, opts));
44
+ }
45
+ exports.getDatastoreOutput = getDatastoreOutput;
41
46
  //# sourceMappingURL=getDatastore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDatastore.js","sourceRoot":"","sources":["../getDatastore.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,oCAYC"}
1
+ {"version":3,"file":"getDatastore.js","sourceRoot":"","sources":["../getDatastore.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,oCAYC;AAgCD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
@@ -16,11 +16,11 @@ import * as pulumi from "@pulumi/pulumi";
16
16
  *
17
17
  * const datacenter = pulumi.output(vsphere.getDatacenter({
18
18
  * name: "dc1",
19
- * }, { async: true }));
19
+ * }));
20
20
  * const datastoreCluster = vsphere_datacenter_dc.id.apply(id => vsphere.getDatastoreCluster({
21
21
  * datacenterId: id,
22
22
  * name: "datastore-cluster1",
23
- * }, { async: true }));
23
+ * }));
24
24
  * ```
25
25
  */
26
26
  export declare function getDatastoreCluster(args: GetDatastoreClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatastoreClusterResult>;
@@ -35,11 +35,11 @@ export interface GetDatastoreClusterArgs {
35
35
  * For default datacenters, use the id attribute from an empty
36
36
  * `vsphere.Datacenter` data source.
37
37
  */
38
- readonly datacenterId?: string;
38
+ datacenterId?: string;
39
39
  /**
40
40
  * The name or absolute path to the datastore cluster.
41
41
  */
42
- readonly name: string;
42
+ name: string;
43
43
  }
44
44
  /**
45
45
  * A collection of values returned by getDatastoreCluster.
@@ -52,3 +52,21 @@ export interface GetDatastoreClusterResult {
52
52
  readonly id: string;
53
53
  readonly name: string;
54
54
  }
55
+ export declare function getDatastoreClusterOutput(args: GetDatastoreClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatastoreClusterResult>;
56
+ /**
57
+ * A collection of arguments for invoking getDatastoreCluster.
58
+ */
59
+ export interface GetDatastoreClusterOutputArgs {
60
+ /**
61
+ * The managed object reference
62
+ * ID of the datacenter the datastore cluster is located in.
63
+ * This can be omitted if the search path used in `name` is an absolute path.
64
+ * For default datacenters, use the id attribute from an empty
65
+ * `vsphere.Datacenter` data source.
66
+ */
67
+ datacenterId?: pulumi.Input<string>;
68
+ /**
69
+ * The name or absolute path to the datastore cluster.
70
+ */
71
+ name: pulumi.Input<string>;
72
+ }
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getDatastoreClusterOutput = exports.getDatastoreCluster = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -21,11 +22,11 @@ const utilities = require("./utilities");
21
22
  *
22
23
  * const datacenter = pulumi.output(vsphere.getDatacenter({
23
24
  * name: "dc1",
24
- * }, { async: true }));
25
+ * }));
25
26
  * const datastoreCluster = vsphere_datacenter_dc.id.apply(id => vsphere.getDatastoreCluster({
26
27
  * datacenterId: id,
27
28
  * name: "datastore-cluster1",
28
- * }, { async: true }));
29
+ * }));
29
30
  * ```
30
31
  */
31
32
  function getDatastoreCluster(args, opts) {
@@ -41,4 +42,8 @@ function getDatastoreCluster(args, opts) {
41
42
  }, opts);
42
43
  }
43
44
  exports.getDatastoreCluster = getDatastoreCluster;
45
+ function getDatastoreClusterOutput(args, opts) {
46
+ return pulumi.output(args).apply(a => getDatastoreCluster(a, opts));
47
+ }
48
+ exports.getDatastoreClusterOutput = getDatastoreClusterOutput;
44
49
  //# sourceMappingURL=getDatastoreCluster.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDatastoreCluster.js","sourceRoot":"","sources":["../getDatastoreCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,kDAYC"}
1
+ {"version":3,"file":"getDatastoreCluster.js","sourceRoot":"","sources":["../getDatastoreCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,kDAYC;AAgCD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
@@ -22,11 +22,11 @@ import * as pulumi from "@pulumi/pulumi";
22
22
  *
23
23
  * const datacenter = pulumi.output(vsphere.getDatacenter({
24
24
  * name: "dc1",
25
- * }, { async: true }));
25
+ * }));
26
26
  * const dvs = datacenter.apply(datacenter => vsphere.getDistributedVirtualSwitch({
27
27
  * datacenterId: datacenter.id,
28
28
  * name: "test-dvs",
29
- * }, { async: true }));
29
+ * }));
30
30
  * const pg = new vsphere.DistributedPortGroup("pg", {
31
31
  * activeUplinks: [dvs.apply(dvs => dvs.uplinks[0])],
32
32
  * distributedVirtualSwitchUuid: dvs.id,
@@ -46,12 +46,12 @@ export interface GetDistributedVirtualSwitchArgs {
46
46
  * datacenters, use the id attribute from an empty `vsphere.Datacenter` data
47
47
  * source.
48
48
  */
49
- readonly datacenterId?: string;
49
+ datacenterId?: string;
50
50
  /**
51
51
  * The name of the distributed virtual switch. This can be a
52
52
  * name or path.
53
53
  */
54
- readonly name: string;
54
+ name: string;
55
55
  }
56
56
  /**
57
57
  * A collection of values returned by getDistributedVirtualSwitch.
@@ -65,3 +65,22 @@ export interface GetDistributedVirtualSwitchResult {
65
65
  readonly name: string;
66
66
  readonly uplinks: string[];
67
67
  }
68
+ export declare function getDistributedVirtualSwitchOutput(args: GetDistributedVirtualSwitchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDistributedVirtualSwitchResult>;
69
+ /**
70
+ * A collection of arguments for invoking getDistributedVirtualSwitch.
71
+ */
72
+ export interface GetDistributedVirtualSwitchOutputArgs {
73
+ /**
74
+ * The managed object reference
75
+ * ID of the datacenter the DVS is located in. This can be
76
+ * omitted if the search path used in `name` is an absolute path. For default
77
+ * datacenters, use the id attribute from an empty `vsphere.Datacenter` data
78
+ * source.
79
+ */
80
+ datacenterId?: pulumi.Input<string>;
81
+ /**
82
+ * The name of the distributed virtual switch. This can be a
83
+ * name or path.
84
+ */
85
+ name: pulumi.Input<string>;
86
+ }
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getDistributedVirtualSwitchOutput = exports.getDistributedVirtualSwitch = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -27,11 +28,11 @@ const utilities = require("./utilities");
27
28
  *
28
29
  * const datacenter = pulumi.output(vsphere.getDatacenter({
29
30
  * name: "dc1",
30
- * }, { async: true }));
31
+ * }));
31
32
  * const dvs = datacenter.apply(datacenter => vsphere.getDistributedVirtualSwitch({
32
33
  * datacenterId: datacenter.id,
33
34
  * name: "test-dvs",
34
- * }, { async: true }));
35
+ * }));
35
36
  * const pg = new vsphere.DistributedPortGroup("pg", {
36
37
  * activeUplinks: [dvs.apply(dvs => dvs.uplinks[0])],
37
38
  * distributedVirtualSwitchUuid: dvs.id,
@@ -52,4 +53,8 @@ function getDistributedVirtualSwitch(args, opts) {
52
53
  }, opts);
53
54
  }
54
55
  exports.getDistributedVirtualSwitch = getDistributedVirtualSwitch;
56
+ function getDistributedVirtualSwitchOutput(args, opts) {
57
+ return pulumi.output(args).apply(a => getDistributedVirtualSwitch(a, opts));
58
+ }
59
+ exports.getDistributedVirtualSwitchOutput = getDistributedVirtualSwitchOutput;
55
60
  //# sourceMappingURL=getDistributedVirtualSwitch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDistributedVirtualSwitch.js","sourceRoot":"","sources":["../getDistributedVirtualSwitch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uEAAuE,EAAE;QAClG,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,kEAYC"}
1
+ {"version":3,"file":"getDistributedVirtualSwitch.js","sourceRoot":"","sources":["../getDistributedVirtualSwitch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uEAAuE,EAAE;QAClG,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,kEAYC;AAkCD,SAAgB,iCAAiC,CAAC,IAA2C,EAAE,IAA2B;IACtH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,2BAA2B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/E,CAAC;AAFD,8EAEC"}
package/getDynamic.d.ts CHANGED
@@ -43,17 +43,17 @@ export interface GetDynamicArgs {
43
43
  * A list of tag IDs that must be present on an object to
44
44
  * be a match.
45
45
  */
46
- readonly filters: string[];
46
+ filters: string[];
47
47
  /**
48
48
  * A regular expression that will be used to match
49
49
  * the object's name.
50
50
  */
51
- readonly nameRegex?: string;
51
+ nameRegex?: string;
52
52
  /**
53
53
  * The managed object type the returned object must match.
54
54
  * For a full list, click [here](https://code.vmware.com/apis/196/vsphere).
55
55
  */
56
- readonly type?: string;
56
+ type?: string;
57
57
  }
58
58
  /**
59
59
  * A collection of values returned by getDynamic.
@@ -67,3 +67,24 @@ export interface GetDynamicResult {
67
67
  readonly nameRegex?: string;
68
68
  readonly type?: string;
69
69
  }
70
+ export declare function getDynamicOutput(args: GetDynamicOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDynamicResult>;
71
+ /**
72
+ * A collection of arguments for invoking getDynamic.
73
+ */
74
+ export interface GetDynamicOutputArgs {
75
+ /**
76
+ * A list of tag IDs that must be present on an object to
77
+ * be a match.
78
+ */
79
+ filters: pulumi.Input<pulumi.Input<string>[]>;
80
+ /**
81
+ * A regular expression that will be used to match
82
+ * the object's name.
83
+ */
84
+ nameRegex?: pulumi.Input<string>;
85
+ /**
86
+ * The managed object type the returned object must match.
87
+ * For a full list, click [here](https://code.vmware.com/apis/196/vsphere).
88
+ */
89
+ type?: pulumi.Input<string>;
90
+ }
package/getDynamic.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getDynamicOutput = exports.getDynamic = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -53,4 +54,8 @@ function getDynamic(args, opts) {
53
54
  }, opts);
54
55
  }
55
56
  exports.getDynamic = getDynamic;
57
+ function getDynamicOutput(args, opts) {
58
+ return pulumi.output(args).apply(a => getDynamic(a, opts));
59
+ }
60
+ exports.getDynamicOutput = getDynamicOutput;
56
61
  //# sourceMappingURL=getDynamic.js.map
package/getDynamic.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getDynamic.js","sourceRoot":"","sources":["../getDynamic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC"}
1
+ {"version":3,"file":"getDynamic.js","sourceRoot":"","sources":["../getDynamic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC;AAoCD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}