This repository was archived by the owner on Jun 27, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ GOVERSION := 1.12
19
19
PROJECT := github.com/DeviaVir/terraform-provider-gsuite
20
20
OWNER := $(notdir $(patsubst % /,% ,$(dir $(PROJECT ) ) ) )
21
21
NAME := $(notdir $(PROJECT ) )
22
- VERSION := 0.1.20
22
+ VERSION := 0.1.21
23
23
EXTERNAL_TOOLS = \
24
24
github.com/golang/dep/cmd/dep
25
25
Original file line number Diff line number Diff line change
1
+ # Make sure you have allowed the domain scope before you try to use the
2
+ # gsuite_domain resources.
3
+ #
4
+ # https://www.googleapis.com/auth/admin.directory.domain
5
+ # https://github.com/DeviaVir/terraform-provider-gsuite/issues/65#issuecomment-492879619
6
+
1
7
resource "gsuite_domain" "my_domain" {
2
8
domain_name = " example.com"
3
9
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func dataUser() *schema.Resource {
22
22
23
23
"org_unit_path" : {
24
24
Type : schema .TypeString ,
25
- Required : true ,
25
+ Computed : true ,
26
26
},
27
27
28
28
"aliases" : {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import (
14
14
func flattenUserName (name * directory.UserName ) map [string ]interface {} {
15
15
return map [string ]interface {}{
16
16
"family_name" : name .FamilyName ,
17
- "full_name" : name .FullName ,
18
17
"given_name" : name .GivenName ,
19
18
}
20
19
}
@@ -118,10 +117,6 @@ func resourceUser() *schema.Resource {
118
117
Type : schema .TypeString ,
119
118
Required : true ,
120
119
},
121
- "full_name" : {
122
- Type : schema .TypeString ,
123
- Computed : true ,
124
- },
125
120
"given_name" : {
126
121
Type : schema .TypeString ,
127
122
Required : true ,
@@ -197,7 +192,8 @@ func resourceUser() *schema.Resource {
197
192
198
193
"org_unit_path" : {
199
194
Type : schema .TypeString ,
200
- Required : true ,
195
+ Optional : true ,
196
+ Default : "/" ,
201
197
},
202
198
203
199
"ssh_public_keys" : {
You can’t perform that action at this time.
0 commit comments