@bambamboole/coolify 0.4.2 → 0.6.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.
Files changed (89) hide show
  1. package/README.md +1 -1
  2. package/application.d.ts +258 -16
  3. package/application.d.ts.map +1 -0
  4. package/application.js +37 -9
  5. package/application.js.map +1 -0
  6. package/config/index.d.ts.map +1 -1
  7. package/config/index.js.map +1 -1
  8. package/config/vars.d.ts +4 -4
  9. package/config/vars.d.ts.map +1 -1
  10. package/config/vars.js +3 -2
  11. package/config/vars.js.map +1 -1
  12. package/database.d.ts +95 -17
  13. package/database.d.ts.map +1 -0
  14. package/database.js +17 -15
  15. package/database.js.map +1 -0
  16. package/databaseBackup.d.ts +166 -0
  17. package/databaseBackup.d.ts.map +1 -0
  18. package/databaseBackup.js +117 -0
  19. package/databaseBackup.js.map +1 -0
  20. package/deployment.d.ts +32 -3
  21. package/deployment.d.ts.map +1 -0
  22. package/deployment.js +3 -1
  23. package/deployment.js.map +1 -0
  24. package/gitHubApp.d.ts +146 -0
  25. package/gitHubApp.d.ts.map +1 -0
  26. package/gitHubApp.js +127 -0
  27. package/gitHubApp.js.map +1 -0
  28. package/index.d.ts +15 -1
  29. package/index.d.ts.map +1 -0
  30. package/index.js +24 -1
  31. package/index.js.map +1 -0
  32. package/package.json +4 -17
  33. package/privateKey.d.ts +27 -4
  34. package/privateKey.d.ts.map +1 -0
  35. package/privateKey.js +6 -1
  36. package/privateKey.js.map +1 -0
  37. package/project.d.ts +13 -4
  38. package/project.d.ts.map +1 -0
  39. package/project.js +1 -1
  40. package/project.js.map +1 -0
  41. package/provider.d.ts +7 -7
  42. package/provider.d.ts.map +1 -0
  43. package/provider.js +2 -5
  44. package/provider.js.map +1 -0
  45. package/s3storage.d.ts +46 -5
  46. package/s3storage.d.ts.map +1 -0
  47. package/s3storage.js +5 -1
  48. package/s3storage.js.map +1 -0
  49. package/scheduledTask.d.ts +94 -0
  50. package/scheduledTask.d.ts.map +1 -0
  51. package/scheduledTask.js +105 -0
  52. package/scheduledTask.js.map +1 -0
  53. package/server.d.ts +39 -3
  54. package/server.d.ts.map +1 -0
  55. package/server.js +3 -3
  56. package/server.js.map +1 -0
  57. package/service.d.ts +130 -0
  58. package/service.d.ts.map +1 -0
  59. package/service.js +110 -0
  60. package/service.js.map +1 -0
  61. package/types/enums/index.d.ts +59 -0
  62. package/types/enums/index.d.ts.map +1 -0
  63. package/types/enums/index.js +62 -0
  64. package/types/enums/index.js.map +1 -0
  65. package/types/index.d.ts +5 -0
  66. package/types/index.d.ts.map +1 -0
  67. package/types/index.js +36 -0
  68. package/types/index.js.map +1 -0
  69. package/types/input.d.ts +2 -0
  70. package/types/input.d.ts.map +1 -0
  71. package/{config/index.ts → types/input.js} +3 -3
  72. package/types/input.js.map +1 -0
  73. package/types/output.d.ts +2 -0
  74. package/types/output.d.ts.map +1 -0
  75. package/types/output.js +5 -0
  76. package/types/output.js.map +1 -0
  77. package/utilities.d.ts.map +1 -0
  78. package/utilities.js.map +1 -0
  79. package/application.ts +0 -181
  80. package/config/vars.ts +0 -31
  81. package/database.ts +0 -146
  82. package/deployment.ts +0 -100
  83. package/index.ts +0 -88
  84. package/privateKey.ts +0 -85
  85. package/project.ts +0 -90
  86. package/provider.ts +0 -70
  87. package/s3storage.ts +0 -114
  88. package/server.ts +0 -99
  89. package/utilities.ts +0 -96
