@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.
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +2 -4
- package/config/vars.js +1 -1
- package/config/vars.js.map +1 -1
- package/floatingIpAddress.d.ts +3 -6
- package/floatingIpAddress.js +11 -11
- package/floatingIpAddress.js.map +1 -1
- package/gateway.d.ts +5 -10
- package/gateway.js +24 -24
- package/gateway.js.map +1 -1
- package/gatewayConnection.d.ts +2 -4
- package/gatewayConnection.js +15 -15
- package/gatewayConnection.js.map +1 -1
- package/gatewayConnectionTunnel.js +20 -20
- package/gatewayConnectionTunnel.js.map +1 -1
- package/getHosts.d.ts +2 -2
- package/getHosts.js +3 -3
- package/getHosts.js.map +1 -1
- package/getIpAddresses.d.ts +2 -2
- package/getIpAddresses.js +3 -3
- package/getIpAddresses.js.map +1 -1
- package/getKubernetesCluster.d.ts +0 -2
- package/getKubernetesCluster.js +1 -3
- package/getKubernetesCluster.js.map +1 -1
- package/getLoadBalancerDnsChallengeDomain.d.ts +2 -2
- package/getLoadBalancerDnsChallengeDomain.js +3 -3
- package/getLoadBalancerDnsChallengeDomain.js.map +1 -1
- package/getManagedDatabaseMysqlSessions.d.ts +0 -2
- package/getManagedDatabaseMysqlSessions.js +1 -3
- package/getManagedDatabaseMysqlSessions.js.map +1 -1
- package/getManagedDatabaseOpensearchIndices.d.ts +0 -2
- package/getManagedDatabaseOpensearchIndices.js +1 -3
- package/getManagedDatabaseOpensearchIndices.js.map +1 -1
- package/getManagedDatabasePostgresqlSessions.d.ts +0 -2
- package/getManagedDatabasePostgresqlSessions.js +1 -3
- package/getManagedDatabasePostgresqlSessions.js.map +1 -1
- package/getManagedDatabaseRedisSessions.d.ts +0 -2
- package/getManagedDatabaseRedisSessions.js +1 -3
- package/getManagedDatabaseRedisSessions.js.map +1 -1
- package/getManagedDatabaseValkeySessions.d.ts +0 -2
- package/getManagedDatabaseValkeySessions.js +1 -3
- package/getManagedDatabaseValkeySessions.js.map +1 -1
- package/getManagedObjectStoragePolicies.js +1 -1
- package/getManagedObjectStoragePolicies.js.map +1 -1
- package/getManagedObjectStorageRegions.js +1 -1
- package/getManagedObjectStorageRegions.js.map +1 -1
- package/getNetworks.js +1 -1
- package/getNetworks.js.map +1 -1
- package/getStorage.d.ts +0 -2
- package/getStorage.js +1 -3
- package/getStorage.js.map +1 -1
- package/getTags.js +1 -1
- package/getTags.js.map +1 -1
- package/getZone.js +1 -1
- package/getZone.js.map +1 -1
- package/getZones.js +1 -1
- package/getZones.js.map +1 -1
- package/index.d.ts +1 -3
- package/index.js +19 -5
- package/index.js.map +1 -1
- package/kubernetesCluster.d.ts +18 -27
- package/kubernetesCluster.js +28 -28
- package/kubernetesCluster.js.map +1 -1
- package/kubernetesNodeGroup.d.ts +42 -30
- package/kubernetesNodeGroup.js +57 -33
- package/kubernetesNodeGroup.js.map +1 -1
- package/loadbalancer.d.ts +6 -18
- package/loadbalancer.js +28 -28
- package/loadbalancer.js.map +1 -1
- package/loadbalancerBackend.js +13 -13
- package/loadbalancerBackend.js.map +1 -1
- package/loadbalancerBackendTlsConfig.js +10 -10
- package/loadbalancerBackendTlsConfig.js.map +1 -1
- package/loadbalancerDynamicBackendMember.js +19 -19
- package/loadbalancerDynamicBackendMember.js.map +1 -1
- package/loadbalancerDynamicCertificateBundle.js +13 -13
- package/loadbalancerDynamicCertificateBundle.js.map +1 -1
- package/loadbalancerFrontend.d.ts +12 -18
- package/loadbalancerFrontend.js +22 -22
- package/loadbalancerFrontend.js.map +1 -1
- package/loadbalancerFrontendRule.js +16 -16
- package/loadbalancerFrontendRule.js.map +1 -1
- package/loadbalancerFrontendTlsConfig.js +10 -10
- package/loadbalancerFrontendTlsConfig.js.map +1 -1
- package/loadbalancerManualCertificateBundle.js +15 -15
- package/loadbalancerManualCertificateBundle.js.map +1 -1
- package/loadbalancerResolver.d.ts +3 -6
- package/loadbalancerResolver.js +25 -25
- package/loadbalancerResolver.js.map +1 -1
- package/loadbalancerStaticBackendMember.js +19 -19
- package/loadbalancerStaticBackendMember.js.map +1 -1
- package/managedDatabaseLogicalDatabase.js +11 -11
- package/managedDatabaseLogicalDatabase.js.map +1 -1
- package/managedDatabaseMysql.d.ts +3 -6
- package/managedDatabaseMysql.js +37 -37
- package/managedDatabaseMysql.js.map +1 -1
- package/managedDatabaseOpensearch.d.ts +9 -18
- package/managedDatabaseOpensearch.js +41 -41
- package/managedDatabaseOpensearch.js.map +1 -1
- package/managedDatabasePostgresql.d.ts +3 -6
- package/managedDatabasePostgresql.js +38 -38
- package/managedDatabasePostgresql.js.map +1 -1
- package/managedDatabaseRedis.d.ts +3 -6
- package/managedDatabaseRedis.js +37 -37
- package/managedDatabaseRedis.js.map +1 -1
- package/managedDatabaseUser.js +21 -21
- package/managedDatabaseUser.js.map +1 -1
- package/managedDatabaseValkey.d.ts +3 -6
- package/managedDatabaseValkey.js +37 -37
- package/managedDatabaseValkey.js.map +1 -1
- package/managedObjectStorage.d.ts +3 -9
- package/managedObjectStorage.js +18 -18
- package/managedObjectStorage.js.map +1 -1
- package/managedObjectStorageBucket.js +9 -9
- package/managedObjectStorageBucket.js.map +1 -1
- package/managedObjectStorageCustomDomain.d.ts +3 -7
- package/managedObjectStorageCustomDomain.js +10 -11
- package/managedObjectStorageCustomDomain.js.map +1 -1
- package/managedObjectStoragePolicy.d.ts +3 -6
- package/managedObjectStoragePolicy.js +18 -18
- package/managedObjectStoragePolicy.js.map +1 -1
- package/managedObjectStorageUser.d.ts +3 -9
- package/managedObjectStorageUser.js +10 -10
- package/managedObjectStorageUser.js.map +1 -1
- package/managedObjectStorageUserAccessKey.js +15 -15
- package/managedObjectStorageUserAccessKey.js.map +1 -1
- package/managedObjectStorageUserPolicy.js +10 -10
- package/managedObjectStorageUserPolicy.js.map +1 -1
- package/network.js +15 -15
- package/network.js.map +1 -1
- package/networkPeering.js +14 -14
- package/networkPeering.js.map +1 -1
- package/objectStorage.d.ts +40 -37
- package/objectStorage.js +24 -27
- package/objectStorage.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +17 -6
- package/provider.js +16 -8
- package/provider.js.map +1 -1
- package/router.d.ts +2 -4
- package/router.js +11 -11
- package/router.js.map +1 -1
- package/server.d.ts +27 -45
- package/server.js +50 -50
- package/server.js.map +1 -1
- package/serverFirewallRules.d.ts +24 -15
- package/serverFirewallRules.js +7 -7
- package/serverFirewallRules.js.map +1 -1
- package/serverGroup.d.ts +45 -36
- package/serverGroup.js +13 -13
- package/serverGroup.js.map +1 -1
- package/storage.d.ts +11 -22
- package/storage.js +29 -29
- package/storage.js.map +1 -1
- package/storageBackup.d.ts +2 -4
- package/storageBackup.js +17 -17
- package/storageBackup.js.map +1 -1
- package/storageTemplate.d.ts +2 -4
- package/storageTemplate.js +16 -16
- package/storageTemplate.js.map +1 -1
- package/tag.js +8 -8
- package/tag.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/utilities.d.ts +0 -4
- package/utilities.js +20 -30
- 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
|
|
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,
|
|
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
|
|
85
|
-
resourceInputs["buckets"] = state
|
|
86
|
-
resourceInputs["created"] = state
|
|
87
|
-
resourceInputs["description"] = state
|
|
88
|
-
resourceInputs["name"] = state
|
|
89
|
-
resourceInputs["secretKey"] = state
|
|
90
|
-
resourceInputs["size"] = state
|
|
91
|
-
resourceInputs["state"] = state
|
|
92
|
-
resourceInputs["url"] = state
|
|
93
|
-
resourceInputs["usedSpace"] = state
|
|
94
|
-
resourceInputs["zone"] = state
|
|
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 (
|
|
98
|
+
if (args?.accessKey === undefined && !opts.urn) {
|
|
99
99
|
throw new Error("Missing required property 'accessKey'");
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
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 (
|
|
104
|
+
if (args?.size === undefined && !opts.urn) {
|
|
108
105
|
throw new Error("Missing required property 'size'");
|
|
109
106
|
}
|
|
110
|
-
if (
|
|
107
|
+
if (args?.zone === undefined && !opts.urn) {
|
|
111
108
|
throw new Error("Missing required property 'zone'");
|
|
112
109
|
}
|
|
113
|
-
resourceInputs["accessKey"] = args
|
|
114
|
-
resourceInputs["buckets"] = args
|
|
115
|
-
resourceInputs["description"] = args
|
|
116
|
-
resourceInputs["name"] = args
|
|
117
|
-
resourceInputs["secretKey"] = args
|
|
118
|
-
resourceInputs["size"] = args
|
|
119
|
-
resourceInputs["zone"] = args
|
|
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*/;
|
package/objectStorage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectStorage.js","sourceRoot":"","sources":["../objectStorage.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"objectStorage.js","sourceRoot":"","sources":["../objectStorage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAA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AC1C,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.
|
|
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.
|
|
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
|
|
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
|
|
37
|
-
resourceInputs["requestTimeoutSec"] = pulumi.output(args
|
|
38
|
-
resourceInputs["retryMax"] = pulumi.output(args
|
|
39
|
-
resourceInputs["retryWaitMaxSec"] = pulumi.output(args
|
|
40
|
-
resourceInputs["retryWaitMinSec"] = pulumi.output(args
|
|
41
|
-
resourceInputs["token"] = args
|
|
42
|
-
resourceInputs["username"] = args
|
|
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,
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,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;IAeD;;;;;;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,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACnG,cAAc,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACjF,cAAc,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/F,cAAc,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/F,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,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
|
|
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,
|
|
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
|
|
55
|
-
resourceInputs["labels"] = state
|
|
56
|
-
resourceInputs["name"] = state
|
|
57
|
-
resourceInputs["staticRoute"] = state
|
|
58
|
-
resourceInputs["staticRoutes"] = state
|
|
59
|
-
resourceInputs["type"] = state
|
|
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
|
|
64
|
-
resourceInputs["name"] = args
|
|
65
|
-
resourceInputs["staticRoute"] = args
|
|
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,
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../router.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC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AAM,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.
|
|
78
|
-
*
|
|
79
|
-
* public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate
|
|
80
|
-
*
|
|
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.
|
|
192
|
-
*
|
|
193
|
-
* public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate
|
|
194
|
-
*
|
|
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.
|
|
298
|
-
*
|
|
299
|
-
* public and utility network interfaces being re-assigned when the server is updated. This might result to inaccurate
|
|
300
|
-
*
|
|
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
|
|
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,
|
|
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
|
|
48
|
-
resourceInputs["cpu"] = state
|
|
49
|
-
resourceInputs["firewall"] = state
|
|
50
|
-
resourceInputs["host"] = state
|
|
51
|
-
resourceInputs["hostname"] = state
|
|
52
|
-
resourceInputs["hotResize"] = state
|
|
53
|
-
resourceInputs["labels"] = state
|
|
54
|
-
resourceInputs["login"] = state
|
|
55
|
-
resourceInputs["mem"] = state
|
|
56
|
-
resourceInputs["metadata"] = state
|
|
57
|
-
resourceInputs["networkInterfaces"] = state
|
|
58
|
-
resourceInputs["nicModel"] = state
|
|
59
|
-
resourceInputs["plan"] = state
|
|
60
|
-
resourceInputs["serverGroup"] = state
|
|
61
|
-
resourceInputs["simpleBackup"] = state
|
|
62
|
-
resourceInputs["storageDevices"] = state
|
|
63
|
-
resourceInputs["tags"] = state
|
|
64
|
-
resourceInputs["template"] = state
|
|
65
|
-
resourceInputs["timezone"] = state
|
|
66
|
-
resourceInputs["title"] = state
|
|
67
|
-
resourceInputs["userData"] = state
|
|
68
|
-
resourceInputs["videoModel"] = state
|
|
69
|
-
resourceInputs["zone"] = state
|
|
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 (
|
|
73
|
+
if (args?.hostname === undefined && !opts.urn) {
|
|
74
74
|
throw new Error("Missing required property 'hostname'");
|
|
75
75
|
}
|
|
76
|
-
if (
|
|
76
|
+
if (args?.zone === undefined && !opts.urn) {
|
|
77
77
|
throw new Error("Missing required property 'zone'");
|
|
78
78
|
}
|
|
79
|
-
resourceInputs["bootOrder"] = args
|
|
80
|
-
resourceInputs["cpu"] = args
|
|
81
|
-
resourceInputs["firewall"] = args
|
|
82
|
-
resourceInputs["host"] = args
|
|
83
|
-
resourceInputs["hostname"] = args
|
|
84
|
-
resourceInputs["hotResize"] = args
|
|
85
|
-
resourceInputs["labels"] = args
|
|
86
|
-
resourceInputs["login"] = args
|
|
87
|
-
resourceInputs["mem"] = args
|
|
88
|
-
resourceInputs["metadata"] = args
|
|
89
|
-
resourceInputs["networkInterfaces"] = args
|
|
90
|
-
resourceInputs["nicModel"] = args
|
|
91
|
-
resourceInputs["plan"] = args
|
|
92
|
-
resourceInputs["serverGroup"] = args
|
|
93
|
-
resourceInputs["simpleBackup"] = args
|
|
94
|
-
resourceInputs["storageDevices"] = args
|
|
95
|
-
resourceInputs["tags"] = args
|
|
96
|
-
resourceInputs["template"] = args
|
|
97
|
-
resourceInputs["timezone"] = args
|
|
98
|
-
resourceInputs["title"] = args
|
|
99
|
-
resourceInputs["userData"] = args
|
|
100
|
-
resourceInputs["videoModel"] = args
|
|
101
|
-
resourceInputs["zone"] = args
|
|
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);
|