teams

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 11 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 teams API

func New

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

New creates a new teams API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TeamCreate

func (a *Client) TeamCreate(params *TeamCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TeamCreateOK, error)

TeamCreate creates a new team

Create a new team. **Access policy**: administrator

func (*Client) TeamDelete

func (a *Client) TeamDelete(params *TeamDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*TeamDeleteNoContent, error)

TeamDelete removes a team

Remove a team. **Access policy**: administrator

func (*Client) TeamInspect

func (a *Client) TeamInspect(params *TeamInspectParams, authInfo runtime.ClientAuthInfoWriter) (*TeamInspectOK, error)

TeamInspect inspects a team

Retrieve details about a team. Access is only available for administrator and leaders of that team. **Access policy**: restricted

func (*Client) TeamList

func (a *Client) TeamList(params *TeamListParams, authInfo runtime.ClientAuthInfoWriter) (*TeamListOK, error)

TeamList lists teams

List teams. For non-administrator users, will only list the teams they are member of. **Access policy**: restricted

func (*Client) TeamMembershipsInspect

func (a *Client) TeamMembershipsInspect(params *TeamMembershipsInspectParams, authInfo runtime.ClientAuthInfoWriter) (*TeamMembershipsInspectOK, error)

TeamMembershipsInspect inspects a team memberships

Inspect a team memberships. Access is only available for administrator and leaders of that team. **Access policy**: restricted

func (*Client) TeamUpdate

func (a *Client) TeamUpdate(params *TeamUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TeamUpdateOK, error)

TeamUpdate updates a team

Update a team. **Access policy**: administrator

type TeamCreateBadRequest

type TeamCreateBadRequest struct {
	Payload *models.GenericError
}

TeamCreateBadRequest handles this case with default header values.

Invalid request

func NewTeamCreateBadRequest

func NewTeamCreateBadRequest() *TeamCreateBadRequest

NewTeamCreateBadRequest creates a TeamCreateBadRequest with default headers values

func (*TeamCreateBadRequest) Error

func (o *TeamCreateBadRequest) Error() string

type TeamCreateConflict

type TeamCreateConflict struct {
	Payload *models.GenericError
}

TeamCreateConflict handles this case with default header values.

Team already exists

func NewTeamCreateConflict

func NewTeamCreateConflict() *TeamCreateConflict

NewTeamCreateConflict creates a TeamCreateConflict with default headers values

func (*TeamCreateConflict) Error

func (o *TeamCreateConflict) Error() string

type TeamCreateForbidden

type TeamCreateForbidden struct {
	Payload *models.GenericError
}

TeamCreateForbidden handles this case with default header values.

Unauthorized

func NewTeamCreateForbidden

func NewTeamCreateForbidden() *TeamCreateForbidden

NewTeamCreateForbidden creates a TeamCreateForbidden with default headers values

func (*TeamCreateForbidden) Error

func (o *TeamCreateForbidden) Error() string

type TeamCreateInternalServerError

type TeamCreateInternalServerError struct {
	Payload *models.GenericError
}

TeamCreateInternalServerError handles this case with default header values.

Server error

func NewTeamCreateInternalServerError

func NewTeamCreateInternalServerError() *TeamCreateInternalServerError

NewTeamCreateInternalServerError creates a TeamCreateInternalServerError with default headers values

func (*TeamCreateInternalServerError) Error

type TeamCreateOK

type TeamCreateOK struct {
	Payload *models.Team
}

TeamCreateOK handles this case with default header values.

Success

func NewTeamCreateOK

func NewTeamCreateOK() *TeamCreateOK

NewTeamCreateOK creates a TeamCreateOK with default headers values

func (*TeamCreateOK) Error

func (o *TeamCreateOK) Error() string

type TeamCreateParams

