forked from zambien/go-apigee-edge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.go
26 lines (22 loc) · 828 Bytes
/
common.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
package apigee
type Attribute struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
}
type CredentialApiProduct struct {
ApiProduct string `json:"apiproduct,omitempty"`
Status string `json:"status,omitempty"`
}
type Credential struct {
ApiProducts []CredentialApiProduct `json:"apiProducts,omitempty"`
Attributes []Attribute `json:"attributes,omitempty"`
ConsumerKey string `json:"consumerKey,omitempty"`
ConsumerSecret string `json:"consumerSecret,omitempty"`
ExpiresAt int `json:"expiresAt,omitempty"`
IssuedAt int `json:"issuedAt,omitempty"`
Scopes []string `json:"scopes,omitempty"`
}
//This is just a placeholder
type App struct {
ApigeeId string
}