membership

package
v1.29.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package membership provides primitives to interact with the openapi HTTP API.

Code generated by github.com/do87/stackit-client-generator version v0.0.2 DO NOT EDIT.

Index

Constants

View Source
const (
	// resource types
	RESOURCE_TYPE_PROJECT = "project"
	RESOURCE_TYPE_ORG     = "organization"
)

Variables

View Source
var BaseURLs = baseurl.New(
	"membership",
	"https://api.stackit.cloud/membership/",
)

Functions

func NewAddDefaultRolesRequest

func NewAddDefaultRolesRequest(ctx context.Context, server string, body AddDefaultRolesJSONRequestBody) (*http.Request, error)

NewAddDefaultRolesRequest calls the generic AddDefaultRoles builder with application/json body

func NewAddDefaultRolesRequestWithBody

func NewAddDefaultRolesRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)

NewAddDefaultRolesRequestWithBody generates requests for AddDefaultRoles with any type of body

func NewAddMembersRequest

func NewAddMembersRequest(ctx context.Context, server string, resourceID string, body AddMembersJSONRequestBody) (*http.Request, error)

NewAddMembersRequest calls the generic AddMembers builder with application/json body

func NewAddMembersRequestWithBody

func NewAddMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, body io.Reader) (*http.Request, error)

NewAddMembersRequestWithBody generates requests for AddMembers with any type of body

func NewAddPermissionsRequest

func NewAddPermissionsRequest(ctx context.Context, server string, body AddPermissionsJSONRequestBody) (*http.Request, error)

NewAddPermissionsRequest calls the generic AddPermissions builder with application/json body

func NewAddPermissionsRequestWithBody

func NewAddPermissionsRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)

NewAddPermissionsRequestWithBody generates requests for AddPermissions with any type of body

func NewAddRolesRequest

func NewAddRolesRequest(ctx context.Context, server string, resourceID string, body AddRolesJSONRequestBody) (*http.Request, error)

NewAddRolesRequest calls the generic AddRoles builder with application/json body

func NewAddRolesRequestWithBody

func NewAddRolesRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, body io.Reader) (*http.Request, error)

NewAddRolesRequestWithBody generates requests for AddRoles with any type of body

func NewGetDefaultRolesRequest

func NewGetDefaultRolesRequest(ctx context.Context, server string) (*http.Request, error)

NewGetDefaultRolesRequest generates requests for GetDefaultRoles

func NewGetMembersRequest

func NewGetMembersRequest(ctx context.Context, server string, resourceType string, resourceID string, params *GetMembersParams) (*http.Request, error)

NewGetMembersRequest generates requests for GetMembers

func NewGetPermissionsRequest

func NewGetPermissionsRequest(ctx context.Context, server string, params *GetPermissionsParams) (*http.Request, error)

NewGetPermissionsRequest generates requests for GetPermissions

func NewGetRolesRequest

func NewGetRolesRequest(ctx context.Context, server string, resourceType string, resourceID string) (*http.Request, error)

NewGetRolesRequest generates requests for GetRoles

func NewGetSubjectsRequest

func NewGetSubjectsRequest(ctx context.Context, server string, params *GetSubjectsParams) (*http.Request, error)

NewGetSubjectsRequest generates requests for GetSubjects

func NewGetUserMembershipsRequest

func NewGetUserMembershipsRequest(ctx context.Context, server string, email string, params *GetUserMembershipsParams) (*http.Request, error)

NewGetUserMembershipsRequest generates requests for GetUserMemberships

func NewGetUserPermissionsRequest

func NewGetUserPermissionsRequest(ctx context.Context, server string, email string, params *GetUserPermissionsParams) (*http.Request, error)

NewGetUserPermissionsRequest generates requests for GetUserPermissions

func NewGetUserResourcesRequest

func NewGetUserResourcesRequest(ctx context.Context, server string, email string, params *GetUserResourcesParams) (*http.Request, error)

NewGetUserResourcesRequest generates requests for GetUserResources

func NewRemoveDefaultRolesRequest

func NewRemoveDefaultRolesRequest(ctx context.Context, server string, body RemoveDefaultRolesJSONRequestBody) (*http.Request, error)

NewRemoveDefaultRolesRequest calls the generic RemoveDefaultRoles builder with application/json body

func NewRemoveDefaultRolesRequestWithBody

func NewRemoveDefaultRolesRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)

NewRemoveDefaultRolesRequestWithBody generates requests for RemoveDefaultRoles with any type of body

func NewRemoveMembersRequest

func NewRemoveMembersRequest(ctx context.Context, server string, resourceID string, body RemoveMembersJSONRequestBody) (*http.Request, error)

NewRemoveMembersRequest calls the generic RemoveMembers builder with application/json body

func NewRemoveMembersRequestWithBody

func NewRemoveMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, body io.Reader) (*http.Request, error)

NewRemoveMembersRequestWithBody generates requests for RemoveMembers with any type of body

func NewRemovePermissionsRequest

func NewRemovePermissionsRequest(ctx context.Context, server string, body RemovePermissionsJSONRequestBody) (*http.Request, error)