type TeamCreateParams struct {

	/*Body
	  Team details

	*/
	Body *models.TeamCreateRequest

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

TeamCreateParams contains all the parameters to send to the API endpoint for the team create operation typically these are written to a http.Request

func NewTeamCreateParams

func NewTeamCreateParams() *TeamCreateParams

NewTeamCreateParams creates a new TeamCreateParams object with the default values initialized.

func NewTeamCreateParamsWithContext

func NewTeamCreateParamsWithContext(ctx context.Context) *TeamCreateParams

NewTeamCreateParamsWithContext creates a new TeamCreateParams object with the default values initialized, and the ability to set a context for a request

func NewTeamCreateParamsWithHTTPClient

func NewTeamCreateParamsWithHTTPClient(client *http.Client) *TeamCreateParams

NewTeamCreateParamsWithHTTPClient creates a new TeamCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTeamCreateParamsWithTimeout

func NewTeamCreateParamsWithTimeout(timeout time.Duration) *TeamCreateParams

NewTeamCreateParamsWithTimeout creates a new TeamCreateParams object with the default values initialized, and the ability to set a timeout on a request

func (*TeamCreateParams) SetBody

func (o *TeamCreateParams) SetBody(body *models.TeamCreateRequest)

SetBody adds the body to the team create params

func (*TeamCreateParams) SetContext

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

SetContext adds the context to the team create params

func (*TeamCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the team create params

func (*TeamCreateParams) SetTimeout

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

SetTimeout adds the timeout to the team create params

func (*TeamCreateParams) WithBody

WithBody adds the body to the team create params

func (*TeamCreateParams) WithContext

func (o *TeamCreateParams) WithContext(ctx context.Context) *TeamCreateParams

WithContext adds the context to the team create params

func (*TeamCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the team create params

func (*TeamCreateParams) WithTimeout

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

WithTimeout adds the timeout to the team create params

func (*TeamCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TeamCreateReader

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

TeamCreateReader is a Reader for the TeamCreate structure.

func (*TeamCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TeamDeleteBadRequest

type TeamDeleteBadRequest struct {
	Payload *models.GenericError
}

TeamDeleteBadRequest handles this case with default header values.

Invalid request

func NewTeamDeleteBadRequest

func NewTeamDeleteBadRequest() *TeamDeleteBadRequest

NewTeamDeleteBadRequest creates a TeamDeleteBadRequest with default headers values

func (*TeamDeleteBadRequest) Error

func (o *TeamDeleteBadRequest) Error() string

type TeamDeleteInternalServerError

type TeamDeleteInternalServerError struct {
	Payload *models.GenericError
}

TeamDeleteInternalServerError handles this case with default header values.

Server error

func NewTeamDeleteInternalServerError

func NewTeamDeleteInternalServerError() *TeamDeleteInternalServerError

NewTeamDeleteInternalServerError creates a TeamDeleteInternalServerError with default headers values

func (*TeamDeleteInternalServerError) Error

type TeamDeleteNoContent

type TeamDeleteNoContent struct {
}

TeamDeleteNoContent handles this case with default header values.

Success

func NewTeamDeleteNoContent

func NewTeamDeleteNoContent() *TeamDeleteNoContent

NewTeamDeleteNoContent creates a TeamDeleteNoContent with default headers values

func (*TeamDeleteNoContent) Error

func (o *TeamDeleteNoContent) Error() string

type TeamDeleteNotFound

type TeamDeleteNotFound struct {
	Payload *models.GenericError
}

TeamDeleteNotFound handles this case with default header values.

Team not found

func NewTeamDeleteNotFound

func NewTeamDeleteNotFound() *TeamDeleteNotFound

NewTeamDeleteNotFound creates a TeamDeleteNotFound with default headers values

func (*TeamDeleteNotFound) Error

func (o *TeamDeleteNotFound) Error() string

type TeamDeleteParams

type TeamDeleteParams struct {

	/*ID
	  Team identifier

	*/
	ID int64

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

TeamDeleteParams contains all the parameters to send to the API endpoint for the team delete operation typically these are written to a http.Request

func NewTeamDeleteParams

func NewTeamDeleteParams() *TeamDeleteParams

NewTeamDeleteParams creates a new TeamDeleteParams object with the default values initialized.

func NewTeamDeleteParamsWithContext

func NewTeamDeleteParamsWithContext(ctx context.Context) *TeamDeleteParams

NewTeamDeleteParamsWithContext creates a new TeamDeleteParams object with the default values initialized, and the ability to set a context for a request

func NewTeamDeleteParamsWithHTTPClient

func NewTeamDeleteParamsWithHTTPClient(client *http.Client) *TeamDeleteParams

NewTeamDeleteParamsWithHTTPClient creates a new TeamDeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTeamDeleteParamsWithTimeout

func NewTeamDeleteParamsWithTimeout(timeout time.Duration) *TeamDeleteParams

NewTeamDeleteParamsWithTimeout creates a new TeamDeleteParams object with the default values initialized, and the ability to set a timeout on a request

func (*TeamDeleteParams) SetContext

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

SetContext adds the context to the team delete params

func (*TeamDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the team delete params

func (*TeamDeleteParams) SetID

func (o *TeamDeleteParams) SetID(id int64)

SetID adds the id to the team delete params

func (*TeamDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the team delete params

func (*TeamDeleteParams) WithContext

func (o *TeamDeleteParams) WithContext(ctx context.Context) *TeamDeleteParams

WithContext adds the context to the team delete params

func (*TeamDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the team delete params

func (*TeamDeleteParams) WithID

func (o *TeamDeleteParams) WithID(id int64) *TeamDeleteParams

WithID adds the id to the team delete params

func (*TeamDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the team delete params

func (*TeamDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TeamDeleteReader

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

TeamDeleteReader is a Reader for the TeamDelete structure.

func (*TeamDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TeamInspectBadRequest

type TeamInspectBadRequest struct {
	Payload *models.GenericError
}

TeamInspectBadRequest handles this case with default header values.

Invalid request

func NewTeamInspectBadRequest

func NewTeamInspectBadRequest() *TeamInspectBadRequest

NewTeamInspectBadRequest creates a TeamInspectBadRequest with default headers values

func (*TeamInspectBadRequest) Error

func (o *TeamInspectBadRequest) Error() string

type TeamInspectForbidden

type TeamInspectForbidden struct {
	Payload *models.GenericError
}

TeamInspectForbidden handles this case with default header values.

Unauthorized

func NewTeamInspectForbidden

func NewTeamInspectForbidden() *TeamInspectForbidden

NewTeamInspectForbidden creates a TeamInspectForbidden with default headers values

func (*TeamInspectForbidden) Error

func (o *TeamInspectForbidden) Error() string

type TeamInspectInternalServerError

type TeamInspectInternalServerError struct {
	Payload *models.GenericError
}

TeamInspectInternalServerError handles this case with default header values.

Server error

func NewTeamInspectInternalServerError

func NewTeamInspectInternalServerError() *TeamInspectInternalServerError

NewTeamInspectInternalServerError creates a TeamInspectInternalServerError with default headers values

func (*TeamInspectInternalServerError) Error

type TeamInspectNotFound

type TeamInspectNotFound struct {
	Payload *models.GenericError
}

TeamInspectNotFound handles this case with default header values.

Team not found

func NewTeamInspectNotFound

func NewTeamInspectNotFound() *TeamInspectNotFound

NewTeamInspectNotFound creates a TeamInspectNotFound with default headers values

func (*TeamInspectNotFound) Error

func (o *TeamInspectNotFound) Error() string

type TeamInspectOK

type TeamInspectOK struct {
	Payload *models.Team
}

TeamInspectOK handles this case with default header values.

Success

func NewTeamInspectOK

func NewTeamInspectOK() *TeamInspectOK

NewTeamInspectOK creates a TeamInspectOK with default headers values

func (*TeamInspectOK) Error

func (o *TeamInspectOK) Error() string

type TeamInspectParams

type TeamInspectParams struct {

	/*ID
	  Team identifier

	*/
	ID int64

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

TeamInspectParams contains all the parameters to send to the API endpoint for the team inspect operation typically these are written to a http.Request

func NewTeamInspectParams

func NewTeamInspectParams() *TeamInspectParams

NewTeamInspectParams creates a new TeamInspectParams object with the default values initialized.

func NewTeamInspectParamsWithContext

func NewTeamInspectParamsWithContext(ctx context.Context) *TeamInspectParams

NewTeamInspectParamsWithContext creates a new TeamInspectParams object with the default values initialized, and the ability to set a context for a request

func NewTeamInspectParamsWithHTTPClient

func NewTeamInspectParamsWithHTTPClient(client *http.Client) *TeamInspectParams

NewTeamInspectParamsWithHTTPClient creates a new TeamInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTeamInspectParamsWithTimeout

func NewTeamInspectParamsWithTimeout(timeout time.Duration) *TeamInspectParams

NewTeamInspectParamsWithTimeout creates a new TeamInspectParams object with the default values initialized, and the ability to set a timeout on a request

func (*TeamInspectParams) SetContext

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

SetContext adds the context to the team inspect params

func (*TeamInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the team inspect params

func (*TeamInspectParams) SetID

func (o *TeamInspectParams) SetID(id int64)

SetID adds the id to the team inspect params

func (*TeamInspectParams) SetTimeout

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

SetTimeout adds the timeout to the team inspect params

func (*TeamInspectParams) WithContext

func (o *TeamInspectParams) WithContext(ctx context.Context) *TeamInspectParams

WithContext adds the context to the team inspect params

func (*TeamInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the team inspect params

func (*TeamInspectParams) WithID

func (o *TeamInspectParams) WithID(id int64) *TeamInspectParams

WithID adds the id to the team inspect params

func (*TeamInspectParams) WithTimeout

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

WithTimeout adds the timeout to the team inspect params

func (*TeamInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TeamInspectReader

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

TeamInspectReader is a Reader for the TeamInspect structure.

func (*TeamInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TeamListInternalServerError

type TeamListInternalServerError struct {
	Payload *models.GenericError
}

TeamListInternalServerError handles this case with default header values.

Server error

func NewTeamListInternalServerError

func NewTeamListInternalServerError() *TeamListInternalServerError

NewTeamListInternalServerError creates a TeamListInternalServerError with default headers values

func (*TeamListInternalServerError) Error

type TeamListOK

type TeamListOK struct {
	Payload models.TeamListResponse
}

TeamListOK handles this case with default header values.

Success

func NewTeamListOK

func NewTeamListOK() *TeamListOK

NewTeamListOK creates a TeamListOK with default headers values

func (*TeamListOK) Error

func (o *TeamListOK) Error() string

type TeamListParams

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

TeamListParams contains all the parameters to send to the API endpoint for the team list operation typically these are written to a http.Request

func NewTeamListParams

func NewTeamListParams() *TeamListParams

NewTeamListParams creates a new TeamListParams object with the default values initialized.

func NewTeamListParamsWithContext

func NewTeamListParamsWithContext(ctx context.Context) *TeamListParams

NewTeamListParamsWithContext creates a new TeamListParams object with the default values initialized, and the ability to set a context for a request

func NewTeamListParamsWithHTTPClient

func NewTeamListParamsWithHTTPClient(client *http.Client) *TeamListParams

NewTeamListParamsWithHTTPClient creates a new TeamListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTeamListParamsWithTimeout

func NewTeamListParamsWithTimeout(timeout time.Duration) *TeamListParams

NewTeamListParamsWithTimeout creates a new TeamListParams object with the default values initialized, and the ability to set a timeout on a request

func (*TeamListParams) SetContext

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

SetContext adds the context to the team list params

func (*TeamListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the team list params

func (*TeamListParams) SetTimeout

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

SetTimeout adds the timeout to the team list params

func (*TeamListParams) WithContext

func (o *TeamListParams) WithContext(ctx context.Context) *TeamListParams

WithContext adds the context to the team list params

func (*TeamListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the team list params

func (*TeamListParams) WithTimeout

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

WithTimeout adds the timeout to the team list params

func (*TeamListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TeamListReader

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

TeamListReader is a Reader for the TeamList structure.

func (*TeamListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TeamMembershipsInspectBadRequest

type TeamMembershipsInspectBadRequest struct {
	Payload *models.GenericError
}

TeamMembershipsInspectBadRequest handles this case with default header values.

Invalid request

func NewTeamMembershipsInspectBadRequest

func NewTeamMembershipsInspectBadRequest() *TeamMembershipsInspectBadRequest

NewTeamMembershipsInspectBadRequest creates a TeamMembershipsInspectBadRequest with default headers values

func (*TeamMembershipsInspectBadRequest) Error

type TeamMembershipsInspectForbidden

type TeamMembershipsInspectForbidden struct {
	Payload *models.GenericError
}

TeamMembershipsInspectForbidden handles this case with default header values.

Unauthorized

func NewTeamMembershipsInspectForbidden

func NewTeamMembershipsInspectForbidden() *TeamMembershipsInspectForbidden

NewTeamMembershipsInspectForbidden creates a TeamMembershipsInspectForbidden with default headers values

func (*TeamMembershipsInspectForbidden) Error

type TeamMembershipsInspectInternalServerError

type TeamMembershipsInspectInternalServerError struct {
	Payload *models.GenericError
}

TeamMembershipsInspectInternalServerError handles this case with default header values.

Server error

func NewTeamMembershipsInspectInternalServerError

func NewTeamMembershipsInspectInternalServerError() *TeamMembershipsInspectInternalServerError

NewTeamMembershipsInspectInternalServerError creates a TeamMembershipsInspectInternalServerError with default headers values

func (*TeamMembershipsInspectInternalServerError) Error

type TeamMembershipsInspectOK

type TeamMembershipsInspectOK struct {
	Payload models.TeamMembershipsResponse
}

TeamMembershipsInspectOK handles this case with default header values.

Success

func NewTeamMembershipsInspectOK

func NewTeamMembershipsInspectOK() *TeamMembershipsInspectOK

NewTeamMembershipsInspectOK creates a TeamMembershipsInspectOK with default headers values

func (*TeamMembershipsInspectOK) Error

func (o *TeamMembershipsInspectOK) Error() string

type TeamMembershipsInspectParams

type TeamMembershipsInspectParams struct {

	/*ID
	  Team identifier

	*/
	ID int64

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

TeamMembershipsInspectParams contains all the parameters to send to the API endpoint for the team memberships inspect operation typically these are written to a http.Request

func NewTeamMembershipsInspectParams

func NewTeamMembershipsInspectParams() *TeamMembershipsInspectParams

NewTeamMembershipsInspectParams creates a new TeamMembershipsInspectParams object with the default values initialized.

func NewTeamMembershipsInspectParamsWithContext

func NewTeamMembershipsInspectParamsWithContext(ctx context.Context) *TeamMembershipsInspectParams

NewTeamMembershipsInspectParamsWithContext creates a new TeamMembershipsInspectParams object with the default values initialized, and the ability to set a context for a request

func NewTeamMembershipsInspectParamsWithHTTPClient

func NewTeamMembershipsInspectParamsWithHTTPClient(client *http.Client) *TeamMembershipsInspectParams

NewTeamMembershipsInspectParamsWithHTTPClient creates a new TeamMembershipsInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTeamMembershipsInspectParamsWithTimeout

func NewTeamMembershipsInspectParamsWithTimeout(timeout time.Duration) *TeamMembershipsInspectParams

NewTeamMembershipsInspectParamsWithTimeout creates a new TeamMembershipsInspectParams object with the default values initialized, and the ability to set a timeout on a request

func (*TeamMembershipsInspectParams) SetContext

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

SetContext adds the context to the team memberships inspect params

func (*TeamMembershipsInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the team memberships inspect params

func (*TeamMembershipsInspectParams) SetID

func (o *TeamMembershipsInspectParams) SetID(id int64)

SetID adds the id to the team memberships inspect params

func (*TeamMembershipsInspectParams) SetTimeout

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

SetTimeout adds the timeout to the team memberships inspect params

func (*TeamMembershipsInspectParams) WithContext

WithContext adds the context to the team memberships inspect params

func (*TeamMembershipsInspectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the team memberships inspect params

func (*TeamMembershipsInspectParams) WithID

WithID adds the id to the team memberships inspect params

func (*TeamMembershipsInspectParams) WithTimeout

WithTimeout adds the timeout to the team memberships inspect params

func (*TeamMembershipsInspectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TeamMembershipsInspectReader

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

TeamMembershipsInspectReader is a Reader for the TeamMembershipsInspect structure.

func (*TeamMembershipsInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TeamUpdateBadRequest

type TeamUpdateBadRequest struct {
	Payload *models.GenericError
}

TeamUpdateBadRequest handles this case with default header values.

Invalid request

func NewTeamUpdateBadRequest

func NewTeamUpdateBadRequest() *TeamUpdateBadRequest

NewTeamUpdateBadRequest creates a TeamUpdateBadRequest with default headers values

func (*TeamUpdateBadRequest) Error

func (o *TeamUpdateBadRequest) Error() string

type TeamUpdateInternalServerError

type TeamUpdateInternalServerError struct {
	Payload *models.GenericError
}

TeamUpdateInternalServerError handles this case with default header values.

Server error

func NewTeamUpdateInternalServerError

func NewTeamUpdateInternalServerError() *TeamUpdateInternalServerError

NewTeamUpdateInternalServerError creates a TeamUpdateInternalServerError with default headers values

func (*TeamUpdateInternalServerError) Error

type TeamUpdateNotFound

type TeamUpdateNotFound struct {
	Payload *models.GenericError
}

TeamUpdateNotFound handles this case with default header values.

Team not found

func NewTeamUpdateNotFound

func NewTeamUpdateNotFound() *TeamUpdateNotFound

NewTeamUpdateNotFound creates a TeamUpdateNotFound with default headers values

func (*TeamUpdateNotFound) Error

func (o *TeamUpdateNotFound) Error() string

type TeamUpdateOK

type TeamUpdateOK struct {
}

TeamUpdateOK handles this case with default header values.

Success

func NewTeamUpdateOK

func NewTeamUpdateOK() *TeamUpdateOK

NewTeamUpdateOK creates a TeamUpdateOK with default headers values

func (*TeamUpdateOK) Error

func (o *TeamUpdateOK) Error() string

type TeamUpdateParams

type TeamUpdateParams struct {

	/*Body
	  Team details

	*/
	Body *models.TeamUpdateRequest
	/*ID
	  Team identifier

	*/
	ID int64

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

TeamUpdateParams contains all the parameters to send to the API endpoint for the team update operation typically these are written to a http.Request

func NewTeamUpdateParams

func NewTeamUpdateParams() *TeamUpdateParams

NewTeamUpdateParams creates a new TeamUpdateParams object with the default values initialized.

func NewTeamUpdateParamsWithContext

func NewTeamUpdateParamsWithContext(ctx context.Context) *TeamUpdateParams

NewTeamUpdateParamsWithContext creates a new TeamUpdateParams object with the default values initialized, and the ability to set a context for a request

func NewTeamUpdateParamsWithHTTPClient

func NewTeamUpdateParamsWithHTTPClient(client *http.Client) *TeamUpdateParams

NewTeamUpdateParamsWithHTTPClient creates a new TeamUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTeamUpdateParamsWithTimeout

func NewTeamUpdateParamsWithTimeout(timeout time.Duration) *TeamUpdateParams

NewTeamUpdateParamsWithTimeout creates a new TeamUpdateParams object with the default values initialized, and the ability to set a timeout on a request

func (*TeamUpdateParams) SetBody

func (o *TeamUpdateParams) SetBody(body *models.TeamUpdateRequest)

SetBody adds the body to the team update params

func (*TeamUpdateParams) SetContext

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

SetContext adds the context to the team update params

func (*TeamUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the team update params

func (*TeamUpdateParams) SetID

func (o *TeamUpdateParams) SetID(id int64)

SetID adds the id to the team update params

func (*TeamUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the team update params

func (*TeamUpdateParams) WithBody

WithBody adds the body to the team update params

func (*TeamUpdateParams) WithContext

func (o *TeamUpdateParams) WithContext(ctx context.Context) *TeamUpdateParams

WithContext adds the context to the team update params

func (*TeamUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the team update params

func (*TeamUpdateParams) WithID

func (o *TeamUpdateParams) WithID(id int64) *TeamUpdateParams

WithID adds the id to the team update params

func (*TeamUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the team update params

func (*TeamUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TeamUpdateReader

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

TeamUpdateReader is a Reader for the TeamUpdate structure.

func (*TeamUpdateReader) ReadResponse

func (o *TeamUpdateReader) 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
⌂ 换网址