Update format of secret to return both raw and decoded when possible (#1372)
This commit is contained in:
1 parent
77bafcab71
commit
7c3d5be4f6
15 files changed
+409
-327
No files matched your search
@@ -1,9 +1,7 @@
|
||||
// Code generated by "make api"; DO NOT EDIT.
|
||||
package targets
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type SessionCredential struct {
|
||||
CredentialLibrary *CredentialLibrary `json:"credential_library,omitempty"`
|
||||
Secret json.RawMessage `json:"secret,omitempty"`
|
||||
Secret *SessionSecret `json:"secret,omitempty"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Code generated by "make api"; DO NOT EDIT.
|
||||
package targets
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type SessionSecret struct {
|
||||
Raw json.RawMessage `json:"raw,omitempty"`
|
||||
Decoded map[string]interface{} `json:"decoded,omitempty"`
|
||||
}
|
||||
Reference in new issue
Block a user