-
Notifications
You must be signed in to change notification settings - Fork 132
/
type_auth.go
28 lines (24 loc) · 893 Bytes
/
type_auth.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package ovh
import (
"time"
"github.com/ovh/go-ovh/ovh"
)
type OvhAuthCurrentCredential struct {
OvhSupport bool `json:"ovhSupport"`
Status string `json:"status"`
ApplicationId int64 `json:"applicationId"`
CredentialId int64 `json:"credentialId"`
Rules []ovh.AccessRule `json:"rules"`
Expiration time.Time `json:"expiration"`
LastUse time.Time `json:"lastUse"`
Creation time.Time `json:"creation"`
}
type OvhAuthDetails struct {
Account string `json:"account"`
AllowedRoutes []ovh.AccessRule `json:"allowedRoutes"`
Description string `json:"description"`
Identities []string `json:"identities"`
Method string `json:"method"`
Roles []string `json:"roles"`
User string `json:"user"`
}