openapi: A few fixes for display attributes (#20549)
This commit is contained in:
parent
05f3236c15
commit
31d33f189f
|
@ -1077,7 +1077,6 @@ Overrides secret_id_ttl role option when supplied. May not be longer than role's
|
|||
Pattern: "role/" + framework.GenericNameRegex("role_name") + "/secret-id/destroy/?$",
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationPrefix: operationPrefixAppRole,
|
||||
OperationSuffix: "secret-id",
|
||||
OperationVerb: "destroy",
|
||||
},
|
||||
Fields: map[string]*framework.FieldSchema{
|
||||
|
@ -1094,6 +1093,9 @@ Overrides secret_id_ttl role option when supplied. May not be longer than role's
|
|||
logical.UpdateOperation: &framework.PathOperation{
|
||||
Callback: b.pathRoleSecretIDDestroyUpdateDelete,
|
||||
Responses: responseNoContent,
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationSuffix: "secret-id",
|
||||
},
|
||||
},
|
||||
logical.DeleteOperation: &framework.PathOperation{
|
||||
Callback: b.pathRoleSecretIDDestroyUpdateDelete,
|
||||
|
@ -1183,7 +1185,6 @@ Overrides secret_id_ttl role option when supplied. May not be longer than role's
|
|||
Pattern: "role/" + framework.GenericNameRegex("role_name") + "/secret-id-accessor/destroy/?$",
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationPrefix: operationPrefixAppRole,
|
||||
OperationSuffix: "secret-id-by-accessor",
|
||||
OperationVerb: "destroy",
|
||||
},
|
||||
Fields: map[string]*framework.FieldSchema{
|
||||
|
@ -1200,6 +1201,9 @@ Overrides secret_id_ttl role option when supplied. May not be longer than role's
|
|||
logical.UpdateOperation: &framework.PathOperation{
|
||||
Callback: b.pathRoleSecretIDAccessorDestroyUpdateDelete,
|
||||
Responses: responseNoContent,
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationSuffix: "secret-id-by-accessor",
|
||||
},
|
||||
},
|
||||
logical.DeleteOperation: &framework.PathOperation{
|
||||
Callback: b.pathRoleSecretIDAccessorDestroyUpdateDelete,
|
||||
|
|
|
@ -233,7 +233,7 @@ func (b *backend) pathListRoles() *framework.Path {
|
|||
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationPrefix: operationPrefixAWS,
|
||||
OperationSuffix: "roles2",
|
||||
OperationSuffix: "auth-roles2",
|
||||
},
|
||||
|
||||
Operations: map[logical.Operation]framework.OperationHandler{
|
||||
|
|
|
@ -57,7 +57,7 @@ func pathUser(b *backend) *framework.Path {
|
|||
logical.UpdateOperation: &framework.PathOperation{
|
||||
Callback: b.pathCredsRead,
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationSuffix: "credentials2|sts-credentials2",
|
||||
OperationSuffix: "credentials-with-parameters|sts-credentials-with-parameters",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -527,7 +527,8 @@ func oidcProviderPaths(i *IdentityStore) []*framework.Path {
|
|||
logical.UpdateOperation: &framework.PathOperation{
|
||||
Callback: i.pathOIDCAuthorize,
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationVerb: "authorize2",
|
||||
OperationVerb: "authorize",
|
||||
OperationSuffix: "with-parameters",
|
||||
},
|
||||
ForwardPerformanceStandby: true,
|
||||
ForwardPerformanceSecondary: false,
|
||||
|
|
|
@ -2214,7 +2214,7 @@ func (b *SystemBackend) internalPaths() []*framework.Path {
|
|||
logical.UpdateOperation: &framework.PathOperation{
|
||||
Callback: b.pathInternalOpenAPI,
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
OperationSuffix: "open-api-document2",
|
||||
OperationSuffix: "open-api-document-with-parameters",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue