@upcloud/pulumi-upcloud 0.5.0 → 0.5.2

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 (172) hide show
  1. package/config/index.js +1 -1
  2. package/config/index.js.map +1 -1
  3. package/config/vars.d.ts +2 -4
  4. package/config/vars.js +1 -1
  5. package/config/vars.js.map +1 -1
  6. package/floatingIpAddress.d.ts +3 -6
  7. package/floatingIpAddress.js +11 -11
  8. package/floatingIpAddress.js.map +1 -1
  9. package/gateway.d.ts +5 -10
  10. package/gateway.js +24 -24
  11. package/gateway.js.map +1 -1
  12. package/gatewayConnection.d.ts +2 -4
  13. package/gatewayConnection.js +15 -15
  14. package/gatewayConnection.js.map +1 -1
  15. package/gatewayConnectionTunnel.js +20 -20
  16. package/gatewayConnectionTunnel.js.map +1 -1
  17. package/getHosts.d.ts +2 -2
  18. package/getHosts.js +3 -3
  19. package/getHosts.js.map +1 -1
  20. package/getIpAddresses.d.ts +2 -2
  21. package/getIpAddresses.js +3 -3
  22. package/getIpAddresses.js.map +1 -1
  23. package/getKubernetesCluster.d.ts +0 -2
  24. package/getKubernetesCluster.js +1 -3
  25. package/getKubernetesCluster.js.map +1 -1
  26. package/getLoadBalancerDnsChallengeDomain.d.ts +2 -2
  27. package/getLoadBalancerDnsChallengeDomain.js +3 -3
  28. package/getLoadBalancerDnsChallengeDomain.js.map +1 -1
  29. package/getManagedDatabaseMysqlSessions.d.ts +0 -2
  30. package/getManagedDatabaseMysqlSessions.js +1 -3
  31. package/getManagedDatabaseMysqlSessions.js.map +1 -1
  32. package/getManagedDatabaseOpensearchIndices.d.ts +0 -2
  33. package/getManagedDatabaseOpensearchIndices.js +1 -3
  34. package/getManagedDatabaseOpensearchIndices.js.map +1 -1
  35. package/getManagedDatabasePostgresqlSessions.d.ts +0 -2
  36. package/getManagedDatabasePostgresqlSessions.js +1 -3
  37. package/getManagedDatabasePostgresqlSessions.js.map +1 -1
  38. package/getManagedDatabaseRedisSessions.d.ts +0 -2
  39. package/getManagedDatabaseRedisSessions.js +1 -3
  40. package/getManagedDatabaseRedisSessions.js.map +1 -1
  41. package/getManagedDatabaseValkeySessions.d.ts +0 -2
  42. package/getManagedDatabaseValkeySessions.js +1 -3
  43. package/getManagedDatabaseValkeySessions.js.map +1 -1
  44. package/getManagedObjectStoragePolicies.js +1 -1
  45. package/getManagedObjectStoragePolicies.js.map +1 -1
  46. package/getManagedObjectStorageRegions.js +1 -1
  47. package/getManagedObjectStorageRegions.js.map +1 -1
  48. package/getNetworks.js +1 -1
  49. package/getNetworks.js.map +1 -1
  50. package/getStorage.d.ts +0 -2
  51. package/getStorage.js +1 -3
  52. package/getStorage.js.map +1 -1
  53. package/getTags.js +1 -1
  54. package/getTags.js.map +1 -1
  55. package/getZone.js +1 -1
  56. package/getZone.js.map +1 -1
  57. package/getZones.js +1 -1
  58. package/getZones.js.map +1 -1
  59. package/index.d.ts +1 -3
  60. package/index.js +19 -5
  61. package/index.js.map +1 -1
  62. package/kubernetesCluster.d.ts +18 -27
  63. package/kubernetesCluster.js +28 -28
  64. package/kubernetesCluster.js.map +1 -1
  65. package/kubernetesNodeGroup.d.ts +42 -30
  66. package/kubernetesNodeGroup.js +57 -33
  67. package/kubernetesNodeGroup.js.map +1 -1
  68. package/loadbalancer.d.ts +6 -18
  69. package/loadbalancer.js +28 -28
  70. package/loadbalancer.js.map +1 -1
  71. package/loadbalancerBackend.js +13 -13
  72. package/loadbalancerBackend.js.map +1 -1
  73. package/loadbalancerBackendTlsConfig.js +10 -10
  74. package/loadbalancerBackendTlsConfig.js.map +1 -1
  75. package/loadbalancerDynamicBackendMember.js +19 -19
  76. package/loadbalancerDynamicBackendMember.js.map +1 -1
  77. package/loadbalancerDynamicCertificateBundle.js +13 -13
  78. package/loadbalancerDynamicCertificateBundle.js.map +1 -1
  79. package/loadbalancerFrontend.d.ts +12 -18
  80. package/loadbalancerFrontend.js +22 -22
  81. package/loadbalancerFrontend.js.map +1 -1
  82. package/loadbalancerFrontendRule.js +16 -16
  83. package/loadbalancerFrontendRule.js.map +1 -1
  84. package/loadbalancerFrontendTlsConfig.js +10 -10
  85. package/loadbalancerFrontendTlsConfig.js.map +1 -1
  86. package/loadbalancerManualCertificateBundle.js +15 -15
  87. package/loadbalancerManualCertificateBundle.js.map +1 -1
  88. package/loadbalancerResolver.d.ts +3 -6
  89. package/loadbalancerResolver.js +25 -25
  90. package/loadbalancerResolver.js.map +1 -1
  91. package/loadbalancerStaticBackendMember.js +19 -19
  92. package/loadbalancerStaticBackendMember.js.map +1 -1
  93. package/managedDatabaseLogicalDatabase.js +11 -11
  94. package/managedDatabaseLogicalDatabase.js.map +1 -1
  95. package/managedDatabaseMysql.d.ts +3 -6
  96. package/managedDatabaseMysql.js +37 -37
  97. package/managedDatabaseMysql.js.map +1 -1
  98. package/managedDatabaseOpensearch.d.ts +9 -18
  99. package/managedDatabaseOpensearch.js +41 -41
  100. package/managedDatabaseOpensearch.js.map +1 -1
  101. package/managedDatabasePostgresql.d.ts +3 -6
  102. package/managedDatabasePostgresql.js +38 -38
  103. package/managedDatabasePostgresql.js.map +1 -1
  104. package/managedDatabaseRedis.d.ts +3 -6
  105. package/managedDatabaseRedis.js +37 -37
  106. package/managedDatabaseRedis.js.map +1 -1
  107. package/managedDatabaseUser.js +21 -21
  108. package/managedDatabaseUser.js.map +1 -1
  109. package/managedDatabaseValkey.d.ts +3 -6
  110. package/managedDatabaseValkey.js +37 -37
  111. package/managedDatabaseValkey.js.map +1 -1
  112. package/managedObjectStorage.d.ts +3 -9
  113. package/managedObjectStorage.js +18 -18
  114. package/managedObjectStorage.js.map +1 -1
  115. package/managedObjectStorageBucket.js +9 -9
  116. package/managedObjectStorageBucket.js.map +1 -1
  117. package/managedObjectStorageCustomDomain.d.ts +3 -7
  118. package/managedObjectStorageCustomDomain.js +10 -11
  119. package/managedObjectStorageCustomDomain.js.map +1 -1
  120. package/managedObjectStoragePolicy.d.ts +3 -6
  121. package/managedObjectStoragePolicy.js +18 -18
  122. package/managedObjectStoragePolicy.js.map +1 -1
  123. package/managedObjectStorageUser.d.ts +3 -9
  124. package/managedObjectStorageUser.js +10 -10
  125. package/managedObjectStorageUser.js.map +1 -1
  126. package/managedObjectStorageUserAccessKey.js +15 -15
  127. package/managedObjectStorageUserAccessKey.js.map +1 -1
  128. package/managedObjectStorageUserPolicy.js +10 -10
  129. package/managedObjectStorageUserPolicy.js.map +1 -1
  130. package/network.js +15 -15
  131. package/network.js.map +1 -1
  132. package/networkPeering.js +14 -14
  133. package/networkPeering.js.map +1 -1
  134. package/objectStorage.d.ts +40 -37
  135. package/objectStorage.js +24 -27
  136. package/objectStorage.js.map +1 -1
  137. package/package.json +2 -2
  138. package/provider.d.ts +17 -6
  139. package/provider.js +16 -8
  140. package/provider.js.map +1 -1
  141. package/router.d.ts +2 -4
  142. package/router.js +11 -11
  143. package/router.js.map +1 -1
  144. package/server.d.ts +27 -45
  145. package/server.js +50 -50
  146. package/server.js.map +1 -1
  147. package/serverFirewallRules.d.ts +24 -15
  148. package/serverFirewallRules.js +7 -7
  149. package/serverFirewallRules.js.map +1 -1
  150. package/serverGroup.d.ts +45 -36
  151. package/serverGroup.js +13 -13
  152. package/serverGroup.js.map +1 -1
  153. package/storage.d.ts +11 -22
  154. package/storage.js +29 -29
  155. package/storage.js.map +1 -1
  156. package/storageBackup.d.ts +2 -4
  157. package/storageBackup.js +17 -17
  158. package/storageBackup.js.map +1 -1
  159. package/storageTemplate.d.ts +2 -4
  160. package/storageTemplate.js +16 -16
  161. package/storageTemplate.js.map +1 -1
  162. package/tag.js +8 -8
  163. package/tag.js.map +1 -1
  164. package/types/index.js +1 -1
  165. package/types/index.js.map +1 -1
  166. package/types/input.js +1 -1
  167. package/types/input.js.map +1 -1
  168. package/types/output.js +1 -1
  169. package/types/output.js.map +1 -1
  170. package/utilities.d.ts +0 -4
  171. package/utilities.js +20 -30
  172. package/utilities.js.map +1 -1
