@pulumi/harness 0.9.2 → 0.9.3
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/cluster/orchestrator.d.ts +0 -16
- package/cluster/orchestrator.js +0 -16
- package/cluster/orchestrator.js.map +1 -1
- package/package.json +2 -2
- package/platform/dbSchema.d.ts +115 -0
- package/platform/dbSchema.js +105 -0
- package/platform/dbSchema.js.map +1 -1
- package/platform/getDbSchema.d.ts +12 -0
- package/platform/getDbSchema.js +2 -0
- package/platform/getDbSchema.js.map +1 -1
- package/types/input.d.ts +8 -0
- package/types/output.d.ts +16 -0
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Resource for creating ClusterOrchestrators.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as harness from "@pulumi/harness";
|
|
10
|
-
*
|
|
11
|
-
* const test = new harness.cluster.Orchestrator("test", {
|
|
12
|
-
* name: "name",
|
|
13
|
-
* clusterEndpoint: "http://test.test.com",
|
|
14
|
-
* k8sConnectorId: "test",
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
2
|
export declare class Orchestrator extends pulumi.CustomResource {
|
|
19
3
|
/**
|
|
20
4
|
* Get an existing Orchestrator resource's state with the given name, ID, and optional extra
|
package/cluster/orchestrator.js
CHANGED
|
@@ -5,22 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Orchestrator = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Resource for creating ClusterOrchestrators.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as harness from "@pulumi/harness";
|
|
16
|
-
*
|
|
17
|
-
* const test = new harness.cluster.Orchestrator("test", {
|
|
18
|
-
* name: "name",
|
|
19
|
-
* clusterEndpoint: "http://test.test.com",
|
|
20
|
-
* k8sConnectorId: "test",
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
8
|
class Orchestrator extends pulumi.CustomResource {
|
|
25
9
|
/**
|
|
26
10
|
* Get an existing Orchestrator resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.js","sourceRoot":"","sources":["../../cluster/orchestrator.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"orchestrator.js","sourceRoot":"","sources":["../../cluster/orchestrator.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,c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
|
"description": "A Pulumi package for creating and managing Harness resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "harness",
|
|
26
|
-
"version": "0.9.
|
|
26
|
+
"version": "0.9.3",
|
|
27
27
|
"server": "github://api.github.com/pulumi"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/platform/dbSchema.d.ts
CHANGED
|
@@ -4,6 +4,109 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Resource for creating a Harness DBDevOps Schema.
|
|
6
6
|
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* const defaultTypeTest = new harness.platform.DbSchema("default_type_test", {
|
|
14
|
+
* identifier: "identifier",
|
|
15
|
+
* orgId: "org_id",
|
|
16
|
+
* projectId: "project_id",
|
|
17
|
+
* name: "name",
|
|
18
|
+
* service: "service1",
|
|
19
|
+
* tags: [
|
|
20
|
+
* "foo:bar",
|
|
21
|
+
* "bar:foo",
|
|
22
|
+
* ],
|
|
23
|
+
* schemaSource: {
|
|
24
|
+
* connector: "gitConnector",
|
|
25
|
+
* repo: "TestRepo",
|
|
26
|
+
* location: "db/example-changelog.yaml",
|
|
27
|
+
* archivePath: "path/to/archive.zip",
|
|
28
|
+
* },
|
|
29
|
+
* });
|
|
30
|
+
* const liquibaseRepositoryTest = new harness.platform.DbSchema("liquibase_repository_test", {
|
|
31
|
+
* identifier: "identifier",
|
|
32
|
+
* orgId: "org_id",
|
|
33
|
+
* projectId: "project_id",
|
|
34
|
+
* name: "name",
|
|
35
|
+
* service: "service1",
|
|
36
|
+
* type: "Repository",
|
|
37
|
+
* migrationType: "Liquibase",
|
|
38
|
+
* tags: [
|
|
39
|
+
* "foo:bar",
|
|
40
|
+
* "bar:foo",
|
|
41
|
+
* ],
|
|
42
|
+
* schemaSource: {
|
|
43
|
+
* connector: "gitConnector",
|
|
44
|
+
* repo: "TestRepo",
|
|
45
|
+
* location: "db/example-changelog.yaml",
|
|
46
|
+
* archivePath: "path/to/archive.zip",
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* const liquibaseScriptTest = new harness.platform.DbSchema("liquibase_script_test", {
|
|
50
|
+
* identifier: "identifier",
|
|
51
|
+
* orgId: "org_id",
|
|
52
|
+
* projectId: "project_id",
|
|
53
|
+
* name: "name",
|
|
54
|
+
* migrationType: "Liquibase",
|
|
55
|
+
* service: "service1",
|
|
56
|
+
* type: "Script",
|
|
57
|
+
* tags: [
|
|
58
|
+
* "foo:bar",
|
|
59
|
+
* "bar:foo",
|
|
60
|
+
* ],
|
|
61
|
+
* changelogScript: {
|
|
62
|
+
* image: "plugins/image",
|
|
63
|
+
* command: "echo \\\"hello dbops\\\"",
|
|
64
|
+
* shell: "sh/bash",
|
|
65
|
+
* location: "db/example-changelog.yaml",
|
|
66
|
+
* },
|
|
67
|
+
* });
|
|
68
|
+
* const flywayRepositoryTest = new harness.platform.DbSchema("flyway_repository_test", {
|
|
69
|
+
* identifier: "identifier",
|
|
70
|
+
* orgId: "org_id",
|
|
71
|
+
* projectId: "project_id",
|
|
72
|
+
* name: "name",
|
|
73
|
+
* service: "service1",
|
|
74
|
+
* type: "Repository",
|
|
75
|
+
* migrationType: "Flyway",
|
|
76
|
+
* tags: [
|
|
77
|
+
* "foo:bar",
|
|
78
|
+
* "bar:foo",
|
|
79
|
+
* ],
|
|
80
|
+
* schemaSource: {
|
|
81
|
+
* connector: "gitConnector",
|
|
82
|
+
* repo: "TestRepo",
|
|
83
|
+
* location: "db/flyway/migrations",
|
|
84
|
+
* toml: "db/flyway.toml",
|
|
85
|
+
* archivePath: "path/to/archive.zip",
|
|
86
|
+
* },
|
|
87
|
+
* });
|
|
88
|
+
* const flywayScriptTest = new harness.platform.DbSchema("flyway_script_test", {
|
|
89
|
+
* identifier: "identifier",
|
|
90
|
+
* orgId: "org_id",
|
|
91
|
+
* projectId: "project_id",
|
|
92
|
+
* name: "name",
|
|
93
|
+
* migrationType: "Flyway",
|
|
94
|
+
* service: "service1",
|
|
95
|
+
* type: "Script",
|
|
96
|
+
* tags: [
|
|
97
|
+
* "foo:bar",
|
|
98
|
+
* "bar:foo",
|
|
99
|
+
* ],
|
|
100
|
+
* changelogScript: {
|
|
101
|
+
* image: "plugins/image",
|
|
102
|
+
* command: "echo \\\"hello dbops\\\"",
|
|
103
|
+
* shell: "sh/bash",
|
|
104
|
+
* location: "db/flyway/migrations",
|
|
105
|
+
* toml: "db/flyway.toml",
|
|
106
|
+
* },
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
7
110
|
* ## Import
|
|
8
111
|
*
|
|
9
112
|
* The `pulumi import` command can be used, for example:
|
|
@@ -42,6 +145,10 @@ export declare class DbSchema extends pulumi.CustomResource {
|
|
|
42
145
|
* Unique identifier of the resource.
|
|
43
146
|
*/
|
|
44
147
|
readonly identifier: pulumi.Output<string>;
|
|
148
|
+
/**
|
|
149
|
+
* DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
150
|
+
*/
|
|
151
|
+
readonly migrationType: pulumi.Output<string | undefined>;
|
|
45
152
|
/**
|
|
46
153
|
* Name of the resource.
|
|
47
154
|
*/
|
|
@@ -95,6 +202,10 @@ export interface DbSchemaState {
|
|
|
95
202
|
* Unique identifier of the resource.
|
|
96
203
|
*/
|
|
97
204
|
identifier?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
207
|
+
*/
|
|
208
|
+
migrationType?: pulumi.Input<string>;
|
|
98
209
|
/**
|
|
99
210
|
* Name of the resource.
|
|
100
211
|
*/
|
|
@@ -140,6 +251,10 @@ export interface DbSchemaArgs {
|
|
|
140
251
|
* Unique identifier of the resource.
|
|
141
252
|
*/
|
|
142
253
|
identifier: pulumi.Input<string>;
|
|
254
|
+
/**
|
|
255
|
+
* DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
256
|
+
*/
|
|
257
|
+
migrationType?: pulumi.Input<string>;
|
|
143
258
|
/**
|
|
144
259
|
* Name of the resource.
|
|
145
260
|
*/
|
package/platform/dbSchema.js
CHANGED
|
@@ -8,6 +8,109 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Resource for creating a Harness DBDevOps Schema.
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as harness from "@pulumi/harness";
|
|
16
|
+
*
|
|
17
|
+
* const defaultTypeTest = new harness.platform.DbSchema("default_type_test", {
|
|
18
|
+
* identifier: "identifier",
|
|
19
|
+
* orgId: "org_id",
|
|
20
|
+
* projectId: "project_id",
|
|
21
|
+
* name: "name",
|
|
22
|
+
* service: "service1",
|
|
23
|
+
* tags: [
|
|
24
|
+
* "foo:bar",
|
|
25
|
+
* "bar:foo",
|
|
26
|
+
* ],
|
|
27
|
+
* schemaSource: {
|
|
28
|
+
* connector: "gitConnector",
|
|
29
|
+
* repo: "TestRepo",
|
|
30
|
+
* location: "db/example-changelog.yaml",
|
|
31
|
+
* archivePath: "path/to/archive.zip",
|
|
32
|
+
* },
|
|
33
|
+
* });
|
|
34
|
+
* const liquibaseRepositoryTest = new harness.platform.DbSchema("liquibase_repository_test", {
|
|
35
|
+
* identifier: "identifier",
|
|
36
|
+
* orgId: "org_id",
|
|
37
|
+
* projectId: "project_id",
|
|
38
|
+
* name: "name",
|
|
39
|
+
* service: "service1",
|
|
40
|
+
* type: "Repository",
|
|
41
|
+
* migrationType: "Liquibase",
|
|
42
|
+
* tags: [
|
|
43
|
+
* "foo:bar",
|
|
44
|
+
* "bar:foo",
|
|
45
|
+
* ],
|
|
46
|
+
* schemaSource: {
|
|
47
|
+
* connector: "gitConnector",
|
|
48
|
+
* repo: "TestRepo",
|
|
49
|
+
* location: "db/example-changelog.yaml",
|
|
50
|
+
* archivePath: "path/to/archive.zip",
|
|
51
|
+
* },
|
|
52
|
+
* });
|
|
53
|
+
* const liquibaseScriptTest = new harness.platform.DbSchema("liquibase_script_test", {
|
|
54
|
+
* identifier: "identifier",
|
|
55
|
+
* orgId: "org_id",
|
|
56
|
+
* projectId: "project_id",
|
|
57
|
+
* name: "name",
|
|
58
|
+
* migrationType: "Liquibase",
|
|
59
|
+
* service: "service1",
|
|
60
|
+
* type: "Script",
|
|
61
|
+
* tags: [
|
|
62
|
+
* "foo:bar",
|
|
63
|
+
* "bar:foo",
|
|
64
|
+
* ],
|
|
65
|
+
* changelogScript: {
|
|
66
|
+
* image: "plugins/image",
|
|
67
|
+
* command: "echo \\\"hello dbops\\\"",
|
|
68
|
+
* shell: "sh/bash",
|
|
69
|
+
* location: "db/example-changelog.yaml",
|
|
70
|
+
* },
|
|
71
|
+
* });
|
|
72
|
+
* const flywayRepositoryTest = new harness.platform.DbSchema("flyway_repository_test", {
|
|
73
|
+
* identifier: "identifier",
|
|
74
|
+
* orgId: "org_id",
|
|
75
|
+
* projectId: "project_id",
|
|
76
|
+
* name: "name",
|
|
77
|
+
* service: "service1",
|
|
78
|
+
* type: "Repository",
|
|
79
|
+
* migrationType: "Flyway",
|
|
80
|
+
* tags: [
|
|
81
|
+
* "foo:bar",
|
|
82
|
+
* "bar:foo",
|
|
83
|
+
* ],
|
|
84
|
+
* schemaSource: {
|
|
85
|
+
* connector: "gitConnector",
|
|
86
|
+
* repo: "TestRepo",
|
|
87
|
+
* location: "db/flyway/migrations",
|
|
88
|
+
* toml: "db/flyway.toml",
|
|
89
|
+
* archivePath: "path/to/archive.zip",
|
|
90
|
+
* },
|
|
91
|
+
* });
|
|
92
|
+
* const flywayScriptTest = new harness.platform.DbSchema("flyway_script_test", {
|
|
93
|
+
* identifier: "identifier",
|
|
94
|
+
* orgId: "org_id",
|
|
95
|
+
* projectId: "project_id",
|
|
96
|
+
* name: "name",
|
|
97
|
+
* migrationType: "Flyway",
|
|
98
|
+
* service: "service1",
|
|
99
|
+
* type: "Script",
|
|
100
|
+
* tags: [
|
|
101
|
+
* "foo:bar",
|
|
102
|
+
* "bar:foo",
|
|
103
|
+
* ],
|
|
104
|
+
* changelogScript: {
|
|
105
|
+
* image: "plugins/image",
|
|
106
|
+
* command: "echo \\\"hello dbops\\\"",
|
|
107
|
+
* shell: "sh/bash",
|
|
108
|
+
* location: "db/flyway/migrations",
|
|
109
|
+
* toml: "db/flyway.toml",
|
|
110
|
+
* },
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
11
114
|
* ## Import
|
|
12
115
|
*
|
|
13
116
|
* The `pulumi import` command can be used, for example:
|
|
@@ -49,6 +152,7 @@ class DbSchema extends pulumi.CustomResource {
|
|
|
49
152
|
resourceInputs["changelogScript"] = state?.changelogScript;
|
|
50
153
|
resourceInputs["description"] = state?.description;
|
|
51
154
|
resourceInputs["identifier"] = state?.identifier;
|
|
155
|
+
resourceInputs["migrationType"] = state?.migrationType;
|
|
52
156
|
resourceInputs["name"] = state?.name;
|
|
53
157
|
resourceInputs["orgId"] = state?.orgId;
|
|
54
158
|
resourceInputs["projectId"] = state?.projectId;
|
|
@@ -71,6 +175,7 @@ class DbSchema extends pulumi.CustomResource {
|
|
|
71
175
|
resourceInputs["changelogScript"] = args?.changelogScript;
|
|
72
176
|
resourceInputs["description"] = args?.description;
|
|
73
177
|
resourceInputs["identifier"] = args?.identifier;
|
|
178
|
+
resourceInputs["migrationType"] = args?.migrationType;
|
|
74
179
|
resourceInputs["name"] = args?.name;
|
|
75
180
|
resourceInputs["orgId"] = args?.orgId;
|
|
76
181
|
resourceInputs["projectId"] = args?.projectId;
|
package/platform/dbSchema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dbSchema.js","sourceRoot":"","sources":["../../platform/dbSchema.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"dbSchema.js","sourceRoot":"","sources":["../../platform/dbSchema.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmHG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuDD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAA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AI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA1HL,4BA2HC;AA7GG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
|
|
@@ -25,6 +25,10 @@ export interface GetDbSchemaArgs {
|
|
|
25
25
|
* Unique identifier of the resource.
|
|
26
26
|
*/
|
|
27
27
|
identifier: string;
|
|
28
|
+
/**
|
|
29
|
+
* DB Migration tool type, Valid values are any one of: Liquibase, Flyway
|
|
30
|
+
*/
|
|
31
|
+
migrationType?: string;
|
|
28
32
|
/**
|
|
29
33
|
* Name of the resource.
|
|
30
34
|
*/
|
|
@@ -62,6 +66,10 @@ export interface GetDbSchemaResult {
|
|
|
62
66
|
* Unique identifier of the resource.
|
|
63
67
|
*/
|
|
64
68
|
readonly identifier: string;
|
|
69
|
+
/**
|
|
70
|
+
* DB Migration tool type, Valid values are any one of: Liquibase, Flyway
|
|
71
|
+
*/
|
|
72
|
+
readonly migrationType?: string;
|
|
65
73
|
/**
|
|
66
74
|
* Name of the resource.
|
|
67
75
|
*/
|
|
@@ -116,6 +124,10 @@ export interface GetDbSchemaOutputArgs {
|
|
|
116
124
|
* Unique identifier of the resource.
|
|
117
125
|
*/
|
|
118
126
|
identifier: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* DB Migration tool type, Valid values are any one of: Liquibase, Flyway
|
|
129
|
+
*/
|
|
130
|
+
migrationType?: pulumi.Input<string>;
|
|
119
131
|
/**
|
|
120
132
|
* Name of the resource.
|
|
121
133
|
*/
|
package/platform/getDbSchema.js
CHANGED
|
@@ -25,6 +25,7 @@ function getDbSchema(args, opts) {
|
|
|
25
25
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
26
|
return pulumi.runtime.invoke("harness:platform/getDbSchema:getDbSchema", {
|
|
27
27
|
"identifier": args.identifier,
|
|
28
|
+
"migrationType": args.migrationType,
|
|
28
29
|
"name": args.name,
|
|
29
30
|
"orgId": args.orgId,
|
|
30
31
|
"projectId": args.projectId,
|
|
@@ -52,6 +53,7 @@ function getDbSchemaOutput(args, opts) {
|
|
|
52
53
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
53
54
|
return pulumi.runtime.invokeOutput("harness:platform/getDbSchema:getDbSchema", {
|
|
54
55
|
"identifier": args.identifier,
|
|
56
|
+
"migrationType": args.migrationType,
|
|
55
57
|
"name": args.name,
|
|
56
58
|
"orgId": args.orgId,
|
|
57
59
|
"projectId": args.projectId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDbSchema.js","sourceRoot":"","sources":["../../platform/getDbSchema.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAA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Y,EAAE,IAAI,CAAC,UAAU;QAC7B,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8CAUC"}
|
package/types/input.d.ts
CHANGED
|
@@ -3840,6 +3840,10 @@ export declare namespace platform {
|
|
|
3840
3840
|
* Type of the shell. For example Sh or Bash
|
|
3841
3841
|
*/
|
|
3842
3842
|
shell?: pulumi.Input<string>;
|
|
3843
|
+
/**
|
|
3844
|
+
* Config file, to define various settings and properties for managing database schema change
|
|
3845
|
+
*/
|
|
3846
|
+
toml?: pulumi.Input<string>;
|
|
3843
3847
|
}
|
|
3844
3848
|
interface DbSchemaSchemaSource {
|
|
3845
3849
|
/**
|
|
@@ -3858,6 +3862,10 @@ export declare namespace platform {
|
|
|
3858
3862
|
* If connector url is of account, which repository to connect to using the connector
|
|
3859
3863
|
*/
|
|
3860
3864
|
repo?: pulumi.Input<string>;
|
|
3865
|
+
/**
|
|
3866
|
+
* Config file, to define various settings and properties for managing database schema change
|
|
3867
|
+
*/
|
|
3868
|
+
toml?: pulumi.Input<string>;
|
|
3861
3869
|
}
|
|
3862
3870
|
interface DefaultNotificationTemplateSetEventTemplateConfigurationSet {
|
|
3863
3871
|
/**
|
package/types/output.d.ts
CHANGED
|
@@ -3274,6 +3274,10 @@ export declare namespace platform {
|
|
|
3274
3274
|
* Type of the shell. For example Sh or Bash
|
|
3275
3275
|
*/
|
|
3276
3276
|
shell?: string;
|
|
3277
|
+
/**
|
|
3278
|
+
* Config file, to define various settings and properties for managing database schema change
|
|
3279
|
+
*/
|
|
3280
|
+
toml?: string;
|
|
3277
3281
|
}
|
|
3278
3282
|
interface DbSchemaSchemaSource {
|
|
3279
3283
|
/**
|
|
@@ -3292,6 +3296,10 @@ export declare namespace platform {
|
|
|
3292
3296
|
* If connector url is of account, which repository to connect to using the connector
|
|
3293
3297
|
*/
|
|
3294
3298
|
repo?: string;
|
|
3299
|
+
/**
|
|
3300
|
+
* Config file, to define various settings and properties for managing database schema change
|
|
3301
|
+
*/
|
|
3302
|
+
toml?: string;
|
|
3295
3303
|
}
|
|
3296
3304
|
interface DefaultNotificationTemplateSetEventTemplateConfigurationSet {
|
|
3297
3305
|
/**
|
|
@@ -4368,6 +4376,10 @@ export declare namespace platform {
|
|
|
4368
4376
|
* Type of the shell. For example Sh or Bash
|
|
4369
4377
|
*/
|
|
4370
4378
|
shell: string;
|
|
4379
|
+
/**
|
|
4380
|
+
* [Optional] For flyway migration type only
|
|
4381
|
+
*/
|
|
4382
|
+
toml?: string;
|
|
4371
4383
|
}
|
|
4372
4384
|
interface GetDbSchemaSchemaSource {
|
|
4373
4385
|
/**
|
|
@@ -4386,6 +4398,10 @@ export declare namespace platform {
|
|
|
4386
4398
|
* If connector url is of account, which repository to connect to using the connector
|
|
4387
4399
|
*/
|
|
4388
4400
|
repo: string;
|
|
4401
|
+
/**
|
|
4402
|
+
* [Optional] For flyway migration type only
|
|
4403
|
+
*/
|
|
4404
|
+
toml?: string;
|
|
4389
4405
|
}
|
|
4390
4406
|
interface GetDefaultNotificationTemplateSetEventTemplateConfigurationSet {
|
|
4391
4407
|
/**
|