/
branchProtection.go
473 lines (415 loc) · 21.4 KB
/
branchProtection.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package github
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Protects a GitHub branch.
//
// This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-github/sdk/v4/go/github"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleRepository, err := github.NewRepository(ctx, "exampleRepository", nil)
// if err != nil {
// return err
// }
// exampleUser, err := github.GetUser(ctx, &GetUserArgs{
// Username: "example",
// }, nil)
// if err != nil {
// return err
// }
// exampleTeam, err := github.NewTeam(ctx, "exampleTeam", nil)
// if err != nil {
// return err
// }
// _, err = github.NewBranchProtection(ctx, "exampleBranchProtection", &github.BranchProtectionArgs{
// RepositoryId: exampleRepository.NodeId,
// Pattern: pulumi.String("main"),
// EnforceAdmins: pulumi.Bool(true),
// AllowsDeletions: pulumi.Bool(true),
// RequiredStatusChecks: BranchProtectionRequiredStatusCheckArray{
// &BranchProtectionRequiredStatusCheckArgs{
// Strict: pulumi.Bool(false),
// Contexts: pulumi.StringArray{
// pulumi.String("ci/travis"),
// },
// },
// },
// RequiredPullRequestReviews: BranchProtectionRequiredPullRequestReviewArray{
// &BranchProtectionRequiredPullRequestReviewArgs{
// DismissStaleReviews: pulumi.Bool(true),
// RestrictDismissals: pulumi.Bool(true),
// DismissalRestrictions: pulumi.StringArray{
// pulumi.String(exampleUser.NodeId),
// exampleTeam.NodeId,
// },
// },
// },
// PushRestrictions: pulumi.StringArray{
// pulumi.String(exampleUser.NodeId),
// },
// })
// if err != nil {
// return err
// }
// _, err = github.NewTeamRepository(ctx, "exampleTeamRepository", &github.TeamRepositoryArgs{
// TeamId: exampleTeam.ID(),
// Repository: exampleRepository.Name,
// Permission: pulumi.String("pull"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// GitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.
//
// ```sh
//
// $ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main
//
// ```
type BranchProtection struct {
pulumi.CustomResourceState
// Boolean, setting this to `true` to allow the branch to be deleted.
AllowsDeletions pulumi.BoolPtrOutput `pulumi:"allowsDeletions"`
// Boolean, setting this to `true` to allow force pushes on the branch.
AllowsForcePushes pulumi.BoolPtrOutput `pulumi:"allowsForcePushes"`
// Boolean, setting this to `true` to block creating the branch.
BlocksCreations pulumi.BoolPtrOutput `pulumi:"blocksCreations"`
// Boolean, setting this to `true` enforces status checks for repository administrators.
EnforceAdmins pulumi.BoolPtrOutput `pulumi:"enforceAdmins"`
// Identifies the protection rule pattern.
Pattern pulumi.StringOutput `pulumi:"pattern"`
// The list of actor IDs that may push to the branch.
PushRestrictions pulumi.StringArrayOutput `pulumi:"pushRestrictions"`
// The name or node ID of the repository associated with this branch protection rule.
RepositoryId pulumi.StringOutput `pulumi:"repositoryId"`
// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
RequireConversationResolution pulumi.BoolPtrOutput `pulumi:"requireConversationResolution"`
// Boolean, setting this to `true` requires all commits to be signed with GPG.
RequireSignedCommits pulumi.BoolPtrOutput `pulumi:"requireSignedCommits"`
// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
RequiredLinearHistory pulumi.BoolPtrOutput `pulumi:"requiredLinearHistory"`
// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
RequiredPullRequestReviews BranchProtectionRequiredPullRequestReviewArrayOutput `pulumi:"requiredPullRequestReviews"`
// Enforce restrictions for required status checks. See Required Status Checks below for details.
RequiredStatusChecks BranchProtectionRequiredStatusCheckArrayOutput `pulumi:"requiredStatusChecks"`
}
// NewBranchProtection registers a new resource with the given unique name, arguments, and options.
func NewBranchProtection(ctx *pulumi.Context,
name string, args *BranchProtectionArgs, opts ...pulumi.ResourceOption) (*BranchProtection, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Pattern == nil {
return nil, errors.New("invalid value for required argument 'Pattern'")
}
if args.RepositoryId == nil {
return nil, errors.New("invalid value for required argument 'RepositoryId'")
}
var resource BranchProtection
err := ctx.RegisterResource("github:index/branchProtection:BranchProtection", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetBranchProtection gets an existing BranchProtection resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetBranchProtection(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *BranchProtectionState, opts ...pulumi.ResourceOption) (*BranchProtection, error) {
var resource BranchProtection
err := ctx.ReadResource("github:index/branchProtection:BranchProtection", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering BranchProtection resources.
type branchProtectionState struct {
// Boolean, setting this to `true` to allow the branch to be deleted.
AllowsDeletions *bool `pulumi:"allowsDeletions"`
// Boolean, setting this to `true` to allow force pushes on the branch.
AllowsForcePushes *bool `pulumi:"allowsForcePushes"`
// Boolean, setting this to `true` to block creating the branch.
BlocksCreations *bool `pulumi:"blocksCreations"`
// Boolean, setting this to `true` enforces status checks for repository administrators.
EnforceAdmins *bool `pulumi:"enforceAdmins"`
// Identifies the protection rule pattern.
Pattern *string `pulumi:"pattern"`
// The list of actor IDs that may push to the branch.
PushRestrictions []string `pulumi:"pushRestrictions"`
// The name or node ID of the repository associated with this branch protection rule.
RepositoryId *string `pulumi:"repositoryId"`
// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
RequireConversationResolution *bool `pulumi:"requireConversationResolution"`
// Boolean, setting this to `true` requires all commits to be signed with GPG.
RequireSignedCommits *bool `pulumi:"requireSignedCommits"`
// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
RequiredLinearHistory *bool `pulumi:"requiredLinearHistory"`
// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
RequiredPullRequestReviews []BranchProtectionRequiredPullRequestReview `pulumi:"requiredPullRequestReviews"`
// Enforce restrictions for required status checks. See Required Status Checks below for details.
RequiredStatusChecks []BranchProtectionRequiredStatusCheck `pulumi:"requiredStatusChecks"`
}
type BranchProtectionState struct {
// Boolean, setting this to `true` to allow the branch to be deleted.
AllowsDeletions pulumi.BoolPtrInput
// Boolean, setting this to `true` to allow force pushes on the branch.
AllowsForcePushes pulumi.BoolPtrInput
// Boolean, setting this to `true` to block creating the branch.
BlocksCreations pulumi.BoolPtrInput
// Boolean, setting this to `true` enforces status checks for repository administrators.
EnforceAdmins pulumi.BoolPtrInput
// Identifies the protection rule pattern.
Pattern pulumi.StringPtrInput
// The list of actor IDs that may push to the branch.
PushRestrictions pulumi.StringArrayInput
// The name or node ID of the repository associated with this branch protection rule.
RepositoryId pulumi.StringPtrInput
// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
RequireConversationResolution pulumi.BoolPtrInput
// Boolean, setting this to `true` requires all commits to be signed with GPG.
RequireSignedCommits pulumi.BoolPtrInput
// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
RequiredLinearHistory pulumi.BoolPtrInput
// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
RequiredPullRequestReviews BranchProtectionRequiredPullRequestReviewArrayInput
// Enforce restrictions for required status checks. See Required Status Checks below for details.
RequiredStatusChecks BranchProtectionRequiredStatusCheckArrayInput
}
func (BranchProtectionState) ElementType() reflect.Type {
return reflect.TypeOf((*branchProtectionState)(nil)).Elem()
}
type branchProtectionArgs struct {
// Boolean, setting this to `true` to allow the branch to be deleted.
AllowsDeletions *bool `pulumi:"allowsDeletions"`
// Boolean, setting this to `true` to allow force pushes on the branch.
AllowsForcePushes *bool `pulumi:"allowsForcePushes"`
// Boolean, setting this to `true` to block creating the branch.
BlocksCreations *bool `pulumi:"blocksCreations"`
// Boolean, setting this to `true` enforces status checks for repository administrators.
EnforceAdmins *bool `pulumi:"enforceAdmins"`
// Identifies the protection rule pattern.
Pattern string `pulumi:"pattern"`
// The list of actor IDs that may push to the branch.
PushRestrictions []string `pulumi:"pushRestrictions"`
// The name or node ID of the repository associated with this branch protection rule.
RepositoryId string `pulumi:"repositoryId"`
// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
RequireConversationResolution *bool `pulumi:"requireConversationResolution"`
// Boolean, setting this to `true` requires all commits to be signed with GPG.
RequireSignedCommits *bool `pulumi:"requireSignedCommits"`
// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
RequiredLinearHistory *bool `pulumi:"requiredLinearHistory"`
// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
RequiredPullRequestReviews []BranchProtectionRequiredPullRequestReview `pulumi:"requiredPullRequestReviews"`
// Enforce restrictions for required status checks. See Required Status Checks below for details.
RequiredStatusChecks []BranchProtectionRequiredStatusCheck `pulumi:"requiredStatusChecks"`
}
// The set of arguments for constructing a BranchProtection resource.
type BranchProtectionArgs struct {
// Boolean, setting this to `true` to allow the branch to be deleted.
AllowsDeletions pulumi.BoolPtrInput
// Boolean, setting this to `true` to allow force pushes on the branch.
AllowsForcePushes pulumi.BoolPtrInput
// Boolean, setting this to `true` to block creating the branch.
BlocksCreations pulumi.BoolPtrInput
// Boolean, setting this to `true` enforces status checks for repository administrators.
EnforceAdmins pulumi.BoolPtrInput
// Identifies the protection rule pattern.
Pattern pulumi.StringInput
// The list of actor IDs that may push to the branch.
PushRestrictions pulumi.StringArrayInput
// The name or node ID of the repository associated with this branch protection rule.
RepositoryId pulumi.StringInput
// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
RequireConversationResolution pulumi.BoolPtrInput
// Boolean, setting this to `true` requires all commits to be signed with GPG.
RequireSignedCommits pulumi.BoolPtrInput
// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
RequiredLinearHistory pulumi.BoolPtrInput
// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
RequiredPullRequestReviews BranchProtectionRequiredPullRequestReviewArrayInput
// Enforce restrictions for required status checks. See Required Status Checks below for details.
RequiredStatusChecks BranchProtectionRequiredStatusCheckArrayInput
}
func (BranchProtectionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*branchProtectionArgs)(nil)).Elem()
}
type BranchProtectionInput interface {
pulumi.Input
ToBranchProtectionOutput() BranchProtectionOutput
ToBranchProtectionOutputWithContext(ctx context.Context) BranchProtectionOutput
}
func (*BranchProtection) ElementType() reflect.Type {
return reflect.TypeOf((**BranchProtection)(nil)).Elem()
}
func (i *BranchProtection) ToBranchProtectionOutput() BranchProtectionOutput {
return i.ToBranchProtectionOutputWithContext(context.Background())
}
func (i *BranchProtection) ToBranchProtectionOutputWithContext(ctx context.Context) BranchProtectionOutput {
return pulumi.ToOutputWithContext(ctx, i).(BranchProtectionOutput)
}
// BranchProtectionArrayInput is an input type that accepts BranchProtectionArray and BranchProtectionArrayOutput values.
// You can construct a concrete instance of `BranchProtectionArrayInput` via:
//
// BranchProtectionArray{ BranchProtectionArgs{...} }
type BranchProtectionArrayInput interface {
pulumi.Input
ToBranchProtectionArrayOutput() BranchProtectionArrayOutput
ToBranchProtectionArrayOutputWithContext(context.Context) BranchProtectionArrayOutput
}
type BranchProtectionArray []BranchProtectionInput
func (BranchProtectionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*BranchProtection)(nil)).Elem()
}
func (i BranchProtectionArray) ToBranchProtectionArrayOutput() BranchProtectionArrayOutput {
return i.ToBranchProtectionArrayOutputWithContext(context.Background())
}
func (i BranchProtectionArray) ToBranchProtectionArrayOutputWithContext(ctx context.Context) BranchProtectionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BranchProtectionArrayOutput)
}
// BranchProtectionMapInput is an input type that accepts BranchProtectionMap and BranchProtectionMapOutput values.
// You can construct a concrete instance of `BranchProtectionMapInput` via:
//
// BranchProtectionMap{ "key": BranchProtectionArgs{...} }
type BranchProtectionMapInput interface {
pulumi.Input
ToBranchProtectionMapOutput() BranchProtectionMapOutput
ToBranchProtectionMapOutputWithContext(context.Context) BranchProtectionMapOutput
}
type BranchProtectionMap map[string]BranchProtectionInput
func (BranchProtectionMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*BranchProtection)(nil)).Elem()
}
func (i BranchProtectionMap) ToBranchProtectionMapOutput() BranchProtectionMapOutput {
return i.ToBranchProtectionMapOutputWithContext(context.Background())
}
func (i BranchProtectionMap) ToBranchProtectionMapOutputWithContext(ctx context.Context) BranchProtectionMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(BranchProtectionMapOutput)
}
type BranchProtectionOutput struct{ *pulumi.OutputState }
func (BranchProtectionOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BranchProtection)(nil)).Elem()
}
func (o BranchProtectionOutput) ToBranchProtectionOutput() BranchProtectionOutput {
return o
}
func (o BranchProtectionOutput) ToBranchProtectionOutputWithContext(ctx context.Context) BranchProtectionOutput {
return o
}
// Boolean, setting this to `true` to allow the branch to be deleted.
func (o BranchProtectionOutput) AllowsDeletions() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.BoolPtrOutput { return v.AllowsDeletions }).(pulumi.BoolPtrOutput)
}
// Boolean, setting this to `true` to allow force pushes on the branch.
func (o BranchProtectionOutput) AllowsForcePushes() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.BoolPtrOutput { return v.AllowsForcePushes }).(pulumi.BoolPtrOutput)
}
// Boolean, setting this to `true` to block creating the branch.
func (o BranchProtectionOutput) BlocksCreations() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.BoolPtrOutput { return v.BlocksCreations }).(pulumi.BoolPtrOutput)
}
// Boolean, setting this to `true` enforces status checks for repository administrators.
func (o BranchProtectionOutput) EnforceAdmins() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.BoolPtrOutput { return v.EnforceAdmins }).(pulumi.BoolPtrOutput)
}
// Identifies the protection rule pattern.
func (o BranchProtectionOutput) Pattern() pulumi.StringOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.StringOutput { return v.Pattern }).(pulumi.StringOutput)
}
// The list of actor IDs that may push to the branch.
func (o BranchProtectionOutput) PushRestrictions() pulumi.StringArrayOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.StringArrayOutput { return v.PushRestrictions }).(pulumi.StringArrayOutput)
}
// The name or node ID of the repository associated with this branch protection rule.
func (o BranchProtectionOutput) RepositoryId() pulumi.StringOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.StringOutput { return v.RepositoryId }).(pulumi.StringOutput)
}
// Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
func (o BranchProtectionOutput) RequireConversationResolution() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.BoolPtrOutput { return v.RequireConversationResolution }).(pulumi.BoolPtrOutput)
}
// Boolean, setting this to `true` requires all commits to be signed with GPG.
func (o BranchProtectionOutput) RequireSignedCommits() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.BoolPtrOutput { return v.RequireSignedCommits }).(pulumi.BoolPtrOutput)
}
// Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
func (o BranchProtectionOutput) RequiredLinearHistory() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BranchProtection) pulumi.BoolPtrOutput { return v.RequiredLinearHistory }).(pulumi.BoolPtrOutput)
}
// Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
func (o BranchProtectionOutput) RequiredPullRequestReviews() BranchProtectionRequiredPullRequestReviewArrayOutput {
return o.ApplyT(func(v *BranchProtection) BranchProtectionRequiredPullRequestReviewArrayOutput {
return v.RequiredPullRequestReviews
}).(BranchProtectionRequiredPullRequestReviewArrayOutput)
}
// Enforce restrictions for required status checks. See Required Status Checks below for details.
func (o BranchProtectionOutput) RequiredStatusChecks() BranchProtectionRequiredStatusCheckArrayOutput {
return o.ApplyT(func(v *BranchProtection) BranchProtectionRequiredStatusCheckArrayOutput {
return v.RequiredStatusChecks
}).(BranchProtectionRequiredStatusCheckArrayOutput)
}
type BranchProtectionArrayOutput struct{ *pulumi.OutputState }
func (BranchProtectionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*BranchProtection)(nil)).Elem()
}
func (o BranchProtectionArrayOutput) ToBranchProtectionArrayOutput() BranchProtectionArrayOutput {
return o
}
func (o BranchProtectionArrayOutput) ToBranchProtectionArrayOutputWithContext(ctx context.Context) BranchProtectionArrayOutput {
return o
}
func (o BranchProtectionArrayOutput) Index(i pulumi.IntInput) BranchProtectionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *BranchProtection {
return vs[0].([]*BranchProtection)[vs[1].(int)]
}).(BranchProtectionOutput)
}
type BranchProtectionMapOutput struct{ *pulumi.OutputState }
func (BranchProtectionMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*BranchProtection)(nil)).Elem()
}
func (o BranchProtectionMapOutput) ToBranchProtectionMapOutput() BranchProtectionMapOutput {
return o
}
func (o BranchProtectionMapOutput) ToBranchProtectionMapOutputWithContext(ctx context.Context) BranchProtectionMapOutput {
return o
}
func (o BranchProtectionMapOutput) MapIndex(k pulumi.StringInput) BranchProtectionOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *BranchProtection {
return vs[0].(map[string]*BranchProtection)[vs[1].(string)]
}).(BranchProtectionOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*BranchProtectionInput)(nil)).Elem(), &BranchProtection{})
pulumi.RegisterInputType(reflect.TypeOf((*BranchProtectionArrayInput)(nil)).Elem(), BranchProtectionArray{})
pulumi.RegisterInputType(reflect.TypeOf((*BranchProtectionMapInput)(nil)).Elem(), BranchProtectionMap{})
pulumi.RegisterOutputType(BranchProtectionOutput{})
pulumi.RegisterOutputType(BranchProtectionArrayOutput{})
pulumi.RegisterOutputType(BranchProtectionMapOutput{})
}