Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatResult ¶
type CreatResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *gophercloud.ServiceClient, opt CreateUserOptsBuilder) (r CreatResult)
func (CreatResult) ExtractCreate ¶
func (r CreatResult) ExtractCreate() (*User, error)
type CreateUserOpts ¶
type CreateUserOpts struct { Areacode string `json:"areacode,omitempty"` Description string `json:"description,omitempty"` DomainId string `json:"domain_id,omitempty"` Email string `json:"email,omitempty"` Enabled *bool `json:"enabled,omitempty"` Name string `json:"name" required:"true"` Password string `json:"password,omitempty"` Phone string `json:"phone,omitempty"` PwdStatus *bool `json:"pwd_status,omitempty"` XuserId string `json:"xuser_id,omitempty"` XuserType string `json:"xuser_type,omitempty"` }
func (CreateUserOpts) ToUserCreateMap ¶
func (opts CreateUserOpts) ToUserCreateMap() (map[string]interface{}, error)
type CreateUserOptsBuilder ¶
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(client *gophercloud.ServiceClient, userId string) (r GetResult)
func (GetResult) ExtractGet ¶
func (r GetResult) ExtractGet() (*UserDetail, error)
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func UpdateUserInfo ¶
func UpdateUserInfo(client *gophercloud.ServiceClient, userId string, opt UpdateUserInfoOptsBuilder) (r UpdateResult)
func UpdateUserInfoByAdmin ¶
func UpdateUserInfoByAdmin(client *gophercloud.ServiceClient, userId string, opt UpdateUserOptsBuilder) (r UpdateResult)
func (UpdateResult) ExtractUpdate ¶
func (r UpdateResult) ExtractUpdate() (*UserInfo, error)
type UpdateUserInfoOpts ¶
type UpdateUserInfoOpts struct { Email string `json:"email,omitempty"` Mobile string `json:"mobile,omitempty"` }
func (UpdateUserInfoOpts) ToUserInfoUpdateMap ¶
func (opts UpdateUserInfoOpts) ToUserInfoUpdateMap() (map[string]interface{}, error)
type UpdateUserOpts ¶
type UpdateUserOpts struct { Areacode string `json:"areacode,omitempty"` Description string `json:"description,omitempty"` Email string `json:"email,omitempty"` Enabled *bool `json:"enabled,omitempty"` Name string `json:"name,omitempty"` Password string `json:"password,omitempty"` Phone string `json:"phone,omitempty"` PwdStatus *bool `json:"pwd_status,omitempty"` XuserId string `json:"xuser_id,omitempty"` XuserType string `json:"xuser_type,omitempty"` }
func (UpdateUserOpts) ToUserUpdateMap ¶
func (opts UpdateUserOpts) ToUserUpdateMap() (map[string]interface{}, error)
type UpdateUserOptsBuilder ¶
type User ¶
type User struct { Areacode string `json:"areacode"` DomainId string `json:"domain_id"` Email string `json:"email"` Enabled bool `json:"enabled"` Id string `json:"id"` Name string `json:"name"` Phone string `json:"phone"` PwdStatus bool `json:"pwd_status"` XUserId string `json:"xuser_id"` XUserType string `json:"xuser_type"` CreateTime string `json:"create_time"` Description string `json:"description"` IsDomainOwner string `json:"is_domain_owner"` PasswordExpiresAt string `json:"password_expires_at"` XdomainId string `json:"xdomain_id"` XdomainType string `json:"xdomain_type"` Status int `json:"status"` }
type UserDetail ¶
type UserDetail struct { Areacode string `json:"areacode"` DomainId string `json:"domain_id"` Email string `json:"email"` Enabled bool `json:"enabled"` Id string `json:"id"` Name string `json:"name"` Phone string `json:"phone"` PwdStatus bool `json:"pwd_status"` UpdateTime string `json:"update_time"` XUserId string `json:"xuser_id"` XUserType string `json:"xuser_type"` Links map[string]interface{} `json:"links"` }
type UserInfo ¶
type UserInfo struct { Areacode string `json:"areacode"` DomainId string `json:"domain_id"` Email string `json:"email"` Enabled bool `json:"enabled"` Id string `json:"id"` Name string `json:"name"` Phone string `json:"phone"` PwdStatus bool `json:"pwd_status"` XUserId string `json:"xuser_id"` XUserType string `json:"xuser_type"` Description string `json:"description"` PasswordExpiresAt string `json:"password_expires_at"` Links map[string]interface{} `json:"links"` }
Click to show internal directories.
Click to hide internal directories.