Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateInvitations(params *CreateInvitationsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateInvitationsOK, error)
- func (a *Client) DeleteInvitation(params *DeleteInvitationParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteInvitationOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateInvitationsOK
- func (o *CreateInvitationsOK) Code() int
- func (o *CreateInvitationsOK) Error() string
- func (o *CreateInvitationsOK) GetPayload() *models.ActivityResponse
- func (o *CreateInvitationsOK) IsClientError() bool
- func (o *CreateInvitationsOK) IsCode(code int) bool
- func (o *CreateInvitationsOK) IsRedirect() bool
- func (o *CreateInvitationsOK) IsServerError() bool
- func (o *CreateInvitationsOK) IsSuccess() bool
- func (o *CreateInvitationsOK) String() string
- type CreateInvitationsParams
- func NewCreateInvitationsParams() *CreateInvitationsParams
- func NewCreateInvitationsParamsWithContext(ctx context.Context) *CreateInvitationsParams
- func NewCreateInvitationsParamsWithHTTPClient(client *http.Client) *CreateInvitationsParams
- func NewCreateInvitationsParamsWithTimeout(timeout time.Duration) *CreateInvitationsParams
- func (o *CreateInvitationsParams) SetBody(body *models.CreateInvitationsRequest)
- func (o *CreateInvitationsParams) SetContext(ctx context.Context)
- func (o *CreateInvitationsParams) SetDefaults()
- func (o *CreateInvitationsParams) SetHTTPClient(client *http.Client)
- func (o *CreateInvitationsParams) SetTimeout(timeout time.Duration)
- func (o *CreateInvitationsParams) WithBody(body *models.CreateInvitationsRequest) *CreateInvitationsParams
- func (o *CreateInvitationsParams) WithContext(ctx context.Context) *CreateInvitationsParams
- func (o *CreateInvitationsParams) WithDefaults() *CreateInvitationsParams
- func (o *CreateInvitationsParams) WithHTTPClient(client *http.Client) *CreateInvitationsParams
- func (o *CreateInvitationsParams) WithTimeout(timeout time.Duration) *CreateInvitationsParams
- func (o *CreateInvitationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateInvitationsReader
- type DeleteInvitationOK
- func (o *DeleteInvitationOK) Code() int
- func (o *DeleteInvitationOK) Error() string
- func (o *DeleteInvitationOK) GetPayload() *models.ActivityResponse
- func (o *DeleteInvitationOK) IsClientError() bool
- func (o *DeleteInvitationOK) IsCode(code int) bool
- func (o *DeleteInvitationOK) IsRedirect() bool
- func (o *DeleteInvitationOK) IsServerError() bool
- func (o *DeleteInvitationOK) IsSuccess() bool
- func (o *DeleteInvitationOK) String() string
- type DeleteInvitationParams
- func NewDeleteInvitationParams() *DeleteInvitationParams
- func NewDeleteInvitationParamsWithContext(ctx context.Context) *DeleteInvitationParams
- func NewDeleteInvitationParamsWithHTTPClient(client *http.Client) *DeleteInvitationParams
- func NewDeleteInvitationParamsWithTimeout(timeout time.Duration) *DeleteInvitationParams
- func (o *DeleteInvitationParams) SetBody(body *models.DeleteInvitationRequest)
- func (o *DeleteInvitationParams) SetContext(ctx context.Context)
- func (o *DeleteInvitationParams) SetDefaults()
- func (o *DeleteInvitationParams) SetHTTPClient(client *http.Client)
- func (o *DeleteInvitationParams) SetTimeout(timeout time.Duration)
- func (o *DeleteInvitationParams) WithBody(body *models.DeleteInvitationRequest) *DeleteInvitationParams
- func (o *DeleteInvitationParams) WithContext(ctx context.Context) *DeleteInvitationParams
- func (o *DeleteInvitationParams) WithDefaults() *DeleteInvitationParams
- func (o *DeleteInvitationParams) WithHTTPClient(client *http.Client) *DeleteInvitationParams
- func (o *DeleteInvitationParams) WithTimeout(timeout time.Duration) *DeleteInvitationParams
- func (o *DeleteInvitationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteInvitationReader
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 ¶
func (o *CreateInvitationsParams) SetBody(body *models.CreateInvitationsRequest)
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 ¶
func (o *CreateInvitationsParams) WithBody(body *models.CreateInvitationsRequest) *CreateInvitationsParams
WithBody adds the body to the create invitations params
func (*CreateInvitationsParams) WithContext ¶
func (o *CreateInvitationsParams) WithContext(ctx context.Context) *CreateInvitationsParams
WithContext adds the context to the create invitations params
func (*CreateInvitationsParams) WithDefaults ¶
func (o *CreateInvitationsParams) WithDefaults() *CreateInvitationsParams
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 ¶
func (o *CreateInvitationsParams) WithTimeout(timeout time.Duration) *CreateInvitationsParams
WithTimeout adds the timeout to the create invitations params
func (*CreateInvitationsParams) WriteToRequest ¶
func (o *CreateInvitationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteInvitationParams) SetBody(body *models.DeleteInvitationRequest)
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 ¶
func (o *DeleteInvitationParams) WithBody(body *models.DeleteInvitationRequest) *DeleteInvitationParams
WithBody adds the body to the delete invitation params
func (*DeleteInvitationParams) WithContext ¶
func (o *DeleteInvitationParams) WithContext(ctx context.Context) *DeleteInvitationParams
WithContext adds the context to the delete invitation params
func (*DeleteInvitationParams) WithDefaults ¶
func (o *DeleteInvitationParams) WithDefaults() *DeleteInvitationParams
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 ¶
func (o *DeleteInvitationParams) WithTimeout(timeout time.Duration) *DeleteInvitationParams
WithTimeout adds the timeout to the delete invitation params
func (*DeleteInvitationParams) WriteToRequest ¶
func (o *DeleteInvitationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.