From 5b7f1359144cfea225237626dd6f7f244b04150a Mon Sep 17 00:00:00 2001 From: ShiChangkuo Date: Tue, 4 Feb 2020 12:01:49 +0800 Subject: [PATCH] [identity]Support Description parameter in users --- openstack/identity/v3/users/requests.go | 6 ++++++ openstack/identity/v3/users/results.go | 3 +++ 2 files changed, 9 insertions(+) diff --git a/openstack/identity/v3/users/requests.go b/openstack/identity/v3/users/requests.go index 6c6f74bc0..d03e954b9 100644 --- a/openstack/identity/v3/users/requests.go +++ b/openstack/identity/v3/users/requests.go @@ -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. @@ -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. diff --git a/openstack/identity/v3/users/results.go b/openstack/identity/v3/users/results.go index 969a9f889..ccb07657b 100644 --- a/openstack/identity/v3/users/results.go +++ b/openstack/identity/v3/users/results.go @@ -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"`