@pulumi/github 5.0.0 → 5.2.0-alpha.1673638210

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/actionsEnvironmentSecret.d.ts +99 -0
  2. package/actionsEnvironmentSecret.js +68 -24
  3. package/actionsEnvironmentSecret.js.map +1 -1
  4. package/actionsOrganizationPermissions.d.ts +74 -1
  5. package/actionsOrganizationPermissions.js +58 -22
  6. package/actionsOrganizationPermissions.js.map +1 -1
  7. package/actionsOrganizationSecret.d.ts +110 -0
  8. package/actionsOrganizationSecret.js +76 -24
  9. package/actionsOrganizationSecret.js.map +1 -1
  10. package/actionsOrganizationSecretRepositories.d.ts +47 -0
  11. package/actionsOrganizationSecretRepositories.js +51 -22
  12. package/actionsOrganizationSecretRepositories.js.map +1 -1
  13. package/actionsRepositoryPermissions.d.ts +119 -0
  14. package/actionsRepositoryPermissions.js +91 -0
  15. package/actionsRepositoryPermissions.js.map +1 -0
  16. package/actionsRunnerGroup.d.ts +88 -0
  17. package/actionsRunnerGroup.js +47 -22
  18. package/actionsRunnerGroup.js.map +1 -1
  19. package/actionsSecret.d.ts +70 -0
  20. package/actionsSecret.js +48 -24
  21. package/actionsSecret.js.map +1 -1
  22. package/appInstallationRepositories.d.ts +81 -0
  23. package/appInstallationRepositories.js +78 -0
  24. package/appInstallationRepositories.js.map +1 -0
  25. package/appInstallationRepository.d.ts +53 -0
  26. package/appInstallationRepository.js +57 -22
  27. package/appInstallationRepository.js.map +1 -1
  28. package/branch.d.ts +92 -0
  29. package/branch.js +60 -22
  30. package/branch.js.map +1 -1
  31. package/branchDefault.d.ts +53 -0
  32. package/branchDefault.js +57 -22
  33. package/branchDefault.js.map +1 -1
  34. package/branchProtection.d.ts +175 -4
  35. package/branchProtection.js +83 -22
  36. package/branchProtection.js.map +1 -1
  37. package/branchProtectionV3.d.ts +140 -1
  38. package/branchProtectionV3.js +88 -22
  39. package/branchProtectionV3.js.map +1 -1
  40. package/config/vars.d.ts +1 -1
  41. package/config/vars.js.map +1 -1
  42. package/dependabotOrganizationSecret.js +26 -24
  43. package/dependabotOrganizationSecret.js.map +1 -1
  44. package/dependabotOrganizationSecretRepositories.js +22 -22
  45. package/dependabotOrganizationSecretRepositories.js.map +1 -1
  46. package/dependabotSecret.js +26 -24
  47. package/dependabotSecret.js.map +1 -1
  48. package/emuGroupMapping.d.ts +42 -0
  49. package/emuGroupMapping.js +46 -22
  50. package/emuGroupMapping.js.map +1 -1
  51. package/getActionsOrganizationRegistrationToken.d.ts +31 -0
  52. package/getActionsOrganizationRegistrationToken.js +25 -0
  53. package/getActionsOrganizationRegistrationToken.js.map +1 -0
  54. package/getActionsOrganizationSecrets.d.ts +16 -1
  55. package/getActionsOrganizationSecrets.js +13 -4
  56. package/getActionsOrganizationSecrets.js.map +1 -1
  57. package/getActionsPublicKey.d.ts +42 -0
  58. package/getActionsPublicKey.js +32 -5
  59. package/getActionsPublicKey.js.map +1 -1
  60. package/getActionsRegistrationToken.d.ts +67 -0
  61. package/getActionsRegistrationToken.js +47 -0
  62. package/getActionsRegistrationToken.js.map +1 -0
  63. package/getActionsSecrets.d.ts +47 -1
  64. package/getActionsSecrets.js +30 -5
  65. package/getActionsSecrets.js.map +1 -1
  66. package/getBranch.d.ts +51 -0
  67. package/getBranch.js +32 -5
  68. package/getBranch.js.map +1 -1
  69. package/getCollaborators.d.ts +52 -1
  70. package/getCollaborators.js +32 -5
  71. package/getCollaborators.js.map +1 -1
  72. package/getDependabotOrganizationSecrets.d.ts +28 -0
  73. package/getDependabotOrganizationSecrets.js +25 -0
  74. package/getDependabotOrganizationSecrets.js.map +1 -0
  75. package/getDependabotPublicKey.js +2 -5
  76. package/getDependabotPublicKey.js.map +1 -1
  77. package/getDependabotSecrets.d.ts +76 -0
  78. package/getDependabotSecrets.js +49 -0
  79. package/getDependabotSecrets.js.map +1 -0
  80. package/getExternalGroups.d.ts +18 -1
  81. package/getExternalGroups.js +15 -4
  82. package/getExternalGroups.js.map +1 -1
  83. package/getGithubApp.d.ts +71 -0
  84. package/getGithubApp.js +47 -0
  85. package/getGithubApp.js.map +1 -0
  86. package/getIpRanges.d.ts +84 -0
  87. package/getIpRanges.js +13 -4
  88. package/getIpRanges.js.map +1 -1
  89. package/getMembership.d.ts +59 -0
  90. package/getMembership.js +36 -5
  91. package/getMembership.js.map +1 -1
  92. package/getOrganization.d.ts +58 -0
  93. package/getOrganization.js +30 -5
  94. package/getOrganization.js.map +1 -1
  95. package/getOrganizationIpAllowList.d.ts +31 -0
  96. package/getOrganizationIpAllowList.js +27 -0
  97. package/getOrganizationIpAllowList.js.map +1 -0
  98. package/getOrganizationTeamSyncGroups.d.ts +16 -1
  99. package/getOrganizationTeamSyncGroups.js +13 -4
  100. package/getOrganizationTeamSyncGroups.js.map +1 -1
  101. package/getOrganizationTeams.d.ts +87 -1
  102. package/getOrganizationTeams.js +54 -5
  103. package/getOrganizationTeams.js.map +1 -1
  104. package/getOrganizationWebhooks.d.ts +31 -0
  105. package/getOrganizationWebhooks.js +27 -0
  106. package/getOrganizationWebhooks.js.map +1 -0
  107. package/getRef.d.ts +48 -0
  108. package/getRef.js +32 -5
  109. package/getRef.js.map +1 -1
  110. package/getRelease.d.ts +92 -0
  111. package/getRelease.js +8 -5
  112. package/getRelease.js.map +1 -1
  113. package/getRepositories.d.ts +70 -0
  114. package/getRepositories.js +40 -5
  115. package/getRepositories.js.map +1 -1
  116. package/getRepository.d.ts +142 -4
  117. package/getRepository.js +30 -6
  118. package/getRepository.js.map +1 -1
  119. package/getRepositoryBranches.d.ts +82 -0
  120. package/getRepositoryBranches.js +49 -0
  121. package/getRepositoryBranches.js.map +1 -0
  122. package/getRepositoryDeployKeys.d.ts +64 -0
  123. package/getRepositoryDeployKeys.js +47 -0
  124. package/getRepositoryDeployKeys.js.map +1 -0
  125. package/getRepositoryFile.d.ts +72 -0
  126. package/getRepositoryFile.js +36 -5
  127. package/getRepositoryFile.js.map +1 -1
  128. package/getRepositoryMilestone.d.ts +62 -0
  129. package/getRepositoryMilestone.js +34 -5
  130. package/getRepositoryMilestone.js.map +1 -1
  131. package/getRepositoryPullRequest.d.ts +90 -0
  132. package/getRepositoryPullRequest.js +32 -5
  133. package/getRepositoryPullRequest.js.map +1 -1
  134. package/getRepositoryPullRequests.d.ts +91 -1
  135. package/getRepositoryPullRequests.js +38 -5
  136. package/getRepositoryPullRequests.js.map +1 -1
  137. package/getRepositoryTeams.d.ts +47 -1
  138. package/getRepositoryTeams.js +30 -5
  139. package/getRepositoryTeams.js.map +1 -1
  140. package/getRepositoryWebhooks.d.ts +63 -0
  141. package/getRepositoryWebhooks.js +51 -0
  142. package/getRepositoryWebhooks.js.map +1 -0
  143. package/getTeam.d.ts +79 -0
  144. package/getTeam.js +32 -5
  145. package/getTeam.js.map +1 -1
  146. package/getTree.d.ts +70 -1
  147. package/getTree.js +50 -5
  148. package/getTree.js.map +1 -1
  149. package/getUser.d.ts +102 -0
  150. package/getUser.js +38 -5
  151. package/getUser.js.map +1 -1
  152. package/getUsers.d.ts +55 -0
  153. package/getUsers.js +42 -5
  154. package/getUsers.js.map +1 -1
  155. package/index.d.ts +244 -68
  156. package/index.js +259 -171
  157. package/index.js.map +1 -1
  158. package/issue.d.ts +117 -6
  159. package/issue.js +85 -22
  160. package/issue.js.map +1 -1
  161. package/issueLabel.d.ts +64 -0
  162. package/issueLabel.js +44 -22
  163. package/issueLabel.js.map +1 -1
  164. package/membership.d.ts +49 -0
  165. package/membership.js +49 -21
  166. package/membership.js.map +1 -1
  167. package/organizationBlock.d.ts +21 -0
  168. package/organizationBlock.js +31 -19
  169. package/organizationBlock.js.map +1 -1
  170. package/organizationProject.d.ts +36 -0
  171. package/organizationProject.js +32 -20
  172. package/organizationProject.js.map +1 -1
  173. package/organizationSecurityManager.d.ts +67 -0
  174. package/organizationSecurityManager.js +71 -0
  175. package/organizationSecurityManager.js.map +1 -0
  176. package/organizationSettings.d.ts +394 -0
  177. package/organizationSettings.js +148 -0
  178. package/organizationSettings.js.map +1 -0
  179. package/organizationWebhook.d.ts +65 -1
  180. package/organizationWebhook.js +52 -22
  181. package/organizationWebhook.js.map +1 -1
  182. package/package.json +2 -2
  183. package/package.json.dev +2 -2
  184. package/projectCard.d.ts +87 -0
  185. package/projectCard.js +73 -22
  186. package/projectCard.js.map +1 -1
  187. package/projectColumn.d.ts +31 -0
  188. package/projectColumn.js +35 -22
  189. package/projectColumn.js.map +1 -1
  190. package/provider.d.ts +1 -1
  191. package/provider.js +10 -10
  192. package/provider.js.map +1 -1
  193. package/release.d.ts +194 -0
  194. package/release.js +121 -0
  195. package/release.js.map +1 -0
  196. package/repository.d.ts +396 -4
  197. package/repository.js +72 -22
  198. package/repository.js.map +1 -1
  199. package/repositoryAutolinkReference.d.ts +54 -6
  200. package/repositoryAutolinkReference.js +54 -22
  201. package/repositoryAutolinkReference.js.map +1 -1
  202. package/repositoryCollaborator.d.ts +90 -0
  203. package/repositoryCollaborator.js +64 -22
  204. package/repositoryCollaborator.js.map +1 -1
  205. package/repositoryDeployKey.d.ts +71 -0
  206. package/repositoryDeployKey.js +57 -22
  207. package/repositoryDeployKey.js.map +1 -1
  208. package/repositoryEnvironment.d.ts +63 -1
  209. package/repositoryEnvironment.js +56 -22
  210. package/repositoryEnvironment.js.map +1 -1
  211. package/repositoryFile.d.ts +70 -30
  212. package/repositoryFile.js +59 -22
  213. package/repositoryFile.js.map +1 -1
  214. package/repositoryMilestone.d.ts +81 -3
  215. package/repositoryMilestone.js +49 -22
  216. package/repositoryMilestone.js.map +1 -1
  217. package/repositoryProject.d.ts +52 -0
  218. package/repositoryProject.js +41 -22
  219. package/repositoryProject.js.map +1 -1
  220. package/repositoryPullRequest.d.ts +127 -4
  221. package/repositoryPullRequest.js +40 -22
  222. package/repositoryPullRequest.js.map +1 -1
  223. package/repositoryTagProtection.d.ts +41 -0
  224. package/repositoryTagProtection.js +45 -22
  225. package/repositoryTagProtection.js.map +1 -1
  226. package/repositoryWebhook.d.ts +81 -1
  227. package/repositoryWebhook.js +59 -22
  228. package/repositoryWebhook.js.map +1 -1
  229. package/team.d.ts +100 -0
  230. package/team.js +49 -22
  231. package/team.js.map +1 -1
  232. package/teamMembers.d.ts +60 -1
  233. package/teamMembers.js +62 -22
  234. package/teamMembers.js.map +1 -1
  235. package/teamMembership.d.ts +67 -0
  236. package/teamMembership.js +59 -22
  237. package/teamMembership.js.map +1 -1
  238. package/teamRepository.d.ts +59 -3
  239. package/teamRepository.js +57 -22
  240. package/teamRepository.js.map +1 -1
  241. package/teamSettings.d.ts +119 -0
  242. package/teamSettings.js +99 -0
  243. package/teamSettings.js.map +1 -0
  244. package/teamSyncGroupMapping.d.ts +38 -1
  245. package/teamSyncGroupMapping.js +36 -21
  246. package/teamSyncGroupMapping.js.map +1 -1
  247. package/types/index.js.map +1 -1
  248. package/types/input.d.ts +208 -1
  249. package/types/output.d.ts +555 -1
  250. package/userGpgKey.d.ts +39 -0
  251. package/userGpgKey.js +42 -21
  252. package/userGpgKey.js.map +1 -1
  253. package/userInvitationAccepter.d.ts +30 -0
  254. package/userInvitationAccepter.js +38 -17
  255. package/userInvitationAccepter.js.map +1 -1
  256. package/userSshKey.d.ts +50 -0
  257. package/userSshKey.js +48 -22
  258. package/userSshKey.js.map +1 -1
  259. package/utilities.js +13 -1
  260. package/utilities.js.map +1 -1
@@ -5,7 +5,88 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.BranchProtection = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Protects a GitHub branch.
10
+ *
11
+ * This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as github from "@pulumi/github";
18
+ *
19
+ * const exampleRepository = new github.Repository("exampleRepository", {});
20
+ * const exampleUser = github.getUser({
21
+ * username: "example",
22
+ * });
23
+ * const exampleTeam = new github.Team("exampleTeam", {});
24
+ * // Protect the main branch of the foo repository. Additionally, require that
25
+ * // the "ci/travis" context to be passing and only allow the engineers team merge
26
+ * // to the branch.
27
+ * const exampleBranchProtection = new github.BranchProtection("exampleBranchProtection", {
28
+ * repositoryId: exampleRepository.nodeId,
29
+ * pattern: "main",
30
+ * enforceAdmins: true,
31
+ * allowsDeletions: true,
32
+ * requiredStatusChecks: [{
33
+ * strict: false,
34
+ * contexts: ["ci/travis"],
35
+ * }],
36
+ * requiredPullRequestReviews: [{
37
+ * dismissStaleReviews: true,
38
+ * restrictDismissals: true,
39
+ * dismissalRestrictions: [
40
+ * exampleUser.then(exampleUser => exampleUser.nodeId),
41
+ * exampleTeam.nodeId,
42
+ * "/exampleuser",
43
+ * "exampleorganization/exampleteam",
44
+ * ],
45
+ * }],
46
+ * pushRestrictions: [
47
+ * exampleUser.then(exampleUser => exampleUser.nodeId),
48
+ * "/exampleuser",
49
+ * "exampleorganization/exampleteam",
50
+ * ],
51
+ * });
52
+ * const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
53
+ * teamId: exampleTeam.id,
54
+ * repository: exampleRepository.name,
55
+ * permission: "pull",
56
+ * });
57
+ * ```
58
+ *
59
+ * ## Import
60
+ *
61
+ * GitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.
62
+ *
63
+ * ```sh
64
+ * $ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main
65
+ * ```
66
+ */
8
67
  class BranchProtection extends pulumi.CustomResource {
68
+ /**
69
+ * Get an existing BranchProtection resource's state with the given name, ID, and optional extra
70
+ * properties used to qualify the lookup.
71
+ *
72
+ * @param name The _unique_ name of the resulting resource.
73
+ * @param id The _unique_ provider ID of the resource to lookup.
74
+ * @param state Any extra arguments used during the lookup.
75
+ * @param opts Optional settings to control the behavior of the CustomResource.
76
+ */
77
+ static get(name, id, state, opts) {
78
+ return new BranchProtection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
79
+ }
80
+ /**
81
+ * Returns true if the given object is an instance of BranchProtection. This is designed to work even
82
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
83
+ */
84
+ static isInstance(obj) {
85
+ if (obj === undefined || obj === null) {
86
+ return false;
87
+ }
88
+ return obj['__pulumiType'] === BranchProtection.__pulumiType;
89
+ }
9
90
  constructor(name, argsOrState, opts) {
10
91
  let resourceInputs = {};
11
92
  opts = opts || {};
@@ -15,6 +96,7 @@ class BranchProtection extends pulumi.CustomResource {
15
96
  resourceInputs["allowsForcePushes"] = state ? state.allowsForcePushes : undefined;
16
97
  resourceInputs["blocksCreations"] = state ? state.blocksCreations : undefined;
17
98
  resourceInputs["enforceAdmins"] = state ? state.enforceAdmins : undefined;
99
+ resourceInputs["lockBranch"] = state ? state.lockBranch : undefined;
18
100
  resourceInputs["pattern"] = state ? state.pattern : undefined;
19
101
  resourceInputs["pushRestrictions"] = state ? state.pushRestrictions : undefined;
20
102
  resourceInputs["repositoryId"] = state ? state.repositoryId : undefined;
@@ -36,6 +118,7 @@ class BranchProtection extends pulumi.CustomResource {
36
118
  resourceInputs["allowsForcePushes"] = args ? args.allowsForcePushes : undefined;
37
119
  resourceInputs["blocksCreations"] = args ? args.blocksCreations : undefined;
38
120
  resourceInputs["enforceAdmins"] = args ? args.enforceAdmins : undefined;
121
+ resourceInputs["lockBranch"] = args ? args.lockBranch : undefined;
39
122
  resourceInputs["pattern"] = args ? args.pattern : undefined;
40
123
  resourceInputs["pushRestrictions"] = args ? args.pushRestrictions : undefined;
41
124
  resourceInputs["repositoryId"] = args ? args.repositoryId : undefined;
@@ -48,28 +131,6 @@ class BranchProtection extends pulumi.CustomResource {
48
131
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
49
132
  super(BranchProtection.__pulumiType, name, resourceInputs, opts);
50
133
  }
51
- /**
52
- * Get an existing BranchProtection resource's state with the given name, ID, and optional extra
53
- * properties used to qualify the lookup.
54
- *
55
- * @param name The _unique_ name of the resulting resource.
56
- * @param id The _unique_ provider ID of the resource to lookup.
57
- * @param state Any extra arguments used during the lookup.
58
- * @param opts Optional settings to control the behavior of the CustomResource.
59
- */
60
- static get(name, id, state, opts) {
61
- return new BranchProtection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
62
- }
63
- /**
64
- * Returns true if the given object is an instance of BranchProtection. This is designed to work even
65
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
- */
67
- static isInstance(obj) {
68
- if (obj === undefined || obj === null) {
69
- return false;
70
- }
71
- return obj['__pulumiType'] === BranchProtection.__pulumiType;
72
- }
73
134
  }
74
135
  exports.BranchProtection = BranchProtection;
75
136
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAoDvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,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AI,CAAC,0BAA0B,CAAC,CAAC,CAAC,SAAS,CAAC;YAClG,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,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAnIL,4CAoIC;AAtHG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
@@ -1,5 +1,72 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Protects a GitHub branch.
6
+ *
7
+ * The `github.BranchProtection` resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.
8
+ *
9
+ * This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as github from "@pulumi/github";
16
+ *
17
+ * // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.
18
+ * const example = new github.BranchProtectionV3("example", {
19
+ * repository: github_repository.example.name,
20
+ * branch: "main",
21
+ * restrictions: {
22
+ * users: ["foo-user"],
23
+ * },
24
+ * });
25
+ * ```
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as github from "@pulumi/github";
30
+ *
31
+ * const exampleRepository = new github.Repository("exampleRepository", {});
32
+ * const exampleTeam = new github.Team("exampleTeam", {});
33
+ * // Protect the main branch of the foo repository. Additionally, require that
34
+ * // the "ci/travis" context to be passing and only allow the engineers team merge
35
+ * // to the branch.
36
+ * const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
37
+ * repository: exampleRepository.name,
38
+ * branch: "main",
39
+ * enforceAdmins: true,
40
+ * requiredStatusChecks: {
41
+ * strict: false,
42
+ * contexts: ["ci/travis"],
43
+ * },
44
+ * requiredPullRequestReviews: {
45
+ * dismissStaleReviews: true,
46
+ * dismissalUsers: ["foo-user"],
47
+ * dismissalTeams: [exampleTeam.slug],
48
+ * },
49
+ * restrictions: {
50
+ * users: ["foo-user"],
51
+ * teams: [exampleTeam.slug],
52
+ * apps: ["foo-app"],
53
+ * },
54
+ * });
55
+ * const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
56
+ * teamId: exampleTeam.id,
57
+ * repository: exampleRepository.name,
58
+ * permission: "pull",
59
+ * });
60
+ * ```
61
+ *
62
+ * ## Import
63
+ *
64
+ * GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
65
+ *
66
+ * ```sh
67
+ * $ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main
68
+ * ```
69
+ */
3
70
  export declare class BranchProtectionV3 extends pulumi.CustomResource {
4
71
  /**
5
72
  * Get an existing BranchProtectionV3 resource's state with the given name, ID, and optional extra
@@ -16,14 +83,38 @@ export declare class BranchProtectionV3 extends pulumi.CustomResource {
16
83
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
17
84
  */
18
85
  static isInstance(obj: any): obj is BranchProtectionV3;
86
+ /**
87
+ * The Git branch to protect.
88
+ */
19
89
  readonly branch: pulumi.Output<string>;
90
+ /**
91
+ * Boolean, setting this to `true` enforces status checks for repository administrators.
92
+ */
20
93
  readonly enforceAdmins: pulumi.Output<boolean | undefined>;
21
94
  readonly etag: pulumi.Output<string>;
95
+ /**
96
+ * The GitHub repository name.
97
+ */
22
98
  readonly repository: pulumi.Output<string>;
99
+ /**
100
+ * Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
101
+ */
23
102
  readonly requireConversationResolution: pulumi.Output<boolean | undefined>;
103
+ /**
104
+ * Boolean, setting this to `true` requires all commits to be signed with GPG.
105
+ */
24
106
  readonly requireSignedCommits: pulumi.Output<boolean | undefined>;
107
+ /**
108
+ * Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
109
+ */
25
110
  readonly requiredPullRequestReviews: pulumi.Output<outputs.BranchProtectionV3RequiredPullRequestReviews | undefined>;
111
+ /**
112
+ * Enforce restrictions for required status checks. See Required Status Checks below for details.
113
+ */
26
114
  readonly requiredStatusChecks: pulumi.Output<outputs.BranchProtectionV3RequiredStatusChecks | undefined>;
115
+ /**
116
+ * Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
117
+ */
27
118
  readonly restrictions: pulumi.Output<outputs.BranchProtectionV3Restrictions | undefined>;
28
119
  /**
29
120
  * Create a BranchProtectionV3 resource with the given unique name, arguments, and options.
@@ -38,26 +129,74 @@ export declare class BranchProtectionV3 extends pulumi.CustomResource {
38
129
  * Input properties used for looking up and filtering BranchProtectionV3 resources.
39
130
  */
40
131
  export interface BranchProtectionV3State {
132
+ /**
133
+ * The Git branch to protect.
134
+ */
41
135
  branch?: pulumi.Input<string>;
136
+ /**
137
+ * Boolean, setting this to `true` enforces status checks for repository administrators.
138
+ */
42
139
  enforceAdmins?: pulumi.Input<boolean>;
43
140
  etag?: pulumi.Input<string>;
141
+ /**
142
+ * The GitHub repository name.
143
+ */
44
144
  repository?: pulumi.Input<string>;
145
+ /**
146
+ * Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
147
+ */
45
148
  requireConversationResolution?: pulumi.Input<boolean>;
149
+ /**
150
+ * Boolean, setting this to `true` requires all commits to be signed with GPG.
151
+ */
46
152
  requireSignedCommits?: pulumi.Input<boolean>;
153
+ /**
154
+ * Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
155
+ */
47
156
  requiredPullRequestReviews?: pulumi.Input<inputs.BranchProtectionV3RequiredPullRequestReviews>;
157
+ /**
158
+ * Enforce restrictions for required status checks. See Required Status Checks below for details.
159
+ */
48
160
  requiredStatusChecks?: pulumi.Input<inputs.BranchProtectionV3RequiredStatusChecks>;
161
+ /**
162
+ * Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
163
+ */
49
164
  restrictions?: pulumi.Input<inputs.BranchProtectionV3Restrictions>;
50
165
  }
51
166
  /**
52
167
  * The set of arguments for constructing a BranchProtectionV3 resource.
53
168
  */
54
169
  export interface BranchProtectionV3Args {
170
+ /**
171
+ * The Git branch to protect.
172
+ */
55
173
  branch: pulumi.Input<string>;
174
+ /**
175
+ * Boolean, setting this to `true` enforces status checks for repository administrators.
176
+ */
56
177
  enforceAdmins?: pulumi.Input<boolean>;
178
+ /**
179
+ * The GitHub repository name.
180
+ */
57
181
  repository: pulumi.Input<string>;
182
+ /**
183
+ * Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
184
+ */
58
185
  requireConversationResolution?: pulumi.Input<boolean>;
186
+ /**
187
+ * Boolean, setting this to `true` requires all commits to be signed with GPG.
188
+ */
59
189
  requireSignedCommits?: pulumi.Input<boolean>;
190
+ /**
191
+ * Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
192
+ */
60
193
  requiredPullRequestReviews?: pulumi.Input<inputs.BranchProtectionV3RequiredPullRequestReviews>;
194
+ /**
195
+ * Enforce restrictions for required status checks. See Required Status Checks below for details.
196
+ */
61
197
  requiredStatusChecks?: pulumi.Input<inputs.BranchProtectionV3RequiredStatusChecks>;
198
+ /**
199
+ * Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
200
+ */
62
201
  restrictions?: pulumi.Input<inputs.BranchProtectionV3Restrictions>;
63
202
  }
@@ -5,7 +5,95 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.BranchProtectionV3 = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Protects a GitHub branch.
10
+ *
11
+ * The `github.BranchProtection` resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.
12
+ *
13
+ * This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as github from "@pulumi/github";
20
+ *
21
+ * // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.
22
+ * const example = new github.BranchProtectionV3("example", {
23
+ * repository: github_repository.example.name,
24
+ * branch: "main",
25
+ * restrictions: {
26
+ * users: ["foo-user"],
27
+ * },
28
+ * });
29
+ * ```
30
+ *
31
+ * ```typescript
32
+ * import * as pulumi from "@pulumi/pulumi";
33
+ * import * as github from "@pulumi/github";
34
+ *
35
+ * const exampleRepository = new github.Repository("exampleRepository", {});
36
+ * const exampleTeam = new github.Team("exampleTeam", {});
37
+ * // Protect the main branch of the foo repository. Additionally, require that
38
+ * // the "ci/travis" context to be passing and only allow the engineers team merge
39
+ * // to the branch.
40
+ * const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
41
+ * repository: exampleRepository.name,
42
+ * branch: "main",
43
+ * enforceAdmins: true,
44
+ * requiredStatusChecks: {
45
+ * strict: false,
46
+ * contexts: ["ci/travis"],
47
+ * },
48
+ * requiredPullRequestReviews: {
49
+ * dismissStaleReviews: true,
50
+ * dismissalUsers: ["foo-user"],
51
+ * dismissalTeams: [exampleTeam.slug],
52
+ * },
53
+ * restrictions: {
54
+ * users: ["foo-user"],
55
+ * teams: [exampleTeam.slug],
56
+ * apps: ["foo-app"],
57
+ * },
58
+ * });
59
+ * const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
60
+ * teamId: exampleTeam.id,
61
+ * repository: exampleRepository.name,
62
+ * permission: "pull",
63
+ * });
64
+ * ```
65
+ *
66
+ * ## Import
67
+ *
68
+ * GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
69
+ *
70
+ * ```sh
71
+ * $ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main
72
+ * ```
73
+ */
8
74
  class BranchProtectionV3 extends pulumi.CustomResource {
75
+ /**
76
+ * Get an existing BranchProtectionV3 resource's state with the given name, ID, and optional extra
77
+ * properties used to qualify the lookup.
78
+ *
79
+ * @param name The _unique_ name of the resulting resource.
80
+ * @param id The _unique_ provider ID of the resource to lookup.
81
+ * @param state Any extra arguments used during the lookup.
82
+ * @param opts Optional settings to control the behavior of the CustomResource.
83
+ */
84
+ static get(name, id, state, opts) {
85
+ return new BranchProtectionV3(name, state, Object.assign(Object.assign({}, opts), { id: id }));
86
+ }
87
+ /**
88
+ * Returns true if the given object is an instance of BranchProtectionV3. This is designed to work even
89
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
90
+ */
91
+ static isInstance(obj) {
92
+ if (obj === undefined || obj === null) {
93
+ return false;
94
+ }
95
+ return obj['__pulumiType'] === BranchProtectionV3.__pulumiType;
96
+ }
9
97
  constructor(name, argsOrState, opts) {
10
98
  let resourceInputs = {};
11
99
  opts = opts || {};
@@ -42,28 +130,6 @@ class BranchProtectionV3 extends pulumi.CustomResource {
42
130
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
43
131
  super(BranchProtectionV3.__pulumiType, name, resourceInputs, opts);
44
132
  }
45
- /**
46
- * Get an existing BranchProtectionV3 resource's state with the given name, ID, and optional extra
47
- * properties used to qualify the lookup.
48
- *
49
- * @param name The _unique_ name of the resulting resource.
50
- * @param id The _unique_ provider ID of the resource to lookup.
51
- * @param state Any extra arguments used during the lookup.
52
- * @param opts Optional settings to control the behavior of the CustomResource.
53
- */
54
- static get(name, id, state, opts) {
55
- return new BranchProtectionV3(name, state, Object.assign(Object.assign({}, opts), { id: id }));
56
- }
57
- /**
58
- * Returns true if the given object is an instance of BranchProtectionV3. This is designed to work even
59
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
- */
61
- static isInstance(obj) {
62
- if (obj === undefined || obj === null) {
63
- return false;
64
- }
65
- return obj['__pulumiType'] === BranchProtectionV3.__pulumiType;
66
- }
67
133
  }
68
134
  exports.BranchProtectionV3 = BranchProtectionV3;
69
135
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"branchProtectionV3.js","sourceRoot":"","sources":["../branchProtectionV3.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA8CzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,+BAA+B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1G,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SA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,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,+BAA+B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,CAAC,SAAS,CAAC;YACxG,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,SAAS,CAAC;YAClG,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,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,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAxGL,gDAyGC;AA3FG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
package/config/vars.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { output as outputs } from "../types";
1
+ import * as outputs from "../types/output";
2
2
  /**
3
3
  * The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token`
4
4
  * and `app_auth` are not set.
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAy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AAG,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE;IACpC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,aAAa,CAAC,CAAC;IACrD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE;IACpC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE;IAC3C,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,cAAc,CAAC,CAAC;IACtD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -6,6 +6,28 @@ exports.DependabotOrganizationSecret = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  class DependabotOrganizationSecret extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing DependabotOrganizationSecret resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new DependabotOrganizationSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of DependabotOrganizationSecret. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === DependabotOrganizationSecret.__pulumiType;
30
+ }
9
31
  constructor(name, argsOrState, opts) {
10
32
  let resourceInputs = {};
11
33
  opts = opts || {};
@@ -27,8 +49,8 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
27
49
  if ((!args || args.visibility === undefined) && !opts.urn) {
28
50
  throw new Error("Missing required property 'visibility'");
29
51
  }
30
- resourceInputs["encryptedValue"] = args ? args.encryptedValue : undefined;
31
- resourceInputs["plaintextValue"] = args ? args.plaintextValue : undefined;
52
+ resourceInputs["encryptedValue"] = (args === null || args === void 0 ? void 0 : args.encryptedValue) ? pulumi.secret(args.encryptedValue) : undefined;
53
+ resourceInputs["plaintextValue"] = (args === null || args === void 0 ? void 0 : args.plaintextValue) ? pulumi.secret(args.plaintextValue) : undefined;
32
54
  resourceInputs["secretName"] = args ? args.secretName : undefined;
33
55
  resourceInputs["selectedRepositoryIds"] = args ? args.selectedRepositoryIds : undefined;
34
56
  resourceInputs["visibility"] = args ? args.visibility : undefined;
@@ -36,30 +58,10 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
36
58
  resourceInputs["updatedAt"] = undefined /*out*/;
37
59
  }
38
60
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
61
+ const secretOpts = { additionalSecretOutputs: ["encryptedValue", "plaintextValue"] };
62
+ opts = pulumi.mergeOptions(opts, secretOpts);
39
63
  super(DependabotOrganizationSecret.__pulumiType, name, resourceInputs, opts);
40
64
  }
