@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/teamMembers.d.ts
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
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
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* // Add a user to the organization
|
|
12
|
+
* const membershipForSomeUser = new github.Membership("membershipForSomeUser", {
|
|
13
|
+
* username: "SomeUser",
|
|
14
|
+
* role: "member",
|
|
15
|
+
* });
|
|
16
|
+
* const membershipForAnotherUser = new github.Membership("membershipForAnotherUser", {
|
|
17
|
+
* username: "AnotherUser",
|
|
18
|
+
* role: "member",
|
|
19
|
+
* });
|
|
20
|
+
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
21
|
+
* const someTeamMembers = new github.TeamMembers("someTeamMembers", {
|
|
22
|
+
* teamId: someTeam.id,
|
|
23
|
+
* members: [
|
|
24
|
+
* {
|
|
25
|
+
* username: "SomeUser",
|
|
26
|
+
* role: "maintainer",
|
|
27
|
+
* },
|
|
28
|
+
* {
|
|
29
|
+
* username: "AnotherUser",
|
|
30
|
+
* role: "member",
|
|
31
|
+
* },
|
|
32
|
+
* ],
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* GitHub Team Membership can be imported using the team ID `teamid`, e.g.
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import github:index/teamMembers:TeamMembers some_team 1234567
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
4
44
|
export declare class TeamMembers extends pulumi.CustomResource {
|
|
5
45
|
/**
|
|
6
46
|
* Get an existing TeamMembers resource's state with the given name, ID, and optional extra
|
|
@@ -18,7 +58,13 @@ export declare class TeamMembers extends pulumi.CustomResource {
|
|
|
18
58
|
*/
|
|
19
59
|
static isInstance(obj: any): obj is TeamMembers;
|
|
20
60
|
readonly etag: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* List of team members. See Members below for details.
|
|
63
|
+
*/
|
|
21
64
|
readonly members: pulumi.Output<outputs.TeamMembersMember[]>;
|
|
65
|
+
/**
|
|
66
|
+
* The GitHub team id
|
|
67
|
+
*/
|
|
22
68
|
readonly teamId: pulumi.Output<string>;
|
|
23
69
|
/**
|
|
24
70
|
* Create a TeamMembers resource with the given unique name, arguments, and options.
|
|
@@ -34,13 +80,25 @@ export declare class TeamMembers extends pulumi.CustomResource {
|
|
|
34
80
|
*/
|
|
35
81
|
export interface TeamMembersState {
|
|
36
82
|
etag?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* List of team members. See Members below for details.
|
|
85
|
+
*/
|
|
37
86
|
members?: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[]>;
|
|
87
|
+
/**
|
|
88
|
+
* The GitHub team id
|
|
89
|
+
*/
|
|
38
90
|
teamId?: pulumi.Input<string>;
|
|
39
91
|
}
|
|
40
92
|
/**
|
|
41
93
|
* The set of arguments for constructing a TeamMembers resource.
|
|
42
94
|
*/
|
|
43
95
|
export interface TeamMembersArgs {
|
|
96
|
+
/**
|
|
97
|
+
* List of team members. See Members below for details.
|
|
98
|
+
*/
|
|
44
99
|
members: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[]>;
|
|
100
|
+
/**
|
|
101
|
+
* The GitHub team id
|
|
102
|
+
*/
|
|
45
103
|
teamId: pulumi.Input<string>;
|
|
46
104
|
}
|
package/teamMembers.js
CHANGED
|
@@ -5,7 +5,69 @@ 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
|
+
*/
|
|
8
48
|
class TeamMembers extends pulumi.CustomResource {
|
|
49
|
+
/**
|
|
50
|
+
* Get an existing TeamMembers resource's state with the given name, ID, and optional extra
|
|
51
|
+
* properties used to qualify the lookup.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resulting resource.
|
|
54
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
+
* @param state Any extra arguments used during the lookup.
|
|
56
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
+
*/
|
|
58
|
+
static get(name, id, state, opts) {
|
|
59
|
+
return new TeamMembers(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of TeamMembers. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj) {
|
|
66
|
+
if (obj === undefined || obj === null) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
return obj['__pulumiType'] === TeamMembers.__pulumiType;
|
|
70
|
+
}
|
|
9
71
|
constructor(name, argsOrState, opts) {
|
|
10
72
|
let resourceInputs = {};
|
|
11
73
|
opts = opts || {};
|
|
@@ -30,28 +92,6 @@ class TeamMembers extends pulumi.CustomResource {
|
|
|
30
92
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
31
93
|
super(TeamMembers.__pulumiType, name, resourceInputs, opts);
|
|
32
94
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Get an existing TeamMembers resource's state with the given name, ID, and optional extra
|
|
35
|
-
* properties used to qualify the lookup.
|
|
36
|
-
*
|
|
37
|
-
* @param name The _unique_ name of the resulting resource.
|
|
38
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
-
* @param state Any extra arguments used during the lookup.
|
|
40
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
-
*/
|
|
42
|
-
static get(name, id, state, opts) {
|
|
43
|
-
return new TeamMembers(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Returns true if the given object is an instance of TeamMembers. This is designed to work even
|
|
47
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
-
*/
|
|
49
|
-
static isInstance(obj) {
|
|
50
|
-
if (obj === undefined || obj === null) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
return obj['__pulumiType'] === TeamMembers.__pulumiType;
|
|
54
|
-
}
|
|
55
95
|
}
|
|
56
96
|
exports.TeamMembers = TeamMembers;
|
|
57
97
|
/** @internal */
|
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;AAGzC,yCAAyC;AAEzC,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"teamMembers.js","sourceRoot":"","sources":["../teamMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;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;IAoBD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,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IAAI,CAAC,CAAC;IAChE,CAAC;;AApEL,kCAqEC;AAvDG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/teamMembership.d.ts
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
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
|
+
*/
|
|
2
39
|
export declare class TeamMembership extends pulumi.CustomResource {
|
|
3
40
|
/**
|
|
4
41
|
* Get an existing TeamMembership resource's state with the given name, ID, and optional extra
|
|
@@ -16,8 +53,18 @@ export declare class TeamMembership extends pulumi.CustomResource {
|
|
|
16
53
|
*/
|
|
17
54
|
static isInstance(obj: any): obj is TeamMembership;
|
|
18
55
|
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
|
+
*/
|
|
19
60
|
readonly role: pulumi.Output<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* The GitHub team id
|
|
63
|
+
*/
|
|
20
64
|
readonly teamId: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The user to add to the team.
|
|
67
|
+
*/
|
|
21
68
|
readonly username: pulumi.Output<string>;
|
|
22
69
|
/**
|
|
23
70
|
* Create a TeamMembership resource with the given unique name, arguments, and options.
|
|
@@ -33,15 +80,35 @@ export declare class TeamMembership extends pulumi.CustomResource {
|
|
|
33
80
|
*/
|
|
34
81
|
export interface TeamMembershipState {
|
|
35
82
|
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
|
+
*/
|
|
36
87
|
role?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The GitHub team id
|
|
90
|
+
*/
|
|
37
91
|
teamId?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The user to add to the team.
|
|
94
|
+
*/
|
|
38
95
|
username?: pulumi.Input<string>;
|
|
39
96
|
}
|
|
40
97
|
/**
|
|
41
98
|
* The set of arguments for constructing a TeamMembership resource.
|
|
42
99
|
*/
|
|
43
100
|
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
|
+
*/
|
|
44
105
|
role?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The GitHub team id
|
|
108
|
+
*/
|
|
45
109
|
teamId: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The user to add to the team.
|
|
112
|
+
*/
|
|
46
113
|
username: pulumi.Input<string>;
|
|
47
114
|
}
|
package/teamMembership.js
CHANGED
|
@@ -5,7 +5,66 @@ 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
|
+
*/
|
|
8
45
|
class TeamMembership extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing TeamMembership resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name, id, state, opts) {
|
|
56
|
+
return new TeamMembership(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the given object is an instance of TeamMembership. This is designed to work even
|
|
60
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
61
|
+
*/
|
|
62
|
+
static isInstance(obj) {
|
|
63
|
+
if (obj === undefined || obj === null) {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
return obj['__pulumiType'] === TeamMembership.__pulumiType;
|
|
67
|
+
}
|
|
9
68
|
constructor(name, argsOrState, opts) {
|
|
10
69
|
let resourceInputs = {};
|
|
11
70
|
opts = opts || {};
|
|
@@ -32,28 +91,6 @@ class TeamMembership extends pulumi.CustomResource {
|
|
|
32
91
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
33
92
|
super(TeamMembership.__pulumiType, name, resourceInputs, opts);
|
|
34
93
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Get an existing TeamMembership resource's state with the given name, ID, and optional extra
|
|
37
|
-
* properties used to qualify the lookup.
|
|
38
|
-
*
|
|
39
|
-
* @param name The _unique_ name of the resulting resource.
|
|
40
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
-
* @param state Any extra arguments used during the lookup.
|
|
42
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
-
*/
|
|
44
|
-
static get(name, id, state, opts) {
|
|
45
|
-
return new TeamMembership(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns true if the given object is an instance of TeamMembership. This is designed to work even
|
|
49
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
-
*/
|
|
51
|
-
static isInstance(obj) {
|
|
52
|
-
if (obj === undefined || obj === null) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
return obj['__pulumiType'] === TeamMembership.__pulumiType;
|
|
56
|
-
}
|
|
57
94
|
}
|
|
58
95
|
exports.TeamMembership = TeamMembership;
|
|
59
96
|
/** @internal */
|
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,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"teamMembership.js","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,E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,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,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,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA3EL,wCA4EC;AA9DG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
|
package/teamRepository.d.ts
CHANGED
|
@@ -1,4 +1,39 @@
|
|
|
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
|
+
*/
|
|
2
37
|
export declare class TeamRepository extends pulumi.CustomResource {
|
|
3
38
|
/**
|
|
4
39
|
* Get an existing TeamRepository resource's state with the given name, ID, and optional extra
|
|
@@ -16,10 +51,17 @@ export declare class TeamRepository extends pulumi.CustomResource {
|
|
|
16
51
|
*/
|
|
17
52
|
static isInstance(obj: any): obj is TeamRepository;
|
|
18
53
|
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
|
+
*/
|
|
19
58
|
readonly permission: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The repository to add to the team.
|
|
61
|
+
*/
|
|
20
62
|
readonly repository: pulumi.Output<string>;
|
|
21
63
|
/**
|
|
22
|
-
*
|
|
64
|
+
* The GitHub team id or the GitHub team slug
|
|
23
65
|
*/
|
|
24
66
|
readonly teamId: pulumi.Output<string>;
|
|
25
67
|
/**
|
|
@@ -36,10 +78,17 @@ export declare class TeamRepository extends pulumi.CustomResource {
|
|
|
36
78
|
*/
|
|
37
79
|
export interface TeamRepositoryState {
|
|
38
80
|
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
|
+
*/
|
|
39
85
|
permission?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The repository to add to the team.
|
|
88
|
+
*/
|
|
40
89
|
repository?: pulumi.Input<string>;
|
|
41
90
|
/**
|
|
42
|
-
*
|
|
91
|
+
* The GitHub team id or the GitHub team slug
|
|
43
92
|
*/
|
|
44
93
|
teamId?: pulumi.Input<string>;
|
|
45
94
|
}
|
|
@@ -47,10 +96,17 @@ export interface TeamRepositoryState {
|
|
|
47
96
|
* The set of arguments for constructing a TeamRepository resource.
|
|
48
97
|
*/
|
|
49
98
|
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
|
+
*/
|
|
50
103
|
permission?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The repository to add to the team.
|
|
106
|
+
*/
|
|
51
107
|
repository: pulumi.Input<string>;
|
|
52
108
|
/**
|
|
53
|
-
*
|
|
109
|
+
* The GitHub team id or the GitHub team slug
|
|
54
110
|
*/
|
|
55
111
|
teamId: pulumi.Input<string>;
|
|
56
112
|
}
|
package/teamRepository.js
CHANGED
|
@@ -5,7 +5,64 @@ 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
|
+
*/
|
|
8
43
|
class TeamRepository extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing TeamRepository resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name, id, state, opts) {
|
|
54
|
+
return new TeamRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of TeamRepository. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === TeamRepository.__pulumiType;
|
|
65
|
+
}
|
|
9
66
|
constructor(name, argsOrState, opts) {
|
|
10
67
|
let resourceInputs = {};
|
|
11
68
|
opts = opts || {};
|
|
@@ -32,28 +89,6 @@ class TeamRepository extends pulumi.CustomResource {
|
|
|
32
89
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
33
90
|
super(TeamRepository.__pulumiType, name, resourceInputs, opts);
|
|
34
91
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Get an existing TeamRepository resource's state with the given name, ID, and optional extra
|
|
37
|
-
* properties used to qualify the lookup.
|
|
38
|
-
*
|
|
39
|
-
* @param name The _unique_ name of the resulting resource.
|
|
40
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
-
* @param state Any extra arguments used during the lookup.
|
|
42
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
-
*/
|
|
44
|
-
static get(name, id, state, opts) {
|
|
45
|
-
return new TeamRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns true if the given object is an instance of TeamRepository. This is designed to work even
|
|
49
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
-
*/
|
|
51
|
-
static isInstance(obj) {
|
|
52
|
-
if (obj === undefined || obj === null) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
return obj['__pulumiType'] === TeamRepository.__pulumiType;
|
|
56
|
-
}
|
|
57
92
|
}
|
|
58
93
|
exports.TeamRepository = TeamRepository;
|
|
59
94
|
/** @internal */
|
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,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"teamRepository.js","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,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;IAyBD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,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