package/database.ts DELETED
@@ -1,146 +0,0 @@
1
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
-
4
- import * as pulumi from "@pulumi/pulumi";
5
- import * as utilities from "./utilities";
6
-
7
- /**
8
- * A standalone Coolify database (Redis, PostgreSQL) inside a project environment.
9
- */
10
- export class Database extends pulumi.CustomResource {
11
- /**
12
- * Get an existing Database resource's state with the given name, ID, and optional extra
13
- * properties used to qualify the lookup.
14
- *
15
- * @param name The _unique_ name of the resulting resource.
16
- * @param id The _unique_ provider ID of the resource to lookup.
17
- * @param opts Optional settings to control the behavior of the CustomResource.
18
- */
19
- public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Database {
20
- return new Database(name, undefined as any, { ...opts, id: id });
21
- }
22
-
23
- /** @internal */
24
- public static readonly __pulumiType = 'coolify:index:Database';
25
-
26
- /**
27
- * Returns true if the given object is an instance of Database. This is designed to work even
28
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
- */
30
- public static isInstance(obj: any): obj is Database {
31
- if (obj === undefined || obj === null) {
32
- return false;
33
- }
34
- return obj['__pulumiType'] === Database.__pulumiType;
35
- }
36
-
37
- declare public readonly description: pulumi.Output<string>;
38
- declare public readonly environment: pulumi.Output<string>;
39
- declare public /*out*/ readonly environmentId: pulumi.Output<number>;
40
- declare public /*out*/ readonly externalUrl: pulumi.Output<string | undefined>;
41
- declare public readonly image: pulumi.Output<string>;
42
- declare public /*out*/ readonly internalUrl: pulumi.Output<string | undefined>;
43
- declare public readonly isPublic: pulumi.Output<boolean>;
44
- declare public readonly name: pulumi.Output<string>;
45
- /**
46
- * Database password generated by Coolify. Never compared or patched.
47
- */
48
- declare public /*out*/ readonly password: pulumi.Output<string | undefined>;
49
- declare public /*out*/ readonly postgresDatabase: pulumi.Output<string | undefined>;
50
- declare public /*out*/ readonly postgresUser: pulumi.Output<string | undefined>;
51
- declare public readonly project: pulumi.Output<string>;
52
- declare public /*out*/ readonly projectUuid: pulumi.Output<string>;
53
- declare public readonly publicPort: pulumi.Output<number | undefined>;
54
- declare public readonly serverUuid: pulumi.Output<string>;
55
- declare public readonly type: pulumi.Output<string>;
56
- declare public /*out*/ readonly uuid: pulumi.Output<string>;
57
-
58
- /**
59
- * Create a Database 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: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions) {
66
- let resourceInputs: pulumi.Inputs = {};
67
- opts = opts || {};
68
- if (!opts.id) {
69
- if (args?.environment === undefined && !opts.urn) {
70
- throw new Error("Missing required property 'environment'");
71
- }
72
- if (args?.name === undefined && !opts.urn) {
73
- throw new Error("Missing required property 'name'");
74
- }
75
- if (args?.project === undefined && !opts.urn) {
76
- throw new Error("Missing required property 'project'");
77
- }
78
- if (args?.serverUuid === undefined && !opts.urn) {
79
- throw new Error("Missing required property 'serverUuid'");
80
- }
81
- if (args?.type === undefined && !opts.urn) {
82
- throw new Error("Missing required property 'type'");
83
- }
84
- resourceInputs["description"] = args?.description;
85
- resourceInputs["environment"] = args?.environment;
86
- resourceInputs["image"] = args?.image;
87
- resourceInputs["isPublic"] = args?.isPublic;
88
- resourceInputs["name"] = args?.name;
89
- resourceInputs["project"] = args?.project;
90
- resourceInputs["publicPort"] = args?.publicPort;
91
- resourceInputs["serverUuid"] = args?.serverUuid;
92
- resourceInputs["type"] = args?.type;
93
- resourceInputs["environmentId"] = undefined /*out*/;
94
- resourceInputs["externalUrl"] = undefined /*out*/;
95
- resourceInputs["internalUrl"] = undefined /*out*/;
96
- resourceInputs["password"] = undefined /*out*/;
97
- resourceInputs["postgresDatabase"] = undefined /*out*/;
98
- resourceInputs["postgresUser"] = undefined /*out*/;
99
- resourceInputs["projectUuid"] = undefined /*out*/;
100
- resourceInputs["uuid"] = undefined /*out*/;
101
- } else {
102
- resourceInputs["description"] = undefined /*out*/;
103
- resourceInputs["environment"] = undefined /*out*/;
104
- resourceInputs["environmentId"] = undefined /*out*/;
105
- resourceInputs["externalUrl"] = undefined /*out*/;
106
- resourceInputs["image"] = undefined /*out*/;
107
- resourceInputs["internalUrl"] = undefined /*out*/;
108
- resourceInputs["isPublic"] = undefined /*out*/;
109
- resourceInputs["name"] = undefined /*out*/;
110
- resourceInputs["password"] = undefined /*out*/;
111
- resourceInputs["postgresDatabase"] = undefined /*out*/;
112
- resourceInputs["postgresUser"] = undefined /*out*/;
113
- resourceInputs["project"] = undefined /*out*/;
114
- resourceInputs["projectUuid"] = undefined /*out*/;
115
- resourceInputs["publicPort"] = undefined /*out*/;
116
- resourceInputs["serverUuid"] = undefined /*out*/;
117
- resourceInputs["type"] = undefined /*out*/;
118
- resourceInputs["uuid"] = undefined /*out*/;
119
- }
120
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
121
- const secretOpts = { additionalSecretOutputs: ["password"] };
122
- opts = pulumi.mergeOptions(opts, secretOpts);
123
- super(Database.__pulumiType, name, resourceInputs, opts);
124
- }
125
- }
126
-
127
- /**
128
- * The set of arguments for constructing a Database resource.
129
- */
130
- export interface DatabaseArgs {
131
- description?: pulumi.Input<string | undefined>;
132
- environment: pulumi.Input<string>;
133
- image?: pulumi.Input<string | undefined>;
134
- isPublic?: pulumi.Input<boolean | undefined>;
135
- name: pulumi.Input<string>;
136
- project: pulumi.Input<string>;
137
- /**
138
- * Public port to expose. Required when isPublic is true.
139
- */
140
- publicPort?: pulumi.Input<number | undefined>;
141
- serverUuid: pulumi.Input<string>;
142
- /**
143
- * Database type: "redis" or "postgresql".
144
- */
145
- type: pulumi.Input<string>;
146
- }
package/deployment.ts DELETED
@@ -1,100 +0,0 @@
1
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
-
4
- import * as pulumi from "@pulumi/pulumi";
5
- import * as utilities from "./utilities";
6
-
7
- /**
8
- * Triggers a deployment of a Coolify application and waits for it to finish.
9
- */
10
- export class Deployment extends pulumi.CustomResource {
11
- /**
12
- * Get an existing Deployment resource's state with the given name, ID, and optional extra
13
- * properties used to qualify the lookup.
14
- *
15
- * @param name The _unique_ name of the resulting resource.
16
- * @param id The _unique_ provider ID of the resource to lookup.
17
- * @param opts Optional settings to control the behavior of the CustomResource.
18
- */
19
- public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Deployment {
20
- return new Deployment(name, undefined as any, { ...opts, id: id });
21
- }
22
-
23
- /** @internal */
24
- public static readonly __pulumiType = 'coolify:index:Deployment';
25
-
26
- /**
27
- * Returns true if the given object is an instance of Deployment. This is designed to work even
28
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
- */
30
- public static isInstance(obj: any): obj is Deployment {
31
- if (obj === undefined || obj === null) {
32
- return false;
33
- }
34
- return obj['__pulumiType'] === Deployment.__pulumiType;
35
- }
36
-
37
- declare public readonly application: pulumi.Output<string>;
38
- declare public /*out*/ readonly commit: pulumi.Output<string | undefined>;
39
- declare public readonly dockerTag: pulumi.Output<string | undefined>;
40
- declare public readonly force: pulumi.Output<boolean>;
41
- declare public readonly pullRequestId: pulumi.Output<number | undefined>;
42
- declare public /*out*/ readonly status: pulumi.Output<string>;
43
- declare public /*out*/ readonly uuid: pulumi.Output<string>;
44
-
45
- /**
46
- * Create a Deployment resource with the given unique name, arguments, and options.
47
- *
48
- * @param name The _unique_ name of the resource.
49
- * @param args The arguments to use to populate this resource's properties.
50
- * @param opts A bag of options that control this resource's behavior.
51
- */
52
- constructor(name: string, args: DeploymentArgs, opts?: pulumi.CustomResourceOptions) {
53
- let resourceInputs: pulumi.Inputs = {};
54
- opts = opts || {};
55
- if (!opts.id) {
56
- if (args?.application === undefined && !opts.urn) {
57
- throw new Error("Missing required property 'application'");
58
- }
59
- resourceInputs["application"] = args?.application;
60
- resourceInputs["dockerTag"] = args?.dockerTag;
61
- resourceInputs["force"] = args?.force;
62
- resourceInputs["pullRequestId"] = args?.pullRequestId;
63
- resourceInputs["commit"] = undefined /*out*/;
64
- resourceInputs["status"] = undefined /*out*/;
65
- resourceInputs["uuid"] = undefined /*out*/;
66
- } else {
67
- resourceInputs["application"] = undefined /*out*/;
68
- resourceInputs["commit"] = undefined /*out*/;
69
- resourceInputs["dockerTag"] = undefined /*out*/;
70
- resourceInputs["force"] = undefined /*out*/;
71
- resourceInputs["pullRequestId"] = undefined /*out*/;
72
- resourceInputs["status"] = undefined /*out*/;
73
- resourceInputs["uuid"] = undefined /*out*/;
74
- }
75
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
76
- super(Deployment.__pulumiType, name, resourceInputs, opts);
77
- }
78
- }
79
-
80
- /**
81
- * The set of arguments for constructing a Deployment resource.
82
- */
83
- export interface DeploymentArgs {
84
- /**
85
- * UUID of the Coolify application to deploy (the uuid output of an Application resource).
86
- */
87
- application: pulumi.Input<string>;
88
- /**
89
- * Override the Docker image tag to deploy.
90
- */
91
- dockerTag?: pulumi.Input<string | undefined>;
92
- /**
93
- * Force a rebuild even when there are no new commits.
94
- */
95
- force?: pulumi.Input<boolean | undefined>;
96
- /**
97
- * Deploy a preview of the given pull request instead of the default branch.
98
- */
99
- pullRequestId?: pulumi.Input<number | undefined>;
100
- }
package/index.ts DELETED
@@ -1,88 +0,0 @@
1
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
-
4
- import * as pulumi from "@pulumi/pulumi";
5
- import * as utilities from "./utilities";
6
-
7
- // Export members:
8
- export { ApplicationArgs } from "./application";
9
- export type Application = import("./application").Application;
10
- export const Application: typeof import("./application").Application = null as any;
11
- utilities.lazyLoad(exports, ["Application"], () => require("./application"));
12
-
13
- export { DatabaseArgs } from "./database";
14
- export type Database = import("./database").Database;
15
- export const Database: typeof import("./database").Database = null as any;
16
- utilities.lazyLoad(exports, ["Database"], () => require("./database"));
17
-
18
- export { DeploymentArgs } from "./deployment";
19
- export type Deployment = import("./deployment").Deployment;
20
- export const Deployment: typeof import("./deployment").Deployment = null as any;
21
- utilities.lazyLoad(exports, ["Deployment"], () => require("./deployment"));
22
-
23
- export { PrivateKeyArgs } from "./privateKey";
24
- export type PrivateKey = import("./privateKey").PrivateKey;
25
- export const PrivateKey: typeof import("./privateKey").PrivateKey = null as any;
26
- utilities.lazyLoad(exports, ["PrivateKey"], () => require("./privateKey"));
27
-
28
- export { ProjectArgs } from "./project";
29
- export type Project = import("./project").Project;
30
- export const Project: typeof import("./project").Project = null as any;
31
- utilities.lazyLoad(exports, ["Project"], () => require("./project"));
32
-
33
- export { ProviderArgs } from "./provider";
34
- export type Provider = import("./provider").Provider;
35
- export const Provider: typeof import("./provider").Provider = null as any;
36
- utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
37
-
38
- export { S3StorageArgs } from "./s3storage";
39
- export type S3Storage = import("./s3storage").S3Storage;
40
- export const S3Storage: typeof import("./s3storage").S3Storage = null as any;
41
- utilities.lazyLoad(exports, ["S3Storage"], () => require("./s3storage"));
42
-
43
- export { ServerArgs } from "./server";
44
- export type Server = import("./server").Server;
45
- export const Server: typeof import("./server").Server = null as any;
46
- utilities.lazyLoad(exports, ["Server"], () => require("./server"));
47
-
48
-
49
- // Export sub-modules:
50
- import * as config from "./config";
51
-
52
- export {
53
- config,
54
- };
55
-
56
- const _module = {
57
- version: utilities.getVersion(),
58
- construct: (name: string, type: string, urn: string): pulumi.Resource => {
59
- switch (type) {
60
- case "coolify:index:Application":
61
- return new Application(name, <any>undefined, { urn })
62
- case "coolify:index:Database":
63
- return new Database(name, <any>undefined, { urn })
64
- case "coolify:index:Deployment":
65
- return new Deployment(name, <any>undefined, { urn })
66
- case "coolify:index:PrivateKey":
67
- return new PrivateKey(name, <any>undefined, { urn })
68
- case "coolify:index:Project":
69
- return new Project(name, <any>undefined, { urn })
70
- case "coolify:index:S3Storage":
71
- return new S3Storage(name, <any>undefined, { urn })
72
- case "coolify:index:Server":
73
- return new Server(name, <any>undefined, { urn })
74
- default:
75
- throw new Error(`unknown resource type ${type}`);
76
- }
77
- },
78
- };
79
- pulumi.runtime.registerResourceModule("coolify", "index", _module)
80
- pulumi.runtime.registerResourcePackage("coolify", {
81
- version: utilities.getVersion(),
82
- constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
83
- if (type !== "pulumi:providers:coolify") {
84
- throw new Error(`unknown provider type ${type}`);
85
- }
86
- return new Provider(name, <any>undefined, { urn });
87
- },
88
- });
package/privateKey.ts DELETED
@@ -1,85 +0,0 @@
1
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
-
4
- import * as pulumi from "@pulumi/pulumi";
5
- import * as utilities from "./utilities";
6
-
7
- /**
8
- * A Coolify SSH private key.
9
- */
10
- export class PrivateKey extends pulumi.CustomResource {
11
- /**
12
- * Get an existing PrivateKey resource's state with the given name, ID, and optional extra
13
- * properties used to qualify the lookup.
14
- *
15
- * @param name The _unique_ name of the resulting resource.
16
- * @param id The _unique_ provider ID of the resource to lookup.
17
- * @param opts Optional settings to control the behavior of the CustomResource.
18
- */
19
- public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): PrivateKey {
20
- return new PrivateKey(name, undefined as any, { ...opts, id: id });
21
- }
22
-
23
- /** @internal */
24
- public static readonly __pulumiType = 'coolify:index:PrivateKey';
25
-
26
- /**
27
- * Returns true if the given object is an instance of PrivateKey. This is designed to work even
28
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
- */
30
- public static isInstance(obj: any): obj is PrivateKey {
31
- if (obj === undefined || obj === null) {
32
- return false;
33
- }
34
- return obj['__pulumiType'] === PrivateKey.__pulumiType;
35
- }
36
-
37
- declare public readonly description: pulumi.Output<string>;
38
- declare public readonly name: pulumi.Output<string>;
39
- /**
40
- * Public key derived from the private key.
41
- */
42
- declare public /*out*/ readonly publicKey: pulumi.Output<string | undefined>;
43
- declare public /*out*/ readonly uuid: pulumi.Output<string>;
44
-
45
- /**
46
- * Create a PrivateKey resource with the given unique name, arguments, and options.
47
- *
48
- * @param name The _unique_ name of the resource.
49
- * @param args The arguments to use to populate this resource's properties.
50
- * @param opts A bag of options that control this resource's behavior.
51
- */
52
- constructor(name: string, args: PrivateKeyArgs, opts?: pulumi.CustomResourceOptions) {
53
- let resourceInputs: pulumi.Inputs = {};
54
- opts = opts || {};
55
- if (!opts.id) {
56
- if (args?.name === undefined && !opts.urn) {
57
- throw new Error("Missing required property 'name'");
58
- }
59
- resourceInputs["description"] = args?.description;
60
- resourceInputs["name"] = args?.name;
61
- resourceInputs["privateKey"] = args?.privateKey ? pulumi.secret(args.privateKey) : undefined;
62
- resourceInputs["publicKey"] = undefined /*out*/;
63
- resourceInputs["uuid"] = undefined /*out*/;
64
- } else {
65
- resourceInputs["description"] = undefined /*out*/;
66
- resourceInputs["name"] = undefined /*out*/;
67
- resourceInputs["publicKey"] = undefined /*out*/;
68
- resourceInputs["uuid"] = undefined /*out*/;
69
- }
70
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
- super(PrivateKey.__pulumiType, name, resourceInputs, opts);
72
- }
73
- }
74
-
75
- /**
76
- * The set of arguments for constructing a PrivateKey resource.
77
- */
78
- export interface PrivateKeyArgs {
79
- description?: pulumi.Input<string | undefined>;
80
- name: pulumi.Input<string>;
81
- /**
82
- * PEM private key material. Required to create a missing key; never stored in state.
83
- */
84
- privateKey?: pulumi.Input<string | undefined>;
85
- }
package/project.ts DELETED
@@ -1,90 +0,0 @@
1
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
-
4
- import * as pulumi from "@pulumi/pulumi";
5
- import * as utilities from "./utilities";
6
-
7
- /**
8
- * A Coolify project with its environments.
9
- */
10
- export class Project extends pulumi.CustomResource {
11
- /**
12
- * Get an existing Project resource's state with the given name, ID, and optional extra
13
- * properties used to qualify the lookup.
14
- *
15
- * @param name The _unique_ name of the resulting resource.
16
- * @param id The _unique_ provider ID of the resource to lookup.
17
- * @param opts Optional settings to control the behavior of the CustomResource.
18
- */
19
- public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Project {
20
- return new Project(name, undefined as any, { ...opts, id: id });
21
- }
22
-
23
- /** @internal */
24
- public static readonly __pulumiType = 'coolify:index:Project';
25
-
26
- /**
27
- * Returns true if the given object is an instance of Project. This is designed to work even
28
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
- */
30
- public static isInstance(obj: any): obj is Project {
31
- if (obj === undefined || obj === null) {
32
- return false;
33
- }
34
- return obj['__pulumiType'] === Project.__pulumiType;
35
- }
36
-
37
- declare public readonly description: pulumi.Output<string>;
38
- declare public readonly environments: pulumi.Output<string[]>;
39
- declare public readonly name: pulumi.Output<string>;
40
- /**
41
- * UUID of the project in Coolify.
42
- */
43
- declare public /*out*/ readonly uuid: pulumi.Output<string>;
44
-
45
- /**
46
- * Create a Project resource with the given unique name, arguments, and options.
47
- *
48
- * @param name The _unique_ name of the resource.
49
- * @param args The arguments to use to populate this resource's properties.
50
- * @param opts A bag of options that control this resource's behavior.
51
- */
52
- constructor(name: string, args: ProjectArgs, opts?: pulumi.CustomResourceOptions) {
53
- let resourceInputs: pulumi.Inputs = {};
54
- opts = opts || {};
55
- if (!opts.id) {
56
- if (args?.name === undefined && !opts.urn) {
57
- throw new Error("Missing required property 'name'");
58
- }
59
- resourceInputs["description"] = args?.description;
60
- resourceInputs["environments"] = args?.environments;
61
- resourceInputs["name"] = args?.name;
62
- resourceInputs["uuid"] = undefined /*out*/;
63
- } else {
64
- resourceInputs["description"] = undefined /*out*/;
65
- resourceInputs["environments"] = undefined /*out*/;
66
- resourceInputs["name"] = undefined /*out*/;
67
- resourceInputs["uuid"] = undefined /*out*/;
68
- }
69
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
70
- super(Project.__pulumiType, name, resourceInputs, opts);
71
- }
72
- }
73
-
74
- /**
75
- * The set of arguments for constructing a Project resource.
76
- */
77
- export interface ProjectArgs {
78
- /**
79
- * Description of the project.
80
- */
81
- description?: pulumi.Input<string | undefined>;
82
- /**
83
- * Environments that must exist in the project. Only added; never removed.
84
- */
85
- environments?: pulumi.Input<pulumi.Input<string>[] | undefined>;
86
- /**
87
- * Name of the project.
88
- */
89
- name: pulumi.Input<string>;
90
- }
package/provider.ts DELETED
@@ -1,70 +0,0 @@
1
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
-
4
- import * as pulumi from "@pulumi/pulumi";
5
- import * as utilities from "./utilities";
6
-
7
- /**
8
- * Manage resources on a Coolify instance through the Coolify v4 API.
9
- */
10
- export class Provider extends pulumi.ProviderResource {
11
- /** @internal */
12
- public static readonly __pulumiType = 'coolify';
13
-
14
- /**
15
- * Returns true if the given object is an instance of Provider. This is designed to work even
16
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
17
- */
18
- public static isInstance(obj: any): obj is Provider {
19
- if (obj === undefined || obj === null) {
20
- return false;
21
- }
22
- return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
23
- }
24
-
25
- /**
26
- * Coolify read/write API token (Coolify > Security > API tokens).
27
- */
28
- declare public readonly apiToken: pulumi.Output<string | undefined>;
29
- /**
30
- * Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
31
- */
32
- declare public readonly baseUrl: pulumi.Output<string>;
33
-
34
- /**
35
- * Create a Provider resource with the given unique name, arguments, and options.
36
- *
37
- * @param name The _unique_ name of the resource.
38
- * @param args The arguments to use to populate this resource's properties.
39
- * @param opts A bag of options that control this resource's behavior.
40
- */
41
- constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions) {
42
- let resourceInputs: pulumi.Inputs = {};
43
- opts = opts || {};
44
- {
45
- if (args?.baseUrl === undefined && !opts.urn) {
46
- throw new Error("Missing required property 'baseUrl'");
47
- }
48
- resourceInputs["apiToken"] = args?.apiToken ? pulumi.secret(args.apiToken) : undefined;
49
- resourceInputs["baseUrl"] = args?.baseUrl;
50
- }
51
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
52
- const secretOpts = { additionalSecretOutputs: ["apiToken"] };
53
- opts = pulumi.mergeOptions(opts, secretOpts);
54
- super(Provider.__pulumiType, name, resourceInputs, opts);
55
- }
56
- }
57
-
58
- /**
59
- * The set of arguments for constructing a Provider resource.
60
- */
61
- export interface ProviderArgs {
62
- /**
63
- * Coolify read/write API token (Coolify > Security > API tokens).
64
- */
65
- apiToken?: pulumi.Input<string | undefined>;
66
- /**
67
- * Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
68
- */
69
- baseUrl: pulumi.Input<string>;
70
- }