@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/repository.d.ts
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to create and manage repositories within your
|
|
6
|
+
* GitHub organization or personal account.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const example = new github.Repository("example", {
|
|
15
|
+
* description: "My awesome codebase",
|
|
16
|
+
* template: {
|
|
17
|
+
* includeAllBranches: true,
|
|
18
|
+
* owner: "github",
|
|
19
|
+
* repository: "terraform-module-template",
|
|
20
|
+
* },
|
|
21
|
+
* visibility: "public",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
* ### With GitHub Pages Enabled
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as github from "@pulumi/github";
|
|
29
|
+
*
|
|
30
|
+
* const example = new github.Repository("example", {
|
|
31
|
+
* description: "My awesome web page",
|
|
32
|
+
* pages: {
|
|
33
|
+
* source: {
|
|
34
|
+
* branch: "master",
|
|
35
|
+
* path: "/docs",
|
|
36
|
+
* },
|
|
37
|
+
* },
|
|
38
|
+
* "private": false,
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ## Import
|
|
43
|
+
*
|
|
44
|
+
* Repositories can be imported using the `name`, e.g.
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import github:index/repository:Repository terraform terraform
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
4
50
|
export declare class Repository extends pulumi.CustomResource {
|
|
5
51
|
/**
|
|
6
52
|
* Get an existing Repository resource's state with the given name, ID, and optional extra
|
|
@@ -17,53 +63,175 @@ export declare class Repository extends pulumi.CustomResource {
|
|
|
17
63
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
64
|
*/
|
|
19
65
|
static isInstance(obj: any): obj is Repository;
|
|
66
|
+
/**
|
|
67
|
+
* Set to `true` to allow auto-merging pull requests on the repository.
|
|
68
|
+
*/
|
|
20
69
|
readonly allowAutoMerge: pulumi.Output<boolean | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Set to `false` to disable merge commits on the repository.
|
|
72
|
+
*/
|
|
21
73
|
readonly allowMergeCommit: pulumi.Output<boolean | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Set to `false` to disable rebase merges on the repository.
|
|
76
|
+
*/
|
|
22
77
|
readonly allowRebaseMerge: pulumi.Output<boolean | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* Set to `false` to disable squash merges on the repository.
|
|
80
|
+
*/
|
|
23
81
|
readonly allowSquashMerge: pulumi.Output<boolean | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* Set to `true` to always suggest updating pull request branches.
|
|
84
|
+
*/
|
|
24
85
|
readonly allowUpdateBranch: pulumi.Output<boolean | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Set to `true` to archive the repository instead of deleting on destroy.
|
|
88
|
+
*/
|
|
25
89
|
readonly archiveOnDestroy: pulumi.Output<boolean | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Specifies if the repository should be archived. Defaults to `false`. **NOTE** Currently, the API does not support unarchiving.
|
|
92
|
+
*/
|
|
26
93
|
readonly archived: pulumi.Output<boolean | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Set to `true` to produce an initial commit in the repository.
|
|
96
|
+
*/
|
|
27
97
|
readonly autoInit: pulumi.Output<boolean | undefined>;
|
|
28
98
|
/**
|
|
29
|
-
*
|
|
99
|
+
* (Deprecated: Use `github.BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,
|
|
100
|
+
* and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the
|
|
101
|
+
* initial repository creation and create the target branch inside of the repository prior to setting this attribute.
|
|
30
102
|
*
|
|
31
103
|
* @deprecated Use the github_branch_default resource instead
|
|
32
104
|
*/
|
|
33
105
|
readonly defaultBranch: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Automatically delete head branch after a pull request is merged. Defaults to `false`.
|
|
108
|
+
*/
|
|
34
109
|
readonly deleteBranchOnMerge: pulumi.Output<boolean | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* A description of the repository.
|
|
112
|
+
*/
|
|
35
113
|
readonly description: pulumi.Output<string | undefined>;
|
|
36
114
|
readonly etag: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* A string of the form "orgname/reponame".
|
|
117
|
+
*/
|
|
37
118
|
readonly fullName: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
121
|
+
*/
|
|
38
122
|
readonly gitCloneUrl: pulumi.Output<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
125
|
+
*/
|
|
39
126
|
readonly gitignoreTemplate: pulumi.Output<string | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
129
|
+
*/
|
|
40
130
|
readonly hasDownloads: pulumi.Output<boolean | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* Set to `true` to enable the GitHub Issues features
|
|
133
|
+
* on the repository.
|
|
134
|
+
*/
|
|
41
135
|
readonly hasIssues: pulumi.Output<boolean | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
138
|
+
*/
|
|
42
139
|
readonly hasProjects: pulumi.Output<boolean | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Set to `true` to enable the GitHub Wiki features on
|
|
142
|
+
* the repository.
|
|
143
|
+
*/
|
|
43
144
|
readonly hasWiki: pulumi.Output<boolean | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* URL of a page describing the project.
|
|
147
|
+
*/
|
|
44
148
|
readonly homepageUrl: pulumi.Output<string | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
|
|
151
|
+
*/
|
|
45
152
|
readonly htmlUrl: pulumi.Output<string>;
|
|
153
|
+
/**
|
|
154
|
+
* URL that can be provided to `git clone` to clone the repository via HTTPS.
|
|
155
|
+
*/
|
|
46
156
|
readonly httpCloneUrl: pulumi.Output<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.
|
|
159
|
+
*/
|
|
47
160
|
readonly ignoreVulnerabilityAlertsDuringRead: pulumi.Output<boolean | undefined>;
|
|
161
|
+
/**
|
|
162
|
+
* Set to `true` to tell GitHub that this is a template repository.
|
|
163
|
+
*/
|
|
48
164
|
readonly isTemplate: pulumi.Output<boolean | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
|
|
167
|
+
*/
|
|
49
168
|
readonly licenseTemplate: pulumi.Output<string | undefined>;
|
|
169
|
+
/**
|
|
170
|
+
* Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message.
|
|
171
|
+
*/
|
|
50
172
|
readonly mergeCommitMessage: pulumi.Output<string | undefined>;
|
|
173
|
+
/**
|
|
174
|
+
* Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title.
|
|
175
|
+
*/
|
|
51
176
|
readonly mergeCommitTitle: pulumi.Output<string | undefined>;
|
|
177
|
+
/**
|
|
178
|
+
* The name of the repository.
|
|
179
|
+
*/
|
|
52
180
|
readonly name: pulumi.Output<string>;
|
|
181
|
+
/**
|
|
182
|
+
* GraphQL global node id for use with v4 API
|
|
183
|
+
*/
|
|
53
184
|
readonly nodeId: pulumi.Output<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.
|
|
187
|
+
*/
|
|
54
188
|
readonly pages: pulumi.Output<outputs.RepositoryPages | undefined>;
|
|
55
189
|
/**
|
|
190
|
+
* Set to `true` to create a private repository.
|
|
191
|
+
* Repositories are created as public (e.g. open source) by default.
|
|
192
|
+
*
|
|
56
193
|
* @deprecated use visibility instead
|
|
57
194
|
*/
|
|
58
195
|
readonly private: pulumi.Output<boolean>;
|
|
196
|
+
/**
|
|
197
|
+
* GitHub ID for the repository
|
|
198
|
+
*/
|
|
59
199
|
readonly repoId: pulumi.Output<number>;
|
|
200
|
+
/**
|
|
201
|
+
* The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details.
|
|
202
|
+
*/
|
|
203
|
+
readonly securityAndAnalysis: pulumi.Output<outputs.RepositorySecurityAndAnalysis | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message.
|
|
206
|
+
*/
|
|
60
207
|
readonly squashMergeCommitMessage: pulumi.Output<string | undefined>;
|
|
208
|
+
/**
|
|
209
|
+
* Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title.
|
|
210
|
+
*/
|
|
61
211
|
readonly squashMergeCommitTitle: pulumi.Output<string | undefined>;
|
|
212
|
+
/**
|
|
213
|
+
* URL that can be provided to `git clone` to clone the repository via SSH.
|
|
214
|
+
*/
|
|
62
215
|
readonly sshCloneUrl: pulumi.Output<string>;
|
|
216
|
+
/**
|
|
217
|
+
* URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.
|
|
218
|
+
*/
|
|
63
219
|
readonly svnUrl: pulumi.Output<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Use a template repository to create this resource. See Template Repositories below for details.
|
|
222
|
+
*/
|
|
64
223
|
readonly template: pulumi.Output<outputs.RepositoryTemplate | undefined>;
|
|
224
|
+
/**
|
|
225
|
+
* The list of topics of the repository.
|
|
226
|
+
*/
|
|
65
227
|
readonly topics: pulumi.Output<string[] | undefined>;
|
|
228
|
+
/**
|
|
229
|
+
* Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
|
|
230
|
+
*/
|
|
66
231
|
readonly visibility: pulumi.Output<string>;
|
|
232
|
+
/**
|
|
233
|
+
* Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.
|
|
234
|
+
*/
|
|
67
235
|
readonly vulnerabilityAlerts: pulumi.Output<boolean | undefined>;
|
|
68
236
|
/**
|
|
69
237
|
* Create a Repository resource with the given unique name, arguments, and options.
|
|
@@ -78,96 +246,316 @@ export declare class Repository extends pulumi.CustomResource {
|
|
|
78
246
|
* Input properties used for looking up and filtering Repository resources.
|
|
79
247
|
*/
|
|
80
248
|
export interface RepositoryState {
|
|
249
|
+
/**
|
|
250
|
+
* Set to `true` to allow auto-merging pull requests on the repository.
|
|
251
|
+
*/
|
|
81
252
|
allowAutoMerge?: pulumi.Input<boolean>;
|
|
253
|
+
/**
|
|
254
|
+
* Set to `false` to disable merge commits on the repository.
|
|
255
|
+
*/
|
|
82
256
|
allowMergeCommit?: pulumi.Input<boolean>;
|
|
257
|
+
/**
|
|
258
|
+
* Set to `false` to disable rebase merges on the repository.
|
|
259
|
+
*/
|
|
83
260
|
allowRebaseMerge?: pulumi.Input<boolean>;
|
|
261
|
+
/**
|
|
262
|
+
* Set to `false` to disable squash merges on the repository.
|
|
263
|
+
*/
|
|
84
264
|
allowSquashMerge?: pulumi.Input<boolean>;
|
|
265
|
+
/**
|
|
266
|
+
* Set to `true` to always suggest updating pull request branches.
|
|
267
|
+
*/
|
|
85
268
|
allowUpdateBranch?: pulumi.Input<boolean>;
|
|
269
|
+
/**
|
|
270
|
+
* Set to `true` to archive the repository instead of deleting on destroy.
|
|
271
|
+
*/
|
|
86
272
|
archiveOnDestroy?: pulumi.Input<boolean>;
|
|
273
|
+
/**
|
|
274
|
+
* Specifies if the repository should be archived. Defaults to `false`. **NOTE** Currently, the API does not support unarchiving.
|
|
275
|
+
*/
|
|
87
276
|
archived?: pulumi.Input<boolean>;
|
|
277
|
+
/**
|
|
278
|
+
* Set to `true` to produce an initial commit in the repository.
|
|
279
|
+
*/
|
|
88
280
|
autoInit?: pulumi.Input<boolean>;
|
|
89
281
|
/**
|
|
90
|
-
*
|
|
282
|
+
* (Deprecated: Use `github.BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,
|
|
283
|
+
* and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the
|
|
284
|
+
* initial repository creation and create the target branch inside of the repository prior to setting this attribute.
|
|
91
285
|
*
|
|
92
286
|
* @deprecated Use the github_branch_default resource instead
|
|
93
287
|
*/
|
|
94
288
|
defaultBranch?: pulumi.Input<string>;
|
|
289
|
+
/**
|
|
290
|
+
* Automatically delete head branch after a pull request is merged. Defaults to `false`.
|
|
291
|
+
*/
|
|
95
292
|
deleteBranchOnMerge?: pulumi.Input<boolean>;
|
|
293
|
+
/**
|
|
294
|
+
* A description of the repository.
|
|
295
|
+
*/
|
|
96
296
|
description?: pulumi.Input<string>;
|
|
97
297
|
etag?: pulumi.Input<string>;
|
|
298
|
+
/**
|
|
299
|
+
* A string of the form "orgname/reponame".
|
|
300
|
+
*/
|
|
98
301
|
fullName?: pulumi.Input<string>;
|
|
302
|
+
/**
|
|
303
|
+
* URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
304
|
+
*/
|
|
99
305
|
gitCloneUrl?: pulumi.Input<string>;
|
|
306
|
+
/**
|
|
307
|
+
* Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
308
|
+
*/
|
|
100
309
|
gitignoreTemplate?: pulumi.Input<string>;
|
|
310
|
+
/**
|
|
311
|
+
* Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
312
|
+
*/
|
|
101
313
|
hasDownloads?: pulumi.Input<boolean>;
|
|
314
|
+
/**
|
|
315
|
+
* Set to `true` to enable the GitHub Issues features
|
|
316
|
+
* on the repository.
|
|
317
|
+
*/
|
|
102
318
|
hasIssues?: pulumi.Input<boolean>;
|
|
319
|
+
/**
|
|
320
|
+
* Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
321
|
+
*/
|
|
103
322
|
hasProjects?: pulumi.Input<boolean>;
|
|
323
|
+
/**
|
|
324
|
+
* Set to `true` to enable the GitHub Wiki features on
|
|
325
|
+
* the repository.
|
|
326
|
+
*/
|
|
104
327
|
hasWiki?: pulumi.Input<boolean>;
|
|
328
|
+
/**
|
|
329
|
+
* URL of a page describing the project.
|
|
330
|
+
*/
|
|
105
331
|
homepageUrl?: pulumi.Input<string>;
|
|
332
|
+
/**
|
|
333
|
+
* The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
|
|
334
|
+
*/
|
|
106
335
|
htmlUrl?: pulumi.Input<string>;
|
|
336
|
+
/**
|
|
337
|
+
* URL that can be provided to `git clone` to clone the repository via HTTPS.
|
|
338
|
+
*/
|
|
107
339
|
httpCloneUrl?: pulumi.Input<string>;
|
|
340
|
+
/**
|
|
341
|
+
* Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.
|
|
342
|
+
*/
|
|
108
343
|
ignoreVulnerabilityAlertsDuringRead?: pulumi.Input<boolean>;
|
|
344
|
+
/**
|
|
345
|
+
* Set to `true` to tell GitHub that this is a template repository.
|
|
346
|
+
*/
|
|
109
347
|
isTemplate?: pulumi.Input<boolean>;
|
|
348
|
+
/**
|
|
349
|
+
* Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
|
|
350
|
+
*/
|
|
110
351
|
licenseTemplate?: pulumi.Input<string>;
|
|
352
|
+
/**
|
|
353
|
+
* Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message.
|
|
354
|
+
*/
|
|
111
355
|
mergeCommitMessage?: pulumi.Input<string>;
|
|
356
|
+
/**
|
|
357
|
+
* Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title.
|
|
358
|
+
*/
|
|
112
359
|
mergeCommitTitle?: pulumi.Input<string>;
|
|
360
|
+
/**
|
|
361
|
+
* The name of the repository.
|
|
362
|
+
*/
|
|
113
363
|
name?: pulumi.Input<string>;
|
|
364
|
+
/**
|
|
365
|
+
* GraphQL global node id for use with v4 API
|
|
366
|
+
*/
|
|
114
367
|
nodeId?: pulumi.Input<string>;
|
|
368
|
+
/**
|
|
369
|
+
* The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.
|
|
370
|
+
*/
|
|
115
371
|
pages?: pulumi.Input<inputs.RepositoryPages>;
|
|
116
372
|
/**
|
|
373
|
+
* Set to `true` to create a private repository.
|
|
374
|
+
* Repositories are created as public (e.g. open source) by default.
|
|
375
|
+
*
|
|
117
376
|
* @deprecated use visibility instead
|
|
118
377
|
*/
|
|
119
378
|
private?: pulumi.Input<boolean>;
|
|
379
|
+
/**
|
|
380
|
+
* GitHub ID for the repository
|
|
381
|
+
*/
|
|
120
382
|
repoId?: pulumi.Input<number>;
|
|
383
|
+
/**
|
|
384
|
+
* The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details.
|
|
385
|
+
*/
|
|
386
|
+
securityAndAnalysis?: pulumi.Input<inputs.RepositorySecurityAndAnalysis>;
|
|
387
|
+
/**
|
|
388
|
+
* Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message.
|
|
389
|
+
*/
|
|
121
390
|
squashMergeCommitMessage?: pulumi.Input<string>;
|
|
391
|
+
/**
|
|
392
|
+
* Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title.
|
|
393
|
+
*/
|
|
122
394
|
squashMergeCommitTitle?: pulumi.Input<string>;
|
|
395
|
+
/**
|
|
396
|
+
* URL that can be provided to `git clone` to clone the repository via SSH.
|
|
397
|
+
*/
|
|
123
398
|
sshCloneUrl?: pulumi.Input<string>;
|
|
399
|
+
/**
|
|
400
|
+
* URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.
|
|
401
|
+
*/
|
|
124
402
|
svnUrl?: pulumi.Input<string>;
|
|
403
|
+
/**
|
|
404
|
+
* Use a template repository to create this resource. See Template Repositories below for details.
|
|
405
|
+
*/
|
|
125
406
|
template?: pulumi.Input<inputs.RepositoryTemplate>;
|
|
407
|
+
/**
|
|
408
|
+
* The list of topics of the repository.
|
|
409
|
+
*/
|
|
126
410
|
topics?: pulumi.Input<pulumi.Input<string>[]>;
|
|
411
|
+
/**
|
|
412
|
+
* Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
|
|
413
|
+
*/
|
|
127
414
|
visibility?: pulumi.Input<string>;
|
|
415
|
+
/**
|
|
416
|
+
* Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.
|
|
417
|
+
*/
|
|
128
418
|
vulnerabilityAlerts?: pulumi.Input<boolean>;
|
|
129
419
|
}
|
|
130
420
|
/**
|
|
131
421
|
* The set of arguments for constructing a Repository resource.
|
|
132
422
|
*/
|
|
133
423
|
export interface RepositoryArgs {
|
|
424
|
+
/**
|
|
425
|
+
* Set to `true` to allow auto-merging pull requests on the repository.
|
|
426
|
+
*/
|
|
134
427
|
allowAutoMerge?: pulumi.Input<boolean>;
|
|
428
|
+
/**
|
|
429
|
+
* Set to `false` to disable merge commits on the repository.
|
|
430
|
+
*/
|
|
135
431
|
allowMergeCommit?: pulumi.Input<boolean>;
|
|
432
|
+
/**
|
|
433
|
+
* Set to `false` to disable rebase merges on the repository.
|
|
434
|
+
*/
|
|
136
435
|
allowRebaseMerge?: pulumi.Input<boolean>;
|
|
436
|
+
/**
|
|
437
|
+
* Set to `false` to disable squash merges on the repository.
|
|
438
|
+
*/
|
|
137
439
|
allowSquashMerge?: pulumi.Input<boolean>;
|
|
440
|
+
/**
|
|
441
|
+
* Set to `true` to always suggest updating pull request branches.
|
|
442
|
+
*/
|
|
138
443
|
allowUpdateBranch?: pulumi.Input<boolean>;
|
|
444
|
+
/**
|
|
445
|
+
* Set to `true` to archive the repository instead of deleting on destroy.
|
|
446
|
+
*/
|
|
139
447
|
archiveOnDestroy?: pulumi.Input<boolean>;
|
|
448
|
+
/**
|
|
449
|
+
* Specifies if the repository should be archived. Defaults to `false`. **NOTE** Currently, the API does not support unarchiving.
|
|
450
|
+
*/
|
|
140
451
|
archived?: pulumi.Input<boolean>;
|
|
452
|
+
/**
|
|
453
|
+
* Set to `true` to produce an initial commit in the repository.
|
|
454
|
+
*/
|
|
141
455
|
autoInit?: pulumi.Input<boolean>;
|
|
142
456
|
/**
|
|
143
|
-
*
|
|
457
|
+
* (Deprecated: Use `github.BranchDefault` resource instead) The name of the default branch of the repository. **NOTE:** This can only be set after a repository has already been created,
|
|
458
|
+
* and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the
|
|
459
|
+
* initial repository creation and create the target branch inside of the repository prior to setting this attribute.
|
|
144
460
|
*
|
|
145
461
|
* @deprecated Use the github_branch_default resource instead
|
|
146
462
|
*/
|
|
147
463
|
defaultBranch?: pulumi.Input<string>;
|
|
464
|
+
/**
|
|
465
|
+
* Automatically delete head branch after a pull request is merged. Defaults to `false`.
|
|
466
|
+
*/
|
|
148
467
|
deleteBranchOnMerge?: pulumi.Input<boolean>;
|
|
468
|
+
/**
|
|
469
|
+
* A description of the repository.
|
|
470
|
+
*/
|
|
149
471
|
description?: pulumi.Input<string>;
|
|
472
|
+
/**
|
|
473
|
+
* Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
474
|
+
*/
|
|
150
475
|
gitignoreTemplate?: pulumi.Input<string>;
|
|
476
|
+
/**
|
|
477
|
+
* Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
478
|
+
*/
|
|
151
479
|
hasDownloads?: pulumi.Input<boolean>;
|
|
480
|
+
/**
|
|
481
|
+
* Set to `true` to enable the GitHub Issues features
|
|
482
|
+
* on the repository.
|
|
483
|
+
*/
|
|
152
484
|
hasIssues?: pulumi.Input<boolean>;
|
|
485
|
+
/**
|
|
486
|
+
* Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
487
|
+
*/
|
|
153
488
|
hasProjects?: pulumi.Input<boolean>;
|
|
489
|
+
/**
|
|
490
|
+
* Set to `true` to enable the GitHub Wiki features on
|
|
491
|
+
* the repository.
|
|
492
|
+
*/
|
|
154
493
|
hasWiki?: pulumi.Input<boolean>;
|
|
494
|
+
/**
|
|
495
|
+
* URL of a page describing the project.
|
|
496
|
+
*/
|
|
155
497
|
homepageUrl?: pulumi.Input<string>;
|
|
498
|
+
/**
|
|
499
|
+
* Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.
|
|
500
|
+
*/
|
|
156
501
|
ignoreVulnerabilityAlertsDuringRead?: pulumi.Input<boolean>;
|
|
502
|
+
/**
|
|
503
|
+
* Set to `true` to tell GitHub that this is a template repository.
|
|
504
|
+
*/
|
|
157
505
|
isTemplate?: pulumi.Input<boolean>;
|
|
506
|
+
/**
|
|
507
|
+
* Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mpl-2.0".
|
|
508
|
+
*/
|
|
158
509
|
licenseTemplate?: pulumi.Input<string>;
|
|
510
|
+
/**
|
|
511
|
+
* Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message.
|
|
512
|
+
*/
|
|
159
513
|
mergeCommitMessage?: pulumi.Input<string>;
|
|
514
|
+
/**
|
|
515
|
+
* Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title.
|
|
516
|
+
*/
|
|
160
517
|
mergeCommitTitle?: pulumi.Input<string>;
|
|
518
|
+
/**
|
|
519
|
+
* The name of the repository.
|
|
520
|
+
*/
|
|
161
521
|
name?: pulumi.Input<string>;
|
|
522
|
+
/**
|
|
523
|
+
* The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.
|
|
524
|
+
*/
|
|
162
525
|
pages?: pulumi.Input<inputs.RepositoryPages>;
|
|
163
526
|
/**
|
|
527
|
+
* Set to `true` to create a private repository.
|
|
528
|
+
* Repositories are created as public (e.g. open source) by default.
|
|
529
|
+
*
|
|
164
530
|
* @deprecated use visibility instead
|
|
165
531
|
*/
|
|
166
532
|
private?: pulumi.Input<boolean>;
|
|
533
|
+
/**
|
|
534
|
+
* The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details.
|
|
535
|
+
*/
|
|
536
|
+
securityAndAnalysis?: pulumi.Input<inputs.RepositorySecurityAndAnalysis>;
|
|
537
|
+
/**
|
|
538
|
+
* Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message.
|
|
539
|
+
*/
|
|
167
540
|
squashMergeCommitMessage?: pulumi.Input<string>;
|
|
541
|
+
/**
|
|
542
|
+
* Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title.
|
|
543
|
+
*/
|
|
168
544
|
squashMergeCommitTitle?: pulumi.Input<string>;
|
|
545
|
+
/**
|
|
546
|
+
* Use a template repository to create this resource. See Template Repositories below for details.
|
|
547
|
+
*/
|
|
169
548
|
template?: pulumi.Input<inputs.RepositoryTemplate>;
|
|
549
|
+
/**
|
|
550
|
+
* The list of topics of the repository.
|
|
551
|
+
*/
|
|
170
552
|
topics?: pulumi.Input<pulumi.Input<string>[]>;
|
|
553
|
+
/**
|
|
554
|
+
* Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be `internal`. The `visibility` parameter overrides the `private` parameter.
|
|
555
|
+
*/
|
|
171
556
|
visibility?: pulumi.Input<string>;
|
|
557
|
+
/**
|
|
558
|
+
* Set to `true` to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See [GitHub Documentation](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies) for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.
|
|
559
|
+
*/
|
|
172
560
|
vulnerabilityAlerts?: pulumi.Input<boolean>;
|
|
173
561
|
}
|
package/repository.js
CHANGED
|
@@ -5,7 +5,75 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Repository = 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 repositories within your
|
|
10
|
+
* GitHub organization or personal account.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as github from "@pulumi/github";
|
|
17
|
+
*
|
|
18
|
+
* const example = new github.Repository("example", {
|
|
19
|
+
* description: "My awesome codebase",
|
|
20
|
+
* template: {
|
|
21
|
+
* includeAllBranches: true,
|
|
22
|
+
* owner: "github",
|
|
23
|
+
* repository: "terraform-module-template",
|
|
24
|
+
* },
|
|
25
|
+
* visibility: "public",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
* ### With GitHub Pages Enabled
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as github from "@pulumi/github";
|
|
33
|
+
*
|
|
34
|
+
* const example = new github.Repository("example", {
|
|
35
|
+
* description: "My awesome web page",
|
|
36
|
+
* pages: {
|
|
37
|
+
* source: {
|
|
38
|
+
* branch: "master",
|
|
39
|
+
* path: "/docs",
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* "private": false,
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* Repositories can be imported using the `name`, e.g.
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import github:index/repository:Repository terraform terraform
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
8
54
|
class Repository extends pulumi.CustomResource {
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing Repository resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new Repository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of Repository. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj) {
|
|
72
|
+
if (obj === undefined || obj === null) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
return obj['__pulumiType'] === Repository.__pulumiType;
|
|
76
|
+
}
|
|
9
77
|
constructor(name, argsOrState, opts) {
|
|
10
78
|
let resourceInputs = {};
|
|
11
79
|
opts = opts || {};
|
|
@@ -43,6 +111,7 @@ class Repository extends pulumi.CustomResource {
|
|
|
43
111
|
resourceInputs["pages"] = state ? state.pages : undefined;
|
|
44
112
|
resourceInputs["private"] = state ? state.private : undefined;
|
|
45
113
|
resourceInputs["repoId"] = state ? state.repoId : undefined;
|
|
114
|
+
resourceInputs["securityAndAnalysis"] = state ? state.securityAndAnalysis : undefined;
|
|
46
115
|
resourceInputs["squashMergeCommitMessage"] = state ? state.squashMergeCommitMessage : undefined;
|
|
47
116
|
resourceInputs["squashMergeCommitTitle"] = state ? state.squashMergeCommitTitle : undefined;
|
|
48
117
|
resourceInputs["sshCloneUrl"] = state ? state.sshCloneUrl : undefined;
|
|
@@ -79,6 +148,7 @@ class Repository extends pulumi.CustomResource {
|
|
|
79
148
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
80
149
|
resourceInputs["pages"] = args ? args.pages : undefined;
|
|
81
150
|
resourceInputs["private"] = args ? args.private : undefined;
|
|
151
|
+
resourceInputs["securityAndAnalysis"] = args ? args.securityAndAnalysis : undefined;
|
|
82
152
|
resourceInputs["squashMergeCommitMessage"] = args ? args.squashMergeCommitMessage : undefined;
|
|
83
153
|
resourceInputs["squashMergeCommitTitle"] = args ? args.squashMergeCommitTitle : undefined;
|
|
84
154
|
resourceInputs["template"] = args ? args.template : undefined;
|
|
@@ -98,28 +168,6 @@ class Repository extends pulumi.CustomResource {
|
|
|
98
168
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
99
169
|
super(Repository.__pulumiType, name, resourceInputs, opts);
|
|
100
170
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Get an existing Repository resource's state with the given name, ID, and optional extra
|
|
103
|
-
* properties used to qualify the lookup.
|
|
104
|
-
*
|
|
105
|
-
* @param name The _unique_ name of the resulting resource.
|
|
106
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
107
|
-
* @param state Any extra arguments used during the lookup.
|
|
108
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
109
|
-
*/
|
|
110
|
-
static get(name, id, state, opts) {
|
|
111
|
-
return new Repository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Returns true if the given object is an instance of Repository. This is designed to work even
|
|
115
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
116
|
-
*/
|
|
117
|
-
static isInstance(obj) {
|
|
118
|
-
if (obj === undefined || obj === null) {
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
return obj['__pulumiType'] === Repository.__pulumiType;
|
|
122
|
-
}
|
|
123
171
|
}
|
|
124
172
|
exports.Repository = Repository;
|
|
125
173
|
/** @internal */
|