@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
package/release.d.ts ADDED
@@ -0,0 +1,194 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to create and manage a release in a specific
4
+ * GitHub repository.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as github from "@pulumi/github";
11
+ *
12
+ * const repo = new github.Repository("repo", {
13
+ * description: "GitHub repo managed by Terraform",
14
+ * "private": false,
15
+ * });
16
+ * const example = new github.Release("example", {
17
+ * repository: repo.name,
18
+ * tagName: "v1.0.0",
19
+ * });
20
+ * ```
21
+ * ### On Non-Default Branch
22
+ *
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ * import * as github from "@pulumi/github";
26
+ *
27
+ * const exampleRepository = new github.Repository("exampleRepository", {autoInit: true});
28
+ * const exampleBranch = new github.Branch("exampleBranch", {
29
+ * repository: exampleRepository.name,
30
+ * branch: "branch_name",
31
+ * sourceBranch: exampleRepository.defaultBranch,
32
+ * });
33
+ * const exampleRelease = new github.Release("exampleRelease", {
34
+ * repository: exampleRepository.name,
35
+ * tagName: "v1.0.0",
36
+ * targetCommitish: exampleBranch.branch,
37
+ * draft: false,
38
+ * prerelease: false,
39
+ * });
40
+ * ```
41
+ *
42
+ * ## Import
43
+ *
44
+ * This resource can be imported using the `name` of the repository, combined with the `id` of the release, and a `:` character for separating components, e.g.
45
+ *
46
+ * ```sh
47
+ * $ pulumi import github:index/release:Release example repo:12345678
48
+ * ```
49
+ */
50
+ export declare class Release extends pulumi.CustomResource {
51
+ /**
52
+ * Get an existing Release 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: string, id: pulumi.Input<pulumi.ID>, state?: ReleaseState, opts?: pulumi.CustomResourceOptions): Release;
61
+ /**
62
+ * Returns true if the given object is an instance of Release. This is designed to work even
63
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
+ */
65
+ static isInstance(obj: any): obj is Release;
66
+ /**
67
+ * Text describing the contents of the tag.
68
+ */
69
+ readonly body: pulumi.Output<string | undefined>;
70
+ /**
71
+ * If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see [Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository).
72
+ */
73
+ readonly discussionCategoryName: pulumi.Output<string | undefined>;
74
+ /**
75
+ * Set to `false` to create a published release.
76
+ */
77
+ readonly draft: pulumi.Output<boolean | undefined>;
78
+ readonly etag: pulumi.Output<string>;
79
+ /**
80
+ * Set to `true` to automatically generate the name and body for this release. If `name` is specified, the specified `name` will be used; otherwise, a name will be automatically generated. If `body` is specified, the `body` will be pre-pended to the automatically generated notes.
81
+ */
82
+ readonly generateReleaseNotes: pulumi.Output<boolean | undefined>;
83
+ /**
84
+ * The name of the release.
85
+ */
86
+ readonly name: pulumi.Output<string>;
87
+ /**
88
+ * Set to `false` to identify the release as a full release.
89
+ */
90
+ readonly prerelease: pulumi.Output<boolean | undefined>;
91
+ /**
92
+ * The name of the repository.
93
+ */
94
+ readonly repository: pulumi.Output<string>;
95
+ /**
96
+ * The name of the tag.
97
+ */
98
+ readonly tagName: pulumi.Output<string>;
99
+ /**
100
+ * The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
101
+ */
102
+ readonly targetCommitish: pulumi.Output<string | undefined>;
103
+ /**
104
+ * Create a Release resource with the given unique name, arguments, and options.
105
+ *
106
+ * @param name The _unique_ name of the resource.
107
+ * @param args The arguments to use to populate this resource's properties.
108
+ * @param opts A bag of options that control this resource's behavior.
109
+ */
110
+ constructor(name: string, args: ReleaseArgs, opts?: pulumi.CustomResourceOptions);
111
+ }
112
+ /**
113
+ * Input properties used for looking up and filtering Release resources.
114
+ */
115
+ export interface ReleaseState {
116
+ /**
117
+ * Text describing the contents of the tag.
118
+ */
119
+ body?: pulumi.Input<string>;
120
+ /**
121
+ * If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see [Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository).
122
+ */
123
+ discussionCategoryName?: pulumi.Input<string>;
124
+ /**
125
+ * Set to `false` to create a published release.
126
+ */
127
+ draft?: pulumi.Input<boolean>;
128
+ etag?: pulumi.Input<string>;
129
+ /**
130
+ * Set to `true` to automatically generate the name and body for this release. If `name` is specified, the specified `name` will be used; otherwise, a name will be automatically generated. If `body` is specified, the `body` will be pre-pended to the automatically generated notes.
131
+ */
132
+ generateReleaseNotes?: pulumi.Input<boolean>;
133
+ /**
134
+ * The name of the release.
135
+ */
136
+ name?: pulumi.Input<string>;
137
+ /**
138
+ * Set to `false` to identify the release as a full release.
139
+ */
140
+ prerelease?: pulumi.Input<boolean>;
141
+ /**
142
+ * The name of the repository.
143
+ */
144
+ repository?: pulumi.Input<string>;
145
+ /**
146
+ * The name of the tag.
147
+ */
148
+ tagName?: pulumi.Input<string>;
149
+ /**
150
+ * The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
151
+ */
152
+ targetCommitish?: pulumi.Input<string>;
153
+ }
154
+ /**
155
+ * The set of arguments for constructing a Release resource.
156
+ */
157
+ export interface ReleaseArgs {
158
+ /**
159
+ * Text describing the contents of the tag.
160
+ */
161
+ body?: pulumi.Input<string>;
162
+ /**
163
+ * If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see [Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository).
164
+ */
165
+ discussionCategoryName?: pulumi.Input<string>;
166
+ /**
167
+ * Set to `false` to create a published release.
168
+ */
169
+ draft?: pulumi.Input<boolean>;
170
+ /**
171
+ * Set to `true` to automatically generate the name and body for this release. If `name` is specified, the specified `name` will be used; otherwise, a name will be automatically generated. If `body` is specified, the `body` will be pre-pended to the automatically generated notes.
172
+ */
173
+ generateReleaseNotes?: pulumi.Input<boolean>;
174
+ /**
175
+ * The name of the release.
176
+ */
177
+ name?: pulumi.Input<string>;
178
+ /**
179
+ * Set to `false` to identify the release as a full release.
180
+ */
181
+ prerelease?: pulumi.Input<boolean>;
182
+ /**
183
+ * The name of the repository.
184
+ */
185
+ repository: pulumi.Input<string>;
186
+ /**
187
+ * The name of the tag.
188
+ */
189
+ tagName: pulumi.Input<string>;
190
+ /**
191
+ * The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
192
+ */
193
+ targetCommitish?: pulumi.Input<string>;
194
+ }
package/release.js ADDED
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Release = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * This resource allows you to create and manage a release in a specific
10
+ * GitHub repository.
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: "GitHub repo managed by Terraform",
20
+ * "private": false,
21
+ * });
22
+ * const example = new github.Release("example", {
23
+ * repository: repo.name,
24
+ * tagName: "v1.0.0",
25
+ * });
26
+ * ```
27
+ * ### On Non-Default Branch
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as github from "@pulumi/github";
32
+ *
33
+ * const exampleRepository = new github.Repository("exampleRepository", {autoInit: true});
34
+ * const exampleBranch = new github.Branch("exampleBranch", {
35
+ * repository: exampleRepository.name,
36
+ * branch: "branch_name",
37
+ * sourceBranch: exampleRepository.defaultBranch,
38
+ * });
39
+ * const exampleRelease = new github.Release("exampleRelease", {
40
+ * repository: exampleRepository.name,
41
+ * tagName: "v1.0.0",
42
+ * targetCommitish: exampleBranch.branch,
43
+ * draft: false,
44
+ * prerelease: false,
45
+ * });
46
+ * ```
47
+ *
48
+ * ## Import
49
+ *
50
+ * This resource can be imported using the `name` of the repository, combined with the `id` of the release, and a `:` character for separating components, e.g.
51
+ *
52
+ * ```sh
53
+ * $ pulumi import github:index/release:Release example repo:12345678
54
+ * ```
55
+ */
56
+ class Release extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing Release resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name, id, state, opts) {
67
+ return new Release(name, state, Object.assign(Object.assign({}, opts), { id: id }));
68
+ }
69
+ /**
70
+ * Returns true if the given object is an instance of Release. This is designed to work even
71
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
72
+ */
73
+ static isInstance(obj) {
74
+ if (obj === undefined || obj === null) {
75
+ return false;
76
+ }
77
+ return obj['__pulumiType'] === Release.__pulumiType;
78
+ }
79
+ constructor(name, argsOrState, opts) {
80
+ let resourceInputs = {};
81
+ opts = opts || {};
82
+ if (opts.id) {
83
+ const state = argsOrState;
84
+ resourceInputs["body"] = state ? state.body : undefined;
85
+ resourceInputs["discussionCategoryName"] = state ? state.discussionCategoryName : undefined;
86
+ resourceInputs["draft"] = state ? state.draft : undefined;
87
+ resourceInputs["etag"] = state ? state.etag : undefined;
88
+ resourceInputs["generateReleaseNotes"] = state ? state.generateReleaseNotes : undefined;
89
+ resourceInputs["name"] = state ? state.name : undefined;
90
+ resourceInputs["prerelease"] = state ? state.prerelease : undefined;
91
+ resourceInputs["repository"] = state ? state.repository : undefined;
92
+ resourceInputs["tagName"] = state ? state.tagName : undefined;
93
+ resourceInputs["targetCommitish"] = state ? state.targetCommitish : undefined;
94
+ }
95
+ else {
96
+ const args = argsOrState;
97
+ if ((!args || args.repository === undefined) && !opts.urn) {
98
+ throw new Error("Missing required property 'repository'");
99
+ }
100
+ if ((!args || args.tagName === undefined) && !opts.urn) {
101
+ throw new Error("Missing required property 'tagName'");
102
+ }
103
+ resourceInputs["body"] = args ? args.body : undefined;
104
+ resourceInputs["discussionCategoryName"] = args ? args.discussionCategoryName : undefined;
105
+ resourceInputs["draft"] = args ? args.draft : undefined;
106
+ resourceInputs["generateReleaseNotes"] = args ? args.generateReleaseNotes : undefined;
107
+ resourceInputs["name"] = args ? args.name : undefined;
108
+ resourceInputs["prerelease"] = args ? args.prerelease : undefined;
109
+ resourceInputs["repository"] = args ? args.repository : undefined;
110
+ resourceInputs["tagName"] = args ? args.tagName : undefined;
111
+ resourceInputs["targetCommitish"] = args ? args.targetCommitish : undefined;
112
+ resourceInputs["etag"] = undefined /*out*/;
113
+ }
114
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
115
+ super(Release.__pulumiType, name, resourceInputs, opts);
116
+ }
117
+ }
118
+ exports.Release = Release;
119
+ /** @internal */
120
+ Release.__pulumiType = 'github:index/release:Release';
121
+ //# sourceMappingURL=release.js.map
package/release.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release.js","sourceRoot":"","sources":["../release.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAgDD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG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