Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions openstack/identity/v3/users/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ type CreateOpts struct {

// Password is the password of the new user.
Password string `json:"password,omitempty"`

// Description is a description of the user.
Description string `json:"description,omitempty"`
}

// ToUserCreateMap formats a CreateOpts into a create request.
Expand Down Expand Up @@ -133,6 +136,9 @@ type UpdateOpts struct {

// Password is the password of the new user.
Password string `json:"password,omitempty"`

// Description is a description of the user.
Description string `json:"description,omitempty"`
}

// ToUserUpdateMap formats a UpdateOpts into an update request.
Expand Down
3 changes: 3 additions & 0 deletions openstack/identity/v3/users/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ type User struct {
// DefaultProjectID is the ID of the default project of the user.
DefaultProjectID string `json:"default_project_id"`

// Description is a description of the user.
Description string `json:"description"`

// DomainID is the domain ID the user belongs to.
DomainID string `json:"domain_id"`

Expand Down