@pulumi/github 5.0.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 +68 -24
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +74 -1
- package/actionsOrganizationPermissions.js +58 -22
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +110 -0
- package/actionsOrganizationSecret.js +76 -24
- 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 +48 -24
- 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 +175 -4
- package/branchProtection.js +83 -22
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +140 -1
- package/branchProtectionV3.js +88 -22
- package/branchProtectionV3.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.js +26 -24
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +22 -22
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +26 -24
- 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 +16 -1
- 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 +47 -1
- 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 +52 -1
- package/getCollaborators.js +32 -5
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +28 -0
- package/getDependabotOrganizationSecrets.js +25 -0
- package/getDependabotOrganizationSecrets.js.map +1 -0
- package/getDependabotPublicKey.js +2 -5
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +76 -0
- package/getDependabotSecrets.js +49 -0
- package/getDependabotSecrets.js.map +1 -0
- package/getExternalGroups.d.ts +18 -1
- package/getExternalGroups.js +15 -4
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +71 -0
- package/getGithubApp.js +47 -0
- package/getGithubApp.js.map +1 -0
- package/getIpRanges.d.ts +84 -0
- package/getIpRanges.js +13 -4
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +59 -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 +31 -0
- package/getOrganizationIpAllowList.js +27 -0
- package/getOrganizationIpAllowList.js.map +1 -0
- package/getOrganizationTeamSyncGroups.d.ts +16 -1
- package/getOrganizationTeamSyncGroups.js +13 -4
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +87 -1
- package/getOrganizationTeams.js +54 -5
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +31 -0
- package/getOrganizationWebhooks.js +27 -0
- package/getOrganizationWebhooks.js.map +1 -0
- package/getRef.d.ts +48 -0
- package/getRef.js +32 -5
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +92 -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 +142 -4
- package/getRepository.js +30 -6
- package/getRepository.js.map +1 -1
- package/getRepositoryBranches.d.ts +82 -0
- package/getRepositoryBranches.js +49 -0
- package/getRepositoryBranches.js.map +1 -0
- package/getRepositoryDeployKeys.d.ts +64 -0
- package/getRepositoryDeployKeys.js +47 -0
- package/getRepositoryDeployKeys.js.map +1 -0
- 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 +91 -1
- package/getRepositoryPullRequests.js +38 -5
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +47 -1
- package/getRepositoryTeams.js +30 -5
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +63 -0
- package/getRepositoryWebhooks.js +51 -0
- package/getRepositoryWebhooks.js.map +1 -0
- package/getTeam.d.ts +79 -0
- package/getTeam.js +32 -5
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +70 -1
- 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 +244 -68
- package/index.js +259 -171
- 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 +394 -0
- package/organizationSettings.js +148 -0
- package/organizationSettings.js.map +1 -0
- package/organizationWebhook.d.ts +65 -1
- 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.d.ts +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 +396 -4
- package/repository.js +72 -22
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +54 -6
- package/repositoryAutolinkReference.js +54 -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 +63 -1
- package/repositoryEnvironment.js +56 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +70 -30
- 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 +81 -1
- 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 +60 -1
- 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 +38 -1
- package/teamSyncGroupMapping.js +36 -21
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +208 -1
- package/types/output.d.ts +555 -1
- 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/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/issue.d.ts
CHANGED
|
@@ -1,4 +1,67 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a GitHub issue resource.
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to create and manage issue within your
|
|
6
|
+
* GitHub repository.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* // Create a simple issue
|
|
15
|
+
* const testRepository = new github.Repository("testRepository", {
|
|
16
|
+
* autoInit: true,
|
|
17
|
+
* hasIssues: true,
|
|
18
|
+
* });
|
|
19
|
+
* const testIssue = new github.Issue("testIssue", {
|
|
20
|
+
* repository: testRepository.name,
|
|
21
|
+
* title: "My issue title",
|
|
22
|
+
* body: "The body of my issue",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
* ### With Milestone And Project Assignment
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as github from "@pulumi/github";
|
|
30
|
+
*
|
|
31
|
+
* // Create an issue with milestone and project assignment
|
|
32
|
+
* const testRepository = new github.Repository("testRepository", {
|
|
33
|
+
* autoInit: true,
|
|
34
|
+
* hasIssues: true,
|
|
35
|
+
* });
|
|
36
|
+
* const testRepositoryMilestone = new github.RepositoryMilestone("testRepositoryMilestone", {
|
|
37
|
+
* owner: testRepository.fullName.apply(fullName => fullName.split("/")).apply(split => split[0]),
|
|
38
|
+
* repository: testRepository.name,
|
|
39
|
+
* title: "v1.0.0",
|
|
40
|
+
* description: "General Availability",
|
|
41
|
+
* dueDate: "2022-11-22",
|
|
42
|
+
* state: "open",
|
|
43
|
+
* });
|
|
44
|
+
* const testIssue = new github.Issue("testIssue", {
|
|
45
|
+
* repository: testRepository.name,
|
|
46
|
+
* title: "My issue",
|
|
47
|
+
* body: "My issue body",
|
|
48
|
+
* labels: [
|
|
49
|
+
* "bug",
|
|
50
|
+
* "documentation",
|
|
51
|
+
* ],
|
|
52
|
+
* assignees: ["bob-github"],
|
|
53
|
+
* milestoneNumber: testRepositoryMilestone.number,
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## Import
|
|
58
|
+
*
|
|
59
|
+
* GitHub Issues can be imported using an ID made up of `repository:number`, e.g.
|
|
60
|
+
*
|
|
61
|
+
* ```sh
|
|
62
|
+
* $ pulumi import github:index/issue:Issue issue_15 myrepo:15
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
2
65
|
export declare class Issue extends pulumi.CustomResource {
|
|
3
66
|
/**
|
|
4
67
|
* Get an existing Issue resource's state with the given name, ID, and optional extra
|
|
@@ -16,19 +79,37 @@ export declare class Issue extends pulumi.CustomResource {
|
|
|
16
79
|
*/
|
|
17
80
|
static isInstance(obj: any): obj is Issue;
|
|
18
81
|
/**
|
|
19
|
-
* List of Logins
|
|
82
|
+
* List of Logins to assign the to the issue
|
|
20
83
|
*/
|
|
21
84
|
readonly assignees: pulumi.Output<string[] | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* Body of the issue
|
|
87
|
+
*/
|
|
22
88
|
readonly body: pulumi.Output<string | undefined>;
|
|
23
89
|
readonly etag: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* (Computed) - The issue id
|
|
92
|
+
*/
|
|
24
93
|
readonly issueId: pulumi.Output<number>;
|
|
25
94
|
/**
|
|
26
|
-
* List of
|
|
95
|
+
* List of labels to attach to the issue
|
|
27
96
|
*/
|
|
28
97
|
readonly labels: pulumi.Output<string[] | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* Milestone number to assign to the issue
|
|
100
|
+
*/
|
|
29
101
|
readonly milestoneNumber: pulumi.Output<number | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* (Computed) - The issue number
|
|
104
|
+
*/
|
|
30
105
|
readonly number: pulumi.Output<number>;
|
|
106
|
+
/**
|
|
107
|
+
* The GitHub repository name
|
|
108
|
+
*/
|
|
31
109
|
readonly repository: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Title of the issue
|
|
112
|
+
*/
|
|
32
113
|
readonly title: pulumi.Output<string>;
|
|
33
114
|
/**
|
|
34
115
|
* Create a Issue resource with the given unique name, arguments, and options.
|
|
@@ -44,19 +125,37 @@ export declare class Issue extends pulumi.CustomResource {
|
|
|
44
125
|
*/
|
|
45
126
|
export interface IssueState {
|
|
46
127
|
/**
|
|
47
|
-
* List of Logins
|
|
128
|
+
* List of Logins to assign the to the issue
|
|
48
129
|
*/
|
|
49
130
|
assignees?: pulumi.Input<pulumi.Input<string>[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Body of the issue
|
|
133
|
+
*/
|
|
50
134
|
body?: pulumi.Input<string>;
|
|
51
135
|
etag?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* (Computed) - The issue id
|
|
138
|
+
*/
|
|
52
139
|
issueId?: pulumi.Input<number>;
|
|
53
140
|
/**
|
|
54
|
-
* List of
|
|
141
|
+
* List of labels to attach to the issue
|
|
55
142
|
*/
|
|
56
143
|
labels?: pulumi.Input<pulumi.Input<string>[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Milestone number to assign to the issue
|
|
146
|
+
*/
|
|
57
147
|
milestoneNumber?: pulumi.Input<number>;
|
|
148
|
+
/**
|
|
149
|
+
* (Computed) - The issue number
|
|
150
|
+
*/
|
|
58
151
|
number?: pulumi.Input<number>;
|
|
152
|
+
/**
|
|
153
|
+
* The GitHub repository name
|
|
154
|
+
*/
|
|
59
155
|
repository?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Title of the issue
|
|
158
|
+
*/
|
|
60
159
|
title?: pulumi.Input<string>;
|
|
61
160
|
}
|
|
62
161
|
/**
|
|
@@ -64,15 +163,27 @@ export interface IssueState {
|
|
|
64
163
|
*/
|
|
65
164
|
export interface IssueArgs {
|
|
66
165
|
/**
|
|
67
|
-
* List of Logins
|
|
166
|
+
* List of Logins to assign the to the issue
|
|
68
167
|
*/
|
|
69
168
|
assignees?: pulumi.Input<pulumi.Input<string>[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Body of the issue
|
|
171
|
+
*/
|
|
70
172
|
body?: pulumi.Input<string>;
|
|
71
173
|
/**
|
|
72
|
-
* List of
|
|
174
|
+
* List of labels to attach to the issue
|
|
73
175
|
*/
|
|
74
176
|
labels?: pulumi.Input<pulumi.Input<string>[]>;
|
|
177
|
+
/**
|
|
178
|
+
* Milestone number to assign to the issue
|
|
179
|
+
*/
|
|
75
180
|
milestoneNumber?: pulumi.Input<number>;
|
|
181
|
+
/**
|
|
182
|
+
* The GitHub repository name
|
|
183
|
+
*/
|
|
76
184
|
repository: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Title of the issue
|
|
187
|
+
*/
|
|
77
188
|
title: pulumi.Input<string>;
|
|
78
189
|
}
|
package/issue.js
CHANGED
|
@@ -5,7 +5,92 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Issue = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a GitHub issue resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create and manage issue within your
|
|
12
|
+
* GitHub repository.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as github from "@pulumi/github";
|
|
19
|
+
*
|
|
20
|
+
* // Create a simple issue
|
|
21
|
+
* const testRepository = new github.Repository("testRepository", {
|
|
22
|
+
* autoInit: true,
|
|
23
|
+
* hasIssues: true,
|
|
24
|
+
* });
|
|
25
|
+
* const testIssue = new github.Issue("testIssue", {
|
|
26
|
+
* repository: testRepository.name,
|
|
27
|
+
* title: "My issue title",
|
|
28
|
+
* body: "The body of my issue",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
* ### With Milestone And Project Assignment
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as github from "@pulumi/github";
|
|
36
|
+
*
|
|
37
|
+
* // Create an issue with milestone and project assignment
|
|
38
|
+
* const testRepository = new github.Repository("testRepository", {
|
|
39
|
+
* autoInit: true,
|
|
40
|
+
* hasIssues: true,
|
|
41
|
+
* });
|
|
42
|
+
* const testRepositoryMilestone = new github.RepositoryMilestone("testRepositoryMilestone", {
|
|
43
|
+
* owner: testRepository.fullName.apply(fullName => fullName.split("/")).apply(split => split[0]),
|
|
44
|
+
* repository: testRepository.name,
|
|
45
|
+
* title: "v1.0.0",
|
|
46
|
+
* description: "General Availability",
|
|
47
|
+
* dueDate: "2022-11-22",
|
|
48
|
+
* state: "open",
|
|
49
|
+
* });
|
|
50
|
+
* const testIssue = new github.Issue("testIssue", {
|
|
51
|
+
* repository: testRepository.name,
|
|
52
|
+
* title: "My issue",
|
|
53
|
+
* body: "My issue body",
|
|
54
|
+
* labels: [
|
|
55
|
+
* "bug",
|
|
56
|
+
* "documentation",
|
|
57
|
+
* ],
|
|
58
|
+
* assignees: ["bob-github"],
|
|
59
|
+
* milestoneNumber: testRepositoryMilestone.number,
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ## Import
|
|
64
|
+
*
|
|
65
|
+
* GitHub Issues can be imported using an ID made up of `repository:number`, e.g.
|
|
66
|
+
*
|
|
67
|
+
* ```sh
|
|
68
|
+
* $ pulumi import github:index/issue:Issue issue_15 myrepo:15
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
8
71
|
class Issue extends pulumi.CustomResource {
|
|
72
|
+
/**
|
|
73
|
+
* Get an existing Issue resource's state with the given name, ID, and optional extra
|
|
74
|
+
* properties used to qualify the lookup.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resulting resource.
|
|
77
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
78
|
+
* @param state Any extra arguments used during the lookup.
|
|
79
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
80
|
+
*/
|
|
81
|
+
static get(name, id, state, opts) {
|
|
82
|
+
return new Issue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns true if the given object is an instance of Issue. This is designed to work even
|
|
86
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
87
|
+
*/
|
|
88
|
+
static isInstance(obj) {
|
|
89
|
+
if (obj === undefined || obj === null) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return obj['__pulumiType'] === Issue.__pulumiType;
|
|
93
|
+
}
|
|
9
94
|
constructor(name, argsOrState, opts) {
|
|
10
95
|
let resourceInputs = {};
|
|
11
96
|
opts = opts || {};
|
|
@@ -42,28 +127,6 @@ class Issue extends pulumi.CustomResource {
|
|
|
42
127
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
43
128
|
super(Issue.__pulumiType, name, resourceInputs, opts);
|
|
44
129
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Get an existing Issue resource's state with the given name, ID, and optional extra
|
|
47
|
-
* properties used to qualify the lookup.
|
|
48
|
-
*
|
|
49
|
-
* @param name The _unique_ name of the resulting resource.
|
|
50
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
-
* @param state Any extra arguments used during the lookup.
|
|
52
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
-
*/
|
|
54
|
-
static get(name, id, state, opts) {
|
|
55
|
-
return new Issue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Returns true if the given object is an instance of Issue. This is designed to work even
|
|
59
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
-
*/
|
|
61
|
-
static isInstance(obj) {
|
|
62
|
-
if (obj === undefined || obj === null) {
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
return obj['__pulumiType'] === Issue.__pulumiType;
|
|
66
|
-
}
|
|
67
130
|
}
|
|
68
131
|
exports.Issue = Issue;
|
|
69
132
|
/** @internal */
|
package/issue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../issue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../issue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAA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AAC;YAC3C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAxGL,sBAyGC;AA3FG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/issueLabel.d.ts
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as github from "@pulumi/github";
|
|
8
|
+
*
|
|
9
|
+
* // Create a new, red colored label
|
|
10
|
+
* const testRepo = new github.IssueLabel("testRepo", {
|
|
11
|
+
* color: "FF0000",
|
|
12
|
+
* repository: "test-repo",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* GitHub Issue Labels can be imported using an ID made up of `repository:name`, e.g.
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import github:index/issueLabel:IssueLabel panic_label terraform:panic
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare class IssueLabel extends pulumi.CustomResource {
|
|
3
25
|
/**
|
|
4
26
|
* Get an existing IssueLabel resource's state with the given name, ID, and optional extra
|
|
@@ -15,11 +37,26 @@ export declare class IssueLabel extends pulumi.CustomResource {
|
|
|
15
37
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
38
|
*/
|
|
17
39
|
static isInstance(obj: any): obj is IssueLabel;
|
|
40
|
+
/**
|
|
41
|
+
* A 6 character hex code, **without the leading #**, identifying the color of the label.
|
|
42
|
+
*/
|
|
18
43
|
readonly color: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* A short description of the label.
|
|
46
|
+
*/
|
|
19
47
|
readonly description: pulumi.Output<string | undefined>;
|
|
20
48
|
readonly etag: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the label.
|
|
51
|
+
*/
|
|
21
52
|
readonly name: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The GitHub repository
|
|
55
|
+
*/
|
|
22
56
|
readonly repository: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The URL to the issue label
|
|
59
|
+
*/
|
|
23
60
|
readonly url: pulumi.Output<string>;
|
|
24
61
|
/**
|
|
25
62
|
* Create a IssueLabel resource with the given unique name, arguments, and options.
|
|
@@ -34,19 +71,46 @@ export declare class IssueLabel extends pulumi.CustomResource {
|
|
|
34
71
|
* Input properties used for looking up and filtering IssueLabel resources.
|
|
35
72
|
*/
|
|
36
73
|
export interface IssueLabelState {
|
|
74
|
+
/**
|
|
75
|
+
* A 6 character hex code, **without the leading #**, identifying the color of the label.
|
|
76
|
+
*/
|
|
37
77
|
color?: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* A short description of the label.
|
|
80
|
+
*/
|
|
38
81
|
description?: pulumi.Input<string>;
|
|
39
82
|
etag?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The name of the label.
|
|
85
|
+
*/
|
|
40
86
|
name?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The GitHub repository
|
|
89
|
+
*/
|
|
41
90
|
repository?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* The URL to the issue label
|
|
93
|
+
*/
|
|
42
94
|
url?: pulumi.Input<string>;
|
|
43
95
|
}
|
|
44
96
|
/**
|
|
45
97
|
* The set of arguments for constructing a IssueLabel resource.
|
|
46
98
|
*/
|
|
47
99
|
export interface IssueLabelArgs {
|
|
100
|
+
/**
|
|
101
|
+
* A 6 character hex code, **without the leading #**, identifying the color of the label.
|
|
102
|
+
*/
|
|
48
103
|
color: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* A short description of the label.
|
|
106
|
+
*/
|
|
49
107
|
description?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The name of the label.
|
|
110
|
+
*/
|
|
50
111
|
name?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The GitHub repository
|
|
114
|
+
*/
|
|
51
115
|
repository: pulumi.Input<string>;
|
|
52
116
|
}
|
package/issueLabel.js
CHANGED
|
@@ -5,7 +5,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.IssueLabel = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as github from "@pulumi/github";
|
|
14
|
+
*
|
|
15
|
+
* // Create a new, red colored label
|
|
16
|
+
* const testRepo = new github.IssueLabel("testRepo", {
|
|
17
|
+
* color: "FF0000",
|
|
18
|
+
* repository: "test-repo",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* GitHub Issue Labels can be imported using an ID made up of `repository:name`, e.g.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import github:index/issueLabel:IssueLabel panic_label terraform:panic
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
8
30
|
class IssueLabel extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing IssueLabel resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new IssueLabel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of IssueLabel. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === IssueLabel.__pulumiType;
|
|
52
|
+
}
|
|
9
53
|
constructor(name, argsOrState, opts) {
|
|
10
54
|
let resourceInputs = {};
|
|
11
55
|
opts = opts || {};
|
|
@@ -36,28 +80,6 @@ class IssueLabel extends pulumi.CustomResource {
|
|
|
36
80
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
37
81
|
super(IssueLabel.__pulumiType, name, resourceInputs, opts);
|
|
38
82
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Get an existing IssueLabel 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 IssueLabel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Returns true if the given object is an instance of IssueLabel. 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'] === IssueLabel.__pulumiType;
|
|
60
|
-
}
|
|
61
83
|
}
|
|
62
84
|
exports.IssueLabel = IssueLabel;
|
|
63
85
|
/** @internal */
|
package/issueLabel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAgCD,YAAY,IAAY,EAA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C,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAtFL,gCAuFC;AAzEG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/membership.d.ts
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a GitHub membership resource.
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to add/remove users from your organization. When applied,
|
|
6
|
+
* an invitation will be sent to the user to become part of the organization. When
|
|
7
|
+
* destroyed, either the invitation will be cancelled or the user will be removed.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as github from "@pulumi/github";
|
|
14
|
+
*
|
|
15
|
+
* // Add a user to the organization
|
|
16
|
+
* const membershipForSomeUser = new github.Membership("membershipForSomeUser", {
|
|
17
|
+
* role: "member",
|
|
18
|
+
* username: "SomeUser",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* GitHub Membership can be imported using an ID made up of `organization:username`, e.g.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import github:index/membership:Membership member hashicorp:someuser
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
2
30
|
export declare class Membership extends pulumi.CustomResource {
|
|
3
31
|
/**
|
|
4
32
|
* Get an existing Membership resource's state with the given name, ID, and optional extra
|
|
@@ -16,7 +44,14 @@ export declare class Membership extends pulumi.CustomResource {
|
|
|
16
44
|
*/
|
|
17
45
|
static isInstance(obj: any): obj is Membership;
|
|
18
46
|
readonly etag: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The role of the user within the organization.
|
|
49
|
+
* Must be one of `member` or `admin`. Defaults to `member`.
|
|
50
|
+
*/
|
|
19
51
|
readonly role: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* The user to add to the organization.
|
|
54
|
+
*/
|
|
20
55
|
readonly username: pulumi.Output<string>;
|
|
21
56
|
/**
|
|
22
57
|
* Create a Membership resource with the given unique name, arguments, and options.
|
|
@@ -32,13 +67,27 @@ export declare class Membership extends pulumi.CustomResource {
|
|
|
32
67
|
*/
|
|
33
68
|
export interface MembershipState {
|
|
34
69
|
etag?: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The role of the user within the organization.
|
|
72
|
+
* Must be one of `member` or `admin`. Defaults to `member`.
|
|
73
|
+
*/
|
|
35
74
|
role?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The user to add to the organization.
|
|
77
|
+
*/
|
|
36
78
|
username?: pulumi.Input<string>;
|
|
37
79
|
}
|
|
38
80
|
/**
|
|
39
81
|
* The set of arguments for constructing a Membership resource.
|
|
40
82
|
*/
|
|
41
83
|
export interface MembershipArgs {
|
|
84
|
+
/**
|
|
85
|
+
* The role of the user within the organization.
|
|
86
|
+
* Must be one of `member` or `admin`. Defaults to `member`.
|
|
87
|
+
*/
|
|
42
88
|
role?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The user to add to the organization.
|
|
91
|
+
*/
|
|
43
92
|
username: pulumi.Input<string>;
|
|
44
93
|
}
|
package/membership.js
CHANGED
|
@@ -5,28 +5,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Membership = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a GitHub membership resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to add/remove users from your organization. When applied,
|
|
12
|
+
* an invitation will be sent to the user to become part of the organization. When
|
|
13
|
+
* destroyed, either the invitation will be cancelled or the user will be removed.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as github from "@pulumi/github";
|
|
20
|
+
*
|
|
21
|
+
* // Add a user to the organization
|
|
22
|
+
* const membershipForSomeUser = new github.Membership("membershipForSomeUser", {
|
|
23
|
+
* role: "member",
|
|
24
|
+
* username: "SomeUser",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* GitHub Membership can be imported using an ID made up of `organization:username`, e.g.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import github:index/membership:Membership member hashicorp:someuser
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
8
36
|
class Membership extends pulumi.CustomResource {
|
|
9
|
-
constructor(name, argsOrState, opts) {
|
|
10
|
-
let resourceInputs = {};
|
|
11
|
-
opts = opts || {};
|
|
12
|
-
if (opts.id) {
|
|
13
|
-
const state = argsOrState;
|
|
14
|
-
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
15
|
-
resourceInputs["role"] = state ? state.role : undefined;
|
|
16
|
-
resourceInputs["username"] = state ? state.username : undefined;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
const args = argsOrState;
|
|
20
|
-
if ((!args || args.username === undefined) && !opts.urn) {
|
|
21
|
-
throw new Error("Missing required property 'username'");
|
|
22
|
-
}
|
|
23
|
-
resourceInputs["role"] = args ? args.role : undefined;
|
|
24
|
-
resourceInputs["username"] = args ? args.username : undefined;
|
|
25
|
-
resourceInputs["etag"] = undefined /*out*/;
|
|
26
|
-
}
|
|
27
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
28
|
-
super(Membership.__pulumiType, name, resourceInputs, opts);
|
|
29
|
-
}
|
|
30
37
|
/**
|
|
31
38
|
* Get an existing Membership resource's state with the given name, ID, and optional extra
|
|
32
39
|
* properties used to qualify the lookup.
|
|
@@ -49,6 +56,27 @@ class Membership extends pulumi.CustomResource {
|
|
|
49
56
|
}
|
|
50
57
|
return obj['__pulumiType'] === Membership.__pulumiType;
|
|
51
58
|
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
65
|
+
resourceInputs["role"] = state ? state.role : undefined;
|
|
66
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.username === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'username'");
|
|
72
|
+
}
|
|
73
|
+
resourceInputs["role"] = args ? args.role : undefined;
|
|
74
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
75
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
76
|
+
}
|
|
77
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
78
|
+
super(Membership.__pulumiType, name, resourceInputs, opts);
|
|
79
|
+
}
|
|
52
80
|
}
|
|
53
81
|
exports.Membership = Membership;
|
|
54
82
|
/** @internal */
|
package/membership.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../membership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../membership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAqBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAA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