Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- func NewDeleteSourceSubsetRequest(server string, id openapi_types.UUID, subsetId openapi_types.UUID) (*http.Request, error)
- func NewUpdateAgentStatusRequest(server string, id openapi_types.UUID, body UpdateAgentStatusJSONRequestBody) (*http.Request, error)
- func NewUpdateAgentStatusRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSourceInventoryRequest(server string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateSourceInventoryRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSourceRequest(server string, id openapi_types.UUID, body UpdateSourceJSONRequestBody) (*http.Request, error)
- func NewUpdateSourceRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSourceSubsetRequest(server string, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateSourceSubsetRequestWithBody(server string, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*http.Request, error)
- type Client
- func (c *Client) DeleteSourceSubset(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateAgentStatus(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateAgentStatusWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSource(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSourceInventory(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateSourceInventoryWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSourceSubset(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateSourceSubsetWithBody(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateSourceWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteSourceSubsetWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*DeleteSourceSubsetResponse, error)
- func (c *ClientWithResponses) UpdateAgentStatusWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateAgentStatusResponse, error)
- func (c *ClientWithResponses) UpdateAgentStatusWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*UpdateAgentStatusResponse, error)
- func (c *ClientWithResponses) UpdateSourceInventoryWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateSourceInventoryResponse, error)
- func (c *ClientWithResponses) UpdateSourceInventoryWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*UpdateSourceInventoryResponse, error)
- func (c *ClientWithResponses) UpdateSourceSubsetWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*UpdateSourceSubsetResponse, error)
- func (c *ClientWithResponses) UpdateSourceSubsetWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, ...) (*UpdateSourceSubsetResponse, error)
- func (c *ClientWithResponses) UpdateSourceWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateSourceResponse, error)
- func (c *ClientWithResponses) UpdateSourceWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, ...) (*UpdateSourceResponse, error)
- type ClientWithResponsesInterface
- type DeleteSourceSubsetResponse
- type HttpRequestDoer
- type RequestEditorFn
- type UpdateAgentStatusResponse
- type UpdateSourceInventoryResponse
- type UpdateSourceResponse
- type UpdateSourceSubsetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteSourceSubsetRequest ¶ added in v0.15.0
func NewDeleteSourceSubsetRequest(server string, id openapi_types.UUID, subsetId openapi_types.UUID) (*http.Request, error)
NewDeleteSourceSubsetRequest generates requests for DeleteSourceSubset
func NewUpdateAgentStatusRequest ¶
func NewUpdateAgentStatusRequest(server string, id openapi_types.UUID, body UpdateAgentStatusJSONRequestBody) (*http.Request, error)
NewUpdateAgentStatusRequest calls the generic UpdateAgentStatus builder with application/json body
func NewUpdateAgentStatusRequestWithBody ¶
func NewUpdateAgentStatusRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAgentStatusRequestWithBody generates requests for UpdateAgentStatus with any type of body
func NewUpdateSourceInventoryRequest ¶
func NewUpdateSourceInventoryRequest(server string, id openapi_types.UUID, body UpdateSourceInventoryJSONRequestBody) (*http.Request, error)
NewUpdateSourceInventoryRequest calls the generic UpdateSourceInventory builder with application/json body
func NewUpdateSourceInventoryRequestWithBody ¶
func NewUpdateSourceInventoryRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSourceInventoryRequestWithBody generates requests for UpdateSourceInventory with any type of body
func NewUpdateSourceRequest ¶ added in v0.15.0
func NewUpdateSourceRequest(server string, id openapi_types.UUID, body UpdateSourceJSONRequestBody) (*http.Request, error)
NewUpdateSourceRequest calls the generic UpdateSource builder with application/json body
func NewUpdateSourceRequestWithBody ¶ added in v0.15.0
func NewUpdateSourceRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSourceRequestWithBody generates requests for UpdateSource with any type of body
func NewUpdateSourceSubsetRequest ¶ added in v0.15.0
func NewUpdateSourceSubsetRequest(server string, id openapi_types.UUID, subsetId openapi_types.UUID, body UpdateSourceSubsetJSONRequestBody) (*http.Request, error)
NewUpdateSourceSubsetRequest calls the generic UpdateSourceSubset builder with application/json body
func NewUpdateSourceSubsetRequestWithBody ¶ added in v0.15.0
func NewUpdateSourceSubsetRequestWithBody(server string, id openapi_types.UUID, subsetId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSourceSubsetRequestWithBody generates requests for UpdateSourceSubset with any type of body
Types ¶
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
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteSourceSubset ¶ added in v0.15.0
func (c *Client) DeleteSourceSubset(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAgentStatus ¶
func (c *Client) UpdateAgentStatus(ctx context.Context, id openapi_types.UUID, body UpdateAgentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAgentStatusWithBody ¶
func (*Client) UpdateSource ¶ added in v0.15.0
func (c *Client) UpdateSource(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSourceInventory ¶
func (c *Client) UpdateSourceInventory(ctx context.Context, id openapi_types.UUID, body UpdateSourceInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSourceInventoryWithBody ¶
func (*Client) UpdateSourceSubset ¶ added in v0.15.0
func (c *Client) UpdateSourceSubset(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, body UpdateSourceSubsetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSourceSubsetWithBody ¶ added in v0.15.0
func (c *Client) UpdateSourceSubsetWithBody(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSourceWithBody ¶ added in v0.15.0
type ClientInterface ¶
type ClientInterface interface {
// UpdateAgentStatusWithBody request with any body
UpdateAgentStatusWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAgentStatus(ctx context.Context, id openapi_types.UUID, body UpdateAgentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSourceWithBody request with any body
UpdateSourceWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSource(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSourceInventoryWithBody request with any body
UpdateSourceInventoryWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSourceInventory(ctx context.Context, id openapi_types.UUID, body UpdateSourceInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSourceSubset request
DeleteSourceSubset(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSourceSubsetWithBody request with any body
UpdateSourceSubsetWithBody(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSourceSubset(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, body UpdateSourceSubsetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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 (*ClientWithResponses) DeleteSourceSubsetWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) DeleteSourceSubsetWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSourceSubsetResponse, error)
DeleteSourceSubsetWithResponse request returning *DeleteSourceSubsetResponse
func (*ClientWithResponses) UpdateAgentStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAgentStatusWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAgentStatusResponse, error)
UpdateAgentStatusWithBodyWithResponse request with arbitrary body returning *UpdateAgentStatusResponse
func (*ClientWithResponses) UpdateAgentStatusWithResponse ¶
func (c *ClientWithResponses) UpdateAgentStatusWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAgentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAgentStatusResponse, error)
func (*ClientWithResponses) UpdateSourceInventoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSourceInventoryWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceInventoryResponse, error)
UpdateSourceInventoryWithBodyWithResponse request with arbitrary body returning *UpdateSourceInventoryResponse
func (*ClientWithResponses) UpdateSourceInventoryWithResponse ¶
func (c *ClientWithResponses) UpdateSourceInventoryWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceInventoryResponse, error)
func (*ClientWithResponses) UpdateSourceSubsetWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateSourceSubsetWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceSubsetResponse, error)
UpdateSourceSubsetWithBodyWithResponse request with arbitrary body returning *UpdateSourceSubsetResponse
func (*ClientWithResponses) UpdateSourceSubsetWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateSourceSubsetWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, body UpdateSourceSubsetJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceSubsetResponse, error)
func (*ClientWithResponses) UpdateSourceWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateSourceWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
UpdateSourceWithBodyWithResponse request with arbitrary body returning *UpdateSourceResponse
func (*ClientWithResponses) UpdateSourceWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateSourceWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// UpdateAgentStatusWithBodyWithResponse request with any body
UpdateAgentStatusWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAgentStatusResponse, error)
UpdateAgentStatusWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAgentStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAgentStatusResponse, error)
// UpdateSourceWithBodyWithResponse request with any body
UpdateSourceWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
UpdateSourceWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
// UpdateSourceInventoryWithBodyWithResponse request with any body
UpdateSourceInventoryWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceInventoryResponse, error)
UpdateSourceInventoryWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceInventoryResponse, error)
// DeleteSourceSubsetWithResponse request
DeleteSourceSubsetWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSourceSubsetResponse, error)
// UpdateSourceSubsetWithBodyWithResponse request with any body
UpdateSourceSubsetWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceSubsetResponse, error)
UpdateSourceSubsetWithResponse(ctx context.Context, id openapi_types.UUID, subsetId openapi_types.UUID, body UpdateSourceSubsetJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceSubsetResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteSourceSubsetResponse ¶ added in v0.15.0
type DeleteSourceSubsetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *externalRef0.Error
JSON401 *externalRef0.Error
JSON403 *externalRef0.Error
JSON404 *externalRef0.Error
JSON500 *externalRef0.Error
}
func ParseDeleteSourceSubsetResponse ¶ added in v0.15.0
func ParseDeleteSourceSubsetResponse(rsp *http.Response) (*DeleteSourceSubsetResponse, error)
ParseDeleteSourceSubsetResponse parses an HTTP response from a DeleteSourceSubsetWithResponse call
func (DeleteSourceSubsetResponse) Status ¶ added in v0.15.0
func (r DeleteSourceSubsetResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSourceSubsetResponse) StatusCode ¶ added in v0.15.0
func (r DeleteSourceSubsetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type UpdateAgentStatusResponse ¶
type UpdateAgentStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *externalRef0.Error
JSON401 *externalRef0.Error
JSON403 *externalRef0.Error
JSON404 *externalRef0.Error
JSON500 *externalRef0.Error
}
func ParseUpdateAgentStatusResponse ¶
func ParseUpdateAgentStatusResponse(rsp *http.Response) (*UpdateAgentStatusResponse, error)
ParseUpdateAgentStatusResponse parses an HTTP response from a UpdateAgentStatusWithResponse call
func (UpdateAgentStatusResponse) Status ¶
func (r UpdateAgentStatusResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAgentStatusResponse) StatusCode ¶
func (r UpdateAgentStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSourceInventoryResponse ¶
type UpdateSourceInventoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *externalRef0.Source
JSON400 *externalRef0.Error
JSON401 *externalRef0.Error
JSON403 *externalRef0.Error
JSON404 *externalRef0.Error
JSON500 *externalRef0.Error
}
func ParseUpdateSourceInventoryResponse ¶
func ParseUpdateSourceInventoryResponse(rsp *http.Response) (*UpdateSourceInventoryResponse, error)
ParseUpdateSourceInventoryResponse parses an HTTP response from a UpdateSourceInventoryWithResponse call
func (UpdateSourceInventoryResponse) Status ¶
func (r UpdateSourceInventoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSourceInventoryResponse) StatusCode ¶
func (r UpdateSourceInventoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSourceResponse ¶ added in v0.15.0
type UpdateSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *externalRef0.Source
JSON400 *externalRef0.Error
JSON401 *externalRef0.Error
JSON403 *externalRef0.Error
JSON404 *externalRef0.Error
JSON500 *externalRef0.Error
}
func ParseUpdateSourceResponse ¶ added in v0.15.0
func ParseUpdateSourceResponse(rsp *http.Response) (*UpdateSourceResponse, error)
ParseUpdateSourceResponse parses an HTTP response from a UpdateSourceWithResponse call
func (UpdateSourceResponse) Status ¶ added in v0.15.0
func (r UpdateSourceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSourceResponse) StatusCode ¶ added in v0.15.0
func (r UpdateSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSourceSubsetResponse ¶ added in v0.15.0
type UpdateSourceSubsetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SourceSubset
JSON201 *SourceSubset
JSON400 *externalRef0.Error
JSON401 *externalRef0.Error
JSON403 *externalRef0.Error
JSON404 *externalRef0.Error
JSON500 *externalRef0.Error
}
func ParseUpdateSourceSubsetResponse ¶ added in v0.15.0
func ParseUpdateSourceSubsetResponse(rsp *http.Response) (*UpdateSourceSubsetResponse, error)
ParseUpdateSourceSubsetResponse parses an HTTP response from a UpdateSourceSubsetWithResponse call
func (UpdateSourceSubsetResponse) Status ¶ added in v0.15.0
func (r UpdateSourceSubsetResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSourceSubsetResponse) StatusCode ¶ added in v0.15.0
func (r UpdateSourceSubsetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode