org_invites

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOrgInviteBadRequest

type AddOrgInviteBadRequest struct {
	Payload *models.ErrorResponseBody
}

AddOrgInviteBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewAddOrgInviteBadRequest

func NewAddOrgInviteBadRequest() *AddOrgInviteBadRequest

NewAddOrgInviteBadRequest creates a AddOrgInviteBadRequest with default headers values

func (*AddOrgInviteBadRequest) Error

func (o *AddOrgInviteBadRequest) Error() string

func (*AddOrgInviteBadRequest) GetPayload

type AddOrgInviteForbidden

type AddOrgInviteForbidden struct {
	Payload *models.ErrorResponseBody
}

AddOrgInviteForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAddOrgInviteForbidden

func NewAddOrgInviteForbidden() *AddOrgInviteForbidden

NewAddOrgInviteForbidden creates a AddOrgInviteForbidden with default headers values

func (*AddOrgInviteForbidden) Error

func (o *AddOrgInviteForbidden) Error() string

func (*AddOrgInviteForbidden) GetPayload

type AddOrgInviteInternalServerError

type AddOrgInviteInternalServerError struct {
	Payload *models.ErrorResponseBody
}

AddOrgInviteInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewAddOrgInviteInternalServerError

func NewAddOrgInviteInternalServerError() *AddOrgInviteInternalServerError

NewAddOrgInviteInternalServerError creates a AddOrgInviteInternalServerError with default headers values

func (*AddOrgInviteInternalServerError) Error

func (*AddOrgInviteInternalServerError) GetPayload

type AddOrgInviteOK

type AddOrgInviteOK struct {
	Payload *models.SuccessResponseBody
}

AddOrgInviteOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewAddOrgInviteOK

func NewAddOrgInviteOK() *AddOrgInviteOK

NewAddOrgInviteOK creates a AddOrgInviteOK with default headers values

func (*AddOrgInviteOK) Error

func (o *AddOrgInviteOK) Error() string

func (*AddOrgInviteOK) GetPayload

func (o *AddOrgInviteOK) GetPayload() *models.SuccessResponseBody

type AddOrgInviteParams