NewRemovePermissionsRequest calls the generic RemovePermissions builder with application/json body

func NewRemovePermissionsRequestWithBody

func NewRemovePermissionsRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)

NewRemovePermissionsRequestWithBody generates requests for RemovePermissions with any type of body

func NewRemoveRolesRequest

func NewRemoveRolesRequest(ctx context.Context, server string, resourceID string, body RemoveRolesJSONRequestBody) (*http.Request, error)

NewRemoveRolesRequest calls the generic RemoveRoles builder with application/json body

func NewRemoveRolesRequestWithBody

func NewRemoveRolesRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, body io.Reader) (*http.Request, error)

NewRemoveRolesRequestWithBody generates requests for RemoveRoles with any type of body

func NewReplaceMembersRequest

func NewReplaceMembersRequest(ctx context.Context, server string, resourceID string, body ReplaceMembersJSONRequestBody) (*http.Request, error)

NewReplaceMembersRequest calls the generic ReplaceMembers builder with application/json body

func NewReplaceMembersRequestWithBody

func NewReplaceMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, body io.Reader) (*http.Request, error)

NewReplaceMembersRequestWithBody generates requests for ReplaceMembers with any type of body

func NewValidateChildMembersRequest

func NewValidateChildMembersRequest(ctx context.Context, server string, resourceID string, body ValidateChildMembersJSONRequestBody) (*http.Request, error)

NewValidateChildMembersRequest calls the generic ValidateChildMembers builder with application/json body

func NewValidateChildMembersRequestWithBody

func NewValidateChildMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, body io.Reader) (*http.Request, error)

NewValidateChildMembersRequestWithBody generates requests for ValidateChildMembers with any type of body

func NewValidateMembersRequest

func NewValidateMembersRequest(ctx context.Context, server string, resourceID string, body ValidateMembersJSONRequestBody) (*http.Request, error)

NewValidateMembersRequest calls the generic ValidateMembers builder with application/json body

func NewValidateMembersRequestWithBody

func NewValidateMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, body io.Reader) (*http.Request, error)

NewValidateMembersRequestWithBody generates requests for ValidateMembers with any type of body

Types

type AddDefaultRolesJSONRequestBody

type AddDefaultRolesJSONRequestBody = AddDefaultRolesRequest

AddDefaultRolesJSONRequestBody defines body for AddDefaultRoles for application/json ContentType.

type AddDefaultRolesRequest

type AddDefaultRolesRequest struct {
	Roles []AddRoleRequest `json:"roles"`
}

AddDefaultRolesRequest defines model for AddDefaultRolesRequest.

type AddDefaultRolesResponse

type AddDefaultRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DefaultRolesResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (AddDefaultRolesResponse) Status

func (r AddDefaultRolesResponse) Status() string

Status returns HTTPResponse.Status

func (AddDefaultRolesResponse) StatusCode

