@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.
Files changed (254) hide show
  1. package/actionsEnvironmentSecret.d.ts +99 -0
  2. package/actionsEnvironmentSecret.js +64 -22
  3. package/actionsEnvironmentSecret.js.map +1 -1
  4. package/actionsOrganizationPermissions.d.ts +72 -0
  5. package/actionsOrganizationPermissions.js +58 -22
  6. package/actionsOrganizationPermissions.js.map +1 -1
  7. package/actionsOrganizationSecret.d.ts +110 -0
  8. package/actionsOrganizationSecret.js +72 -22
  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 +44 -22
  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 +173 -3
  35. package/branchProtection.js +83 -22
  36. package/branchProtection.js.map +1 -1
  37. package/branchProtectionV3.d.ts +138 -0
  38. package/branchProtectionV3.js +88 -22
  39. package/branchProtectionV3.js.map +1 -1
  40. package/dependabotOrganizationSecret.js +22 -22
  41. package/dependabotOrganizationSecret.js.map +1 -1
  42. package/dependabotOrganizationSecretRepositories.js +22 -22
  43. package/dependabotOrganizationSecretRepositories.js.map +1 -1
  44. package/dependabotSecret.js +22 -22
  45. package/dependabotSecret.js.map +1 -1
  46. package/emuGroupMapping.d.ts +42 -0
  47. package/emuGroupMapping.js +46 -22
  48. package/emuGroupMapping.js.map +1 -1
  49. package/getActionsOrganizationRegistrationToken.d.ts +31 -0
  50. package/getActionsOrganizationRegistrationToken.js +25 -0
  51. package/getActionsOrganizationRegistrationToken.js.map +1 -0
  52. package/getActionsOrganizationSecrets.d.ts +15 -0
  53. package/getActionsOrganizationSecrets.js +13 -4
  54. package/getActionsOrganizationSecrets.js.map +1 -1
  55. package/getActionsPublicKey.d.ts +42 -0
  56. package/getActionsPublicKey.js +32 -5
  57. package/getActionsPublicKey.js.map +1 -1
  58. package/getActionsRegistrationToken.d.ts +67 -0
  59. package/getActionsRegistrationToken.js +47 -0
  60. package/getActionsRegistrationToken.js.map +1 -0
  61. package/getActionsSecrets.d.ts +46 -0
  62. package/getActionsSecrets.js +30 -5
  63. package/getActionsSecrets.js.map +1 -1
  64. package/getBranch.d.ts +51 -0
  65. package/getBranch.js +32 -5
  66. package/getBranch.js.map +1 -1
  67. package/getCollaborators.d.ts +51 -0
  68. package/getCollaborators.js +32 -5
  69. package/getCollaborators.js.map +1 -1
  70. package/getDependabotOrganizationSecrets.d.ts +15 -0
  71. package/getDependabotOrganizationSecrets.js +13 -4
  72. package/getDependabotOrganizationSecrets.js.map +1 -1
  73. package/getDependabotPublicKey.js +2 -5
  74. package/getDependabotPublicKey.js.map +1 -1
  75. package/getDependabotSecrets.d.ts +46 -0
  76. package/getDependabotSecrets.js +30 -5
  77. package/getDependabotSecrets.js.map +1 -1
  78. package/getExternalGroups.d.ts +17 -0
  79. package/getExternalGroups.js +15 -4
  80. package/getExternalGroups.js.map +1 -1
  81. package/getGithubApp.d.ts +43 -0
  82. package/getGithubApp.js +30 -5
  83. package/getGithubApp.js.map +1 -1
  84. package/getIpRanges.d.ts +84 -0
  85. package/getIpRanges.js +13 -4
  86. package/getIpRanges.js.map +1 -1
  87. package/getMembership.d.ts +58 -0
  88. package/getMembership.js +36 -5
  89. package/getMembership.js.map +1 -1
  90. package/getOrganization.d.ts +58 -0
  91. package/getOrganization.js +30 -5
  92. package/getOrganization.js.map +1 -1
  93. package/getOrganizationIpAllowList.d.ts +18 -0
  94. package/getOrganizationIpAllowList.js +15 -4
  95. package/getOrganizationIpAllowList.js.map +1 -1
  96. package/getOrganizationTeamSyncGroups.d.ts +15 -0
  97. package/getOrganizationTeamSyncGroups.js +13 -4
  98. package/getOrganizationTeamSyncGroups.js.map +1 -1
  99. package/getOrganizationTeams.d.ts +80 -0
  100. package/getOrganizationTeams.js +52 -5
  101. package/getOrganizationTeams.js.map +1 -1
  102. package/getOrganizationWebhooks.d.ts +18 -0
  103. package/getOrganizationWebhooks.js +15 -4
  104. package/getOrganizationWebhooks.js.map +1 -1
  105. package/getRef.d.ts +48 -0
  106. package/getRef.js +32 -5
  107. package/getRef.js.map +1 -1
  108. package/getRelease.d.ts +90 -0
  109. package/getRelease.js +8 -5
  110. package/getRelease.js.map +1 -1
  111. package/getRepositories.d.ts +70 -0
  112. package/getRepositories.js +40 -5
  113. package/getRepositories.js.map +1 -1
  114. package/getRepository.d.ts +141 -0
  115. package/getRepository.js +30 -5
  116. package/getRepository.js.map +1 -1
  117. package/getRepositoryBranches.d.ts +49 -0
  118. package/getRepositoryBranches.js +30 -5
  119. package/getRepositoryBranches.js.map +1 -1
  120. package/getRepositoryDeployKeys.d.ts +37 -0
  121. package/getRepositoryDeployKeys.js +30 -5
  122. package/getRepositoryDeployKeys.js.map +1 -1
  123. package/getRepositoryFile.d.ts +72 -0
  124. package/getRepositoryFile.js +36 -5
  125. package/getRepositoryFile.js.map +1 -1
  126. package/getRepositoryMilestone.d.ts +62 -0
  127. package/getRepositoryMilestone.js +34 -5
  128. package/getRepositoryMilestone.js.map +1 -1
  129. package/getRepositoryPullRequest.d.ts +90 -0
  130. package/getRepositoryPullRequest.js +32 -5
  131. package/getRepositoryPullRequest.js.map +1 -1
  132. package/getRepositoryPullRequests.d.ts +90 -0
  133. package/getRepositoryPullRequests.js +38 -5
  134. package/getRepositoryPullRequests.js.map +1 -1
  135. package/getRepositoryTeams.d.ts +46 -0
  136. package/getRepositoryTeams.js +30 -5
  137. package/getRepositoryTeams.js.map +1 -1
  138. package/getRepositoryWebhooks.d.ts +36 -0
  139. package/getRepositoryWebhooks.js +34 -5
  140. package/getRepositoryWebhooks.js.map +1 -1
  141. package/getTeam.d.ts +79 -0
  142. package/getTeam.js +32 -5
  143. package/getTeam.js.map +1 -1
  144. package/getTree.d.ts +69 -0
  145. package/getTree.js +50 -5
  146. package/getTree.js.map +1 -1
  147. package/getUser.d.ts +102 -0
  148. package/getUser.js +38 -5
  149. package/getUser.js.map +1 -1
  150. package/getUsers.d.ts +55 -0
  151. package/getUsers.js +42 -5
  152. package/getUsers.js.map +1 -1
  153. package/index.d.ts +64 -44
  154. package/index.js +33 -3
  155. package/index.js.map +1 -1
  156. package/issue.d.ts +117 -6
  157. package/issue.js +85 -22
  158. package/issue.js.map +1 -1
  159. package/issueLabel.d.ts +64 -0
  160. package/issueLabel.js +44 -22
  161. package/issueLabel.js.map +1 -1
  162. package/membership.d.ts +49 -0
  163. package/membership.js +49 -21
  164. package/membership.js.map +1 -1
  165. package/organizationBlock.d.ts +21 -0
  166. package/organizationBlock.js +31 -19
  167. package/organizationBlock.js.map +1 -1
  168. package/organizationProject.d.ts +36 -0
  169. package/organizationProject.js +32 -20
  170. package/organizationProject.js.map +1 -1
  171. package/organizationSecurityManager.d.ts +67 -0
  172. package/organizationSecurityManager.js +71 -0
  173. package/organizationSecurityManager.js.map +1 -0
  174. package/organizationSettings.d.ts +274 -3
  175. package/organizationSettings.js +68 -22
  176. package/organizationSettings.js.map +1 -1
  177. package/organizationWebhook.d.ts +63 -0
  178. package/organizationWebhook.js +52 -22
  179. package/organizationWebhook.js.map +1 -1
  180. package/package.json +2 -2
  181. package/package.json.dev +2 -2
  182. package/projectCard.d.ts +87 -0
  183. package/projectCard.js +73 -22
  184. package/projectCard.js.map +1 -1
  185. package/projectColumn.d.ts +31 -0
  186. package/projectColumn.js +35 -22
  187. package/projectColumn.js.map +1 -1
  188. package/provider.js +10 -10
  189. package/provider.js.map +1 -1
  190. package/release.d.ts +194 -0
  191. package/release.js +121 -0
  192. package/release.js.map +1 -0
  193. package/repository.d.ts +391 -3
  194. package/repository.js +70 -22
  195. package/repository.js.map +1 -1
  196. package/repositoryAutolinkReference.d.ts +45 -12
  197. package/repositoryAutolinkReference.js +52 -22
  198. package/repositoryAutolinkReference.js.map +1 -1
  199. package/repositoryCollaborator.d.ts +90 -0
  200. package/repositoryCollaborator.js +64 -22
  201. package/repositoryCollaborator.js.map +1 -1
  202. package/repositoryDeployKey.d.ts +71 -0
  203. package/repositoryDeployKey.js +57 -22
  204. package/repositoryDeployKey.js.map +1 -1
  205. package/repositoryEnvironment.d.ts +61 -0
  206. package/repositoryEnvironment.js +56 -22
  207. package/repositoryEnvironment.js.map +1 -1
  208. package/repositoryFile.d.ts +68 -34
  209. package/repositoryFile.js +59 -22
  210. package/repositoryFile.js.map +1 -1
  211. package/repositoryMilestone.d.ts +81 -3
  212. package/repositoryMilestone.js +49 -22
  213. package/repositoryMilestone.js.map +1 -1
  214. package/repositoryProject.d.ts +52 -0
  215. package/repositoryProject.js +41 -22
  216. package/repositoryProject.js.map +1 -1
  217. package/repositoryPullRequest.d.ts +127 -4
  218. package/repositoryPullRequest.js +40 -22
  219. package/repositoryPullRequest.js.map +1 -1
  220. package/repositoryTagProtection.d.ts +41 -0
  221. package/repositoryTagProtection.js +45 -22
  222. package/repositoryTagProtection.js.map +1 -1
  223. package/repositoryWebhook.d.ts +79 -0
  224. package/repositoryWebhook.js +59 -22
  225. package/repositoryWebhook.js.map +1 -1
  226. package/team.d.ts +100 -0
  227. package/team.js +49 -22
  228. package/team.js.map +1 -1
  229. package/teamMembers.d.ts +58 -0
  230. package/teamMembers.js +62 -22
  231. package/teamMembers.js.map +1 -1
  232. package/teamMembership.d.ts +67 -0
  233. package/teamMembership.js +59 -22
  234. package/teamMembership.js.map +1 -1
  235. package/teamRepository.d.ts +59 -3
  236. package/teamRepository.js +57 -22
  237. package/teamRepository.js.map +1 -1
  238. package/teamSettings.d.ts +119 -0
  239. package/teamSettings.js +99 -0
  240. package/teamSettings.js.map +1 -0
  241. package/teamSyncGroupMapping.d.ts +36 -0
  242. package/teamSyncGroupMapping.js +36 -21
  243. package/teamSyncGroupMapping.js.map +1 -1
  244. package/types/input.d.ts +206 -0
  245. package/types/output.d.ts +498 -0
  246. package/userGpgKey.d.ts +39 -0
  247. package/userGpgKey.js +42 -21
  248. package/userGpgKey.js.map +1 -1
  249. package/userInvitationAccepter.d.ts +30 -0
  250. package/userInvitationAccepter.js +38 -17
  251. package/userInvitationAccepter.js.map +1 -1
  252. package/userSshKey.d.ts +50 -0
  253. package/userSshKey.js +48 -22
  254. package/userSshKey.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryPullRequest.js","sourceRoot":"","sources":["../repositoryPullRequest.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA2D5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,gB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AC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,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,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AA3JL,sDA4JC;AA9IG,gBAAgB;AACO,kCAAY,GAAG,0DAA0D,CAAC"}
@@ -1,4 +1,27 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to create and manage a repository tag protection for repositories within your GitHub organization or personal account.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as github from "@pulumi/github";
10
+ *
11
+ * const example = new github.RepositoryTagProtection("example", {
12
+ * pattern: "v*",
13
+ * repository: "example-repository",
14
+ * });
15
+ * ```
16
+ *
17
+ * ## Import
18
+ *
19
+ * Repository tag protections can be imported using the `name` of the repository, combined with the `id` of the tag protection, separated by a `/` character. The `id` of the tag protection can be found using the [GitHub API](https://docs.github.com/en/rest/repos/tags#list-tag-protection-states-for-a-repository). Importing uses the name of the repository, as well as the ID of the tag protection, e.g.
20
+ *
21
+ * ```sh
22
+ * $ pulumi import github:index/repositoryTagProtection:RepositoryTagProtection terraform my-repo/31077
23
+ * ```
24
+ */
2
25
  export declare class RepositoryTagProtection extends pulumi.CustomResource {
3
26
  /**
4
27
  * Get an existing RepositoryTagProtection resource's state with the given name, ID, and optional extra
@@ -15,7 +38,13 @@ export declare class RepositoryTagProtection extends pulumi.CustomResource {
15
38
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
39
  */
17
40
  static isInstance(obj: any): obj is RepositoryTagProtection;
41
+ /**
42
+ * The pattern of the tag to protect.
43
+ */
18
44
  readonly pattern: pulumi.Output<string>;
45
+ /**
46
+ * Name of the repository to add the tag protection to.
47
+ */
19
48
  readonly repository: pulumi.Output<string>;
20
49
  readonly tagProtectionId: pulumi.Output<number>;
21
50
  /**
@@ -31,7 +60,13 @@ export declare class RepositoryTagProtection extends pulumi.CustomResource {
31
60
  * Input properties used for looking up and filtering RepositoryTagProtection resources.
32
61
  */
33
62
  export interface RepositoryTagProtectionState {
63
+ /**
64
+ * The pattern of the tag to protect.
65
+ */
34
66
  pattern?: pulumi.Input<string>;
67
+ /**
68
+ * Name of the repository to add the tag protection to.
69
+ */
35
70
  repository?: pulumi.Input<string>;
36
71
  tagProtectionId?: pulumi.Input<number>;
37
72
  }
@@ -39,6 +74,12 @@ export interface RepositoryTagProtectionState {
39
74
  * The set of arguments for constructing a RepositoryTagProtection resource.
40
75
  */
41
76
  export interface RepositoryTagProtectionArgs {
77
+ /**
78
+ * The pattern of the tag to protect.
79
+ */
42
80
  pattern: pulumi.Input<string>;
81
+ /**
82
+ * Name of the repository to add the tag protection to.
83
+ */
43
84
  repository: pulumi.Input<string>;
44
85
  }
@@ -5,7 +5,52 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryTagProtection = 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 a repository tag protection for repositories within your GitHub organization or personal account.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as github from "@pulumi/github";
16
+ *
17
+ * const example = new github.RepositoryTagProtection("example", {
18
+ * pattern: "v*",
19
+ * repository: "example-repository",
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * Repository tag protections can be imported using the `name` of the repository, combined with the `id` of the tag protection, separated by a `/` character. The `id` of the tag protection can be found using the [GitHub API](https://docs.github.com/en/rest/repos/tags#list-tag-protection-states-for-a-repository). Importing uses the name of the repository, as well as the ID of the tag protection, e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import github:index/repositoryTagProtection:RepositoryTagProtection terraform my-repo/31077
29
+ * ```
30
+ */
8
31
  class RepositoryTagProtection extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing RepositoryTagProtection resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new RepositoryTagProtection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
43
+ }
44
+ /**
45
+ * Returns true if the given object is an instance of RepositoryTagProtection. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj) {
49
+ if (obj === undefined || obj === null) {
50
+ return false;
51
+ }
52
+ return obj['__pulumiType'] === RepositoryTagProtection.__pulumiType;
53
+ }
9
54
  constructor(name, argsOrState, opts) {
10
55
  let resourceInputs = {};
11
56
  opts = opts || {};
@@ -30,28 +75,6 @@ class RepositoryTagProtection extends pulumi.CustomResource {
30
75
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
31
76
  super(RepositoryTagProtection.__pulumiType, name, resourceInputs, opts);
32
77
  }
33
- /**
34
- * Get an existing RepositoryTagProtection 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 RepositoryTagProtection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
- }
45
- /**
46
- * Returns true if the given object is an instance of RepositoryTagProtection. 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'] === RepositoryTagProtection.__pulumiType;
54
- }
55
78
  }
56
79
  exports.RepositoryTagProtection = RepositoryTagProtection;
57
80
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryTagProtection.js","sourceRoot":"","sources":["../repositoryTagProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAwC9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,CAAC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,CAAC;SACjF;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AApEL,0DAqEC;AAvDG,gBAAgB;AACO,oCAAY,GAAG,8DAA8D,CAAC"}
@@ -1,6 +1,43 @@
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 webhooks for 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 repo = new github.Repository("repo", {
15
+ * description: "Terraform acceptance tests",
16
+ * homepageUrl: "http://example.com/",
17
+ * "private": false,
18
+ * });
19
+ * const foo = new github.RepositoryWebhook("foo", {
20
+ * repository: repo.name,
21
+ * configuration: {
22
+ * url: "https://google.de/",
23
+ * contentType: "form",
24
+ * insecureSsl: false,
25
+ * },
26
+ * active: false,
27
+ * events: ["issues"],
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * Repository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character. The `id` of the webhook can be found in the URL of the webhook. For example`"https://github.com/foo-org/foo-repo/settings/hooks/14711452"`. Importing uses the name of the repository, as well as the ID of the webhook, e.g.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import github:index/repositoryWebhook:RepositoryWebhook terraform terraform/11235813
37
+ * ```
38
+ *
39
+ * If secret is populated in the webhook's configuration, the value will be imported as "********".
40
+ */
4
41
  export declare class RepositoryWebhook extends pulumi.CustomResource {
5
42
  /**
6
43
  * Get an existing RepositoryWebhook resource's state with the given name, ID, and optional extra
@@ -17,11 +54,26 @@ export declare class RepositoryWebhook extends pulumi.CustomResource {
17
54
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
55
  */
19
56
  static isInstance(obj: any): obj is RepositoryWebhook;
57
+ /**
58
+ * Indicate if the webhook should receive events. Defaults to `true`.
59
+ */
20
60
  readonly active: pulumi.Output<boolean | undefined>;
61
+ /**
62
+ * Configuration block for the webhook. Detailed below.
63
+ */
21
64
  readonly configuration: pulumi.Output<outputs.RepositoryWebhookConfiguration | undefined>;
22
65
  readonly etag: pulumi.Output<string>;
66
+ /**
67
+ * A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
68
+ */
23
69
  readonly events: pulumi.Output<string[]>;
70
+ /**
71
+ * The repository of the webhook.
72
+ */
24
73
  readonly repository: pulumi.Output<string>;
74
+ /**
75
+ * The URL of the webhook.
76
+ */
25
77
  readonly url: pulumi.Output<string>;
26
78
  /**
27
79
  * Create a RepositoryWebhook resource with the given unique name, arguments, and options.
@@ -36,19 +88,46 @@ export declare class RepositoryWebhook extends pulumi.CustomResource {
36
88
  * Input properties used for looking up and filtering RepositoryWebhook resources.
37
89
  */
38
90
  export interface RepositoryWebhookState {
91
+ /**
92
+ * Indicate if the webhook should receive events. Defaults to `true`.
93
+ */
39
94
  active?: pulumi.Input<boolean>;
95
+ /**
96
+ * Configuration block for the webhook. Detailed below.
97
+ */
40
98
  configuration?: pulumi.Input<inputs.RepositoryWebhookConfiguration>;
41
99
  etag?: pulumi.Input<string>;
100
+ /**
101
+ * A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
102
+ */
42
103
  events?: pulumi.Input<pulumi.Input<string>[]>;
104
+ /**
105
+ * The repository of the webhook.
106
+ */
43
107
  repository?: pulumi.Input<string>;
108
+ /**
109
+ * The URL of the webhook.
110
+ */
44
111
  url?: pulumi.Input<string>;
45
112
  }
46
113
  /**
47
114
  * The set of arguments for constructing a RepositoryWebhook resource.
48
115
  */
49
116
  export interface RepositoryWebhookArgs {
117
+ /**
118
+ * Indicate if the webhook should receive events. Defaults to `true`.
119
+ */
50
120
  active?: pulumi.Input<boolean>;
121
+ /**
122
+ * Configuration block for the webhook. Detailed below.
123
+ */
51
124
  configuration?: pulumi.Input<inputs.RepositoryWebhookConfiguration>;
125
+ /**
126
+ * A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
127
+ */
52
128
  events: pulumi.Input<pulumi.Input<string>[]>;
129
+ /**
130
+ * The repository of the webhook.
131
+ */
53
132
  repository: pulumi.Input<string>;
54
133
  }
@@ -5,7 +5,66 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryWebhook = 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 webhooks for 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 repo = new github.Repository("repo", {
19
+ * description: "Terraform acceptance tests",
20
+ * homepageUrl: "http://example.com/",
21
+ * "private": false,
22
+ * });
23
+ * const foo = new github.RepositoryWebhook("foo", {
24
+ * repository: repo.name,
25
+ * configuration: {
26
+ * url: "https://google.de/",
27
+ * contentType: "form",
28
+ * insecureSsl: false,
29
+ * },
30
+ * active: false,
31
+ * events: ["issues"],
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * Repository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character. The `id` of the webhook can be found in the URL of the webhook. For example`"https://github.com/foo-org/foo-repo/settings/hooks/14711452"`. Importing uses the name of the repository, as well as the ID of the webhook, e.g.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import github:index/repositoryWebhook:RepositoryWebhook terraform terraform/11235813
41
+ * ```
42
+ *
43
+ * If secret is populated in the webhook's configuration, the value will be imported as "********".
44
+ */
8
45
  class RepositoryWebhook extends pulumi.CustomResource {
46
+ /**
47
+ * Get an existing RepositoryWebhook resource's state with the given name, ID, and optional extra
48
+ * properties used to qualify the lookup.
49
+ *
50
+ * @param name The _unique_ name of the resulting resource.
51
+ * @param id The _unique_ provider ID of the resource to lookup.
52
+ * @param state Any extra arguments used during the lookup.
53
+ * @param opts Optional settings to control the behavior of the CustomResource.
54
+ */
55
+ static get(name, id, state, opts) {
56
+ return new RepositoryWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
57
+ }
58
+ /**
59
+ * Returns true if the given object is an instance of RepositoryWebhook. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj) {
63
+ if (obj === undefined || obj === null) {
64
+ return false;
65
+ }
66
+ return obj['__pulumiType'] === RepositoryWebhook.__pulumiType;
67
+ }
9
68
  constructor(name, argsOrState, opts) {
10
69
  let resourceInputs = {};
11
70
  opts = opts || {};
@@ -36,28 +95,6 @@ class RepositoryWebhook extends pulumi.CustomResource {
36
95
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
37
96
  super(RepositoryWebhook.__pulumiType, name, resourceInputs, opts);
38
97
  }
39
- /**
40
- * Get an existing RepositoryWebhook resource's state with the given name, ID, and optional extra
41
- * properties used to qualify the lookup.
42
- *
43
- * @param name The _unique_ name of the resulting resource.
44
- * @param id The _unique_ provider ID of the resource to lookup.
45
- * @param state Any extra arguments used during the lookup.
46
- * @param opts Optional settings to control the behavior of the CustomResource.
47
- */
48
- static get(name, id, state, opts) {
49
- return new RepositoryWebhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
50
- }
51
- /**
52
- * Returns true if the given object is an instance of RepositoryWebhook. This is designed to work even
53
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
54
- */
55
- static isInstance(obj) {
56
- if (obj === undefined || obj === null) {
57
- return false;
58
- }
59
- return obj['__pulumiType'] === RepositoryWebhook.__pulumiType;
60
- }
61
98
  }
62
99
  exports.RepositoryWebhook = RepositoryWebhook;
63
100
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryWebhook.js","sourceRoot":"","sources":["../repositoryWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA2CxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,C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1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a GitHub team resource.
4
+ *
5
+ * This resource allows you to add/remove teams from your organization. When applied,
6
+ * a new team will be created. When destroyed, that team will be removed.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as github from "@pulumi/github";
13
+ *
14
+ * // Add a team to the organization
15
+ * const someTeam = new github.Team("someTeam", {
16
+ * description: "Some cool team",
17
+ * privacy: "closed",
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * GitHub Teams can be imported using the GitHub team ID e.g.
24
+ *
25
+ * ```sh
26
+ * $ pulumi import github:index/team:Team core 1234567
27
+ * ```
28
+ */
2
29
  export declare class Team extends pulumi.CustomResource {
3
30
  /**
4
31
  * Get an existing Team resource's state with the given name, ID, and optional extra
@@ -15,15 +42,42 @@ export declare class Team extends pulumi.CustomResource {
15
42
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
43
  */
17
44
  static isInstance(obj: any): obj is Team;
45
+ /**
46
+ * Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`.
47
+ */
18
48
  readonly createDefaultMaintainer: pulumi.Output<boolean | undefined>;
49
+ /**
50
+ * A description of the team.
51
+ */
19
52
  readonly description: pulumi.Output<string | undefined>;
20
53
  readonly etag: pulumi.Output<string>;
54
+ /**
55
+ * The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.
56
+ */
21
57
  readonly ldapDn: pulumi.Output<string | undefined>;
22
58
  readonly membersCount: pulumi.Output<number>;
59
+ /**
60
+ * The name of the team.
61
+ */
23
62
  readonly name: pulumi.Output<string>;
63
+ /**
64
+ * The Node ID of the created team.
65
+ */
24
66
  readonly nodeId: pulumi.Output<string>;
67
+ /**
68
+ * The ID of the parent team, if this is a nested team.
69
+ */
25
70
  readonly parentTeamId: pulumi.Output<number | undefined>;
71
+ /**
72
+ * The level of privacy for the team. Must be one of `secret` or `closed`.
73
+ * Defaults to `secret`.
74
+ */
26
75
  readonly privacy: pulumi.Output<string | undefined>;
76
+ /**
77
+ * The slug of the created team, which may or may not differ from `name`,
78
+ * depending on whether `name` contains "URL-unsafe" characters.
79
+ * Useful when referencing the team in [`github.BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html).
80
+ */
27
81
  readonly slug: pulumi.Output<string>;
28
82
  /**
29
83
  * Create a Team resource with the given unique name, arguments, and options.
@@ -38,25 +92,71 @@ export declare class Team extends pulumi.CustomResource {
38
92
  * Input properties used for looking up and filtering Team resources.
39
93
  */
40
94
  export interface TeamState {
95
+ /**
96
+ * Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`.
97
+ */
41
98
  createDefaultMaintainer?: pulumi.Input<boolean>;
99
+ /**
100
+ * A description of the team.
101
+ */
42
102
  description?: pulumi.Input<string>;
43
103
  etag?: pulumi.Input<string>;
104
+ /**
105
+ * The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.
106
+ */
44
107
  ldapDn?: pulumi.Input<string>;
45
108
  membersCount?: pulumi.Input<number>;
109
+ /**
110
+ * The name of the team.
111
+ */
46
112
  name?: pulumi.Input<string>;
113
+ /**
114
+ * The Node ID of the created team.
115
+ */
47
116
  nodeId?: pulumi.Input<string>;
117
+ /**
118
+ * The ID of the parent team, if this is a nested team.
119
+ */
48
120
  parentTeamId?: pulumi.Input<number>;
121
+ /**
122
+ * The level of privacy for the team. Must be one of `secret` or `closed`.
123
+ * Defaults to `secret`.
124
+ */
49
125
  privacy?: pulumi.Input<string>;
126
+ /**
127
+ * The slug of the created team, which may or may not differ from `name`,
128
+ * depending on whether `name` contains "URL-unsafe" characters.
129
+ * Useful when referencing the team in [`github.BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html).
130
+ */
50
131
  slug?: pulumi.Input<string>;
51
132
  }
52
133
  /**
53
134
  * The set of arguments for constructing a Team resource.
54
135
  */
55
136
  export interface TeamArgs {
137
+ /**
138
+ * Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`.
139
+ */
56
140
  createDefaultMaintainer?: pulumi.Input<boolean>;
141
+ /**
142
+ * A description of the team.
143
+ */
57
144
  description?: pulumi.Input<string>;
145
+ /**
146
+ * The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.
147
+ */
58
148
  ldapDn?: pulumi.Input<string>;
149
+ /**
150
+ * The name of the team.
151
+ */
59
152
  name?: pulumi.Input<string>;
153
+ /**
154
+ * The ID of the parent team, if this is a nested team.
155
+ */
60
156
  parentTeamId?: pulumi.Input<number>;
157
+ /**
158
+ * The level of privacy for the team. Must be one of `secret` or `closed`.
159
+ * Defaults to `secret`.
160
+ */
61
161
  privacy?: pulumi.Input<string>;
62
162
  }
package/team.js CHANGED
@@ -5,7 +5,56 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Team = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides a GitHub team resource.
10
+ *
11
+ * This resource allows you to add/remove teams from your organization. When applied,
12
+ * a new team will be created. When destroyed, that team will be removed.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as github from "@pulumi/github";
19
+ *
20
+ * // Add a team to the organization
21
+ * const someTeam = new github.Team("someTeam", {
22
+ * description: "Some cool team",
23
+ * privacy: "closed",
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * GitHub Teams can be imported using the GitHub team ID e.g.
30
+ *
31
+ * ```sh
32
+ * $ pulumi import github:index/team:Team core 1234567
33
+ * ```
34
+ */
8
35
  class Team extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing Team resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of Team. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === Team.__pulumiType;
57
+ }
9
58
  constructor(name, argsOrState, opts) {
10
59
  let resourceInputs = {};
11
60
  opts = opts || {};
@@ -38,28 +87,6 @@ class Team extends pulumi.CustomResource {
38
87
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
39
88
  super(Team.__pulumiType, name, resourceInputs, opts);
40
89
  }
41
- /**
42
- * Get an existing Team 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 Team(name, state, Object.assign(Object.assign({}, opts), { id: id }));
52
- }
53
- /**
54
- * Returns true if the given object is an instance of Team. 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'] === Team.__pulumiType;
62
- }
63
90
  }
64
91
  exports.Team = Team;
65
92
  /** @internal */
package/team.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IA+C3C,YAAY,IAAY,EA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