invitations

package
v0.0.0-...-a28b298 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 Client

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

Client for invitations API

func (*Client) CreateInvitations

func (a *Client) CreateInvitations(params *CreateInvitationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInvitationsOK, error)

CreateInvitations creates invitations

Create Invitations to join an existing Organization

func (*Client) DeleteInvitation

func (a *Client) DeleteInvitation(params *DeleteInvitationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteInvitationOK, error)

DeleteInvitation deletes invitation

Delete an existing Invitation

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 {
	CreateInvitations(params *CreateInvitationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInvitationsOK, error)

	DeleteInvitation(params *DeleteInvitationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteInvitationOK, 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 invitations API client.

type CreateInvitationsOK

type CreateInvitationsOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewCreateInvitationsOK

func NewCreateInvitationsOK() *CreateInvitationsOK

NewCreateInvitationsOK creates a CreateInvitationsOK with default headers values

func (*CreateInvitationsOK) Code

func (o *CreateInvitationsOK) Code() int

Code gets the status code for the create invitations o k response

func (*CreateInvitationsOK) Error

func (o *CreateInvitationsOK) Error() string

func (*CreateInvitationsOK) GetPayload

func (o *CreateInvitationsOK) GetPayload() *models.ActivityResponse

func (*CreateInvitationsOK) IsClientError

func (o *CreateInvitationsOK) IsClientError() bool

IsClientError returns true when this create invitations o k response has a 4xx status code

func (*CreateInvitationsOK) IsCode

func (o *CreateInvitationsOK) IsCode(code int) bool

IsCode returns true when this create invitations o k response a status code equal to that given

func (*CreateInvitationsOK) IsRedirect

func (o *CreateInvitationsOK) IsRedirect() bool

IsRedirect returns true when this create invitations o k response has a 3xx status code

func (*CreateInvitationsOK) IsServerError

func (o *CreateInvitationsOK) IsServerError() bool

IsServerError returns true when this create invitations o k response has a 5xx status code

func (*CreateInvitationsOK) IsSuccess

func (o *CreateInvitationsOK) IsSuccess() bool

IsSuccess returns true when this create invitations o k response has a 2xx status code

func (*CreateInvitationsOK) String

func (o *CreateInvitationsOK) String() string

type CreateInvitationsParams

type CreateInvitationsParams struct {

	// Body.
	Body *models.CreateInvitationsRequest

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

CreateInvitationsParams contains all the parameters to send to the API endpoint

for the create invitations operation.

Typically these are written to a http.Request.

func NewCreateInvitationsParams

func NewCreateInvitationsParams() *CreateInvitationsParams

NewCreateInvitationsParams creates a new CreateInvitationsParams 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 NewCreateInvitationsParamsWithContext

func NewCreateInvitationsParamsWithContext(ctx context.Context) *CreateInvitationsParams

NewCreateInvitationsParamsWithContext creates a new CreateInvitationsParams object with the ability to set a context for a request.

func NewCreateInvitationsParamsWithHTTPClient

func NewCreateInvitationsParamsWithHTTPClient(client *http.Client) *CreateInvitationsParams

NewCreateInvitationsParamsWithHTTPClient creates a new CreateInvitationsParams object with the ability to set a custom HTTPClient for a request.

func NewCreateInvitationsParamsWithTimeout

func NewCreateInvitationsParamsWithTimeout(timeout time.Duration) *CreateInvitationsParams

NewCreateInvitationsParamsWithTimeout creates a new CreateInvitationsParams object with the ability to set a timeout on a request.

func (*CreateInvitationsParams) SetBody

SetBody adds the body to the create invitations params

func (*CreateInvitationsParams) SetContext

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

SetContext adds the context to the create invitations params

func (*CreateInvitationsParams) SetDefaults

func (o *CreateInvitationsParams) SetDefaults()

SetDefaults hydrates default values in the create invitations params (not the query body).

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

func (*CreateInvitationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create invitations params

func (*CreateInvitationsParams) SetTimeout

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

SetTimeout adds the timeout to the create invitations params

func (*CreateInvitationsParams) WithBody

WithBody adds the body to the create invitations params

func (*CreateInvitationsParams) WithContext

WithContext adds the context to the create invitations params

func (*CreateInvitationsParams) WithDefaults

WithDefaults hydrates default values in the create invitations params (not the query body).

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

func (*CreateInvitationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create invitations params

func (*CreateInvitationsParams) WithTimeout

WithTimeout adds the timeout to the create invitations params

func (*CreateInvitationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateInvitationsReader

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

CreateInvitationsReader is a Reader for the CreateInvitations structure.

func (*CreateInvitationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteInvitationOK

type DeleteInvitationOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewDeleteInvitationOK

func NewDeleteInvitationOK() *DeleteInvitationOK

NewDeleteInvitationOK creates a DeleteInvitationOK with default headers values

func (*DeleteInvitationOK) Code

func (o *DeleteInvitationOK) Code() int

Code gets the status code for the delete invitation o k response

func (*DeleteInvitationOK) Error

func (o *DeleteInvitationOK) Error() string

func (*DeleteInvitationOK) GetPayload

func (o *DeleteInvitationOK) GetPayload() *models.ActivityResponse

func (*DeleteInvitationOK) IsClientError

func (o *DeleteInvitationOK) IsClientError() bool

IsClientError returns true when this delete invitation o k response has a 4xx status code

func (*DeleteInvitationOK) IsCode

func (o *DeleteInvitationOK) IsCode(code int) bool

IsCode returns true when this delete invitation o k response a status code equal to that given

func (*DeleteInvitationOK) IsRedirect

func (o *DeleteInvitationOK) IsRedirect() bool

IsRedirect returns true when this delete invitation o k response has a 3xx status code

func (*DeleteInvitationOK) IsServerError

func (o *DeleteInvitationOK) IsServerError() bool

IsServerError returns true when this delete invitation o k response has a 5xx status code

func (*DeleteInvitationOK) IsSuccess

func (o *DeleteInvitationOK) IsSuccess() bool

IsSuccess returns true when this delete invitation o k response has a 2xx status code

func (*DeleteInvitationOK) String

func (o *DeleteInvitationOK) String() string

type DeleteInvitationParams

type DeleteInvitationParams struct {

	// Body.
	Body *models.DeleteInvitationRequest

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

DeleteInvitationParams contains all the parameters to send to the API endpoint

for the delete invitation operation.

Typically these are written to a http.Request.

func NewDeleteInvitationParams

func NewDeleteInvitationParams() *DeleteInvitationParams

NewDeleteInvitationParams creates a new DeleteInvitationParams 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 NewDeleteInvitationParamsWithContext

func NewDeleteInvitationParamsWithContext(ctx context.Context) *DeleteInvitationParams

NewDeleteInvitationParamsWithContext creates a new DeleteInvitationParams object with the ability to set a context for a request.

func NewDeleteInvitationParamsWithHTTPClient

func NewDeleteInvitationParamsWithHTTPClient(client *http.Client) *DeleteInvitationParams

NewDeleteInvitationParamsWithHTTPClient creates a new DeleteInvitationParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteInvitationParamsWithTimeout

func NewDeleteInvitationParamsWithTimeout(timeout time.Duration) *DeleteInvitationParams

NewDeleteInvitationParamsWithTimeout creates a new DeleteInvitationParams object with the ability to set a timeout on a request.

func (*DeleteInvitationParams) SetBody

SetBody adds the body to the delete invitation params

func (*DeleteInvitationParams) SetContext

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

SetContext adds the context to the delete invitation params

func (*DeleteInvitationParams) SetDefaults

func (o *DeleteInvitationParams) SetDefaults()

SetDefaults hydrates default values in the delete invitation params (not the query body).

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

func (*DeleteInvitationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete invitation params

func (*DeleteInvitationParams) SetTimeout

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

SetTimeout adds the timeout to the delete invitation params

func (*DeleteInvitationParams) WithBody

WithBody adds the body to the delete invitation params

func (*DeleteInvitationParams) WithContext

WithContext adds the context to the delete invitation params

func (*DeleteInvitationParams) WithDefaults

WithDefaults hydrates default values in the delete invitation params (not the query body).

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

func (*DeleteInvitationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete invitation params

func (*DeleteInvitationParams) WithTimeout

WithTimeout adds the timeout to the delete invitation params

func (*DeleteInvitationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteInvitationReader

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

DeleteInvitationReader is a Reader for the DeleteInvitation structure.

func (*DeleteInvitationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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