membership

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

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

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

Index

Constants

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

Variables

View Source
var BaseURLs = urls.Init(
	"membership",
	"https://api.stackit.cloud/membership/",
	"https://api-qa.stackit.cloud/membership/",
	"https://api-dev.stackit.cloud/membership/",
)

Functions

func NewAddDefaultRolesRequest added in v1.12.1

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

NewAddDefaultRolesRequest calls the generic AddDefaultRoles builder with application/json body

func NewAddDefaultRolesRequestWithBody added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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

NewAddPermissionsRequest calls the generic AddPermissions builder with application/json body

func NewAddPermissionsRequestWithBody added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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

NewGetDefaultRolesRequest generates requests for GetDefaultRoles

func NewGetMembersRequest added in v1.12.1

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

NewGetMembersRequest generates requests for GetMembers

func NewGetPermissionsRequest added in v1.12.1

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

NewGetPermissionsRequest generates requests for GetPermissions

func NewGetRolesRequest added in v1.12.1

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

NewGetRolesRequest generates requests for GetRoles

func NewGetSubjectsRequest added in v1.12.1

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

NewGetSubjectsRequest generates requests for GetSubjects

func NewGetUserMembershipsRequest added in v1.12.1

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

NewGetUserMembershipsRequest generates requests for GetUserMemberships

func NewGetUserPermissionsRequest added in v1.12.1

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

NewGetUserPermissionsRequest generates requests for GetUserPermissions

func NewGetUserResourcesRequest added in v1.12.1

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

NewGetUserResourcesRequest generates requests for GetUserResources

func NewRemoveDefaultRolesRequest added in v1.12.1

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

NewRemoveDefaultRolesRequest calls the generic RemoveDefaultRoles builder with application/json body

func NewRemoveDefaultRolesRequestWithBody added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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

NewRemovePermissionsRequest calls the generic RemovePermissions builder with application/json body

func NewRemovePermissionsRequestWithBody added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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 added in v1.12.1

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

NewValidateMembersRequest calls the generic ValidateMembers builder with application/json body

func NewValidateMembersRequestWithBody added in v1.12.1

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

NewValidateMembersRequestWithBody generates requests for ValidateMembers with any type of body

Types

type AddDefaultRolesJSONRequestBody added in v1.12.1

type AddDefaultRolesJSONRequestBody = AddDefaultRolesRequest

AddDefaultRolesJSONRequestBody defines body for AddDefaultRoles for application/json ContentType.

type AddDefaultRolesRequest added in v1.12.1

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

AddDefaultRolesRequest defines model for AddDefaultRolesRequest.

type AddDefaultRolesResponse added in v1.12.1

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

func (AddDefaultRolesResponse) Status added in v1.12.1

func (r AddDefaultRolesResponse) Status() string

Status returns HTTPResponse.Status

func (AddDefaultRolesResponse) StatusCode added in v1.12.1

