@bambamboole/coolify 0.5.0 → 0.7.0
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/README.md +1 -1
- package/application.d.ts +10 -6
- package/application.d.ts.map +1 -1
- package/application.js +2 -0
- package/application.js.map +1 -1
- package/config/vars.d.ts +8 -0
- package/config/vars.d.ts.map +1 -1
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/database.d.ts +16 -4
- package/database.d.ts.map +1 -1
- package/database.js +4 -0
- package/database.js.map +1 -1
- package/databaseBackup.d.ts +166 -0
- package/databaseBackup.d.ts.map +1 -0
- package/databaseBackup.js +117 -0
- package/databaseBackup.js.map +1 -0
- package/getStorage.d.ts +84 -0
- package/getStorage.d.ts.map +1 -0
- package/getStorage.js +61 -0
- package/getStorage.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -1
- package/index.js +20 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +8 -0
- package/provider.d.ts.map +1 -1
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/service.d.ts +142 -0
- package/service.d.ts.map +1 -0
- package/service.js +114 -0
- package/service.js.map +1 -0
- package/storage.d.ts +107 -0
- package/storage.d.ts.map +1 -0
- package/storage.js +103 -0
- package/storage.js.map +1 -0
- package/types/enums/index.d.ts +11 -0
- package/types/enums/index.d.ts.map +1 -1
- package/types/enums/index.js +11 -1
- package/types/enums/index.js.map +1 -1
- package/volumeBackup.d.ts +206 -0
- package/volumeBackup.d.ts.map +1 -0
- package/volumeBackup.js +126 -0
- package/volumeBackup.js.map +1 -0
package/storage.d.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as enums from "./types/enums";
|
|
3
|
+
/**
|
|
4
|
+
* A persistent volume or directory mount of a Coolify application or database. An existing storage with the same mount path on the owner is adopted on create. Volumes declared in a docker compose file are managed by Coolify itself and cannot be created here; look them up with getStorage instead.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Storage extends pulumi.CustomResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get an existing Storage resource's state with the given name, ID, and optional extra
|
|
9
|
+
* properties used to qualify the lookup.
|
|
10
|
+
*
|
|
11
|
+
* @param name The _unique_ name of the resulting resource.
|
|
12
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
13
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
+
*/
|
|
15
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Storage;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the given object is an instance of Storage. This is designed to work even
|
|
18
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
19
|
+
*/
|
|
20
|
+
static isInstance(obj: any): obj is Storage;
|
|
21
|
+
/**
|
|
22
|
+
* UUID of the application the storage is mounted into. Exactly one of applicationUuid and databaseUuid must be set. Changing it replaces the storage.
|
|
23
|
+
*/
|
|
24
|
+
readonly applicationUuid: pulumi.Output<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* UUID of the database the storage is mounted into. Exactly one of applicationUuid and databaseUuid must be set. Changing it replaces the storage.
|
|
27
|
+
*/
|
|
28
|
+
readonly databaseUuid: pulumi.Output<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Host directory for directory storages. Required for directory storages; changing it replaces the storage.
|
|
31
|
+
*/
|
|
32
|
+
readonly fsPath: pulumi.Output<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Host path to bind a persistent volume to. Leave unset for a plain Docker volume.
|
|
35
|
+
*/
|
|
36
|
+
readonly hostPath: pulumi.Output<string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* Add a -pr-N suffix for preview deployments.
|
|
39
|
+
*/
|
|
40
|
+
readonly isPreviewSuffixEnabled: pulumi.Output<boolean | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Container mount path. An existing storage with this mount path on the owner is adopted on create.
|
|
43
|
+
*/
|
|
44
|
+
readonly mountPath: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Volume name for persistent storages, without the owner prefix Coolify adds. Required for persistent storages.
|
|
47
|
+
*/
|
|
48
|
+
readonly name: pulumi.Output<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Kind of storage. Changing it replaces the storage.
|
|
51
|
+
*/
|
|
52
|
+
readonly type: pulumi.Output<enums.StorageType>;
|
|
53
|
+
/**
|
|
54
|
+
* UUID of the storage in Coolify.
|
|
55
|
+
*/
|
|
56
|
+
readonly uuid: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Full volume name as reported by Coolify, including the owner prefix.
|
|
59
|
+
*/
|
|
60
|
+
readonly volumeName: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Create a Storage resource with the given unique name, arguments, and options.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resource.
|
|
65
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
66
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
67
|
+
*/
|
|
68
|
+
constructor(name: string, args: StorageArgs, opts?: pulumi.CustomResourceOptions);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The set of arguments for constructing a Storage resource.
|
|
72
|
+
*/
|
|
73
|
+
export interface StorageArgs {
|
|
74
|
+
/**
|
|
75
|
+
* UUID of the application the storage is mounted into. Exactly one of applicationUuid and databaseUuid must be set. Changing it replaces the storage.
|
|
76
|
+
*/
|
|
77
|
+
applicationUuid?: pulumi.Input<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* UUID of the database the storage is mounted into. Exactly one of applicationUuid and databaseUuid must be set. Changing it replaces the storage.
|
|
80
|
+
*/
|
|
81
|
+
databaseUuid?: pulumi.Input<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* Host directory for directory storages. Required for directory storages; changing it replaces the storage.
|
|
84
|
+
*/
|
|
85
|
+
fsPath?: pulumi.Input<string | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Host path to bind a persistent volume to. Leave unset for a plain Docker volume.
|
|
88
|
+
*/
|
|
89
|
+
hostPath?: pulumi.Input<string | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Add a -pr-N suffix for preview deployments.
|
|
92
|
+
*/
|
|
93
|
+
isPreviewSuffixEnabled?: pulumi.Input<boolean | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Container mount path. An existing storage with this mount path on the owner is adopted on create.
|
|
96
|
+
*/
|
|
97
|
+
mountPath: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Volume name for persistent storages, without the owner prefix Coolify adds. Required for persistent storages.
|
|
100
|
+
*/
|
|
101
|
+
name?: pulumi.Input<string | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Kind of storage. Changing it replaces the storage.
|
|
104
|
+
*/
|
|
105
|
+
type: pulumi.Input<enums.StorageType>;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=storage.d.ts.map
|
package/storage.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../storage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAGvC;;GAEG;AACH,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,OAAO;IAO1G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,OAAO;IAOlD;;OAEG;IACH,SAAwB,eAAe,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AAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACzC"}
|
package/storage.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Storage = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A persistent volume or directory mount of a Coolify application or database. An existing storage with the same mount path on the owner is adopted on create. Volumes declared in a docker compose file are managed by Coolify itself and cannot be created here; look them up with getStorage instead.
|
|
33
|
+
*/
|
|
34
|
+
class Storage extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Storage resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new Storage(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'coolify:index:Storage';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Storage. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === Storage.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a Storage resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.mountPath === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'mountPath'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.type === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'type'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["applicationUuid"] = args?.applicationUuid;
|
|
76
|
+
resourceInputs["databaseUuid"] = args?.databaseUuid;
|
|
77
|
+
resourceInputs["fsPath"] = args?.fsPath;
|
|
78
|
+
resourceInputs["hostPath"] = args?.hostPath;
|
|
79
|
+
resourceInputs["isPreviewSuffixEnabled"] = args?.isPreviewSuffixEnabled;
|
|
80
|
+
resourceInputs["mountPath"] = args?.mountPath;
|
|
81
|
+
resourceInputs["name"] = args?.name;
|
|
82
|
+
resourceInputs["type"] = args?.type;
|
|
83
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["volumeName"] = undefined /*out*/;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
resourceInputs["applicationUuid"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["databaseUuid"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["fsPath"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["hostPath"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["isPreviewSuffixEnabled"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["mountPath"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["volumeName"] = undefined /*out*/;
|
|
97
|
+
}
|
|
98
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
99
|
+
super(Storage.__pulumiType, name, resourceInputs, opts);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.Storage = Storage;
|
|
103
|
+
//# sourceMappingURL=storage.js.map
|
package/storage.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../storage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,uBAAuB,CAAC;IAE9D;;;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;IA2CD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAmC;QAC5E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAA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AM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;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;;AA7GL,0BA8GC"}
|
package/types/enums/index.d.ts
CHANGED
|
@@ -56,4 +56,15 @@ export declare const DatabaseType: {
|
|
|
56
56
|
readonly ClickHouse: "clickhouse";
|
|
57
57
|
};
|
|
58
58
|
export type DatabaseType = (typeof DatabaseType)[keyof typeof DatabaseType];
|
|
59
|
+
export declare const StorageType: {
|
|
60
|
+
/**
|
|
61
|
+
* Named Docker volume.
|
|
62
|
+
*/
|
|
63
|
+
readonly Persistent: "persistent";
|
|
64
|
+
/**
|
|
65
|
+
* Host directory mounted into the container.
|
|
66
|
+
*/
|
|
67
|
+
readonly Directory: "directory";
|
|
68
|
+
};
|
|
69
|
+
export type StorageType = (typeof StorageType)[keyof typeof StorageType];
|
|
59
70
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;IAC1B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEG,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3F,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEG,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;IAC1B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEG,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3F,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEG,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,WAAW;IACpB;;OAEG;;IAEH;;OAEG;;CAEG,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
package/types/enums/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
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
|
-
exports.DatabaseType = exports.ApplicationSource = void 0;
|
|
5
|
+
exports.StorageType = exports.DatabaseType = exports.ApplicationSource = void 0;
|
|
6
6
|
exports.ApplicationSource = {
|
|
7
7
|
/**
|
|
8
8
|
* Public git repository.
|
|
@@ -59,4 +59,14 @@ exports.DatabaseType = {
|
|
|
59
59
|
*/
|
|
60
60
|
ClickHouse: "clickhouse",
|
|
61
61
|
};
|
|
62
|
+
exports.StorageType = {
|
|
63
|
+
/**
|
|
64
|
+
* Named Docker volume.
|
|
65
|
+
*/
|
|
66
|
+
Persistent: "persistent",
|
|
67
|
+
/**
|
|
68
|
+
* Host directory mounted into the container.
|
|
69
|
+
*/
|
|
70
|
+
Directory: "directory",
|
|
71
|
+
};
|
|
62
72
|
//# sourceMappingURL=index.js.map
|
package/types/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,iBAAiB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,YAAY;IACvB;;OAEG;IACH,gBAAgB,EAAE,oBAAoB;IACtC;;OAEG;IACH,gBAAgB,EAAE,oBAAoB;IACtC;;OAEG;IACH,WAAW,EAAE,cAAc;IAC3B;;OAEG;IACH,UAAU,EAAE,YAAY;CAClB,CAAC;AAIE,QAAA,YAAY,GAAG;IACxB;;OAEG;IACH,UAAU,EAAE,YAAY;IACxB;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,SAAS,EAAE,WAAW;IACtB;;OAEG;IACH,UAAU,EAAE,YAAY;CAClB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,iBAAiB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,YAAY;IACvB;;OAEG;IACH,gBAAgB,EAAE,oBAAoB;IACtC;;OAEG;IACH,gBAAgB,EAAE,oBAAoB;IACtC;;OAEG;IACH,WAAW,EAAE,cAAc;IAC3B;;OAEG;IACH,UAAU,EAAE,YAAY;CAClB,CAAC;AAIE,QAAA,YAAY,GAAG;IACxB;;OAEG;IACH,UAAU,EAAE,YAAY;IACxB;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,SAAS,EAAE,WAAW;IACtB;;OAEG;IACH,UAAU,EAAE,YAAY;CAClB,CAAC;AAIE,QAAA,WAAW,GAAG;IACvB;;OAEG;IACH,UAAU,EAAE,YAAY;IACxB;;OAEG;IACH,SAAS,EAAE,WAAW;CAChB,CAAC"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The backup schedule of a persistent volume or directory mount of a Coolify application, database or service, archived locally and optionally uploaded to an S3 storage. Each storage has at most one schedule, which is created or replaced as a whole. Coolify offers no endpoint to read a schedule back, so changes made in the Coolify UI are not detected. Destroying the resource deletes the schedule together with all local and S3 archives; use retainOnDelete to keep them.
|
|
4
|
+
*/
|
|
5
|
+
export declare class VolumeBackup extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing VolumeBackup resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): VolumeBackup;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of VolumeBackup. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is VolumeBackup;
|
|
20
|
+
/**
|
|
21
|
+
* UUID of the application owning the storage. Exactly one of applicationUuid, databaseUuid and serviceUuid must be set. Changing it replaces the schedule.
|
|
22
|
+
*/
|
|
23
|
+
readonly applicationUuid: pulumi.Output<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Run a backup right after creating the schedule. Only relevant on create.
|
|
26
|
+
*/
|
|
27
|
+
readonly backupNow: pulumi.Output<boolean | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* UUID of the database owning the storage. Exactly one of applicationUuid, databaseUuid and serviceUuid must be set. Changing it replaces the schedule.
|
|
30
|
+
*/
|
|
31
|
+
readonly databaseUuid: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Keep no local archive once uploaded to S3. Requires saveS3.
|
|
34
|
+
*/
|
|
35
|
+
readonly disableLocalBackup: pulumi.Output<boolean | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the schedule is enabled.
|
|
38
|
+
*/
|
|
39
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Cron expression or Coolify shorthand such as "daily" or "0 3 * * *".
|
|
42
|
+
*/
|
|
43
|
+
readonly frequency: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Mount path of the storage to back up, resolved on the owner. Exactly one of storageUuid and mountPath must be set. Changing it replaces the schedule.
|
|
46
|
+
*/
|
|
47
|
+
readonly mountPath: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* UUID of the storage the schedule belongs to.
|
|
50
|
+
*/
|
|
51
|
+
readonly resolvedStorageUuid: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Number of archives kept locally; 0 keeps all.
|
|
54
|
+
*/
|
|
55
|
+
readonly retentionAmountLocally: pulumi.Output<number>;
|
|
56
|
+
/**
|
|
57
|
+
* Number of archives kept in S3; 0 keeps all.
|
|
58
|
+
*/
|
|
59
|
+
readonly retentionAmountS3: pulumi.Output<number>;
|
|
60
|
+
/**
|
|
61
|
+
* Days local archives are kept; 0 keeps them forever.
|
|
62
|
+
*/
|
|
63
|
+
readonly retentionDaysLocally: pulumi.Output<number | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* Days S3 archives are kept; 0 keeps them forever.
|
|
66
|
+
*/
|
|
67
|
+
readonly retentionDaysS3: pulumi.Output<number | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum local storage in GB; 0 is unlimited.
|
|
70
|
+
*/
|
|
71
|
+
readonly retentionMaxStorageLocally: pulumi.Output<number | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Maximum S3 storage in GB; 0 is unlimited.
|
|
74
|
+
*/
|
|
75
|
+
readonly retentionMaxStorageS3: pulumi.Output<number | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* UUID of the S3 storage (the uuid output of an S3Storage resource). Required when saveS3 is true; the storage must be validated as usable by Coolify.
|
|
78
|
+
*/
|
|
79
|
+
readonly s3StorageUuid: pulumi.Output<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Upload archives to an S3 storage.
|
|
82
|
+
*/
|
|
83
|
+
readonly saveS3: pulumi.Output<boolean | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* UUID of the service owning the storage. Exactly one of applicationUuid, databaseUuid and serviceUuid must be set. Changing it replaces the schedule.
|
|
86
|
+
*/
|
|
87
|
+
readonly serviceUuid: pulumi.Output<string | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* Stop the containers using the storage while the archive is taken, for consistent snapshots of databases inside services.
|
|
90
|
+
*/
|
|
91
|
+
readonly stopDuringBackup: pulumi.Output<boolean | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Storage type: persistent or directory.
|
|
94
|
+
*/
|
|
95
|
+
readonly storageType: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* UUID of the storage to back up (the uuid output of a Storage resource or of getStorage). Exactly one of storageUuid and mountPath must be set. Changing it replaces the schedule.
|
|
98
|
+
*/
|
|
99
|
+
readonly storageUuid: pulumi.Output<string | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* Timeout of a backup run in seconds, between 60 and 36000. Leave unset to keep Coolify's default.
|
|
102
|
+
*/
|
|
103
|
+
readonly timeout: pulumi.Output<number | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* UUID of the schedule in Coolify.
|
|
106
|
+
*/
|
|
107
|
+
readonly uuid: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Volume name to disambiguate the mount path when several containers of a service mount the same path. Changing it replaces the schedule.
|
|
110
|
+
*/
|
|
111
|
+
readonly volumeName: pulumi.Output<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* Create a VolumeBackup resource with the given unique name, arguments, and options.
|
|
114
|
+
*
|
|
115
|
+
* @param name The _unique_ name of the resource.
|
|
116
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
117
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
118
|
+
*/
|
|
119
|
+
constructor(name: string, args: VolumeBackupArgs, opts?: pulumi.CustomResourceOptions);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The set of arguments for constructing a VolumeBackup resource.
|
|
123
|
+
*/
|
|
124
|
+
export interface VolumeBackupArgs {
|
|
125
|
+
/**
|
|
126
|
+
* UUID of the application owning the storage. Exactly one of applicationUuid, databaseUuid and serviceUuid must be set. Changing it replaces the schedule.
|
|
127
|
+
*/
|
|
128
|
+
applicationUuid?: pulumi.Input<string | undefined>;
|
|
129
|
+
/**
|
|
130
|
+
* Run a backup right after creating the schedule. Only relevant on create.
|
|
131
|
+
*/
|
|
132
|
+
backupNow?: pulumi.Input<boolean | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* UUID of the database owning the storage. Exactly one of applicationUuid, databaseUuid and serviceUuid must be set. Changing it replaces the schedule.
|
|
135
|
+
*/
|
|
136
|
+
databaseUuid?: pulumi.Input<string | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* Keep no local archive once uploaded to S3. Requires saveS3.
|
|
139
|
+
*/
|
|
140
|
+
disableLocalBackup?: pulumi.Input<boolean | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* Whether the schedule is enabled.
|
|
143
|
+
*/
|
|
144
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Cron expression or Coolify shorthand such as "daily" or "0 3 * * *".
|
|
147
|
+
*/
|
|
148
|
+
frequency: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Mount path of the storage to back up, resolved on the owner. Exactly one of storageUuid and mountPath must be set. Changing it replaces the schedule.
|
|
151
|
+
*/
|
|
152
|
+
mountPath?: pulumi.Input<string | undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* Number of archives kept locally; 0 keeps all.
|
|
155
|
+
*/
|
|
156
|
+
retentionAmountLocally?: pulumi.Input<number | undefined>;
|
|
157
|
+
/**
|
|
158
|
+
* Number of archives kept in S3; 0 keeps all.
|
|
159
|
+
*/
|
|
160
|
+
retentionAmountS3?: pulumi.Input<number | undefined>;
|
|
161
|
+
/**
|
|
162
|
+
* Days local archives are kept; 0 keeps them forever.
|
|
163
|
+
*/
|
|
164
|
+
retentionDaysLocally?: pulumi.Input<number | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* Days S3 archives are kept; 0 keeps them forever.
|
|
167
|
+
*/
|
|
168
|
+
retentionDaysS3?: pulumi.Input<number | undefined>;
|
|
169
|
+
/**
|
|
170
|
+
* Maximum local storage in GB; 0 is unlimited.
|
|
171
|
+
*/
|
|
172
|
+
retentionMaxStorageLocally?: pulumi.Input<number | undefined>;
|
|
173
|
+
/**
|
|
174
|
+
* Maximum S3 storage in GB; 0 is unlimited.
|
|
175
|
+
*/
|
|
176
|
+
retentionMaxStorageS3?: pulumi.Input<number | undefined>;
|
|
177
|
+
/**
|
|
178
|
+
* UUID of the S3 storage (the uuid output of an S3Storage resource). Required when saveS3 is true; the storage must be validated as usable by Coolify.
|
|
179
|
+
*/
|
|
180
|
+
s3StorageUuid?: pulumi.Input<string | undefined>;
|
|
181
|
+
/**
|
|
182
|
+
* Upload archives to an S3 storage.
|
|
183
|
+
*/
|
|
184
|
+
saveS3?: pulumi.Input<boolean | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* UUID of the service owning the storage. Exactly one of applicationUuid, databaseUuid and serviceUuid must be set. Changing it replaces the schedule.
|
|
187
|
+
*/
|
|
188
|
+
serviceUuid?: pulumi.Input<string | undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* Stop the containers using the storage while the archive is taken, for consistent snapshots of databases inside services.
|
|
191
|
+
*/
|
|
192
|
+
stopDuringBackup?: pulumi.Input<boolean | undefined>;
|
|
193
|
+
/**
|
|
194
|
+
* UUID of the storage to back up (the uuid output of a Storage resource or of getStorage). Exactly one of storageUuid and mountPath must be set. Changing it replaces the schedule.
|
|
195
|
+
*/
|
|
196
|
+
storageUuid?: pulumi.Input<string | undefined>;
|
|
197
|
+
/**
|
|
198
|
+
* Timeout of a backup run in seconds, between 60 and 36000. Leave unset to keep Coolify's default.
|
|
199
|
+
*/
|
|
200
|
+
timeout?: pulumi.Input<number | undefined>;
|
|
201
|
+
/**
|
|
202
|
+
* Volume name to disambiguate the mount path when several containers of a service mount the same path. Changing it replaces the schedule.
|
|
203
|
+
*/
|
|
204
|
+
volumeName?: pulumi.Input<string | undefined>;
|
|
205
|
+
}
|
|
206
|
+
//# sourceMappingURL=volumeBackup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumeBackup.d.ts","sourceRoot":"","sources":["../volumeBackup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MA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G,SAAS,CAAC,CAAC;IACzD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACjD"}
|
package/volumeBackup.js
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.VolumeBackup = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* The backup schedule of a persistent volume or directory mount of a Coolify application, database or service, archived locally and optionally uploaded to an S3 storage. Each storage has at most one schedule, which is created or replaced as a whole. Coolify offers no endpoint to read a schedule back, so changes made in the Coolify UI are not detected. Destroying the resource deletes the schedule together with all local and S3 archives; use retainOnDelete to keep them.
|
|
33
|
+
*/
|
|
34
|
+
class VolumeBackup extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing VolumeBackup resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new VolumeBackup(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'coolify:index:VolumeBackup';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of VolumeBackup. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === VolumeBackup.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a VolumeBackup resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.frequency === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'frequency'");
|
|
71
|
+
}
|
|
72
|
+
resourceInputs["applicationUuid"] = args?.applicationUuid;
|
|
73
|
+
resourceInputs["backupNow"] = args?.backupNow;
|
|
74
|
+
resourceInputs["databaseUuid"] = args?.databaseUuid;
|
|
75
|
+
resourceInputs["disableLocalBackup"] = args?.disableLocalBackup;
|
|
76
|
+
resourceInputs["enabled"] = (args?.enabled) ?? true;
|
|
77
|
+
resourceInputs["frequency"] = args?.frequency;
|
|
78
|
+
resourceInputs["mountPath"] = args?.mountPath;
|
|
79
|
+
resourceInputs["retentionAmountLocally"] = (args?.retentionAmountLocally) ?? 7;
|
|
80
|
+
resourceInputs["retentionAmountS3"] = (args?.retentionAmountS3) ?? 7;
|
|
81
|
+
resourceInputs["retentionDaysLocally"] = args?.retentionDaysLocally;
|
|
82
|
+
resourceInputs["retentionDaysS3"] = args?.retentionDaysS3;
|
|
83
|
+
resourceInputs["retentionMaxStorageLocally"] = args?.retentionMaxStorageLocally;
|
|
84
|
+
resourceInputs["retentionMaxStorageS3"] = args?.retentionMaxStorageS3;
|
|
85
|
+
resourceInputs["s3StorageUuid"] = args?.s3StorageUuid;
|
|
86
|
+
resourceInputs["saveS3"] = args?.saveS3;
|
|
87
|
+
resourceInputs["serviceUuid"] = args?.serviceUuid;
|
|
88
|
+
resourceInputs["stopDuringBackup"] = args?.stopDuringBackup;
|
|
89
|
+
resourceInputs["storageUuid"] = args?.storageUuid;
|
|
90
|
+
resourceInputs["timeout"] = args?.timeout;
|
|
91
|
+
resourceInputs["volumeName"] = args?.volumeName;
|
|
92
|
+
resourceInputs["resolvedStorageUuid"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["storageType"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
resourceInputs["applicationUuid"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["backupNow"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["databaseUuid"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["disableLocalBackup"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["enabled"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["frequency"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["mountPath"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["resolvedStorageUuid"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["retentionAmountLocally"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["retentionAmountS3"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["retentionDaysLocally"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["retentionDaysS3"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["retentionMaxStorageLocally"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["retentionMaxStorageS3"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["s3StorageUuid"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["saveS3"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["serviceUuid"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["stopDuringBackup"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["storageType"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["storageUuid"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["timeout"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["volumeName"] = undefined /*out*/;
|
|
120
|
+
}
|
|
121
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
122
|
+
super(VolumeBackup.__pulumiType, name, resourceInputs, opts);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.VolumeBackup = VolumeBackup;
|
|
126
|
+
//# sourceMappingURL=volumeBackup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumeBackup.js","sourceRoot":"","sources":["../volumeBackup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,4BAA4B,CAAC;IAEnE;;;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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA+FD;;;;;;OA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