func (r AddDefaultRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddMembersJSONRequestBody

type AddMembersJSONRequestBody = MembersPayload

AddMembersJSONRequestBody defines body for AddMembers for application/json ContentType.

type AddMembersResponse

type AddMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MembersResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (AddMembersResponse) Status

func (r AddMembersResponse) Status() string

Status returns HTTPResponse.Status

func (AddMembersResponse) StatusCode

func (r AddMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddPermissionsJSONRequestBody

type AddPermissionsJSONRequestBody = AddPermissionsRequest

AddPermissionsJSONRequestBody defines body for AddPermissions for application/json ContentType.

type AddPermissionsRequest

type AddPermissionsRequest struct {
	Permissions []PermissionWithInheritance `json:"permissions"`
}

AddPermissionsRequest defines model for AddPermissionsRequest.

type AddPermissionsResponse

type AddPermissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PermissionsResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (AddPermissionsResponse) Status

func (r AddPermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (AddPermissionsResponse) StatusCode

func (r AddPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddRoleRequest

type AddRoleRequest struct {
	Description string              `json:"description"`
	Name        string              `json:"name"`
	Permissions []PermissionRequest `json:"permissions"`
}

AddRoleRequest defines model for AddRoleRequest.

type AddRolesJSONRequestBody

type AddRolesJSONRequestBody = AddRolesPayload

AddRolesJSONRequestBody defines body for AddRoles for application/json ContentType.

type AddRolesPayload

type AddRolesPayload struct {
	ResourceType string           `json:"resourceType"`
	Roles        []AddRoleRequest `json:"roles"`
}

AddRolesPayload defines model for AddRolesPayload.

type AddRolesResponse

type AddRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RolesResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (AddRolesResponse) Status

func (r AddRolesResponse) Status() string

Status returns HTTPResponse.Status

func (AddRolesResponse) StatusCode

func (r AddRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChildMembersPayload

type ChildMembersPayload struct {
	ChildResourceType string   `json:"childResourceType"`
	Members           []Member `json:"members"`
	ResourceType      string   `json:"resourceType"`
}

ChildMembersPayload defines model for ChildMembersPayload.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client contracts.BaseClientInterface
}

Client which conforms to the OpenAPI3 specification for this service.

func NewRawClient

func NewRawClient(server string, httpClient contracts.BaseClientInterface) *Client

NewRawClient Creates a new Client, with reasonable defaults

func (*Client) AddDefaultRolesRaw

func (c *Client) AddDefaultRolesRaw(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddDefaultRolesRawWithBody

func (c *Client) AddDefaultRolesRawWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddMembersRaw

func (c *Client) AddMembersRaw(ctx context.Context, resourceID string, body AddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddMembersRawWithBody

func (c *Client) AddMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddPermissionsRaw

func (c *Client) AddPermissionsRaw(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddPermissionsRawWithBody

func (c *Client) AddPermissionsRawWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddRolesRaw

func (c *Client) AddRolesRaw(ctx context.Context, resourceID string, body AddRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddRolesRawWithBody

func (c *Client) AddRolesRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDefaultRolesRaw

func (c *Client) GetDefaultRolesRaw(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMembersRaw

func (c *Client) GetMembersRaw(ctx context.Context, resourceType string, resourceID string, params *GetMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPermissionsRaw

func (c *Client) GetPermissionsRaw(ctx context.Context, params *GetPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRolesRaw

func (c *Client) GetRolesRaw(ctx context.Context, resourceType string, resourceID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSubjectsRaw

func (c *Client) GetSubjectsRaw(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUserMembershipsRaw

func (c *Client) GetUserMembershipsRaw(ctx context.Context, email string, params *GetUserMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUserPermissionsRaw

func (c *Client) GetUserPermissionsRaw(ctx context.Context, email string, params *GetUserPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUserResourcesRaw

func (c *Client) GetUserResourcesRaw(ctx context.Context, email string, params *GetUserResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveDefaultRolesRaw

func (c *Client) RemoveDefaultRolesRaw(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveDefaultRolesRawWithBody

func (c *Client) RemoveDefaultRolesRawWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveMembersRaw

func (c *Client) RemoveMembersRaw(ctx context.Context, resourceID string, body RemoveMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveMembersRawWithBody

func (c *Client) RemoveMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemovePermissionsRaw

func (c *Client) RemovePermissionsRaw(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemovePermissionsRawWithBody

func (c *Client) RemovePermissionsRawWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveRolesRaw

func (c *Client) RemoveRolesRaw(ctx context.Context, resourceID string, body RemoveRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveRolesRawWithBody

func (c *Client) RemoveRolesRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceMembersRaw

func (c *Client) ReplaceMembersRaw(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceMembersRawWithBody

func (c *Client) ReplaceMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidateChildMembersRaw

func (c *Client) ValidateChildMembersRaw(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidateChildMembersRawWithBody

func (c *Client) ValidateChildMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidateMembersRaw

func (c *Client) ValidateMembersRaw(ctx context.Context, resourceID string, body ValidateMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidateMembersRawWithBody

func (c *Client) ValidateMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientWithResponses

type ClientWithResponses struct {
	// contains filtered or unexported fields
}

ClientWithResponses builds on rawClientInterface to offer response payloads

func NewClient

func NewClient(server string, httpClient contracts.BaseClientInterface) *ClientWithResponses

NewClient creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AddDefaultRoles

func (*ClientWithResponses) AddDefaultRolesWithBody

func (c *ClientWithResponses) AddDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error)

AddDefaultRolesWithBody request with arbitrary body returning *AddDefaultRolesResponse

func (*ClientWithResponses) AddMembers

func (c *ClientWithResponses) AddMembers(ctx context.Context, resourceID string, body AddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddMembersResponse, error)

func (*ClientWithResponses) AddMembersWithBody

func (c *ClientWithResponses) AddMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddMembersResponse, error)

AddMembersWithBody request with arbitrary body returning *AddMembersResponse

func (*ClientWithResponses) AddPermissions

func (*ClientWithResponses) AddPermissionsWithBody

func (c *ClientWithResponses) AddPermissionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error)

AddPermissionsWithBody request with arbitrary body returning *AddPermissionsResponse

func (*ClientWithResponses) AddRoles

func (c *ClientWithResponses) AddRoles(ctx context.Context, resourceID string, body AddRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddRolesResponse, error)

func (*ClientWithResponses) AddRolesWithBody

func (c *ClientWithResponses) AddRolesWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddRolesResponse, error)

AddRolesWithBody request with arbitrary body returning *AddRolesResponse

func (*ClientWithResponses) GetDefaultRoles

func (c *ClientWithResponses) GetDefaultRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultRolesResponse, error)

GetDefaultRoles request returning *GetDefaultRolesResponse

func (*ClientWithResponses) GetMembers

func (c *ClientWithResponses) GetMembers(ctx context.Context, resourceType string, resourceID string, params *GetMembersParams, reqEditors ...RequestEditorFn) (*GetMembersResponse, error)

GetMembers request returning *GetMembersResponse

func (*ClientWithResponses) GetPermissions

func (c *ClientWithResponses) GetPermissions(ctx context.Context, params *GetPermissionsParams, reqEditors ...RequestEditorFn) (*GetPermissionsResponse, error)

GetPermissions request returning *GetPermissionsResponse

func (*ClientWithResponses) GetRoles

func (c *ClientWithResponses) GetRoles(ctx context.Context, resourceType string, resourceID string, reqEditors ...RequestEditorFn) (*GetRolesResponse, error)

GetRoles request returning *GetRolesResponse

func (*ClientWithResponses) GetSubjects

func (c *ClientWithResponses) GetSubjects(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*GetSubjectsResponse, error)

GetSubjects request returning *GetSubjectsResponse

func (*ClientWithResponses) GetUserMemberships

func (c *ClientWithResponses) GetUserMemberships(ctx context.Context, email string, params *GetUserMembershipsParams, reqEditors ...RequestEditorFn) (*GetUserMembershipsResponse, error)

GetUserMemberships request returning *GetUserMembershipsResponse

func (*ClientWithResponses) GetUserPermissions

func (c *ClientWithResponses) GetUserPermissions(ctx context.Context, email string, params *GetUserPermissionsParams, reqEditors ...RequestEditorFn) (*GetUserPermissionsResponse, error)

GetUserPermissions request returning *GetUserPermissionsResponse

func (*ClientWithResponses) GetUserResources

func (c *ClientWithResponses) GetUserResources(ctx context.Context, email string, params *GetUserResourcesParams, reqEditors ...RequestEditorFn) (*GetUserResourcesResponse, error)

GetUserResources request returning *GetUserResourcesResponse

func (*ClientWithResponses) ParseAddDefaultRolesResponse

func (c *ClientWithResponses) ParseAddDefaultRolesResponse(rsp *http.Response) (*AddDefaultRolesResponse, error)

ParseAddDefaultRolesResponse parses an HTTP response from a AddDefaultRoles call

func (*ClientWithResponses) ParseAddMembersResponse

func (c *ClientWithResponses) ParseAddMembersResponse(rsp *http.Response) (*AddMembersResponse, error)

ParseAddMembersResponse parses an HTTP response from a AddMembers call

func (*ClientWithResponses) ParseAddPermissionsResponse

func (c *ClientWithResponses) ParseAddPermissionsResponse(rsp *http.Response) (*AddPermissionsResponse, error)

ParseAddPermissionsResponse parses an HTTP response from a AddPermissions call

func (*ClientWithResponses) ParseAddRolesResponse

func (c *ClientWithResponses) ParseAddRolesResponse(rsp *http.Response) (*AddRolesResponse, error)

ParseAddRolesResponse parses an HTTP response from a AddRoles call

func (*ClientWithResponses) ParseGetDefaultRolesResponse

func (c *ClientWithResponses) ParseGetDefaultRolesResponse(rsp *http.Response) (*GetDefaultRolesResponse, error)

ParseGetDefaultRolesResponse parses an HTTP response from a GetDefaultRoles call

func (*ClientWithResponses) ParseGetMembersResponse

func (c *ClientWithResponses) ParseGetMembersResponse(rsp *http.Response) (*GetMembersResponse, error)

ParseGetMembersResponse parses an HTTP response from a GetMembers call

func (*ClientWithResponses) ParseGetPermissionsResponse

func (c *ClientWithResponses) ParseGetPermissionsResponse(rsp *http.Response) (*GetPermissionsResponse, error)

ParseGetPermissionsResponse parses an HTTP response from a GetPermissions call

func (*ClientWithResponses) ParseGetRolesResponse

func (c *ClientWithResponses) ParseGetRolesResponse(rsp *http.Response) (*GetRolesResponse, error)

ParseGetRolesResponse parses an HTTP response from a GetRoles call

func (*ClientWithResponses) ParseGetSubjectsResponse

func (c *ClientWithResponses) ParseGetSubjectsResponse(rsp *http.Response) (*GetSubjectsResponse, error)

ParseGetSubjectsResponse parses an HTTP response from a GetSubjects call

func (*ClientWithResponses) ParseGetUserMembershipsResponse

func (c *ClientWithResponses) ParseGetUserMembershipsResponse(rsp *http.Response) (*GetUserMembershipsResponse, error)

ParseGetUserMembershipsResponse parses an HTTP response from a GetUserMemberships call

func (*ClientWithResponses) ParseGetUserPermissionsResponse

func (c *ClientWithResponses) ParseGetUserPermissionsResponse(rsp *http.Response) (*GetUserPermissionsResponse, error)

ParseGetUserPermissionsResponse parses an HTTP response from a GetUserPermissions call

func (*ClientWithResponses) ParseGetUserResourcesResponse

func (c *ClientWithResponses) ParseGetUserResourcesResponse(rsp *http.Response) (*GetUserResourcesResponse, error)

ParseGetUserResourcesResponse parses an HTTP response from a GetUserResources call

func (*ClientWithResponses) ParseRemoveDefaultRolesResponse

func (c *ClientWithResponses) ParseRemoveDefaultRolesResponse(rsp *http.Response) (*RemoveDefaultRolesResponse, error)

ParseRemoveDefaultRolesResponse parses an HTTP response from a RemoveDefaultRoles call

func (*ClientWithResponses) ParseRemoveMembersResponse

func (c *ClientWithResponses) ParseRemoveMembersResponse(rsp *http.Response) (*RemoveMembersResponse, error)

ParseRemoveMembersResponse parses an HTTP response from a RemoveMembers call

func (*ClientWithResponses) ParseRemovePermissionsResponse

func (c *ClientWithResponses) ParseRemovePermissionsResponse(rsp *http.Response) (*RemovePermissionsResponse, error)

ParseRemovePermissionsResponse parses an HTTP response from a RemovePermissions call

func (*ClientWithResponses) ParseRemoveRolesResponse

func (c *ClientWithResponses) ParseRemoveRolesResponse(rsp *http.Response) (*RemoveRolesResponse, error)

ParseRemoveRolesResponse parses an HTTP response from a RemoveRoles call

func (*ClientWithResponses) ParseReplaceMembersResponse

func (c *ClientWithResponses) ParseReplaceMembersResponse(rsp *http.Response) (*ReplaceMembersResponse, error)

ParseReplaceMembersResponse parses an HTTP response from a ReplaceMembers call

func (*ClientWithResponses) ParseValidateChildMembersResponse

func (c *ClientWithResponses) ParseValidateChildMembersResponse(rsp *http.Response) (*ValidateChildMembersResponse, error)

ParseValidateChildMembersResponse parses an HTTP response from a ValidateChildMembers call

func (*ClientWithResponses) ParseValidateMembersResponse

func (c *ClientWithResponses) ParseValidateMembersResponse(rsp *http.Response) (*ValidateMembersResponse, error)

ParseValidateMembersResponse parses an HTTP response from a ValidateMembers call

func (*ClientWithResponses) RemoveDefaultRoles

func (*ClientWithResponses) RemoveDefaultRolesWithBody

func (c *ClientWithResponses) RemoveDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error)

RemoveDefaultRolesWithBody request with arbitrary body returning *RemoveDefaultRolesResponse

func (*ClientWithResponses) RemoveMembers

func (c *ClientWithResponses) RemoveMembers(ctx context.Context, resourceID string, body RemoveMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveMembersResponse, error)

func (*ClientWithResponses) RemoveMembersWithBody

func (c *ClientWithResponses) RemoveMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveMembersResponse, error)

RemoveMembersWithBody request with arbitrary body returning *RemoveMembersResponse

func (*ClientWithResponses) RemovePermissions

func (*ClientWithResponses) RemovePermissionsWithBody

func (c *ClientWithResponses) RemovePermissionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error)

RemovePermissionsWithBody request with arbitrary body returning *RemovePermissionsResponse

func (*ClientWithResponses) RemoveRoles

func (c *ClientWithResponses) RemoveRoles(ctx context.Context, resourceID string, body RemoveRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveRolesResponse, error)

func (*ClientWithResponses) RemoveRolesWithBody

func (c *ClientWithResponses) RemoveRolesWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveRolesResponse, error)

RemoveRolesWithBody request with arbitrary body returning *RemoveRolesResponse

func (*ClientWithResponses) ReplaceMembers

func (c *ClientWithResponses) ReplaceMembers(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error)

func (*ClientWithResponses) ReplaceMembersWithBody

func (c *ClientWithResponses) ReplaceMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error)

ReplaceMembersWithBody request with arbitrary body returning *ReplaceMembersResponse

func (*ClientWithResponses) ValidateChildMembers

func (c *ClientWithResponses) ValidateChildMembers(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error)

func (*ClientWithResponses) ValidateChildMembersWithBody

func (c *ClientWithResponses) ValidateChildMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error)

ValidateChildMembersWithBody request with arbitrary body returning *ValidateChildMembersResponse

func (*ClientWithResponses) ValidateMembers

func (c *ClientWithResponses) ValidateMembers(ctx context.Context, resourceID string, body ValidateMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateMembersResponse, error)

func (*ClientWithResponses) ValidateMembersWithBody

func (c *ClientWithResponses) ValidateMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateMembersResponse, error)

ValidateMembersWithBody request with arbitrary body returning *ValidateMembersResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetPermissions request
	GetPermissions(ctx context.Context, params *GetPermissionsParams, reqEditors ...RequestEditorFn) (*GetPermissionsResponse, error)

	// AddPermissions request with any body
	AddPermissionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error)

	AddPermissions(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error)

	// RemovePermissions request with any body
	RemovePermissionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error)

	RemovePermissions(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error)

	// GetDefaultRoles request
	GetDefaultRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultRolesResponse, error)

	// AddDefaultRoles request with any body
	AddDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error)

	AddDefaultRoles(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error)

	// RemoveDefaultRoles request with any body
	RemoveDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error)

	RemoveDefaultRoles(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error)

	// GetSubjects request
	GetSubjects(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*GetSubjectsResponse, error)

	// GetUserMemberships request
	GetUserMemberships(ctx context.Context, email string, params *GetUserMembershipsParams, reqEditors ...RequestEditorFn) (*GetUserMembershipsResponse, error)

	// GetUserPermissions request
	GetUserPermissions(ctx context.Context, email string, params *GetUserPermissionsParams, reqEditors ...RequestEditorFn) (*GetUserPermissionsResponse, error)

	// GetUserResources request
	GetUserResources(ctx context.Context, email string, params *GetUserResourcesParams, reqEditors ...RequestEditorFn) (*GetUserResourcesResponse, error)

	// ValidateChildMembers request with any body
	ValidateChildMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error)

	ValidateChildMembers(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error)

	// AddMembers request with any body
	AddMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddMembersResponse, error)

	AddMembers(ctx context.Context, resourceID string, body AddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddMembersResponse, error)

	// ReplaceMembers request with any body
	ReplaceMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error)

	ReplaceMembers(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error)

	// RemoveMembers request with any body
	RemoveMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveMembersResponse, error)

	RemoveMembers(ctx context.Context, resourceID string, body RemoveMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveMembersResponse, error)

	// ValidateMembers request with any body
	ValidateMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateMembersResponse, error)

	ValidateMembers(ctx context.Context, resourceID string, body ValidateMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateMembersResponse, error)

	// AddRoles request with any body
	AddRolesWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddRolesResponse, error)

	AddRoles(ctx context.Context, resourceID string, body AddRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddRolesResponse, error)

	// RemoveRoles request with any body
	RemoveRolesWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveRolesResponse, error)

	RemoveRoles(ctx context.Context, resourceID string, body RemoveRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveRolesResponse, error)

	// GetMembers request
	GetMembers(ctx context.Context, resourceType string, resourceID string, params *GetMembersParams, reqEditors ...RequestEditorFn) (*GetMembersResponse, error)

	// GetRoles request
	GetRoles(ctx context.Context, resourceType string, resourceID string, reqEditors ...RequestEditorFn) (*GetRolesResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Condition

type Condition struct {
	ExpiresAt time.Time `json:"expiresAt"`
}

Condition defines model for Condition.

type DefaultRolesResponse

type DefaultRolesResponse struct {
	Roles []Role `json:"roles"`
}

DefaultRolesResponse defines model for DefaultRolesResponse.

type ErrorResponse

type ErrorResponse struct {
	Error     string    `json:"error"`
	Message   string    `json:"message"`
	Path      string    `json:"path"`
	Status    int       `json:"status"`
	TimeStamp time.Time `json:"timeStamp"`
}

ErrorResponse defines model for ErrorResponse.

type GetDefaultRolesResponse

type GetDefaultRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DefaultRolesResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetDefaultRolesResponse) Status

func (r GetDefaultRolesResponse) Status() string

Status returns HTTPResponse.Status

func (GetDefaultRolesResponse) StatusCode

func (r GetDefaultRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMembersParams

type GetMembersParams struct {
	Subject *string `form:"subject,omitempty" json:"subject,omitempty"`
}

GetMembersParams defines parameters for GetMembers.

type GetMembersResponse

type GetMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MembersResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetMembersResponse) Status

func (r GetMembersResponse) Status() string

Status returns HTTPResponse.Status

func (GetMembersResponse) StatusCode

func (r GetMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPermissionsParams

type GetPermissionsParams struct {
	ResourceType *string `form:"resourceType,omitempty" json:"resourceType,omitempty"`
}

GetPermissionsParams defines parameters for GetPermissions.

type GetPermissionsResponse

type GetPermissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PermissionsResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetPermissionsResponse) Status

func (r GetPermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetPermissionsResponse) StatusCode

func (r GetPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRolesResponse

type GetRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RolesResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetRolesResponse) Status

func (r GetRolesResponse) Status() string

Status returns HTTPResponse.Status

func (GetRolesResponse) StatusCode

func (r GetRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSubjectsParams

type GetSubjectsParams struct {
	Email *string `form:"email,omitempty" json:"email,omitempty"`
}

GetSubjectsParams defines parameters for GetSubjects.

type GetSubjectsResponse

type GetSubjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SubjectsResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetSubjectsResponse) Status

