@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,82 @@
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
+ * const myNotification = dbtcloud.getNotification({
10
+ * notificationId: 12345,
11
+ * });
12
+ * ```
13
+ */
14
+ export declare function getNotification(args: GetNotificationArgs, opts?: pulumi.InvokeOptions): Promise<GetNotificationResult>;
15
+ /**
16
+ * A collection of arguments for invoking getNotification.
17
+ */
18
+ export interface GetNotificationArgs {
19
+ /**
20
+ * ID of the notification
21
+ */
22
+ notificationId: number;
23
+ }
24
+ /**
25
+ * A collection of values returned by getNotification.
26
+ */
27
+ export interface GetNotificationResult {
28
+ /**
29
+ * The external email to receive the notification
30
+ */
31
+ readonly externalEmail: string;
32
+ /**
33
+ * The provider-assigned unique ID for this managed resource.
34
+ */
35
+ readonly id: string;
36
+ /**
37
+ * ID of the notification
38
+ */
39
+ readonly notificationId: number;
40
+ /**
41
+ * Type of notification (1 = dbt Cloud user email (default): does not require an external*email ; 4 = external email: requires setting an external*email)
42
+ */
43
+ readonly notificationType: number;
44
+ /**
45
+ * List of job IDs to trigger the webhook on cancel
46
+ */
47
+ readonly onCancels: number[];
48
+ /**
49
+ * List of job IDs to trigger the webhook on failure
50
+ */
51
+ readonly onFailures: number[];
52
+ /**
53
+ * List of job IDs to trigger the webhook on success
54
+ */
55
+ readonly onSuccesses: number[];
56
+ /**
57
+ * Internal dbt Cloud User ID. Must be the userId for an existing user even if the notification is an external one
58
+ */
59
+ readonly userId: number;
60
+ }
61
+ /**
62
+ * ## Example Usage
63
+ *
64
+ * ```typescript
65
+ * import * as pulumi from "@pulumi/pulumi";
66
+ * import * as dbtcloud from "@pulumi/dbtcloud";
67
+ *
68
+ * const myNotification = dbtcloud.getNotification({
69
+ * notificationId: 12345,
70
+ * });
71
+ * ```
72
+ */
73
+ export declare function getNotificationOutput(args: GetNotificationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNotificationResult>;
74
+ /**
75
+ * A collection of arguments for invoking getNotification.
76
+ */
77
+ export interface GetNotificationOutputArgs {
78
+ /**
79
+ * ID of the notification
80
+ */
81
+ notificationId: pulumi.Input<number>;
82
+ }
@@ -0,0 +1,43 @@
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.getNotificationOutput = exports.getNotification = 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
+ * const myNotification = dbtcloud.getNotification({
16
+ * notificationId: 12345,
17
+ * });
18
+ * ```
19
+ */
20
+ function getNotification(args, opts) {
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
+ return pulumi.runtime.invoke("dbtcloud:index/getNotification:getNotification", {
23
+ "notificationId": args.notificationId,
24
+ }, opts);
25
+ }
26
+ exports.getNotification = getNotification;
27
+ /**
28
+ * ## Example Usage
29
+ *
30
+ * ```typescript
31
+ * import * as pulumi from "@pulumi/pulumi";
32
+ * import * as dbtcloud from "@pulumi/dbtcloud";
33
+ *
34
+ * const myNotification = dbtcloud.getNotification({
35
+ * notificationId: 12345,
36
+ * });
37
+ * ```
38
+ */
39
+ function getNotificationOutput(args, opts) {
40
+ return pulumi.output(args).apply((a) => getNotification(a, opts));
41
+ }
42
+ exports.getNotificationOutput = getNotificationOutput;
43
+ //# sourceMappingURL=getNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNotification.js","sourceRoot":"","sources":["../getNotification.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AAiDD;;;;;;;;;;;GAWG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
@@ -0,0 +1,62 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getPostgresCredential(args: GetPostgresCredentialArgs, opts?: pulumi.InvokeOptions): Promise<GetPostgresCredentialResult>;
3
+ /**
4
+ * A collection of arguments for invoking getPostgresCredential.
5
+ */
6
+ export interface GetPostgresCredentialArgs {
7
+ /**
8
+ * Credential ID
9
+ */
10
+ credentialId: number;
11
+ /**
12
+ * Project ID
13
+ */
14
+ projectId: number;
15
+ }
16
+ /**
17
+ * A collection of values returned by getPostgresCredential.
18
+ */
19
+ export interface GetPostgresCredentialResult {
20
+ /**
21
+ * Credential ID
22
+ */
23
+ readonly credentialId: number;
24
+ /**
25
+ * Default schema name
26
+ */
27
+ readonly defaultSchema: string;
28
+ /**
29
+ * The provider-assigned unique ID for this managed resource.
30
+ */
31
+ readonly id: string;
32
+ /**
33
+ * Whether the Postgres credential is active
34
+ */
35
+ readonly isActive: boolean;
36
+ /**
37
+ * Number of threads to use
38
+ */
39
+ readonly numThreads: number;
40
+ /**
41
+ * Project ID
42
+ */
43
+ readonly projectId: number;
44
+ /**
45
+ * Username for Postgres
46
+ */
47
+ readonly username: string;
48
+ }
49
+ export declare function getPostgresCredentialOutput(args: GetPostgresCredentialOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPostgresCredentialResult>;
50
+ /**
51
+ * A collection of arguments for invoking getPostgresCredential.
52
+ */
53
+ export interface GetPostgresCredentialOutputArgs {
54
+ /**
55
+ * Credential ID
56
+ */
57
+ credentialId: pulumi.Input<number>;
58
+ /**
59
+ * Project ID
60
+ */
61
+ projectId: pulumi.Input<number>;
62
+ }
@@ -0,0 +1,20 @@
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.getPostgresCredentialOutput = exports.getPostgresCredential = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getPostgresCredential(args, opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("dbtcloud:index/getPostgresCredential:getPostgresCredential", {
11
+ "credentialId": args.credentialId,
12
+ "projectId": args.projectId,
13
+ }, opts);
14
+ }
15
+ exports.getPostgresCredential = getPostgresCredential;
16
+ function getPostgresCredentialOutput(args, opts) {
17
+ return pulumi.output(args).apply((a) => getPostgresCredential(a, opts));
18
+ }
19
+ exports.getPostgresCredentialOutput = getPostgresCredentialOutput;
20
+ //# sourceMappingURL=getPostgresCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPostgresCredential.js","sourceRoot":"","sources":["../getPostgresCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC;AAiDD,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
@@ -0,0 +1,98 @@
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
+ * const testWithName = dbtcloud.getPrivatelinkEndpoint({
10
+ * name: "My Endpoint Name",
11
+ * });
12
+ * const testWithUrl = dbtcloud.getPrivatelinkEndpoint({
13
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
14
+ * });
15
+ * // in case multiple endpoints have the same name or URL
16
+ * const testWithNameAndUrl = dbtcloud.getPrivatelinkEndpoint({
17
+ * name: "My Endpoint Name",
18
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
19
+ * });
20
+ * ```
21
+ */
22
+ export declare function getPrivatelinkEndpoint(args?: GetPrivatelinkEndpointArgs, opts?: pulumi.InvokeOptions): Promise<GetPrivatelinkEndpointResult>;
23
+ /**
24
+ * A collection of arguments for invoking getPrivatelinkEndpoint.
25
+ */
26
+ export interface GetPrivatelinkEndpointArgs {
27
+ /**
28
+ * Given descriptive name for the PrivateLink Endpoint (name and/or private*link*endpoint_url need to be provided to return data for the datasource)
29
+ */
30
+ name?: string;
31
+ /**
32
+ * The URL of the PrivateLink Endpoint (private*link*endpoint_url and/or name need to be provided to return data for the datasource)
33
+ */
34
+ privateLinkEndpointUrl?: string;
35
+ }
36
+ /**
37
+ * A collection of values returned by getPrivatelinkEndpoint.
38
+ */
39
+ export interface GetPrivatelinkEndpointResult {
40
+ /**
41
+ * The CIDR range of the PrivateLink Endpoint
42
+ */
43
+ readonly cidrRange: string;
44
+ /**
45
+ * The internal ID of the PrivateLink Endpoint
46
+ */
47
+ readonly id: string;
48
+ /**
49
+ * Given descriptive name for the PrivateLink Endpoint (name and/or private*link*endpoint_url need to be provided to return data for the datasource)
50
+ */
51
+ readonly name?: string;
52
+ /**
53
+ * The URL of the PrivateLink Endpoint (private*link*endpoint_url and/or name need to be provided to return data for the datasource)
54
+ */
55
+ readonly privateLinkEndpointUrl?: string;
56
+ /**
57
+ * PrivatelinkEndpoint state should be 1 = active, as 2 = deleted
58
+ */
59
+ readonly state: number;
60
+ /**
61
+ * Type of the PrivateLink Endpoint
62
+ */
63
+ readonly type: string;
64
+ }
65
+ /**
66
+ * ## Example Usage
67
+ *
68
+ * ```typescript
69
+ * import * as pulumi from "@pulumi/pulumi";
70
+ * import * as dbtcloud from "@pulumi/dbtcloud";
71
+ *
72
+ * const testWithName = dbtcloud.getPrivatelinkEndpoint({
73
+ * name: "My Endpoint Name",
74
+ * });
75
+ * const testWithUrl = dbtcloud.getPrivatelinkEndpoint({
76
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
77
+ * });
78
+ * // in case multiple endpoints have the same name or URL
79
+ * const testWithNameAndUrl = dbtcloud.getPrivatelinkEndpoint({
80
+ * name: "My Endpoint Name",
81
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
82
+ * });
83
+ * ```
84
+ */
85
+ export declare function getPrivatelinkEndpointOutput(args?: GetPrivatelinkEndpointOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrivatelinkEndpointResult>;
86
+ /**
87
+ * A collection of arguments for invoking getPrivatelinkEndpoint.
88
+ */
89
+ export interface GetPrivatelinkEndpointOutputArgs {
90
+ /**
91
+ * Given descriptive name for the PrivateLink Endpoint (name and/or private*link*endpoint_url need to be provided to return data for the datasource)
92
+ */
93
+ name?: pulumi.Input<string>;
94
+ /**
95
+ * The URL of the PrivateLink Endpoint (private*link*endpoint_url and/or name need to be provided to return data for the datasource)
96
+ */
97
+ privateLinkEndpointUrl?: pulumi.Input<string>;
98
+ }
@@ -0,0 +1,61 @@
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.getPrivatelinkEndpointOutput = exports.getPrivatelinkEndpoint = 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
+ * const testWithName = dbtcloud.getPrivatelinkEndpoint({
16
+ * name: "My Endpoint Name",
17
+ * });
18
+ * const testWithUrl = dbtcloud.getPrivatelinkEndpoint({
19
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
20
+ * });
21
+ * // in case multiple endpoints have the same name or URL
22
+ * const testWithNameAndUrl = dbtcloud.getPrivatelinkEndpoint({
23
+ * name: "My Endpoint Name",
24
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
25
+ * });
26
+ * ```
27
+ */
28
+ function getPrivatelinkEndpoint(args, opts) {
29
+ args = args || {};
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
31
+ return pulumi.runtime.invoke("dbtcloud:index/getPrivatelinkEndpoint:getPrivatelinkEndpoint", {
32
+ "name": args.name,
33
+ "privateLinkEndpointUrl": args.privateLinkEndpointUrl,
34
+ }, opts);
35
+ }
36
+ exports.getPrivatelinkEndpoint = getPrivatelinkEndpoint;
37
+ /**
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as dbtcloud from "@pulumi/dbtcloud";
43
+ *
44
+ * const testWithName = dbtcloud.getPrivatelinkEndpoint({
45
+ * name: "My Endpoint Name",
46
+ * });
47
+ * const testWithUrl = dbtcloud.getPrivatelinkEndpoint({
48
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
49
+ * });
50
+ * // in case multiple endpoints have the same name or URL
51
+ * const testWithNameAndUrl = dbtcloud.getPrivatelinkEndpoint({
52
+ * name: "My Endpoint Name",
53
+ * privateLinkEndpointUrl: "abc.privatelink.def.com",
54
+ * });
55
+ * ```
56
+ */
57
+ function getPrivatelinkEndpointOutput(args, opts) {
58
+ return pulumi.output(args).apply((a) => getPrivatelinkEndpoint(a, opts));
59
+ }
60
+ exports.getPrivatelinkEndpointOutput = getPrivatelinkEndpointOutput;
61
+ //# sourceMappingURL=getPrivatelinkEndpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrivatelinkEndpoint.js","sourceRoot":"","sources":["../getPrivatelinkEndpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,sBAAsB,CAAC,IAAiC,EAAE,IAA2B;IACjG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,wBAAwB,EAAE,IAAI,CAAC,sBAAsB;KACxD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wDAQC;AA6CD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,4BAA4B,CAAC,IAAuC,EAAE,IAA2B;IAC7G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjF,CAAC;AAFD,oEAEC"}
@@ -0,0 +1,102 @@
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
+ * // projects data sources can use the project_id parameter (preferred uniqueness is ensured)
10
+ * const testProject = dbtcloud.getProject({
11
+ * projectId: dbtCloudProjectId,
12
+ * });
13
+ * // or they can use project names
14
+ * // the provider will raise an error if more than one project is found with the same name
15
+ * const anotherTestProject = dbtcloud.getProject({
16
+ * name: "My other project name",
17
+ * });
18
+ * ```
19
+ */
20
+ export declare function getProject(args?: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult>;
21
+ /**
22
+ * A collection of arguments for invoking getProject.
23
+ */
24
+ export interface GetProjectArgs {
25
+ /**
26
+ * Given name for project
27
+ */
28
+ name?: string;
29
+ /**
30
+ * ID of the project to represent
31
+ */
32
+ projectId?: number;
33
+ }
34
+ /**
35
+ * A collection of values returned by getProject.
36
+ */
37
+ export interface GetProjectResult {
38
+ /**
39
+ * ID of the connection associated with the project
40
+ */
41
+ readonly connectionId: number;
42
+ /**
43
+ * ID of Job for the documentation
44
+ */
45
+ readonly docsJobId: number;
46
+ /**
47
+ * ID of Job for source freshness
48
+ */
49
+ readonly freshnessJobId: number;
50
+ /**
51
+ * The provider-assigned unique ID for this managed resource.
52
+ */
53
+ readonly id: string;
54
+ /**
55
+ * Given name for project
56
+ */
57
+ readonly name: string;
58
+ /**
59
+ * ID of the project to represent
60
+ */
61
+ readonly projectId?: number;
62
+ /**
63
+ * ID of the repository associated with the project
64
+ */
65
+ readonly repositoryId: number;
66
+ /**
67
+ * Project state should be 1 = active, as 2 = deleted
68
+ */
69
+ readonly state: number;
70
+ }
71
+ /**
72
+ * ## Example Usage
73
+ *
74
+ * ```typescript
75
+ * import * as pulumi from "@pulumi/pulumi";
76
+ * import * as dbtcloud from "@pulumi/dbtcloud";
77
+ *
78
+ * // projects data sources can use the project_id parameter (preferred uniqueness is ensured)
79
+ * const testProject = dbtcloud.getProject({
80
+ * projectId: dbtCloudProjectId,
81
+ * });
82
+ * // or they can use project names
83
+ * // the provider will raise an error if more than one project is found with the same name
84
+ * const anotherTestProject = dbtcloud.getProject({
85
+ * name: "My other project name",
86
+ * });
87
+ * ```
88
+ */
89
+ export declare function getProjectOutput(args?: GetProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectResult>;
90
+ /**
91
+ * A collection of arguments for invoking getProject.
92
+ */
93
+ export interface GetProjectOutputArgs {
94
+ /**
95
+ * Given name for project
96
+ */
97
+ name?: pulumi.Input<string>;
98
+ /**
99
+ * ID of the project to represent
100
+ */
101
+ projectId?: pulumi.Input<number>;
102
+ }
package/getProject.js ADDED
@@ -0,0 +1,57 @@
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.getProjectOutput = exports.getProject = 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
+ * // projects data sources can use the project_id parameter (preferred uniqueness is ensured)
16
+ * const testProject = dbtcloud.getProject({
17
+ * projectId: dbtCloudProjectId,
18
+ * });
19
+ * // or they can use project names
20
+ * // the provider will raise an error if more than one project is found with the same name
21
+ * const anotherTestProject = dbtcloud.getProject({
22
+ * name: "My other project name",
23
+ * });
24
+ * ```
25
+ */
26
+ function getProject(args, opts) {
27
+ args = args || {};
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
+ return pulumi.runtime.invoke("dbtcloud:index/getProject:getProject", {
30
+ "name": args.name,
31
+ "projectId": args.projectId,
32
+ }, opts);
33
+ }
34
+ exports.getProject = getProject;
35
+ /**
36
+ * ## Example Usage
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as dbtcloud from "@pulumi/dbtcloud";
41
+ *
42
+ * // projects data sources can use the project_id parameter (preferred uniqueness is ensured)
43
+ * const testProject = dbtcloud.getProject({
44
+ * projectId: dbtCloudProjectId,
45
+ * });
46
+ * // or they can use project names
47
+ * // the provider will raise an error if more than one project is found with the same name
48
+ * const anotherTestProject = dbtcloud.getProject({
49
+ * name: "My other project name",
50
+ * });
51
+ * ```
52
+ */
53
+ function getProjectOutput(args, opts) {
54
+ return pulumi.output(args).apply((a) => getProject(a, opts));
55
+ }
56
+ exports.getProjectOutput = getProjectOutput;
57
+ //# sourceMappingURL=getProject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gCAQC;AAqDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -0,0 +1,86 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getRepository(args: GetRepositoryArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryResult>;
3
+ /**
4
+ * A collection of arguments for invoking getRepository.
5
+ */
6
+ export interface GetRepositoryArgs {
7
+ /**
8
+ * Whether we should return the public deploy key
9
+ */
10
+ fetchDeployKey?: boolean;
11
+ /**
12
+ * Project ID to create the repository in
13
+ */
14
+ projectId: number;
15
+ /**
16
+ * ID for the repository
17
+ */
18
+ repositoryId: number;
19
+ }
20
+ /**
21
+ * A collection of values returned by getRepository.
22
+ */
23
+ export interface GetRepositoryResult {
24
+ /**
25
+ * Public key generated by dbt when using `deployKey` clone strategy
26
+ */
27
+ readonly deployKey: string;
28
+ /**
29
+ * Whether we should return the public deploy key
30
+ */
31
+ readonly fetchDeployKey?: boolean;
32
+ /**
33
+ * Git clone strategy for the repository
34
+ */
35
+ readonly gitCloneStrategy: string;
36
+ /**
37
+ * Identifier for the GitHub installation
38
+ */
39
+ readonly githubInstallationId: number;
40
+ /**
41
+ * Identifier for the Gitlab project
42
+ */
43
+ readonly gitlabProjectId: number;
44
+ /**
45
+ * The provider-assigned unique ID for this managed resource.
46
+ */
47
+ readonly id: string;
48
+ /**
49
+ * Whether the repository is active
50
+ */
51
+ readonly isActive: boolean;
52
+ /**
53
+ * Project ID to create the repository in
54
+ */
55
+ readonly projectId: number;
56
+ /**
57
+ * Connection name
58
+ */
59
+ readonly remoteUrl: string;
60
+ /**
61
+ * Credentials ID for the repository (From the repository side not the dbt Cloud ID)
62
+ */
63
+ readonly repositoryCredentialsId: number;
64
+ /**
65
+ * ID for the repository
66
+ */
67
+ readonly repositoryId: number;
68
+ }
69
+ export declare function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryResult>;
70
+ /**
71
+ * A collection of arguments for invoking getRepository.
72
+ */
73
+ export interface GetRepositoryOutputArgs {
74
+ /**
75
+ * Whether we should return the public deploy key
76
+ */
77
+ fetchDeployKey?: pulumi.Input<boolean>;
78
+ /**
79
+ * Project ID to create the repository in
80
+ */
81
+ projectId: pulumi.Input<number>;
82
+ /**
83
+ * ID for the repository
84
+ */
85
+ repositoryId: pulumi.Input<number>;
86
+ }
@@ -0,0 +1,21 @@
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.getRepositoryOutput = exports.getRepository = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getRepository(args, opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("dbtcloud:index/getRepository:getRepository", {
11
+ "fetchDeployKey": args.fetchDeployKey,
12
+ "projectId": args.projectId,
13
+ "repositoryId": args.repositoryId,
14
+ }, opts);
15
+ }
16
+ exports.getRepository = getRepository;
17
+ function getRepositoryOutput(args, opts) {
18
+ return pulumi.output(args).apply((a) => getRepository(a, opts));
19
+ }
20
+ exports.getRepositoryOutput = getRepositoryOutput;
21
+ //# sourceMappingURL=getRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRepository.js","sourceRoot":"","sources":["../getRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC;AAqED,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}