Documentation ¶
Overview ¶
Package membership provides primitives to interact with the openapi HTTP API.
Code generated by dev.azure.com/schwarzit/schwarzit.odj.core/_git/stackit-client-generator.git version v1.0.23 DO NOT EDIT.
Index ¶
- Constants
- Variables
- 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 NewAddMembersRequest(ctx context.Context, server string, resourceID string, ...) (*http.Request, error)
- func NewAddMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, ...) (*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 NewAddRolesRequest(ctx context.Context, server string, resourceID string, ...) (*http.Request, error)
- func NewAddRolesRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, ...) (*http.Request, error)
- func NewGetDefaultRolesRequest(ctx context.Context, server string) (*http.Request, error)
- func NewGetMembersRequest(ctx context.Context, server string, resourceType string, resourceID string, ...) (*http.Request, error)
- func NewGetPermissionsRequest(ctx context.Context, server string, params *GetPermissionsParams) (*http.Request, error)
- func NewGetRolesRequest(ctx context.Context, server string, resourceType string, resourceID string) (*http.Request, error)
- func NewGetSubjectsRequest(ctx context.Context, server string, params *GetSubjectsParams) (*http.Request, error)
- func NewGetUserMembershipsRequest(ctx context.Context, server string, email string, ...) (*http.Request, error)
- func NewGetUserPermissionsRequest(ctx context.Context, server string, email string, ...) (*http.Request, error)
- func NewGetUserResourcesRequest(ctx context.Context, server string, email string, ...) (*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 NewRemoveMembersRequest(ctx context.Context, server string, resourceID string, ...) (*http.Request, error)
- func NewRemoveMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, ...) (*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 NewRemoveRolesRequest(ctx context.Context, server string, resourceID string, ...) (*http.Request, error)
- func NewRemoveRolesRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, ...) (*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)
- func NewValidateMembersRequest(ctx context.Context, server string, resourceID string, ...) (*http.Request, error)
- func NewValidateMembersRequestWithBody(ctx context.Context, server string, resourceID string, contentType string, ...) (*http.Request, error)
- type AddDefaultRolesJSONRequestBody
- type AddDefaultRolesRequest
- type AddDefaultRolesResponse
- type AddMembersJSONRequestBody
- type AddMembersResponse
- type AddPermissionsJSONRequestBody
- type AddPermissionsRequest
- type AddPermissionsResponse
- type AddRoleRequest
- type AddRolesJSONRequestBody
- type AddRolesPayload
- type AddRolesResponse
- type ChildMembersPayload
- type Client
- func (c *Client) AddDefaultRolesRaw(ctx context.Context, body AddDefaultRolesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddDefaultRolesRawWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddMembersRaw(ctx context.Context, resourceID string, body AddMembersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddPermissionsRaw(ctx context.Context, body AddPermissionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddPermissionsRawWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddRolesRaw(ctx context.Context, resourceID string, body AddRolesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddRolesRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetDefaultRolesRaw(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMembersRaw(ctx context.Context, resourceType string, resourceID string, ...) (*http.Response, error)
- func (c *Client) GetPermissionsRaw(ctx context.Context, params *GetPermissionsParams, ...) (*http.Response, error)
- func (c *Client) GetRolesRaw(ctx context.Context, resourceType string, resourceID string, ...) (*http.Response, error)
- func (c *Client) GetSubjectsRaw(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserMembershipsRaw(ctx context.Context, email string, params *GetUserMembershipsParams, ...) (*http.Response, error)
- func (c *Client) GetUserPermissionsRaw(ctx context.Context, email string, params *GetUserPermissionsParams, ...) (*http.Response, error)
- func (c *Client) GetUserResourcesRaw(ctx context.Context, email string, params *GetUserResourcesParams, ...) (*http.Response, error)
- func (c *Client) RemoveDefaultRolesRaw(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveDefaultRolesRawWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveMembersRaw(ctx context.Context, resourceID string, body RemoveMembersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemovePermissionsRaw(ctx context.Context, body RemovePermissionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemovePermissionsRawWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveRolesRaw(ctx context.Context, resourceID string, body RemoveRolesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveRolesRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReplaceMembersRaw(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReplaceMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ValidateChildMembersRaw(ctx context.Context, resourceID string, ...) (*http.Response, error)
- func (c *Client) ValidateChildMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ValidateMembersRaw(ctx context.Context, resourceID string, body ValidateMembersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ValidateMembersRawWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientWithResponses
- func (c *ClientWithResponses) AddDefaultRoles(ctx context.Context, body AddDefaultRolesJSONRequestBody, ...) (*AddDefaultRolesResponse, error)
- func (c *ClientWithResponses) AddDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*AddDefaultRolesResponse, error)
- func (c *ClientWithResponses) AddMembers(ctx context.Context, resourceID string, body AddMembersJSONRequestBody, ...) (*AddMembersResponse, error)
- func (c *ClientWithResponses) AddMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*AddMembersResponse, error)
- func (c *ClientWithResponses) AddPermissions(ctx context.Context, body AddPermissionsJSONRequestBody, ...) (*AddPermissionsResponse, error)
- func (c *ClientWithResponses) AddPermissionsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*AddPermissionsResponse, error)
- func (c *ClientWithResponses) AddRoles(ctx context.Context, resourceID string, body AddRolesJSONRequestBody, ...) (*AddRolesResponse, error)
- func (c *ClientWithResponses) AddRolesWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*AddRolesResponse, error)
- func (c *ClientWithResponses) GetDefaultRoles(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDefaultRolesResponse, error)
- func (c *ClientWithResponses) GetMembers(ctx context.Context, resourceType string, resourceID string, ...) (*GetMembersResponse, error)
- func (c *ClientWithResponses) GetPermissions(ctx context.Context, params *GetPermissionsParams, ...) (*GetPermissionsResponse, error)
- func (c *ClientWithResponses) GetRoles(ctx context.Context, resourceType string, resourceID string, ...) (*GetRolesResponse, error)
- func (c *ClientWithResponses) GetSubjects(ctx context.Context, params *GetSubjectsParams, reqEditors ...RequestEditorFn) (*GetSubjectsResponse, error)
- func (c *ClientWithResponses) GetUserMemberships(ctx context.Context, email string, params *GetUserMembershipsParams, ...) (*GetUserMembershipsResponse, error)
- func (c *ClientWithResponses) GetUserPermissions(ctx context.Context, email string, params *GetUserPermissionsParams, ...) (*GetUserPermissionsResponse, error)
- func (c *ClientWithResponses) GetUserResources(ctx context.Context, email string, params *GetUserResourcesParams, ...) (*GetUserResourcesResponse, error)
- func (c *ClientWithResponses) ParseAddDefaultRolesResponse(rsp *http.Response) (*AddDefaultRolesResponse, error)
- func (c *ClientWithResponses) ParseAddMembersResponse(rsp *http.Response) (*AddMembersResponse, error)
- func (c *ClientWithResponses) ParseAddPermissionsResponse(rsp *http.Response) (*AddPermissionsResponse, error)
- func (c *ClientWithResponses) ParseAddRolesResponse(rsp *http.Response) (*AddRolesResponse, error)
- func (c *ClientWithResponses) ParseGetDefaultRolesResponse(rsp *http.Response) (*GetDefaultRolesResponse, error)
- func (c *ClientWithResponses) ParseGetMembersResponse(rsp *http.Response) (*GetMembersResponse, error)
- func (c *ClientWithResponses) ParseGetPermissionsResponse(rsp *http.Response) (*GetPermissionsResponse, error)
- func (c *ClientWithResponses) ParseGetRolesResponse(rsp *http.Response) (*GetRolesResponse, error)
- func (c *ClientWithResponses) ParseGetSubjectsResponse(rsp *http.Response) (*GetSubjectsResponse, error)
- func (c *ClientWithResponses) ParseGetUserMembershipsResponse(rsp *http.Response) (*GetUserMembershipsResponse, error)
- func (c *ClientWithResponses) ParseGetUserPermissionsResponse(rsp *http.Response) (*GetUserPermissionsResponse, error)
- func (c *ClientWithResponses) ParseGetUserResourcesResponse(rsp *http.Response) (*GetUserResourcesResponse, error)
- func (c *ClientWithResponses) ParseRemoveDefaultRolesResponse(rsp *http.Response) (*RemoveDefaultRolesResponse, error)
- func (c *ClientWithResponses) ParseRemoveMembersResponse(rsp *http.Response) (*RemoveMembersResponse, error)
- func (c *ClientWithResponses) ParseRemovePermissionsResponse(rsp *http.Response) (*RemovePermissionsResponse, error)
- func (c *ClientWithResponses) ParseRemoveRolesResponse(rsp *http.Response) (*RemoveRolesResponse, error)
- func (c *ClientWithResponses) ParseReplaceMembersResponse(rsp *http.Response) (*ReplaceMembersResponse, error)
- func (c *ClientWithResponses) ParseValidateChildMembersResponse(rsp *http.Response) (*ValidateChildMembersResponse, error)
- func (c *ClientWithResponses) ParseValidateMembersResponse(rsp *http.Response) (*ValidateMembersResponse, error)
- func (c *ClientWithResponses) RemoveDefaultRoles(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, ...) (*RemoveDefaultRolesResponse, error)
- func (c *ClientWithResponses) RemoveDefaultRolesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveDefaultRolesResponse, error)
- func (c *ClientWithResponses) RemoveMembers(ctx context.Context, resourceID string, body RemoveMembersJSONRequestBody, ...) (*RemoveMembersResponse, error)
- func (c *ClientWithResponses) RemoveMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*RemoveMembersResponse, error)
- func (c *ClientWithResponses) RemovePermissions(ctx context.Context, body RemovePermissionsJSONRequestBody, ...) (*RemovePermissionsResponse, error)
- func (c *ClientWithResponses) RemovePermissionsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*RemovePermissionsResponse, error)
- func (c *ClientWithResponses) RemoveRoles(ctx context.Context, resourceID string, body RemoveRolesJSONRequestBody, ...) (*RemoveRolesResponse, error)
- func (c *ClientWithResponses) RemoveRolesWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*RemoveRolesResponse, error)
- func (c *ClientWithResponses) ReplaceMembers(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, ...) (*ReplaceMembersResponse, error)
- func (c *ClientWithResponses) ReplaceMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*ReplaceMembersResponse, error)
- func (c *ClientWithResponses) ValidateChildMembers(ctx context.Context, resourceID string, ...) (*ValidateChildMembersResponse, error)
- func (c *ClientWithResponses) ValidateChildMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*ValidateChildMembersResponse, error)
- func (c *ClientWithResponses) ValidateMembers(ctx context.Context, resourceID string, body ValidateMembersJSONRequestBody, ...) (*ValidateMembersResponse, error)
- func (c *ClientWithResponses) ValidateMembersWithBody(ctx context.Context, resourceID string, contentType string, body io.Reader, ...) (*ValidateMembersResponse, error)
- type ClientWithResponsesInterface
- type Condition
- type DefaultRolesResponse
- type ErrorResponse
- type GetDefaultRolesResponse
- type GetMembersParams
- type GetMembersResponse
- type GetPermissionsParams
- type GetPermissionsResponse
- type GetRolesResponse
- type GetSubjectsParams
- type GetSubjectsResponse
- type GetUserMembershipsParams
- type GetUserMembershipsResponse
- type GetUserPermissionsParams
- type GetUserPermissionsResponse
- type GetUserResourcesParams
- type GetUserResourcesResponse
- type Member
- type MemberWithoutCondition
- type MembersPayload
- type MembersResponse
- type MembersWithoutConditionPayload
- type Permission
- type PermissionReason
- type PermissionRequest
- type PermissionWithInheritance
- type PermissionWithInheritanceInheritance
- type PermissionWithReason
- type PermissionsResponse
- type RemoveDefaultRolesJSONRequestBody
- type RemoveDefaultRolesRequest
- type RemoveDefaultRolesResponse
- type RemoveMembersJSONRequestBody
- type RemoveMembersResponse
- type RemovePermissionsJSONRequestBody
- type RemovePermissionsRequest
- type RemovePermissionsResponse
- type RemoveRoleRequest
- type RemoveRolesJSONRequestBody
- type RemoveRolesPayload
- type RemoveRolesResponse
- type ReplaceMembersJSONRequestBody
- type ReplaceMembersResponse
- type RequestEditorFn
- type Resource
- type Role
- type RolesResponse
- type Subject
- type SubjectType
- type SubjectsResponse
- type UserMembership
- type UserMembershipsResponse
- type UserPermission
- type UserPermissionsResponse
- type UserResourcesResponse
- type ValidateChildMembersJSONRequestBody
- type ValidateChildMembersResponse
- type ValidateMembersJSONRequestBody
- type ValidateMembersResponse
Constants ¶
const ( // resource types RESOURCE_TYPE_PROJECT = "project" RESOURCE_TYPE_ORG = "organization" )
Variables ¶
var BaseURLs = env.URLs(
"membership",
"https://api.stackit.cloud/membership/",
"https://api-qa.stackit.cloud/membership/",
"https://api-dev.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 ¶
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
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 (*Client) AddMembersRaw ¶
func (c *Client) AddMembersRaw(ctx context.Context, resourceID string, body AddMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddMembersRawWithBody ¶
func (*Client) AddPermissionsRaw ¶
func (c *Client) AddPermissionsRaw(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddPermissionsRawWithBody ¶
func (*Client) AddRolesRaw ¶
func (c *Client) AddRolesRaw(ctx context.Context, resourceID string, body AddRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddRolesRawWithBody ¶
func (*Client) GetDefaultRolesRaw ¶
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 (*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 (*Client) RemoveMembersRaw ¶
func (c *Client) RemoveMembersRaw(ctx context.Context, resourceID string, body RemoveMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveMembersRawWithBody ¶
func (*Client) RemovePermissionsRaw ¶
func (c *Client) RemovePermissionsRaw(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemovePermissionsRawWithBody ¶
func (*Client) RemoveRolesRaw ¶
func (c *Client) RemoveRolesRaw(ctx context.Context, resourceID string, body RemoveRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveRolesRawWithBody ¶
func (*Client) ReplaceMembersRaw ¶
func (c *Client) ReplaceMembersRaw(ctx context.Context, resourceID string, body ReplaceMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReplaceMembersRawWithBody ¶
func (*Client) ValidateChildMembersRaw ¶
func (c *Client) ValidateChildMembersRaw(ctx context.Context, resourceID string, body ValidateChildMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ValidateChildMembersRawWithBody ¶
func (*Client) ValidateMembersRaw ¶
func (c *Client) ValidateMembersRaw(ctx context.Context, resourceID string, body ValidateMembersJSONRequestBody, 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 NewService ¶
func NewService(c contracts.BaseClientInterface) *ClientWithResponses
func (*ClientWithResponses) AddDefaultRoles ¶
func (c *ClientWithResponses) AddDefaultRoles(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error)
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 (c *ClientWithResponses) AddPermissions(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error)
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 (c *ClientWithResponses) RemoveDefaultRoles(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error)
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 (c *ClientWithResponses) RemovePermissions(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error)
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 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 ¶
func (r GetUserMembershipsResponse) Status() string
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 ¶
func (r GetUserPermissionsResponse) Status() string
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 ¶
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 ¶
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.
const ( FULL PermissionWithInheritanceInheritance = "FULL" NONE PermissionWithInheritanceInheritance = "NONE" SINGLE PermissionWithInheritanceInheritance = "SINGLE" )
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 ¶
func (r RemoveDefaultRolesResponse) Status() string
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 ¶
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 ¶
func (r ValidateChildMembersResponse) Status() string
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