public

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

Code generated by github.com/do87/oapi-codegen version v0.5.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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 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 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 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 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 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
	HasError     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 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
	HasError     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 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 common.Client
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, httpClient common.Client) *Client

Creates a new Client, with reasonable defaults

func (*Client) AddMembers

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

func (*Client) AddMembersWithBody

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

func (*Client) AddRoles

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

func (*Client) AddRolesWithBody

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

func (*Client) GetMembers

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

func (*Client) GetPermissions

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

func (*Client) GetRoles

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

func (*Client) GetUserMemberships

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

func (*Client) GetUserPermissions

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

func (*Client) GetUserResources

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

func (*Client) RemoveMembers

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

func (*Client) RemoveMembersWithBody

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

func (*Client) RemoveRoles

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

func (*Client) RemoveRolesWithBody

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

func (*Client) ValidateMembers

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

func (*Client) ValidateMembersWithBody

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

type ClientInterface

type ClientInterface interface {
	// GetPermissions request
	GetPermissions(ctx context.Context, params *GetPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The interface specification for the client above.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, httpClient common.Client) *ClientWithResponses

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

func (*ClientWithResponses) AddMembersWithBodyWithResponse

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

AddMembersWithBodyWithResponse request with arbitrary body returning *AddMembersResponse

func (*ClientWithResponses) AddMembersWithResponse

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

func (*ClientWithResponses) AddRolesWithBodyWithResponse

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

AddRolesWithBodyWithResponse request with arbitrary body returning *AddRolesResponse

func (*ClientWithResponses) AddRolesWithResponse

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

func (*ClientWithResponses) GetMembersWithResponse

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

GetMembersWithResponse request returning *GetMembersResponse

func (*ClientWithResponses) GetPermissionsWithResponse

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

GetPermissionsWithResponse request returning *GetPermissionsResponse

func (*ClientWithResponses) GetRolesWithResponse

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

GetRolesWithResponse request returning *GetRolesResponse

func (*ClientWithResponses) GetUserMembershipsWithResponse

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

GetUserMembershipsWithResponse request returning *GetUserMembershipsResponse

func (*ClientWithResponses) GetUserPermissionsWithResponse

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

GetUserPermissionsWithResponse request returning *GetUserPermissionsResponse

func (*ClientWithResponses) GetUserResourcesWithResponse

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

GetUserResourcesWithResponse request returning *GetUserResourcesResponse

func (*ClientWithResponses) ParseAddMembersResponse

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

ParseAddMembersResponse parses an HTTP response from a AddMembersWithResponse call

func (*ClientWithResponses) ParseAddRolesResponse

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

ParseAddRolesResponse parses an HTTP response from a AddRolesWithResponse call

func (*ClientWithResponses) ParseGetMembersResponse

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

ParseGetMembersResponse parses an HTTP response from a GetMembersWithResponse call

func (*ClientWithResponses) ParseGetPermissionsResponse

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

ParseGetPermissionsResponse parses an HTTP response from a GetPermissionsWithResponse call

func (*ClientWithResponses) ParseGetRolesResponse

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

ParseGetRolesResponse parses an HTTP response from a GetRolesWithResponse call

func (*ClientWithResponses) ParseGetUserMembershipsResponse

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

ParseGetUserMembershipsResponse parses an HTTP response from a GetUserMembershipsWithResponse call

func (*ClientWithResponses) ParseGetUserPermissionsResponse

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

ParseGetUserPermissionsResponse parses an HTTP response from a GetUserPermissionsWithResponse call

func (*ClientWithResponses) ParseGetUserResourcesResponse

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

ParseGetUserResourcesResponse parses an HTTP response from a GetUserResourcesWithResponse call

func (*ClientWithResponses) ParseRemoveMembersResponse

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

ParseRemoveMembersResponse parses an HTTP response from a RemoveMembersWithResponse call

func (*ClientWithResponses) ParseRemoveRolesResponse

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

ParseRemoveRolesResponse parses an HTTP response from a RemoveRolesWithResponse call

func (*ClientWithResponses) ParseValidateMembersResponse

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

ParseValidateMembersResponse parses an HTTP response from a ValidateMembersWithResponse call

func (*ClientWithResponses) RemoveMembersWithBodyWithResponse

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

RemoveMembersWithBodyWithResponse request with arbitrary body returning *RemoveMembersResponse

func (*ClientWithResponses) RemoveMembersWithResponse

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

func (*ClientWithResponses) RemoveRolesWithBodyWithResponse

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

RemoveRolesWithBodyWithResponse request with arbitrary body returning *RemoveRolesResponse

func (*ClientWithResponses) RemoveRolesWithResponse

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

func (*ClientWithResponses) ValidateMembersWithBodyWithResponse

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

ValidateMembersWithBodyWithResponse request with arbitrary body returning *ValidateMembersResponse

func (*ClientWithResponses) ValidateMembersWithResponse

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

type ClientWithResponsesInterface

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	// GetRoles request
	GetRolesWithResponse(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 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 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
	HasError     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
	HasError     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
	HasError     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 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
	HasError     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
	HasError     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
	HasError     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 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
	HasError     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 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
	HasError     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 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 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 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
	HasError     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