aboutsummaryrefslogtreecommitdiffstats
path: root/drive/share.go
diff options
context:
space:
mode:
Diffstat (limited to 'drive/share.go')
-rw-r--r--drive/share.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/drive/share.go b/drive/share.go
index 69b9c7d..e942c17 100644
--- a/drive/share.go
+++ b/drive/share.go
@@ -13,6 +13,7 @@ type ShareArgs struct {
Role string
Type string
Email string
+ Domain string
Discoverable bool
}
@@ -22,6 +23,7 @@ func (self *Drive) Share(args ShareArgs) error {
Role: args.Role,
Type: args.Type,
EmailAddress: args.Email,
+ Domain: args.Domain,
}
_, err := self.service.Permissions.Create(args.FileId, permission).Do()