@upcloud/pulumi-upcloud 0.5.0 → 0.6.0-alpha.1756908457
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/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;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,E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AC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAhML,wBAiMC;AAnLG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
|
package/serverFirewallRules.d.ts
CHANGED
|
@@ -66,11 +66,14 @@ export declare class ServerFirewallRules extends pulumi.CustomResource {
|
|
|
66
66
|
static isInstance(obj: any): obj is ServerFirewallRules;
|
|
67
67
|
/**
|
|
68
68
|
* A single firewall rule. The rules are evaluated in order. The maximum number of firewall rules per server is 1000.
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
69
|
+
*
|
|
70
|
+
* Typical firewall rule should have `action`, `direction`, `protocol`, `family` and at least one destination/source-address/port range.
|
|
71
|
+
*
|
|
72
|
+
* A default rule can be created by providing only `action` and `direction` attributes. Default rule should be defined last.
|
|
73
|
+
*
|
|
74
|
+
* If used, IP address and port ranges must have both start and end values specified. These can be the same value if only one IP address or port number is specified.
|
|
75
|
+
* Source and destination port numbers can only be set if the protocol is TCP or UDP.
|
|
76
|
+
* The ICMP type may only be set if the protocol is ICMP.
|
|
74
77
|
*/
|
|
75
78
|
readonly firewallRules: pulumi.Output<outputs.ServerFirewallRulesFirewallRule[] | undefined>;
|
|
76
79
|
/**
|
|
@@ -92,11 +95,14 @@ export declare class ServerFirewallRules extends pulumi.CustomResource {
|
|
|
92
95
|
export interface ServerFirewallRulesState {
|
|
93
96
|
/**
|
|
94
97
|
* A single firewall rule. The rules are evaluated in order. The maximum number of firewall rules per server is 1000.
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
98
|
+
*
|
|
99
|
+
* Typical firewall rule should have `action`, `direction`, `protocol`, `family` and at least one destination/source-address/port range.
|
|
100
|
+
*
|
|
101
|
+
* A default rule can be created by providing only `action` and `direction` attributes. Default rule should be defined last.
|
|
102
|
+
*
|
|
103
|
+
* If used, IP address and port ranges must have both start and end values specified. These can be the same value if only one IP address or port number is specified.
|
|
104
|
+
* Source and destination port numbers can only be set if the protocol is TCP or UDP.
|
|
105
|
+
* The ICMP type may only be set if the protocol is ICMP.
|
|
100
106
|
*/
|
|
101
107
|
firewallRules?: pulumi.Input<pulumi.Input<inputs.ServerFirewallRulesFirewallRule>[]>;
|
|
102
108
|
/**
|
|
@@ -110,11 +116,14 @@ export interface ServerFirewallRulesState {
|
|
|
110
116
|
export interface ServerFirewallRulesArgs {
|
|
111
117
|
/**
|
|
112
118
|
* A single firewall rule. The rules are evaluated in order. The maximum number of firewall rules per server is 1000.
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
119
|
+
*
|
|
120
|
+
* Typical firewall rule should have `action`, `direction`, `protocol`, `family` and at least one destination/source-address/port range.
|
|
121
|
+
*
|
|
122
|
+
* A default rule can be created by providing only `action` and `direction` attributes. Default rule should be defined last.
|
|
123
|
+
*
|
|
124
|
+
* If used, IP address and port ranges must have both start and end values specified. These can be the same value if only one IP address or port number is specified.
|
|
125
|
+
* Source and destination port numbers can only be set if the protocol is TCP or UDP.
|
|
126
|
+
* The ICMP type may only be set if the protocol is ICMP.
|
|
118
127
|
*/
|
|
119
128
|
firewallRules?: pulumi.Input<pulumi.Input<inputs.ServerFirewallRulesFirewallRule>[]>;
|
|
120
129
|
/**
|
package/serverFirewallRules.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.ServerFirewallRules = void 0;
|
|
@@ -63,7 +63,7 @@ class ServerFirewallRules extends pulumi.CustomResource {
|
|
|
63
63
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
64
|
*/
|
|
65
65
|
static get(name, id, state, opts) {
|
|
66
|
-
return new ServerFirewallRules(name, state,
|
|
66
|
+
return new ServerFirewallRules(name, state, { ...opts, id: id });
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* Returns true if the given object is an instance of ServerFirewallRules. This is designed to work even
|
|
@@ -80,16 +80,16 @@ class ServerFirewallRules extends pulumi.CustomResource {
|
|
|
80
80
|
opts = opts || {};
|
|
81
81
|
if (opts.id) {
|
|
82
82
|
const state = argsOrState;
|
|
83
|
-
resourceInputs["firewallRules"] = state
|
|
84
|
-
resourceInputs["serverId"] = state
|
|
83
|
+
resourceInputs["firewallRules"] = state?.firewallRules;
|
|
84
|
+
resourceInputs["serverId"] = state?.serverId;
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
87
|
const args = argsOrState;
|
|
88
|
-
if (
|
|
88
|
+
if (args?.serverId === undefined && !opts.urn) {
|
|
89
89
|
throw new Error("Missing required property 'serverId'");
|
|
90
90
|
}
|
|
91
|
-
resourceInputs["firewallRules"] = args
|
|
92
|
-
resourceInputs["serverId"] = args
|
|
91
|
+
resourceInputs["firewallRules"] = args?.firewallRules;
|
|
92
|
+
resourceInputs["serverId"] = args?.serverId;
|
|
93
93
|
}
|
|
94
94
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
95
95
|
super(ServerFirewallRules.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverFirewallRules.js","sourceRoot":"","sources":["../serverFirewallRules.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"serverFirewallRules.js","sourceRoot":"","sources":["../serverFirewallRules.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC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SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAtEL,kDAuEC;AAzDG,gBAAgB;AACO,gCAAY,GAAG,uDAAuD,CAAC"}
|
package/serverGroup.d.ts
CHANGED
|
@@ -47,14 +47,19 @@ export declare class ServerGroup extends pulumi.CustomResource {
|
|
|
47
47
|
*/
|
|
48
48
|
static isInstance(obj: any): obj is ServerGroup;
|
|
49
49
|
/**
|
|
50
|
-
* Defines if a server group is an anti-affinity group. Setting this to `strict` or `yes` will
|
|
51
|
-
* group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`.
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
50
|
+
* Defines if a server group is an anti-affinity group. Setting this to `strict` or `yes` will
|
|
51
|
+
* result in all servers in the group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`.
|
|
52
|
+
*
|
|
53
|
+
* * `strict` policy doesn't allow servers in the same server group to be on the same host
|
|
54
|
+
* * `yes` refers to best-effort policy and tries to put servers on different hosts, but this is not guaranteed
|
|
55
|
+
* * `no` refers to having no policy and thus no effect on server host affinity
|
|
56
|
+
*
|
|
57
|
+
* To verify if the anti-affinity policies are met by requesting a server group details from API. For more information
|
|
58
|
+
* please see UpCloud API documentation on server groups.
|
|
59
|
+
*
|
|
60
|
+
* Plese also note that anti-affinity policies are only applied on server start. This means that if anti-affinity
|
|
61
|
+
* policies in server group are not met, you need to manually restart the servers in said group,
|
|
62
|
+
* for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
|
|
58
63
|
*/
|
|
59
64
|
readonly antiAffinityPolicy: pulumi.Output<string>;
|
|
60
65
|
/**
|
|
@@ -64,8 +69,7 @@ export declare class ServerGroup extends pulumi.CustomResource {
|
|
|
64
69
|
[key: string]: string;
|
|
65
70
|
}>;
|
|
66
71
|
/**
|
|
67
|
-
* UUIDs of the servers that are members of this group. Servers can also be attached to the server group via `serverGroup`
|
|
68
|
-
* property of `upcloud.Server`. See also `trackMembers` property.
|
|
72
|
+
* UUIDs of the servers that are members of this group. Servers can also be attached to the server group via `serverGroup` property of `upcloud.Server`. See also `trackMembers` property.
|
|
69
73
|
*/
|
|
70
74
|
readonly members: pulumi.Output<string[] | undefined>;
|
|
71
75
|
/**
|
|
@@ -73,8 +77,7 @@ export declare class ServerGroup extends pulumi.CustomResource {
|
|
|
73
77
|
*/
|
|
74
78
|
readonly title: pulumi.Output<string>;
|
|
75
79
|
/**
|
|
76
|
-
* Controls if members of the server group are being tracked in this resource. Set to `false` when using `serverGroup`
|
|
77
|
-
* property of `upcloud.Server` to attach servers to the server group to avoid delayed state updates.
|
|
80
|
+
* Controls if members of the server group are being tracked in this resource. Set to `false` when using `serverGroup` property of `upcloud.Server` to attach servers to the server group to avoid delayed state updates.
|
|
78
81
|
*/
|
|
79
82
|
readonly trackMembers: pulumi.Output<boolean>;
|
|
80
83
|
/**
|
|
@@ -91,14 +94,19 @@ export declare class ServerGroup extends pulumi.CustomResource {
|
|
|
91
94
|
*/
|
|
92
95
|
export interface ServerGroupState {
|
|
93
96
|
/**
|
|
94
|
-
* Defines if a server group is an anti-affinity group. Setting this to `strict` or `yes` will
|
|
95
|
-
* group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`.
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
97
|
+
* Defines if a server group is an anti-affinity group. Setting this to `strict` or `yes` will
|
|
98
|
+
* result in all servers in the group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`.
|
|
99
|
+
*
|
|
100
|
+
* * `strict` policy doesn't allow servers in the same server group to be on the same host
|
|
101
|
+
* * `yes` refers to best-effort policy and tries to put servers on different hosts, but this is not guaranteed
|
|
102
|
+
* * `no` refers to having no policy and thus no effect on server host affinity
|
|
103
|
+
*
|
|
104
|
+
* To verify if the anti-affinity policies are met by requesting a server group details from API. For more information
|
|
105
|
+
* please see UpCloud API documentation on server groups.
|
|
106
|
+
*
|
|
107
|
+
* Plese also note that anti-affinity policies are only applied on server start. This means that if anti-affinity
|
|
108
|
+
* policies in server group are not met, you need to manually restart the servers in said group,
|
|
109
|
+
* for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
|
|
102
110
|
*/
|
|
103
111
|
antiAffinityPolicy?: pulumi.Input<string>;
|
|
104
112
|
/**
|
|
@@ -108,8 +116,7 @@ export interface ServerGroupState {
|
|
|
108
116
|
[key: string]: pulumi.Input<string>;
|
|
109
117
|
}>;
|
|
110
118
|
/**
|
|
111
|
-
* UUIDs of the servers that are members of this group. Servers can also be attached to the server group via `serverGroup`
|
|
112
|
-
* property of `upcloud.Server`. See also `trackMembers` property.
|
|
119
|
+
* UUIDs of the servers that are members of this group. Servers can also be attached to the server group via `serverGroup` property of `upcloud.Server`. See also `trackMembers` property.
|
|
113
120
|
*/
|
|
114
121
|
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
115
122
|
/**
|
|
@@ -117,8 +124,7 @@ export interface ServerGroupState {
|
|
|
117
124
|
*/
|
|
118
125
|
title?: pulumi.Input<string>;
|
|
119
126
|
/**
|
|
120
|
-
* Controls if members of the server group are being tracked in this resource. Set to `false` when using `serverGroup`
|
|
121
|
-
* property of `upcloud.Server` to attach servers to the server group to avoid delayed state updates.
|
|
127
|
+
* Controls if members of the server group are being tracked in this resource. Set to `false` when using `serverGroup` property of `upcloud.Server` to attach servers to the server group to avoid delayed state updates.
|
|
122
128
|
*/
|
|
123
129
|
trackMembers?: pulumi.Input<boolean>;
|
|
124
130
|
}
|
|
@@ -127,14 +133,19 @@ export interface ServerGroupState {
|
|
|
127
133
|
*/
|
|
128
134
|
export interface ServerGroupArgs {
|
|
129
135
|
/**
|
|
130
|
-
* Defines if a server group is an anti-affinity group. Setting this to `strict` or `yes` will
|
|
131
|
-
* group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`.
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
136
|
+
* Defines if a server group is an anti-affinity group. Setting this to `strict` or `yes` will
|
|
137
|
+
* result in all servers in the group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`.
|
|
138
|
+
*
|
|
139
|
+
* * `strict` policy doesn't allow servers in the same server group to be on the same host
|
|
140
|
+
* * `yes` refers to best-effort policy and tries to put servers on different hosts, but this is not guaranteed
|
|
141
|
+
* * `no` refers to having no policy and thus no effect on server host affinity
|
|
142
|
+
*
|
|
143
|
+
* To verify if the anti-affinity policies are met by requesting a server group details from API. For more information
|
|
144
|
+
* please see UpCloud API documentation on server groups.
|
|
145
|
+
*
|
|
146
|
+
* Plese also note that anti-affinity policies are only applied on server start. This means that if anti-affinity
|
|
147
|
+
* policies in server group are not met, you need to manually restart the servers in said group,
|
|
148
|
+
* for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
|
|
138
149
|
*/
|
|
139
150
|
antiAffinityPolicy?: pulumi.Input<string>;
|
|
140
151
|
/**
|
|
@@ -144,8 +155,7 @@ export interface ServerGroupArgs {
|
|
|
144
155
|
[key: string]: pulumi.Input<string>;
|
|
145
156
|
}>;
|
|
146
157
|
/**
|
|
147
|
-
* UUIDs of the servers that are members of this group. Servers can also be attached to the server group via `serverGroup`
|
|
148
|
-
* property of `upcloud.Server`. See also `trackMembers` property.
|
|
158
|
+
* UUIDs of the servers that are members of this group. Servers can also be attached to the server group via `serverGroup` property of `upcloud.Server`. See also `trackMembers` property.
|
|
149
159
|
*/
|
|
150
160
|
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
151
161
|
/**
|
|
@@ -153,8 +163,7 @@ export interface ServerGroupArgs {
|
|
|
153
163
|
*/
|
|
154
164
|
title: pulumi.Input<string>;
|
|
155
165
|
/**
|
|
156
|
-
* Controls if members of the server group are being tracked in this resource. Set to `false` when using `serverGroup`
|
|
157
|
-
* property of `upcloud.Server` to attach servers to the server group to avoid delayed state updates.
|
|
166
|
+
* Controls if members of the server group are being tracked in this resource. Set to `false` when using `serverGroup` property of `upcloud.Server` to attach servers to the server group to avoid delayed state updates.
|
|
158
167
|
*/
|
|
159
168
|
trackMembers?: pulumi.Input<boolean>;
|
|
160
169
|
}
|
package/serverGroup.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.ServerGroup = void 0;
|
|
@@ -47,7 +47,7 @@ class ServerGroup extends pulumi.CustomResource {
|
|
|
47
47
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
48
|
*/
|
|
49
49
|
static get(name, id, state, opts) {
|
|
50
|
-
return new ServerGroup(name, state,
|
|
50
|
+
return new ServerGroup(name, state, { ...opts, id: id });
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Returns true if the given object is an instance of ServerGroup. This is designed to work even
|
|
@@ -64,22 +64,22 @@ class ServerGroup extends pulumi.CustomResource {
|
|
|
64
64
|
opts = opts || {};
|
|
65
65
|
if (opts.id) {
|
|
66
66
|
const state = argsOrState;
|
|
67
|
-
resourceInputs["antiAffinityPolicy"] = state
|
|
68
|
-
resourceInputs["labels"] = state
|
|
69
|
-
resourceInputs["members"] = state
|
|
70
|
-
resourceInputs["title"] = state
|
|
71
|
-
resourceInputs["trackMembers"] = state
|
|
67
|
+
resourceInputs["antiAffinityPolicy"] = state?.antiAffinityPolicy;
|
|
68
|
+
resourceInputs["labels"] = state?.labels;
|
|
69
|
+
resourceInputs["members"] = state?.members;
|
|
70
|
+
resourceInputs["title"] = state?.title;
|
|
71
|
+
resourceInputs["trackMembers"] = state?.trackMembers;
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
74
|
const args = argsOrState;
|
|
75
|
-
if (
|
|
75
|
+
if (args?.title === undefined && !opts.urn) {
|
|
76
76
|
throw new Error("Missing required property 'title'");
|
|
77
77
|
}
|
|
78
|
-
resourceInputs["antiAffinityPolicy"] = args
|
|
79
|
-
resourceInputs["labels"] = args
|
|
80
|
-
resourceInputs["members"] = args
|
|
81
|
-
resourceInputs["title"] = args
|
|
82
|
-
resourceInputs["trackMembers"] = args
|
|
78
|
+
resourceInputs["antiAffinityPolicy"] = args?.antiAffinityPolicy;
|
|
79
|
+
resourceInputs["labels"] = args?.labels;
|
|
80
|
+
resourceInputs["members"] = args?.members;
|
|
81
|
+
resourceInputs["title"] = args?.title;
|
|
82
|
+
resourceInputs["trackMembers"] = args?.trackMembers;
|
|
83
83
|
}
|
|
84
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
85
|
super(ServerGroup.__pulumiType, name, resourceInputs, opts);
|
package/serverGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverGroup.js","sourceRoot":"","sources":["../serverGroup.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"serverGroup.js","sourceRoot":"","sources":["../serverGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAA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,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA5FL,kCA6FC;AA/EG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
|
package/storage.d.ts
CHANGED
|
@@ -32,8 +32,7 @@ export declare class Storage extends pulumi.CustomResource {
|
|
|
32
32
|
*/
|
|
33
33
|
readonly clone: pulumi.Output<outputs.StorageClone | undefined>;
|
|
34
34
|
/**
|
|
35
|
-
* If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after
|
|
36
|
-
* success.
|
|
35
|
+
* If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
|
|
37
36
|
*/
|
|
38
37
|
readonly deleteAutoresizeBackup: pulumi.Output<boolean>;
|
|
39
38
|
/**
|
|
@@ -41,10 +40,8 @@ export declare class Storage extends pulumi.CustomResource {
|
|
|
41
40
|
*/
|
|
42
41
|
readonly encrypt: pulumi.Output<boolean>;
|
|
43
42
|
/**
|
|
44
|
-
* If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please
|
|
45
|
-
*
|
|
46
|
-
* backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless
|
|
47
|
-
* `deleteAutoresizeBackup` option is set to true). Taking and keeping backups incure costs.
|
|
43
|
+
* If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless `deleteAutoresizeBackup` option is set to true).
|
|
44
|
+
* Taking and keeping backups incure costs.
|
|
48
45
|
*/
|
|
49
46
|
readonly filesystemAutoresize: pulumi.Output<boolean>;
|
|
50
47
|
/**
|
|
@@ -62,8 +59,7 @@ export declare class Storage extends pulumi.CustomResource {
|
|
|
62
59
|
*/
|
|
63
60
|
readonly size: pulumi.Output<number>;
|
|
64
61
|
/**
|
|
65
|
-
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore
|
|
66
|
-
* and can not be modified by the user.
|
|
62
|
+
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
|
|
67
63
|
*/
|
|
68
64
|
readonly systemLabels: pulumi.Output<{
|
|
69
65
|
[key: string]: string;
|
|
@@ -103,8 +99,7 @@ export interface StorageState {
|
|
|
103
99
|
*/
|
|
104
100
|
clone?: pulumi.Input<inputs.StorageClone>;
|
|
105
101
|
/**
|
|
106
|
-
* If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after
|
|
107
|
-
* success.
|
|
102
|
+
* If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
|
|
108
103
|
*/
|
|
109
104
|
deleteAutoresizeBackup?: pulumi.Input<boolean>;
|
|
110
105
|
/**
|
|
@@ -112,10 +107,8 @@ export interface StorageState {
|
|
|
112
107
|
*/
|
|
113
108
|
encrypt?: pulumi.Input<boolean>;
|
|
114
109
|
/**
|
|
115
|
-
* If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please
|
|
116
|
-
*
|
|
117
|
-
* backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless
|
|
118
|
-
* `deleteAutoresizeBackup` option is set to true). Taking and keeping backups incure costs.
|
|
110
|
+
* If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless `deleteAutoresizeBackup` option is set to true).
|
|
111
|
+
* Taking and keeping backups incure costs.
|
|
119
112
|
*/
|
|
120
113
|
filesystemAutoresize?: pulumi.Input<boolean>;
|
|
121
114
|
/**
|
|
@@ -133,8 +126,7 @@ export interface StorageState {
|
|
|
133
126
|
*/
|
|
134
127
|
size?: pulumi.Input<number>;
|
|
135
128
|
/**
|
|
136
|
-
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore
|
|
137
|
-
* and can not be modified by the user.
|
|
129
|
+
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
|
|
138
130
|
*/
|
|
139
131
|
systemLabels?: pulumi.Input<{
|
|
140
132
|
[key: string]: pulumi.Input<string>;
|
|
@@ -166,8 +158,7 @@ export interface StorageArgs {
|
|
|
166
158
|
*/
|
|
167
159
|
clone?: pulumi.Input<inputs.StorageClone>;
|
|
168
160
|
/**
|
|
169
|
-
* If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after
|
|
170
|
-
* success.
|
|
161
|
+
* If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
|
|
171
162
|
*/
|
|
172
163
|
deleteAutoresizeBackup?: pulumi.Input<boolean>;
|
|
173
164
|
/**
|
|
@@ -175,10 +166,8 @@ export interface StorageArgs {
|
|
|
175
166
|
*/
|
|
176
167
|
encrypt?: pulumi.Input<boolean>;
|
|
177
168
|
/**
|
|
178
|
-
* If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please
|
|
179
|
-
*
|
|
180
|
-
* backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless
|
|
181
|
-
* `deleteAutoresizeBackup` option is set to true). Taking and keeping backups incure costs.
|
|
169
|
+
* If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless `deleteAutoresizeBackup` option is set to true).
|
|
170
|
+
* Taking and keeping backups incure costs.
|
|
182
171
|
*/
|
|
183
172
|
filesystemAutoresize?: pulumi.Input<boolean>;
|
|
184
173
|
/**
|
package/storage.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.Storage = void 0;
|
|
@@ -25,7 +25,7 @@ class Storage extends pulumi.CustomResource {
|
|
|
25
25
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
26
|
*/
|
|
27
27
|
static get(name, id, state, opts) {
|
|
28
|
-
return new Storage(name, state,
|
|
28
|
+
return new Storage(name, state, { ...opts, id: id });
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Returns true if the given object is an instance of Storage. This is designed to work even
|
|
@@ -42,42 +42,42 @@ class Storage extends pulumi.CustomResource {
|
|
|
42
42
|
opts = opts || {};
|
|
43
43
|
if (opts.id) {
|
|
44
44
|
const state = argsOrState;
|
|
45
|
-
resourceInputs["backupRule"] = state
|
|
46
|
-
resourceInputs["clone"] = state
|
|
47
|
-
resourceInputs["deleteAutoresizeBackup"] = state
|
|
48
|
-
resourceInputs["encrypt"] = state
|
|
49
|
-
resourceInputs["filesystemAutoresize"] = state
|
|
50
|
-
resourceInputs["import"] = state
|
|
51
|
-
resourceInputs["labels"] = state
|
|
52
|
-
resourceInputs["size"] = state
|
|
53
|
-
resourceInputs["systemLabels"] = state
|
|
54
|
-
resourceInputs["tier"] = state
|
|
55
|
-
resourceInputs["title"] = state
|
|
56
|
-
resourceInputs["type"] = state
|
|
57
|
-
resourceInputs["zone"] = state
|
|
45
|
+
resourceInputs["backupRule"] = state?.backupRule;
|
|
46
|
+
resourceInputs["clone"] = state?.clone;
|
|
47
|
+
resourceInputs["deleteAutoresizeBackup"] = state?.deleteAutoresizeBackup;
|
|
48
|
+
resourceInputs["encrypt"] = state?.encrypt;
|
|
49
|
+
resourceInputs["filesystemAutoresize"] = state?.filesystemAutoresize;
|
|
50
|
+
resourceInputs["import"] = state?.import;
|
|
51
|
+
resourceInputs["labels"] = state?.labels;
|
|
52
|
+
resourceInputs["size"] = state?.size;
|
|
53
|
+
resourceInputs["systemLabels"] = state?.systemLabels;
|
|
54
|
+
resourceInputs["tier"] = state?.tier;
|
|
55
|
+
resourceInputs["title"] = state?.title;
|
|
56
|
+
resourceInputs["type"] = state?.type;
|
|
57
|
+
resourceInputs["zone"] = state?.zone;
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
const args = argsOrState;
|
|
61
|
-
if (
|
|
61
|
+
if (args?.size === undefined && !opts.urn) {
|
|
62
62
|
throw new Error("Missing required property 'size'");
|
|
63
63
|
}
|
|
64
|
-
if (
|
|
64
|
+
if (args?.title === undefined && !opts.urn) {
|
|
65
65
|
throw new Error("Missing required property 'title'");
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
67
|
+
if (args?.zone === undefined && !opts.urn) {
|
|
68
68
|
throw new Error("Missing required property 'zone'");
|
|
69
69
|
}
|
|
70
|
-
resourceInputs["backupRule"] = args
|
|
71
|
-
resourceInputs["clone"] = args
|
|
72
|
-
resourceInputs["deleteAutoresizeBackup"] = args
|
|
73
|
-
resourceInputs["encrypt"] = args
|
|
74
|
-
resourceInputs["filesystemAutoresize"] = args
|
|
75
|
-
resourceInputs["import"] = args
|
|
76
|
-
resourceInputs["labels"] = args
|
|
77
|
-
resourceInputs["size"] = args
|
|
78
|
-
resourceInputs["tier"] = args
|
|
79
|
-
resourceInputs["title"] = args
|
|
80
|
-
resourceInputs["zone"] = args
|
|
70
|
+
resourceInputs["backupRule"] = args?.backupRule;
|
|
71
|
+
resourceInputs["clone"] = args?.clone;
|
|
72
|
+
resourceInputs["deleteAutoresizeBackup"] = args?.deleteAutoresizeBackup;
|
|
73
|
+
resourceInputs["encrypt"] = args?.encrypt;
|
|
74
|
+
resourceInputs["filesystemAutoresize"] = args?.filesystemAutoresize;
|
|
75
|
+
resourceInputs["import"] = args?.import;
|
|
76
|
+
resourceInputs["labels"] = args?.labels;
|
|
77
|
+
resourceInputs["size"] = args?.size;
|
|
78
|
+
resourceInputs["tier"] = args?.tier;
|
|
79
|
+
resourceInputs["title"] = args?.title;
|
|
80
|
+
resourceInputs["zone"] = args?.zone;
|
|
81
81
|
resourceInputs["systemLabels"] = undefined /*out*/;
|
|
82
82
|
resourceInputs["type"] = undefined /*out*/;
|
|
83
83
|
}
|
package/storage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../storage.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../storage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAKD;;;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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA6DD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,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AU,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,EAAE,sBAAsB,CAAC;YACxE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,cAAc,CAAC,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,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AApIL,0BAqIC;AAvHG,gBAAgB;AACO,oBAAY,GAAG,+BAA+B,CAAC"}
|
package/storageBackup.d.ts
CHANGED
|
@@ -53,8 +53,7 @@ export declare class StorageBackup extends pulumi.CustomResource {
|
|
|
53
53
|
*/
|
|
54
54
|
readonly sourceStorage: pulumi.Output<string>;
|
|
55
55
|
/**
|
|
56
|
-
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore
|
|
57
|
-
* and can not be modified by the user.
|
|
56
|
+
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
|
|
58
57
|
*/
|
|
59
58
|
readonly systemLabels: pulumi.Output<{
|
|
60
59
|
[key: string]: string;
|
|
@@ -111,8 +110,7 @@ export interface StorageBackupState {
|
|
|
111
110
|
*/
|
|
112
111
|
sourceStorage?: pulumi.Input<string>;
|
|
113
112
|
/**
|
|
114
|
-
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore
|
|
115
|
-
* and can not be modified by the user.
|
|
113
|
+
* System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
|
|
116
114
|
*/
|
|
117
115
|
systemLabels?: pulumi.Input<{
|
|
118
116
|
[key: string]: pulumi.Input<string>;
|