func (r GetSubjectsResponse) Status() string

Status returns HTTPResponse.Status

func (GetSubjectsResponse) StatusCode

func (r GetSubjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserMembershipsParams

type GetUserMembershipsParams struct {
	ResourceType     *string `form:"resourceType,omitempty" json:"resourceType,omitempty"`
	ResourceID       *string `form:"resourceID,omitempty" json:"resourceID,omitempty"`
	ParentResourceID *string `form:"parentResourceID,omitempty" json:"parentResourceID,omitempty"`
}

GetUserMembershipsParams defines parameters for GetUserMemberships.

type GetUserMembershipsResponse

type GetUserMembershipsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserMembershipsResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetUserMembershipsResponse) Status

Status returns HTTPResponse.Status

func (GetUserMembershipsResponse) StatusCode

func (r GetUserMembershipsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserPermissionsParams

type GetUserPermissionsParams struct {
	ShowReason   *bool     `form:"showReason,omitempty" json:"showReason,omitempty"`
	ResourceType *string   `form:"resourceType,omitempty" json:"resourceType,omitempty"`
	Permissions  *[]string `form:"permissions,omitempty" json:"permissions,omitempty"`
	Resource     *string   `form:"resource,omitempty" json:"resource,omitempty"`
}

GetUserPermissionsParams defines parameters for GetUserPermissions.

type GetUserPermissionsResponse

type GetUserPermissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserPermissionsResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetUserPermissionsResponse) Status

