-
Notifications
You must be signed in to change notification settings - Fork 9
/
getTeam.go
42 lines (37 loc) · 1.25 KB
/
getTeam.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package github
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Use this data source to retrieve information about a GitHub team.
func LookupTeam(ctx *pulumi.Context, args *LookupTeamArgs, opts ...pulumi.InvokeOption) (*LookupTeamResult, error) {
var rv LookupTeamResult
err := ctx.Invoke("github:index/getTeam:getTeam", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getTeam.
type LookupTeamArgs struct {
// The team slug.
Slug string `pulumi:"slug"`
}
// A collection of values returned by getTeam.
type LookupTeamResult struct {
// the team's description.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// List of team members
Members []string `pulumi:"members"`
// the team's full name.
Name string `pulumi:"name"`
NodeId string `pulumi:"nodeId"`
// the team's permission level.
Permission string `pulumi:"permission"`
// the team's privacy type.
Privacy string `pulumi:"privacy"`
Slug string `pulumi:"slug"`
}