@pulumi/github 5.1.0 → 5.2.0-alpha.1673638210
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/actionsEnvironmentSecret.d.ts +99 -0
- package/actionsEnvironmentSecret.js +64 -22
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +72 -0
- package/actionsOrganizationPermissions.js +58 -22
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +110 -0
- package/actionsOrganizationSecret.js +72 -22
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +47 -0
- package/actionsOrganizationSecretRepositories.js +51 -22
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +119 -0
- package/actionsRepositoryPermissions.js +91 -0
- package/actionsRepositoryPermissions.js.map +1 -0
- package/actionsRunnerGroup.d.ts +88 -0
- package/actionsRunnerGroup.js +47 -22
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +70 -0
- package/actionsSecret.js +44 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepositories.d.ts +81 -0
- package/appInstallationRepositories.js +78 -0
- package/appInstallationRepositories.js.map +1 -0
- package/appInstallationRepository.d.ts +53 -0
- package/appInstallationRepository.js +57 -22
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +92 -0
- package/branch.js +60 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +53 -0
- package/branchDefault.js +57 -22
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +173 -3
- package/branchProtection.js +83 -22
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +138 -0
- package/branchProtectionV3.js +88 -22
- package/branchProtectionV3.js.map +1 -1
- package/dependabotOrganizationSecret.js +22 -22
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +22 -22
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +22 -22
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +42 -0
- package/emuGroupMapping.js +46 -22
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +31 -0
- package/getActionsOrganizationRegistrationToken.js +25 -0
- package/getActionsOrganizationRegistrationToken.js.map +1 -0
- package/getActionsOrganizationSecrets.d.ts +15 -0
- package/getActionsOrganizationSecrets.js +13 -4
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsPublicKey.d.ts +42 -0
- package/getActionsPublicKey.js +32 -5
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +67 -0
- package/getActionsRegistrationToken.js +47 -0
- package/getActionsRegistrationToken.js.map +1 -0
- package/getActionsSecrets.d.ts +46 -0
- package/getActionsSecrets.js +30 -5
- package/getActionsSecrets.js.map +1 -1
- package/getBranch.d.ts +51 -0
- package/getBranch.js +32 -5
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +51 -0
- package/getCollaborators.js +32 -5
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +15 -0
- package/getDependabotOrganizationSecrets.js +13 -4
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getDependabotPublicKey.js +2 -5
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +46 -0
- package/getDependabotSecrets.js +30 -5
- package/getDependabotSecrets.js.map +1 -1
- package/getExternalGroups.d.ts +17 -0
- package/getExternalGroups.js +15 -4
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +43 -0
- package/getGithubApp.js +30 -5
- package/getGithubApp.js.map +1 -1
- package/getIpRanges.d.ts +84 -0
- package/getIpRanges.js +13 -4
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +58 -0
- package/getMembership.js +36 -5
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +58 -0
- package/getOrganization.js +30 -5
- package/getOrganization.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +18 -0
- package/getOrganizationIpAllowList.js +15 -4
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +15 -0
- package/getOrganizationTeamSyncGroups.js +13 -4
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +80 -0
- package/getOrganizationTeams.js +52 -5
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +18 -0
- package/getOrganizationWebhooks.js +15 -4
- package/getOrganizationWebhooks.js.map +1 -1
- package/getRef.d.ts +48 -0
- package/getRef.js +32 -5
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +90 -0
- package/getRelease.js +8 -5
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +70 -0
- package/getRepositories.js +40 -5
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +141 -0
- package/getRepository.js +30 -5
- package/getRepository.js.map +1 -1
- package/getRepositoryBranches.d.ts +49 -0
- package/getRepositoryBranches.js +30 -5
- package/getRepositoryBranches.js.map +1 -1
- package/getRepositoryDeployKeys.d.ts +37 -0
- package/getRepositoryDeployKeys.js +30 -5
- package/getRepositoryDeployKeys.js.map +1 -1
- package/getRepositoryFile.d.ts +72 -0
- package/getRepositoryFile.js +36 -5
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +62 -0
- package/getRepositoryMilestone.js +34 -5
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +90 -0
- package/getRepositoryPullRequest.js +32 -5
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +90 -0
- package/getRepositoryPullRequests.js +38 -5
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +46 -0
- package/getRepositoryTeams.js +30 -5
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +36 -0
- package/getRepositoryWebhooks.js +34 -5
- package/getRepositoryWebhooks.js.map +1 -1
- package/getTeam.d.ts +79 -0
- package/getTeam.js +32 -5
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +69 -0
- package/getTree.js +50 -5
- package/getTree.js.map +1 -1
- package/getUser.d.ts +102 -0
- package/getUser.js +38 -5
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +55 -0
- package/getUsers.js +42 -5
- package/getUsers.js.map +1 -1
- package/index.d.ts +64 -44
- package/index.js +33 -3
- package/index.js.map +1 -1
- package/issue.d.ts +117 -6
- package/issue.js +85 -22
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +64 -0
- package/issueLabel.js +44 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +49 -0
- package/membership.js +49 -21
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +21 -0
- package/organizationBlock.js +31 -19
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +36 -0
- package/organizationProject.js +32 -20
- package/organizationProject.js.map +1 -1
- package/organizationSecurityManager.d.ts +67 -0
- package/organizationSecurityManager.js +71 -0
- package/organizationSecurityManager.js.map +1 -0
- package/organizationSettings.d.ts +274 -3
- package/organizationSettings.js +68 -22
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +63 -0
- package/organizationWebhook.js +52 -22
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +87 -0
- package/projectCard.js +73 -22
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +31 -0
- package/projectColumn.js +35 -22
- package/projectColumn.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/release.d.ts +194 -0
- package/release.js +121 -0
- package/release.js.map +1 -0
- package/repository.d.ts +391 -3
- package/repository.js +70 -22
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +45 -12
- package/repositoryAutolinkReference.js +52 -22
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +90 -0
- package/repositoryCollaborator.js +64 -22
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +71 -0
- package/repositoryDeployKey.js +57 -22
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +61 -0
- package/repositoryEnvironment.js +56 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +68 -34
- package/repositoryFile.js +59 -22
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +81 -3
- package/repositoryMilestone.js +49 -22
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +52 -0
- package/repositoryProject.js +41 -22
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +127 -4
- package/repositoryPullRequest.js +40 -22
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +41 -0
- package/repositoryTagProtection.js +45 -22
- package/repositoryTagProtection.js.map +1 -1
- package/repositoryWebhook.d.ts +79 -0
- package/repositoryWebhook.js +59 -22
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +100 -0
- package/team.js +49 -22
- package/team.js.map +1 -1
- package/teamMembers.d.ts +58 -0
- package/teamMembers.js +62 -22
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +67 -0
- package/teamMembership.js +59 -22
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +59 -3
- package/teamRepository.js +57 -22
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +119 -0
- package/teamSettings.js +99 -0
- package/teamSettings.js.map +1 -0
- package/teamSyncGroupMapping.d.ts +36 -0
- package/teamSyncGroupMapping.js +36 -21
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +206 -0
- package/types/output.d.ts +498 -0
- package/userGpgKey.d.ts +39 -0
- package/userGpgKey.js +42 -21
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +30 -0
- package/userInvitationAccepter.js +38 -17
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +50 -0
- package/userSshKey.js +48 -22
- package/userSshKey.js.map +1 -1
package/organizationWebhook.d.ts
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to create and manage webhooks for GitHub organization.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as github from "@pulumi/github";
|
|
12
|
+
*
|
|
13
|
+
* const foo = new github.OrganizationWebhook("foo", {
|
|
14
|
+
* active: false,
|
|
15
|
+
* configuration: {
|
|
16
|
+
* contentType: "form",
|
|
17
|
+
* insecureSsl: false,
|
|
18
|
+
* url: "https://google.de/",
|
|
19
|
+
* },
|
|
20
|
+
* events: ["issues"],
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* Organization webhooks can be imported using the `id` of the webhook. The `id` of the webhook can be found in the URL of the webhook. For example, `"https://github.com/organizations/foo-org/settings/hooks/123456789"`.
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import github:index/organizationWebhook:OrganizationWebhook terraform 123456789
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* If secret is populated in the webhook's configuration, the value will be imported as "********".
|
|
33
|
+
*/
|
|
4
34
|
export declare class OrganizationWebhook extends pulumi.CustomResource {
|
|
5
35
|
/**
|
|
6
36
|
* Get an existing OrganizationWebhook resource's state with the given name, ID, and optional extra
|
|
@@ -17,10 +47,22 @@ export declare class OrganizationWebhook extends pulumi.CustomResource {
|
|
|
17
47
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
48
|
*/
|
|
19
49
|
static isInstance(obj: any): obj is OrganizationWebhook;
|
|
50
|
+
/**
|
|
51
|
+
* Indicate of the webhook should receive events. Defaults to `true`.
|
|
52
|
+
*/
|
|
20
53
|
readonly active: pulumi.Output<boolean | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* key/value pair of configuration for this webhook. Available keys are `url`, `contentType`, `secret` and `insecureSsl`.
|
|
56
|
+
*/
|
|
21
57
|
readonly configuration: pulumi.Output<outputs.OrganizationWebhookConfiguration | undefined>;
|
|
22
58
|
readonly etag: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)
|
|
61
|
+
*/
|
|
23
62
|
readonly events: pulumi.Output<string[]>;
|
|
63
|
+
/**
|
|
64
|
+
* URL of the webhook
|
|
65
|
+
*/
|
|
24
66
|
readonly url: pulumi.Output<string>;
|
|
25
67
|
/**
|
|
26
68
|
* Create a OrganizationWebhook resource with the given unique name, arguments, and options.
|
|
@@ -35,17 +77,38 @@ export declare class OrganizationWebhook extends pulumi.CustomResource {
|
|
|
35
77
|
* Input properties used for looking up and filtering OrganizationWebhook resources.
|
|
36
78
|
*/
|
|
37
79
|
export interface OrganizationWebhookState {
|
|
80
|
+
/**
|
|
81
|
+
* Indicate of the webhook should receive events. Defaults to `true`.
|
|
82
|
+
*/
|
|
38
83
|
active?: pulumi.Input<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* key/value pair of configuration for this webhook. Available keys are `url`, `contentType`, `secret` and `insecureSsl`.
|
|
86
|
+
*/
|
|
39
87
|
configuration?: pulumi.Input<inputs.OrganizationWebhookConfiguration>;
|
|
40
88
|
etag?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)
|
|
91
|
+
*/
|
|
41
92
|
events?: pulumi.Input<pulumi.Input<string>[]>;
|
|
93
|
+
/**
|
|
94
|
+
* URL of the webhook
|
|
95
|
+
*/
|
|
42
96
|
url?: pulumi.Input<string>;
|
|
43
97
|
}
|
|
44
98
|
/**
|
|
45
99
|
* The set of arguments for constructing a OrganizationWebhook resource.
|
|
46
100
|
*/
|
|
47
101
|
export interface OrganizationWebhookArgs {
|
|
102
|
+
/**
|
|
103
|
+
* Indicate of the webhook should receive events. Defaults to `true`.
|
|
104
|
+
*/
|
|
48
105
|
active?: pulumi.Input<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* key/value pair of configuration for this webhook. Available keys are `url`, `contentType`, `secret` and `insecureSsl`.
|
|
108
|
+
*/
|
|
49
109
|
configuration?: pulumi.Input<inputs.OrganizationWebhookConfiguration>;
|
|
110
|
+
/**
|
|
111
|
+
* A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)
|
|
112
|
+
*/
|
|
50
113
|
events: pulumi.Input<pulumi.Input<string>[]>;
|
|
51
114
|
}
|
package/organizationWebhook.js
CHANGED
|
@@ -5,7 +5,59 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.OrganizationWebhook = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage webhooks for GitHub organization.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const foo = new github.OrganizationWebhook("foo", {
|
|
18
|
+
* active: false,
|
|
19
|
+
* configuration: {
|
|
20
|
+
* contentType: "form",
|
|
21
|
+
* insecureSsl: false,
|
|
22
|
+
* url: "https://google.de/",
|
|
23
|
+
* },
|
|
24
|
+
* events: ["issues"],
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* Organization webhooks can be imported using the `id` of the webhook. The `id` of the webhook can be found in the URL of the webhook. For example, `"https://github.com/organizations/foo-org/settings/hooks/123456789"`.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import github:index/organizationWebhook:OrganizationWebhook terraform 123456789
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* If secret is populated in the webhook's configuration, the value will be imported as "********".
|
|
37
|
+
*/
|
|
8
38
|
class OrganizationWebhook extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing OrganizationWebhook resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name, id, state, opts) {
|
|
49
|
+
return new OrganizationWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of OrganizationWebhook. This is designed to work even
|
|
53
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
+
*/
|
|
55
|
+
static isInstance(obj) {
|
|
56
|
+
if (obj === undefined || obj === null) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return obj['__pulumiType'] === OrganizationWebhook.__pulumiType;
|
|
60
|
+
}
|
|
9
61
|
constructor(name, argsOrState, opts) {
|
|
10
62
|
let resourceInputs = {};
|
|
11
63
|
opts = opts || {};
|
|
@@ -31,28 +83,6 @@ class OrganizationWebhook extends pulumi.CustomResource {
|
|
|
31
83
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
32
84
|
super(OrganizationWebhook.__pulumiType, name, resourceInputs, opts);
|
|
33
85
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Get an existing OrganizationWebhook resource's state with the given name, ID, and optional extra
|
|
36
|
-
* properties used to qualify the lookup.
|
|
37
|
-
*
|
|
38
|
-
* @param name The _unique_ name of the resulting resource.
|
|
39
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
-
* @param state Any extra arguments used during the lookup.
|
|
41
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
-
*/
|
|
43
|
-
static get(name, id, state, opts) {
|
|
44
|
-
return new OrganizationWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Returns true if the given object is an instance of OrganizationWebhook. This is designed to work even
|
|
48
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
-
*/
|
|
50
|
-
static isInstance(obj) {
|
|
51
|
-
if (obj === undefined || obj === null) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
return obj['__pulumiType'] === OrganizationWebhook.__pulumiType;
|
|
55
|
-
}
|
|
56
86
|
}
|
|
57
87
|
exports.OrganizationWebhook = OrganizationWebhook;
|
|
58
88
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationWebhook.js","sourceRoot":"","sources":["../organizationWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"organizationWebhook.js","sourceRoot":"","sources":["../organizationWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D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CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AA7EL,kDA8EC;AAhEG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/github",
|
|
3
|
-
"version": "v5.
|
|
3
|
+
"version": "v5.2.0-alpha.1673638210+50435cfe",
|
|
4
4
|
"description": "A Pulumi package for creating and managing github cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource github v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource github v5.2.0-alpha.1673638210+50435cfe"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/github",
|
|
3
|
-
"version": "v5.
|
|
3
|
+
"version": "v5.2.0-alpha.1673638210+50435cfe",
|
|
4
4
|
"description": "A Pulumi package for creating and managing github cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource github v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource github v5.2.0-alpha.1673638210+50435cfe"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/projectCard.d.ts
CHANGED
|
@@ -1,4 +1,55 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage cards for GitHub projects.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const project = new github.OrganizationProject("project", {body: "This is an organization project."});
|
|
12
|
+
* const column = new github.ProjectColumn("column", {projectId: project.id});
|
|
13
|
+
* const card = new github.ProjectCard("card", {
|
|
14
|
+
* columnId: column.columnId,
|
|
15
|
+
* note: "## Unaccepted 👇",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
* ### Adding An Issue To A Project
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as github from "@pulumi/github";
|
|
23
|
+
*
|
|
24
|
+
* const testRepository = new github.Repository("testRepository", {
|
|
25
|
+
* hasProjects: true,
|
|
26
|
+
* hasIssues: true,
|
|
27
|
+
* });
|
|
28
|
+
* const testIssue = new github.Issue("testIssue", {
|
|
29
|
+
* repository: testRepository.id,
|
|
30
|
+
* title: "Test issue title",
|
|
31
|
+
* body: "Test issue body",
|
|
32
|
+
* });
|
|
33
|
+
* const testRepositoryProject = new github.RepositoryProject("testRepositoryProject", {
|
|
34
|
+
* repository: testRepository.name,
|
|
35
|
+
* body: "this is a test project",
|
|
36
|
+
* });
|
|
37
|
+
* const testProjectColumn = new github.ProjectColumn("testProjectColumn", {projectId: testRepositoryProject.id});
|
|
38
|
+
* const testProjectCard = new github.ProjectCard("testProjectCard", {
|
|
39
|
+
* columnId: testProjectColumn.columnId,
|
|
40
|
+
* contentId: testIssue.issueId,
|
|
41
|
+
* contentType: "Issue",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ## Import
|
|
46
|
+
*
|
|
47
|
+
* A GitHub Project Card can be imported using its [Card ID](https://developer.github.com/v3/projects/cards/#get-a-project-card)
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import github:index/projectCard:ProjectCard card 01234567
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
2
53
|
export declare class ProjectCard extends pulumi.CustomResource {
|
|
3
54
|
/**
|
|
4
55
|
* Get an existing ProjectCard resource's state with the given name, ID, and optional extra
|
|
@@ -16,10 +67,22 @@ export declare class ProjectCard extends pulumi.CustomResource {
|
|
|
16
67
|
*/
|
|
17
68
|
static isInstance(obj: any): obj is ProjectCard;
|
|
18
69
|
readonly cardId: pulumi.Output<number>;
|
|
70
|
+
/**
|
|
71
|
+
* The ID of the card.
|
|
72
|
+
*/
|
|
19
73
|
readonly columnId: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* `github_issue.issue_id`.
|
|
76
|
+
*/
|
|
20
77
|
readonly contentId: pulumi.Output<number | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* Must be either `Issue` or `PullRequest`
|
|
80
|
+
*/
|
|
21
81
|
readonly contentType: pulumi.Output<string | undefined>;
|
|
22
82
|
readonly etag: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The note contents of the card. Markdown supported.
|
|
85
|
+
*/
|
|
23
86
|
readonly note: pulumi.Output<string | undefined>;
|
|
24
87
|
/**
|
|
25
88
|
* Create a ProjectCard resource with the given unique name, arguments, and options.
|
|
@@ -35,18 +98,42 @@ export declare class ProjectCard extends pulumi.CustomResource {
|
|
|
35
98
|
*/
|
|
36
99
|
export interface ProjectCardState {
|
|
37
100
|
cardId?: pulumi.Input<number>;
|
|
101
|
+
/**
|
|
102
|
+
* The ID of the card.
|
|
103
|
+
*/
|
|
38
104
|
columnId?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* `github_issue.issue_id`.
|
|
107
|
+
*/
|
|
39
108
|
contentId?: pulumi.Input<number>;
|
|
109
|
+
/**
|
|
110
|
+
* Must be either `Issue` or `PullRequest`
|
|
111
|
+
*/
|
|
40
112
|
contentType?: pulumi.Input<string>;
|
|
41
113
|
etag?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The note contents of the card. Markdown supported.
|
|
116
|
+
*/
|
|
42
117
|
note?: pulumi.Input<string>;
|
|
43
118
|
}
|
|
44
119
|
/**
|
|
45
120
|
* The set of arguments for constructing a ProjectCard resource.
|
|
46
121
|
*/
|
|
47
122
|
export interface ProjectCardArgs {
|
|
123
|
+
/**
|
|
124
|
+
* The ID of the card.
|
|
125
|
+
*/
|
|
48
126
|
columnId: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* `github_issue.issue_id`.
|
|
129
|
+
*/
|
|
49
130
|
contentId?: pulumi.Input<number>;
|
|
131
|
+
/**
|
|
132
|
+
* Must be either `Issue` or `PullRequest`
|
|
133
|
+
*/
|
|
50
134
|
contentType?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The note contents of the card. Markdown supported.
|
|
137
|
+
*/
|
|
51
138
|
note?: pulumi.Input<string>;
|
|
52
139
|
}
|
package/projectCard.js
CHANGED
|
@@ -5,7 +5,80 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ProjectCard = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage cards for GitHub projects.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const project = new github.OrganizationProject("project", {body: "This is an organization project."});
|
|
18
|
+
* const column = new github.ProjectColumn("column", {projectId: project.id});
|
|
19
|
+
* const card = new github.ProjectCard("card", {
|
|
20
|
+
* columnId: column.columnId,
|
|
21
|
+
* note: "## Unaccepted 👇",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
* ### Adding An Issue To A Project
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as github from "@pulumi/github";
|
|
29
|
+
*
|
|
30
|
+
* const testRepository = new github.Repository("testRepository", {
|
|
31
|
+
* hasProjects: true,
|
|
32
|
+
* hasIssues: true,
|
|
33
|
+
* });
|
|
34
|
+
* const testIssue = new github.Issue("testIssue", {
|
|
35
|
+
* repository: testRepository.id,
|
|
36
|
+
* title: "Test issue title",
|
|
37
|
+
* body: "Test issue body",
|
|
38
|
+
* });
|
|
39
|
+
* const testRepositoryProject = new github.RepositoryProject("testRepositoryProject", {
|
|
40
|
+
* repository: testRepository.name,
|
|
41
|
+
* body: "this is a test project",
|
|
42
|
+
* });
|
|
43
|
+
* const testProjectColumn = new github.ProjectColumn("testProjectColumn", {projectId: testRepositoryProject.id});
|
|
44
|
+
* const testProjectCard = new github.ProjectCard("testProjectCard", {
|
|
45
|
+
* columnId: testProjectColumn.columnId,
|
|
46
|
+
* contentId: testIssue.issueId,
|
|
47
|
+
* contentType: "Issue",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ## Import
|
|
52
|
+
*
|
|
53
|
+
* A GitHub Project Card can be imported using its [Card ID](https://developer.github.com/v3/projects/cards/#get-a-project-card)
|
|
54
|
+
*
|
|
55
|
+
* ```sh
|
|
56
|
+
* $ pulumi import github:index/projectCard:ProjectCard card 01234567
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
8
59
|
class ProjectCard extends pulumi.CustomResource {
|
|
60
|
+
/**
|
|
61
|
+
* Get an existing ProjectCard resource's state with the given name, ID, and optional extra
|
|
62
|
+
* properties used to qualify the lookup.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resulting resource.
|
|
65
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
66
|
+
* @param state Any extra arguments used during the lookup.
|
|
67
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
68
|
+
*/
|
|
69
|
+
static get(name, id, state, opts) {
|
|
70
|
+
return new ProjectCard(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns true if the given object is an instance of ProjectCard. This is designed to work even
|
|
74
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
75
|
+
*/
|
|
76
|
+
static isInstance(obj) {
|
|
77
|
+
if (obj === undefined || obj === null) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
return obj['__pulumiType'] === ProjectCard.__pulumiType;
|
|
81
|
+
}
|
|
9
82
|
constructor(name, argsOrState, opts) {
|
|
10
83
|
let resourceInputs = {};
|
|
11
84
|
opts = opts || {};
|
|
@@ -33,28 +106,6 @@ class ProjectCard extends pulumi.CustomResource {
|
|
|
33
106
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
34
107
|
super(ProjectCard.__pulumiType, name, resourceInputs, opts);
|
|
35
108
|
}
|
|
36
|
-
/**
|
|
37
|
-
* Get an existing ProjectCard resource's state with the given name, ID, and optional extra
|
|
38
|
-
* properties used to qualify the lookup.
|
|
39
|
-
*
|
|
40
|
-
* @param name The _unique_ name of the resulting resource.
|
|
41
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
-
* @param state Any extra arguments used during the lookup.
|
|
43
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
-
*/
|
|
45
|
-
static get(name, id, state, opts) {
|
|
46
|
-
return new ProjectCard(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Returns true if the given object is an instance of ProjectCard. This is designed to work even
|
|
50
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
-
*/
|
|
52
|
-
static isInstance(obj) {
|
|
53
|
-
if (obj === undefined || obj === null) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
return obj['__pulumiType'] === ProjectCard.__pulumiType;
|
|
57
|
-
}
|
|
58
109
|
}
|
|
59
110
|
exports.ProjectCard = ProjectCard;
|
|
60
111
|
/** @internal */
|
package/projectCard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectCard.js","sourceRoot":"","sources":["../projectCard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"projectC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CAAC;;AAhFL,kCAiFC;AAnEG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/projectColumn.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage columns for GitHub projects.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const project = new github.OrganizationProject("project", {body: "This is an organization project."});
|
|
12
|
+
* const column = new github.ProjectColumn("column", {projectId: project.id});
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
2
15
|
export declare class ProjectColumn extends pulumi.CustomResource {
|
|
3
16
|
/**
|
|
4
17
|
* Get an existing ProjectColumn resource's state with the given name, ID, and optional extra
|
|
@@ -17,7 +30,13 @@ export declare class ProjectColumn extends pulumi.CustomResource {
|
|
|
17
30
|
static isInstance(obj: any): obj is ProjectColumn;
|
|
18
31
|
readonly columnId: pulumi.Output<number>;
|
|
19
32
|
readonly etag: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* The name of the column.
|
|
35
|
+
*/
|
|
20
36
|
readonly name: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* The ID of an existing project that the column will be created in.
|
|
39
|
+
*/
|
|
21
40
|
readonly projectId: pulumi.Output<string>;
|
|
22
41
|
/**
|
|
23
42
|
* Create a ProjectColumn resource with the given unique name, arguments, and options.
|
|
@@ -34,13 +53,25 @@ export declare class ProjectColumn extends pulumi.CustomResource {
|
|
|
34
53
|
export interface ProjectColumnState {
|
|
35
54
|
columnId?: pulumi.Input<number>;
|
|
36
55
|
etag?: pulumi.Input<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The name of the column.
|
|
58
|
+
*/
|
|
37
59
|
name?: pulumi.Input<string>;
|
|
60
|
+
/**
|
|
61
|
+
* The ID of an existing project that the column will be created in.
|
|
62
|
+
*/
|
|
38
63
|
projectId?: pulumi.Input<string>;
|
|
39
64
|
}
|
|
40
65
|
/**
|
|
41
66
|
* The set of arguments for constructing a ProjectColumn resource.
|
|
42
67
|
*/
|
|
43
68
|
export interface ProjectColumnArgs {
|
|
69
|
+
/**
|
|
70
|
+
* The name of the column.
|
|
71
|
+
*/
|
|
44
72
|
name?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The ID of an existing project that the column will be created in.
|
|
75
|
+
*/
|
|
45
76
|
projectId: pulumi.Input<string>;
|
|
46
77
|
}
|
package/projectColumn.js
CHANGED
|
@@ -5,7 +5,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ProjectColumn = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage columns for GitHub projects.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const project = new github.OrganizationProject("project", {body: "This is an organization project."});
|
|
18
|
+
* const column = new github.ProjectColumn("column", {projectId: project.id});
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
8
21
|
class ProjectColumn extends pulumi.CustomResource {
|
|
22
|
+
/**
|
|
23
|
+
* Get an existing ProjectColumn resource's state with the given name, ID, and optional extra
|
|
24
|
+
* properties used to qualify the lookup.
|
|
25
|
+
*
|
|
26
|
+
* @param name The _unique_ name of the resulting resource.
|
|
27
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
28
|
+
* @param state Any extra arguments used during the lookup.
|
|
29
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
30
|
+
*/
|
|
31
|
+
static get(name, id, state, opts) {
|
|
32
|
+
return new ProjectColumn(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the given object is an instance of ProjectColumn. This is designed to work even
|
|
36
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
37
|
+
*/
|
|
38
|
+
static isInstance(obj) {
|
|
39
|
+
if (obj === undefined || obj === null) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return obj['__pulumiType'] === ProjectColumn.__pulumiType;
|
|
43
|
+
}
|
|
9
44
|
constructor(name, argsOrState, opts) {
|
|
10
45
|
let resourceInputs = {};
|
|
11
46
|
opts = opts || {};
|
|
@@ -29,28 +64,6 @@ class ProjectColumn extends pulumi.CustomResource {
|
|
|
29
64
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
30
65
|
super(ProjectColumn.__pulumiType, name, resourceInputs, opts);
|
|
31
66
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Get an existing ProjectColumn resource's state with the given name, ID, and optional extra
|
|
34
|
-
* properties used to qualify the lookup.
|
|
35
|
-
*
|
|
36
|
-
* @param name The _unique_ name of the resulting resource.
|
|
37
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
-
* @param state Any extra arguments used during the lookup.
|
|
39
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
-
*/
|
|
41
|
-
static get(name, id, state, opts) {
|
|
42
|
-
return new ProjectColumn(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Returns true if the given object is an instance of ProjectColumn. This is designed to work even
|
|
46
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
-
*/
|
|
48
|
-
static isInstance(obj) {
|
|
49
|
-
if (obj === undefined || obj === null) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
return obj['__pulumiType'] === ProjectColumn.__pulumiType;
|
|
53
|
-
}
|
|
54
67
|
}
|
|
55
68
|
exports.ProjectColumn = ProjectColumn;
|
|
56
69
|
/** @internal */
|
package/projectColumn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectColumn.js","sourceRoot":"","sources":["../projectColumn.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"projectColumn.js","sourceRoot":"","sources":["../projectColumn.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAqBD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAA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 +12,16 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
13
|
*/
|
|
14
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'] === Provider.__pulumiType;
|
|
24
|
+
}
|
|
15
25
|
/**
|
|
16
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
27
|
*
|
|
@@ -36,16 +46,6 @@ class Provider extends pulumi.ProviderResource {
|
|
|
36
46
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
37
47
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
38
48
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Returns true if the given object is an instance of Provider. 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) {
|
|
44
|
-
if (obj === undefined || obj === null) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
48
|
-
}
|
|
49
49
|
}
|
|
50
50
|
exports.Provider = Provider;
|
|
51
51
|
/** @internal */
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":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