aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xanzy/go-gitlab/users.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-03 13:29:29 +0000
committerGitHub <noreply@github.com>2019-11-03 13:29:29 +0000
commit16bd116971bb7abc7308e95c474b433512672432 (patch)
tree9ff0abe956baed511f47b456f94863fec2e08cf3 /vendor/github.com/xanzy/go-gitlab/users.go
parent8c7c9880b1adcf876ad63ea39e46e62bd7ebde5d (diff)
parent4666763d4dfc5623ee2b2423a759de50aad151b7 (diff)
downloadgit-bug-16bd116971bb7abc7308e95c474b433512672432.tar.gz
Merge pull request #234 from MichaelMure/dependabot/dep/github.com/xanzy/go-gitlab-0.21.0
build(deps): bump github.com/xanzy/go-gitlab from 0.20.0 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.go13
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