team

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 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 team API

func (*Client) CreateTeam

func (a *Client) CreateTeam(params *CreateTeamParams, opts ...ClientOption) (*CreateTeamOK, error)

CreateTeam create team API

func (*Client) DeleteTeam

func (a *Client) DeleteTeam(params *DeleteTeamParams, opts ...ClientOption) (*DeleteTeamOK, error)

DeleteTeam delete team API

func (*Client) ListTeams

func (a *Client) ListTeams(params *ListTeamsParams, opts ...ClientOption) (*ListTeamsOK, error)

ListTeams list teams API

func (*Client) ReadTeam

func (a *Client) ReadTeam(params *ReadTeamParams, opts ...ClientOption) (*ReadTeamOK, error)

ReadTeam read team API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateTeam

func (a *Client) UpdateTeam(params *UpdateTeamParams, opts ...ClientOption) (*UpdateTeamOK, error)

UpdateTeam update team API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateTeam(params *CreateTeamParams, opts ...ClientOption) (*CreateTeamOK, error)

	DeleteTeam(params *DeleteTeamParams, opts ...ClientOption) (*DeleteTeamOK, error)

	ListTeams(params *ListTeamsParams, opts ...ClientOption) (*ListTeamsOK, error)

	ReadTeam(params *ReadTeamParams, opts ...ClientOption) (*ReadTeamOK, error)

	UpdateTeam(params *UpdateTeamParams, opts ...ClientOption) (*UpdateTeamOK, 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 team API client.

type CreateTeamBadRequest

type CreateTeamBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the Team because the request is invalid.

func NewCreateTeamBadRequest

func NewCreateTeamBadRequest() *CreateTeamBadRequest

NewCreateTeamBadRequest creates a CreateTeamBadRequest with default headers values

func (*CreateTeamBadRequest) Code

func (o *CreateTeamBadRequest) Code() int

Code gets the status code for the create team bad request response

func (*CreateTeamBadRequest) Error

func (o *CreateTeamBadRequest) Error() string

func (*CreateTeamBadRequest) GetPayload

func (o *CreateTeamBadRequest) GetPayload() *models.APIError

func (*CreateTeamBadRequest) IsClientError

func (o *CreateTeamBadRequest) IsClientError() bool

IsClientError returns true when this create team bad request response has a 4xx status code

func (*CreateTeamBadRequest) IsCode

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

IsCode returns true when this create team bad request response a status code equal to that given

func (*CreateTeamBadRequest) IsRedirect

func (o *CreateTeamBadRequest) IsRedirect() bool

IsRedirect returns true when this create team bad request response has a 3xx status code

func (*CreateTeamBadRequest) IsServerError

func (o *CreateTeamBadRequest) IsServerError() bool

IsServerError returns true when this create team bad request response has a 5xx status code

func (*CreateTeamBadRequest) IsSuccess

func (o *CreateTeamBadRequest) IsSuccess() bool

IsSuccess returns true when this create team bad request response has a 2xx status code

func (*CreateTeamBadRequest) String

func (o *CreateTeamBadRequest) String() string

type CreateTeamConflict

type CreateTeamConflict struct {
	Payload *models.APIError
}

CreateTeamConflict describes a response with status code 409, with default header values.

Cannot create the Team because there is a conflict with an existing Team.

func NewCreateTeamConflict

func NewCreateTeamConflict() *CreateTeamConflict

NewCreateTeamConflict creates a CreateTeamConflict with default headers values

func (*CreateTeamConflict) Code

func (o *CreateTeamConflict) Code() int

Code gets the status code for the create team conflict response

func (*CreateTeamConflict) Error

func (o *CreateTeamConflict) Error() string

func (*CreateTeamConflict) GetPayload

func (o *CreateTeamConflict) GetPayload() *models.APIError

func (*CreateTeamConflict) IsClientError

func (o *CreateTeamConflict) IsClientError() bool

IsClientError returns true when this create team conflict response has a 4xx status code

func (*CreateTeamConflict) IsCode

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

IsCode returns true when this create team conflict response a status code equal to that given

func (*CreateTeamConflict) IsRedirect

func (o *CreateTeamConflict) IsRedirect() bool

IsRedirect returns true when this create team conflict response has a 3xx status code

func (*CreateTeamConflict) IsServerError

func (o *CreateTeamConflict) IsServerError() bool

IsServerError returns true when this create team conflict response has a 5xx status code

func (*CreateTeamConflict) IsSuccess

func (o *CreateTeamConflict) IsSuccess() bool

IsSuccess returns true when this create team conflict response has a 2xx status code

func (*CreateTeamConflict) String

func (o *CreateTeamConflict) String() string

type CreateTeamDefault

type CreateTeamDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateTeamDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateTeamDefault

func NewCreateTeamDefault(code int) *CreateTeamDefault

NewCreateTeamDefault creates a CreateTeamDefault with default headers values

func (*CreateTeamDefault) Code

func (o *CreateTeamDefault) Code() int

Code gets the status code for the create team default response

func (*CreateTeamDefault) Error

func (o *CreateTeamDefault) Error() string

func (*CreateTeamDefault) GetPayload

func (o *CreateTeamDefault) GetPayload() models.GenericError

func (*CreateTeamDefault) IsClientError

func (o *CreateTeamDefault) IsClientError() bool

IsClientError returns true when this create team default response has a 4xx status code

func (*CreateTeamDefault) IsCode

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

IsCode returns true when this create team default response a status code equal to that given

func (*CreateTeamDefault) IsRedirect

func (o *CreateTeamDefault) IsRedirect() bool

IsRedirect returns true when this create team default response has a 3xx status code

func (*CreateTeamDefault) IsServerError

func (o *CreateTeamDefault) IsServerError() bool

IsServerError returns true when this create team default response has a 5xx status code

func (*CreateTeamDefault) IsSuccess

func (o *CreateTeamDefault) IsSuccess() bool

IsSuccess returns true when this create team default response has a 2xx status code

func (*CreateTeamDefault) String

func (o *CreateTeamDefault) String() string

type CreateTeamInternalServerError

type CreateTeamInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateTeamInternalServerError

func NewCreateTeamInternalServerError() *CreateTeamInternalServerError

NewCreateTeamInternalServerError creates a CreateTeamInternalServerError with default headers values

func (*CreateTeamInternalServerError) Code

Code gets the status code for the create team internal server error response

func (*CreateTeamInternalServerError) Error

func (*CreateTeamInternalServerError) GetPayload

func (*CreateTeamInternalServerError) IsClientError

func (o *CreateTeamInternalServerError) IsClientError() bool

IsClientError returns true when this create team internal server error response has a 4xx status code

func (*CreateTeamInternalServerError) IsCode

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

IsCode returns true when this create team internal server error response a status code equal to that given

func (*CreateTeamInternalServerError) IsRedirect

func (o *CreateTeamInternalServerError) IsRedirect() bool

IsRedirect returns true when this create team internal server error response has a 3xx status code

func (*CreateTeamInternalServerError) IsServerError

func (o *CreateTeamInternalServerError) IsServerError() bool

IsServerError returns true when this create team internal server error response has a 5xx status code

func (*CreateTeamInternalServerError) IsSuccess

func (o *CreateTeamInternalServerError) IsSuccess() bool

IsSuccess returns true when this create team internal server error response has a 2xx status code

func (*CreateTeamInternalServerError) String

type CreateTeamOK

type CreateTeamOK struct {
	Payload *models.Configv1CreateTeamResponse
}

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

A successful response containing the created Team.

func NewCreateTeamOK

func NewCreateTeamOK() *CreateTeamOK

NewCreateTeamOK creates a CreateTeamOK with default headers values

func (*CreateTeamOK) Code

func (o *CreateTeamOK) Code() int

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

func (*CreateTeamOK) Error

func (o *CreateTeamOK) Error() string

func (*CreateTeamOK) GetPayload

func (*CreateTeamOK) IsClientError

func (o *CreateTeamOK) IsClientError() bool

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

func (*CreateTeamOK) IsCode

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

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

func (*CreateTeamOK) IsRedirect

func (o *CreateTeamOK) IsRedirect() bool

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

func (*CreateTeamOK) IsServerError

func (o *CreateTeamOK) IsServerError() bool

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

func (*CreateTeamOK) IsSuccess

func (o *CreateTeamOK) IsSuccess() bool

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

func (*CreateTeamOK) String

func (o *CreateTeamOK) String() string

type CreateTeamParams

type CreateTeamParams struct {

	// Body.
	Body *models.Configv1CreateTeamRequest

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

CreateTeamParams contains all the parameters to send to the API endpoint

for the create team operation.

Typically these are written to a http.Request.

func NewCreateTeamParams

func NewCreateTeamParams() *CreateTeamParams

NewCreateTeamParams creates a new CreateTeamParams 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 NewCreateTeamParamsWithContext

func NewCreateTeamParamsWithContext(ctx context.Context) *CreateTeamParams

NewCreateTeamParamsWithContext creates a new CreateTeamParams object with the ability to set a context for a request.

func NewCreateTeamParamsWithHTTPClient

func NewCreateTeamParamsWithHTTPClient(client *http.Client) *CreateTeamParams

NewCreateTeamParamsWithHTTPClient creates a new CreateTeamParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTeamParamsWithTimeout

func NewCreateTeamParamsWithTimeout(timeout time.Duration) *CreateTeamParams

NewCreateTeamParamsWithTimeout creates a new CreateTeamParams object with the ability to set a timeout on a request.

func (*CreateTeamParams) SetBody

SetBody adds the body to the create team params

func (*CreateTeamParams) SetContext

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

SetContext adds the context to the create team params

func (*CreateTeamParams) SetDefaults

func (o *CreateTeamParams) SetDefaults()

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

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

func (*CreateTeamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create team params

func (*CreateTeamParams) SetTimeout

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

SetTimeout adds the timeout to the create team params

func (*CreateTeamParams) WithBody

WithBody adds the body to the create team params

func (*CreateTeamParams) WithContext

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

WithContext adds the context to the create team params

func (*CreateTeamParams) WithDefaults

func (o *CreateTeamParams) WithDefaults() *CreateTeamParams

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

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

func (*CreateTeamParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create team params

func (*CreateTeamParams) WithTimeout

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

WithTimeout adds the timeout to the create team params

func (*CreateTeamParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateTeamReader

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

CreateTeamReader is a Reader for the CreateTeam structure.

func (*CreateTeamReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTeamBadRequest

type DeleteTeamBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the Team because it is in use.

func NewDeleteTeamBadRequest

func NewDeleteTeamBadRequest() *DeleteTeamBadRequest

NewDeleteTeamBadRequest creates a DeleteTeamBadRequest with default headers values

func (*DeleteTeamBadRequest) Code

func (o *DeleteTeamBadRequest) Code() int

Code gets the status code for the delete team bad request response

func (*DeleteTeamBadRequest) Error

func (o *DeleteTeamBadRequest) Error() string

func (*DeleteTeamBadRequest) GetPayload

func (o *DeleteTeamBadRequest) GetPayload() *models.APIError

func (*DeleteTeamBadRequest) IsClientError

func (o *DeleteTeamBadRequest) IsClientError() bool

IsClientError returns true when this delete team bad request response has a 4xx status code

func (*DeleteTeamBadRequest) IsCode

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

IsCode returns true when this delete team bad request response a status code equal to that given

func (*DeleteTeamBadRequest) IsRedirect

func (o *DeleteTeamBadRequest) IsRedirect() bool

IsRedirect returns true when this delete team bad request response has a 3xx status code

func (*DeleteTeamBadRequest) IsServerError

func (o *DeleteTeamBadRequest) IsServerError() bool

IsServerError returns true when this delete team bad request response has a 5xx status code

func (*DeleteTeamBadRequest) IsSuccess

func (o *DeleteTeamBadRequest) IsSuccess() bool

IsSuccess returns true when this delete team bad request response has a 2xx status code

func (*DeleteTeamBadRequest) String

func (o *DeleteTeamBadRequest) String() string

type DeleteTeamDefault

type DeleteTeamDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteTeamDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteTeamDefault

func NewDeleteTeamDefault(code int) *DeleteTeamDefault

NewDeleteTeamDefault creates a DeleteTeamDefault with default headers values

func (*DeleteTeamDefault) Code

func (o *DeleteTeamDefault) Code() int

Code gets the status code for the delete team default response

func (*DeleteTeamDefault) Error

func (o *DeleteTeamDefault) Error() string

func (*DeleteTeamDefault) GetPayload

func (o *DeleteTeamDefault) GetPayload() models.GenericError

func (*DeleteTeamDefault) IsClientError

func (o *DeleteTeamDefault) IsClientError() bool

IsClientError returns true when this delete team default response has a 4xx status code

func (*DeleteTeamDefault) IsCode

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

IsCode returns true when this delete team default response a status code equal to that given

func (*DeleteTeamDefault) IsRedirect

func (o *DeleteTeamDefault) IsRedirect() bool

IsRedirect returns true when this delete team default response has a 3xx status code

func (*DeleteTeamDefault) IsServerError

func (o *DeleteTeamDefault) IsServerError() bool

IsServerError returns true when this delete team default response has a 5xx status code

func (*DeleteTeamDefault) IsSuccess

func (o *DeleteTeamDefault) IsSuccess() bool

IsSuccess returns true when this delete team default response has a 2xx status code

func (*DeleteTeamDefault) String

func (o *DeleteTeamDefault) String() string

type DeleteTeamInternalServerError

type DeleteTeamInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteTeamInternalServerError

func NewDeleteTeamInternalServerError() *DeleteTeamInternalServerError

NewDeleteTeamInternalServerError creates a DeleteTeamInternalServerError with default headers values

func (*DeleteTeamInternalServerError) Code

Code gets the status code for the delete team internal server error response

func (*DeleteTeamInternalServerError) Error

func (*DeleteTeamInternalServerError) GetPayload

func (*DeleteTeamInternalServerError) IsClientError

func (o *DeleteTeamInternalServerError) IsClientError() bool

IsClientError returns true when this delete team internal server error response has a 4xx status code

func (*DeleteTeamInternalServerError) IsCode

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

IsCode returns true when this delete team internal server error response a status code equal to that given

func (*DeleteTeamInternalServerError) IsRedirect

func (o *DeleteTeamInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete team internal server error response has a 3xx status code

func (*DeleteTeamInternalServerError) IsServerError

func (o *DeleteTeamInternalServerError) IsServerError() bool

IsServerError returns true when this delete team internal server error response has a 5xx status code

func (*DeleteTeamInternalServerError) IsSuccess

func (o *DeleteTeamInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete team internal server error response has a 2xx status code

func (*DeleteTeamInternalServerError) String

type DeleteTeamNotFound

type DeleteTeamNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the Team because the slug does not exist.

func NewDeleteTeamNotFound

func NewDeleteTeamNotFound() *DeleteTeamNotFound

NewDeleteTeamNotFound creates a DeleteTeamNotFound with default headers values

func (*DeleteTeamNotFound) Code

func (o *DeleteTeamNotFound) Code() int

Code gets the status code for the delete team not found response

func (*DeleteTeamNotFound) Error

func (o *DeleteTeamNotFound) Error() string

func (*DeleteTeamNotFound) GetPayload

func (o *DeleteTeamNotFound) GetPayload() *models.APIError

func (*DeleteTeamNotFound) IsClientError

func (o *DeleteTeamNotFound) IsClientError() bool

IsClientError returns true when this delete team not found response has a 4xx status code

func (*DeleteTeamNotFound) IsCode

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

IsCode returns true when this delete team not found response a status code equal to that given

func (*DeleteTeamNotFound) IsRedirect

func (o *DeleteTeamNotFound) IsRedirect() bool

IsRedirect returns true when this delete team not found response has a 3xx status code

func (*DeleteTeamNotFound) IsServerError

func (o *DeleteTeamNotFound) IsServerError() bool

IsServerError returns true when this delete team not found response has a 5xx status code

func (*DeleteTeamNotFound) IsSuccess

func (o *DeleteTeamNotFound) IsSuccess() bool

IsSuccess returns true when this delete team not found response has a 2xx status code

func (*DeleteTeamNotFound) String

func (o *DeleteTeamNotFound) String() string

type DeleteTeamOK

type DeleteTeamOK struct {
	Payload models.Configv1DeleteTeamResponse
}

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

A successful response.

func NewDeleteTeamOK

func NewDeleteTeamOK() *DeleteTeamOK

NewDeleteTeamOK creates a DeleteTeamOK with default headers values

func (*DeleteTeamOK) Code

func (o *DeleteTeamOK) Code() int

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

func (*DeleteTeamOK) Error

func (o *DeleteTeamOK) Error() string

func (*DeleteTeamOK) GetPayload

func (*DeleteTeamOK) IsClientError

func (o *DeleteTeamOK) IsClientError() bool

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

func (*DeleteTeamOK) IsCode

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

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

func (*DeleteTeamOK) IsRedirect

func (o *DeleteTeamOK) IsRedirect() bool

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

func (*DeleteTeamOK) IsServerError

func (o *DeleteTeamOK) IsServerError() bool

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

func (*DeleteTeamOK) IsSuccess

func (o *DeleteTeamOK) IsSuccess() bool

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

func (*DeleteTeamOK) String

func (o *DeleteTeamOK) String() string

type DeleteTeamParams

type DeleteTeamParams struct {

	// Slug.
	Slug string

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

DeleteTeamParams contains all the parameters to send to the API endpoint

for the delete team operation.

Typically these are written to a http.Request.

func NewDeleteTeamParams

func NewDeleteTeamParams() *DeleteTeamParams

NewDeleteTeamParams creates a new DeleteTeamParams 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 NewDeleteTeamParamsWithContext

func NewDeleteTeamParamsWithContext(ctx context.Context) *DeleteTeamParams

NewDeleteTeamParamsWithContext creates a new DeleteTeamParams object with the ability to set a context for a request.

func NewDeleteTeamParamsWithHTTPClient

func NewDeleteTeamParamsWithHTTPClient(client *http.Client) *DeleteTeamParams

NewDeleteTeamParamsWithHTTPClient creates a new DeleteTeamParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTeamParamsWithTimeout

func NewDeleteTeamParamsWithTimeout(timeout time.Duration) *DeleteTeamParams

NewDeleteTeamParamsWithTimeout creates a new DeleteTeamParams object with the ability to set a timeout on a request.

func (*DeleteTeamParams) SetContext

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

SetContext adds the context to the delete team params

func (*DeleteTeamParams) SetDefaults

func (o *DeleteTeamParams) SetDefaults()

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

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

func (*DeleteTeamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete team params

func (*DeleteTeamParams) SetSlug

func (o *DeleteTeamParams) SetSlug(slug string)

SetSlug adds the slug to the delete team params

func (*DeleteTeamParams) SetTimeout

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

SetTimeout adds the timeout to the delete team params

func (*DeleteTeamParams) WithContext

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

WithContext adds the context to the delete team params

func (*DeleteTeamParams) WithDefaults

func (o *DeleteTeamParams) WithDefaults() *DeleteTeamParams

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

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

func (*DeleteTeamParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete team params

func (*DeleteTeamParams) WithSlug

func (o *DeleteTeamParams) WithSlug(slug string) *DeleteTeamParams

WithSlug adds the slug to the delete team params

func (*DeleteTeamParams) WithTimeout

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

WithTimeout adds the timeout to the delete team params

func (*DeleteTeamParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTeamReader

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

DeleteTeamReader is a Reader for the DeleteTeam structure.

func (*DeleteTeamReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTeamsDefault

type ListTeamsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListTeamsDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListTeamsDefault

func NewListTeamsDefault(code int) *ListTeamsDefault

NewListTeamsDefault creates a ListTeamsDefault with default headers values

func (*ListTeamsDefault) Code

func (o *ListTeamsDefault) Code() int

Code gets the status code for the list teams default response

func (*ListTeamsDefault) Error

func (o *ListTeamsDefault) Error() string

func (*ListTeamsDefault) GetPayload

func (o *ListTeamsDefault) GetPayload() models.GenericError

func (*ListTeamsDefault) IsClientError

func (o *ListTeamsDefault) IsClientError() bool

IsClientError returns true when this list teams default response has a 4xx status code

func (*ListTeamsDefault) IsCode

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

IsCode returns true when this list teams default response a status code equal to that given

func (*ListTeamsDefault) IsRedirect

func (o *ListTeamsDefault) IsRedirect() bool

IsRedirect returns true when this list teams default response has a 3xx status code

func (*ListTeamsDefault) IsServerError

func (o *ListTeamsDefault) IsServerError() bool

IsServerError returns true when this list teams default response has a 5xx status code

func (*ListTeamsDefault) IsSuccess

func (o *ListTeamsDefault) IsSuccess() bool

IsSuccess returns true when this list teams default response has a 2xx status code

func (*ListTeamsDefault) String

func (o *ListTeamsDefault) String() string

type ListTeamsInternalServerError

type ListTeamsInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListTeamsInternalServerError

func NewListTeamsInternalServerError() *ListTeamsInternalServerError

NewListTeamsInternalServerError creates a ListTeamsInternalServerError with default headers values

func (*ListTeamsInternalServerError) Code

Code gets the status code for the list teams internal server error response

func (*ListTeamsInternalServerError) Error

func (*ListTeamsInternalServerError) GetPayload

func (o *ListTeamsInternalServerError) GetPayload() *models.APIError

func (*ListTeamsInternalServerError) IsClientError

func (o *ListTeamsInternalServerError) IsClientError() bool

IsClientError returns true when this list teams internal server error response has a 4xx status code

func (*ListTeamsInternalServerError) IsCode

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

IsCode returns true when this list teams internal server error response a status code equal to that given

func (*ListTeamsInternalServerError) IsRedirect

func (o *ListTeamsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list teams internal server error response has a 3xx status code

func (*ListTeamsInternalServerError) IsServerError

func (o *ListTeamsInternalServerError) IsServerError() bool

IsServerError returns true when this list teams internal server error response has a 5xx status code

func (*ListTeamsInternalServerError) IsSuccess

func (o *ListTeamsInternalServerError) IsSuccess() bool

IsSuccess returns true when this list teams internal server error response has a 2xx status code

func (*ListTeamsInternalServerError) String

type ListTeamsOK

type ListTeamsOK struct {
	Payload *models.Configv1ListTeamsResponse
}

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

A successful response.

func NewListTeamsOK

func NewListTeamsOK() *ListTeamsOK

NewListTeamsOK creates a ListTeamsOK with default headers values

func (*ListTeamsOK) Code

func (o *ListTeamsOK) Code() int

Code gets the status code for the list teams o k response

func (*ListTeamsOK) Error

func (o *ListTeamsOK) Error() string

func (*ListTeamsOK) GetPayload

func (o *ListTeamsOK) GetPayload() *models.Configv1ListTeamsResponse

func (*ListTeamsOK) IsClientError

func (o *ListTeamsOK) IsClientError() bool

IsClientError returns true when this list teams o k response has a 4xx status code

func (*ListTeamsOK) IsCode

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

IsCode returns true when this list teams o k response a status code equal to that given

func (*ListTeamsOK) IsRedirect

func (o *ListTeamsOK) IsRedirect() bool

IsRedirect returns true when this list teams o k response has a 3xx status code

func (*ListTeamsOK) IsServerError

func (o *ListTeamsOK) IsServerError() bool

IsServerError returns true when this list teams o k response has a 5xx status code

func (*ListTeamsOK) IsSuccess

func (o *ListTeamsOK) IsSuccess() bool

IsSuccess returns true when this list teams o k response has a 2xx status code

func (*ListTeamsOK) String

func (o *ListTeamsOK) String() string

type ListTeamsParams

type ListTeamsParams struct {

	/* Names.

	   Filters results by name, where any Team with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any Team with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

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

ListTeamsParams contains all the parameters to send to the API endpoint

for the list teams operation.

Typically these are written to a http.Request.

func NewListTeamsParams

func NewListTeamsParams() *ListTeamsParams

NewListTeamsParams creates a new ListTeamsParams 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 NewListTeamsParamsWithContext

func NewListTeamsParamsWithContext(ctx context.Context) *ListTeamsParams

NewListTeamsParamsWithContext creates a new ListTeamsParams object with the ability to set a context for a request.

func NewListTeamsParamsWithHTTPClient

func NewListTeamsParamsWithHTTPClient(client *http.Client) *ListTeamsParams

NewListTeamsParamsWithHTTPClient creates a new ListTeamsParams object with the ability to set a custom HTTPClient for a request.

func NewListTeamsParamsWithTimeout

func NewListTeamsParamsWithTimeout(timeout time.Duration) *ListTeamsParams

NewListTeamsParamsWithTimeout creates a new ListTeamsParams object with the ability to set a timeout on a request.

func (*ListTeamsParams) SetContext

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

SetContext adds the context to the list teams params

func (*ListTeamsParams) SetDefaults

func (o *ListTeamsParams) SetDefaults()

SetDefaults hydrates default values in the list teams params (not the query body).

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

func (*ListTeamsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list teams params

func (*ListTeamsParams) SetNames

func (o *ListTeamsParams) SetNames(names []string)

SetNames adds the names to the list teams params

func (*ListTeamsParams) SetPageMaxSize

func (o *ListTeamsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list teams params

func (*ListTeamsParams) SetPageToken

func (o *ListTeamsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list teams params

func (*ListTeamsParams) SetSlugs

func (o *ListTeamsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list teams params

func (*ListTeamsParams) SetTimeout

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

SetTimeout adds the timeout to the list teams params

func (*ListTeamsParams) WithContext

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

WithContext adds the context to the list teams params

func (*ListTeamsParams) WithDefaults

func (o *ListTeamsParams) WithDefaults() *ListTeamsParams

WithDefaults hydrates default values in the list teams params (not the query body).

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

func (*ListTeamsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list teams params

func (*ListTeamsParams) WithNames

func (o *ListTeamsParams) WithNames(names []string) *ListTeamsParams

WithNames adds the names to the list teams params

func (*ListTeamsParams) WithPageMaxSize

func (o *ListTeamsParams) WithPageMaxSize(pageMaxSize *int64) *ListTeamsParams

WithPageMaxSize adds the pageMaxSize to the list teams params

func (*ListTeamsParams) WithPageToken

func (o *ListTeamsParams) WithPageToken(pageToken *string) *ListTeamsParams

WithPageToken adds the pageToken to the list teams params

func (*ListTeamsParams) WithSlugs

func (o *ListTeamsParams) WithSlugs(slugs []string) *ListTeamsParams

WithSlugs adds the slugs to the list teams params

func (*ListTeamsParams) WithTimeout

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

WithTimeout adds the timeout to the list teams params

func (*ListTeamsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListTeamsReader

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

ListTeamsReader is a Reader for the ListTeams structure.

func (*ListTeamsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadTeamDefault

type ReadTeamDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadTeamDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadTeamDefault

func NewReadTeamDefault(code int) *ReadTeamDefault

NewReadTeamDefault creates a ReadTeamDefault with default headers values

func (*ReadTeamDefault) Code

func (o *ReadTeamDefault) Code() int

Code gets the status code for the read team default response

func (*ReadTeamDefault) Error

func (o *ReadTeamDefault) Error() string

func (*ReadTeamDefault) GetPayload

func (o *ReadTeamDefault) GetPayload() models.GenericError

func (*ReadTeamDefault) IsClientError

func (o *ReadTeamDefault) IsClientError() bool

IsClientError returns true when this read team default response has a 4xx status code

func (*ReadTeamDefault) IsCode

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

IsCode returns true when this read team default response a status code equal to that given

func (*ReadTeamDefault) IsRedirect

func (o *ReadTeamDefault) IsRedirect() bool

IsRedirect returns true when this read team default response has a 3xx status code

func (*ReadTeamDefault) IsServerError

func (o *ReadTeamDefault) IsServerError() bool

IsServerError returns true when this read team default response has a 5xx status code

func (*ReadTeamDefault) IsSuccess

func (o *ReadTeamDefault) IsSuccess() bool

IsSuccess returns true when this read team default response has a 2xx status code

func (*ReadTeamDefault) String

func (o *ReadTeamDefault) String() string

type ReadTeamInternalServerError

type ReadTeamInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadTeamInternalServerError

func NewReadTeamInternalServerError() *ReadTeamInternalServerError

NewReadTeamInternalServerError creates a ReadTeamInternalServerError with default headers values

func (*ReadTeamInternalServerError) Code

func (o *ReadTeamInternalServerError) Code() int

Code gets the status code for the read team internal server error response

func (*ReadTeamInternalServerError) Error

func (*ReadTeamInternalServerError) GetPayload

func (o *ReadTeamInternalServerError) GetPayload() *models.APIError

func (*ReadTeamInternalServerError) IsClientError

func (o *ReadTeamInternalServerError) IsClientError() bool

IsClientError returns true when this read team internal server error response has a 4xx status code

func (*ReadTeamInternalServerError) IsCode

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

IsCode returns true when this read team internal server error response a status code equal to that given

func (*ReadTeamInternalServerError) IsRedirect

func (o *ReadTeamInternalServerError) IsRedirect() bool

IsRedirect returns true when this read team internal server error response has a 3xx status code

func (*ReadTeamInternalServerError) IsServerError

func (o *ReadTeamInternalServerError) IsServerError() bool

IsServerError returns true when this read team internal server error response has a 5xx status code

func (*ReadTeamInternalServerError) IsSuccess

func (o *ReadTeamInternalServerError) IsSuccess() bool

IsSuccess returns true when this read team internal server error response has a 2xx status code

func (*ReadTeamInternalServerError) String

func (o *ReadTeamInternalServerError) String() string

type ReadTeamNotFound

type ReadTeamNotFound struct {
	Payload *models.APIError
}

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

Cannot read the Team because the slug does not exist.

func NewReadTeamNotFound

func NewReadTeamNotFound() *ReadTeamNotFound

NewReadTeamNotFound creates a ReadTeamNotFound with default headers values

func (*ReadTeamNotFound) Code

func (o *ReadTeamNotFound) Code() int

Code gets the status code for the read team not found response

func (*ReadTeamNotFound) Error

func (o *ReadTeamNotFound) Error() string

func (*ReadTeamNotFound) GetPayload

func (o *ReadTeamNotFound) GetPayload() *models.APIError

func (*ReadTeamNotFound) IsClientError

func (o *ReadTeamNotFound) IsClientError() bool

IsClientError returns true when this read team not found response has a 4xx status code

func (*ReadTeamNotFound) IsCode

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

IsCode returns true when this read team not found response a status code equal to that given

func (*ReadTeamNotFound) IsRedirect

func (o *ReadTeamNotFound) IsRedirect() bool

IsRedirect returns true when this read team not found response has a 3xx status code

func (*ReadTeamNotFound) IsServerError

func (o *ReadTeamNotFound) IsServerError() bool

IsServerError returns true when this read team not found response has a 5xx status code

func (*ReadTeamNotFound) IsSuccess

func (o *ReadTeamNotFound) IsSuccess() bool

IsSuccess returns true when this read team not found response has a 2xx status code

func (*ReadTeamNotFound) String

func (o *ReadTeamNotFound) String() string

type ReadTeamOK

type ReadTeamOK struct {
	Payload *models.Configv1ReadTeamResponse
}

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

A successful response.

func NewReadTeamOK

func NewReadTeamOK() *ReadTeamOK

NewReadTeamOK creates a ReadTeamOK with default headers values

func (*ReadTeamOK) Code

func (o *ReadTeamOK) Code() int

Code gets the status code for the read team o k response

func (*ReadTeamOK) Error

func (o *ReadTeamOK) Error() string

func (*ReadTeamOK) GetPayload

func (o *ReadTeamOK) GetPayload() *models.Configv1ReadTeamResponse

func (*ReadTeamOK) IsClientError

func (o *ReadTeamOK) IsClientError() bool

IsClientError returns true when this read team o k response has a 4xx status code

func (*ReadTeamOK) IsCode

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

IsCode returns true when this read team o k response a status code equal to that given

func (*ReadTeamOK) IsRedirect

func (o *ReadTeamOK) IsRedirect() bool

IsRedirect returns true when this read team o k response has a 3xx status code

func (*ReadTeamOK) IsServerError

func (o *ReadTeamOK) IsServerError() bool

IsServerError returns true when this read team o k response has a 5xx status code

func (*ReadTeamOK) IsSuccess

func (o *ReadTeamOK) IsSuccess() bool

IsSuccess returns true when this read team o k response has a 2xx status code

func (*ReadTeamOK) String

func (o *ReadTeamOK) String() string

type ReadTeamParams

type ReadTeamParams struct {

	// Slug.
	Slug string

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

ReadTeamParams contains all the parameters to send to the API endpoint

for the read team operation.

Typically these are written to a http.Request.

func NewReadTeamParams

func NewReadTeamParams() *ReadTeamParams

NewReadTeamParams creates a new ReadTeamParams 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 NewReadTeamParamsWithContext

func NewReadTeamParamsWithContext(ctx context.Context) *ReadTeamParams

NewReadTeamParamsWithContext creates a new ReadTeamParams object with the ability to set a context for a request.

func NewReadTeamParamsWithHTTPClient

func NewReadTeamParamsWithHTTPClient(client *http.Client) *ReadTeamParams

NewReadTeamParamsWithHTTPClient creates a new ReadTeamParams object with the ability to set a custom HTTPClient for a request.

func NewReadTeamParamsWithTimeout

func NewReadTeamParamsWithTimeout(timeout time.Duration) *ReadTeamParams

NewReadTeamParamsWithTimeout creates a new ReadTeamParams object with the ability to set a timeout on a request.

func (*ReadTeamParams) SetContext

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

SetContext adds the context to the read team params

func (*ReadTeamParams) SetDefaults

func (o *ReadTeamParams) SetDefaults()

SetDefaults hydrates default values in the read team params (not the query body).

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

func (*ReadTeamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read team params

func (*ReadTeamParams) SetSlug

func (o *ReadTeamParams) SetSlug(slug string)

SetSlug adds the slug to the read team params

func (*ReadTeamParams) SetTimeout

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

SetTimeout adds the timeout to the read team params

func (*ReadTeamParams) WithContext

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

WithContext adds the context to the read team params

func (*ReadTeamParams) WithDefaults

func (o *ReadTeamParams) WithDefaults() *ReadTeamParams

WithDefaults hydrates default values in the read team params (not the query body).

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

func (*ReadTeamParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read team params

func (*ReadTeamParams) WithSlug

func (o *ReadTeamParams) WithSlug(slug string) *ReadTeamParams

WithSlug adds the slug to the read team params

func (*ReadTeamParams) WithTimeout

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

WithTimeout adds the timeout to the read team params

func (*ReadTeamParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadTeamReader

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

ReadTeamReader is a Reader for the ReadTeam structure.

func (*ReadTeamReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateTeamBadRequest

type UpdateTeamBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the Team because the request is invalid.

func NewUpdateTeamBadRequest

func NewUpdateTeamBadRequest() *UpdateTeamBadRequest

NewUpdateTeamBadRequest creates a UpdateTeamBadRequest with default headers values

func (*UpdateTeamBadRequest) Code

func (o *UpdateTeamBadRequest) Code() int

Code gets the status code for the update team bad request response

func (*UpdateTeamBadRequest) Error

func (o *UpdateTeamBadRequest) Error() string

func (*UpdateTeamBadRequest) GetPayload

func (o *UpdateTeamBadRequest) GetPayload() *models.APIError

func (*UpdateTeamBadRequest) IsClientError

func (o *UpdateTeamBadRequest) IsClientError() bool

IsClientError returns true when this update team bad request response has a 4xx status code

func (*UpdateTeamBadRequest) IsCode

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

IsCode returns true when this update team bad request response a status code equal to that given

func (*UpdateTeamBadRequest) IsRedirect

func (o *UpdateTeamBadRequest) IsRedirect() bool

IsRedirect returns true when this update team bad request response has a 3xx status code

func (*UpdateTeamBadRequest) IsServerError

func (o *UpdateTeamBadRequest) IsServerError() bool

IsServerError returns true when this update team bad request response has a 5xx status code

func (*UpdateTeamBadRequest) IsSuccess

func (o *UpdateTeamBadRequest) IsSuccess() bool

IsSuccess returns true when this update team bad request response has a 2xx status code

func (*UpdateTeamBadRequest) String

func (o *UpdateTeamBadRequest) String() string

type UpdateTeamConflict

type UpdateTeamConflict struct {
	Payload *models.APIError
}

UpdateTeamConflict describes a response with status code 409, with default header values.

Cannot update the Team because there is a conflict with an existing Team.

func NewUpdateTeamConflict

func NewUpdateTeamConflict() *UpdateTeamConflict

NewUpdateTeamConflict creates a UpdateTeamConflict with default headers values

func (*UpdateTeamConflict) Code

func (o *UpdateTeamConflict) Code() int

Code gets the status code for the update team conflict response

func (*UpdateTeamConflict) Error

func (o *UpdateTeamConflict) Error() string

func (*UpdateTeamConflict) GetPayload

func (o *UpdateTeamConflict) GetPayload() *models.APIError

func (*UpdateTeamConflict) IsClientError

func (o *UpdateTeamConflict) IsClientError() bool

IsClientError returns true when this update team conflict response has a 4xx status code

func (*UpdateTeamConflict) IsCode

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

IsCode returns true when this update team conflict response a status code equal to that given

func (*UpdateTeamConflict) IsRedirect

func (o *UpdateTeamConflict) IsRedirect() bool

IsRedirect returns true when this update team conflict response has a 3xx status code

func (*UpdateTeamConflict) IsServerError

func (o *UpdateTeamConflict) IsServerError() bool

IsServerError returns true when this update team conflict response has a 5xx status code

func (*UpdateTeamConflict) IsSuccess

func (o *UpdateTeamConflict) IsSuccess() bool

IsSuccess returns true when this update team conflict response has a 2xx status code

func (*UpdateTeamConflict) String

func (o *UpdateTeamConflict) String() string

type UpdateTeamDefault

type UpdateTeamDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateTeamDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateTeamDefault

func NewUpdateTeamDefault(code int) *UpdateTeamDefault

NewUpdateTeamDefault creates a UpdateTeamDefault with default headers values

func (*UpdateTeamDefault) Code

func (o *UpdateTeamDefault) Code() int

Code gets the status code for the update team default response

func (*UpdateTeamDefault) Error

func (o *UpdateTeamDefault) Error() string

func (*UpdateTeamDefault) GetPayload

func (o *UpdateTeamDefault) GetPayload() models.GenericError

func (*UpdateTeamDefault) IsClientError

func (o *UpdateTeamDefault) IsClientError() bool

IsClientError returns true when this update team default response has a 4xx status code

func (*UpdateTeamDefault) IsCode

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

IsCode returns true when this update team default response a status code equal to that given

func (*UpdateTeamDefault) IsRedirect

func (o *UpdateTeamDefault) IsRedirect() bool

IsRedirect returns true when this update team default response has a 3xx status code

func (*UpdateTeamDefault) IsServerError

func (o *UpdateTeamDefault) IsServerError() bool

IsServerError returns true when this update team default response has a 5xx status code

func (*UpdateTeamDefault) IsSuccess

func (o *UpdateTeamDefault) IsSuccess() bool

IsSuccess returns true when this update team default response has a 2xx status code

func (*UpdateTeamDefault) String

func (o *UpdateTeamDefault) String() string

type UpdateTeamInternalServerError

type UpdateTeamInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateTeamInternalServerError

func NewUpdateTeamInternalServerError() *UpdateTeamInternalServerError

NewUpdateTeamInternalServerError creates a UpdateTeamInternalServerError with default headers values

func (*UpdateTeamInternalServerError) Code

Code gets the status code for the update team internal server error response

func (*UpdateTeamInternalServerError) Error

func (*UpdateTeamInternalServerError) GetPayload

func (*UpdateTeamInternalServerError) IsClientError

func (o *UpdateTeamInternalServerError) IsClientError() bool

IsClientError returns true when this update team internal server error response has a 4xx status code

func (*UpdateTeamInternalServerError) IsCode

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

IsCode returns true when this update team internal server error response a status code equal to that given

func (*UpdateTeamInternalServerError) IsRedirect

func (o *UpdateTeamInternalServerError) IsRedirect() bool

IsRedirect returns true when this update team internal server error response has a 3xx status code

func (*UpdateTeamInternalServerError) IsServerError

func (o *UpdateTeamInternalServerError) IsServerError() bool

IsServerError returns true when this update team internal server error response has a 5xx status code

func (*UpdateTeamInternalServerError) IsSuccess

func (o *UpdateTeamInternalServerError) IsSuccess() bool

IsSuccess returns true when this update team internal server error response has a 2xx status code

func (*UpdateTeamInternalServerError) String

type UpdateTeamNotFound

type UpdateTeamNotFound struct {
	Payload *models.APIError
}

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

Cannot update the Team because the slug does not exist.

func NewUpdateTeamNotFound

func NewUpdateTeamNotFound() *UpdateTeamNotFound

NewUpdateTeamNotFound creates a UpdateTeamNotFound with default headers values

func (*UpdateTeamNotFound) Code

func (o *UpdateTeamNotFound) Code() int

Code gets the status code for the update team not found response

func (*UpdateTeamNotFound) Error

func (o *UpdateTeamNotFound) Error() string

func (*UpdateTeamNotFound) GetPayload

func (o *UpdateTeamNotFound) GetPayload() *models.APIError

func (*UpdateTeamNotFound) IsClientError

func (o *UpdateTeamNotFound) IsClientError() bool

IsClientError returns true when this update team not found response has a 4xx status code

func (*UpdateTeamNotFound) IsCode

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

IsCode returns true when this update team not found response a status code equal to that given

func (*UpdateTeamNotFound) IsRedirect

func (o *UpdateTeamNotFound) IsRedirect() bool

IsRedirect returns true when this update team not found response has a 3xx status code

func (*UpdateTeamNotFound) IsServerError

func (o *UpdateTeamNotFound) IsServerError() bool

IsServerError returns true when this update team not found response has a 5xx status code

func (*UpdateTeamNotFound) IsSuccess

func (o *UpdateTeamNotFound) IsSuccess() bool

IsSuccess returns true when this update team not found response has a 2xx status code

func (*UpdateTeamNotFound) String

func (o *UpdateTeamNotFound) String() string

type UpdateTeamOK

type UpdateTeamOK struct {
	Payload *models.Configv1UpdateTeamResponse
}

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

A successful response containing the updated Team.

func NewUpdateTeamOK

func NewUpdateTeamOK() *UpdateTeamOK

NewUpdateTeamOK creates a UpdateTeamOK with default headers values

func (*UpdateTeamOK) Code

func (o *UpdateTeamOK) Code() int

Code gets the status code for the update team o k response

func (*UpdateTeamOK) Error

func (o *UpdateTeamOK) Error() string

func (*UpdateTeamOK) GetPayload

func (*UpdateTeamOK) IsClientError

func (o *UpdateTeamOK) IsClientError() bool

IsClientError returns true when this update team o k response has a 4xx status code

func (*UpdateTeamOK) IsCode

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

IsCode returns true when this update team o k response a status code equal to that given

func (*UpdateTeamOK) IsRedirect

func (o *UpdateTeamOK) IsRedirect() bool

IsRedirect returns true when this update team o k response has a 3xx status code

func (*UpdateTeamOK) IsServerError

func (o *UpdateTeamOK) IsServerError() bool

IsServerError returns true when this update team o k response has a 5xx status code

func (*UpdateTeamOK) IsSuccess

func (o *UpdateTeamOK) IsSuccess() bool

IsSuccess returns true when this update team o k response has a 2xx status code

func (*UpdateTeamOK) String

func (o *UpdateTeamOK) String() string

type UpdateTeamParams

type UpdateTeamParams struct {

	// Body.
	Body *models.ConfigV1UpdateTeamBody

	// Slug.
	Slug string

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

UpdateTeamParams contains all the parameters to send to the API endpoint

for the update team operation.

Typically these are written to a http.Request.

func NewUpdateTeamParams

func NewUpdateTeamParams() *UpdateTeamParams

NewUpdateTeamParams creates a new UpdateTeamParams 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 NewUpdateTeamParamsWithContext

func NewUpdateTeamParamsWithContext(ctx context.Context) *UpdateTeamParams

NewUpdateTeamParamsWithContext creates a new UpdateTeamParams object with the ability to set a context for a request.

func NewUpdateTeamParamsWithHTTPClient

func NewUpdateTeamParamsWithHTTPClient(client *http.Client) *UpdateTeamParams

NewUpdateTeamParamsWithHTTPClient creates a new UpdateTeamParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTeamParamsWithTimeout

func NewUpdateTeamParamsWithTimeout(timeout time.Duration) *UpdateTeamParams

NewUpdateTeamParamsWithTimeout creates a new UpdateTeamParams object with the ability to set a timeout on a request.

func (*UpdateTeamParams) SetBody

SetBody adds the body to the update team params

func (*UpdateTeamParams) SetContext

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

SetContext adds the context to the update team params

func (*UpdateTeamParams) SetDefaults

func (o *UpdateTeamParams) SetDefaults()

SetDefaults hydrates default values in the update team params (not the query body).

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

func (*UpdateTeamParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update team params

func (*UpdateTeamParams) SetSlug

func (o *UpdateTeamParams) SetSlug(slug string)

SetSlug adds the slug to the update team params

func (*UpdateTeamParams) SetTimeout

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

SetTimeout adds the timeout to the update team params

func (*UpdateTeamParams) WithBody

WithBody adds the body to the update team params

func (*UpdateTeamParams) WithContext

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

WithContext adds the context to the update team params

func (*UpdateTeamParams) WithDefaults

func (o *UpdateTeamParams) WithDefaults() *UpdateTeamParams

WithDefaults hydrates default values in the update team params (not the query body).

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

func (*UpdateTeamParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update team params

func (*UpdateTeamParams) WithSlug

func (o *UpdateTeamParams) WithSlug(slug string) *UpdateTeamParams

WithSlug adds the slug to the update team params

func (*UpdateTeamParams) WithTimeout

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

WithTimeout adds the timeout to the update team params

func (*UpdateTeamParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateTeamReader

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

UpdateTeamReader is a Reader for the UpdateTeam structure.

func (*UpdateTeamReader) ReadResponse

func (o *UpdateTeamReader) 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