package/objectStorage.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ObjectStorage = void 0;
@@ -64,7 +64,7 @@ class ObjectStorage extends pulumi.CustomResource {
64
64
  * @param opts Optional settings to control the behavior of the CustomResource.
65
65
  */
66
66
  static get(name, id, state, opts) {
67
- return new ObjectStorage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
67
+ return new ObjectStorage(name, state, { ...opts, id: id });
68
68
  }
69
69
  /**
70
70
  * Returns true if the given object is an instance of ObjectStorage. This is designed to work even
@@ -81,42 +81,39 @@ class ObjectStorage extends pulumi.CustomResource {
81
81
  opts = opts || {};
82
82
  if (opts.id) {
83
83
  const state = argsOrState;
84
- resourceInputs["accessKey"] = state ? state.accessKey : undefined;
85
- resourceInputs["buckets"] = state ? state.buckets : undefined;
86
- resourceInputs["created"] = state ? state.created : undefined;
87
- resourceInputs["description"] = state ? state.description : undefined;
88
- resourceInputs["name"] = state ? state.name : undefined;
89
- resourceInputs["secretKey"] = state ? state.secretKey : undefined;
90
- resourceInputs["size"] = state ? state.size : undefined;
91
- resourceInputs["state"] = state ? state.state : undefined;
92
- resourceInputs["url"] = state ? state.url : undefined;
93
- resourceInputs["usedSpace"] = state ? state.usedSpace : undefined;
94
- resourceInputs["zone"] = state ? state.zone : undefined;
84
+ resourceInputs["accessKey"] = state?.accessKey;
85
+ resourceInputs["buckets"] = state?.buckets;
86
+ resourceInputs["created"] = state?.created;
87
+ resourceInputs["description"] = state?.description;
88
+ resourceInputs["name"] = state?.name;
89
+ resourceInputs["secretKey"] = state?.secretKey;
90
+ resourceInputs["size"] = state?.size;
91
+ resourceInputs["state"] = state?.state;
92
+ resourceInputs["url"] = state?.url;
93
+ resourceInputs["usedSpace"] = state?.usedSpace;
94
+ resourceInputs["zone"] = state?.zone;
95
95
  }
96
96
  else {
97
97
  const args = argsOrState;
98
- if ((!args || args.accessKey === undefined) && !opts.urn) {
98
+ if (args?.accessKey === undefined && !opts.urn) {
99
99
  throw new Error("Missing required property 'accessKey'");
100
100
  }
101
- if ((!args || args.description === undefined) && !opts.urn) {
102
- throw new Error("Missing required property 'description'");
103
- }
104
- if ((!args || args.secretKey === undefined) && !opts.urn) {
101
+ if (args?.secretKey === undefined && !opts.urn) {
105
102
  throw new Error("Missing required property 'secretKey'");
106
103
  }
107
- if ((!args || args.size === undefined) && !opts.urn) {
104
+ if (args?.size === undefined && !opts.urn) {
108
105
  throw new Error("Missing required property 'size'");
109
106
  }
110
- if ((!args || args.zone === undefined) && !opts.urn) {
107
+ if (args?.zone === undefined && !opts.urn) {
111
108
  throw new Error("Missing required property 'zone'");
112
109
  }
113
- resourceInputs["accessKey"] = args ? args.accessKey : undefined;
114
- resourceInputs["buckets"] = args ? args.buckets : undefined;
115
- resourceInputs["description"] = args ? args.description : undefined;
116
- resourceInputs["name"] = args ? args.name : undefined;
117
- resourceInputs["secretKey"] = args ? args.secretKey : undefined;
118
- resourceInputs["size"] = args ? args.size : undefined;
119
- resourceInputs["zone"] = args ? args.zone : undefined;
110
+ resourceInputs["accessKey"] = args?.accessKey;
111
+ resourceInputs["buckets"] = args?.buckets;
112
+ resourceInputs["description"] = args?.description;
113
+ resourceInputs["name"] = args?.name;
114
+ resourceInputs["secretKey"] = args?.secretKey;
115
+ resourceInputs["size"] = args?.size;
116
+ resourceInputs["zone"] = args?.zone;
120
117
  resourceInputs["created"] = undefined /*out*/;
121
118
  resourceInputs["state"] = undefined /*out*/;
122
119
  resourceInputs["url"] = undefined /*out*/;
@@ -1 +1 @@
1
- {"version":3,"file":"objectStorage.js","sourceRoot":"","sources":["../objectStorage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;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AAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;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;;AAxHL,sCAyHC;AA3GG,gBAAgB;AACO,0BAAY,GAAG,2CAA2C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upcloud/pulumi-upcloud",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "A Pulumi package for creating and managing UpCloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,7 +24,7 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "upcloud",
27
- "version": "0.5.0",
27
+ "version": "0.5.2",
28
28
  "server": "github://api.github.com/UpCloudLtd/pulumi-upcloud"
29
29
  }
30
30
  }
package/provider.d.ts CHANGED
@@ -16,8 +16,7 @@ export declare class Provider extends pulumi.ProviderResource {
16
16
  */
17
17
  readonly password: pulumi.Output<string | undefined>;
18
18
  /**
19
- * Token for authenticating to UpCloud API. Can also be configured using the `UPCLOUD_TOKEN` environment variable or using
20
- * the system keyring. Use `upctl account login` command to save a token to the system keyring. (EXPERIMENTAL)
19
+ * Token for authenticating to UpCloud API. Can also be configured using the `UPCLOUD_TOKEN` environment variable or using the system keyring. Use `upctl account login` command to save a token to the system keyring. (EXPERIMENTAL)
21
20
  */
22
21
  readonly token: pulumi.Output<string | undefined>;
23
22
  /**
@@ -32,6 +31,10 @@ export declare class Provider extends pulumi.ProviderResource {
32
31
  * @param opts A bag of options that control this resource's behavior.
33
32
  */
34
33
  constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
34
+ /**
35
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
36
+ */
37
+ terraformConfig(): pulumi.Output<Provider.TerraformConfigResult>;
35
38
  }
36
39
  /**
37
40
  * The set of arguments for constructing a Provider resource.
@@ -42,8 +45,7 @@ export interface ProviderArgs {
42
45
  */
43
46
  password?: pulumi.Input<string>;
44
47
  /**
45
- * The duration (in seconds) that the provider waits for an HTTP request towards UpCloud API to complete. Defaults to 120
46
- * seconds
48
+ * The duration (in seconds) that the provider waits for an HTTP request towards UpCloud API to complete. Defaults to 120 seconds
47
49
  */
48
50
  requestTimeoutSec?: pulumi.Input<number>;
49
51
  /**
@@ -59,8 +61,7 @@ export interface ProviderArgs {
59
61
  */
60
62
  retryWaitMinSec?: pulumi.Input<number>;
61
63
  /**
62
- * Token for authenticating to UpCloud API. Can also be configured using the `UPCLOUD_TOKEN` environment variable or using
63
- * the system keyring. Use `upctl account login` command to save a token to the system keyring. (EXPERIMENTAL)
64
+ * Token for authenticating to UpCloud API. Can also be configured using the `UPCLOUD_TOKEN` environment variable or using the system keyring. Use `upctl account login` command to save a token to the system keyring. (EXPERIMENTAL)
64
65
  */
65
66
  token?: pulumi.Input<string>;
66
67
  /**
@@ -68,3 +69,13 @@ export interface ProviderArgs {
68
69
  */
69
70
  username?: pulumi.Input<string>;
70
71
  }
