@bambamboole/coolify 0.6.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 +6 -2
- 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 +12 -0
- package/database.d.ts.map +1 -1
- package/database.js +4 -0
- package/database.js.map +1 -1
- 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 +9 -0
- package/index.d.ts.map +1 -1
- package/index.js +12 -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 +12 -0
- package/service.d.ts.map +1 -1
- package/service.js +4 -0
- package/service.js.map +1 -1
- 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/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,G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