@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.
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/server.js.map CHANGED
@@ -1 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C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAhML,wBAiMC;AAnLG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
@@ -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
- * Typical firewall rule should have `action`, `direction`, `protocol`, `family` and at least one
70
- * destination/source-address/port range. A default rule can be created by providing only `action` and `direction`
71
- * attributes. Default rule should be defined last. If used, IP address and port ranges must have both start and end values
72
- * specified. These can be the same value if only one IP address or port number is specified. Source and destination port
73
- * numbers can only be set if the protocol is TCP or UDP. The ICMP type may only be set if the protocol is ICMP.
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
- * Typical firewall rule should have `action`, `direction`, `protocol`, `family` and at least one
96
- * destination/source-address/port range. A default rule can be created by providing only `action` and `direction`
97
- * attributes. Default rule should be defined last. If used, IP address and port ranges must have both start and end values
98
- * specified. These can be the same value if only one IP address or port number is specified. Source and destination port
99
- * numbers can only be set if the protocol is TCP or UDP. The ICMP type may only be set if the protocol is ICMP.
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
- * Typical firewall rule should have `action`, `direction`, `protocol`, `family` and at least one
114
- * destination/source-address/port range. A default rule can be created by providing only `action` and `direction`
115
- * attributes. Default rule should be defined last. If used, IP address and port ranges must have both start and end values
116
- * specified. These can be the same value if only one IP address or port number is specified. Source and destination port
117
- * numbers can only be set if the protocol is TCP or UDP. The ICMP type may only be set if the protocol is ICMP.
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
  /**
@@ -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.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, Object.assign(Object.assign({}, opts), { id: id }));
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 ? state.firewallRules : undefined;
84
- resourceInputs["serverId"] = state ? state.serverId : undefined;
83
+ resourceInputs["firewallRules"] = state?.firewallRules;
84
+ resourceInputs["serverId"] = state?.serverId;
85
85
  }
86
86
  else {
87
87
  const args = argsOrState;
88
- if ((!args || args.serverId === undefined) && !opts.urn) {
88
+ if (args?.serverId === undefined && !opts.urn) {
89
89
  throw new Error("Missing required property 'serverId'");
90
90
  }
91
- resourceInputs["firewallRules"] = args ? args.firewallRules : undefined;
92
- resourceInputs["serverId"] = args ? args.serverId : undefined;
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,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IAwBD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,I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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 result in all servers in the
51
- * group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`. * `strict` policy doesn't allow
52
- * servers in the same server group to be on the same host * `yes` refers to best-effort policy and tries to put servers on
53
- * different hosts, but this is not guaranteed * `no` refers to having no policy and thus no effect on server host affinity
54
- * To verify if the anti-affinity policies are met by requesting a server group details from API. For more information
55
- * please see UpCloud API documentation on server groups. Plese also note that anti-affinity policies are only applied on
56
- * server start. This means that if anti-affinity policies in server group are not met, you need to manually restart the
57
- * servers in said group, for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
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 result in all servers in the
95
- * group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`. * `strict` policy doesn't allow
96
- * servers in the same server group to be on the same host * `yes` refers to best-effort policy and tries to put servers on
97
- * different hosts, but this is not guaranteed * `no` refers to having no policy and thus no effect on server host affinity
98
- * To verify if the anti-affinity policies are met by requesting a server group details from API. For more information
99
- * please see UpCloud API documentation on server groups. Plese also note that anti-affinity policies are only applied on
100
- * server start. This means that if anti-affinity policies in server group are not met, you need to manually restart the
101
- * servers in said group, for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
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 result in all servers in the
131
- * group being placed on separate compute hosts. The value can be `strict`, `yes`, or `no`. * `strict` policy doesn't allow
132
- * servers in the same server group to be on the same host * `yes` refers to best-effort policy and tries to put servers on
133
- * different hosts, but this is not guaranteed * `no` refers to having no policy and thus no effect on server host affinity
134
- * To verify if the anti-affinity policies are met by requesting a server group details from API. For more information
135
- * please see UpCloud API documentation on server groups. Plese also note that anti-affinity policies are only applied on
136
- * server start. This means that if anti-affinity policies in server group are not met, you need to manually restart the
137
- * servers in said group, for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
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 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.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, Object.assign(Object.assign({}, opts), { id: id }));
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 ? state.antiAffinityPolicy : undefined;
68
- resourceInputs["labels"] = state ? state.labels : undefined;
69
- resourceInputs["members"] = state ? state.members : undefined;
70
- resourceInputs["title"] = state ? state.title : undefined;
71
- resourceInputs["trackMembers"] = state ? state.trackMembers : undefined;
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 ((!args || args.title === undefined) && !opts.urn) {
75
+ if (args?.title === undefined && !opts.urn) {
76
76
  throw new Error("Missing required property 'title'");
77
77
  }
78
- resourceInputs["antiAffinityPolicy"] = args ? args.antiAffinityPolicy : undefined;
79
- resourceInputs["labels"] = args ? args.labels : undefined;
80
- resourceInputs["members"] = args ? args.members : undefined;
81
- resourceInputs["title"] = args ? args.title : undefined;
82
- resourceInputs["trackMembers"] = args ? args.trackMembers : undefined;
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);
@@ -1 +1 @@
1
- {"version":3,"file":"serverGroup.js","sourceRoot":"","sources":["../serverGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAwCD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CA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3C,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;SACxD;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,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
- * note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the
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
- * note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the
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
- * note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the
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 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.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, Object.assign(Object.assign({}, opts), { id: id }));
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 ? state.backupRule : undefined;
46
- resourceInputs["clone"] = state ? state.clone : undefined;
47
- resourceInputs["deleteAutoresizeBackup"] = state ? state.deleteAutoresizeBackup : undefined;
48
- resourceInputs["encrypt"] = state ? state.encrypt : undefined;
49
- resourceInputs["filesystemAutoresize"] = state ? state.filesystemAutoresize : undefined;
50
- resourceInputs["import"] = state ? state.import : undefined;
51
- resourceInputs["labels"] = state ? state.labels : undefined;
52
- resourceInputs["size"] = state ? state.size : undefined;
53
- resourceInputs["systemLabels"] = state ? state.systemLabels : undefined;
54
- resourceInputs["tier"] = state ? state.tier : undefined;
55
- resourceInputs["title"] = state ? state.title : undefined;
56
- resourceInputs["type"] = state ? state.type : undefined;
57
- resourceInputs["zone"] = state ? state.zone : undefined;
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 ((!args || args.size === undefined) && !opts.urn) {
61
+ if (args?.size === undefined && !opts.urn) {
62
62
  throw new Error("Missing required property 'size'");
63
63
  }
64
- if ((!args || args.title === undefined) && !opts.urn) {
64
+ if (args?.title === undefined && !opts.urn) {
65
65
  throw new Error("Missing required property 'title'");
66
66
  }
67
- if ((!args || args.zone === undefined) && !opts.urn) {
67
+ if (args?.zone === undefined && !opts.urn) {
68
68
  throw new Error("Missing required property 'zone'");
69
69
  }
70
- resourceInputs["backupRule"] = args ? args.backupRule : undefined;
71
- resourceInputs["clone"] = args ? args.clone : undefined;
72
- resourceInputs["deleteAutoresizeBackup"] = args ? args.deleteAutoresizeBackup : undefined;
73
- resourceInputs["encrypt"] = args ? args.encrypt : undefined;
74
- resourceInputs["filesystemAutoresize"] = args ? args.filesystemAutoresize : undefined;
75
- resourceInputs["import"] = args ? args.import : undefined;
76
- resourceInputs["labels"] = args ? args.labels : undefined;
77
- resourceInputs["size"] = args ? args.size : undefined;
78
- resourceInputs["tier"] = args ? args.tier : undefined;
79
- resourceInputs["title"] = args ? args.title : undefined;
80
- resourceInputs["zone"] = args ? args.zone : undefined;
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,wFAAwF;AACxF,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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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;IAiED,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,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CA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;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"}
@@ -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>;