Re: [go-nuts] Re: Working with import "google.golang.org/api/admin/directory/v1"

2018-08-26 Thread John More
Silviu, Thank You. It was my birthday yesterday and I spent all day trying to follow the source code trail and you provided a great birthday present. It worked as you advised and I am sure I will have many more occasions to use this. One side effect of my day going through the library source code w

[go-nuts] Re: Working with import "google.golang.org/api/admin/directory/v1"

2018-08-26 Thread silviucapota
Hi John If you look at the source code, you will notice that the User struct they have makes use of a custom MarshallJSON method, which accepts ForceSendFields (as defined inside the User type) So what you might need to do, is add that "Suspended" into that slice and it will marshall it to JSO