openapi: A few fixes for display attributes (#20549)

This commit is contained in:
Anton Averchenkov 2023-05-11 17:20:11 -04:00 committed by GitHub
parent 05f3236c15
commit 31d33f189f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 6 deletions

View File

@ -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,

View File

@ -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{

View File

@ -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",
},
},
},

View File

@ -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,

View File

@ -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",
},
},
},