diff options
author | amine <hilalyamine@gmail.com> | 2019-10-24 20:45:02 +0200 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-10-24 20:45:02 +0200 |
commit | a3a431edac978e20ab1887b902ee7240683f7d95 (patch) | |
tree | 79cc256c3e7cb2349174e77a33a6eb74c235b9f9 /vendor/github.com/xanzy/go-gitlab/users.go | |
parent | 683040dd7a26878a05902a98378c2ed0d5bf23ee (diff) | |
download | git-bug-a3a431edac978e20ab1887b902ee7240683f7d95.tar.gz |
vendors: upgrade github.com/xanzy/go-gitlab dependencies to 0.21.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/users.go')
-rw-r--r-- | vendor/github.com/xanzy/go-gitlab/users.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/users.go b/vendor/github.com/xanzy/go-gitlab/users.go index b6e68b68..c8015cda 100644 --- a/vendor/github.com/xanzy/go-gitlab/users.go +++ b/vendor/github.com/xanzy/go-gitlab/users.go @@ -37,6 +37,17 @@ type UsersService struct { client *Client } +// BasicUser included in other service responses (such as merge requests, pipelines, etc). +type BasicUser struct { + ID int `json:"id"` + Username string `json:"username"` + Name string `json:"name"` + State string `json:"state"` + CreatedAt *time.Time `json:"created_at"` + AvatarURL string `json:"avatar_url"` + WebURL string `json:"web_url"` +} + // User represents a GitLab user. // // GitLab API docs: https://docs.gitlab.com/ee/api/users.html @@ -163,6 +174,7 @@ type CreateUserOptions struct { CanCreateGroup *bool `url:"can_create_group,omitempty" json:"can_create_group,omitempty"` SkipConfirmation *bool `url:"skip_confirmation,omitempty" json:"skip_confirmation,omitempty"` External *bool `url:"external,omitempty" json:"external,omitempty"` + PrivateProfile *bool `url:"private_profile,omitempty" json:"private_profile,omitempty"` } // CreateUser creates a new user. Note only administrators can create new users. @@ -205,6 +217,7 @@ type ModifyUserOptions struct { CanCreateGroup *bool `url:"can_create_group,omitempty" json:"can_create_group,omitempty"` SkipReconfirmation *bool `url:"skip_reconfirmation,omitempty" json:"skip_reconfirmation,omitempty"` External *bool `url:"external,omitempty" json:"external,omitempty"` + PrivateProfile *bool `url:"private_profile,omitempty" json:"private_profile,omitempty"` } // ModifyUser modifies an existing user. Only administrators can change attributes |