type AddOrgInviteParams struct {

	// Body.
	Body *models.AddInviteForm

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddOrgInviteParams contains all the parameters to send to the API endpoint

for the add org invite operation.

Typically these are written to a http.Request.

func NewAddOrgInviteParams

func NewAddOrgInviteParams() *AddOrgInviteParams

NewAddOrgInviteParams creates a new AddOrgInviteParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewAddOrgInviteParamsWithContext

func NewAddOrgInviteParamsWithContext(ctx context.Context) *AddOrgInviteParams

NewAddOrgInviteParamsWithContext creates a new AddOrgInviteParams object with the ability to set a context for a request.

func NewAddOrgInviteParamsWithHTTPClient

func NewAddOrgInviteParamsWithHTTPClient(client *http.Client) *AddOrgInviteParams

NewAddOrgInviteParamsWithHTTPClient creates a new AddOrgInviteParams object with the ability to set a custom HTTPClient for a request.

func NewAddOrgInviteParamsWithTimeout

func NewAddOrgInviteParamsWithTimeout(timeout time.Duration) *AddOrgInviteParams

NewAddOrgInviteParamsWithTimeout creates a new AddOrgInviteParams object with the ability to set a timeout on a request.

func (*AddOrgInviteParams) SetBody

func (o *AddOrgInviteParams) SetBody(body *models.AddInviteForm)

SetBody adds the body to the add org invite params

func (*AddOrgInviteParams) SetContext

func (o *AddOrgInviteParams) SetContext(ctx context.Context)

SetContext adds the context to the add org invite params

func (*AddOrgInviteParams) SetDefaults

func (o *AddOrgInviteParams) SetDefaults()

SetDefaults hydrates default values in the add org invite params (not the query body).

All values with no default are reset to their zero value.

func (*AddOrgInviteParams) SetHTTPClient

func (o *AddOrgInviteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add org invite params

func (*AddOrgInviteParams) SetTimeout

func (o *AddOrgInviteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add org invite params

func (*AddOrgInviteParams) WithBody

WithBody adds the body to the add org invite params

func (*AddOrgInviteParams) WithContext

WithContext adds the context to the add org invite params

func (*AddOrgInviteParams) WithDefaults

func (o *AddOrgInviteParams) WithDefaults() *AddOrgInviteParams

WithDefaults hydrates default values in the add org invite params (not the query body).

All values with no default are reset to their zero value.

func (*AddOrgInviteParams) WithHTTPClient

func (o *AddOrgInviteParams) WithHTTPClient(client *http.Client) *AddOrgInviteParams

WithHTTPClient adds the HTTPClient to the add org invite params

func (*AddOrgInviteParams) WithTimeout

func (o *AddOrgInviteParams) WithTimeout(timeout time.Duration) *AddOrgInviteParams

WithTimeout adds the timeout to the add org invite params

func (*AddOrgInviteParams) WriteToRequest

func (o *AddOrgInviteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddOrgInvitePreconditionFailed

type AddOrgInvitePreconditionFailed struct {
}

AddOrgInvitePreconditionFailed describes a response with status code 412, with default header values.

(empty)

func NewAddOrgInvitePreconditionFailed

func NewAddOrgInvitePreconditionFailed() *AddOrgInvitePreconditionFailed

NewAddOrgInvitePreconditionFailed creates a AddOrgInvitePreconditionFailed with default headers values

func (*AddOrgInvitePreconditionFailed) Error

type AddOrgInviteReader

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

AddOrgInviteReader is a Reader for the AddOrgInvite structure.

func (*AddOrgInviteReader) ReadResponse

func (o *AddOrgInviteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type AddOrgInviteUnauthorized

type AddOrgInviteUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AddOrgInviteUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAddOrgInviteUnauthorized

func NewAddOrgInviteUnauthorized() *AddOrgInviteUnauthorized

NewAddOrgInviteUnauthorized creates a AddOrgInviteUnauthorized with default headers values

func (*AddOrgInviteUnauthorized) Error

func (o *AddOrgInviteUnauthorized) Error() string

func (*AddOrgInviteUnauthorized) GetPayload

type Client

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

Client for org invites API

func (*Client) AddOrgInvite

func (a *Client) AddOrgInvite(params *AddOrgInviteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOrgInviteOK, error)

AddOrgInvite adds invite

func (*Client) GetPendingOrgInvites

func (a *Client) GetPendingOrgInvites(params *GetPendingOrgInvitesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPendingOrgInvitesOK, error)

GetPendingOrgInvites gets pending invites

func (*Client) RevokeInvite

func (a *Client) RevokeInvite(params *RevokeInviteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeInviteOK, error)

RevokeInvite revokes invite

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddOrgInvite(params *AddOrgInviteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOrgInviteOK, error)

	GetPendingOrgInvites(params *GetPendingOrgInvitesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPendingOrgInvitesOK, error)

	RevokeInvite(params *RevokeInviteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeInviteOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new org invites API client.

type GetPendingOrgInvitesForbidden

type GetPendingOrgInvitesForbidden struct {
	Payload *models.ErrorResponseBody
}

GetPendingOrgInvitesForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetPendingOrgInvitesForbidden

func NewGetPendingOrgInvitesForbidden() *GetPendingOrgInvitesForbidden

NewGetPendingOrgInvitesForbidden creates a GetPendingOrgInvitesForbidden with default headers values

func (*GetPendingOrgInvitesForbidden) Error

func (*GetPendingOrgInvitesForbidden) GetPayload

type GetPendingOrgInvitesInternalServerError

type GetPendingOrgInvitesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetPendingOrgInvitesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetPendingOrgInvitesInternalServerError

func NewGetPendingOrgInvitesInternalServerError() *GetPendingOrgInvitesInternalServerError

NewGetPendingOrgInvitesInternalServerError creates a GetPendingOrgInvitesInternalServerError with default headers values

func (*GetPendingOrgInvitesInternalServerError) Error

func (*GetPendingOrgInvitesInternalServerError) GetPayload

type GetPendingOrgInvitesOK

type GetPendingOrgInvitesOK struct {
	Payload []*models.TempUserDTO
}

GetPendingOrgInvitesOK describes a response with status code 200, with default header values.

(empty)

func NewGetPendingOrgInvitesOK

func NewGetPendingOrgInvitesOK() *GetPendingOrgInvitesOK

NewGetPendingOrgInvitesOK creates a GetPendingOrgInvitesOK with default headers values

func (*GetPendingOrgInvitesOK) Error

func (o *GetPendingOrgInvitesOK) Error() string

func (*GetPendingOrgInvitesOK) GetPayload

func (o *GetPendingOrgInvitesOK) GetPayload() []*models.TempUserDTO

type GetPendingOrgInvitesParams

type GetPendingOrgInvitesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPendingOrgInvitesParams contains all the parameters to send to the API endpoint

for the get pending org invites operation.

Typically these are written to a http.Request.

func NewGetPendingOrgInvitesParams

func NewGetPendingOrgInvitesParams() *GetPendingOrgInvitesParams

NewGetPendingOrgInvitesParams creates a new GetPendingOrgInvitesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetPendingOrgInvitesParamsWithContext

func NewGetPendingOrgInvitesParamsWithContext(ctx context.Context) *GetPendingOrgInvitesParams

NewGetPendingOrgInvitesParamsWithContext creates a new GetPendingOrgInvitesParams object with the ability to set a context for a request.

func NewGetPendingOrgInvitesParamsWithHTTPClient

func NewGetPendingOrgInvitesParamsWithHTTPClient(client *http.Client) *GetPendingOrgInvitesParams

NewGetPendingOrgInvitesParamsWithHTTPClient creates a new GetPendingOrgInvitesParams object with the ability to set a custom HTTPClient for a request.

func NewGetPendingOrgInvitesParamsWithTimeout

func NewGetPendingOrgInvitesParamsWithTimeout(timeout time.Duration) *GetPendingOrgInvitesParams

NewGetPendingOrgInvitesParamsWithTimeout creates a new GetPendingOrgInvitesParams object with the ability to set a timeout on a request.

func (*GetPendingOrgInvitesParams) SetContext

func (o *GetPendingOrgInvitesParams) SetContext(ctx context.Context)

SetContext adds the context to the get pending org invites params

func (*GetPendingOrgInvitesParams) SetDefaults

func (o *GetPendingOrgInvitesParams) SetDefaults()

SetDefaults hydrates default values in the get pending org invites params (not the query body).

All values with no default are reset to their zero value.

func (*GetPendingOrgInvitesParams) SetHTTPClient

func (o *GetPendingOrgInvitesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get pending org invites params

func (*GetPendingOrgInvitesParams) SetTimeout

func (o *GetPendingOrgInvitesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get pending org invites params

func (*GetPendingOrgInvitesParams) WithContext

WithContext adds the context to the get pending org invites params

func (*GetPendingOrgInvitesParams) WithDefaults

WithDefaults hydrates default values in the get pending org invites params (not the query body).

All values with no default are reset to their zero value.

func (*GetPendingOrgInvitesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get pending org invites params

func (*GetPendingOrgInvitesParams) WithTimeout

WithTimeout adds the timeout to the get pending org invites params

func (*GetPendingOrgInvitesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPendingOrgInvitesReader

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

GetPendingOrgInvitesReader is a Reader for the GetPendingOrgInvites structure.

func (*GetPendingOrgInvitesReader) ReadResponse

func (o *GetPendingOrgInvitesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPendingOrgInvitesUnauthorized

type GetPendingOrgInvitesUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetPendingOrgInvitesUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetPendingOrgInvitesUnauthorized

func NewGetPendingOrgInvitesUnauthorized() *GetPendingOrgInvitesUnauthorized

NewGetPendingOrgInvitesUnauthorized creates a GetPendingOrgInvitesUnauthorized with default headers values

func (*GetPendingOrgInvitesUnauthorized) Error

func (*GetPendingOrgInvitesUnauthorized) GetPayload

type RevokeInviteForbidden

type RevokeInviteForbidden struct {
	Payload *models.ErrorResponseBody
}

RevokeInviteForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewRevokeInviteForbidden

func NewRevokeInviteForbidden() *RevokeInviteForbidden

NewRevokeInviteForbidden creates a RevokeInviteForbidden with default headers values

func (*RevokeInviteForbidden) Error

func (o *RevokeInviteForbidden) Error() string

func (*RevokeInviteForbidden) GetPayload

type RevokeInviteInternalServerError

type RevokeInviteInternalServerError struct {
	Payload *models.ErrorResponseBody
}

RevokeInviteInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewRevokeInviteInternalServerError

func NewRevokeInviteInternalServerError() *RevokeInviteInternalServerError

NewRevokeInviteInternalServerError creates a RevokeInviteInternalServerError with default headers values

func (*RevokeInviteInternalServerError) Error

func (*RevokeInviteInternalServerError) GetPayload

type RevokeInviteNotFound

type RevokeInviteNotFound struct {
	Payload *models.ErrorResponseBody
}

RevokeInviteNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewRevokeInviteNotFound

func NewRevokeInviteNotFound() *RevokeInviteNotFound

NewRevokeInviteNotFound creates a RevokeInviteNotFound with default headers values

func (*RevokeInviteNotFound) Error

func (o *RevokeInviteNotFound) Error() string

func (*RevokeInviteNotFound) GetPayload

type RevokeInviteOK

type RevokeInviteOK struct {
	Payload *models.SuccessResponseBody
}

RevokeInviteOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewRevokeInviteOK

func NewRevokeInviteOK() *RevokeInviteOK

NewRevokeInviteOK creates a RevokeInviteOK with default headers values

func (*RevokeInviteOK) Error

func (o *RevokeInviteOK) Error() string

func (*RevokeInviteOK) GetPayload

func (o *RevokeInviteOK) GetPayload() *models.SuccessResponseBody

type RevokeInviteParams

type RevokeInviteParams struct {

	// InvitationCode.
	InvitationCode string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RevokeInviteParams contains all the parameters to send to the API endpoint

for the revoke invite operation.

Typically these are written to a http.Request.

func NewRevokeInviteParams

func NewRevokeInviteParams() *RevokeInviteParams

NewRevokeInviteParams creates a new RevokeInviteParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRevokeInviteParamsWithContext

func NewRevokeInviteParamsWithContext(ctx context.Context) *RevokeInviteParams

NewRevokeInviteParamsWithContext creates a new RevokeInviteParams object with the ability to set a context for a request.

func NewRevokeInviteParamsWithHTTPClient

func NewRevokeInviteParamsWithHTTPClient(client *http.Client) *RevokeInviteParams

NewRevokeInviteParamsWithHTTPClient creates a new RevokeInviteParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeInviteParamsWithTimeout

func NewRevokeInviteParamsWithTimeout(timeout time.Duration) *RevokeInviteParams

NewRevokeInviteParamsWithTimeout creates a new RevokeInviteParams object with the ability to set a timeout on a request.

func (*RevokeInviteParams) SetContext

func (o *RevokeInviteParams) SetContext(ctx context.Context)

SetContext adds the context to the revoke invite params

func (*RevokeInviteParams) SetDefaults

func (o *RevokeInviteParams) SetDefaults()

SetDefaults hydrates default values in the revoke invite params (not the query body).

All values with no default are reset to their zero value.

func (*RevokeInviteParams) SetHTTPClient

func (o *RevokeInviteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the revoke invite params

func (*RevokeInviteParams) SetInvitationCode

func (o *RevokeInviteParams) SetInvitationCode(invitationCode string)

SetInvitationCode adds the invitationCode to the revoke invite params

func (*RevokeInviteParams) SetTimeout

func (o *RevokeInviteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the revoke invite params

func (*RevokeInviteParams) WithContext

WithContext adds the context to the revoke invite params

func (*RevokeInviteParams) WithDefaults

func (o *RevokeInviteParams) WithDefaults() *RevokeInviteParams

WithDefaults hydrates default values in the revoke invite params (not the query body).

All values with no default are reset to their zero value.

func (*RevokeInviteParams) WithHTTPClient

func (o *RevokeInviteParams) WithHTTPClient(client *http.Client) *RevokeInviteParams

WithHTTPClient adds the HTTPClient to the revoke invite params

func (*RevokeInviteParams) WithInvitationCode

func (o *RevokeInviteParams) WithInvitationCode(invitationCode string) *RevokeInviteParams

WithInvitationCode adds the invitationCode to the revoke invite params

func (*RevokeInviteParams) WithTimeout

func (o *RevokeInviteParams) WithTimeout(timeout time.Duration) *RevokeInviteParams

WithTimeout adds the timeout to the revoke invite params

func (*RevokeInviteParams) WriteToRequest

func (o *RevokeInviteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RevokeInviteReader

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

RevokeInviteReader is a Reader for the RevokeInvite structure.

func (*RevokeInviteReader) ReadResponse

func (o *RevokeInviteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RevokeInviteUnauthorized

type RevokeInviteUnauthorized struct {
	Payload *models.ErrorResponseBody
}

RevokeInviteUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewRevokeInviteUnauthorized

func NewRevokeInviteUnauthorized() *RevokeInviteUnauthorized

NewRevokeInviteUnauthorized creates a RevokeInviteUnauthorized with default headers values

func (*RevokeInviteUnauthorized) Error

func (o *RevokeInviteUnauthorized) Error() string

func (*RevokeInviteUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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