41
- /**
42
- * Get an existing DependabotOrganizationSecret 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 DependabotOrganizationSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
52
- }
53
- /**
54
- * Returns true if the given object is an instance of DependabotOrganizationSecret. 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'] === DependabotOrganizationSecret.__pulumiType;
62
- }
63
65
  }
64
66
  exports.DependabotOrganizationSecret = DependabotOrganizationSecret;
65
67
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"dependabotOrganizationSecret.js","sourceRoot":"","sources":["../dependabotOrganizationSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IA4CnE,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4D,CAAC;YAC3E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,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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,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AA5EL,oEA6EC;AA/DG,gBAAgB;AACO,yCAAY,GAAG,wEAAwE,CAAC"}
@@ -6,28 +6,6 @@ exports.DependabotOrganizationSecretRepositories = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
9
- constructor(name, argsOrState, opts) {
10
- let resourceInputs = {};
11
- opts = opts || {};
12
- if (opts.id) {
13
- const state = argsOrState;
14
- resourceInputs["secretName"] = state ? state.secretName : undefined;
15
- resourceInputs["selectedRepositoryIds"] = state ? state.selectedRepositoryIds : undefined;
16
- }
17
- else {
18
- const args = argsOrState;
19
- if ((!args || args.secretName === undefined) && !opts.urn) {
20
- throw new Error("Missing required property 'secretName'");
21
- }
22
- if ((!args || args.selectedRepositoryIds === undefined) && !opts.urn) {
23
- throw new Error("Missing required property 'selectedRepositoryIds'");
24
- }
25
- resourceInputs["secretName"] = args ? args.secretName : undefined;
26
- resourceInputs["selectedRepositoryIds"] = args ? args.selectedRepositoryIds : undefined;
27
- }
28
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
29
- super(DependabotOrganizationSecretRepositories.__pulumiType, name, resourceInputs, opts);
30
- }
31
9
  /**
32
10
  * Get an existing DependabotOrganizationSecretRepositories resource's state with the given name, ID, and optional extra
33
11
  * properties used to qualify the lookup.
@@ -50,6 +28,28 @@ class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
50
28
  }
51
29
  return obj['__pulumiType'] === DependabotOrganizationSecretRepositories.__pulumiType;
52
30
  }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["secretName"] = state ? state.secretName : undefined;
37
+ resourceInputs["selectedRepositoryIds"] = state ? state.selectedRepositoryIds : undefined;
38
+ }
39
+ else {
40
+ const args = argsOrState;
41
+ if ((!args || args.secretName === undefined) && !opts.urn) {
42
+ throw new Error("Missing required property 'secretName'");
43
+ }
44
+ if ((!args || args.selectedRepositoryIds === undefined) && !opts.urn) {
45
+ throw new Error("Missing required property 'selectedRepositoryIds'");
46
+ }
47
+ resourceInputs["secretName"] = args ? args.secretName : undefined;
48
+ resourceInputs["selectedRepositoryIds"] = args ? args.selectedRepositoryIds : undefined;
49
+ }
50
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
51
+ super(DependabotOrganizationSecretRepositories.__pulumiType, name, resourceInputs, opts);
52
+ }
53
53
  }
54
54
  exports.DependabotOrganizationSecretRepositories = DependabotOrganizationSecretRepositories;
55
55
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAuC/E,YAAY,IAAY,EAAE,WAA0G,EAAE,IAAmC;QACrK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwE,CAAC;YACvF,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAA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I,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,wCAAwC,CAAC,YAAY,CAAC;IACzF,CAAC;;AA1BL,4FA4DC;AA9CG,gBAAgB;AACO,qDAAY,GAAG,gGAAgG,CAAC"}
1
+ {"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/F,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,wCAAwC,CAAC,YAAY,CAAC;IACzF,CAAC;IAaD,YAAY,IAAY,EAAE,WAA0G,EAAE,IAAmC;QACrK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwE,CAAC;YACvF,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,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