Documentation ¶
Overview ¶
Package private 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 ¶
- func NewAddDefaultRolesRequest(ctx context.Context, server string, body AddDefaultRolesJSONRequestBody) (*http.Request, error)
- func NewAddDefaultRolesRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddPermissionsRequest(ctx context.Context, server string, body AddPermissionsJSONRequestBody) (*http.Request, error)
- func NewAddPermissionsRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetDefaultRolesRequest(ctx context.Context, server string) (*http.Request, error)
- func NewGetSubjectsRequest(ctx context.Context, server string, params *GetSubjectsParams) (*http.Request, error)
- func NewRemoveDefaultRolesRequest(ctx context.Context, server string, body RemoveDefaultRolesJSONRequestBody) (*http.Request, error)
- func NewRemoveDefaultRolesRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemovePermissionsRequest(ctx context.Context, server string, body RemovePermissionsJSONRequestBody) (*http.Request, error)
- func NewRemovePermissionsRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)
- func NewReplaceMembersRequest(ctx context.Context, server string, resourceID string, ...) (*http.Request, error)
- func NewReplaceMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, ...) (*http.Request, error)
- func NewValidateChildMembersRequest(ctx context.Context, server string, resourceID string, ...) (*http.Request, error)
- func NewValidateChildMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, ...) (*http.Request, error)
- type AddDefaultRolesJSONRequestBody
- type AddDefaultRolesRequest
- type AddDefaultRolesResponse
- type AddPermissionsJSONRequestBody
- type AddPermissionsRequest
- type AddPermissionsResponse
- type AddRoleRequest
- type ChildMembersPayload
- type Client
- func (c *Client) AddDefaultRoles(ctx context.Context, body AddDefaultRolesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddPermissions(ctx context.Context, body AddPermissionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddPermissionsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetDefaultRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSubjects(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RemoveDefaultRoles(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemovePermissions(ctx context.Context, body RemovePermissionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemovePermissionsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReplaceMembers(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReplaceMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ValidateChildMembers(ctx context.Context, resourceID string, ...) (*http.Response, error)
- func (c *Client) ValidateChildMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientWithResponses
- func (c *ClientWithResponses) AddDefaultRolesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddDefaultRolesResponse, error)
- func (c *ClientWithResponses) AddDefaultRolesWithResponse(ctx context.Context, body AddDefaultRolesJSONRequestBody, ...) (*AddDefaultRolesResponse, error)
- func (c *ClientWithResponses) AddPermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddPermissionsResponse, error)
- func (c *ClientWithResponses) AddPermissionsWithResponse(ctx context.Context, body AddPermissionsJSONRequestBody, ...) (*AddPermissionsResponse, error)
- func (c *ClientWithResponses) GetDefaultRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultRolesResponse, error)
- func (c *ClientWithResponses) GetSubjectsWithResponse(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*GetSubjectsResponse, error)
- func (c *ClientWithResponses) ParseAddDefaultRolesResponse(rsp *http.Response) (*AddDefaultRolesResponse, error)
- func (c *ClientWithResponses) ParseAddPermissionsResponse(rsp *http.Response) (*AddPermissionsResponse, error)
- func (c *ClientWithResponses) ParseGetDefaultRolesResponse(rsp *http.Response) (*GetDefaultRolesResponse, error)
- func (c *ClientWithResponses) ParseGetSubjectsResponse(rsp *http.Response) (*GetSubjectsResponse, error)
- func (c *ClientWithResponses) ParseRemoveDefaultRolesResponse(rsp *http.Response) (*RemoveDefaultRolesResponse, error)
- func (c *ClientWithResponses) ParseRemovePermissionsResponse(rsp *http.Response) (*RemovePermissionsResponse, error)
- func (c *ClientWithResponses) ParseReplaceMembersResponse(rsp *http.Response) (*ReplaceMembersResponse, error)
- func (c *ClientWithResponses) ParseValidateChildMembersResponse(rsp *http.Response) (*ValidateChildMembersResponse, error)
- func (c *ClientWithResponses) RemoveDefaultRolesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveDefaultRolesResponse, error)
- func (c *ClientWithResponses) RemoveDefaultRolesWithResponse(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, ...) (*RemoveDefaultRolesResponse, error)
- func (c *ClientWithResponses) RemovePermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemovePermissionsResponse, error)
- func (c *ClientWithResponses) RemovePermissionsWithResponse(ctx context.Context, body RemovePermissionsJSONRequestBody, ...) (*RemovePermissionsResponse, error)
- func (c *ClientWithResponses) ReplaceMembersWithBodyWithResponse(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*ReplaceMembersResponse, error)
- func (c *ClientWithResponses) ReplaceMembersWithResponse(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, ...) (*ReplaceMembersResponse, error)
- func (c *ClientWithResponses) ValidateChildMembersWithBodyWithResponse(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*ValidateChildMembersResponse, error)
- func (c *ClientWithResponses) ValidateChildMembersWithResponse(ctx context.Context, resourceID string, ...) (*ValidateChildMembersResponse, error)
- type ClientWithResponsesInterface
- type Condition
- type DefaultRolesResponse
- type ErrorResponse
- type GetDefaultRolesResponse
- type GetSubjectsParams
- type GetSubjectsResponse
- type Member
- type MembersPayload
- type MembersResponse
- type Permission
- type PermissionRequest
- type PermissionWithInheritance
- type PermissionWithInheritanceInheritance
- type PermissionsResponse
- type RemoveDefaultRolesJSONRequestBody
- type RemoveDefaultRolesRequest
- type RemoveDefaultRolesResponse
- type RemovePermissionsJSONRequestBody
- type RemovePermissionsRequest
- type RemovePermissionsResponse
- type RemoveRoleRequest
- type ReplaceMembersJSONRequestBody
- type ReplaceMembersResponse
- type RequestEditorFn
- type Role
- type Subject
- type SubjectType
- type SubjectsResponse
- type ValidateChildMembersJSONRequestBody
- type ValidateChildMembersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 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 NewGetDefaultRolesRequest ¶
NewGetDefaultRolesRequest generates requests for GetDefaultRoles
func NewGetSubjectsRequest ¶
func NewGetSubjectsRequest(ctx context.Context, server string, params *GetSubjectsParams) (*http.Request, error)
NewGetSubjectsRequest generates requests for GetSubjects
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 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 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
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 HasError 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 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 HasError 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 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 common.Client }
Client which conforms to the OpenAPI3 specification for this service.
func (*Client) AddDefaultRoles ¶
func (c *Client) AddDefaultRoles(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddDefaultRolesWithBody ¶
func (*Client) AddPermissions ¶
func (c *Client) AddPermissions(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddPermissionsWithBody ¶
func (*Client) GetDefaultRoles ¶
func (*Client) GetSubjects ¶
func (c *Client) GetSubjects(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveDefaultRoles ¶
func (c *Client) RemoveDefaultRoles(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveDefaultRolesWithBody ¶
func (*Client) RemovePermissions ¶
func (c *Client) RemovePermissions(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemovePermissionsWithBody ¶
func (*Client) ReplaceMembers ¶
func (c *Client) ReplaceMembers(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReplaceMembersWithBody ¶
func (*Client) ValidateChildMembers ¶
func (c *Client) ValidateChildMembers(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // AddPermissions request with any body AddPermissionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) AddPermissions(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // RemovePermissions request with any body RemovePermissionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) RemovePermissions(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDefaultRoles request GetDefaultRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // AddDefaultRoles request with any body AddDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) AddDefaultRoles(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // RemoveDefaultRoles request with any body RemoveDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) RemoveDefaultRoles(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSubjects request GetSubjects(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ValidateChildMembers request with any body ValidateChildMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ValidateChildMembers(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ReplaceMembers request with any body ReplaceMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ReplaceMembers(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, 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) AddDefaultRolesWithBodyWithResponse ¶
func (c *ClientWithResponses) AddDefaultRolesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error)
AddDefaultRolesWithBodyWithResponse request with arbitrary body returning *AddDefaultRolesResponse
func (*ClientWithResponses) AddDefaultRolesWithResponse ¶
func (c *ClientWithResponses) AddDefaultRolesWithResponse(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error)
func (*ClientWithResponses) AddPermissionsWithBodyWithResponse ¶
func (c *ClientWithResponses) AddPermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error)
AddPermissionsWithBodyWithResponse request with arbitrary body returning *AddPermissionsResponse
func (*ClientWithResponses) AddPermissionsWithResponse ¶
func (c *ClientWithResponses) AddPermissionsWithResponse(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error)
func (*ClientWithResponses) GetDefaultRolesWithResponse ¶
func (c *ClientWithResponses) GetDefaultRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultRolesResponse, error)
GetDefaultRolesWithResponse request returning *GetDefaultRolesResponse
func (*ClientWithResponses) GetSubjectsWithResponse ¶
func (c *ClientWithResponses) GetSubjectsWithResponse(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*GetSubjectsResponse, error)
GetSubjectsWithResponse request returning *GetSubjectsResponse
func (*ClientWithResponses) ParseAddDefaultRolesResponse ¶
func (c *ClientWithResponses) ParseAddDefaultRolesResponse(rsp *http.Response) (*AddDefaultRolesResponse, error)
ParseAddDefaultRolesResponse parses an HTTP response from a AddDefaultRolesWithResponse call
func (*ClientWithResponses) ParseAddPermissionsResponse ¶
func (c *ClientWithResponses) ParseAddPermissionsResponse(rsp *http.Response) (*AddPermissionsResponse, error)
ParseAddPermissionsResponse parses an HTTP response from a AddPermissionsWithResponse call
func (*ClientWithResponses) ParseGetDefaultRolesResponse ¶
func (c *ClientWithResponses) ParseGetDefaultRolesResponse(rsp *http.Response) (*GetDefaultRolesResponse, error)
ParseGetDefaultRolesResponse parses an HTTP response from a GetDefaultRolesWithResponse call
func (*ClientWithResponses) ParseGetSubjectsResponse ¶
func (c *ClientWithResponses) ParseGetSubjectsResponse(rsp *http.Response) (*GetSubjectsResponse, error)
ParseGetSubjectsResponse parses an HTTP response from a GetSubjectsWithResponse call
func (*ClientWithResponses) ParseRemoveDefaultRolesResponse ¶
func (c *ClientWithResponses) ParseRemoveDefaultRolesResponse(rsp *http.Response) (*RemoveDefaultRolesResponse, error)
ParseRemoveDefaultRolesResponse parses an HTTP response from a RemoveDefaultRolesWithResponse call
func (*ClientWithResponses) ParseRemovePermissionsResponse ¶
func (c *ClientWithResponses) ParseRemovePermissionsResponse(rsp *http.Response) (*RemovePermissionsResponse, error)
ParseRemovePermissionsResponse parses an HTTP response from a RemovePermissionsWithResponse call
func (*ClientWithResponses) ParseReplaceMembersResponse ¶
func (c *ClientWithResponses) ParseReplaceMembersResponse(rsp *http.Response) (*ReplaceMembersResponse, error)
ParseReplaceMembersResponse parses an HTTP response from a ReplaceMembersWithResponse call
func (*ClientWithResponses) ParseValidateChildMembersResponse ¶
func (c *ClientWithResponses) ParseValidateChildMembersResponse(rsp *http.Response) (*ValidateChildMembersResponse, error)
ParseValidateChildMembersResponse parses an HTTP response from a ValidateChildMembersWithResponse call
func (*ClientWithResponses) RemoveDefaultRolesWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveDefaultRolesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error)
RemoveDefaultRolesWithBodyWithResponse request with arbitrary body returning *RemoveDefaultRolesResponse
func (*ClientWithResponses) RemoveDefaultRolesWithResponse ¶
func (c *ClientWithResponses) RemoveDefaultRolesWithResponse(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error)
func (*ClientWithResponses) RemovePermissionsWithBodyWithResponse ¶
func (c *ClientWithResponses) RemovePermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error)
RemovePermissionsWithBodyWithResponse request with arbitrary body returning *RemovePermissionsResponse
func (*ClientWithResponses) RemovePermissionsWithResponse ¶
func (c *ClientWithResponses) RemovePermissionsWithResponse(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error)
func (*ClientWithResponses) ReplaceMembersWithBodyWithResponse ¶
func (c *ClientWithResponses) ReplaceMembersWithBodyWithResponse(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error)
ReplaceMembersWithBodyWithResponse request with arbitrary body returning *ReplaceMembersResponse
func (*ClientWithResponses) ReplaceMembersWithResponse ¶
func (c *ClientWithResponses) ReplaceMembersWithResponse(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error)
func (*ClientWithResponses) ValidateChildMembersWithBodyWithResponse ¶
func (c *ClientWithResponses) ValidateChildMembersWithBodyWithResponse(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error)
ValidateChildMembersWithBodyWithResponse request with arbitrary body returning *ValidateChildMembersResponse
func (*ClientWithResponses) ValidateChildMembersWithResponse ¶
func (c *ClientWithResponses) ValidateChildMembersWithResponse(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // AddPermissions request with any body AddPermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error) AddPermissionsWithResponse(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error) // RemovePermissions request with any body RemovePermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error) RemovePermissionsWithResponse(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error) // GetDefaultRoles request GetDefaultRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultRolesResponse, error) // AddDefaultRoles request with any body AddDefaultRolesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error) AddDefaultRolesWithResponse(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error) // RemoveDefaultRoles request with any body RemoveDefaultRolesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error) RemoveDefaultRolesWithResponse(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error) // GetSubjects request GetSubjectsWithResponse(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*GetSubjectsResponse, error) // ValidateChildMembers request with any body ValidateChildMembersWithBodyWithResponse(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error) ValidateChildMembersWithResponse(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateChildMembersResponse, error) // ReplaceMembers request with any body ReplaceMembersWithBodyWithResponse(ctx context.Context, resourceID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error) ReplaceMembersWithResponse(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceMembersResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
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 HasError 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 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 HasError 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 Member ¶
type Member struct { Condition *Condition `json:"condition,omitempty"` Role string `json:"role"` Subject string `json:"subject"` }
Member defines model for Member.
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 Permission ¶
Permission defines model for Permission.
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.
const ( FULL PermissionWithInheritanceInheritance = "FULL" NONE PermissionWithInheritanceInheritance = "NONE" SINGLE PermissionWithInheritanceInheritance = "SINGLE" )
Defines values for PermissionWithInheritanceInheritance.
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 HasError error // Aggregated error }
func (RemoveDefaultRolesResponse) Status ¶
func (r RemoveDefaultRolesResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveDefaultRolesResponse) StatusCode ¶
func (r RemoveDefaultRolesResponse) 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 HasError 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 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 HasError 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 ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Role ¶
type Role struct { Description string `json:"description"` Name string `json:"name"` Permissions []Permission `json:"permissions"` }
Role defines model for Role.
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 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 HasError error // Aggregated error }
func (ValidateChildMembersResponse) Status ¶
func (r ValidateChildMembersResponse) Status() string
Status returns HTTPResponse.Status
func (ValidateChildMembersResponse) StatusCode ¶
func (r ValidateChildMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode