@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/actionsRunnerGroup.js
CHANGED
|
@@ -5,7 +5,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ActionsRunnerGroup = 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 GitHub Actions runner groups within your GitHub enterprise organizations.
|
|
10
|
+
* You must have admin access to an organization to use this resource.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as github from "@pulumi/github";
|
|
17
|
+
*
|
|
18
|
+
* const exampleRepository = new github.Repository("exampleRepository", {});
|
|
19
|
+
* const exampleActionsRunnerGroup = new github.ActionsRunnerGroup("exampleActionsRunnerGroup", {
|
|
20
|
+
* visibility: "selected",
|
|
21
|
+
* selectedRepositoryIds: [exampleRepository.repoId],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* This resource can be imported using the ID of the runner group
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import github:index/actionsRunnerGroup:ActionsRunnerGroup test 7
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
8
33
|
class ActionsRunnerGroup extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing ActionsRunnerGroup resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, state, opts) {
|
|
44
|
+
return new ActionsRunnerGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of ActionsRunnerGroup. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === ActionsRunnerGroup.__pulumiType;
|
|
55
|
+
}
|
|
9
56
|
constructor(name, argsOrState, opts) {
|
|
10
57
|
let resourceInputs = {};
|
|
11
58
|
opts = opts || {};
|
|
@@ -39,28 +86,6 @@ class ActionsRunnerGroup extends pulumi.CustomResource {
|
|
|
39
86
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
87
|
super(ActionsRunnerGroup.__pulumiType, name, resourceInputs, opts);
|
|
41
88
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Get an existing ActionsRunnerGroup resource's state with the given name, ID, and optional extra
|
|
44
|
-
* properties used to qualify the lookup.
|
|
45
|
-
*
|
|
46
|
-
* @param name The _unique_ name of the resulting resource.
|
|
47
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
-
* @param state Any extra arguments used during the lookup.
|
|
49
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
-
*/
|
|
51
|
-
static get(name, id, state, opts) {
|
|
52
|
-
return new ActionsRunnerGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Returns true if the given object is an instance of ActionsRunnerGroup. This is designed to work even
|
|
56
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
-
*/
|
|
58
|
-
static isInstance(obj) {
|
|
59
|
-
if (obj === undefined || obj === null) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
return obj['__pulumiType'] === ActionsRunnerGroup.__pulumiType;
|
|
63
|
-
}
|
|
64
89
|
}
|
|
65
90
|
exports.ActionsRunnerGroup = ActionsRunnerGroup;
|
|
66
91
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsRunnerGroup.js","sourceRoot":"","sources":["../actionsRunnerGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"actionsRunnerGroup.js","sourceRoot":"","sources":["../actionsRunnerGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA+CD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAA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wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/D,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAxGL,gDAyGC;AA3FG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
|
package/actionsSecret.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
|
+
* const examplePublicKey = github.getActionsPublicKey({
|
|
10
|
+
* repository: "example_repository",
|
|
11
|
+
* });
|
|
12
|
+
* const exampleSecretActionsSecret = new github.ActionsSecret("exampleSecretActionsSecret", {
|
|
13
|
+
* repository: "example_repository",
|
|
14
|
+
* secretName: "example_secret_name",
|
|
15
|
+
* plaintextValue: _var.some_secret_string,
|
|
16
|
+
* });
|
|
17
|
+
* const exampleSecretIndex_actionsSecretActionsSecret = new github.ActionsSecret("exampleSecretIndex/actionsSecretActionsSecret", {
|
|
18
|
+
* repository: "example_repository",
|
|
19
|
+
* secretName: "example_secret_name",
|
|
20
|
+
* encryptedValue: _var.some_encrypted_secret_string,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare class ActionsSecret extends pulumi.CustomResource {
|
|
3
25
|
/**
|
|
4
26
|
* Get an existing ActionsSecret resource's state with the given name, ID, and optional extra
|
|
@@ -15,11 +37,29 @@ export declare class ActionsSecret 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 ActionsSecret;
|
|
40
|
+
/**
|
|
41
|
+
* Date of actionsSecret creation.
|
|
42
|
+
*/
|
|
18
43
|
readonly createdAt: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
46
|
+
*/
|
|
19
47
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Plaintext value of the secret to be encrypted
|
|
50
|
+
*/
|
|
20
51
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Name of the repository
|
|
54
|
+
*/
|
|
21
55
|
readonly repository: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Name of the secret
|
|
58
|
+
*/
|
|
22
59
|
readonly secretName: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Date of actionsSecret update.
|
|
62
|
+
*/
|
|
23
63
|
readonly updatedAt: pulumi.Output<string>;
|
|
24
64
|
/**
|
|
25
65
|
* Create a ActionsSecret resource with the given unique name, arguments, and options.
|
|
@@ -34,19 +74,49 @@ export declare class ActionsSecret extends pulumi.CustomResource {
|
|
|
34
74
|
* Input properties used for looking up and filtering ActionsSecret resources.
|
|
35
75
|
*/
|
|
36
76
|
export interface ActionsSecretState {
|
|
77
|
+
/**
|
|
78
|
+
* Date of actionsSecret creation.
|
|
79
|
+
*/
|
|
37
80
|
createdAt?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
83
|
+
*/
|
|
38
84
|
encryptedValue?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Plaintext value of the secret to be encrypted
|
|
87
|
+
*/
|
|
39
88
|
plaintextValue?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Name of the repository
|
|
91
|
+
*/
|
|
40
92
|
repository?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the secret
|
|
95
|
+
*/
|
|
41
96
|
secretName?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Date of actionsSecret update.
|
|
99
|
+
*/
|
|
42
100
|
updatedAt?: pulumi.Input<string>;
|
|
43
101
|
}
|
|
44
102
|
/**
|
|
45
103
|
* The set of arguments for constructing a ActionsSecret resource.
|
|
46
104
|
*/
|
|
47
105
|
export interface ActionsSecretArgs {
|
|
106
|
+
/**
|
|
107
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
108
|
+
*/
|
|
48
109
|
encryptedValue?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Plaintext value of the secret to be encrypted
|
|
112
|
+
*/
|
|
49
113
|
plaintextValue?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Name of the repository
|
|
116
|
+
*/
|
|
50
117
|
repository: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Name of the secret
|
|
120
|
+
*/
|
|
51
121
|
secretName: pulumi.Input<string>;
|
|
52
122
|
}
|
package/actionsSecret.js
CHANGED
|
@@ -5,7 +5,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ActionsSecret = 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
|
+
* const examplePublicKey = github.getActionsPublicKey({
|
|
16
|
+
* repository: "example_repository",
|
|
17
|
+
* });
|
|
18
|
+
* const exampleSecretActionsSecret = new github.ActionsSecret("exampleSecretActionsSecret", {
|
|
19
|
+
* repository: "example_repository",
|
|
20
|
+
* secretName: "example_secret_name",
|
|
21
|
+
* plaintextValue: _var.some_secret_string,
|
|
22
|
+
* });
|
|
23
|
+
* const exampleSecretIndex_actionsSecretActionsSecret = new github.ActionsSecret("exampleSecretIndex/actionsSecretActionsSecret", {
|
|
24
|
+
* repository: "example_repository",
|
|
25
|
+
* secretName: "example_secret_name",
|
|
26
|
+
* encryptedValue: _var.some_encrypted_secret_string,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
8
30
|
class ActionsSecret extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing ActionsSecret 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 ActionsSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of ActionsSecret. 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'] === ActionsSecret.__pulumiType;
|
|
52
|
+
}
|
|
9
53
|
constructor(name, argsOrState, opts) {
|
|
10
54
|
let resourceInputs = {};
|
|
11
55
|
opts = opts || {};
|
|
@@ -38,28 +82,6 @@ class ActionsSecret extends pulumi.CustomResource {
|
|
|
38
82
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
39
83
|
super(ActionsSecret.__pulumiType, name, resourceInputs, opts);
|
|
40
84
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Get an existing ActionsSecret resource's state with the given name, ID, and optional extra
|
|
43
|
-
* properties used to qualify the lookup.
|
|
44
|
-
*
|
|
45
|
-
* @param name The _unique_ name of the resulting resource.
|
|
46
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
-
* @param state Any extra arguments used during the lookup.
|
|
48
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
-
*/
|
|
50
|
-
static get(name, id, state, opts) {
|
|
51
|
-
return new ActionsSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Returns true if the given object is an instance of ActionsSecret. This is designed to work even
|
|
55
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
-
*/
|
|
57
|
-
static isInstance(obj) {
|
|
58
|
-
if (obj === undefined || obj === null) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
return obj['__pulumiType'] === ActionsSecret.__pulumiType;
|
|
62
|
-
}
|
|
63
85
|
}
|
|
64
86
|
exports.ActionsSecret = ActionsSecret;
|
|
65
87
|
/** @internal */
|
package/actionsSecret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsSecret.js","sourceRoot":"","sources":["../actionsSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"actionsSecret.js","sourceRoot":"","sources":["../actionsSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CA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AgB,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA3FL,sCA4FC;AA9EG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
|
|
4
|
+
*
|
|
5
|
+
* This resource manages relationships between app installations and repositories
|
|
6
|
+
* in your GitHub organization.
|
|
7
|
+
*
|
|
8
|
+
* Creating this resource installs a particular app on multiple repositories.
|
|
9
|
+
*
|
|
10
|
+
* The app installation and the repositories must all belong to the same
|
|
11
|
+
* organization on GitHub. Note: you can review your organization's installations
|
|
12
|
+
* by the following the instructions at this
|
|
13
|
+
* [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
|
|
14
|
+
*
|
|
15
|
+
* ## Import
|
|
16
|
+
*
|
|
17
|
+
* GitHub App Installation Repository can be imported using an ID made up of `installation_id:repository`, e.g.
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import github:index/appInstallationRepositories:AppInstallationRepositories terraform_repo 1234567:terraform
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class AppInstallationRepositories extends pulumi.CustomResource {
|
|
24
|
+
/**
|
|
25
|
+
* Get an existing AppInstallationRepositories resource's state with the given name, ID, and optional extra
|
|
26
|
+
* properties used to qualify the lookup.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resulting resource.
|
|
29
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
30
|
+
* @param state Any extra arguments used during the lookup.
|
|
31
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
|
+
*/
|
|
33
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AppInstallationRepositoriesState, opts?: pulumi.CustomResourceOptions): AppInstallationRepositories;
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the given object is an instance of AppInstallationRepositories. This is designed to work even
|
|
36
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
37
|
+
*/
|
|
38
|
+
static isInstance(obj: any): obj is AppInstallationRepositories;
|
|
39
|
+
/**
|
|
40
|
+
* The GitHub app installation id.
|
|
41
|
+
*/
|
|
42
|
+
readonly installationId: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* A list of repository names to install the app on.
|
|
45
|
+
*/
|
|
46
|
+
readonly selectedRepositories: pulumi.Output<string[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Create a AppInstallationRepositories resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name: string, args: AppInstallationRepositoriesArgs, opts?: pulumi.CustomResourceOptions);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Input properties used for looking up and filtering AppInstallationRepositories resources.
|
|
58
|
+
*/
|
|
59
|
+
export interface AppInstallationRepositoriesState {
|
|
60
|
+
/**
|
|
61
|
+
* The GitHub app installation id.
|
|
62
|
+
*/
|
|
63
|
+
installationId?: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* A list of repository names to install the app on.
|
|
66
|
+
*/
|
|
67
|
+
selectedRepositories?: pulumi.Input<pulumi.Input<string>[]>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The set of arguments for constructing a AppInstallationRepositories resource.
|
|
71
|
+
*/
|
|
72
|
+
export interface AppInstallationRepositoriesArgs {
|
|
73
|
+
/**
|
|
74
|
+
* The GitHub app installation id.
|
|
75
|
+
*/
|
|
76
|
+
installationId: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* A list of repository names to install the app on.
|
|
79
|
+
*/
|
|
80
|
+
selectedRepositories: pulumi.Input<pulumi.Input<string>[]>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AppInstallationRepositories = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
|
|
10
|
+
*
|
|
11
|
+
* This resource manages relationships between app installations and repositories
|
|
12
|
+
* in your GitHub organization.
|
|
13
|
+
*
|
|
14
|
+
* Creating this resource installs a particular app on multiple repositories.
|
|
15
|
+
*
|
|
16
|
+
* The app installation and the repositories must all belong to the same
|
|
17
|
+
* organization on GitHub. Note: you can review your organization's installations
|
|
18
|
+
* by the following the instructions at this
|
|
19
|
+
* [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* GitHub App Installation Repository can be imported using an ID made up of `installation_id:repository`, e.g.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import github:index/appInstallationRepositories:AppInstallationRepositories terraform_repo 1234567:terraform
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
class AppInstallationRepositories extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing AppInstallationRepositories resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name, id, state, opts) {
|
|
40
|
+
return new AppInstallationRepositories(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of AppInstallationRepositories. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj) {
|
|
47
|
+
if (obj === undefined || obj === null) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return obj['__pulumiType'] === AppInstallationRepositories.__pulumiType;
|
|
51
|
+
}
|
|
52
|
+
constructor(name, argsOrState, opts) {
|
|
53
|
+
let resourceInputs = {};
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
if (opts.id) {
|
|
56
|
+
const state = argsOrState;
|
|
57
|
+
resourceInputs["installationId"] = state ? state.installationId : undefined;
|
|
58
|
+
resourceInputs["selectedRepositories"] = state ? state.selectedRepositories : undefined;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const args = argsOrState;
|
|
62
|
+
if ((!args || args.installationId === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'installationId'");
|
|
64
|
+
}
|
|
65
|
+
if ((!args || args.selectedRepositories === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'selectedRepositories'");
|
|
67
|
+
}
|
|
68
|
+
resourceInputs["installationId"] = args ? args.installationId : undefined;
|
|
69
|
+
resourceInputs["selectedRepositories"] = args ? args.selectedRepositories : undefined;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(AppInstallationRepositories.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.AppInstallationRepositories = AppInstallationRepositories;
|
|
76
|
+
/** @internal */
|
|
77
|
+
AppInstallationRepositories.__pulumiType = 'github:index/appInstallationRepositories:AppInstallationRepositories';
|
|
78
|
+
//# sourceMappingURL=appInstallationRepositories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appInstallationRepositories.js","sourceRoot":"","sources":["../appInstallationRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,C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AAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;SACzF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AAjEL,kEAkEC;AApDG,gBAAgB;AACO,wCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
|
|
4
|
+
*
|
|
5
|
+
* This resource manages relationships between app installations and repositories
|
|
6
|
+
* in your GitHub organization.
|
|
7
|
+
*
|
|
8
|
+
* Creating this resource installs a particular app on a particular repository.
|
|
9
|
+
*
|
|
10
|
+
* The app installation and the repository must both belong to the same
|
|
11
|
+
* organization on GitHub. Note: you can review your organization's installations
|
|
12
|
+
* by the following the instructions at this
|
|
13
|
+
* [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as github from "@pulumi/github";
|
|
20
|
+
*
|
|
21
|
+
* // Create a repository.
|
|
22
|
+
* const someRepo = new github.Repository("someRepo", {});
|
|
23
|
+
* const someAppRepo = new github.AppInstallationRepository("someAppRepo", {
|
|
24
|
+
* installationId: "1234567",
|
|
25
|
+
* repository: someRepo.name,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* GitHub App Installation Repository can be imported using an ID made up of `installation_id:repository`, e.g.
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import github:index/appInstallationRepository:AppInstallationRepository terraform_repo 1234567:terraform
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
2
37
|
export declare class AppInstallationRepository extends pulumi.CustomResource {
|
|
3
38
|
/**
|
|
4
39
|
* Get an existing AppInstallationRepository resource's state with the given name, ID, and optional extra
|
|
@@ -15,8 +50,14 @@ export declare class AppInstallationRepository extends pulumi.CustomResource {
|
|
|
15
50
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
51
|
*/
|
|
17
52
|
static isInstance(obj: any): obj is AppInstallationRepository;
|
|
53
|
+
/**
|
|
54
|
+
* The GitHub app installation id.
|
|
55
|
+
*/
|
|
18
56
|
readonly installationId: pulumi.Output<string>;
|
|
19
57
|
readonly repoId: pulumi.Output<number>;
|
|
58
|
+
/**
|
|
59
|
+
* The repository to install the app on.
|
|
60
|
+
*/
|
|
20
61
|
readonly repository: pulumi.Output<string>;
|
|
21
62
|
/**
|
|
22
63
|
* Create a AppInstallationRepository resource with the given unique name, arguments, and options.
|
|
@@ -31,14 +72,26 @@ export declare class AppInstallationRepository extends pulumi.CustomResource {
|
|
|
31
72
|
* Input properties used for looking up and filtering AppInstallationRepository resources.
|
|
32
73
|
*/
|
|
33
74
|
export interface AppInstallationRepositoryState {
|
|
75
|
+
/**
|
|
76
|
+
* The GitHub app installation id.
|
|
77
|
+
*/
|
|
34
78
|
installationId?: pulumi.Input<string>;
|
|
35
79
|
repoId?: pulumi.Input<number>;
|
|
80
|
+
/**
|
|
81
|
+
* The repository to install the app on.
|
|
82
|
+
*/
|
|
36
83
|
repository?: pulumi.Input<string>;
|
|
37
84
|
}
|
|
38
85
|
/**
|
|
39
86
|
* The set of arguments for constructing a AppInstallationRepository resource.
|
|
40
87
|
*/
|
|
41
88
|
export interface AppInstallationRepositoryArgs {
|
|
89
|
+
/**
|
|
90
|
+
* The GitHub app installation id.
|
|
91
|
+
*/
|
|
42
92
|
installationId: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The repository to install the app on.
|
|
95
|
+
*/
|
|
43
96
|
repository: pulumi.Input<string>;
|
|
44
97
|
}
|
|
@@ -5,7 +5,64 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.AppInstallationRepository = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
|
|
10
|
+
*
|
|
11
|
+
* This resource manages relationships between app installations and repositories
|
|
12
|
+
* in your GitHub organization.
|
|
13
|
+
*
|
|
14
|
+
* Creating this resource installs a particular app on a particular repository.
|
|
15
|
+
*
|
|
16
|
+
* The app installation and the repository must both belong to the same
|
|
17
|
+
* organization on GitHub. Note: you can review your organization's installations
|
|
18
|
+
* by the following the instructions at this
|
|
19
|
+
* [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
|
|
20
|
+
*
|
|
21
|
+
* ## Example Usage
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as github from "@pulumi/github";
|
|
26
|
+
*
|
|
27
|
+
* // Create a repository.
|
|
28
|
+
* const someRepo = new github.Repository("someRepo", {});
|
|
29
|
+
* const someAppRepo = new github.AppInstallationRepository("someAppRepo", {
|
|
30
|
+
* installationId: "1234567",
|
|
31
|
+
* repository: someRepo.name,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* GitHub App Installation Repository can be imported using an ID made up of `installation_id:repository`, e.g.
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import github:index/appInstallationRepository:AppInstallationRepository terraform_repo 1234567:terraform
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
8
43
|
class AppInstallationRepository extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing AppInstallationRepository 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 AppInstallationRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of AppInstallationRepository. 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'] === AppInstallationRepository.__pulumiType;
|
|
65
|
+
}
|
|
9
66
|
constructor(name, argsOrState, opts) {
|
|
10
67
|
let resourceInputs = {};
|
|
11
68
|
opts = opts || {};
|
|
@@ -30,28 +87,6 @@ class AppInstallationRepository extends pulumi.CustomResource {
|
|
|
30
87
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
31
88
|
super(AppInstallationRepository.__pulumiType, name, resourceInputs, opts);
|
|
32
89
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Get an existing AppInstallationRepository 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 AppInstallationRepository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Returns true if the given object is an instance of AppInstallationRepository. 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'] === AppInstallationRepository.__pulumiType;
|
|
54
|
-
}
|
|
55
90
|
}
|
|
56
91
|
exports.AppInstallationRepository = AppInstallationRepository;
|
|
57
92
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appInstallationRepository.js","sourceRoot":"","sources":["../appInstallationRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"appInstallationRepository.js","sourceRoot":"","sources":["../appInstallationRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EA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