backport of commit 18e6385e0589895c354e0d2aed95e8321f1ee84f (#24328)
Co-authored-by: Mike Palmiotto <mike.palmiotto@hashicorp.com>
This commit is contained in:
parent
5efd02708e
commit
337be44a90
|
@ -68,8 +68,10 @@ func entityPaths(i *IdentityStore) []*framework.Path {
|
||||||
},
|
},
|
||||||
|
|
||||||
Fields: entityPathFields(),
|
Fields: entityPathFields(),
|
||||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
Operations: map[logical.Operation]framework.OperationHandler{
|
||||||
logical.UpdateOperation: i.handleEntityUpdateCommon(),
|
logical.UpdateOperation: &framework.PathOperation{
|
||||||
|
Callback: i.handleEntityUpdateCommon(),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
HelpSynopsis: strings.TrimSpace(entityHelp["entity"][0]),
|
HelpSynopsis: strings.TrimSpace(entityHelp["entity"][0]),
|
||||||
|
@ -158,8 +160,10 @@ func entityPaths(i *IdentityStore) []*framework.Path {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
Operations: map[logical.Operation]framework.OperationHandler{
|
||||||
logical.UpdateOperation: i.handleEntityBatchDelete(),
|
logical.UpdateOperation: &framework.PathOperation{
|
||||||
|
Callback: i.handleEntityBatchDelete(),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
HelpSynopsis: strings.TrimSpace(entityHelp["batch-delete"][0]),
|
HelpSynopsis: strings.TrimSpace(entityHelp["batch-delete"][0]),
|
||||||
|
@ -173,8 +177,10 @@ func entityPaths(i *IdentityStore) []*framework.Path {
|
||||||
OperationSuffix: "by-name",
|
OperationSuffix: "by-name",
|
||||||
},
|
},
|
||||||
|
|
||||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
Operations: map[logical.Operation]framework.OperationHandler{
|
||||||
logical.ListOperation: i.pathEntityNameList(),
|
logical.ListOperation: &framework.PathOperation{
|
||||||
|
Callback: i.pathEntityNameList(),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
HelpSynopsis: strings.TrimSpace(entityHelp["entity-name-list"][0]),
|
HelpSynopsis: strings.TrimSpace(entityHelp["entity-name-list"][0]),
|
||||||
|
@ -188,8 +194,10 @@ func entityPaths(i *IdentityStore) []*framework.Path {
|
||||||
OperationSuffix: "by-id",
|
OperationSuffix: "by-id",
|
||||||
},
|
},
|
||||||
|
|
||||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
Operations: map[logical.Operation]framework.OperationHandler{
|
||||||
logical.ListOperation: i.pathEntityIDList(),
|
logical.ListOperation: &framework.PathOperation{
|
||||||
|
Callback: i.pathEntityIDList(),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
HelpSynopsis: strings.TrimSpace(entityHelp["entity-id-list"][0]),
|
HelpSynopsis: strings.TrimSpace(entityHelp["entity-id-list"][0]),
|
||||||
|
@ -221,8 +229,10 @@ func entityPaths(i *IdentityStore) []*framework.Path {
|
||||||
Description: "Setting this will follow the 'mine' strategy for merging MFA secrets. If there are secrets of the same type both in entities that are merged from and in entity into which all others are getting merged, secrets in the destination will be unaltered. If not set, this API will throw an error containing all the conflicts.",
|
Description: "Setting this will follow the 'mine' strategy for merging MFA secrets. If there are secrets of the same type both in entities that are merged from and in entity into which all others are getting merged, secrets in the destination will be unaltered. If not set, this API will throw an error containing all the conflicts.",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
Operations: map[logical.Operation]framework.OperationHandler{
|
||||||
logical.UpdateOperation: i.pathEntityMergeID(),
|
logical.UpdateOperation: &framework.PathOperation{
|
||||||
|
Callback: i.pathEntityMergeID(),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
HelpSynopsis: strings.TrimSpace(entityHelp["entity-merge-id"][0]),
|
HelpSynopsis: strings.TrimSpace(entityHelp["entity-merge-id"][0]),
|
||||||
|
|
Loading…
Reference in New Issue