72
+ export declare namespace Provider {
73
+ /**
74
+ * The results of the Provider.terraformConfig method.
75
+ */
76
+ interface TerraformConfigResult {
77
+ readonly result: {
78
+ [key: string]: any;
79
+ };
80
+ }
81
+ }
package/provider.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Provider = void 0;
@@ -33,17 +33,25 @@ class Provider extends pulumi.ProviderResource {
33
33
  let resourceInputs = {};
34
34
  opts = opts || {};
35
35
  {
36
- resourceInputs["password"] = args ? args.password : undefined;
37
- resourceInputs["requestTimeoutSec"] = pulumi.output(args ? args.requestTimeoutSec : undefined).apply(JSON.stringify);
38
- resourceInputs["retryMax"] = pulumi.output(args ? args.retryMax : undefined).apply(JSON.stringify);
39
- resourceInputs["retryWaitMaxSec"] = pulumi.output(args ? args.retryWaitMaxSec : undefined).apply(JSON.stringify);
40
- resourceInputs["retryWaitMinSec"] = pulumi.output(args ? args.retryWaitMinSec : undefined).apply(JSON.stringify);
41
- resourceInputs["token"] = args ? args.token : undefined;
42
- resourceInputs["username"] = args ? args.username : undefined;
36
+ resourceInputs["password"] = args?.password;
37
+ resourceInputs["requestTimeoutSec"] = pulumi.output(args?.requestTimeoutSec).apply(JSON.stringify);
38
+ resourceInputs["retryMax"] = pulumi.output(args?.retryMax).apply(JSON.stringify);
39
+ resourceInputs["retryWaitMaxSec"] = pulumi.output(args?.retryWaitMaxSec).apply(JSON.stringify);
40
+ resourceInputs["retryWaitMinSec"] = pulumi.output(args?.retryWaitMinSec).apply(JSON.stringify);
41
+ resourceInputs["token"] = args?.token;
42
+ resourceInputs["username"] = args?.username;
43
43
  }
44
44
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
45
45
  super(Provider.__pulumiType, name, resourceInputs, opts);
46
46
  }
47
+ /**
48
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
49
+ */
50
+ terraformConfig() {
51
+ return pulumi.runtime.call("pulumi:providers:upcloud/terraformConfig", {
52
+ "__self__": this,
53
+ }, this);
54
+ }
47
55
  }
48
56
  exports.Provider = Provider;
49
57
  /** @internal */
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAgBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,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oB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE;YACnE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AA1DL,4BA2DC;AA1DG,gBAAgB;AACO,qBAAY,GAAG,SAAS,CAAC"}
package/router.d.ts CHANGED
@@ -54,8 +54,7 @@ export declare class Router extends pulumi.CustomResource {
54
54
  */
55
55
  readonly staticRoute: pulumi.Output<outputs.RouterStaticRoute[] | undefined>;
56
56
  /**
57
- * A collection of static routes for this router. This set includes both user and service defined static routes. The
58
- * objects in this set use the same schema as `staticRoute` blocks.
57
+ * A collection of static routes for this router. This set includes both user and service defined static routes. The objects in this set use the same schema as `staticRoute` blocks.
59
58
  */
60
59
  readonly staticRoutes: pulumi.Output<outputs.RouterStaticRoute[]>;
61
60
  /**
@@ -94,8 +93,7 @@ export interface RouterState {
94
93
  */
95
94
  staticRoute?: pulumi.Input<pulumi.Input<inputs.RouterStaticRoute>[]>;
96
95
  /**
97
- * A collection of static routes for this router. This set includes both user and service defined static routes. The
98
- * objects in this set use the same schema as `staticRoute` blocks.
96
+ * A collection of static routes for this router. This set includes both user and service defined static routes. The objects in this set use the same schema as `staticRoute` blocks.
99
97
  */
100
98
  staticRoutes?: pulumi.Input<pulumi.Input<inputs.RouterStaticRoute>[]>;
101
99
  /**
package/router.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Router = void 0;
@@ -34,7 +34,7 @@ class Router extends pulumi.CustomResource {
34
34
  * @param opts Optional settings to control the behavior of the CustomResource.
35
35
  */
36
36
  static get(name, id, state, opts) {
37
- return new Router(name, state, Object.assign(Object.assign({}, opts), { id: id }));
37
+ return new Router(name, state, { ...opts, id: id });
38
38
  }
39
39
  /**
40
40
  * Returns true if the given object is an instance of Router. This is designed to work even
@@ -51,18 +51,18 @@ class Router extends pulumi.CustomResource {
51
51
  opts = opts || {};
52
52
  if (opts.id) {
53
53
  const state = argsOrState;
54
- resourceInputs["attachedNetworks"] = state ? state.attachedNetworks : undefined;
55
- resourceInputs["labels"] = state ? state.labels : undefined;
56
- resourceInputs["name"] = state ? state.name : undefined;
57
- resourceInputs["staticRoute"] = state ? state.staticRoute : undefined;
58
- resourceInputs["staticRoutes"] = state ? state.staticRoutes : undefined;
59
- resourceInputs["type"] = state ? state.type : undefined;
54
+ resourceInputs["attachedNetworks"] = state?.attachedNetworks;
55
+ resourceInputs["labels"] = state?.labels;
56
+ resourceInputs["name"] = state?.name;
57
+ resourceInputs["staticRoute"] = state?.staticRoute;
58
+ resourceInputs["staticRoutes"] = state?.staticRoutes;
59
+ resourceInputs["type"] = state?.type;
60
60
  }
61
61
  else {
62
62
  const args = argsOrState;
63
- resourceInputs["labels"] = args ? args.labels : undefined;
64
- resourceInputs["name"] = args ? args.name : undefined;
65
- resourceInputs["staticRoute"] = args ? args.staticRoute : undefined;
63
+ resourceInputs["labels"] = args?.labels;
64
+ resourceInputs["name"] = args?.name;
65
+ resourceInputs["staticRoute"] = args?.staticRoute;
66
66
  resourceInputs["attachedNetworks"] = undefined /*out*/;
67
67
  resourceInputs["staticRoutes"] = undefined /*out*/;
68
68
  resourceInputs["type"] = undefined /*out*/;
package/router.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"router.js","sourceRoot":"","sources":["../router.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;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,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAnFL,wBAoFC;AAtEG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
package/server.d.ts CHANGED
@@ -41,8 +41,7 @@ export declare class Server extends pulumi.CustomResource {
41
41
  */
42
42
  readonly firewall: pulumi.Output<boolean>;
43
43
  /**
44
- * Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud
45
- * hosts
44
+ * Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
46
45
  */
47
46
  readonly host: pulumi.Output<number>;
48
47
  /**
@@ -50,8 +49,7 @@ export declare class Server extends pulumi.CustomResource {
50
49
  */
51
50
  readonly hostname: pulumi.Output<string>;
52
51
  /**
53
- * If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If
54
- * hot resizing fails, the apply operation will fail.
52
+ * If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If hot resizing fails, the apply operation will fail.
55
53
  */
56
54
  readonly hotResize: pulumi.Output<boolean>;
57
55
  /**
@@ -69,17 +67,15 @@ export declare class Server extends pulumi.CustomResource {
69
67
  */
70
68
  readonly mem: pulumi.Output<number>;
71
69
  /**
72
- * Is metadata service active for the server. The metadata service must be enabled when using recent cloud-init based
73
- * templates.
70
+ * Is metadata service active for the server. The metadata service must be enabled when using recent cloud-init based templates.
74
71
  */
75
72
  readonly metadata: pulumi.Output<boolean | undefined>;
76
73
  /**
77
- * One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
78
- * interfaces are matched to the server's actual network interfaces by `index` and `ipAddress` fields. This is to avoid
79
- * public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate
80
- * diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend
81
- * explicitly setting the value for `index` in configuration, when re-ordering interfaces or when removing interface from
82
- * middle of the list.
74
+ * One or more blocks describing the network interfaces of the server.
75
+ *
76
+ * In addition to list order, the configured network interfaces are matched to the server's actual network interfaces by `index` and `ipAddress` fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list.
77
+ *
78
+ * We recommend explicitly setting the value for `index` in configuration, when re-ordering interfaces or when removing interface from middle of the list.
83
79
  */
84
80
  readonly networkInterfaces: pulumi.Output<outputs.ServerNetworkInterface[] | undefined>;
85
81
  /**
@@ -91,9 +87,7 @@ export declare class Server extends pulumi.CustomResource {
91
87
  */
92
88
  readonly plan: pulumi.Output<string>;
93
89
  /**
94
- * The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
95
- * `members` property of `upcloud.ServerGroup`. Only one of the these should be defined at a time. This value is only
96
- * updated if it has been set to non-zero value.
90
+ * The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the `members` property of `upcloud.ServerGroup`. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value.
97
91
  */
98
92
  readonly serverGroup: pulumi.Output<string | undefined>;
99
93
  readonly simpleBackup: pulumi.Output<outputs.ServerSimpleBackup | undefined>;
@@ -155,8 +149,7 @@ export interface ServerState {
155
149
  */
156
150
  firewall?: pulumi.Input<boolean>;
157
151
  /**
158
- * Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud
159
- * hosts
152
+ * Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
160
153
  */
161
154
  host?: pulumi.Input<number>;
162
155
  /**
@@ -164,8 +157,7 @@ export interface ServerState {
164
157
  */
165
158
  hostname?: pulumi.Input<string>;
166
159
  /**
167
- * If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If
168
- * hot resizing fails, the apply operation will fail.
160
+ * If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If hot resizing fails, the apply operation will fail.
169
161
  */
170
162
  hotResize?: pulumi.Input<boolean>;
171
163
  /**
@@ -183,17 +175,15 @@ export interface ServerState {
183
175
  */
184
176
  mem?: pulumi.Input<number>;
185
177
  /**
186
- * Is metadata service active for the server. The metadata service must be enabled when using recent cloud-init based
187
- * templates.
178
+ * Is metadata service active for the server. The metadata service must be enabled when using recent cloud-init based templates.
188
179
  */
189
180
  metadata?: pulumi.Input<boolean>;
190
181
  /**
191
- * One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
192
- * interfaces are matched to the server's actual network interfaces by `index` and `ipAddress` fields. This is to avoid
193
- * public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate
194
- * diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend
195
- * explicitly setting the value for `index` in configuration, when re-ordering interfaces or when removing interface from
196
- * middle of the list.
182
+ * One or more blocks describing the network interfaces of the server.
183
+ *
184
+ * In addition to list order, the configured network interfaces are matched to the server's actual network interfaces by `index` and `ipAddress` fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list.
185
+ *
186
+ * We recommend explicitly setting the value for `index` in configuration, when re-ordering interfaces or when removing interface from middle of the list.
197
187
  */
198
188
  networkInterfaces?: pulumi.Input<pulumi.Input<inputs.ServerNetworkInterface>[]>;
199
189
  /**
@@ -205,9 +195,7 @@ export interface ServerState {
205
195
  */
206
196
  plan?: pulumi.Input<string>;
207
197
  /**
208
- * The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
209
- * `members` property of `upcloud.ServerGroup`. Only one of the these should be defined at a time. This value is only
210
- * updated if it has been set to non-zero value.
198
+ * The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the `members` property of `upcloud.ServerGroup`. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value.
211
199
  */
212
200
  serverGroup?: pulumi.Input<string>;
213
201
  simpleBackup?: pulumi.Input<inputs.ServerSimpleBackup>;
@@ -261,8 +249,7 @@ export interface ServerArgs {
261
249
  */
262
250
  firewall?: pulumi.Input<boolean>;
263
251
  /**
264
- * Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud
265
- * hosts
252
+ * Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts
266
253
  */
267
254
  host?: pulumi.Input<number>;
268
255
  /**
@@ -270,8 +257,7 @@ export interface ServerArgs {
270
257
  */
271
258
  hostname: pulumi.Input<string>;
272
259
  /**
273
- * If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If
274
- * hot resizing fails, the apply operation will fail.
260
+ * If set to true, allows changing the server plan without requiring a reboot. This enables hot resizing of the server. If hot resizing fails, the apply operation will fail.
275
261
  */
276
262
  hotResize?: pulumi.Input<boolean>;
277
263
  /**
@@ -289,17 +275,15 @@ export interface ServerArgs {
289
275
  */
290
276
  mem?: pulumi.Input<number>;
291
277
  /**
292
- * Is metadata service active for the server. The metadata service must be enabled when using recent cloud-init based
293
- * templates.
278
+ * Is metadata service active for the server. The metadata service must be enabled when using recent cloud-init based templates.
294
279
  */
295
280
  metadata?: pulumi.Input<boolean>;
296
281
  /**
297
- * One or more blocks describing the network interfaces of the server. In addition to list order, the configured network
298
- * interfaces are matched to the server's actual network interfaces by `index` and `ipAddress` fields. This is to avoid
299
- * public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate
300
- * diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list. We recommend
301
- * explicitly setting the value for `index` in configuration, when re-ordering interfaces or when removing interface from
302
- * middle of the list.
282
+ * One or more blocks describing the network interfaces of the server.
283
+ *
284
+ * In addition to list order, the configured network interfaces are matched to the server's actual network interfaces by `index` and `ipAddress` fields. This is to avoid public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate diffs in the plan, when interfaces are re-ordered or when interface is removed from the middle of the list.
285
+ *
286
+ * We recommend explicitly setting the value for `index` in configuration, when re-ordering interfaces or when removing interface from middle of the list.
303
287
  */
304
288
  networkInterfaces?: pulumi.Input<pulumi.Input<inputs.ServerNetworkInterface>[]>;
305
289
  /**
@@ -311,9 +295,7 @@ export interface ServerArgs {
311
295
  */
312
296
  plan?: pulumi.Input<string>;
313
297
  /**
314
- * The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the
315
- * `members` property of `upcloud.ServerGroup`. Only one of the these should be defined at a time. This value is only
316
- * updated if it has been set to non-zero value.
298
+ * The UUID of a server group to attach this server to. Note that the server can also be attached to a server group via the `members` property of `upcloud.ServerGroup`. Only one of the these should be defined at a time. This value is only updated if it has been set to non-zero value.
317
299
  */
318
300
  serverGroup?: pulumi.Input<string>;
319
301
  simpleBackup?: pulumi.Input<inputs.ServerSimpleBackup>;
package/server.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Server = void 0;
@@ -27,7 +27,7 @@ class Server extends pulumi.CustomResource {
27
27
  * @param opts Optional settings to control the behavior of the CustomResource.
28
28
  */
29
29
  static get(name, id, state, opts) {
30
- return new Server(name, state, Object.assign(Object.assign({}, opts), { id: id }));
30
+ return new Server(name, state, { ...opts, id: id });
31
31
  }
32
32
  /**
33
33
  * Returns true if the given object is an instance of Server. This is designed to work even
@@ -44,61 +44,61 @@ class Server extends pulumi.CustomResource {
44
44
  opts = opts || {};
45
45
  if (opts.id) {
46
46
  const state = argsOrState;
47
- resourceInputs["bootOrder"] = state ? state.bootOrder : undefined;
48
- resourceInputs["cpu"] = state ? state.cpu : undefined;
49
- resourceInputs["firewall"] = state ? state.firewall : undefined;
50
- resourceInputs["host"] = state ? state.host : undefined;
51
- resourceInputs["hostname"] = state ? state.hostname : undefined;
52
- resourceInputs["hotResize"] = state ? state.hotResize : undefined;
53
- resourceInputs["labels"] = state ? state.labels : undefined;
54
- resourceInputs["login"] = state ? state.login : undefined;
55
- resourceInputs["mem"] = state ? state.mem : undefined;
56
- resourceInputs["metadata"] = state ? state.metadata : undefined;
57
- resourceInputs["networkInterfaces"] = state ? state.networkInterfaces : undefined;
58
- resourceInputs["nicModel"] = state ? state.nicModel : undefined;
59
- resourceInputs["plan"] = state ? state.plan : undefined;
60
- resourceInputs["serverGroup"] = state ? state.serverGroup : undefined;
61
- resourceInputs["simpleBackup"] = state ? state.simpleBackup : undefined;
62
- resourceInputs["storageDevices"] = state ? state.storageDevices : undefined;
63
- resourceInputs["tags"] = state ? state.tags : undefined;
64
- resourceInputs["template"] = state ? state.template : undefined;
65
- resourceInputs["timezone"] = state ? state.timezone : undefined;
66
- resourceInputs["title"] = state ? state.title : undefined;
67
- resourceInputs["userData"] = state ? state.userData : undefined;
68
- resourceInputs["videoModel"] = state ? state.videoModel : undefined;
69
- resourceInputs["zone"] = state ? state.zone : undefined;
47
+ resourceInputs["bootOrder"] = state?.bootOrder;
48
+ resourceInputs["cpu"] = state?.cpu;
49
+ resourceInputs["firewall"] = state?.firewall;
50
+ resourceInputs["host"] = state?.host;
51
+ resourceInputs["hostname"] = state?.hostname;
52
+ resourceInputs["hotResize"] = state?.hotResize;
53
+ resourceInputs["labels"] = state?.labels;
54
+ resourceInputs["login"] = state?.login;
55
+ resourceInputs["mem"] = state?.mem;
56
+ resourceInputs["metadata"] = state?.metadata;
57
+ resourceInputs["networkInterfaces"] = state?.networkInterfaces;
58
+ resourceInputs["nicModel"] = state?.nicModel;
59
+ resourceInputs["plan"] = state?.plan;
60
+ resourceInputs["serverGroup"] = state?.serverGroup;
61
+ resourceInputs["simpleBackup"] = state?.simpleBackup;
62
+ resourceInputs["storageDevices"] = state?.storageDevices;
63
+ resourceInputs["tags"] = state?.tags;
64
+ resourceInputs["template"] = state?.template;
65
+ resourceInputs["timezone"] = state?.timezone;
66
+ resourceInputs["title"] = state?.title;
67
+ resourceInputs["userData"] = state?.userData;
68
+ resourceInputs["videoModel"] = state?.videoModel;
69
+ resourceInputs["zone"] = state?.zone;
70
70
  }
71
71
  else {
72
72
  const args = argsOrState;
73
- if ((!args || args.hostname === undefined) && !opts.urn) {
73
+ if (args?.hostname === undefined && !opts.urn) {
74
74
  throw new Error("Missing required property 'hostname'");
75
75
  }
76
- if ((!args || args.zone === undefined) && !opts.urn) {
76
+ if (args?.zone === undefined && !opts.urn) {
77
77
  throw new Error("Missing required property 'zone'");
78
78
  }
79
- resourceInputs["bootOrder"] = args ? args.bootOrder : undefined;
80
- resourceInputs["cpu"] = args ? args.cpu : undefined;
81
- resourceInputs["firewall"] = args ? args.firewall : undefined;
82
- resourceInputs["host"] = args ? args.host : undefined;
83
- resourceInputs["hostname"] = args ? args.hostname : undefined;
84
- resourceInputs["hotResize"] = args ? args.hotResize : undefined;
85
- resourceInputs["labels"] = args ? args.labels : undefined;
86
- resourceInputs["login"] = args ? args.login : undefined;
87
- resourceInputs["mem"] = args ? args.mem : undefined;
88
- resourceInputs["metadata"] = args ? args.metadata : undefined;
89
- resourceInputs["networkInterfaces"] = args ? args.networkInterfaces : undefined;
90
- resourceInputs["nicModel"] = args ? args.nicModel : undefined;
91
- resourceInputs["plan"] = args ? args.plan : undefined;
92
- resourceInputs["serverGroup"] = args ? args.serverGroup : undefined;
93
- resourceInputs["simpleBackup"] = args ? args.simpleBackup : undefined;
94
- resourceInputs["storageDevices"] = args ? args.storageDevices : undefined;
95
- resourceInputs["tags"] = args ? args.tags : undefined;
96
- resourceInputs["template"] = args ? args.template : undefined;
97
- resourceInputs["timezone"] = args ? args.timezone : undefined;
98
- resourceInputs["title"] = args ? args.title : undefined;
99
- resourceInputs["userData"] = args ? args.userData : undefined;
100
- resourceInputs["videoModel"] = args ? args.videoModel : undefined;
101
- resourceInputs["zone"] = args ? args.zone : undefined;
79
+ resourceInputs["bootOrder"] = args?.bootOrder;
80
+ resourceInputs["cpu"] = args?.cpu;
81
+ resourceInputs["firewall"] = args?.firewall;
82
+ resourceInputs["host"] = args?.host;
83
+ resourceInputs["hostname"] = args?.hostname;
84
+ resourceInputs["hotResize"] = args?.hotResize;
85
+ resourceInputs["labels"] = args?.labels;
86
+ resourceInputs["login"] = args?.login;
87
+ resourceInputs["mem"] = args?.mem;
88
+ resourceInputs["metadata"] = args?.metadata;
89
+ resourceInputs["networkInterfaces"] = args?.networkInterfaces;
90
+ resourceInputs["nicModel"] = args?.nicModel;
91
+ resourceInputs["plan"] = args?.plan;
92
+ resourceInputs["serverGroup"] = args?.serverGroup;
93
+ resourceInputs["simpleBackup"] = args?.simpleBackup;
94
+ resourceInputs["storageDevices"] = args?.storageDevices;
95
+ resourceInputs["tags"] = args?.tags;
96
+ resourceInputs["template"] = args?.template;
97
+ resourceInputs["timezone"] = args?.timezone;
98
+ resourceInputs["title"] = args?.title;
99
+ resourceInputs["userData"] = args?.userData;
100
+ resourceInputs["videoModel"] = args?.videoModel;
101
+ resourceInputs["zone"] = args?.zone;
102
102
  }
103
103
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
104
  super(Server.__pulumiType, name, resourceInputs, opts);