client

package
v0.0.0-...-5905bd6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by unknown module path version unknown version DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdminPingRequest

func NewAdminPingRequest(server string) (*http.Request, error)

NewAdminPingRequest generates requests for AdminPing

func NewCreateWorkitemCommentRequest

func NewCreateWorkitemCommentRequest(server string, id Serial, body CreateWorkitemCommentJSONRequestBody) (*http.Request, error)

NewCreateWorkitemCommentRequest calls the generic CreateWorkitemComment builder with application/json body

func NewCreateWorkitemCommentRequestWithBody

func NewCreateWorkitemCommentRequestWithBody(server string, id Serial, contentType string, body io.Reader) (*http.Request, error)

NewCreateWorkitemCommentRequestWithBody generates requests for CreateWorkitemComment with any type of body

func NewCreateWorkitemRequest

func NewCreateWorkitemRequest(server string, body CreateWorkitemJSONRequestBody) (*http.Request, error)

NewCreateWorkitemRequest calls the generic CreateWorkitem builder with application/json body

func NewCreateWorkitemRequestWithBody

func NewCreateWorkitemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateWorkitemRequestWithBody generates requests for CreateWorkitem with any type of body

func NewCreateWorkitemTagRequest

func NewCreateWorkitemTagRequest(server string, projectName ProjectName, body CreateWorkitemTagJSONRequestBody) (*http.Request, error)

NewCreateWorkitemTagRequest calls the generic CreateWorkitemTag builder with application/json body

func NewCreateWorkitemTagRequestWithBody

func NewCreateWorkitemTagRequestWithBody(server string, projectName ProjectName, contentType string, body io.Reader) (*http.Request, error)

NewCreateWorkitemTagRequestWithBody generates requests for CreateWorkitemTag with any type of body

func NewDeleteUserRequest

func NewDeleteUserRequest(server string, id uuid.UUID) (*http.Request, error)

NewDeleteUserRequest generates requests for DeleteUser

func NewDeleteWorkitemRequest

func NewDeleteWorkitemRequest(server string, id Serial) (*http.Request, error)

NewDeleteWorkitemRequest generates requests for DeleteWorkitem

func NewEventsRequest

func NewEventsRequest(server string, params *EventsParams) (*http.Request, error)

NewEventsRequest generates requests for Events

func NewGetCurrentUserRequest

func NewGetCurrentUserRequest(server string) (*http.Request, error)

NewGetCurrentUserRequest generates requests for GetCurrentUser

func NewGetProjectBoardRequest

func NewGetProjectBoardRequest(server string, projectName ProjectName) (*http.Request, error)

NewGetProjectBoardRequest generates requests for GetProjectBoard

func NewGetProjectConfigRequest

func NewGetProjectConfigRequest(server string, projectName ProjectName) (*http.Request, error)

NewGetProjectConfigRequest generates requests for GetProjectConfig

func NewGetProjectRequest

func NewGetProjectRequest(server string, projectName ProjectName) (*http.Request, error)

NewGetProjectRequest generates requests for GetProject

func NewGetProjectWorkitemsRequest

func NewGetProjectWorkitemsRequest(server string, projectName ProjectName, params *GetProjectWorkitemsParams) (*http.Request, error)

NewGetProjectWorkitemsRequest generates requests for GetProjectWorkitems

func NewGetWorkitemRequest

func NewGetWorkitemRequest(server string, id Serial) (*http.Request, error)

NewGetWorkitemRequest generates requests for GetWorkitem

func NewInitializeProjectRequest

func NewInitializeProjectRequest(server string, projectName ProjectName, body InitializeProjectJSONRequestBody) (*http.Request, error)

NewInitializeProjectRequest calls the generic InitializeProject builder with application/json body

func NewInitializeProjectRequestWithBody

func NewInitializeProjectRequestWithBody(server string, projectName ProjectName, contentType string, body io.Reader) (*http.Request, error)

NewInitializeProjectRequestWithBody generates requests for InitializeProject with any type of body

func NewMyProviderCallbackRequest

func NewMyProviderCallbackRequest(server string) (*http.Request, error)

NewMyProviderCallbackRequest generates requests for MyProviderCallback

func NewMyProviderLoginRequest

func NewMyProviderLoginRequest(server string) (*http.Request, error)

NewMyProviderLoginRequest generates requests for MyProviderLogin

func NewOpenapiYamlGetRequest

func NewOpenapiYamlGetRequest(server string) (*http.Request, error)

NewOpenapiYamlGetRequest generates requests for OpenapiYamlGet

func NewPingRequest

func NewPingRequest(server string) (*http.Request, error)

NewPingRequest generates requests for Ping

func NewUpdateProjectConfigRequest

func NewUpdateProjectConfigRequest(server string, projectName ProjectName, body UpdateProjectConfigJSONRequestBody) (*http.Request, error)

NewUpdateProjectConfigRequest calls the generic UpdateProjectConfig builder with application/json body

func NewUpdateProjectConfigRequestWithBody

func NewUpdateProjectConfigRequestWithBody(server string, projectName ProjectName, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProjectConfigRequestWithBody generates requests for UpdateProjectConfig with any type of body

func NewUpdateUserAuthorizationRequest

func NewUpdateUserAuthorizationRequest(server string, id uuid.UUID, body UpdateUserAuthorizationJSONRequestBody) (*http.Request, error)

NewUpdateUserAuthorizationRequest calls the generic UpdateUserAuthorization builder with application/json body

func NewUpdateUserAuthorizationRequestWithBody

func NewUpdateUserAuthorizationRequestWithBody(server string, id uuid.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserAuthorizationRequestWithBody generates requests for UpdateUserAuthorization with any type of body

func NewUpdateUserRequest

func NewUpdateUserRequest(server string, id uuid.UUID, body UpdateUserJSONRequestBody) (*http.Request, error)

NewUpdateUserRequest calls the generic UpdateUser builder with application/json body

func NewUpdateUserRequestWithBody

func NewUpdateUserRequestWithBody(server string, id uuid.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body

func NewUpdateWorkitemRequest

func NewUpdateWorkitemRequest(server string, id Serial) (*http.Request, error)

NewUpdateWorkitemRequest generates requests for UpdateWorkitem

Types

type AdminPingResponse

type AdminPingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON4XX      *HTTPError
}

func ParseAdminPingResponse

func ParseAdminPingResponse(rsp *http.Response) (*AdminPingResponse, error)

ParseAdminPingResponse parses an HTTP response from a AdminPingWithResponse call

func (AdminPingResponse) Status

func (r AdminPingResponse) Status() string

Status returns HTTPResponse.Status

func (AdminPingResponse) StatusCode

func (r AdminPingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
	// contains filtered or unexported fields
}

Client which conforms to the OpenAPI3 specification for this service.

func (*Client) AdminPing

func (c *Client) AdminPing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkitem

func (c *Client) CreateWorkitem(ctx context.Context, body CreateWorkitemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkitemComment

func (c *Client) CreateWorkitemComment(ctx context.Context, id Serial, body CreateWorkitemCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkitemCommentWithBody

func (c *Client) CreateWorkitemCommentWithBody(ctx context.Context, id Serial, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkitemTag

func (c *Client) CreateWorkitemTag(ctx context.Context, projectName ProjectName, body CreateWorkitemTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkitemTagWithBody

func (c *Client) CreateWorkitemTagWithBody(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWorkitemWithBody

func (c *Client) CreateWorkitemWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, id uuid.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteWorkitem

func (c *Client) DeleteWorkitem(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Events

func (c *Client) Events(ctx context.Context, params *EventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCurrentUser

func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectBoard

func (c *Client) GetProjectBoard(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectConfig

func (c *Client) GetProjectConfig(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectWorkitems

func (c *Client) GetProjectWorkitems(ctx context.Context, projectName ProjectName, params *GetProjectWorkitemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWorkitem

func (c *Client) GetWorkitem(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InitializeProject

func (c *Client) InitializeProject(ctx context.Context, projectName ProjectName, body InitializeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InitializeProjectWithBody

func (c *Client) InitializeProjectWithBody(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MyProviderCallback

func (c *Client) MyProviderCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MyProviderLogin

func (c *Client) MyProviderLogin(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OpenapiYamlGet

func (c *Client) OpenapiYamlGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectConfig

func (c *Client) UpdateProjectConfig(ctx context.Context, projectName ProjectName, body UpdateProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectConfigWithBody

func (c *Client) UpdateProjectConfigWithBody(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, id uuid.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserAuthorization

func (c *Client) UpdateUserAuthorization(ctx context.Context, id uuid.UUID, body UpdateUserAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserAuthorizationWithBody

func (c *Client) UpdateUserAuthorizationWithBody(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserWithBody

func (c *Client) UpdateUserWithBody(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWorkitem

func (c *Client) UpdateWorkitem(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// AdminPing request
	AdminPing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MyProviderCallback request
	MyProviderCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MyProviderLogin request
	MyProviderLogin(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Events request
	Events(ctx context.Context, params *EventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OpenapiYamlGet request
	OpenapiYamlGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Ping request
	Ping(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProject request
	GetProject(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectBoard request
	GetProjectBoard(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectConfig request
	GetProjectConfig(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProjectConfig request with any body
	UpdateProjectConfigWithBody(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateProjectConfig(ctx context.Context, projectName ProjectName, body UpdateProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InitializeProject request with any body
	InitializeProjectWithBody(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InitializeProject(ctx context.Context, projectName ProjectName, body InitializeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWorkitemTag request with any body
	CreateWorkitemTagWithBody(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateWorkitemTag(ctx context.Context, projectName ProjectName, body CreateWorkitemTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectWorkitems request
	GetProjectWorkitems(ctx context.Context, projectName ProjectName, params *GetProjectWorkitemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCurrentUser request
	GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUser request
	DeleteUser(ctx context.Context, id uuid.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUser request with any body
	UpdateUserWithBody(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateUser(ctx context.Context, id uuid.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserAuthorization request with any body
	UpdateUserAuthorizationWithBody(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateUserAuthorization(ctx context.Context, id uuid.UUID, body UpdateUserAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWorkitem request with any body
	CreateWorkitemWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateWorkitem(ctx context.Context, body CreateWorkitemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWorkitem request
	DeleteWorkitem(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkitem request
	GetWorkitem(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWorkitem request
	UpdateWorkitem(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWorkitemComment request with any body
	CreateWorkitemCommentWithBody(ctx context.Context, id Serial, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateWorkitemComment(ctx context.Context, id Serial, body CreateWorkitemCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func NewTestClient

func NewTestClient(server string, testHandler http.Handler, opts ...ClientOption) (*ClientWithResponses, error)

NewTestClient creates a new ClientWithResponses for testing.

func (*ClientWithResponses) AdminPingWithResponse

func (c *ClientWithResponses) AdminPingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AdminPingResponse, error)

AdminPingWithResponse request returning *AdminPingResponse

func (*ClientWithResponses) CreateWorkitemCommentWithBodyWithResponse

func (c *ClientWithResponses) CreateWorkitemCommentWithBodyWithResponse(ctx context.Context, id Serial, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkitemCommentResponse, error)

CreateWorkitemCommentWithBodyWithResponse request with arbitrary body returning *CreateWorkitemCommentResponse

func (*ClientWithResponses) CreateWorkitemCommentWithResponse

func (c *ClientWithResponses) CreateWorkitemCommentWithResponse(ctx context.Context, id Serial, body CreateWorkitemCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkitemCommentResponse, error)

func (*ClientWithResponses) CreateWorkitemTagWithBodyWithResponse

func (c *ClientWithResponses) CreateWorkitemTagWithBodyWithResponse(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkitemTagResponse, error)

CreateWorkitemTagWithBodyWithResponse request with arbitrary body returning *CreateWorkitemTagResponse

func (*ClientWithResponses) CreateWorkitemTagWithResponse

func (c *ClientWithResponses) CreateWorkitemTagWithResponse(ctx context.Context, projectName ProjectName, body CreateWorkitemTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkitemTagResponse, error)

func (*ClientWithResponses) CreateWorkitemWithBodyWithResponse

func (c *ClientWithResponses) CreateWorkitemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkitemResponse, error)

CreateWorkitemWithBodyWithResponse request with arbitrary body returning *CreateWorkitemResponse

func (*ClientWithResponses) CreateWorkitemWithResponse

func (c *ClientWithResponses) CreateWorkitemWithResponse(ctx context.Context, body CreateWorkitemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkitemResponse, error)

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, id uuid.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

DeleteUserWithResponse request returning *DeleteUserResponse

func (*ClientWithResponses) DeleteWorkitemWithResponse

func (c *ClientWithResponses) DeleteWorkitemWithResponse(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*DeleteWorkitemResponse, error)

DeleteWorkitemWithResponse request returning *DeleteWorkitemResponse

func (*ClientWithResponses) EventsWithResponse

func (c *ClientWithResponses) EventsWithResponse(ctx context.Context, params *EventsParams, reqEditors ...RequestEditorFn) (*EventsResponse, error)

EventsWithResponse request returning *EventsResponse

func (*ClientWithResponses) GetCurrentUserWithResponse

func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)

GetCurrentUserWithResponse request returning *GetCurrentUserResponse

func (*ClientWithResponses) GetProjectBoardWithResponse

func (c *ClientWithResponses) GetProjectBoardWithResponse(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectBoardResponse, error)

GetProjectBoardWithResponse request returning *GetProjectBoardResponse

func (*ClientWithResponses) GetProjectConfigWithResponse

func (c *ClientWithResponses) GetProjectConfigWithResponse(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectConfigResponse, error)

GetProjectConfigWithResponse request returning *GetProjectConfigResponse

func (*ClientWithResponses) GetProjectWithResponse

func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

GetProjectWithResponse request returning *GetProjectResponse

func (*ClientWithResponses) GetProjectWorkitemsWithResponse

func (c *ClientWithResponses) GetProjectWorkitemsWithResponse(ctx context.Context, projectName ProjectName, params *GetProjectWorkitemsParams, reqEditors ...RequestEditorFn) (*GetProjectWorkitemsResponse, error)

GetProjectWorkitemsWithResponse request returning *GetProjectWorkitemsResponse

func (*ClientWithResponses) GetWorkitemWithResponse

func (c *ClientWithResponses) GetWorkitemWithResponse(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*GetWorkitemResponse, error)

GetWorkitemWithResponse request returning *GetWorkitemResponse

func (*ClientWithResponses) InitializeProjectWithBodyWithResponse

func (c *ClientWithResponses) InitializeProjectWithBodyWithResponse(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitializeProjectResponse, error)

InitializeProjectWithBodyWithResponse request with arbitrary body returning *InitializeProjectResponse

func (*ClientWithResponses) InitializeProjectWithResponse

func (c *ClientWithResponses) InitializeProjectWithResponse(ctx context.Context, projectName ProjectName, body InitializeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*InitializeProjectResponse, error)

func (*ClientWithResponses) MyProviderCallbackWithResponse

func (c *ClientWithResponses) MyProviderCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MyProviderCallbackResponse, error)

MyProviderCallbackWithResponse request returning *MyProviderCallbackResponse

func (*ClientWithResponses) MyProviderLoginWithResponse

func (c *ClientWithResponses) MyProviderLoginWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MyProviderLoginResponse, error)

MyProviderLoginWithResponse request returning *MyProviderLoginResponse

func (*ClientWithResponses) OpenapiYamlGetWithResponse

func (c *ClientWithResponses) OpenapiYamlGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OpenapiYamlGetResponse, error)

OpenapiYamlGetWithResponse request returning *OpenapiYamlGetResponse

func (*ClientWithResponses) PingWithResponse

func (c *ClientWithResponses) PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error)

PingWithResponse request returning *PingResponse

func (*ClientWithResponses) UpdateProjectConfigWithBodyWithResponse

func (c *ClientWithResponses) UpdateProjectConfigWithBodyWithResponse(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectConfigResponse, error)

UpdateProjectConfigWithBodyWithResponse request with arbitrary body returning *UpdateProjectConfigResponse

func (*ClientWithResponses) UpdateProjectConfigWithResponse

func (c *ClientWithResponses) UpdateProjectConfigWithResponse(ctx context.Context, projectName ProjectName, body UpdateProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectConfigResponse, error)

func (*ClientWithResponses) UpdateUserAuthorizationWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserAuthorizationWithBodyWithResponse(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserAuthorizationResponse, error)

UpdateUserAuthorizationWithBodyWithResponse request with arbitrary body returning *UpdateUserAuthorizationResponse

func (*ClientWithResponses) UpdateUserAuthorizationWithResponse

func (c *ClientWithResponses) UpdateUserAuthorizationWithResponse(ctx context.Context, id uuid.UUID, body UpdateUserAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserAuthorizationResponse, error)

func (*ClientWithResponses) UpdateUserWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse

func (*ClientWithResponses) UpdateUserWithResponse

func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, id uuid.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

func (*ClientWithResponses) UpdateWorkitemWithResponse

func (c *ClientWithResponses) UpdateWorkitemWithResponse(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*UpdateWorkitemResponse, error)

UpdateWorkitemWithResponse request returning *UpdateWorkitemResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AdminPing request
	AdminPingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AdminPingResponse, error)

	// MyProviderCallback request
	MyProviderCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MyProviderCallbackResponse, error)

	// MyProviderLogin request
	MyProviderLoginWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MyProviderLoginResponse, error)

	// Events request
	EventsWithResponse(ctx context.Context, params *EventsParams, reqEditors ...RequestEditorFn) (*EventsResponse, error)

	// OpenapiYamlGet request
	OpenapiYamlGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OpenapiYamlGetResponse, error)

	// Ping request
	PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error)

	// GetProject request
	GetProjectWithResponse(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

	// GetProjectBoard request
	GetProjectBoardWithResponse(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectBoardResponse, error)

	// GetProjectConfig request
	GetProjectConfigWithResponse(ctx context.Context, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectConfigResponse, error)

	// UpdateProjectConfig request with any body
	UpdateProjectConfigWithBodyWithResponse(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectConfigResponse, error)

	UpdateProjectConfigWithResponse(ctx context.Context, projectName ProjectName, body UpdateProjectConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectConfigResponse, error)

	// InitializeProject request with any body
	InitializeProjectWithBodyWithResponse(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitializeProjectResponse, error)

	InitializeProjectWithResponse(ctx context.Context, projectName ProjectName, body InitializeProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*InitializeProjectResponse, error)

	// CreateWorkitemTag request with any body
	CreateWorkitemTagWithBodyWithResponse(ctx context.Context, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkitemTagResponse, error)

	CreateWorkitemTagWithResponse(ctx context.Context, projectName ProjectName, body CreateWorkitemTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkitemTagResponse, error)

	// GetProjectWorkitems request
	GetProjectWorkitemsWithResponse(ctx context.Context, projectName ProjectName, params *GetProjectWorkitemsParams, reqEditors ...RequestEditorFn) (*GetProjectWorkitemsResponse, error)

	// GetCurrentUser request
	GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)

	// DeleteUser request
	DeleteUserWithResponse(ctx context.Context, id uuid.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

	// UpdateUser request with any body
	UpdateUserWithBodyWithResponse(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	UpdateUserWithResponse(ctx context.Context, id uuid.UUID, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// UpdateUserAuthorization request with any body
	UpdateUserAuthorizationWithBodyWithResponse(ctx context.Context, id uuid.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserAuthorizationResponse, error)

	UpdateUserAuthorizationWithResponse(ctx context.Context, id uuid.UUID, body UpdateUserAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserAuthorizationResponse, error)

	// CreateWorkitem request with any body
	CreateWorkitemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkitemResponse, error)

	CreateWorkitemWithResponse(ctx context.Context, body CreateWorkitemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkitemResponse, error)

	// DeleteWorkitem request
	DeleteWorkitemWithResponse(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*DeleteWorkitemResponse, error)

	// GetWorkitem request
	GetWorkitemWithResponse(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*GetWorkitemResponse, error)

	// UpdateWorkitem request
	UpdateWorkitemWithResponse(ctx context.Context, id Serial, reqEditors ...RequestEditorFn) (*UpdateWorkitemResponse, error)

	// CreateWorkitemComment request with any body
	CreateWorkitemCommentWithBodyWithResponse(ctx context.Context, id Serial, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkitemCommentResponse, error)

	CreateWorkitemCommentWithResponse(ctx context.Context, id Serial, body CreateWorkitemCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkitemCommentResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateWorkitemCommentResponse

type CreateWorkitemCommentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// contains filtered or unexported fields
	}
}

func ParseCreateWorkitemCommentResponse

func ParseCreateWorkitemCommentResponse(rsp *http.Response) (*CreateWorkitemCommentResponse, error)

ParseCreateWorkitemCommentResponse parses an HTTP response from a CreateWorkitemCommentWithResponse call

func (CreateWorkitemCommentResponse) Status

Status returns HTTPResponse.Status

func (CreateWorkitemCommentResponse) StatusCode

func (r CreateWorkitemCommentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateWorkitemResponse

type CreateWorkitemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// contains filtered or unexported fields
	}
}

func ParseCreateWorkitemResponse

func ParseCreateWorkitemResponse(rsp *http.Response) (*CreateWorkitemResponse, error)

ParseCreateWorkitemResponse parses an HTTP response from a CreateWorkitemWithResponse call

func (CreateWorkitemResponse) Status

func (r CreateWorkitemResponse) Status() string

Status returns HTTPResponse.Status

func (CreateWorkitemResponse) StatusCode

func (r CreateWorkitemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateWorkitemTagResponse

type CreateWorkitemTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DbWorkItemTag
}

func ParseCreateWorkitemTagResponse

func ParseCreateWorkitemTagResponse(rsp *http.Response) (*CreateWorkitemTagResponse, error)

ParseCreateWorkitemTagResponse parses an HTTP response from a CreateWorkitemTagWithResponse call

func (CreateWorkitemTagResponse) Status

func (r CreateWorkitemTagResponse) Status() string

Status returns HTTPResponse.Status

func (CreateWorkitemTagResponse) StatusCode

func (r CreateWorkitemTagResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserResponse

type DeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteUserResponse

func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)

ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResponse) Status

func (r DeleteUserResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResponse) StatusCode

func (r DeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWorkitemResponse

type DeleteWorkitemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteWorkitemResponse

func ParseDeleteWorkitemResponse(rsp *http.Response) (*DeleteWorkitemResponse, error)

ParseDeleteWorkitemResponse parses an HTTP response from a DeleteWorkitemWithResponse call

func (DeleteWorkitemResponse) Status

func (r DeleteWorkitemResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteWorkitemResponse) StatusCode

func (r DeleteWorkitemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EventsResponse

type EventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseEventsResponse

func ParseEventsResponse(rsp *http.Response) (*EventsResponse, error)

ParseEventsResponse parses an HTTP response from a EventsWithResponse call

func (EventsResponse) Status

func (r EventsResponse) Status() string

Status returns HTTPResponse.Status

func (EventsResponse) StatusCode

func (r EventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentUserResponse

type GetCurrentUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

func ParseGetCurrentUserResponse

func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error)

ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call

func (GetCurrentUserResponse) Status

func (r GetCurrentUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetCurrentUserResponse) StatusCode

func (r GetCurrentUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectBoardResponse

type GetProjectBoardResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectBoardResponse
}

func ParseGetProjectBoardResponse

func ParseGetProjectBoardResponse(rsp *http.Response) (*GetProjectBoardResponse, error)

ParseGetProjectBoardResponse parses an HTTP response from a GetProjectBoardWithResponse call

func (GetProjectBoardResponse) Status

func (r GetProjectBoardResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectBoardResponse) StatusCode

func (r GetProjectBoardResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectConfigResponse

type GetProjectConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectConfig
}

func ParseGetProjectConfigResponse

func ParseGetProjectConfigResponse(rsp *http.Response) (*GetProjectConfigResponse, error)

ParseGetProjectConfigResponse parses an HTTP response from a GetProjectConfigWithResponse call

func (GetProjectConfigResponse) Status

func (r GetProjectConfigResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectConfigResponse) StatusCode

func (r GetProjectConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectResponse

type GetProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DbProject
}

func ParseGetProjectResponse

func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)

ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call

func (GetProjectResponse) Status

func (r GetProjectResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectResponse) StatusCode

func (r GetProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectWorkitemsResponse

type GetProjectWorkitemsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// contains filtered or unexported fields
	}
}

func ParseGetProjectWorkitemsResponse

func ParseGetProjectWorkitemsResponse(rsp *http.Response) (*GetProjectWorkitemsResponse, error)

ParseGetProjectWorkitemsResponse parses an HTTP response from a GetProjectWorkitemsWithResponse call

func (GetProjectWorkitemsResponse) Status

Status returns HTTPResponse.Status

func (GetProjectWorkitemsResponse) StatusCode

func (r GetProjectWorkitemsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkitemResponse

type GetWorkitemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// contains filtered or unexported fields
	}
}

func ParseGetWorkitemResponse

func ParseGetWorkitemResponse(rsp *http.Response) (*GetWorkitemResponse, error)

ParseGetWorkitemResponse parses an HTTP response from a GetWorkitemWithResponse call

func (GetWorkitemResponse) Status

func (r GetWorkitemResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorkitemResponse) StatusCode

func (r GetWorkitemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InitializeProjectResponse

type InitializeProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseInitializeProjectResponse

func ParseInitializeProjectResponse(rsp *http.Response) (*InitializeProjectResponse, error)

ParseInitializeProjectResponse parses an HTTP response from a InitializeProjectWithResponse call

func (InitializeProjectResponse) Status

func (r InitializeProjectResponse) Status() string

Status returns HTTPResponse.Status

func (InitializeProjectResponse) StatusCode

func (r InitializeProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MyProviderCallbackResponse

type MyProviderCallbackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseMyProviderCallbackResponse

func ParseMyProviderCallbackResponse(rsp *http.Response) (*MyProviderCallbackResponse, error)

ParseMyProviderCallbackResponse parses an HTTP response from a MyProviderCallbackWithResponse call

func (MyProviderCallbackResponse) Status

Status returns HTTPResponse.Status

func (MyProviderCallbackResponse) StatusCode

func (r MyProviderCallbackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MyProviderLoginResponse

type MyProviderLoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseMyProviderLoginResponse

func ParseMyProviderLoginResponse(rsp *http.Response) (*MyProviderLoginResponse, error)

ParseMyProviderLoginResponse parses an HTTP response from a MyProviderLoginWithResponse call

func (MyProviderLoginResponse) Status

func (r MyProviderLoginResponse) Status() string

Status returns HTTPResponse.Status

func (MyProviderLoginResponse) StatusCode

func (r MyProviderLoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OpenapiYamlGetResponse

type OpenapiYamlGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	YAML200      *openapi_types.File
}

func ParseOpenapiYamlGetResponse

func ParseOpenapiYamlGetResponse(rsp *http.Response) (*OpenapiYamlGetResponse, error)

ParseOpenapiYamlGetResponse parses an HTTP response from a OpenapiYamlGetWithResponse call

func (OpenapiYamlGetResponse) Status

func (r OpenapiYamlGetResponse) Status() string

Status returns HTTPResponse.Status

func (OpenapiYamlGetResponse) StatusCode

func (r OpenapiYamlGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PingResponse

type PingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON4XX      *HTTPError
}

func ParsePingResponse

func ParsePingResponse(rsp *http.Response) (*PingResponse, error)

ParsePingResponse parses an HTTP response from a PingWithResponse call

func (PingResponse) Status

func (r PingResponse) Status() string

Status returns HTTPResponse.Status

func (PingResponse) StatusCode

func (r PingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateProjectConfigResponse

type UpdateProjectConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateProjectConfigResponse

func ParseUpdateProjectConfigResponse(rsp *http.Response) (*UpdateProjectConfigResponse, error)

ParseUpdateProjectConfigResponse parses an HTTP response from a UpdateProjectConfigWithResponse call

func (UpdateProjectConfigResponse) Status

Status returns HTTPResponse.Status

func (UpdateProjectConfigResponse) StatusCode

func (r UpdateProjectConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserAuthorizationResponse

type UpdateUserAuthorizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateUserAuthorizationResponse

func ParseUpdateUserAuthorizationResponse(rsp *http.Response) (*UpdateUserAuthorizationResponse, error)

ParseUpdateUserAuthorizationResponse parses an HTTP response from a UpdateUserAuthorizationWithResponse call

func (UpdateUserAuthorizationResponse) Status

Status returns HTTPResponse.Status

func (UpdateUserAuthorizationResponse) StatusCode

func (r UpdateUserAuthorizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserResponse

type UpdateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

func ParseUpdateUserResponse

func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)

ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call

func (UpdateUserResponse) Status

func (r UpdateUserResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserResponse) StatusCode

func (r UpdateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWorkitemResponse

type UpdateWorkitemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// contains filtered or unexported fields
	}
}

func ParseUpdateWorkitemResponse

func ParseUpdateWorkitemResponse(rsp *http.Response) (*UpdateWorkitemResponse, error)

ParseUpdateWorkitemResponse parses an HTTP response from a UpdateWorkitemWithResponse call

func (UpdateWorkitemResponse) Status

func (r UpdateWorkitemResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateWorkitemResponse) StatusCode

func (r UpdateWorkitemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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