Status returns HTTPResponse.Status

func (GetUserPermissionsResponse) StatusCode

func (r GetUserPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserResourcesParams

type GetUserResourcesParams struct {
	ParentResourceID   *string   `form:"parentResourceID,omitempty" json:"parentResourceID,omitempty"`
	ParentResourceType *string   `form:"parentResourceType,omitempty" json:"parentResourceType,omitempty"`
	ResourceType       *string   `form:"resourceType,omitempty" json:"resourceType,omitempty"`
	Recursive          *bool     `form:"recursive,omitempty" json:"recursive,omitempty"`
	Permissions        *[]string `form:"permissions,omitempty" json:"permissions,omitempty"`
	Cursor             *string   `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit              *int32    `form:"limit,omitempty" json:"limit,omitempty"`
}

GetUserResourcesParams defines parameters for GetUserResources.

type GetUserResourcesResponse

type GetUserResourcesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserResourcesResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (GetUserResourcesResponse) Status

func (r GetUserResourcesResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserResourcesResponse) StatusCode

func (r GetUserResourcesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Member

type Member struct {
	Condition *Condition `json:"condition,omitempty"`
	Role      string     `json:"role"`
	Subject   string     `json:"subject"`
}

Member defines model for Member.

type MemberWithoutCondition

type MemberWithoutCondition struct {
	Role    string `json:"role"`
	Subject string `json:"subject"`
}

MemberWithoutCondition defines model for MemberWithoutCondition.

type MembersPayload

type MembersPayload struct {
	Members      []Member `json:"members"`
	ResourceType string   `json:"resourceType"`
}

MembersPayload defines model for MembersPayload.

type MembersResponse

type MembersResponse struct {
	Members      []Member `json:"members"`
	ResourceID   string   `json:"resourceId"`
	ResourceType string   `json:"resourceType"`
}

MembersResponse defines model for MembersResponse.

type MembersWithoutConditionPayload

type MembersWithoutConditionPayload struct {
	Members      []MemberWithoutCondition `json:"members"`
	ResourceType string                   `json:"resourceType"`
}

MembersWithoutConditionPayload defines model for MembersWithoutConditionPayload.

type Permission

type Permission struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

Permission defines model for Permission.

type PermissionReason

type PermissionReason struct {
	Condition *Condition `json:"condition,omitempty"`
	Role      string     `json:"role"`
	Subject   string     `json:"subject"`
}

PermissionReason defines model for PermissionReason.

type PermissionRequest

type PermissionRequest struct {
	Name string `json:"name"`
}

PermissionRequest defines model for PermissionRequest.

type PermissionWithInheritance

type PermissionWithInheritance struct {
	Description string                               `json:"description"`
	Inheritance PermissionWithInheritanceInheritance `json:"inheritance"`
	Name        string                               `json:"name"`
}

PermissionWithInheritance defines model for PermissionWithInheritance.

type PermissionWithInheritanceInheritance

type PermissionWithInheritanceInheritance string

PermissionWithInheritanceInheritance defines model for PermissionWithInheritance.Inheritance.

Defines values for PermissionWithInheritanceInheritance.

type PermissionWithReason

type PermissionWithReason struct {
	Description string             `json:"description"`
	Memberships []PermissionReason `json:"memberships"`
	Name        string             `json:"name"`
}

PermissionWithReason defines model for PermissionWithReason.

type PermissionsResponse

type PermissionsResponse struct {
	Permissions []PermissionWithInheritance `json:"permissions"`
}

PermissionsResponse defines model for PermissionsResponse.

type RemoveDefaultRolesJSONRequestBody

type RemoveDefaultRolesJSONRequestBody = RemoveDefaultRolesRequest

RemoveDefaultRolesJSONRequestBody defines body for RemoveDefaultRoles for application/json ContentType.

type RemoveDefaultRolesRequest

type RemoveDefaultRolesRequest struct {
	Roles []RemoveRoleRequest `json:"roles"`
}

RemoveDefaultRolesRequest defines model for RemoveDefaultRolesRequest.

type RemoveDefaultRolesResponse

type RemoveDefaultRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DefaultRolesResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (RemoveDefaultRolesResponse) Status

Status returns HTTPResponse.Status

func (RemoveDefaultRolesResponse) StatusCode

func (r RemoveDefaultRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveMembersJSONRequestBody

type RemoveMembersJSONRequestBody = MembersWithoutConditionPayload

RemoveMembersJSONRequestBody defines body for RemoveMembers for application/json ContentType.

type RemoveMembersResponse

type RemoveMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MembersResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (RemoveMembersResponse) Status

func (r RemoveMembersResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveMembersResponse) StatusCode

func (r RemoveMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemovePermissionsJSONRequestBody

type RemovePermissionsJSONRequestBody = RemovePermissionsRequest

RemovePermissionsJSONRequestBody defines body for RemovePermissions for application/json ContentType.

type RemovePermissionsRequest

type RemovePermissionsRequest struct {
	Permissions []PermissionRequest `json:"permissions"`
}

RemovePermissionsRequest defines model for RemovePermissionsRequest.

type RemovePermissionsResponse

type RemovePermissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PermissionsResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (RemovePermissionsResponse) Status

func (r RemovePermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (RemovePermissionsResponse) StatusCode

func (r RemovePermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveRoleRequest

type RemoveRoleRequest struct {
	Name string `json:"name"`
}

RemoveRoleRequest defines model for RemoveRoleRequest.

type RemoveRolesJSONRequestBody

type RemoveRolesJSONRequestBody = RemoveRolesPayload

RemoveRolesJSONRequestBody defines body for RemoveRoles for application/json ContentType.

type RemoveRolesPayload

type RemoveRolesPayload struct {
	ResourceType string              `json:"resourceType"`
	Roles        []RemoveRoleRequest `json:"roles"`
}

RemoveRolesPayload defines model for RemoveRolesPayload.

type RemoveRolesResponse

type RemoveRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RolesResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (RemoveRolesResponse) Status

func (r RemoveRolesResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveRolesResponse) StatusCode

func (r RemoveRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplaceMembersJSONRequestBody

type ReplaceMembersJSONRequestBody = MembersPayload

ReplaceMembersJSONRequestBody defines body for ReplaceMembers for application/json ContentType.

type ReplaceMembersResponse

type ReplaceMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MembersResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (ReplaceMembersResponse) Status

func (r ReplaceMembersResponse) Status() string

Status returns HTTPResponse.Status

func (ReplaceMembersResponse) StatusCode

func (r ReplaceMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Resource

type Resource struct {
	ResourceAlias *string `json:"resourceAlias,omitempty"`
	ResourceID    string  `json:"resourceId"`
	ResourceType  string  `json:"resourceType"`
}

Resource defines model for Resource.

type Role

type Role struct {
	Description string       `json:"description"`
	Name        string       `json:"name"`
	Permissions []Permission `json:"permissions"`
}

Role defines model for Role.

type RolesResponse

type RolesResponse struct {
	ResourceID   string `json:"resourceId"`
	ResourceType string `json:"resourceType"`
	Roles        []Role `json:"roles"`
}

RolesResponse defines model for RolesResponse.

type Subject

type Subject struct {
	Email string      `json:"email"`
	ID    string      `json:"id"`
	Type  SubjectType `json:"type"`
}

Subject defines model for Subject.

type SubjectType

type SubjectType string

SubjectType defines model for Subject.Type.

const (
	CLIENT          SubjectType = "client"
	SERVICE_ACCOUNT SubjectType = "service-account"
	USER            SubjectType = "user"
)

Defines values for SubjectType.

type SubjectsResponse

type SubjectsResponse struct {
	Items []Subject `json:"items"`
}

SubjectsResponse defines model for SubjectsResponse.

type UserMembership

type UserMembership struct {
	Condition    *Condition `json:"condition,omitempty"`
	ResourceID   string     `json:"resourceId"`
	ResourceType string     `json:"resourceType"`
	Role         string     `json:"role"`
	Subject      string     `json:"subject"`
}

UserMembership defines model for UserMembership.

type UserMembershipsResponse

type UserMembershipsResponse struct {
	Items []UserMembership `json:"items"`
}

UserMembershipsResponse defines model for UserMembershipsResponse.

type UserPermission

type UserPermission struct {
	Permissions  []PermissionWithReason `json:"permissions"`
	ResourceID   string                 `json:"resourceId"`
	ResourceType string                 `json:"resourceType"`
}

UserPermission defines model for UserPermission.

type UserPermissionsResponse

type UserPermissionsResponse struct {
	Items []UserPermission `json:"items"`
}

UserPermissionsResponse defines model for UserPermissionsResponse.

type UserResourcesResponse

type UserResourcesResponse struct {
	Cursor string     `json:"cursor"`
	Items  []Resource `json:"items"`
	Limit  int32      `json:"limit"`
}

UserResourcesResponse defines model for UserResourcesResponse.

type ValidateChildMembersJSONRequestBody

type ValidateChildMembersJSONRequestBody = ChildMembersPayload

ValidateChildMembersJSONRequestBody defines body for ValidateChildMembers for application/json ContentType.

type ValidateChildMembersResponse

type ValidateChildMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (ValidateChildMembersResponse) Status

Status returns HTTPResponse.Status

func (ValidateChildMembersResponse) StatusCode

func (r ValidateChildMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ValidateMembersJSONRequestBody

type ValidateMembersJSONRequestBody = MembersPayload

ValidateMembersJSONRequestBody defines body for ValidateMembers for application/json ContentType.

type ValidateMembersResponse

type ValidateMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	Error        error // Aggregated error
}

func (ValidateMembersResponse) Status

func (r ValidateMembersResponse) Status() string

Status returns HTTPResponse.Status

func (ValidateMembersResponse) StatusCode

func (r ValidateMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL