@pulumi/github 4.17.0 → 5.0.0-alpha.1663887713
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/README.md +1 -1
- package/actionsEnvironmentSecret.d.ts +0 -105
- package/actionsEnvironmentSecret.js +0 -48
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +0 -72
- package/actionsOrganizationPermissions.js +0 -36
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +0 -110
- package/actionsOrganizationSecret.js +0 -50
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +0 -47
- package/actionsOrganizationSecretRepositories.js +0 -29
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRunnerGroup.d.ts +0 -88
- package/actionsRunnerGroup.js +0 -25
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +0 -70
- package/actionsSecret.js +0 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepository.d.ts +0 -54
- package/appInstallationRepository.js +0 -36
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +0 -92
- package/branch.js +0 -38
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +0 -53
- package/branchDefault.js +0 -35
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +3 -155
- package/branchProtection.js +0 -53
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +0 -138
- package/branchProtectionV3.js +0 -66
- package/branchProtectionV3.js.map +1 -1
- package/emuGroupMapping.d.ts +0 -41
- package/emuGroupMapping.js +0 -23
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +13 -0
- package/getActionsOrganizationSecrets.js +16 -0
- package/getActionsOrganizationSecrets.js.map +1 -0
- package/getActionsPublicKey.d.ts +0 -27
- package/getActionsPublicKey.js +0 -15
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsSecrets.d.ts +30 -0
- package/getActionsSecrets.js +24 -0
- package/getActionsSecrets.js.map +1 -0
- package/getBranch.d.ts +0 -36
- package/getBranch.js +0 -15
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +0 -36
- package/getCollaborators.js +0 -15
- package/getCollaborators.js.map +1 -1
- package/getExternalGroups.d.ts +0 -17
- package/getExternalGroups.js +0 -14
- package/getExternalGroups.js.map +1 -1
- package/getIpRanges.d.ts +0 -84
- package/getIpRanges.js +0 -12
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +0 -38
- package/getMembership.js +0 -17
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +0 -38
- package/getOrganization.js +0 -14
- package/getOrganization.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +0 -15
- package/getOrganizationTeamSyncGroups.js +0 -12
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +0 -38
- package/getOrganizationTeams.js +0 -25
- package/getOrganizationTeams.js.map +1 -1
- package/getRef.d.ts +0 -33
- package/getRef.js +0 -15
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +0 -121
- package/getRelease.js +0 -46
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +0 -29
- package/getRepositories.js +0 -17
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +0 -132
- package/getRepository.js +0 -14
- package/getRepository.js.map +1 -1
- package/getRepositoryFile.d.ts +0 -55
- package/getRepositoryFile.js +0 -17
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +0 -46
- package/getRepositoryMilestone.js +0 -16
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +0 -75
- package/getRepositoryPullRequest.js +0 -15
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +0 -72
- package/getRepositoryPullRequests.js +0 -18
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +30 -0
- package/getRepositoryTeams.js +24 -0
- package/getRepositoryTeams.js.map +1 -0
- package/getTeam.d.ts +0 -47
- package/getTeam.js +0 -14
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +0 -45
- package/getTree.js +0 -24
- package/getTree.js.map +1 -1
- package/getUser.d.ts +0 -87
- package/getUser.js +0 -21
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +0 -37
- package/getUsers.js +0 -22
- package/getUsers.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +8 -0
- package/index.js.map +1 -1
- package/issue.d.ts +6 -117
- package/issue.js +0 -63
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +0 -64
- package/issueLabel.js +0 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +0 -49
- package/membership.js +0 -28
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +0 -23
- package/organizationBlock.js +0 -14
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +0 -38
- package/organizationProject.js +0 -14
- package/organizationProject.js.map +1 -1
- package/organizationWebhook.d.ts +0 -63
- package/organizationWebhook.js +0 -30
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +0 -87
- package/projectCard.js +0 -51
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +0 -31
- package/projectColumn.js +0 -13
- package/projectColumn.js.map +1 -1
- package/repository.d.ts +3 -377
- package/repository.js +0 -47
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +6 -40
- package/repositoryAutolinkReference.js +0 -28
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +0 -90
- package/repositoryCollaborator.js +0 -42
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +0 -71
- package/repositoryDeployKey.js +0 -35
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +0 -61
- package/repositoryEnvironment.js +0 -34
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +28 -68
- package/repositoryFile.js +0 -37
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +3 -81
- package/repositoryMilestone.js +0 -27
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +0 -52
- package/repositoryProject.js +0 -19
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +4 -127
- package/repositoryPullRequest.js +0 -18
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +44 -0
- package/repositoryTagProtection.js +59 -0
- package/repositoryTagProtection.js.map +1 -0
- package/repositoryWebhook.d.ts +0 -79
- package/repositoryWebhook.js +0 -37
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +0 -100
- package/team.js +0 -27
- package/team.js.map +1 -1
- package/teamMembers.d.ts +0 -58
- package/teamMembers.js +0 -40
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +0 -67
- package/teamMembership.js +0 -37
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +3 -59
- package/teamRepository.js +0 -35
- package/teamRepository.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +0 -36
- package/teamSyncGroupMapping.js +0 -15
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +0 -86
- package/types/output.d.ts +16 -237
- package/userGpgKey.d.ts +0 -40
- package/userGpgKey.js +0 -22
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +0 -30
- package/userInvitationAccepter.js +0 -21
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +0 -50
- package/userSshKey.js +0 -26
- package/userSshKey.js.map +1 -1
package/team.js
CHANGED
|
@@ -5,33 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Team = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a GitHub team resource.
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to add/remove teams from your organization. When applied,
|
|
12
|
-
* a new team will be created. When destroyed, that team will be removed.
|
|
13
|
-
*
|
|
14
|
-
* ## Example Usage
|
|
15
|
-
*
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as github from "@pulumi/github";
|
|
19
|
-
*
|
|
20
|
-
* // Add a team to the organization
|
|
21
|
-
* const someTeam = new github.Team("some_team", {
|
|
22
|
-
* description: "Some cool team",
|
|
23
|
-
* privacy: "closed",
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* ## Import
|
|
28
|
-
*
|
|
29
|
-
* GitHub Teams can be imported using the GitHub team ID e.g.
|
|
30
|
-
*
|
|
31
|
-
* ```sh
|
|
32
|
-
* $ pulumi import github:index/team:Team core 1234567
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
8
|
class Team extends pulumi.CustomResource {
|
|
36
9
|
constructor(name, argsOrState, opts) {
|
|
37
10
|
let resourceInputs = {};
|
package/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IA+C3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,yBAAy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CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBA8EC;AAhEG,gBAAgB;AACO,iBAAY,GAAG,wBAAwB,CAAC"}
|
package/teamMembers.d.ts
CHANGED
|
@@ -1,45 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* ## Example Usage
|
|
5
|
-
*
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
-
* import * as github from "@pulumi/github";
|
|
9
|
-
*
|
|
10
|
-
* // Add a user to the organization
|
|
11
|
-
* const membershipForSomeUser = new github.Membership("membershipForSomeUser", {
|
|
12
|
-
* username: "SomeUser",
|
|
13
|
-
* role: "member",
|
|
14
|
-
* });
|
|
15
|
-
* const membershipForAnotherUser = new github.Membership("membershipForAnotherUser", {
|
|
16
|
-
* username: "AnotherUser",
|
|
17
|
-
* role: "member",
|
|
18
|
-
* });
|
|
19
|
-
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
20
|
-
* const someTeamMembers = new github.TeamMembers("someTeamMembers", {
|
|
21
|
-
* teamId: someTeam.id,
|
|
22
|
-
* members: [
|
|
23
|
-
* {
|
|
24
|
-
* username: "SomeUser",
|
|
25
|
-
* role: "maintainer",
|
|
26
|
-
* },
|
|
27
|
-
* {
|
|
28
|
-
* username: "AnotherUser",
|
|
29
|
-
* role: "member",
|
|
30
|
-
* },
|
|
31
|
-
* ],
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ## Import
|
|
36
|
-
*
|
|
37
|
-
* GitHub Team Membership can be imported using the team ID `teamid`, e.g.
|
|
38
|
-
*
|
|
39
|
-
* ```sh
|
|
40
|
-
* $ pulumi import github:index/teamMembers:TeamMembers some_team 1234567
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
3
|
export declare class TeamMembers extends pulumi.CustomResource {
|
|
44
4
|
/**
|
|
45
5
|
* Get an existing TeamMembers resource's state with the given name, ID, and optional extra
|
|
@@ -57,13 +17,7 @@ export declare class TeamMembers extends pulumi.CustomResource {
|
|
|
57
17
|
*/
|
|
58
18
|
static isInstance(obj: any): obj is TeamMembers;
|
|
59
19
|
readonly etag: pulumi.Output<string>;
|
|
60
|
-
/**
|
|
61
|
-
* List of team members. See Members below for details.
|
|
62
|
-
*/
|
|
63
20
|
readonly members: pulumi.Output<outputs.TeamMembersMember[]>;
|
|
64
|
-
/**
|
|
65
|
-
* The GitHub team id
|
|
66
|
-
*/
|
|
67
21
|
readonly teamId: pulumi.Output<string>;
|
|
68
22
|
/**
|
|
69
23
|
* Create a TeamMembers resource with the given unique name, arguments, and options.
|
|
@@ -79,25 +33,13 @@ export declare class TeamMembers extends pulumi.CustomResource {
|
|
|
79
33
|
*/
|
|
80
34
|
export interface TeamMembersState {
|
|
81
35
|
etag?: pulumi.Input<string>;
|
|
82
|
-
/**
|
|
83
|
-
* List of team members. See Members below for details.
|
|
84
|
-
*/
|
|
85
36
|
members?: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[]>;
|
|
86
|
-
/**
|
|
87
|
-
* The GitHub team id
|
|
88
|
-
*/
|
|
89
37
|
teamId?: pulumi.Input<string>;
|
|
90
38
|
}
|
|
91
39
|
/**
|
|
92
40
|
* The set of arguments for constructing a TeamMembers resource.
|
|
93
41
|
*/
|
|
94
42
|
export interface TeamMembersArgs {
|
|
95
|
-
/**
|
|
96
|
-
* List of team members. See Members below for details.
|
|
97
|
-
*/
|
|
98
43
|
members: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[]>;
|
|
99
|
-
/**
|
|
100
|
-
* The GitHub team id
|
|
101
|
-
*/
|
|
102
44
|
teamId: pulumi.Input<string>;
|
|
103
45
|
}
|
package/teamMembers.js
CHANGED
|
@@ -5,46 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.TeamMembers = 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
|
-
* // Add a user to the organization
|
|
16
|
-
* const membershipForSomeUser = new github.Membership("membershipForSomeUser", {
|
|
17
|
-
* username: "SomeUser",
|
|
18
|
-
* role: "member",
|
|
19
|
-
* });
|
|
20
|
-
* const membershipForAnotherUser = new github.Membership("membershipForAnotherUser", {
|
|
21
|
-
* username: "AnotherUser",
|
|
22
|
-
* role: "member",
|
|
23
|
-
* });
|
|
24
|
-
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
25
|
-
* const someTeamMembers = new github.TeamMembers("someTeamMembers", {
|
|
26
|
-
* teamId: someTeam.id,
|
|
27
|
-
* members: [
|
|
28
|
-
* {
|
|
29
|
-
* username: "SomeUser",
|
|
30
|
-
* role: "maintainer",
|
|
31
|
-
* },
|
|
32
|
-
* {
|
|
33
|
-
* username: "AnotherUser",
|
|
34
|
-
* role: "member",
|
|
35
|
-
* },
|
|
36
|
-
* ],
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* ## Import
|
|
41
|
-
*
|
|
42
|
-
* GitHub Team Membership can be imported using the team ID `teamid`, e.g.
|
|
43
|
-
*
|
|
44
|
-
* ```sh
|
|
45
|
-
* $ pulumi import github:index/teamMembers:TeamMembers some_team 1234567
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
8
|
class TeamMembers extends pulumi.CustomResource {
|
|
49
9
|
constructor(name, argsOrState, opts) {
|
|
50
10
|
let resourceInputs = {};
|
package/teamMembers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMembers.js","sourceRoot":"","sources":["../teamMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamMembers.js","sourceRoot":"","sources":["../teamMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAwClD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,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,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,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;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IA7DD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCA+DC;AAjDG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/teamMembership.d.ts
CHANGED
|
@@ -1,41 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a GitHub team membership resource.
|
|
4
|
-
*
|
|
5
|
-
* This resource allows you to add/remove users from teams in your organization. When applied,
|
|
6
|
-
* the user will be added to the team. If the user hasn't accepted their invitation to the
|
|
7
|
-
* organization, they won't be part of the team until they do. When
|
|
8
|
-
* destroyed, the user will be removed from the team.
|
|
9
|
-
*
|
|
10
|
-
* > **Note**: This resource is not compatible with `github.TeamMembers`. Use either `github.TeamMembers` or `github.TeamMembership`.
|
|
11
|
-
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as github from "@pulumi/github";
|
|
17
|
-
*
|
|
18
|
-
* // Add a user to the organization
|
|
19
|
-
* const membershipForSomeUser = new github.Membership("membershipForSomeUser", {
|
|
20
|
-
* username: "SomeUser",
|
|
21
|
-
* role: "member",
|
|
22
|
-
* });
|
|
23
|
-
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
24
|
-
* const someTeamMembership = new github.TeamMembership("someTeamMembership", {
|
|
25
|
-
* teamId: someTeam.id,
|
|
26
|
-
* username: "SomeUser",
|
|
27
|
-
* role: "member",
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* ## Import
|
|
32
|
-
*
|
|
33
|
-
* GitHub Team Membership can be imported using an ID made up of `teamid:username`, e.g.
|
|
34
|
-
*
|
|
35
|
-
* ```sh
|
|
36
|
-
* $ pulumi import github:index/teamMembership:TeamMembership member 1234567:someuser
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
2
|
export declare class TeamMembership extends pulumi.CustomResource {
|
|
40
3
|
/**
|
|
41
4
|
* Get an existing TeamMembership resource's state with the given name, ID, and optional extra
|
|
@@ -53,18 +16,8 @@ export declare class TeamMembership extends pulumi.CustomResource {
|
|
|
53
16
|
*/
|
|
54
17
|
static isInstance(obj: any): obj is TeamMembership;
|
|
55
18
|
readonly etag: pulumi.Output<string>;
|
|
56
|
-
/**
|
|
57
|
-
* The role of the user within the team.
|
|
58
|
-
* Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
59
|
-
*/
|
|
60
19
|
readonly role: pulumi.Output<string | undefined>;
|
|
61
|
-
/**
|
|
62
|
-
* The GitHub team id
|
|
63
|
-
*/
|
|
64
20
|
readonly teamId: pulumi.Output<string>;
|
|
65
|
-
/**
|
|
66
|
-
* The user to add to the team.
|
|
67
|
-
*/
|
|
68
21
|
readonly username: pulumi.Output<string>;
|
|
69
22
|
/**
|
|
70
23
|
* Create a TeamMembership resource with the given unique name, arguments, and options.
|
|
@@ -80,35 +33,15 @@ export declare class TeamMembership extends pulumi.CustomResource {
|
|
|
80
33
|
*/
|
|
81
34
|
export interface TeamMembershipState {
|
|
82
35
|
etag?: pulumi.Input<string>;
|
|
83
|
-
/**
|
|
84
|
-
* The role of the user within the team.
|
|
85
|
-
* Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
86
|
-
*/
|
|
87
36
|
role?: pulumi.Input<string>;
|
|
88
|
-
/**
|
|
89
|
-
* The GitHub team id
|
|
90
|
-
*/
|
|
91
37
|
teamId?: pulumi.Input<string>;
|
|
92
|
-
/**
|
|
93
|
-
* The user to add to the team.
|
|
94
|
-
*/
|
|
95
38
|
username?: pulumi.Input<string>;
|
|
96
39
|
}
|
|
97
40
|
/**
|
|
98
41
|
* The set of arguments for constructing a TeamMembership resource.
|
|
99
42
|
*/
|
|
100
43
|
export interface TeamMembershipArgs {
|
|
101
|
-
/**
|
|
102
|
-
* The role of the user within the team.
|
|
103
|
-
* Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
104
|
-
*/
|
|
105
44
|
role?: pulumi.Input<string>;
|
|
106
|
-
/**
|
|
107
|
-
* The GitHub team id
|
|
108
|
-
*/
|
|
109
45
|
teamId: pulumi.Input<string>;
|
|
110
|
-
/**
|
|
111
|
-
* The user to add to the team.
|
|
112
|
-
*/
|
|
113
46
|
username: pulumi.Input<string>;
|
|
114
47
|
}
|
package/teamMembership.js
CHANGED
|
@@ -5,43 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.TeamMembership = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a GitHub team membership resource.
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to add/remove users from teams in your organization. When applied,
|
|
12
|
-
* the user will be added to the team. If the user hasn't accepted their invitation to the
|
|
13
|
-
* organization, they won't be part of the team until they do. When
|
|
14
|
-
* destroyed, the user will be removed from the team.
|
|
15
|
-
*
|
|
16
|
-
* > **Note**: This resource is not compatible with `github.TeamMembers`. Use either `github.TeamMembers` or `github.TeamMembership`.
|
|
17
|
-
*
|
|
18
|
-
* ## Example Usage
|
|
19
|
-
*
|
|
20
|
-
* ```typescript
|
|
21
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
-
* import * as github from "@pulumi/github";
|
|
23
|
-
*
|
|
24
|
-
* // Add a user to the organization
|
|
25
|
-
* const membershipForSomeUser = new github.Membership("membershipForSomeUser", {
|
|
26
|
-
* username: "SomeUser",
|
|
27
|
-
* role: "member",
|
|
28
|
-
* });
|
|
29
|
-
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
30
|
-
* const someTeamMembership = new github.TeamMembership("someTeamMembership", {
|
|
31
|
-
* teamId: someTeam.id,
|
|
32
|
-
* username: "SomeUser",
|
|
33
|
-
* role: "member",
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* ## Import
|
|
38
|
-
*
|
|
39
|
-
* GitHub Team Membership can be imported using an ID made up of `teamid:username`, e.g.
|
|
40
|
-
*
|
|
41
|
-
* ```sh
|
|
42
|
-
* $ pulumi import github:index/teamMembership:TeamMembership member 1234567:someuser
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
8
|
class TeamMembership extends pulumi.CustomResource {
|
|
46
9
|
constructor(name, argsOrState, opts) {
|
|
47
10
|
let resourceInputs = {};
|
package/teamMembership.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMembership.js","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamMembership.js","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAyCrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,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;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,CAAC"}
|
package/teamRepository.d.ts
CHANGED
|
@@ -1,39 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* This resource manages relationships between teams and repositories
|
|
4
|
-
* in your GitHub organization.
|
|
5
|
-
*
|
|
6
|
-
* Creating this resource grants a particular team permissions on a
|
|
7
|
-
* particular repository.
|
|
8
|
-
*
|
|
9
|
-
* The repository and the team must both belong to the same organization
|
|
10
|
-
* on GitHub. This resource does not actually *create* any repositories;
|
|
11
|
-
* to do that, see `github.Repository`.
|
|
12
|
-
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as github from "@pulumi/github";
|
|
18
|
-
*
|
|
19
|
-
* // Add a repository to the team
|
|
20
|
-
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
21
|
-
* const someRepo = new github.Repository("someRepo", {});
|
|
22
|
-
* const someTeamRepo = new github.TeamRepository("someTeamRepo", {
|
|
23
|
-
* teamId: someTeam.id,
|
|
24
|
-
* repository: someRepo.name,
|
|
25
|
-
* permission: "pull",
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* ## Import
|
|
30
|
-
*
|
|
31
|
-
* GitHub Team Repository can be imported using an ID made up of `teamid:repository`, e.g.
|
|
32
|
-
*
|
|
33
|
-
* ```sh
|
|
34
|
-
* $ pulumi import github:index/teamRepository:TeamRepository terraform_repo 1234567:terraform
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
2
|
export declare class TeamRepository extends pulumi.CustomResource {
|
|
38
3
|
/**
|
|
39
4
|
* Get an existing TeamRepository resource's state with the given name, ID, and optional extra
|
|
@@ -51,17 +16,10 @@ export declare class TeamRepository extends pulumi.CustomResource {
|
|
|
51
16
|
*/
|
|
52
17
|
static isInstance(obj: any): obj is TeamRepository;
|
|
53
18
|
readonly etag: pulumi.Output<string>;
|
|
54
|
-
/**
|
|
55
|
-
* The permissions of team members regarding the repository.
|
|
56
|
-
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
57
|
-
*/
|
|
58
19
|
readonly permission: pulumi.Output<string | undefined>;
|
|
59
|
-
/**
|
|
60
|
-
* The repository to add to the team.
|
|
61
|
-
*/
|
|
62
20
|
readonly repository: pulumi.Output<string>;
|
|
63
21
|
/**
|
|
64
|
-
*
|
|
22
|
+
* ID or slug of team
|
|
65
23
|
*/
|
|
66
24
|
readonly teamId: pulumi.Output<string>;
|
|
67
25
|
/**
|
|
@@ -78,17 +36,10 @@ export declare class TeamRepository extends pulumi.CustomResource {
|
|
|
78
36
|
*/
|
|
79
37
|
export interface TeamRepositoryState {
|
|
80
38
|
etag?: pulumi.Input<string>;
|
|
81
|
-
/**
|
|
82
|
-
* The permissions of team members regarding the repository.
|
|
83
|
-
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
84
|
-
*/
|
|
85
39
|
permission?: pulumi.Input<string>;
|
|
86
|
-
/**
|
|
87
|
-
* The repository to add to the team.
|
|
88
|
-
*/
|
|
89
40
|
repository?: pulumi.Input<string>;
|
|
90
41
|
/**
|
|
91
|
-
*
|
|
42
|
+
* ID or slug of team
|
|
92
43
|
*/
|
|
93
44
|
teamId?: pulumi.Input<string>;
|
|
94
45
|
}
|
|
@@ -96,17 +47,10 @@ export interface TeamRepositoryState {
|
|
|
96
47
|
* The set of arguments for constructing a TeamRepository resource.
|
|
97
48
|
*/
|
|
98
49
|
export interface TeamRepositoryArgs {
|
|
99
|
-
/**
|
|
100
|
-
* The permissions of team members regarding the repository.
|
|
101
|
-
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
102
|
-
*/
|
|
103
50
|
permission?: pulumi.Input<string>;
|
|
104
|
-
/**
|
|
105
|
-
* The repository to add to the team.
|
|
106
|
-
*/
|
|
107
51
|
repository: pulumi.Input<string>;
|
|
108
52
|
/**
|
|
109
|
-
*
|
|
53
|
+
* ID or slug of team
|
|
110
54
|
*/
|
|
111
55
|
teamId: pulumi.Input<string>;
|
|
112
56
|
}
|
package/teamRepository.js
CHANGED
|
@@ -5,41 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.TeamRepository = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* This resource manages relationships between teams and repositories
|
|
10
|
-
* in your GitHub organization.
|
|
11
|
-
*
|
|
12
|
-
* Creating this resource grants a particular team permissions on a
|
|
13
|
-
* particular repository.
|
|
14
|
-
*
|
|
15
|
-
* The repository and the team must both belong to the same organization
|
|
16
|
-
* on GitHub. This resource does not actually *create* any repositories;
|
|
17
|
-
* to do that, see `github.Repository`.
|
|
18
|
-
*
|
|
19
|
-
* ## Example Usage
|
|
20
|
-
*
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
-
* import * as github from "@pulumi/github";
|
|
24
|
-
*
|
|
25
|
-
* // Add a repository to the team
|
|
26
|
-
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
27
|
-
* const someRepo = new github.Repository("someRepo", {});
|
|
28
|
-
* const someTeamRepo = new github.TeamRepository("someTeamRepo", {
|
|
29
|
-
* teamId: someTeam.id,
|
|
30
|
-
* repository: someRepo.name,
|
|
31
|
-
* permission: "pull",
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ## Import
|
|
36
|
-
*
|
|
37
|
-
* GitHub Team Repository can be imported using an ID made up of `teamid:repository`, e.g.
|
|
38
|
-
*
|
|
39
|
-
* ```sh
|
|
40
|
-
* $ pulumi import github:index/teamRepository:TeamRepository terraform_repo 1234567:terraform
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
8
|
class TeamRepository extends pulumi.CustomResource {
|
|
44
9
|
constructor(name, argsOrState, opts) {
|
|
45
10
|
let resourceInputs = {};
|
package/teamRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamRepository.js","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamRepository.js","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA4CrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,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H,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAqEC;AAvDG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* This resource allows you to create and manage Identity Provider (IdP) group connections within your GitHub teams.
|
|
5
|
-
* You must have team synchronization enabled for organizations owned by enterprise accounts.
|
|
6
|
-
*
|
|
7
|
-
* To learn more about team synchronization between IdPs and GitHub, please refer to:
|
|
8
|
-
* https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github
|
|
9
|
-
*
|
|
10
|
-
* ## Import
|
|
11
|
-
*
|
|
12
|
-
* GitHub Team Sync Group Mappings can be imported using the GitHub team `slug` e.g.
|
|
13
|
-
*
|
|
14
|
-
* ```sh
|
|
15
|
-
* $ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
3
|
export declare class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
19
4
|
/**
|
|
20
5
|
* Get an existing TeamSyncGroupMapping resource's state with the given name, ID, and optional extra
|
|
@@ -32,14 +17,7 @@ export declare class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
|
32
17
|
*/
|
|
33
18
|
static isInstance(obj: any): obj is TeamSyncGroupMapping;
|
|
34
19
|
readonly etag: pulumi.Output<string>;
|
|
35
|
-
/**
|
|
36
|
-
* An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below.
|
|
37
|
-
* ___
|
|
38
|
-
*/
|
|
39
20
|
readonly groups: pulumi.Output<outputs.TeamSyncGroupMappingGroup[] | undefined>;
|
|
40
|
-
/**
|
|
41
|
-
* Slug of the team
|
|
42
|
-
*/
|
|
43
21
|
readonly teamSlug: pulumi.Output<string>;
|
|
44
22
|
/**
|
|
45
23
|
* Create a TeamSyncGroupMapping resource with the given unique name, arguments, and options.
|
|
@@ -55,27 +33,13 @@ export declare class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
|
55
33
|
*/
|
|
56
34
|
export interface TeamSyncGroupMappingState {
|
|
57
35
|
etag?: pulumi.Input<string>;
|
|
58
|
-
/**
|
|
59
|
-
* An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below.
|
|
60
|
-
* ___
|
|
61
|
-
*/
|
|
62
36
|
groups?: pulumi.Input<pulumi.Input<inputs.TeamSyncGroupMappingGroup>[]>;
|
|
63
|
-
/**
|
|
64
|
-
* Slug of the team
|
|
65
|
-
*/
|
|
66
37
|
teamSlug?: pulumi.Input<string>;
|
|
67
38
|
}
|
|
68
39
|
/**
|
|
69
40
|
* The set of arguments for constructing a TeamSyncGroupMapping resource.
|
|
70
41
|
*/
|
|
71
42
|
export interface TeamSyncGroupMappingArgs {
|
|
72
|
-
/**
|
|
73
|
-
* An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below.
|
|
74
|
-
* ___
|
|
75
|
-
*/
|
|
76
43
|
groups?: pulumi.Input<pulumi.Input<inputs.TeamSyncGroupMappingGroup>[]>;
|
|
77
|
-
/**
|
|
78
|
-
* Slug of the team
|
|
79
|
-
*/
|
|
80
44
|
teamSlug: pulumi.Input<string>;
|
|
81
45
|
}
|
package/teamSyncGroupMapping.js
CHANGED
|
@@ -5,21 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.TeamSyncGroupMapping = 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 Identity Provider (IdP) group connections within your GitHub teams.
|
|
10
|
-
* You must have team synchronization enabled for organizations owned by enterprise accounts.
|
|
11
|
-
*
|
|
12
|
-
* To learn more about team synchronization between IdPs and GitHub, please refer to:
|
|
13
|
-
* https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github
|
|
14
|
-
*
|
|
15
|
-
* ## Import
|
|
16
|
-
*
|
|
17
|
-
* GitHub Team Sync Group Mappings can be imported using the GitHub team `slug` e.g.
|
|
18
|
-
*
|
|
19
|
-
* ```sh
|
|
20
|
-
* $ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
8
|
class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
24
9
|
constructor(name, argsOrState, opts) {
|
|
25
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamSyncGroupMapping.js","sourceRoot":"","sources":["../teamSyncGroupMapping.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamSyncGroupMapping.js","sourceRoot":"","sources":["../teamSyncGroupMapping.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAwC3D,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,C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