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.8.0 DO NOT EDIT.
Index ¶
- func NewAgentHeartbeatRequest(server string, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody) (*http.Request, error)
- func NewAgentHeartbeatRequestWithBody(server string, agentId AgentIdPath, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAgentRequest(server string, body CreateAgentJSONRequestBody) (*http.Request, error)
- func NewCreateAgentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAgentRequest(server string, agentId AgentIdPath) (*http.Request, error)
- func NewListAgentsRequest(server string, params *ListAgentsParams) (*http.Request, error)
- type AgentHeartbeatResponse
- func (r AgentHeartbeatResponse) ContentType() string
- func (r AgentHeartbeatResponse) GetApplicationproblemJSON400() *Error
- func (r AgentHeartbeatResponse) GetApplicationproblemJSON404() *Error
- func (r AgentHeartbeatResponse) GetApplicationproblemJSONDefault() *Error
- func (r AgentHeartbeatResponse) GetBody() []byte
- func (r AgentHeartbeatResponse) GetJSON200() *Agent
- func (r AgentHeartbeatResponse) Status() string
- func (r AgentHeartbeatResponse) StatusCode() int
- type Client
- func (c *Client) AgentHeartbeat(ctx context.Context, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AgentHeartbeatWithBody(ctx context.Context, agentId AgentIdPath, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAgent(ctx context.Context, body CreateAgentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAgent(ctx context.Context, agentId AgentIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAgents(ctx context.Context, params *ListAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AgentHeartbeatWithBodyWithResponse(ctx context.Context, agentId AgentIdPath, contentType string, body io.Reader, ...) (*AgentHeartbeatResponse, error)
- func (c *ClientWithResponses) AgentHeartbeatWithResponse(ctx context.Context, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody, ...) (*AgentHeartbeatResponse, error)
- func (c *ClientWithResponses) CreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAgentResponse, error)
- func (c *ClientWithResponses) CreateAgentWithResponse(ctx context.Context, body CreateAgentJSONRequestBody, ...) (*CreateAgentResponse, error)
- func (c *ClientWithResponses) GetAgentWithResponse(ctx context.Context, agentId AgentIdPath, reqEditors ...RequestEditorFn) (*GetAgentResponse, error)
- func (c *ClientWithResponses) ListAgentsWithResponse(ctx context.Context, params *ListAgentsParams, reqEditors ...RequestEditorFn) (*ListAgentsResponse, error)
- type ClientWithResponsesInterface
- type CreateAgentResponse
- func (r CreateAgentResponse) ContentType() string
- func (r CreateAgentResponse) GetApplicationproblemJSON400() *Error
- func (r CreateAgentResponse) GetApplicationproblemJSON409() *Error
- func (r CreateAgentResponse) GetApplicationproblemJSONDefault() *Error
- func (r CreateAgentResponse) GetBody() []byte
- func (r CreateAgentResponse) GetJSON200() *Agent
- func (r CreateAgentResponse) GetJSON201() *Agent
- func (r CreateAgentResponse) Status() string
- func (r CreateAgentResponse) StatusCode() int
- type GetAgentResponse
- func (r GetAgentResponse) ContentType() string
- func (r GetAgentResponse) GetApplicationproblemJSON400() *Error
- func (r GetAgentResponse) GetApplicationproblemJSON404() *Error
- func (r GetAgentResponse) GetApplicationproblemJSONDefault() *Error
- func (r GetAgentResponse) GetBody() []byte
- func (r GetAgentResponse) GetJSON200() *Agent
- func (r GetAgentResponse) Status() string
- func (r GetAgentResponse) StatusCode() int
- type HttpRequestDoer
- type ListAgentsResponse
- func (r ListAgentsResponse) ContentType() string
- func (r ListAgentsResponse) GetApplicationproblemJSON400() *Error
- func (r ListAgentsResponse) GetApplicationproblemJSONDefault() *Error
- func (r ListAgentsResponse) GetBody() []byte
- func (r ListAgentsResponse) GetJSON200() *AgentList
- func (r ListAgentsResponse) Status() string
- func (r ListAgentsResponse) StatusCode() int
- type RequestEditorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentHeartbeatRequest ¶
func NewAgentHeartbeatRequest(server string, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody) (*http.Request, error)
NewAgentHeartbeatRequest calls the generic AgentHeartbeat builder with application/json body
func NewAgentHeartbeatRequestWithBody ¶
func NewAgentHeartbeatRequestWithBody(server string, agentId AgentIdPath, contentType string, body io.Reader) (*http.Request, error)
NewAgentHeartbeatRequestWithBody constructs an http.Request for the AgentHeartbeat method, with any body, and a specified content type
func NewCreateAgentRequest ¶
NewCreateAgentRequest calls the generic CreateAgent builder with application/json body
func NewCreateAgentRequestWithBody ¶
func NewCreateAgentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAgentRequestWithBody constructs an http.Request for the CreateAgent method, with any body, and a specified content type
func NewGetAgentRequest ¶
NewGetAgentRequest constructs an http.Request for the GetAgent method
Types ¶
type AgentHeartbeatResponse ¶
type AgentHeartbeatResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Agent
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *Error
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *Error
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *Error
}
func ParseAgentHeartbeatResponse ¶
func ParseAgentHeartbeatResponse(rsp *http.Response) (*AgentHeartbeatResponse, error)
ParseAgentHeartbeatResponse parses an HTTP response from a AgentHeartbeatWithResponse call
func (AgentHeartbeatResponse) ContentType ¶
func (r AgentHeartbeatResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AgentHeartbeatResponse) GetApplicationproblemJSON400 ¶
func (r AgentHeartbeatResponse) GetApplicationproblemJSON400() *Error
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (AgentHeartbeatResponse) GetApplicationproblemJSON404 ¶
func (r AgentHeartbeatResponse) GetApplicationproblemJSON404() *Error
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (AgentHeartbeatResponse) GetApplicationproblemJSONDefault ¶
func (r AgentHeartbeatResponse) GetApplicationproblemJSONDefault() *Error
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (AgentHeartbeatResponse) GetBody ¶
func (r AgentHeartbeatResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AgentHeartbeatResponse) GetJSON200 ¶
func (r AgentHeartbeatResponse) GetJSON200() *Agent
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AgentHeartbeatResponse) Status ¶
func (r AgentHeartbeatResponse) Status() string
Status returns HTTPResponse.Status
func (AgentHeartbeatResponse) StatusCode ¶
func (r AgentHeartbeatResponse) 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
}
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) AgentHeartbeat ¶
func (c *Client) AgentHeartbeat(ctx context.Context, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AgentHeartbeat Send agent heartbeat
Agents send periodic heartbeats to report health and consumer lag. Heartbeat timestamps are monotonic: stale timestamps are ignored.
Takes a body of the `application/json` content type.
Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
func (*Client) AgentHeartbeatWithBody ¶
func (c *Client) AgentHeartbeatWithBody(ctx context.Context, agentId AgentIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AgentHeartbeatWithBody Send agent heartbeat
Agents send periodic heartbeats to report health and consumer lag. Heartbeat timestamps are monotonic: stale timestamps are ignored.
Takes any type of body and a specified content type.
Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
func (*Client) CreateAgent ¶
func (c *Client) CreateAgent(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAgent Register an agent
Register a new agent or update an existing one. Registration is idempotent by name: - If name does not exist, a new agent entry is created (201) - If name exists, the entry is updated and heartbeat is reset (200)
Takes a body of the `application/json` content type.
Corresponds with POST /agents (the `CreateAgent` operationId).
func (*Client) CreateAgentWithBody ¶
func (c *Client) CreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAgentWithBody Register an agent
Register a new agent or update an existing one. Registration is idempotent by name: - If name does not exist, a new agent entry is created (201) - If name exists, the entry is updated and heartbeat is reset (200)
Takes any type of body and a specified content type.
Corresponds with POST /agents (the `CreateAgent` operationId).
func (*Client) GetAgent ¶
func (c *Client) GetAgent(ctx context.Context, agentId AgentIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAgent Get an agent
Get an agent by its unique ID.
Corresponds with GET /agents/{agentId} (the `GetAgent` operationId).
func (*Client) ListAgents ¶
func (c *Client) ListAgents(ctx context.Context, params *ListAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAgents List all agents
Returns a list of registered agents with optional filtering.
Corresponds with GET /agents (the `ListAgents` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListAgents List all agents
//
// Returns a list of registered agents with optional filtering.
//
// Corresponds with GET /agents (the `ListAgents` operationId).
ListAgents(ctx context.Context, params *ListAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAgentWithBody Register an agent
//
// Register a new agent or update an existing one.
// Registration is idempotent by name:
// - If name does not exist, a new agent entry is created (201)
// - If name exists, the entry is updated and heartbeat is reset (200)
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /agents (the `CreateAgent` operationId).
CreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAgent Register an agent
//
// Register a new agent or update an existing one.
// Registration is idempotent by name:
// - If name does not exist, a new agent entry is created (201)
// - If name exists, the entry is updated and heartbeat is reset (200)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /agents (the `CreateAgent` operationId).
CreateAgent(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAgent Get an agent
//
// Get an agent by its unique ID.
//
// Corresponds with GET /agents/{agentId} (the `GetAgent` operationId).
GetAgent(ctx context.Context, agentId AgentIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)
// AgentHeartbeatWithBody Send agent heartbeat
//
// Agents send periodic heartbeats to report health and consumer lag.
// Heartbeat timestamps are monotonic: stale timestamps are ignored.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
AgentHeartbeatWithBody(ctx context.Context, agentId AgentIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AgentHeartbeat Send agent heartbeat
//
// Agents send periodic heartbeats to report health and consumer lag.
// Heartbeat timestamps are monotonic: stale timestamps are ignored.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
AgentHeartbeat(ctx context.Context, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody, 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) AgentHeartbeatWithBodyWithResponse ¶
func (c *ClientWithResponses) AgentHeartbeatWithBodyWithResponse(ctx context.Context, agentId AgentIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentHeartbeatResponse, error)
AgentHeartbeatWithBodyWithResponse Send agent heartbeat
Agents send periodic heartbeats to report health and consumer lag. Heartbeat timestamps are monotonic: stale timestamps are ignored.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
func (*ClientWithResponses) AgentHeartbeatWithResponse ¶
func (c *ClientWithResponses) AgentHeartbeatWithResponse(ctx context.Context, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentHeartbeatResponse, error)
AgentHeartbeatWithResponse Send agent heartbeat
Agents send periodic heartbeats to report health and consumer lag. Heartbeat timestamps are monotonic: stale timestamps are ignored.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
func (*ClientWithResponses) CreateAgentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
CreateAgentWithBodyWithResponse Register an agent
Register a new agent or update an existing one. Registration is idempotent by name: - If name does not exist, a new agent entry is created (201) - If name exists, the entry is updated and heartbeat is reset (200)
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /agents (the `CreateAgent` operationId).
func (*ClientWithResponses) CreateAgentWithResponse ¶
func (c *ClientWithResponses) CreateAgentWithResponse(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
CreateAgentWithResponse Register an agent
Register a new agent or update an existing one. Registration is idempotent by name: - If name does not exist, a new agent entry is created (201) - If name exists, the entry is updated and heartbeat is reset (200)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /agents (the `CreateAgent` operationId).
func (*ClientWithResponses) GetAgentWithResponse ¶
func (c *ClientWithResponses) GetAgentWithResponse(ctx context.Context, agentId AgentIdPath, reqEditors ...RequestEditorFn) (*GetAgentResponse, error)
GetAgentWithResponse Get an agent
Get an agent by its unique ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /agents/{agentId} (the `GetAgent` operationId).
func (*ClientWithResponses) ListAgentsWithResponse ¶
func (c *ClientWithResponses) ListAgentsWithResponse(ctx context.Context, params *ListAgentsParams, reqEditors ...RequestEditorFn) (*ListAgentsResponse, error)
ListAgentsWithResponse List all agents
Returns a list of registered agents with optional filtering.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /agents (the `ListAgents` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAgentsWithResponse List all agents
//
// Returns a list of registered agents with optional filtering.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /agents (the `ListAgents` operationId).
ListAgentsWithResponse(ctx context.Context, params *ListAgentsParams, reqEditors ...RequestEditorFn) (*ListAgentsResponse, error)
// CreateAgentWithBodyWithResponse Register an agent
//
// Register a new agent or update an existing one.
// Registration is idempotent by name:
// - If name does not exist, a new agent entry is created (201)
// - If name exists, the entry is updated and heartbeat is reset (200)
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /agents (the `CreateAgent` operationId).
CreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
// CreateAgentWithResponse Register an agent
//
// Register a new agent or update an existing one.
// Registration is idempotent by name:
// - If name does not exist, a new agent entry is created (201)
// - If name exists, the entry is updated and heartbeat is reset (200)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /agents (the `CreateAgent` operationId).
CreateAgentWithResponse(ctx context.Context, body CreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentResponse, error)
// GetAgentWithResponse Get an agent
//
// Get an agent by its unique ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /agents/{agentId} (the `GetAgent` operationId).
GetAgentWithResponse(ctx context.Context, agentId AgentIdPath, reqEditors ...RequestEditorFn) (*GetAgentResponse, error)
// AgentHeartbeatWithBodyWithResponse Send agent heartbeat
//
// Agents send periodic heartbeats to report health and consumer lag.
// Heartbeat timestamps are monotonic: stale timestamps are ignored.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
AgentHeartbeatWithBodyWithResponse(ctx context.Context, agentId AgentIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentHeartbeatResponse, error)
// AgentHeartbeatWithResponse Send agent heartbeat
//
// Agents send periodic heartbeats to report health and consumer lag.
// Heartbeat timestamps are monotonic: stale timestamps are ignored.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /agents/{agentId}/heartbeat (the `AgentHeartbeat` operationId).
AgentHeartbeatWithResponse(ctx context.Context, agentId AgentIdPath, body AgentHeartbeatJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentHeartbeatResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateAgentResponse ¶
type CreateAgentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Agent
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Agent
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *Error
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Error
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *Error
}
func ParseCreateAgentResponse ¶
func ParseCreateAgentResponse(rsp *http.Response) (*CreateAgentResponse, error)
ParseCreateAgentResponse parses an HTTP response from a CreateAgentWithResponse call
func (CreateAgentResponse) ContentType ¶
func (r CreateAgentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAgentResponse) GetApplicationproblemJSON400 ¶
func (r CreateAgentResponse) GetApplicationproblemJSON400() *Error
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateAgentResponse) GetApplicationproblemJSON409 ¶
func (r CreateAgentResponse) GetApplicationproblemJSON409() *Error
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (CreateAgentResponse) GetApplicationproblemJSONDefault ¶
func (r CreateAgentResponse) GetApplicationproblemJSONDefault() *Error
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (CreateAgentResponse) GetBody ¶
func (r CreateAgentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateAgentResponse) GetJSON200 ¶
func (r CreateAgentResponse) GetJSON200() *Agent
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateAgentResponse) GetJSON201 ¶
func (r CreateAgentResponse) GetJSON201() *Agent
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateAgentResponse) Status ¶
func (r CreateAgentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAgentResponse) StatusCode ¶
func (r CreateAgentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAgentResponse ¶
type GetAgentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Agent
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *Error
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *Error
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *Error
}
func ParseGetAgentResponse ¶
func ParseGetAgentResponse(rsp *http.Response) (*GetAgentResponse, error)
ParseGetAgentResponse parses an HTTP response from a GetAgentWithResponse call
func (GetAgentResponse) ContentType ¶
func (r GetAgentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAgentResponse) GetApplicationproblemJSON400 ¶
func (r GetAgentResponse) GetApplicationproblemJSON400() *Error
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetAgentResponse) GetApplicationproblemJSON404 ¶
func (r GetAgentResponse) GetApplicationproblemJSON404() *Error
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetAgentResponse) GetApplicationproblemJSONDefault ¶
func (r GetAgentResponse) GetApplicationproblemJSONDefault() *Error
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetAgentResponse) GetBody ¶
func (r GetAgentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAgentResponse) GetJSON200 ¶
func (r GetAgentResponse) GetJSON200() *Agent
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAgentResponse) Status ¶
func (r GetAgentResponse) Status() string
Status returns HTTPResponse.Status
func (GetAgentResponse) StatusCode ¶
func (r GetAgentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListAgentsResponse ¶
type ListAgentsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentList
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *Error
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *Error
}
func ParseListAgentsResponse ¶
func ParseListAgentsResponse(rsp *http.Response) (*ListAgentsResponse, error)
ParseListAgentsResponse parses an HTTP response from a ListAgentsWithResponse call
func (ListAgentsResponse) ContentType ¶
func (r ListAgentsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAgentsResponse) GetApplicationproblemJSON400 ¶
func (r ListAgentsResponse) GetApplicationproblemJSON400() *Error
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListAgentsResponse) GetApplicationproblemJSONDefault ¶
func (r ListAgentsResponse) GetApplicationproblemJSONDefault() *Error
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListAgentsResponse) GetBody ¶
func (r ListAgentsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAgentsResponse) GetJSON200 ¶
func (r ListAgentsResponse) GetJSON200() *AgentList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAgentsResponse) Status ¶
func (r ListAgentsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAgentsResponse) StatusCode ¶
func (r ListAgentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode