@pulumi/github 4.17.0 → 5.0.0-alpha.1663887713

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 (197) hide show
  1. package/README.md +1 -1
  2. package/actionsEnvironmentSecret.d.ts +0 -105
  3. package/actionsEnvironmentSecret.js +0 -48
  4. package/actionsEnvironmentSecret.js.map +1 -1
  5. package/actionsOrganizationPermissions.d.ts +0 -72
  6. package/actionsOrganizationPermissions.js +0 -36
  7. package/actionsOrganizationPermissions.js.map +1 -1
  8. package/actionsOrganizationSecret.d.ts +0 -110
  9. package/actionsOrganizationSecret.js +0 -50
  10. package/actionsOrganizationSecret.js.map +1 -1
  11. package/actionsOrganizationSecretRepositories.d.ts +0 -47
  12. package/actionsOrganizationSecretRepositories.js +0 -29
  13. package/actionsOrganizationSecretRepositories.js.map +1 -1
  14. package/actionsRunnerGroup.d.ts +0 -88
  15. package/actionsRunnerGroup.js +0 -25
  16. package/actionsRunnerGroup.js.map +1 -1
  17. package/actionsSecret.d.ts +0 -70
  18. package/actionsSecret.js +0 -22
  19. package/actionsSecret.js.map +1 -1
  20. package/appInstallationRepository.d.ts +0 -54
  21. package/appInstallationRepository.js +0 -36
  22. package/appInstallationRepository.js.map +1 -1
  23. package/branch.d.ts +0 -92
  24. package/branch.js +0 -38
  25. package/branch.js.map +1 -1
  26. package/branchDefault.d.ts +0 -53
  27. package/branchDefault.js +0 -35
  28. package/branchDefault.js.map +1 -1
  29. package/branchProtection.d.ts +3 -155
  30. package/branchProtection.js +0 -53
  31. package/branchProtection.js.map +1 -1
  32. package/branchProtectionV3.d.ts +0 -138
  33. package/branchProtectionV3.js +0 -66
  34. package/branchProtectionV3.js.map +1 -1
  35. package/emuGroupMapping.d.ts +0 -41
  36. package/emuGroupMapping.js +0 -23
  37. package/emuGroupMapping.js.map +1 -1
  38. package/getActionsOrganizationSecrets.d.ts +13 -0
  39. package/getActionsOrganizationSecrets.js +16 -0
  40. package/getActionsOrganizationSecrets.js.map +1 -0
  41. package/getActionsPublicKey.d.ts +0 -27
  42. package/getActionsPublicKey.js +0 -15
  43. package/getActionsPublicKey.js.map +1 -1
  44. package/getActionsSecrets.d.ts +30 -0
  45. package/getActionsSecrets.js +24 -0
  46. package/getActionsSecrets.js.map +1 -0
  47. package/getBranch.d.ts +0 -36
  48. package/getBranch.js +0 -15
  49. package/getBranch.js.map +1 -1
  50. package/getCollaborators.d.ts +0 -36
  51. package/getCollaborators.js +0 -15
  52. package/getCollaborators.js.map +1 -1
  53. package/getExternalGroups.d.ts +0 -17
  54. package/getExternalGroups.js +0 -14
  55. package/getExternalGroups.js.map +1 -1
  56. package/getIpRanges.d.ts +0 -84
  57. package/getIpRanges.js +0 -12
  58. package/getIpRanges.js.map +1 -1
  59. package/getMembership.d.ts +0 -38
  60. package/getMembership.js +0 -17
  61. package/getMembership.js.map +1 -1
  62. package/getOrganization.d.ts +0 -38
  63. package/getOrganization.js +0 -14
  64. package/getOrganization.js.map +1 -1
  65. package/getOrganizationTeamSyncGroups.d.ts +0 -15
  66. package/getOrganizationTeamSyncGroups.js +0 -12
  67. package/getOrganizationTeamSyncGroups.js.map +1 -1
  68. package/getOrganizationTeams.d.ts +0 -38
  69. package/getOrganizationTeams.js +0 -25
  70. package/getOrganizationTeams.js.map +1 -1
  71. package/getRef.d.ts +0 -33
  72. package/getRef.js +0 -15
  73. package/getRef.js.map +1 -1
  74. package/getRelease.d.ts +0 -121
  75. package/getRelease.js +0 -46
  76. package/getRelease.js.map +1 -1
  77. package/getRepositories.d.ts +0 -29
  78. package/getRepositories.js +0 -17
  79. package/getRepositories.js.map +1 -1
  80. package/getRepository.d.ts +0 -132
  81. package/getRepository.js +0 -14
  82. package/getRepository.js.map +1 -1
  83. package/getRepositoryFile.d.ts +0 -55
  84. package/getRepositoryFile.js +0 -17
  85. package/getRepositoryFile.js.map +1 -1
  86. package/getRepositoryMilestone.d.ts +0 -46
  87. package/getRepositoryMilestone.js +0 -16
  88. package/getRepositoryMilestone.js.map +1 -1
  89. package/getRepositoryPullRequest.d.ts +0 -75
  90. package/getRepositoryPullRequest.js +0 -15
  91. package/getRepositoryPullRequest.js.map +1 -1
  92. package/getRepositoryPullRequests.d.ts +0 -72
  93. package/getRepositoryPullRequests.js +0 -18
  94. package/getRepositoryPullRequests.js.map +1 -1
  95. package/getRepositoryTeams.d.ts +30 -0
  96. package/getRepositoryTeams.js +24 -0
  97. package/getRepositoryTeams.js.map +1 -0
  98. package/getTeam.d.ts +0 -47
  99. package/getTeam.js +0 -14
  100. package/getTeam.js.map +1 -1
  101. package/getTree.d.ts +0 -45
  102. package/getTree.js +0 -24
  103. package/getTree.js.map +1 -1
  104. package/getUser.d.ts +0 -87
  105. package/getUser.js +0 -21
  106. package/getUser.js.map +1 -1
  107. package/getUsers.d.ts +0 -37
  108. package/getUsers.js +0 -22
  109. package/getUsers.js.map +1 -1
  110. package/index.d.ts +4 -0
  111. package/index.js +8 -0
  112. package/index.js.map +1 -1
  113. package/issue.d.ts +6 -117
  114. package/issue.js +0 -63
  115. package/issue.js.map +1 -1
  116. package/issueLabel.d.ts +0 -64
  117. package/issueLabel.js +0 -22
  118. package/issueLabel.js.map +1 -1
  119. package/membership.d.ts +0 -49
  120. package/membership.js +0 -28
  121. package/membership.js.map +1 -1
  122. package/organizationBlock.d.ts +0 -23
  123. package/organizationBlock.js +0 -14
  124. package/organizationBlock.js.map +1 -1
  125. package/organizationProject.d.ts +0 -38
  126. package/organizationProject.js +0 -14
  127. package/organizationProject.js.map +1 -1
  128. package/organizationWebhook.d.ts +0 -63
  129. package/organizationWebhook.js +0 -30
  130. package/organizationWebhook.js.map +1 -1
  131. package/package.json +2 -2
  132. package/package.json.dev +2 -2
  133. package/projectCard.d.ts +0 -87
  134. package/projectCard.js +0 -51
  135. package/projectCard.js.map +1 -1
  136. package/projectColumn.d.ts +0 -31
  137. package/projectColumn.js +0 -13
  138. package/projectColumn.js.map +1 -1
  139. package/repository.d.ts +3 -377
  140. package/repository.js +0 -47
  141. package/repository.js.map +1 -1
  142. package/repositoryAutolinkReference.d.ts +6 -40
  143. package/repositoryAutolinkReference.js +0 -28
  144. package/repositoryAutolinkReference.js.map +1 -1
  145. package/repositoryCollaborator.d.ts +0 -90
  146. package/repositoryCollaborator.js +0 -42
  147. package/repositoryCollaborator.js.map +1 -1
  148. package/repositoryDeployKey.d.ts +0 -71
  149. package/repositoryDeployKey.js +0 -35
  150. package/repositoryDeployKey.js.map +1 -1
  151. package/repositoryEnvironment.d.ts +0 -61
  152. package/repositoryEnvironment.js +0 -34
  153. package/repositoryEnvironment.js.map +1 -1
  154. package/repositoryFile.d.ts +28 -68
  155. package/repositoryFile.js +0 -37
  156. package/repositoryFile.js.map +1 -1
  157. package/repositoryMilestone.d.ts +3 -81
  158. package/repositoryMilestone.js +0 -27
  159. package/repositoryMilestone.js.map +1 -1
  160. package/repositoryProject.d.ts +0 -52
  161. package/repositoryProject.js +0 -19
  162. package/repositoryProject.js.map +1 -1
  163. package/repositoryPullRequest.d.ts +4 -127
  164. package/repositoryPullRequest.js +0 -18
  165. package/repositoryPullRequest.js.map +1 -1
  166. package/repositoryTagProtection.d.ts +44 -0
  167. package/repositoryTagProtection.js +59 -0
  168. package/repositoryTagProtection.js.map +1 -0
  169. package/repositoryWebhook.d.ts +0 -79
  170. package/repositoryWebhook.js +0 -37
  171. package/repositoryWebhook.js.map +1 -1
  172. package/team.d.ts +0 -100
  173. package/team.js +0 -27
  174. package/team.js.map +1 -1
  175. package/teamMembers.d.ts +0 -58
  176. package/teamMembers.js +0 -40
  177. package/teamMembers.js.map +1 -1
  178. package/teamMembership.d.ts +0 -67
  179. package/teamMembership.js +0 -37
  180. package/teamMembership.js.map +1 -1
  181. package/teamRepository.d.ts +3 -59
  182. package/teamRepository.js +0 -35
  183. package/teamRepository.js.map +1 -1
  184. package/teamSyncGroupMapping.d.ts +0 -36
  185. package/teamSyncGroupMapping.js +0 -15
  186. package/teamSyncGroupMapping.js.map +1 -1
  187. package/types/input.d.ts +0 -86
  188. package/types/output.d.ts +16 -237
  189. package/userGpgKey.d.ts +0 -40
  190. package/userGpgKey.js +0 -22
  191. package/userGpgKey.js.map +1 -1
  192. package/userInvitationAccepter.d.ts +0 -30
  193. package/userInvitationAccepter.js +0 -21
  194. package/userInvitationAccepter.js.map +1 -1
  195. package/userSshKey.d.ts +0 -50
  196. package/userSshKey.js +0 -26
  197. package/userSshKey.js.map +1 -1
@@ -1,22 +1,4 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * This resource allows you to create and manage PullRequests 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.RepositoryPullRequest("example", {
12
- * baseRef: "main",
13
- * baseRepository: "example-repository",
14
- * body: "This will change everything",
15
- * headRef: "feature-branch",
16
- * title: "My newest feature",
17
- * });
18
- * ```
19
- */
20
2
  export declare class RepositoryPullRequest extends pulumi.CustomResource {
21
3
  /**
22
4
  * Get an existing RepositoryPullRequest resource's state with the given name, ID, and optional extra
@@ -33,69 +15,27 @@ export declare class RepositoryPullRequest extends pulumi.CustomResource {
33
15
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
34
16
  */
35
17
  static isInstance(obj: any): obj is RepositoryPullRequest;
36
- /**
37
- * Name of the branch serving as the base of the Pull Request.
38
- */
39
18
  readonly baseRef: pulumi.Output<string>;
40
- /**
41
- * Name of the base repository to retrieve the Pull Requests from.
42
- */
43
19
  readonly baseRepository: pulumi.Output<string>;
44
- /**
45
- * Head commit SHA of the Pull Request base.
46
- */
47
20
  readonly baseSha: pulumi.Output<string>;
48
- /**
49
- * Body of the Pull Request.
50
- */
51
21
  readonly body: pulumi.Output<string | undefined>;
52
- /**
53
- * Indicates Whether this Pull Request is a draft.
54
- */
55
22
  readonly draft: pulumi.Output<boolean>;
56
- /**
57
- * Name of the branch serving as the head of the Pull Request.
58
- */
59
23
  readonly headRef: pulumi.Output<string>;
60
- /**
61
- * Head commit SHA of the Pull Request head.
62
- */
63
24
  readonly headSha: pulumi.Output<string>;
64
25
  /**
65
- * List of label names set on the Pull Request.
26
+ * List of names of labels on the PR
66
27
  */
67
28
  readonly labels: pulumi.Output<string[]>;
68
- /**
69
- * Controls whether the base repository maintainers can modify the Pull Request. Default: false.
70
- */
71
29
  readonly maintainerCanModify: pulumi.Output<boolean | undefined>;
72
- /**
73
- * The number of the Pull Request within the repository.
74
- */
75
30
  readonly number: pulumi.Output<number>;
76
- /**
77
- * Unix timestamp indicating the Pull Request creation time.
78
- */
79
31
  readonly openedAt: pulumi.Output<number>;
80
32
  /**
81
- * GitHub login of the user who opened the Pull Request.
33
+ * Username of the PR creator
82
34
  */
83
35
  readonly openedBy: pulumi.Output<string>;
84
- /**
85
- * Owner of the repository. If not provided, the provider's default owner is used.
86
- */
87
36
  readonly owner: pulumi.Output<string | undefined>;
88
- /**
89
- * the current Pull Request state - can be "open", "closed" or "merged".
90
- */
91
37
  readonly state: pulumi.Output<string>;
92
- /**
93
- * The title of the Pull Request.
94
- */
95
38
  readonly title: pulumi.Output<string>;
96
- /**
97
- * The timestamp of the last Pull Request update.
98
- */
99
39
  readonly updatedAt: pulumi.Output<number>;
100
40
  /**
101
41
  * Create a RepositoryPullRequest resource with the given unique name, arguments, and options.
@@ -110,101 +50,38 @@ export declare class RepositoryPullRequest extends pulumi.CustomResource {
110
50
  * Input properties used for looking up and filtering RepositoryPullRequest resources.
111
51
  */
112
52
  export interface RepositoryPullRequestState {
113
- /**
114
- * Name of the branch serving as the base of the Pull Request.
115
- */
116
53
  baseRef?: pulumi.Input<string>;
117
- /**
118
- * Name of the base repository to retrieve the Pull Requests from.
119
- */
120
54
  baseRepository?: pulumi.Input<string>;
121
- /**
122
- * Head commit SHA of the Pull Request base.
123
- */
124
55
  baseSha?: pulumi.Input<string>;
125
- /**
126
- * Body of the Pull Request.
127
- */
128
56
  body?: pulumi.Input<string>;
129
- /**
130
- * Indicates Whether this Pull Request is a draft.
131
- */
132
57
  draft?: pulumi.Input<boolean>;
133
- /**
134
- * Name of the branch serving as the head of the Pull Request.
135
- */
136
58
  headRef?: pulumi.Input<string>;
137
- /**
138
- * Head commit SHA of the Pull Request head.
139
- */
140
59
  headSha?: pulumi.Input<string>;
141
60
  /**
142
- * List of label names set on the Pull Request.
61
+ * List of names of labels on the PR
143
62
  */
144
63
  labels?: pulumi.Input<pulumi.Input<string>[]>;
145
- /**
146
- * Controls whether the base repository maintainers can modify the Pull Request. Default: false.
147
- */
148
64
  maintainerCanModify?: pulumi.Input<boolean>;
149
- /**
150
- * The number of the Pull Request within the repository.
151
- */
152
65
  number?: pulumi.Input<number>;
153
- /**
154
- * Unix timestamp indicating the Pull Request creation time.
155
- */
156
66
  openedAt?: pulumi.Input<number>;
157
67
  /**
158
- * GitHub login of the user who opened the Pull Request.
68
+ * Username of the PR creator
159
69
  */
160
70
  openedBy?: pulumi.Input<string>;
161
- /**
162
- * Owner of the repository. If not provided, the provider's default owner is used.
163
- */
164
71
  owner?: pulumi.Input<string>;
165
- /**
166
- * the current Pull Request state - can be "open", "closed" or "merged".
167
- */
168
72
  state?: pulumi.Input<string>;
169
- /**
170
- * The title of the Pull Request.
171
- */
172
73
  title?: pulumi.Input<string>;
173
- /**
174
- * The timestamp of the last Pull Request update.
175
- */
176
74
  updatedAt?: pulumi.Input<number>;
177
75
  }
178
76
  /**
179
77
  * The set of arguments for constructing a RepositoryPullRequest resource.
180
78
  */
181
79
  export interface RepositoryPullRequestArgs {
182
- /**
183
- * Name of the branch serving as the base of the Pull Request.
184
- */
185
80
  baseRef: pulumi.Input<string>;
186
- /**
187
- * Name of the base repository to retrieve the Pull Requests from.
188
- */
189
81
  baseRepository: pulumi.Input<string>;
190
- /**
191
- * Body of the Pull Request.
192
- */
193
82
  body?: pulumi.Input<string>;
194
- /**
195
- * Name of the branch serving as the head of the Pull Request.
196
- */
197
83
  headRef: pulumi.Input<string>;
198
- /**
199
- * Controls whether the base repository maintainers can modify the Pull Request. Default: false.
200
- */
201
84
  maintainerCanModify?: pulumi.Input<boolean>;
202
- /**
203
- * Owner of the repository. If not provided, the provider's default owner is used.
204
- */
205
85
  owner?: pulumi.Input<string>;
206
- /**
207
- * The title of the Pull Request.
208
- */
209
86
  title: pulumi.Input<string>;
210
87
  }
@@ -5,24 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryPullRequest = 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 PullRequests 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.RepositoryPullRequest("example", {
18
- * baseRef: "main",
19
- * baseRepository: "example-repository",
20
- * body: "This will change everything",
21
- * headRef: "feature-branch",
22
- * title: "My newest feature",
23
- * });
24
- * ```
25
- */
26
8
  class RepositoryPullRequest extends pulumi.CustomResource {
27
9
  constructor(name, argsOrState, opts) {
28
10
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryPullRequest.js","sourceRoot":"","sources":["../repositoryPullRequest.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAqG5D,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,O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,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;IAhHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;;AA1BL,sDAkHC;AApGG,gBAAgB;AACO,kCAAY,GAAG,0DAA0D,CAAC"}
@@ -0,0 +1,44 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class RepositoryTagProtection extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing RepositoryTagProtection resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryTagProtectionState, opts?: pulumi.CustomResourceOptions): RepositoryTagProtection;
13
+ /**
14
+ * Returns true if the given object is an instance of RepositoryTagProtection. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is RepositoryTagProtection;
18
+ readonly pattern: pulumi.Output<string>;
19
+ readonly repository: pulumi.Output<string>;
20
+ readonly tagProtectionId: pulumi.Output<number>;
21
+ /**
22
+ * Create a RepositoryTagProtection resource with the given unique name, arguments, and options.
23
+ *
24
+ * @param name The _unique_ name of the resource.
25
+ * @param args The arguments to use to populate this resource's properties.
26
+ * @param opts A bag of options that control this resource's behavior.
27
+ */
28
+ constructor(name: string, args: RepositoryTagProtectionArgs, opts?: pulumi.CustomResourceOptions);
29
+ }
30
+ /**
31
+ * Input properties used for looking up and filtering RepositoryTagProtection resources.
32
+ */
33
+ export interface RepositoryTagProtectionState {
34
+ pattern?: pulumi.Input<string>;
35
+ repository?: pulumi.Input<string>;
36
+ tagProtectionId?: pulumi.Input<number>;
37
+ }
38
+ /**
39
+ * The set of arguments for constructing a RepositoryTagProtection resource.
40
+ */
41
+ export interface RepositoryTagProtectionArgs {
42
+ pattern: pulumi.Input<string>;
43
+ repository: pulumi.Input<string>;
44
+ }
@@ -0,0 +1,59 @@
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.RepositoryTagProtection = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class RepositoryTagProtection extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["pattern"] = state ? state.pattern : undefined;
15
+ resourceInputs["repository"] = state ? state.repository : undefined;
16
+ resourceInputs["tagProtectionId"] = state ? state.tagProtectionId : undefined;
17
+ }
18
+ else {
19
+ const args = argsOrState;
20
+ if ((!args || args.pattern === undefined) && !opts.urn) {
21
+ throw new Error("Missing required property 'pattern'");
22
+ }
23
+ if ((!args || args.repository === undefined) && !opts.urn) {
24
+ throw new Error("Missing required property 'repository'");
25
+ }
26
+ resourceInputs["pattern"] = args ? args.pattern : undefined;
27
+ resourceInputs["repository"] = args ? args.repository : undefined;
28
+ resourceInputs["tagProtectionId"] = undefined /*out*/;
29
+ }
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
31
+ super(RepositoryTagProtection.__pulumiType, name, resourceInputs, opts);
32
+ }
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
+ }
56
+ exports.RepositoryTagProtection = RepositoryTagProtection;
57
+ /** @internal */
58
+ RepositoryTagProtection.__pulumiType = 'github:index/repositoryTagProtection:RepositoryTagProtection';
59
+ //# sourceMappingURL=repositoryTagProtection.js.map
@@ -0,0 +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,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;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;;AA1BL,0DA+DC;AAjDG,gBAAgB;AACO,oCAAY,GAAG,8DAA8D,CAAC"}
@@ -1,42 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
- /**
4
- * This resource allows you to create and manage webhooks for repositories within your
5
- * GitHub organization or personal account.
6
- *
7
- * ## Example Usage
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as github from "@pulumi/github";
12
- *
13
- * const repo = new github.Repository("repo", {
14
- * description: "Terraform acceptance tests",
15
- * homepageUrl: "http://example.com/",
16
- * "private": false,
17
- * });
18
- * const foo = new github.RepositoryWebhook("foo", {
19
- * repository: repo.name,
20
- * configuration: {
21
- * url: "https://google.de/",
22
- * contentType: "form",
23
- * insecureSsl: false,
24
- * },
25
- * active: false,
26
- * events: ["issues"],
27
- * });
28
- * ```
29
- *
30
- * ## Import
31
- *
32
- * 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.
33
- *
34
- * ```sh
35
- * $ pulumi import github:index/repositoryWebhook:RepositoryWebhook terraform terraform/11235813
36
- * ```
37
- *
38
- * If secret is populated in the webhook's configuration, the value will be imported as "********".
39
- */
40
3
  export declare class RepositoryWebhook extends pulumi.CustomResource {
41
4
  /**
42
5
  * Get an existing RepositoryWebhook resource's state with the given name, ID, and optional extra
@@ -53,26 +16,11 @@ export declare class RepositoryWebhook extends pulumi.CustomResource {
53
16
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
54
17
  */
55
18
  static isInstance(obj: any): obj is RepositoryWebhook;
56
- /**
57
- * Indicate if the webhook should receive events. Defaults to `true`.
58
- */
59
19
  readonly active: pulumi.Output<boolean | undefined>;
60
- /**
61
- * Configuration block for the webhook. Detailed below.
62
- */
63
20
  readonly configuration: pulumi.Output<outputs.RepositoryWebhookConfiguration | undefined>;
64
21
  readonly etag: pulumi.Output<string>;
65
- /**
66
- * A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
67
- */
68
22
  readonly events: pulumi.Output<string[]>;
69
- /**
70
- * The repository of the webhook.
71
- */
72
23
  readonly repository: pulumi.Output<string>;
73
- /**
74
- * The URL of the webhook.
75
- */
76
24
  readonly url: pulumi.Output<string>;
77
25
  /**
78
26
  * Create a RepositoryWebhook resource with the given unique name, arguments, and options.
@@ -87,46 +35,19 @@ export declare class RepositoryWebhook extends pulumi.CustomResource {
87
35
  * Input properties used for looking up and filtering RepositoryWebhook resources.
88
36
  */
89
37
  export interface RepositoryWebhookState {
90
- /**
91
- * Indicate if the webhook should receive events. Defaults to `true`.
92
- */
93
38
  active?: pulumi.Input<boolean>;
94
- /**
95
- * Configuration block for the webhook. Detailed below.
96
- */
97
39
  configuration?: pulumi.Input<inputs.RepositoryWebhookConfiguration>;
98
40
  etag?: pulumi.Input<string>;
99
- /**
100
- * A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
101
- */
102
41
  events?: pulumi.Input<pulumi.Input<string>[]>;
103
- /**
104
- * The repository of the webhook.
105
- */
106
42
  repository?: pulumi.Input<string>;
107
- /**
108
- * The URL of the webhook.
109
- */
110
43
  url?: pulumi.Input<string>;
111
44
  }
112
45
  /**
113
46
  * The set of arguments for constructing a RepositoryWebhook resource.
114
47
  */
115
48
  export interface RepositoryWebhookArgs {
116
- /**
117
- * Indicate if the webhook should receive events. Defaults to `true`.
118
- */
119
49
  active?: pulumi.Input<boolean>;
120
- /**
121
- * Configuration block for the webhook. Detailed below.
122
- */
123
50
  configuration?: pulumi.Input<inputs.RepositoryWebhookConfiguration>;
124
- /**
125
- * A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/).
126
- */
127
51
  events: pulumi.Input<pulumi.Input<string>[]>;
128
- /**
129
- * The repository of the webhook.
130
- */
131
52
  repository: pulumi.Input<string>;
132
53
  }
@@ -5,43 +5,6 @@ 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
- */
45
8
  class RepositoryWebhook extends pulumi.CustomResource {
46
9
  constructor(name, argsOrState, opts) {
47
10
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryWebhook.js","sourceRoot":"","sources":["../repositoryWebhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA0DxD,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,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,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAA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EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAwEC;AA1DG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
package/team.d.ts CHANGED
@@ -1,31 +1,4 @@
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("some_team", {
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
- */
29
2
  export declare class Team extends pulumi.CustomResource {
30
3
  /**
31
4
  * Get an existing Team resource's state with the given name, ID, and optional extra
@@ -42,42 +15,15 @@ export declare class Team extends pulumi.CustomResource {
42
15
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
16
  */
44
17
  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
- */
48
18
  readonly createDefaultMaintainer: pulumi.Output<boolean | undefined>;
49
- /**
50
- * A description of the team.
51
- */
52
19
  readonly description: pulumi.Output<string | undefined>;
53
20
  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
- */
57
21
  readonly ldapDn: pulumi.Output<string | undefined>;
58
22
  readonly membersCount: pulumi.Output<number>;
59
- /**
60
- * The name of the team.
61
- */
62
23
  readonly name: pulumi.Output<string>;
63
- /**
64
- * The Node ID of the created team.
65
- */
66
24
  readonly nodeId: pulumi.Output<string>;
67
- /**
68
- * The ID of the parent team, if this is a nested team.
69
- */
70
25
  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
- */
75
26
  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
- */
81
27
  readonly slug: pulumi.Output<string>;
82
28
  /**
83
29
  * Create a Team resource with the given unique name, arguments, and options.
@@ -92,71 +38,25 @@ export declare class Team extends pulumi.CustomResource {
92
38
  * Input properties used for looking up and filtering Team resources.
93
39
  */
94
40
  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
- */
98
41
  createDefaultMaintainer?: pulumi.Input<boolean>;
99
- /**
100
- * A description of the team.
101
- */
102
42
  description?: pulumi.Input<string>;
103
43
  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
- */
107
44
  ldapDn?: pulumi.Input<string>;
108
45
  membersCount?: pulumi.Input<number>;
109
- /**
110
- * The name of the team.
111
- */
112
46
  name?: pulumi.Input<string>;
113
- /**
114
- * The Node ID of the created team.
115
- */
116
47
  nodeId?: pulumi.Input<string>;
117
- /**
118
- * The ID of the parent team, if this is a nested team.
119
- */
120
48
  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
- */
125
49
  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
- */
131
50
  slug?: pulumi.Input<string>;
132
51
  }
133
52
  /**
134
53
  * The set of arguments for constructing a Team resource.
135
54
  */
136
55
  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
- */
140
56
  createDefaultMaintainer?: pulumi.Input<boolean>;
141
- /**
142
- * A description of the team.
143
- */
144
57
  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
- */
148
58
  ldapDn?: pulumi.Input<string>;
149
- /**
150
- * The name of the team.
151
- */
152
59
  name?: pulumi.Input<string>;
153
- /**
154
- * The ID of the parent team, if this is a nested team.
155
- */
156
60
  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
- */
161
61
  privacy?: pulumi.Input<string>;
162
62
  }