This is an automated email from the ASF dual-hosted git repository.

yasithdev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/master by this push:
     new 69d14ec25a Regenerate MCP client (#769)
69d14ec25a is described below

commit 69d14ec25ab8ae3e70b6b530bcba5a12245d3838
Author: Yasith Jayawardana <[email protected]>
AuthorDate: Thu Nov 12 10:48:16 2026 -0500

    Regenerate MCP client (#769)
---
 internal/mcp/client/client.gen.go | 243 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 240 insertions(+), 3 deletions(-)

diff --git a/internal/mcp/client/client.gen.go 
b/internal/mcp/client/client.gen.go
index 3bdec2bbb1..9ca90453df 100644
--- a/internal/mcp/client/client.gen.go
+++ b/internal/mcp/client/client.gen.go
@@ -793,8 +793,11 @@ type ClusterPartitionResponse struct {
 
 // CurrentUser defines model for CurrentUser.
 type CurrentUser struct {
-       Admin       bool       `json:"admin"`
-       Authorities []string   `json:"authorities"`
+       Admin       bool     `json:"admin"`
+       Authorities []string `json:"authorities"`
+
+       // Permissions What the caller's roles grant, sorted, such as 
`audit:read`.
+       Permissions []string   `json:"permissions"`
        Status      UserStatus `json:"status"`
 
        // User The caller's user record, or null if they have none.
@@ -1064,6 +1067,15 @@ type OutputMapping struct {
        Value *string `json:"value,omitempty"`
 }
 
+// Permission defines model for Permission.
+type Permission struct {
+       Description               string `json:"description"`
+       GrantableToServiceAccount bool   `json:"grantableToServiceAccount"`
+
+       // Permission `resource:action`, such as `process:list`.
+       Permission string `json:"permission"`
+}
+
 // ProcessRequest The create/update payload for a process. There is no owner 
field. Which
 // sections a body may carry follows from its type: a `BATCH_JOB` without a
 // `batchProcess` describes no job at all, and a `batchProcess` on any other 
kind
@@ -1173,6 +1185,9 @@ type ServiceAccountCreate struct {
        // Name Becomes the account's user id as `sa:<name>`.
        Name string `json:"name"`
 
+       // Permissions What the account may do, such as `process:list`. Empty 
or absent means it can act only on its own records and what is shared with it. 
Refused with 400: an unknown permission, and `admin:manage`, `user:update_any` 
and `serviceaccount:manage`, which no service account may hold. Refused with 
403: a permission the caller does not hold themselves.
+       Permissions *[]string `json:"permissions,omitempty"`
+
        // ValidityDays How long the first token lives. Defaults to 90.
        ValidityDays *int `json:"validityDays,omitempty"`
 }
@@ -1189,6 +1204,9 @@ type ServiceAccountResponse struct {
        Email       *string `json:"email"`
        Name        string  `json:"name"`
 
+       // Permissions What the account may do, sorted.
+       Permissions []string `json:"permissions"`
+
        // ServiceAccountId `sa:<name>`
        ServiceAccountId string      `json:"serviceAccountId"`
        Status           *UserStatus `json:"status"`
@@ -1220,7 +1238,10 @@ type ServiceAccountUpdate struct {
        Description *string              `json:"description,omitempty"`
        DisplayName *string              `json:"displayName,omitempty"`
        Email       *openapi_types.Email `json:"email,omitempty"`
-       Status      *UserStatus          `json:"status,omitempty"`
+
+       // Permissions Replaces the account's whole set; an empty list removes 
every grant, and absent leaves the set as it is. Takes effect on the account's 
next request. The same rules as on create apply to what is being added.
+       Permissions *[]string   `json:"permissions,omitempty"`
+       Status      *UserStatus `json:"status,omitempty"`
 }
 
 // ShareRequest A grant. The same body for every shareable record: the record 
is named by the path, and the subject's kind is principalType rather than a 
separate endpoint.
@@ -2148,6 +2169,16 @@ type ClientInterface interface {
        // Corresponds with PUT /api/v1/groups/{groupId}/members/{userId} (the 
`UpdateGroupMember` operationId).
        UpdateGroupMember(ctx context.Context, groupId GroupId, userId UserId, 
body UpdateGroupMemberJSONRequestBody, reqEditors ...RequestEditorFn) 
(*http.Response, error)
 
+       // ListPermissions List permissions
+       //
+       // Any signed-in caller. Every permission that exists, with a 
description of what it
+       // allows, sorted by name. `grantableToServiceAccount` is false for the 
permissions no
+       // service account may hold. What a caller may grant from the list is 
decided where
+       // the grant is made. See docs/auth.md.
+       //
+       // Corresponds with GET /api/v1/permissions (the `ListPermissions` 
operationId).
+       ListPermissions(ctx context.Context, reqEditors ...RequestEditorFn) 
(*http.Response, error)
+
        // ListProcesses List processes
        //
        // The unfiltered listing is admin only. Supplying `deploymentId` 
narrows it to
@@ -4055,6 +4086,26 @@ func (c *Client) UpdateGroupMember(ctx context.Context, 
groupId GroupId, userId
        return c.Client.Do(req)
 }
 
+// ListPermissions List permissions
+//
+// Any signed-in caller. Every permission that exists, with a description of 
what it
+// allows, sorted by name. `grantableToServiceAccount` is false for the 
permissions no
+// service account may hold. What a caller may grant from the list is decided 
where
+// the grant is made. See docs/auth.md.
+//
+// Corresponds with GET /api/v1/permissions (the `ListPermissions` 
operationId).
+func (c *Client) ListPermissions(ctx context.Context, reqEditors 
...RequestEditorFn) (*http.Response, error) {
+       req, err := NewListPermissionsRequest(c.Server)
+       if err != nil {
+               return nil, err
+       }
+       req = req.WithContext(ctx)
+       if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+               return nil, err
+       }
+       return c.Client.Do(req)
+}
+
 // ListProcesses List processes
 //
 // The unfiltered listing is admin only. Supplying `deploymentId` narrows it to
@@ -7779,6 +7830,33 @@ func NewUpdateGroupMemberRequestWithBody(server string, 
groupId GroupId, userId
        return req, nil
 }
 
+// NewListPermissionsRequest constructs an http.Request for the 
ListPermissions method
+func NewListPermissionsRequest(server string) (*http.Request, error) {
+       var err error
+
+       serverURL, err := url.Parse(server)
+       if err != nil {
+               return nil, err
+       }
+
+       operationPath := fmt.Sprintf("/api/v1/permissions")
+       if operationPath[0] == '/' {
+               operationPath = "." + operationPath
+       }
+
+       queryURL, err := serverURL.Parse(operationPath)
+       if err != nil {
+               return nil, err
+       }
+
+       req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+       if err != nil {
+               return nil, err
+       }
+
+       return req, nil
+}
+
 // NewListProcessesRequest constructs an http.Request for the ListProcesses 
method
 func NewListProcessesRequest(server string, params *ListProcessesParams) 
(*http.Request, error) {
        var err error
@@ -12069,6 +12147,18 @@ type ClientWithResponsesInterface interface {
        // Corresponds with PUT /api/v1/groups/{groupId}/members/{userId} (the 
`UpdateGroupMember` operationId).
        UpdateGroupMemberWithResponse(ctx context.Context, groupId GroupId, 
userId UserId, body UpdateGroupMemberJSONRequestBody, reqEditors 
...RequestEditorFn) (*UpdateGroupMemberResponse, error)
 
+       // ListPermissionsWithResponse List permissions
+       //
+       // Any signed-in caller. Every permission that exists, with a 
description of what it
+       // allows, sorted by name. `grantableToServiceAccount` is false for the 
permissions no
+       // service account may hold. What a caller may grant from the list is 
decided where
+       // the grant is made. See docs/auth.md.
+       //
+       // Returns a wrapper object for the known response body format(s).
+       //
+       // Corresponds with GET /api/v1/permissions (the `ListPermissions` 
operationId).
+       ListPermissionsWithResponse(ctx context.Context, reqEditors 
...RequestEditorFn) (*ListPermissionsResponse, error)
+
        // ListProcessesWithResponse List processes
        //
        // The unfiltered listing is admin only. Supplying `deploymentId` 
narrows it to
@@ -15922,6 +16012,75 @@ func (r UpdateGroupMemberResponse) ContentType() 
string {
        return ""
 }
 
+// ListPermissionsResponse401Headers the declared response headers of an HTTP 
401 response for ListPermissions
+type ListPermissionsResponse401Headers struct {
+       WWWAuthenticate *string
+}
+
+type ListPermissionsResponse struct {
+       Body         []byte
+       HTTPResponse *http.Response
+       // JSON200 the response for an HTTP 200 `application/json` response
+       JSON200 *[]Permission
+       // JSON401 the response for an HTTP 401 `application/json` response
+       JSON401 *Unauthorized
+       // JSON500 the response for an HTTP 500 `application/json` response
+       JSON500 *InternalError
+       // JSON502 the response for an HTTP 502 `application/json` response
+       JSON502 *BadGateway
+       // Headers401 the parsed response headers for an HTTP 401 response
+       Headers401 *ListPermissionsResponse401Headers
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r ListPermissionsResponse) GetJSON200() *[]Permission {
+       return r.JSON200
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r ListPermissionsResponse) GetJSON401() *Unauthorized {
+       return r.JSON401
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r ListPermissionsResponse) GetJSON500() *InternalError {
+       return r.JSON500
+}
+
+// GetJSON502 returns the response for an HTTP 502 `application/json` response
+func (r ListPermissionsResponse) GetJSON502() *BadGateway {
+       return r.JSON502
+}
+
+// GetBody returns the raw response body bytes
+func (r ListPermissionsResponse) GetBody() []byte {
+       return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r ListPermissionsResponse) Status() string {
+       if r.HTTPResponse != nil {
+               return r.HTTPResponse.Status
+       }
+       return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListPermissionsResponse) StatusCode() int {
+       if r.HTTPResponse != nil {
+               return r.HTTPResponse.StatusCode
+       }
+       return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from 
the HTTP response headers
+func (r ListPermissionsResponse) ContentType() string {
+       if r.HTTPResponse != nil {
+               return r.HTTPResponse.Header.Get("Content-Type")
+       }
+       return ""
+}
+
 // ListProcessesResponse401Headers the declared response headers of an HTTP 
401 response for ListProcesses
 type ListProcessesResponse401Headers struct {
        WWWAuthenticate *string
@@ -24693,6 +24852,24 @@ func (c *ClientWithResponses) 
UpdateGroupMemberWithResponse(ctx context.Context,
        return ParseUpdateGroupMemberResponse(rsp)
 }
 
+// ListPermissionsWithResponse List permissions
+//
+// Any signed-in caller. Every permission that exists, with a description of 
what it
+// allows, sorted by name. `grantableToServiceAccount` is false for the 
permissions no
+// service account may hold. What a caller may grant from the list is decided 
where
+// the grant is made. See docs/auth.md.
+//
+// Returns a wrapper object for the known response body format(s).
+//
+// Corresponds with GET /api/v1/permissions (the `ListPermissions` 
operationId).
+func (c *ClientWithResponses) ListPermissionsWithResponse(ctx context.Context, 
reqEditors ...RequestEditorFn) (*ListPermissionsResponse, error) {
+       rsp, err := c.ListPermissions(ctx, reqEditors...)
+       if err != nil {
+               return nil, err
+       }
+       return ParseListPermissionsResponse(rsp)
+}
+
 // ListProcessesWithResponse List processes
 //
 // The unfiltered listing is admin only. Supplying `deploymentId` narrows it to
@@ -29094,6 +29271,66 @@ func ParseUpdateGroupMemberResponse(rsp 
*http.Response) (*UpdateGroupMemberRespo
        return response, nil
 }
 
+// ParseListPermissionsResponse parses an HTTP response from a 
ListPermissionsWithResponse call
+func ParseListPermissionsResponse(rsp *http.Response) 
(*ListPermissionsResponse, error) {
+       bodyBytes, err := io.ReadAll(rsp.Body)
+       defer func() { _ = rsp.Body.Close() }()
+       if err != nil {
+               return nil, err
+       }
+
+       response := &ListPermissionsResponse{
+               Body:         bodyBytes,
+               HTTPResponse: rsp,
+       }
+
+       switch {
+       case strings.Contains(rsp.Header.Get("Content-Type"), "json") && 
rsp.StatusCode == 200:
+               var dest []Permission
+               if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+                       return nil, err
+               }
+               response.JSON200 = &dest
+
+       case strings.Contains(rsp.Header.Get("Content-Type"), "json") && 
rsp.StatusCode == 401:
+               var dest Unauthorized
+               if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+                       return nil, err
+               }
+               response.JSON401 = &dest
+
+       case strings.Contains(rsp.Header.Get("Content-Type"), "json") && 
rsp.StatusCode == 500:
+               var dest InternalError
+               if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+                       return nil, err
+               }
+               response.JSON500 = &dest
+
+       case strings.Contains(rsp.Header.Get("Content-Type"), "json") && 
rsp.StatusCode == 502:
+               var dest BadGateway
+               if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+                       return nil, err
+               }
+               response.JSON502 = &dest
+
+       }
+
+       switch {
+       case rsp.StatusCode == 401:
+               var headers ListPermissionsResponse401Headers
+               if values := rsp.Header.Values("WWW-Authenticate"); len(values) 
> 0 {
+                       var value string
+                       if err := 
runtime.BindStyledParameterWithOptions("simple", "WWW-Authenticate", values[0], 
&value, runtime.BindStyledParameterOptions{ParamLocation: 
runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", 
Format: ""}); err != nil {
+                               return nil, err
+                       }
+                       headers.WWWAuthenticate = &value
+               }
+               response.Headers401 = &headers
+       }
+
+       return response, nil
+}
+
 // ParseListProcessesResponse parses an HTTP response from a 
ListProcessesWithResponse call
 func ParseListProcessesResponse(rsp *http.Response) (*ListProcessesResponse, 
error) {
        bodyBytes, err := io.ReadAll(rsp.Body)

Reply via email to