Update Lego (Gandi API v5, cloudxns, ...)
This commit is contained in:
parent
dd873fbeee
commit
7d3dd5a0e4
43 changed files with 4112 additions and 1238 deletions
43
vendor/github.com/exoscale/egoscale/users.go
generated
vendored
Normal file
43
vendor/github.com/exoscale/egoscale/users.go
generated
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
package egoscale
|
||||
|
||||
// User represents a User
|
||||
type User struct {
|
||||
Account string `json:"account,omitempty"`
|
||||
AccountID string `json:"accountid,omitempty"`
|
||||
AccountType string `json:"accounttype,omitempty"`
|
||||
APIKey string `json:"apikey,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
Domain string `json:"domain,omitempty"`
|
||||
DomainID string `json:"domainid,omitempty"`
|
||||
Email string `json:"email,omitempty"`
|
||||
FirstName string `json:"firstname,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
IsCallerChildDomain bool `json:"iscallerchilddomain,omitempty"`
|
||||
IsDefault bool `json:"isdefault,omitempty"`
|
||||
LastName string `json:"lastname,omitempty"`
|
||||
SecretKey string `json:"secretkey,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
UserName string `json:"username,omitempty"`
|
||||
}
|
||||
|
||||
// RegisterUserKeys registers a new set of key of the given user
|
||||
//
|
||||
// CloudStack API: http://cloudstack.apache.org/api/apidocs-4.10/apis/registerUserKeys.html
|
||||
type RegisterUserKeys struct {
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
func (*RegisterUserKeys) name() string {
|
||||
return "registerUserKeys"
|
||||
}
|
||||
|
||||
func (*RegisterUserKeys) response() interface{} {
|
||||
return new(RegisterUserKeysResponse)
|
||||
}
|
||||
|
||||
// RegisterUserKeysResponse represents a new set of UserKeys
|
||||
//
|
||||
// NB: only the APIKey and SecretKey will be filled
|
||||
type RegisterUserKeysResponse struct {
|
||||
UserKeys User `json:"userkeys"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue