@pulumi/dbtcloud 0.1.0-alpha.1715944408

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 (166) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +70 -0
  3. package/bigQueryConnection.d.ts +399 -0
  4. package/bigQueryConnection.js +196 -0
  5. package/bigQueryConnection.js.map +1 -0
  6. package/bigQueryCredential.d.ts +117 -0
  7. package/bigQueryCredential.js +91 -0
  8. package/bigQueryCredential.js.map +1 -0
  9. package/config/index.d.ts +1 -0
  10. package/config/index.js +21 -0
  11. package/config/index.js.map +1 -0
  12. package/config/vars.d.ts +14 -0
  13. package/config/vars.js +29 -0
  14. package/config/vars.js.map +1 -0
  15. package/connection.d.ts +321 -0
  16. package/connection.js +149 -0
  17. package/connection.js.map +1 -0
  18. package/databricksCredential.d.ts +168 -0
  19. package/databricksCredential.js +120 -0
  20. package/databricksCredential.js.map +1 -0
  21. package/environment.d.ts +209 -0
  22. package/environment.js +123 -0
  23. package/environment.js.map +1 -0
  24. package/environmentVariable.d.ts +120 -0
  25. package/environmentVariable.js +101 -0
  26. package/environmentVariable.js.map +1 -0
  27. package/environmentVariableJobOverride.d.ts +119 -0
  28. package/environmentVariableJobOverride.js +93 -0
  29. package/environmentVariableJobOverride.js.map +1 -0
  30. package/extendedAttributes.d.ts +135 -0
  31. package/extendedAttributes.js +107 -0
  32. package/extendedAttributes.js.map +1 -0
  33. package/fabricConnection.d.ts +177 -0
  34. package/fabricConnection.js +108 -0
  35. package/fabricConnection.js.map +1 -0
  36. package/fabricCredential.d.ts +167 -0
  37. package/fabricCredential.js +93 -0
  38. package/fabricCredential.js.map +1 -0
  39. package/getAzureDevOpsProject.d.ts +72 -0
  40. package/getAzureDevOpsProject.js +53 -0
  41. package/getAzureDevOpsProject.js.map +1 -0
  42. package/getAzureDevOpsRepository.d.ts +98 -0
  43. package/getAzureDevOpsRepository.js +56 -0
  44. package/getAzureDevOpsRepository.js.map +1 -0
  45. package/getBigQueryConnection.d.ts +134 -0
  46. package/getBigQueryConnection.js +20 -0
  47. package/getBigQueryConnection.js.map +1 -0
  48. package/getBigQueryCredential.d.ts +58 -0
  49. package/getBigQueryCredential.js +20 -0
  50. package/getBigQueryCredential.js.map +1 -0
  51. package/getConnection.d.ts +86 -0
  52. package/getConnection.js +20 -0
  53. package/getConnection.js.map +1 -0
  54. package/getDatabricksCredential.d.ts +66 -0
  55. package/getDatabricksCredential.js +20 -0
  56. package/getDatabricksCredential.js.map +1 -0
  57. package/getEnvironment.d.ts +82 -0
  58. package/getEnvironment.js +20 -0
  59. package/getEnvironment.js.map +1 -0
  60. package/getEnvironmentVariable.d.ts +52 -0
  61. package/getEnvironmentVariable.js +20 -0
  62. package/getEnvironmentVariable.js.map +1 -0
  63. package/getExtendedAttributes.d.ts +80 -0
  64. package/getExtendedAttributes.js +46 -0
  65. package/getExtendedAttributes.js.map +1 -0
  66. package/getGroup.d.ts +50 -0
  67. package/getGroup.js +19 -0
  68. package/getGroup.js.map +1 -0
  69. package/getGroupUsers.d.ts +67 -0
  70. package/getGroupUsers.js +47 -0
  71. package/getGroupUsers.js.map +1 -0
  72. package/getJob.d.ts +89 -0
  73. package/getJob.js +20 -0
  74. package/getJob.js.map +1 -0
  75. package/getNotification.d.ts +82 -0
  76. package/getNotification.js +43 -0
  77. package/getNotification.js.map +1 -0
  78. package/getPostgresCredential.d.ts +62 -0
  79. package/getPostgresCredential.js +20 -0
  80. package/getPostgresCredential.js.map +1 -0
  81. package/getPrivatelinkEndpoint.d.ts +98 -0
  82. package/getPrivatelinkEndpoint.js +61 -0
  83. package/getPrivatelinkEndpoint.js.map +1 -0
  84. package/getProject.d.ts +102 -0
  85. package/getProject.js +57 -0
  86. package/getProject.js.map +1 -0
  87. package/getRepository.d.ts +86 -0
  88. package/getRepository.js +21 -0
  89. package/getRepository.js.map +1 -0
  90. package/getServiceToken.d.ts +47 -0
  91. package/getServiceToken.js +19 -0
  92. package/getServiceToken.js.map +1 -0
  93. package/getSnowflakeCredential.d.ts +66 -0
  94. package/getSnowflakeCredential.js +20 -0
  95. package/getSnowflakeCredential.js.map +1 -0
  96. package/getUser.d.ts +58 -0
  97. package/getUser.js +43 -0
  98. package/getUser.js.map +1 -0
  99. package/getUserGroups.d.ts +62 -0
  100. package/getUserGroups.js +43 -0
  101. package/getUserGroups.js.map +1 -0
  102. package/getWebhook.d.ts +66 -0
  103. package/getWebhook.js +19 -0
  104. package/getWebhook.js.map +1 -0
  105. package/group.d.ts +127 -0
  106. package/group.js +95 -0
  107. package/group.js.map +1 -0
  108. package/index.d.ts +144 -0
  109. package/index.js +220 -0
  110. package/index.js.map +1 -0
  111. package/job.d.ts +443 -0
  112. package/job.js +228 -0
  113. package/job.js.map +1 -0
  114. package/licenseMap.d.ts +96 -0
  115. package/licenseMap.js +90 -0
  116. package/licenseMap.js.map +1 -0
  117. package/notification.d.ts +202 -0
  118. package/notification.js +126 -0
  119. package/notification.js.map +1 -0
  120. package/package.json +31 -0
  121. package/package.json.bak +31 -0
  122. package/postgresCredential.d.ts +171 -0
  123. package/postgresCredential.js +110 -0
  124. package/postgresCredential.js.map +1 -0
  125. package/project.d.ts +87 -0
  126. package/project.js +78 -0
  127. package/project.js.map +1 -0
  128. package/projectArtefacts.d.ts +99 -0
  129. package/projectArtefacts.js +83 -0
  130. package/projectArtefacts.js.map +1 -0
  131. package/projectConnection.d.ts +86 -0
  132. package/projectConnection.js +83 -0
  133. package/projectConnection.js.map +1 -0
  134. package/projectRepository.d.ts +86 -0
  135. package/projectRepository.js +83 -0
  136. package/projectRepository.js.map +1 -0
  137. package/provider.d.ts +50 -0
  138. package/provider.js +48 -0
  139. package/provider.js.map +1 -0
  140. package/repository.d.ts +204 -0
  141. package/repository.js +103 -0
  142. package/repository.js.map +1 -0
  143. package/serviceToken.d.ts +126 -0
  144. package/serviceToken.js +95 -0
  145. package/serviceToken.js.map +1 -0
  146. package/snowflakeCredential.d.ts +218 -0
  147. package/snowflakeCredential.js +120 -0
  148. package/snowflakeCredential.js.map +1 -0
  149. package/types/index.d.ts +3 -0
  150. package/types/index.js +11 -0
  151. package/types/index.js.map +1 -0
  152. package/types/input.d.ts +43 -0
  153. package/types/input.js +5 -0
  154. package/types/input.js.map +1 -0
  155. package/types/output.d.ts +74 -0
  156. package/types/output.js +5 -0
  157. package/types/output.js.map +1 -0
  158. package/userGroups.d.ts +105 -0
  159. package/userGroups.js +102 -0
  160. package/userGroups.js.map +1 -0
  161. package/utilities.d.ts +8 -0
  162. package/utilities.js +101 -0
  163. package/utilities.js.map +1 -0
  164. package/webhook.d.ts +175 -0
  165. package/webhook.js +110 -0
  166. package/webhook.js.map +1 -0
@@ -0,0 +1,86 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as dbtcloud from "@pulumi/dbtcloud";
8
+ *
9
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
10
+ * const dbtProjectConnection = new dbtcloud.ProjectConnection("dbt_project_connection", {
11
+ * projectId: dbtProject.id,
12
+ * connectionId: dbtConnection.connectionId,
13
+ * });
14
+ * ```
15
+ *
16
+ * ## Import
17
+ *
18
+ * Import using a project ID and Connection ID found in the URL or via the API.
19
+ *
20
+ * ```sh
21
+ * $ pulumi import dbtcloud:index/projectConnection:ProjectConnection my_project "project_id:connection_id"
22
+ * ```
23
+ *
24
+ * ```sh
25
+ * $ pulumi import dbtcloud:index/projectConnection:ProjectConnection my_project 12345:5678
26
+ * ```
27
+ */
28
+ export declare class ProjectConnection extends pulumi.CustomResource {
29
+ /**
30
+ * Get an existing ProjectConnection resource's state with the given name, ID, and optional extra
31
+ * properties used to qualify the lookup.
32
+ *
33
+ * @param name The _unique_ name of the resulting resource.
34
+ * @param id The _unique_ provider ID of the resource to lookup.
35
+ * @param state Any extra arguments used during the lookup.
36
+ * @param opts Optional settings to control the behavior of the CustomResource.
37
+ */
38
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectConnectionState, opts?: pulumi.CustomResourceOptions): ProjectConnection;
39
+ /**
40
+ * Returns true if the given object is an instance of ProjectConnection. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj: any): obj is ProjectConnection;
44
+ /**
45
+ * Connection ID
46
+ */
47
+ readonly connectionId: pulumi.Output<number>;
48
+ /**
49
+ * Project ID
50
+ */
51
+ readonly projectId: pulumi.Output<number>;
52
+ /**
53
+ * Create a ProjectConnection resource with the given unique name, arguments, and options.
54
+ *
55
+ * @param name The _unique_ name of the resource.
56
+ * @param args The arguments to use to populate this resource's properties.
57
+ * @param opts A bag of options that control this resource's behavior.
58
+ */
59
+ constructor(name: string, args: ProjectConnectionArgs, opts?: pulumi.CustomResourceOptions);
60
+ }
61
+ /**
62
+ * Input properties used for looking up and filtering ProjectConnection resources.
63
+ */
64
+ export interface ProjectConnectionState {
65
+ /**
66
+ * Connection ID
67
+ */
68
+ connectionId?: pulumi.Input<number>;
69
+ /**
70
+ * Project ID
71
+ */
72
+ projectId?: pulumi.Input<number>;
73
+ }
74
+ /**
75
+ * The set of arguments for constructing a ProjectConnection resource.
76
+ */
77
+ export interface ProjectConnectionArgs {
78
+ /**
79
+ * Connection ID
80
+ */
81
+ connectionId: pulumi.Input<number>;
82
+ /**
83
+ * Project ID
84
+ */
85
+ projectId: pulumi.Input<number>;
86
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ProjectConnection = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as dbtcloud from "@pulumi/dbtcloud";
14
+ *
15
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
16
+ * const dbtProjectConnection = new dbtcloud.ProjectConnection("dbt_project_connection", {
17
+ * projectId: dbtProject.id,
18
+ * connectionId: dbtConnection.connectionId,
19
+ * });
20
+ * ```
21
+ *
22
+ * ## Import
23
+ *
24
+ * Import using a project ID and Connection ID found in the URL or via the API.
25
+ *
26
+ * ```sh
27
+ * $ pulumi import dbtcloud:index/projectConnection:ProjectConnection my_project "project_id:connection_id"
28
+ * ```
29
+ *
30
+ * ```sh
31
+ * $ pulumi import dbtcloud:index/projectConnection:ProjectConnection my_project 12345:5678
32
+ * ```
33
+ */
34
+ class ProjectConnection extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing ProjectConnection 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 state Any extra arguments used during the lookup.
42
+ * @param opts Optional settings to control the behavior of the CustomResource.
43
+ */
44
+ static get(name, id, state, opts) {
45
+ return new ProjectConnection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
46
+ }
47
+ /**
48
+ * Returns true if the given object is an instance of ProjectConnection. This is designed to work even
49
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
50
+ */
51
+ static isInstance(obj) {
52
+ if (obj === undefined || obj === null) {
53
+ return false;
54
+ }
55
+ return obj['__pulumiType'] === ProjectConnection.__pulumiType;
56
+ }
57
+ constructor(name, argsOrState, opts) {
58
+ let resourceInputs = {};
59
+ opts = opts || {};
60
+ if (opts.id) {
61
+ const state = argsOrState;
62
+ resourceInputs["connectionId"] = state ? state.connectionId : undefined;
63
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
64
+ }
65
+ else {
66
+ const args = argsOrState;
67
+ if ((!args || args.connectionId === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'connectionId'");
69
+ }
70
+ if ((!args || args.projectId === undefined) && !opts.urn) {
71
+ throw new Error("Missing required property 'projectId'");
72
+ }
73
+ resourceInputs["connectionId"] = args ? args.connectionId : undefined;
74
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
75
+ }
76
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
77
+ super(ProjectConnection.__pulumiType, name, resourceInputs, opts);
78
+ }
79
+ }
80
+ exports.ProjectConnection = ProjectConnection;
81
+ /** @internal */
82
+ ProjectConnection.__pulumiType = 'dbtcloud:index/projectConnection:ProjectConnection';
83
+ //# sourceMappingURL=projectConnection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectConnection.js","sourceRoot":"","sources":["../projectConnection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAA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btcloud";
8
+ *
9
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
10
+ * const dbtProjectRepository = new dbtcloud.ProjectRepository("dbt_project_repository", {
11
+ * projectId: dbtProject.id,
12
+ * repositoryId: dbtRepository.repositoryId,
13
+ * });
14
+ * ```
15
+ *
16
+ * ## Import
17
+ *
18
+ * Import using a project ID and Connection ID found in the URL or via the API.
19
+ *
20
+ * ```sh
21
+ * $ pulumi import dbtcloud:index/projectRepository:ProjectRepository my_project "project_id:repository_id"
22
+ * ```
23
+ *
24
+ * ```sh
25
+ * $ pulumi import dbtcloud:index/projectRepository:ProjectRepository my_project 12345:5678
26
+ * ```
27
+ */
28
+ export declare class ProjectRepository extends pulumi.CustomResource {
29
+ /**
30
+ * Get an existing ProjectRepository resource's state with the given name, ID, and optional extra
31
+ * properties used to qualify the lookup.
32
+ *
33
+ * @param name The _unique_ name of the resulting resource.
34
+ * @param id The _unique_ provider ID of the resource to lookup.
35
+ * @param state Any extra arguments used during the lookup.
36
+ * @param opts Optional settings to control the behavior of the CustomResource.
37
+ */
38
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectRepositoryState, opts?: pulumi.CustomResourceOptions): ProjectRepository;
39
+ /**
40
+ * Returns true if the given object is an instance of ProjectRepository. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj: any): obj is ProjectRepository;
44
+ /**
45
+ * Project ID
46
+ */
47
+ readonly projectId: pulumi.Output<number>;
48
+ /**
49
+ * Repository ID
50
+ */
51
+ readonly repositoryId: pulumi.Output<number>;
52
+ /**
53
+ * Create a ProjectRepository resource with the given unique name, arguments, and options.
54
+ *
55
+ * @param name The _unique_ name of the resource.
56
+ * @param args The arguments to use to populate this resource's properties.
57
+ * @param opts A bag of options that control this resource's behavior.
58
+ */
59
+ constructor(name: string, args: ProjectRepositoryArgs, opts?: pulumi.CustomResourceOptions);
60
+ }
61
+ /**
62
+ * Input properties used for looking up and filtering ProjectRepository resources.
63
+ */
64
+ export interface ProjectRepositoryState {
65
+ /**
66
+ * Project ID
67
+ */
68
+ projectId?: pulumi.Input<number>;
69
+ /**
70
+ * Repository ID
71
+ */
72
+ repositoryId?: pulumi.Input<number>;
73
+ }
74
+ /**
75
+ * The set of arguments for constructing a ProjectRepository resource.
76
+ */
77
+ export interface ProjectRepositoryArgs {
78
+ /**
79
+ * Project ID
80
+ */
81
+ projectId: pulumi.Input<number>;
82
+ /**
83
+ * Repository ID
84
+ */
85
+ repositoryId: pulumi.Input<number>;
86
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ProjectRepository = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as dbtcloud from "@pulumi/dbtcloud";
14
+ *
15
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
16
+ * const dbtProjectRepository = new dbtcloud.ProjectRepository("dbt_project_repository", {
17
+ * projectId: dbtProject.id,
18
+ * repositoryId: dbtRepository.repositoryId,
19
+ * });
20
+ * ```
21
+ *
22
+ * ## Import
23
+ *
24
+ * Import using a project ID and Connection ID found in the URL or via the API.
25
+ *
26
+ * ```sh
27
+ * $ pulumi import dbtcloud:index/projectRepository:ProjectRepository my_project "project_id:repository_id"
28
+ * ```
29
+ *
30
+ * ```sh
31
+ * $ pulumi import dbtcloud:index/projectRepository:ProjectRepository my_project 12345:5678
32
+ * ```
33
+ */
34
+ class ProjectRepository extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing ProjectRepository 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 state Any extra arguments used during the lookup.
42
+ * @param opts Optional settings to control the behavior of the CustomResource.
43
+ */
44
+ static get(name, id, state, opts) {
45
+ return new ProjectRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
46
+ }
47
+ /**
48
+ * Returns true if the given object is an instance of ProjectRepository. This is designed to work even
49
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
50
+ */
51
+ static isInstance(obj) {
52
+ if (obj === undefined || obj === null) {
53
+ return false;
54
+ }
55
+ return obj['__pulumiType'] === ProjectRepository.__pulumiType;
56
+ }
57
+ constructor(name, argsOrState, opts) {
58
+ let resourceInputs = {};
59
+ opts = opts || {};
60
+ if (opts.id) {
61
+ const state = argsOrState;
62
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
63
+ resourceInputs["repositoryId"] = state ? state.repositoryId : undefined;
64
+ }
65
+ else {
66
+ const args = argsOrState;
67
+ if ((!args || args.projectId === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'projectId'");
69
+ }
70
+ if ((!args || args.repositoryId === undefined) && !opts.urn) {
71
+ throw new Error("Missing required property 'repositoryId'");
72
+ }
73
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
74
+ resourceInputs["repositoryId"] = args ? args.repositoryId : undefined;
75
+ }
76
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
77
+ super(ProjectRepository.__pulumiType, name, resourceInputs, opts);
78
+ }
79
+ }
80
+ exports.ProjectRepository = ProjectRepository;
81
+ /** @internal */
82
+ ProjectRepository.__pulumiType = 'dbtcloud:index/projectRepository:ProjectRepository';
83
+ //# sourceMappingURL=projectRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectRepository.js","sourceRoot":"","sources":["../projectRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAy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AI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAjEL,8CAkEC;AApDG,gBAAgB;AACO,8BAAY,GAAG,oDAAoD,CAAC"}
package/provider.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The provider type for the dbtcloud package. By default, resources use package-wide configuration
4
+ * settings, however an explicit `Provider` instance may be created and passed during resource
5
+ * construction to achieve fine-grained programmatic control over provider settings. See the
6
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
7
+ */
8
+ export declare class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj: any): obj is Provider;
14
+ /**
15
+ * URL for your dbt Cloud deployment. Instead of setting the parameter, you can set the environment variable
16
+ * `DBT_CLOUD_HOST_URL` - Defaults to https://cloud.getdbt.com/api
17
+ */
18
+ readonly hostUrl: pulumi.Output<string | undefined>;
19
+ /**
20
+ * API token for your dbt Cloud. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_TOKEN`
21
+ */
22
+ readonly token: pulumi.Output<string | undefined>;
23
+ /**
24
+ * Create a Provider resource with the given unique name, arguments, and options.
25
+ *
26
+ * @param name The _unique_ name of the resource.
27
+ * @param args The arguments to use to populate this resource's properties.
28
+ * @param opts A bag of options that control this resource's behavior.
29
+ */
30
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
31
+ }
32
+ /**
33
+ * The set of arguments for constructing a Provider resource.
34
+ */
35
+ export interface ProviderArgs {
36
+ /**
37
+ * Account identifier for your dbt Cloud implementation. Instead of setting the parameter, you can set the environment
38
+ * variable `DBT_CLOUD_ACCOUNT_ID`
39
+ */
40
+ accountId?: pulumi.Input<number>;
41
+ /**
42
+ * URL for your dbt Cloud deployment. Instead of setting the parameter, you can set the environment variable
43
+ * `DBT_CLOUD_HOST_URL` - Defaults to https://cloud.getdbt.com/api
44
+ */
45
+ hostUrl?: pulumi.Input<string>;
46
+ /**
47
+ * API token for your dbt Cloud. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_TOKEN`
48
+ */
49
+ token?: pulumi.Input<string>;
50
+ }
package/provider.js ADDED
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Provider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The provider type for the dbtcloud package. By default, resources use package-wide configuration
10
+ * settings, however an explicit `Provider` instance may be created and passed during resource
11
+ * construction to achieve fine-grained programmatic control over provider settings. See the
12
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
13
+ */
14
+ class Provider extends pulumi.ProviderResource {
15
+ /**
16
+ * Returns true if the given object is an instance of Provider. 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) {
20
+ if (obj === undefined || obj === null) {
21
+ return false;
22
+ }
23
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
24
+ }
25
+ /**
26
+ * Create a Provider resource with the given unique name, arguments, and options.
27
+ *
28
+ * @param name The _unique_ name of the resource.
29
+ * @param args The arguments to use to populate this resource's properties.
30
+ * @param opts A bag of options that control this resource's behavior.
31
+ */
32
+ constructor(name, args, opts) {
33
+ var _a, _b, _c;
34
+ let resourceInputs = {};
35
+ opts = opts || {};
36
+ {
37
+ resourceInputs["accountId"] = pulumi.output((_a = (args ? args.accountId : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnvNumber("DBT_CLOUD_ACCOUNT_ID")).apply(JSON.stringify);
38
+ resourceInputs["hostUrl"] = (_b = (args ? args.hostUrl : undefined)) !== null && _b !== void 0 ? _b : (utilities.getEnv("DBT_CLOUD_HOST_URL") || "https://cloud.getdbt.com/api");
39
+ resourceInputs["token"] = (_c = (args ? args.token : undefined)) !== null && _c !== void 0 ? _c : utilities.getEnv("DBT_CLOUD_TOKEN");
40
+ }
41
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
42
+ super(Provider.__pulumiType, name, resourceInputs, opts);
43
+ }
44
+ }
45
+ exports.Provider = Provider;
46
+ /** @internal */
47
+ Provider.__pulumiType = 'dbtcloud';
48
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAYD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzJ,cAAc,CAAC,SAAS,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,CAAC,SAAS,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,8BAA8B,CAAC,CAAC;YAC5I,cAAc,CAAC,OAAO,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SACpG;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;;AA1CL,4BA2CC;AA1CG,gBAAgB;AACO,qBAAY,GAAG,UAAU,CAAC"}
@@ -0,0 +1,204 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * *Note*: Some upstream resources can be slow to create, so if creating a project at
4
+ * the same time as the repository, it's recommended to use the `dependsOn` meta argument.
5
+ *
6
+ * In order to find the `githubInstallationId`, you can log in to dbt Cloud, replace `<dbt_cloud_url>` by your dbt Cloud
7
+ * URL and run the following commands in the Google Chrome console:
8
+ *
9
+ * Alternatively, you can go to the page `https://<dbt_cloud_url>/api/v2/integrations/github/installations/` and read the
10
+ * value of `id` or use the `http` provider to retrieve it automatically like in the example below.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ## Import
15
+ *
16
+ * Import using a project ID and repository ID found in the URL or via the API.
17
+ *
18
+ * ```sh
19
+ * $ pulumi import dbtcloud:index/repository:Repository test_repository "project_id:repository_id"
20
+ * ```
21
+ *
22
+ * ```sh
23
+ * $ pulumi import dbtcloud:index/repository:Repository test_repository 12345:6789
24
+ * ```
25
+ */
26
+ export declare class Repository extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing Repository resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryState, opts?: pulumi.CustomResourceOptions): Repository;
37
+ /**
38
+ * Returns true if the given object is an instance of Repository. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is Repository;
42
+ /**
43
+ * The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source `dbtcloud.getAzureDevOpsProject` and the project name - (for ADO native integration only)
44
+ */
45
+ readonly azureActiveDirectoryProjectId: pulumi.Output<string | undefined>;
46
+ /**
47
+ * The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source `dbtcloud.getAzureDevOpsRepository` along with the ADO Project ID and the repository name - (for ADO native integration only)
48
+ */
49
+ readonly azureActiveDirectoryRepositoryId: pulumi.Output<string | undefined>;
50
+ /**
51
+ * If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
52
+ */
53
+ readonly azureBypassWebhookRegistrationFailure: pulumi.Output<boolean | undefined>;
54
+ /**
55
+ * Public key generated by dbt when using `deployKey` clone strategy
56
+ */
57
+ readonly deployKey: pulumi.Output<string>;
58
+ /**
59
+ * Whether we should return the public deploy key - (for the `deployKey` strategy)
60
+ */
61
+ readonly fetchDeployKey: pulumi.Output<boolean | undefined>;
62
+ /**
63
+ * Git clone strategy for the repository. Can be `deployKey` (default) for cloning via SSH Deploy Key, `githubApp` for GitHub native integration, `deployToken` for the GitLab native integration and `azureActiveDirectoryApp` for ADO native integration
64
+ */
65
+ readonly gitCloneStrategy: pulumi.Output<string | undefined>;
66
+ /**
67
+ * Identifier for the GitHub App - (for GitHub native integration only)
68
+ */
69
+ readonly githubInstallationId: pulumi.Output<number | undefined>;
70
+ /**
71
+ * Identifier for the Gitlab project - (for GitLab native integration only)
72
+ */
73
+ readonly gitlabProjectId: pulumi.Output<number | undefined>;
74
+ /**
75
+ * Whether the repository is active
76
+ */
77
+ readonly isActive: pulumi.Output<boolean | undefined>;
78
+ /**
79
+ * Project ID to create the repository in
80
+ */
81
+ readonly projectId: pulumi.Output<number>;
82
+ /**
83
+ * Git URL for the repository or <Group>/<Project> for Gitlab
84
+ */
85
+ readonly remoteUrl: pulumi.Output<string>;
86
+ /**
87
+ * Credentials ID for the repository (From the repository side not the dbt Cloud ID)
88
+ */
89
+ readonly repositoryCredentialsId: pulumi.Output<number>;
90
+ /**
91
+ * Repository Identifier
92
+ */
93
+ readonly repositoryId: pulumi.Output<number>;
94
+ /**
95
+ * Create a Repository resource with the given unique name, arguments, and options.
96
+ *
97
+ * @param name The _unique_ name of the resource.
98
+ * @param args The arguments to use to populate this resource's properties.
99
+ * @param opts A bag of options that control this resource's behavior.
100
+ */
101
+ constructor(name: string, args: RepositoryArgs, opts?: pulumi.CustomResourceOptions);
102
+ }
103
+ /**
104
+ * Input properties used for looking up and filtering Repository resources.
105
+ */
106
+ export interface RepositoryState {
107
+ /**
108
+ * The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source `dbtcloud.getAzureDevOpsProject` and the project name - (for ADO native integration only)
109
+ */
110
+ azureActiveDirectoryProjectId?: pulumi.Input<string>;
111
+ /**
112
+ * The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source `dbtcloud.getAzureDevOpsRepository` along with the ADO Project ID and the repository name - (for ADO native integration only)
113
+ */
114
+ azureActiveDirectoryRepositoryId?: pulumi.Input<string>;
115
+ /**
116
+ * If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
117
+ */
118
+ azureBypassWebhookRegistrationFailure?: pulumi.Input<boolean>;
119
+ /**
120
+ * Public key generated by dbt when using `deployKey` clone strategy
121
+ */
122
+ deployKey?: pulumi.Input<string>;
123
+ /**
124
+ * Whether we should return the public deploy key - (for the `deployKey` strategy)
125
+ */
126
+ fetchDeployKey?: pulumi.Input<boolean>;
127
+ /**
128
+ * Git clone strategy for the repository. Can be `deployKey` (default) for cloning via SSH Deploy Key, `githubApp` for GitHub native integration, `deployToken` for the GitLab native integration and `azureActiveDirectoryApp` for ADO native integration
129
+ */
130
+ gitCloneStrategy?: pulumi.Input<string>;
131
+ /**
132
+ * Identifier for the GitHub App - (for GitHub native integration only)
133
+ */
134
+ githubInstallationId?: pulumi.Input<number>;
135
+ /**
136
+ * Identifier for the Gitlab project - (for GitLab native integration only)
137
+ */
138
+ gitlabProjectId?: pulumi.Input<number>;
139
+ /**
140
+ * Whether the repository is active
141
+ */
142
+ isActive?: pulumi.Input<boolean>;
143
+ /**
144
+ * Project ID to create the repository in
145
+ */
146
+ projectId?: pulumi.Input<number>;
147
+ /**
148
+ * Git URL for the repository or <Group>/<Project> for Gitlab
149
+ */
150
+ remoteUrl?: pulumi.Input<string>;
151
+ /**
152
+ * Credentials ID for the repository (From the repository side not the dbt Cloud ID)
153
+ */
154
+ repositoryCredentialsId?: pulumi.Input<number>;
155
+ /**
156
+ * Repository Identifier
157
+ */
158
+ repositoryId?: pulumi.Input<number>;
159
+ }
160
+ /**
161
+ * The set of arguments for constructing a Repository resource.
162
+ */
163
+ export interface RepositoryArgs {
164
+ /**
165
+ * The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source `dbtcloud.getAzureDevOpsProject` and the project name - (for ADO native integration only)
166
+ */
167
+ azureActiveDirectoryProjectId?: pulumi.Input<string>;
168
+ /**
169
+ * The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source `dbtcloud.getAzureDevOpsRepository` along with the ADO Project ID and the repository name - (for ADO native integration only)
170
+ */
171
+ azureActiveDirectoryRepositoryId?: pulumi.Input<string>;
172
+ /**
173
+ * If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
174
+ */
175
+ azureBypassWebhookRegistrationFailure?: pulumi.Input<boolean>;
176
+ /**
177
+ * Whether we should return the public deploy key - (for the `deployKey` strategy)
178
+ */
179
+ fetchDeployKey?: pulumi.Input<boolean>;
180
+ /**
181
+ * Git clone strategy for the repository. Can be `deployKey` (default) for cloning via SSH Deploy Key, `githubApp` for GitHub native integration, `deployToken` for the GitLab native integration and `azureActiveDirectoryApp` for ADO native integration
182
+ */
183
+ gitCloneStrategy?: pulumi.Input<string>;
184
+ /**
185
+ * Identifier for the GitHub App - (for GitHub native integration only)
186
+ */
187
+ githubInstallationId?: pulumi.Input<number>;
188
+ /**
189
+ * Identifier for the Gitlab project - (for GitLab native integration only)
190
+ */
191
+ gitlabProjectId?: pulumi.Input<number>;
192
+ /**
193
+ * Whether the repository is active
194
+ */
195
+ isActive?: pulumi.Input<boolean>;
196
+ /**
197
+ * Project ID to create the repository in
198
+ */
199
+ projectId: pulumi.Input<number>;
200
+ /**
201
+ * Git URL for the repository or <Group>/<Project> for Gitlab
202
+ */
203
+ remoteUrl: pulumi.Input<string>;
204
+ }