// GENERATED, DO NOT EDIT THIS FILE package github import ( "github.com/cloudskiff/driftctl/pkg/resource" "github.com/zclconf/go-cty/cty" ) const GithubTeamResourceType = "github_team" type GithubTeam struct { CreateDefaultMaintainer *bool `cty:"create_default_maintainer"` Description *string `cty:"description"` Etag *string `cty:"etag" computed:"true" diff:"-"` Id string `cty:"id" computed:"true"` LdapDn *string `cty:"ldap_dn"` MembersCount *int `cty:"members_count" computed:"true"` Name *string `cty:"name"` NodeId *string `cty:"node_id" computed:"true"` ParentTeamId *int `cty:"parent_team_id"` Privacy *string `cty:"privacy"` Slug *string `cty:"slug" computed:"true"` CtyVal *cty.Value `diff:"-"` } func (r *GithubTeam) TerraformId() string { return r.Id } func (r *GithubTeam) TerraformType() string { return GithubTeamResourceType } func (r *GithubTeam) CtyValue() *cty.Value { return r.CtyVal } func initGithubTeamMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) { resourceSchemaRepository.SetNormalizeFunc(GithubTeamResourceType, func(res *resource.AbstractResource) { val := res.Attrs if defaultMaintainer, exist := val.Get("create_default_maintainer"); !exist || defaultMaintainer == nil { (*val)["create_default_maintainer"] = false } val.SafeDelete([]string{"etag"}) }) }