func (r AddDefaultRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddMembersJSONRequestBody added in v1.12.1

type AddMembersJSONRequestBody = MembersPayload

AddMembersJSONRequestBody defines body for AddMembers for application/json ContentType.

type AddMembersResponse added in v1.12.1

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

func (AddMembersResponse) Status added in v1.12.1

func (r AddMembersResponse) Status() string

Status returns HTTPResponse.Status

func (AddMembersResponse) StatusCode added in v1.12.1

func (r AddMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddPermissionsJSONRequestBody added in v1.12.1

type AddPermissionsJSONRequestBody = AddPermissionsRequest

AddPermissionsJSONRequestBody defines body for AddPermissions for application/json ContentType.

type AddPermissionsRequest added in v1.12.1

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

AddPermissionsRequest defines model for AddPermissionsRequest.

type AddPermissionsResponse added in v1.12.1

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

func (AddPermissionsResponse) Status added in v1.12.1

func (r AddPermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (AddPermissionsResponse) StatusCode added in v1.12.1

func (r AddPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddRoleRequest added in v1.12.1

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

AddRoleRequest defines model for AddRoleRequest.

type AddRolesJSONRequestBody added in v1.12.1

type AddRolesJSONRequestBody = AddRolesPayload

AddRolesJSONRequestBody defines body for AddRoles for application/json ContentType.

type AddRolesPayload added in v1.12.1

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

AddRolesPayload defines model for AddRolesPayload.

type AddRolesResponse added in v1.12.1

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

func (AddRolesResponse) Status added in v1.12.1

func (r AddRolesResponse) Status() string

Status returns HTTPResponse.Status

func (AddRolesResponse) StatusCode added in v1.12.1

func (r AddRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChildMembersPayload added in v1.12.1

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 NewClient

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

Creates a new Client, with reasonable defaults

func (*Client) AddDefaultRoles added in v1.12.1

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

func (*Client) AddDefaultRolesWithBody added in v1.12.1

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

func (*Client) AddMembers added in v1.12.1

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

func (*Client) AddMembersWithBody added in v1.12.1

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

func (*Client) AddPermissions added in v1.12.1

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

func (*Client) AddPermissionsWithBody added in v1.12.1

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

func (*Client) AddRoles added in v1.12.1

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

func (*Client) AddRolesWithBody added in v1.12.1

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

func (*Client) GetDefaultRoles added in v1.12.1

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

func (*Client) GetMembers added in v1.12.1

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

func (*Client) GetPermissions added in v1.12.1

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

func (*Client) GetRoles added in v1.12.1

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

func (*Client) GetSubjects added in v1.12.1

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

func (*Client) GetUserMemberships added in v1.12.1

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

func (*Client) GetUserPermissions added in v1.12.1

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

func (*Client) GetUserResources added in v1.12.1

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

func (*Client) RemoveDefaultRoles added in v1.12.1

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

func (*Client) RemoveDefaultRolesWithBody added in v1.12.1

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

func (*Client) RemoveMembers added in v1.12.1

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

func (*Client) RemoveMembersWithBody added in v1.12.1

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

func (*Client) RemovePermissions added in v1.12.1

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

func (*Client) RemovePermissionsWithBody added in v1.12.1

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

func (*Client) RemoveRoles added in v1.12.1

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

func (*Client) RemoveRolesWithBody added in v1.12.1

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

func (*Client) ReplaceMembers added in v1.12.1

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

func (*Client) ReplaceMembersWithBody added in v1.12.1

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

func (*Client) ValidateChildMembers added in v1.12.1

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

func (*Client) ValidateChildMembersWithBody added in v1.12.1

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

func (*Client) ValidateMembers added in v1.12.1

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

func (*Client) ValidateMembersWithBody added in v1.12.1

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

type ClientInterface added in v1.12.1

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

	// 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)

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

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

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

	// 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)

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

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

	// 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)

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

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

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

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

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

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

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

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

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

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

The interface specification for the client above.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func NewService

func NewService(c common.Client) *ClientWithResponses

func (*ClientWithResponses) AddDefaultRolesWithBodyWithResponse added in v1.12.1

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 added in v1.12.1

func (c *ClientWithResponses) AddDefaultRolesWithResponse(ctx context.Context, body AddDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDefaultRolesResponse, error)

func (*ClientWithResponses) AddMembersWithBodyWithResponse added in v1.12.1

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

AddMembersWithBodyWithResponse request with arbitrary body returning *AddMembersResponse

func (*ClientWithResponses) AddMembersWithResponse added in v1.12.1

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

func (*ClientWithResponses) AddPermissionsWithBodyWithResponse added in v1.12.1

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 added in v1.12.1

func (c *ClientWithResponses) AddPermissionsWithResponse(ctx context.Context, body AddPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsResponse, error)

func (*ClientWithResponses) AddRolesWithBodyWithResponse added in v1.12.1

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

AddRolesWithBodyWithResponse request with arbitrary body returning *AddRolesResponse

func (*ClientWithResponses) AddRolesWithResponse added in v1.12.1

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

func (*ClientWithResponses) GetDefaultRolesWithResponse added in v1.12.1

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

GetDefaultRolesWithResponse request returning *GetDefaultRolesResponse

func (*ClientWithResponses) GetMembersWithResponse added in v1.12.1

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

GetMembersWithResponse request returning *GetMembersResponse

func (*ClientWithResponses) GetPermissionsWithResponse added in v1.12.1

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

GetPermissionsWithResponse request returning *GetPermissionsResponse

func (*ClientWithResponses) GetRolesWithResponse added in v1.12.1

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

GetRolesWithResponse request returning *GetRolesResponse

func (*ClientWithResponses) GetSubjectsWithResponse added in v1.12.1

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

GetSubjectsWithResponse request returning *GetSubjectsResponse

func (*ClientWithResponses) GetUserMembershipsWithResponse added in v1.12.1

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

GetUserMembershipsWithResponse request returning *GetUserMembershipsResponse

func (*ClientWithResponses) GetUserPermissionsWithResponse added in v1.12.1

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

GetUserPermissionsWithResponse request returning *GetUserPermissionsResponse

func (*ClientWithResponses) GetUserResourcesWithResponse added in v1.12.1

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

GetUserResourcesWithResponse request returning *GetUserResourcesResponse

func (*ClientWithResponses) ParseAddDefaultRolesResponse added in v1.12.1

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

ParseAddDefaultRolesResponse parses an HTTP response from a AddDefaultRolesWithResponse call

func (*ClientWithResponses) ParseAddMembersResponse added in v1.12.1

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

ParseAddMembersResponse parses an HTTP response from a AddMembersWithResponse call

func (*ClientWithResponses) ParseAddPermissionsResponse added in v1.12.1

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

ParseAddPermissionsResponse parses an HTTP response from a AddPermissionsWithResponse call

func (*ClientWithResponses) ParseAddRolesResponse added in v1.12.1

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

ParseAddRolesResponse parses an HTTP response from a AddRolesWithResponse call

func (*ClientWithResponses) ParseGetDefaultRolesResponse added in v1.12.1

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

ParseGetDefaultRolesResponse parses an HTTP response from a GetDefaultRolesWithResponse call

func (*ClientWithResponses) ParseGetMembersResponse added in v1.12.1

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

ParseGetMembersResponse parses an HTTP response from a GetMembersWithResponse call

func (*ClientWithResponses) ParseGetPermissionsResponse added in v1.12.1

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

ParseGetPermissionsResponse parses an HTTP response from a GetPermissionsWithResponse call

func (*ClientWithResponses) ParseGetRolesResponse added in v1.12.1

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

ParseGetRolesResponse parses an HTTP response from a GetRolesWithResponse call

func (*ClientWithResponses) ParseGetSubjectsResponse added in v1.12.1

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

ParseGetSubjectsResponse parses an HTTP response from a GetSubjectsWithResponse call

func (*ClientWithResponses) ParseGetUserMembershipsResponse added in v1.12.1

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

ParseGetUserMembershipsResponse parses an HTTP response from a GetUserMembershipsWithResponse call

func (*ClientWithResponses) ParseGetUserPermissionsResponse added in v1.12.1

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

ParseGetUserPermissionsResponse parses an HTTP response from a GetUserPermissionsWithResponse call

func (*ClientWithResponses) ParseGetUserResourcesResponse added in v1.12.1

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

ParseGetUserResourcesResponse parses an HTTP response from a GetUserResourcesWithResponse call

func (*ClientWithResponses) ParseRemoveDefaultRolesResponse added in v1.12.1

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

ParseRemoveDefaultRolesResponse parses an HTTP response from a RemoveDefaultRolesWithResponse call

func (*ClientWithResponses) ParseRemoveMembersResponse added in v1.12.1

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

ParseRemoveMembersResponse parses an HTTP response from a RemoveMembersWithResponse call

func (*ClientWithResponses) ParseRemovePermissionsResponse added in v1.12.1

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

ParseRemovePermissionsResponse parses an HTTP response from a RemovePermissionsWithResponse call

func (*ClientWithResponses) ParseRemoveRolesResponse added in v1.12.1

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

ParseRemoveRolesResponse parses an HTTP response from a RemoveRolesWithResponse call

func (*ClientWithResponses) ParseReplaceMembersResponse added in v1.12.1

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

ParseReplaceMembersResponse parses an HTTP response from a ReplaceMembersWithResponse call

func (*ClientWithResponses) ParseValidateChildMembersResponse added in v1.12.1

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

ParseValidateChildMembersResponse parses an HTTP response from a ValidateChildMembersWithResponse call

func (*ClientWithResponses) ParseValidateMembersResponse added in v1.12.1

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

ParseValidateMembersResponse parses an HTTP response from a ValidateMembersWithResponse call

func (*ClientWithResponses) RemoveDefaultRolesWithBodyWithResponse added in v1.12.1

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 added in v1.12.1

func (c *ClientWithResponses) RemoveDefaultRolesWithResponse(ctx context.Context, body RemoveDefaultRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveDefaultRolesResponse, error)

func (*ClientWithResponses) RemoveMembersWithBodyWithResponse added in v1.12.1

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

RemoveMembersWithBodyWithResponse request with arbitrary body returning *RemoveMembersResponse

func (*ClientWithResponses) RemoveMembersWithResponse added in v1.12.1

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

func (*ClientWithResponses) RemovePermissionsWithBodyWithResponse added in v1.12.1

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 added in v1.12.1

func (c *ClientWithResponses) RemovePermissionsWithResponse(ctx context.Context, body RemovePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsResponse, error)

func (*ClientWithResponses) RemoveRolesWithBodyWithResponse added in v1.12.1

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

RemoveRolesWithBodyWithResponse request with arbitrary body returning *RemoveRolesResponse

func (*ClientWithResponses) RemoveRolesWithResponse added in v1.12.1

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

func (*ClientWithResponses) ReplaceMembersWithBodyWithResponse added in v1.12.1

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 added in v1.12.1

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

func (*ClientWithResponses) ValidateChildMembersWithBodyWithResponse added in v1.12.1

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 added in v1.12.1

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

func (*ClientWithResponses) ValidateMembersWithBodyWithResponse added in v1.12.1

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

ValidateMembersWithBodyWithResponse request with arbitrary body returning *ValidateMembersResponse

func (*ClientWithResponses) ValidateMembersWithResponse added in v1.12.1

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

type ClientWithResponsesInterface added in v1.12.1

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

	// 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)

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

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

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

	// 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)

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

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

	// 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)

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

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

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

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

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

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

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

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

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

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

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

type Condition added in v1.12.1

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

Condition defines model for Condition.

type DefaultRolesResponse added in v1.12.1

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

DefaultRolesResponse defines model for DefaultRolesResponse.

type ErrorResponse added in v1.12.1

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 added in v1.12.1

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

func (GetDefaultRolesResponse) Status added in v1.12.1

func (r GetDefaultRolesResponse) Status() string

Status returns HTTPResponse.Status

func (GetDefaultRolesResponse) StatusCode added in v1.12.1

func (r GetDefaultRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMembersParams added in v1.12.1

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

GetMembersParams defines parameters for GetMembers.

type GetMembersResponse added in v1.12.1

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

func (GetMembersResponse) Status added in v1.12.1

func (r GetMembersResponse) Status() string

Status returns HTTPResponse.Status

func (GetMembersResponse) StatusCode added in v1.12.1

func (r GetMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPermissionsParams added in v1.12.1

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

GetPermissionsParams defines parameters for GetPermissions.

type GetPermissionsResponse added in v1.12.1

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

func (GetPermissionsResponse) Status added in v1.12.1

func (r GetPermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetPermissionsResponse) StatusCode added in v1.12.1

func (r GetPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRolesResponse added in v1.12.1

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

func (GetRolesResponse) Status added in v1.12.1

func (r GetRolesResponse) Status() string

Status returns HTTPResponse.Status

func (GetRolesResponse) StatusCode added in v1.12.1

func (r GetRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSubjectsParams added in v1.12.1

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

GetSubjectsParams defines parameters for GetSubjects.

type GetSubjectsResponse added in v1.12.1

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

func (GetSubjectsResponse) Status added in v1.12.1

func (r GetSubjectsResponse) Status() string

Status returns HTTPResponse.Status

func (GetSubjectsResponse) StatusCode added in v1.12.1

func (r GetSubjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserMembershipsParams added in v1.12.1

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 added in v1.12.1

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

func (GetUserMembershipsResponse) Status added in v1.12.1

Status returns HTTPResponse.Status

func (GetUserMembershipsResponse) StatusCode added in v1.12.1

func (r GetUserMembershipsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserPermissionsParams added in v1.12.1

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 added in v1.12.1

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

func (GetUserPermissionsResponse) Status added in v1.12.1

Status returns HTTPResponse.Status

func (GetUserPermissionsResponse) StatusCode added in v1.12.1

func (r GetUserPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserResourcesParams added in v1.12.1

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 added in v1.12.1

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

func (GetUserResourcesResponse) Status added in v1.12.1

func (r GetUserResourcesResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserResourcesResponse) StatusCode added in v1.12.1

func (r GetUserResourcesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Member added in v1.12.1

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

Member defines model for Member.

type MemberWithoutCondition added in v1.12.1

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

MemberWithoutCondition defines model for MemberWithoutCondition.

type MembersPayload added in v1.12.1

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

MembersPayload defines model for MembersPayload.

type MembersResponse added in v1.12.1

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

MembersResponse defines model for MembersResponse.

type MembersWithoutConditionPayload added in v1.12.1

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

MembersWithoutConditionPayload defines model for MembersWithoutConditionPayload.

type Permission added in v1.12.1

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

Permission defines model for Permission.

type PermissionReason added in v1.12.1

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

PermissionReason defines model for PermissionReason.

type PermissionRequest added in v1.12.1

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

PermissionRequest defines model for PermissionRequest.

type PermissionWithInheritance added in v1.12.1

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

PermissionWithInheritance defines model for PermissionWithInheritance.

type PermissionWithInheritanceInheritance added in v1.12.1

type PermissionWithInheritanceInheritance string

PermissionWithInheritanceInheritance defines model for PermissionWithInheritance.Inheritance.

Defines values for PermissionWithInheritanceInheritance.

type PermissionWithReason added in v1.12.1

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

PermissionWithReason defines model for PermissionWithReason.

type PermissionsResponse added in v1.12.1

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

PermissionsResponse defines model for PermissionsResponse.

type RemoveDefaultRolesJSONRequestBody added in v1.12.1

type RemoveDefaultRolesJSONRequestBody = RemoveDefaultRolesRequest

RemoveDefaultRolesJSONRequestBody defines body for RemoveDefaultRoles for application/json ContentType.

type RemoveDefaultRolesRequest added in v1.12.1

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

RemoveDefaultRolesRequest defines model for RemoveDefaultRolesRequest.

type RemoveDefaultRolesResponse added in v1.12.1

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

func (RemoveDefaultRolesResponse) Status added in v1.12.1

Status returns HTTPResponse.Status

func (RemoveDefaultRolesResponse) StatusCode added in v1.12.1

func (r RemoveDefaultRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveMembersJSONRequestBody added in v1.12.1

type RemoveMembersJSONRequestBody = MembersWithoutConditionPayload

RemoveMembersJSONRequestBody defines body for RemoveMembers for application/json ContentType.

type RemoveMembersResponse added in v1.12.1

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

func (RemoveMembersResponse) Status added in v1.12.1

func (r RemoveMembersResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveMembersResponse) StatusCode added in v1.12.1

func (r RemoveMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemovePermissionsJSONRequestBody added in v1.12.1

type RemovePermissionsJSONRequestBody = RemovePermissionsRequest

RemovePermissionsJSONRequestBody defines body for RemovePermissions for application/json ContentType.

type RemovePermissionsRequest added in v1.12.1

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

RemovePermissionsRequest defines model for RemovePermissionsRequest.

type RemovePermissionsResponse added in v1.12.1

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

func (RemovePermissionsResponse) Status added in v1.12.1

func (r RemovePermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (RemovePermissionsResponse) StatusCode added in v1.12.1

func (r RemovePermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveRoleRequest added in v1.12.1

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

RemoveRoleRequest defines model for RemoveRoleRequest.

type RemoveRolesJSONRequestBody added in v1.12.1

type RemoveRolesJSONRequestBody = RemoveRolesPayload

RemoveRolesJSONRequestBody defines body for RemoveRoles for application/json ContentType.

type RemoveRolesPayload added in v1.12.1

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

RemoveRolesPayload defines model for RemoveRolesPayload.

type RemoveRolesResponse added in v1.12.1

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

func (RemoveRolesResponse) Status added in v1.12.1

func (r RemoveRolesResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveRolesResponse) StatusCode added in v1.12.1

func (r RemoveRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplaceMembersJSONRequestBody added in v1.12.1

type ReplaceMembersJSONRequestBody = MembersPayload

ReplaceMembersJSONRequestBody defines body for ReplaceMembers for application/json ContentType.

type ReplaceMembersResponse added in v1.12.1

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

func (ReplaceMembersResponse) Status added in v1.12.1

func (r ReplaceMembersResponse) Status() string

Status returns HTTPResponse.Status

func (ReplaceMembersResponse) StatusCode added in v1.12.1

func (r ReplaceMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn added in v1.12.1

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

RequestEditorFn is the function signature for the RequestEditor callback function

type Resource added in v1.12.1

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

Resource defines model for Resource.

type Role added in v1.12.1

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

Role defines model for Role.

type RolesResponse added in v1.12.1

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

RolesResponse defines model for RolesResponse.

type Subject added in v1.12.1

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

Subject defines model for Subject.

type SubjectType added in v1.12.1

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 added in v1.12.1

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

SubjectsResponse defines model for SubjectsResponse.

type UserMembership added in v1.12.1

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 added in v1.12.1

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

UserMembershipsResponse defines model for UserMembershipsResponse.

type UserPermission added in v1.12.1

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

UserPermission defines model for UserPermission.

type UserPermissionsResponse added in v1.12.1

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

UserPermissionsResponse defines model for UserPermissionsResponse.

type UserResourcesResponse added in v1.12.1

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

UserResourcesResponse defines model for UserResourcesResponse.

type ValidateChildMembersJSONRequestBody added in v1.12.1

type ValidateChildMembersJSONRequestBody = ChildMembersPayload

ValidateChildMembersJSONRequestBody defines body for ValidateChildMembers for application/json ContentType.

type ValidateChildMembersResponse added in v1.12.1

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

func (ValidateChildMembersResponse) Status added in v1.12.1

Status returns HTTPResponse.Status

func (ValidateChildMembersResponse) StatusCode added in v1.12.1

func (r ValidateChildMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ValidateMembersJSONRequestBody added in v1.12.1

type ValidateMembersJSONRequestBody = MembersPayload

ValidateMembersJSONRequestBody defines body for ValidateMembers for application/json ContentType.

type ValidateMembersResponse added in v1.12.1

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

func (ValidateMembersResponse) Status added in v1.12.1

func (r ValidateMembersResponse) Status() string

Status returns HTTPResponse.Status

func (ValidateMembersResponse) StatusCode added in v1.12.1

func (r ValidateMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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