fleetapi

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Code generated by github.com/deepmap/oapi-codegen version v1.14.0 DO NOT EDIT.

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

Code generated by github.com/deepmap/oapi-codegen version v1.14.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BasicAuthScopes = "basicAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewAgentPolicyInfoRequest

func NewAgentPolicyInfoRequest(server string, agentPolicyId string) (*http.Request, error)

NewAgentPolicyInfoRequest generates requests for AgentPolicyInfo

func NewCreateAgentPolicyRequest

func NewCreateAgentPolicyRequest(server string, body CreateAgentPolicyJSONRequestBody) (*http.Request, error)

NewCreateAgentPolicyRequest calls the generic CreateAgentPolicy builder with application/json body

func NewCreateAgentPolicyRequestWithBody

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

NewCreateAgentPolicyRequestWithBody generates requests for CreateAgentPolicy with any type of body

func NewDeleteAgentPolicyRequest

func NewDeleteAgentPolicyRequest(server string, body DeleteAgentPolicyJSONRequestBody) (*http.Request, error)

NewDeleteAgentPolicyRequest calls the generic DeleteAgentPolicy builder with application/json body

func NewDeleteAgentPolicyRequestWithBody

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

NewDeleteAgentPolicyRequestWithBody generates requests for DeleteAgentPolicy with any type of body

func NewDeleteFleetServerHostsRequest

func NewDeleteFleetServerHostsRequest(server string, itemId string) (*http.Request, error)

NewDeleteFleetServerHostsRequest generates requests for DeleteFleetServerHosts

func NewDeleteOutputRequest

func NewDeleteOutputRequest(server string, outputId string) (*http.Request, error)

NewDeleteOutputRequest generates requests for DeleteOutput

func NewGetEnrollmentApiKeysRequest

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

NewGetEnrollmentApiKeysRequest generates requests for GetEnrollmentApiKeys

func NewGetOneFleetServerHostsRequest

func NewGetOneFleetServerHostsRequest(server string, itemId string) (*http.Request, error)

NewGetOneFleetServerHostsRequest generates requests for GetOneFleetServerHosts

func NewGetOutputRequest

func NewGetOutputRequest(server string, outputId string) (*http.Request, error)

NewGetOutputRequest generates requests for GetOutput

func NewPostFleetServerHostsRequest

func NewPostFleetServerHostsRequest(server string, body PostFleetServerHostsJSONRequestBody) (*http.Request, error)

NewPostFleetServerHostsRequest calls the generic PostFleetServerHosts builder with application/json body

func NewPostFleetServerHostsRequestWithBody

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

NewPostFleetServerHostsRequestWithBody generates requests for PostFleetServerHosts with any type of body

func NewPostOutputsRequest

func NewPostOutputsRequest(server string, body PostOutputsJSONRequestBody) (*http.Request, error)

NewPostOutputsRequest calls the generic PostOutputs builder with application/json body

func NewPostOutputsRequestWithBody

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

NewPostOutputsRequestWithBody generates requests for PostOutputs with any type of body

func NewUpdateAgentPolicyRequest

func NewUpdateAgentPolicyRequest(server string, agentPolicyId string, body UpdateAgentPolicyJSONRequestBody) (*http.Request, error)

NewUpdateAgentPolicyRequest calls the generic UpdateAgentPolicy builder with application/json body

func NewUpdateAgentPolicyRequestWithBody

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

NewUpdateAgentPolicyRequestWithBody generates requests for UpdateAgentPolicy with any type of body

func NewUpdateFleetServerHostsRequest

func NewUpdateFleetServerHostsRequest(server string, itemId string, body UpdateFleetServerHostsJSONRequestBody) (*http.Request, error)

NewUpdateFleetServerHostsRequest calls the generic UpdateFleetServerHosts builder with application/json body

func NewUpdateFleetServerHostsRequestWithBody

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

NewUpdateFleetServerHostsRequestWithBody generates requests for UpdateFleetServerHosts with any type of body

func NewUpdateOutputRequest

func NewUpdateOutputRequest(server string, outputId string, body UpdateOutputJSONRequestBody) (*http.Request, error)

NewUpdateOutputRequest calls the generic UpdateOutput builder with application/json body

func NewUpdateOutputRequestWithBody

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

NewUpdateOutputRequestWithBody generates requests for UpdateOutput with any type of body

Types

type AgentPolicy

type AgentPolicy struct {
	AgentFeatures *[]struct {
		Enabled bool   `json:"enabled"`
		Name    string `json:"name"`
	} `json:"agent_features,omitempty"`
	Agents             *float32                        `json:"agents,omitempty"`
	DataOutputId       *string                         `json:"data_output_id"`
	Description        *string                         `json:"description,omitempty"`
	DownloadSourceId   *string                         `json:"download_source_id"`
	FleetServerHostId  *string                         `json:"fleet_server_host_id"`
	Id                 string                          `json:"id"`
	InactivityTimeout  *float32                        `json:"inactivity_timeout,omitempty"`
	MonitoringEnabled  *[]AgentPolicyMonitoringEnabled `json:"monitoring_enabled,omitempty"`
	MonitoringOutputId *string                         `json:"monitoring_output_id"`
	Name               string                          `json:"name"`
	Namespace          string                          `json:"namespace"`

	// PackagePolicies This field is present only when retrieving a single agent policy, or when retrieving a list of agent policy with the ?full=true parameter
	PackagePolicies *[]PackagePolicy `json:"package_policies,omitempty"`
	Revision        *float32         `json:"revision,omitempty"`
	UnenrollTimeout *float32         `json:"unenroll_timeout,omitempty"`
	UpdatedBy       *string          `json:"updated_by,omitempty"`
	UpdatedOn       *time.Time       `json:"updated_on,omitempty"`
}

AgentPolicy defines model for agent_policy.

type AgentPolicyCreateRequest

type AgentPolicyCreateRequest struct {
	AgentFeatures *[]struct {
		Enabled bool   `json:"enabled"`
		Name    string `json:"name"`
	} `json:"agent_features,omitempty"`
	DataOutputId       *string                                      `json:"data_output_id"`
	Description        *string                                      `json:"description,omitempty"`
	DownloadSourceId   *string                                      `json:"download_source_id"`
	FleetServerHostId  *string                                      `json:"fleet_server_host_id"`
	Id                 *string                                      `json:"id,omitempty"`
	InactivityTimeout  *float32                                     `json:"inactivity_timeout,omitempty"`
	MonitoringEnabled  *[]AgentPolicyCreateRequestMonitoringEnabled `json:"monitoring_enabled,omitempty"`
	MonitoringOutputId *string                                      `json:"monitoring_output_id"`
	Name               string                                       `json:"name"`
	Namespace          string                                       `json:"namespace"`
	UnenrollTimeout    *float32                                     `json:"unenroll_timeout,omitempty"`
}

AgentPolicyCreateRequest defines model for agent_policy_create_request.

type AgentPolicyCreateRequestMonitoringEnabled

type AgentPolicyCreateRequestMonitoringEnabled string

AgentPolicyCreateRequestMonitoringEnabled defines model for AgentPolicyCreateRequest.MonitoringEnabled.

const (
	AgentPolicyCreateRequestMonitoringEnabledLogs    AgentPolicyCreateRequestMonitoringEnabled = "logs"
	AgentPolicyCreateRequestMonitoringEnabledMetrics AgentPolicyCreateRequestMonitoringEnabled = "metrics"
)

Defines values for AgentPolicyCreateRequestMonitoringEnabled.

type AgentPolicyInfoResponse

type AgentPolicyInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item AgentPolicy `json:"item"`
	}
}

func ParseAgentPolicyInfoResponse

func ParseAgentPolicyInfoResponse(rsp *http.Response) (*AgentPolicyInfoResponse, error)

ParseAgentPolicyInfoResponse parses an HTTP response from a AgentPolicyInfoWithResponse call

func (AgentPolicyInfoResponse) Status

func (r AgentPolicyInfoResponse) Status() string

Status returns HTTPResponse.Status

func (AgentPolicyInfoResponse) StatusCode

func (r AgentPolicyInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AgentPolicyMonitoringEnabled

type AgentPolicyMonitoringEnabled string

AgentPolicyMonitoringEnabled defines model for AgentPolicy.MonitoringEnabled.

const (
	AgentPolicyMonitoringEnabledLogs    AgentPolicyMonitoringEnabled = "logs"
	AgentPolicyMonitoringEnabledMetrics AgentPolicyMonitoringEnabled = "metrics"
)

Defines values for AgentPolicyMonitoringEnabled.

type AgentPolicyUpdateRequest

type AgentPolicyUpdateRequest struct {
	AgentFeatures *[]struct {
		Enabled bool   `json:"enabled"`
		Name    string `json:"name"`
	} `json:"agent_features,omitempty"`
	DataOutputId       *string                                      `json:"data_output_id"`
	Description        *string                                      `json:"description,omitempty"`
	DownloadSourceId   *string                                      `json:"download_source_id"`
	FleetServerHostId  *string                                      `json:"fleet_server_host_id"`
	InactivityTimeout  *float32                                     `json:"inactivity_timeout,omitempty"`
	MonitoringEnabled  *[]AgentPolicyUpdateRequestMonitoringEnabled `json:"monitoring_enabled,omitempty"`
	MonitoringOutputId *string                                      `json:"monitoring_output_id"`
	Name               string                                       `json:"name"`
	Namespace          string                                       `json:"namespace"`
	UnenrollTimeout    *float32                                     `json:"unenroll_timeout,omitempty"`
}

AgentPolicyUpdateRequest defines model for agent_policy_update_request.

type AgentPolicyUpdateRequestMonitoringEnabled

type AgentPolicyUpdateRequestMonitoringEnabled string

AgentPolicyUpdateRequestMonitoringEnabled defines model for AgentPolicyUpdateRequest.MonitoringEnabled.

Defines values for AgentPolicyUpdateRequestMonitoringEnabled.

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) AgentPolicyInfo

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

func (*Client) CreateAgentPolicy

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

func (*Client) CreateAgentPolicyWithBody

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

func (*Client) DeleteAgentPolicy

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

func (*Client) DeleteAgentPolicyWithBody

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

func (*Client) DeleteFleetServerHosts

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

func (*Client) DeleteOutput

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

func (*Client) GetEnrollmentApiKeys

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

func (*Client) GetOneFleetServerHosts

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

func (*Client) GetOutput

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

func (*Client) PostFleetServerHosts

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

func (*Client) PostFleetServerHostsWithBody

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

func (*Client) PostOutputs

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

func (*Client) PostOutputsWithBody

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

func (*Client) UpdateAgentPolicy

func (c *Client) UpdateAgentPolicy(ctx context.Context, agentPolicyId string, body UpdateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAgentPolicyWithBody

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

func (*Client) UpdateFleetServerHosts

func (c *Client) UpdateFleetServerHosts(ctx context.Context, itemId string, body UpdateFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFleetServerHostsWithBody

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

func (*Client) UpdateOutput

func (c *Client) UpdateOutput(ctx context.Context, outputId string, body UpdateOutputJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateOutputWithBody

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

type ClientInterface

type ClientInterface interface {
	// CreateAgentPolicyWithBody request with any body
	CreateAgentPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAgentPolicy(ctx context.Context, body CreateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	DeleteAgentPolicy(ctx context.Context, body DeleteAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AgentPolicyInfo request
	AgentPolicyInfo(ctx context.Context, agentPolicyId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateAgentPolicy(ctx context.Context, agentPolicyId string, body UpdateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PostFleetServerHosts(ctx context.Context, body PostFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFleetServerHosts request
	DeleteFleetServerHosts(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneFleetServerHosts request
	GetOneFleetServerHosts(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateFleetServerHosts(ctx context.Context, itemId string, body UpdateFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostOutputs(ctx context.Context, body PostOutputsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteOutput request
	DeleteOutput(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOutput request
	GetOutput(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateOutput(ctx context.Context, outputId string, body UpdateOutputJSONRequestBody, 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 (*ClientWithResponses) AgentPolicyInfoWithResponse

func (c *ClientWithResponses) AgentPolicyInfoWithResponse(ctx context.Context, agentPolicyId string, reqEditors ...RequestEditorFn) (*AgentPolicyInfoResponse, error)

AgentPolicyInfoWithResponse request returning *AgentPolicyInfoResponse

func (*ClientWithResponses) CreateAgentPolicyWithBodyWithResponse

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

CreateAgentPolicyWithBodyWithResponse request with arbitrary body returning *CreateAgentPolicyResponse

func (*ClientWithResponses) CreateAgentPolicyWithResponse

func (c *ClientWithResponses) CreateAgentPolicyWithResponse(ctx context.Context, body CreateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentPolicyResponse, error)

func (*ClientWithResponses) DeleteAgentPolicyWithBodyWithResponse

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

DeleteAgentPolicyWithBodyWithResponse request with arbitrary body returning *DeleteAgentPolicyResponse

func (*ClientWithResponses) DeleteAgentPolicyWithResponse

func (c *ClientWithResponses) DeleteAgentPolicyWithResponse(ctx context.Context, body DeleteAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteAgentPolicyResponse, error)

func (*ClientWithResponses) DeleteFleetServerHostsWithResponse

func (c *ClientWithResponses) DeleteFleetServerHostsWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*DeleteFleetServerHostsResponse, error)

DeleteFleetServerHostsWithResponse request returning *DeleteFleetServerHostsResponse

func (*ClientWithResponses) DeleteOutputWithResponse

func (c *ClientWithResponses) DeleteOutputWithResponse(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*DeleteOutputResponse, error)

DeleteOutputWithResponse request returning *DeleteOutputResponse

func (*ClientWithResponses) GetEnrollmentApiKeysWithResponse

func (c *ClientWithResponses) GetEnrollmentApiKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnrollmentApiKeysResponse, error)

GetEnrollmentApiKeysWithResponse request returning *GetEnrollmentApiKeysResponse

func (*ClientWithResponses) GetOneFleetServerHostsWithResponse

func (c *ClientWithResponses) GetOneFleetServerHostsWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*GetOneFleetServerHostsResponse, error)

GetOneFleetServerHostsWithResponse request returning *GetOneFleetServerHostsResponse

func (*ClientWithResponses) GetOutputWithResponse

func (c *ClientWithResponses) GetOutputWithResponse(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*GetOutputResponse, error)

GetOutputWithResponse request returning *GetOutputResponse

func (*ClientWithResponses) PostFleetServerHostsWithBodyWithResponse

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

PostFleetServerHostsWithBodyWithResponse request with arbitrary body returning *PostFleetServerHostsResponse

func (*ClientWithResponses) PostFleetServerHostsWithResponse

func (c *ClientWithResponses) PostFleetServerHostsWithResponse(ctx context.Context, body PostFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFleetServerHostsResponse, error)

func (*ClientWithResponses) PostOutputsWithBodyWithResponse

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

PostOutputsWithBodyWithResponse request with arbitrary body returning *PostOutputsResponse

func (*ClientWithResponses) PostOutputsWithResponse

func (c *ClientWithResponses) PostOutputsWithResponse(ctx context.Context, body PostOutputsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOutputsResponse, error)

func (*ClientWithResponses) UpdateAgentPolicyWithBodyWithResponse

func (c *ClientWithResponses) UpdateAgentPolicyWithBodyWithResponse(ctx context.Context, agentPolicyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAgentPolicyResponse, error)

UpdateAgentPolicyWithBodyWithResponse request with arbitrary body returning *UpdateAgentPolicyResponse

func (*ClientWithResponses) UpdateAgentPolicyWithResponse

func (c *ClientWithResponses) UpdateAgentPolicyWithResponse(ctx context.Context, agentPolicyId string, body UpdateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAgentPolicyResponse, error)

func (*ClientWithResponses) UpdateFleetServerHostsWithBodyWithResponse

func (c *ClientWithResponses) UpdateFleetServerHostsWithBodyWithResponse(ctx context.Context, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFleetServerHostsResponse, error)

UpdateFleetServerHostsWithBodyWithResponse request with arbitrary body returning *UpdateFleetServerHostsResponse

func (*ClientWithResponses) UpdateFleetServerHostsWithResponse

func (c *ClientWithResponses) UpdateFleetServerHostsWithResponse(ctx context.Context, itemId string, body UpdateFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFleetServerHostsResponse, error)

func (*ClientWithResponses) UpdateOutputWithBodyWithResponse

func (c *ClientWithResponses) UpdateOutputWithBodyWithResponse(ctx context.Context, outputId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOutputResponse, error)

UpdateOutputWithBodyWithResponse request with arbitrary body returning *UpdateOutputResponse

func (*ClientWithResponses) UpdateOutputWithResponse

func (c *ClientWithResponses) UpdateOutputWithResponse(ctx context.Context, outputId string, body UpdateOutputJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOutputResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// CreateAgentPolicyWithBodyWithResponse request with any body
	CreateAgentPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAgentPolicyResponse, error)

	CreateAgentPolicyWithResponse(ctx context.Context, body CreateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAgentPolicyResponse, error)

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

	DeleteAgentPolicyWithResponse(ctx context.Context, body DeleteAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteAgentPolicyResponse, error)

	// AgentPolicyInfoWithResponse request
	AgentPolicyInfoWithResponse(ctx context.Context, agentPolicyId string, reqEditors ...RequestEditorFn) (*AgentPolicyInfoResponse, error)

	// UpdateAgentPolicyWithBodyWithResponse request with any body
	UpdateAgentPolicyWithBodyWithResponse(ctx context.Context, agentPolicyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAgentPolicyResponse, error)

	UpdateAgentPolicyWithResponse(ctx context.Context, agentPolicyId string, body UpdateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAgentPolicyResponse, error)

	// GetEnrollmentApiKeysWithResponse request
	GetEnrollmentApiKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnrollmentApiKeysResponse, error)

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

	PostFleetServerHostsWithResponse(ctx context.Context, body PostFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFleetServerHostsResponse, error)

	// DeleteFleetServerHostsWithResponse request
	DeleteFleetServerHostsWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*DeleteFleetServerHostsResponse, error)

	// GetOneFleetServerHostsWithResponse request
	GetOneFleetServerHostsWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*GetOneFleetServerHostsResponse, error)

	// UpdateFleetServerHostsWithBodyWithResponse request with any body
	UpdateFleetServerHostsWithBodyWithResponse(ctx context.Context, itemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFleetServerHostsResponse, error)

	UpdateFleetServerHostsWithResponse(ctx context.Context, itemId string, body UpdateFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFleetServerHostsResponse, error)

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

	PostOutputsWithResponse(ctx context.Context, body PostOutputsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOutputsResponse, error)

	// DeleteOutputWithResponse request
	DeleteOutputWithResponse(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*DeleteOutputResponse, error)

	// GetOutputWithResponse request
	GetOutputWithResponse(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*GetOutputResponse, error)

	// UpdateOutputWithBodyWithResponse request with any body
	UpdateOutputWithBodyWithResponse(ctx context.Context, outputId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOutputResponse, error)

	UpdateOutputWithResponse(ctx context.Context, outputId string, body UpdateOutputJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOutputResponse, error)
}

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

type CreateAgentPolicyJSONRequestBody

type CreateAgentPolicyJSONRequestBody = AgentPolicyCreateRequest

CreateAgentPolicyJSONRequestBody defines body for CreateAgentPolicy for application/json ContentType.

type CreateAgentPolicyResponse

type CreateAgentPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item *AgentPolicy `json:"item,omitempty"`
	}
}

func ParseCreateAgentPolicyResponse

func ParseCreateAgentPolicyResponse(rsp *http.Response) (*CreateAgentPolicyResponse, error)

ParseCreateAgentPolicyResponse parses an HTTP response from a CreateAgentPolicyWithResponse call

func (CreateAgentPolicyResponse) Status

func (r CreateAgentPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAgentPolicyResponse) StatusCode

func (r CreateAgentPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAgentPolicyJSONBody

type DeleteAgentPolicyJSONBody struct {
	AgentPolicyId string `json:"agentPolicyId"`
}

DeleteAgentPolicyJSONBody defines parameters for DeleteAgentPolicy.

type DeleteAgentPolicyJSONRequestBody

type DeleteAgentPolicyJSONRequestBody DeleteAgentPolicyJSONBody

DeleteAgentPolicyJSONRequestBody defines body for DeleteAgentPolicy for application/json ContentType.

type DeleteAgentPolicyResponse

type DeleteAgentPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id      string `json:"id"`
		Success bool   `json:"success"`
	}
}

func ParseDeleteAgentPolicyResponse

func ParseDeleteAgentPolicyResponse(rsp *http.Response) (*DeleteAgentPolicyResponse, error)

ParseDeleteAgentPolicyResponse parses an HTTP response from a DeleteAgentPolicyWithResponse call

func (DeleteAgentPolicyResponse) Status

func (r DeleteAgentPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteAgentPolicyResponse) StatusCode

func (r DeleteAgentPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteFleetServerHostsResponse

type DeleteFleetServerHostsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id string `json:"id"`
	}
}

func ParseDeleteFleetServerHostsResponse

func ParseDeleteFleetServerHostsResponse(rsp *http.Response) (*DeleteFleetServerHostsResponse, error)

ParseDeleteFleetServerHostsResponse parses an HTTP response from a DeleteFleetServerHostsWithResponse call

func (DeleteFleetServerHostsResponse) Status

Status returns HTTPResponse.Status

func (DeleteFleetServerHostsResponse) StatusCode

func (r DeleteFleetServerHostsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteOutputResponse

type DeleteOutputResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id string `json:"id"`
	}
}

func ParseDeleteOutputResponse

func ParseDeleteOutputResponse(rsp *http.Response) (*DeleteOutputResponse, error)

ParseDeleteOutputResponse parses an HTTP response from a DeleteOutputWithResponse call

func (DeleteOutputResponse) Status

func (r DeleteOutputResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteOutputResponse) StatusCode

func (r DeleteOutputResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnrollmentApiKey

type EnrollmentApiKey struct {
	Active    bool    `json:"active"`
	ApiKey    string  `json:"api_key"`
	ApiKeyId  string  `json:"api_key_id"`
	CreatedAt string  `json:"created_at"`
	Id        string  `json:"id"`
	Name      *string `json:"name,omitempty"`
	PolicyId  *string `json:"policy_id,omitempty"`
}

EnrollmentApiKey defines model for enrollment_api_key.

type FleetServerHost

type FleetServerHost struct {
	HostUrls        []string `json:"host_urls"`
	Id              string   `json:"id"`
	IsDefault       bool     `json:"is_default"`
	IsPreconfigured bool     `json:"is_preconfigured"`
	Name            *string  `json:"name,omitempty"`
}

FleetServerHost defines model for fleet_server_host.

type GetEnrollmentApiKeysResponse

type GetEnrollmentApiKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items []EnrollmentApiKey `json:"items"`
		// Deprecated:
		List    *[]EnrollmentApiKey `json:"list,omitempty"`
		Page    float32             `json:"page"`
		PerPage float32             `json:"perPage"`
		Total   float32             `json:"total"`
	}
}

func ParseGetEnrollmentApiKeysResponse

func ParseGetEnrollmentApiKeysResponse(rsp *http.Response) (*GetEnrollmentApiKeysResponse, error)

ParseGetEnrollmentApiKeysResponse parses an HTTP response from a GetEnrollmentApiKeysWithResponse call

func (GetEnrollmentApiKeysResponse) Status

Status returns HTTPResponse.Status

func (GetEnrollmentApiKeysResponse) StatusCode

func (r GetEnrollmentApiKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOneFleetServerHostsResponse

type GetOneFleetServerHostsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item FleetServerHost `json:"item"`
	}
}

func ParseGetOneFleetServerHostsResponse

func ParseGetOneFleetServerHostsResponse(rsp *http.Response) (*GetOneFleetServerHostsResponse, error)

ParseGetOneFleetServerHostsResponse parses an HTTP response from a GetOneFleetServerHostsWithResponse call

func (GetOneFleetServerHostsResponse) Status

Status returns HTTPResponse.Status

func (GetOneFleetServerHostsResponse) StatusCode

func (r GetOneFleetServerHostsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOutputResponse

type GetOutputResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item Output `json:"item"`
	}
}

func ParseGetOutputResponse

func ParseGetOutputResponse(rsp *http.Response) (*GetOutputResponse, error)

ParseGetOutputResponse parses an HTTP response from a GetOutputWithResponse call

func (GetOutputResponse) Status

func (r GetOutputResponse) Status() string

Status returns HTTPResponse.Status

func (GetOutputResponse) StatusCode

func (r GetOutputResponse) 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 NewPackagePolicy

type NewPackagePolicy struct {
	Description *string `json:"description,omitempty"`
	Enabled     *bool   `json:"enabled,omitempty"`
	Inputs      []struct {
		Config     *map[string]interface{} `json:"config,omitempty"`
		Enabled    bool                    `json:"enabled"`
		Processors *[]string               `json:"processors,omitempty"`
		Streams    *[]interface{}          `json:"streams,omitempty"`
		Type       string                  `json:"type"`
		Vars       *map[string]interface{} `json:"vars,omitempty"`
	} `json:"inputs"`
	Name      string  `json:"name"`
	Namespace *string `json:"namespace,omitempty"`
	// Deprecated:
	OutputId *string `json:"output_id,omitempty"`
	Package  *struct {
		Name    string  `json:"name"`
		Title   *string `json:"title,omitempty"`
		Version string  `json:"version"`
	} `json:"package,omitempty"`
	PolicyId *string `json:"policy_id,omitempty"`
}

NewPackagePolicy defines model for new_package_policy.

type Output

type Output struct {
	CaSha256             *string                 `json:"ca_sha256,omitempty"`
	CaTrustedFingerprint *string                 `json:"ca_trusted_fingerprint,omitempty"`
	Config               *map[string]interface{} `json:"config,omitempty"`
	ConfigYaml           *string                 `json:"config_yaml,omitempty"`
	Hosts                *[]string               `json:"hosts,omitempty"`
	Id                   string                  `json:"id"`
	IsDefault            bool                    `json:"is_default"`
	IsDefaultMonitoring  *bool                   `json:"is_default_monitoring,omitempty"`
	Name                 string                  `json:"name"`
	ProxyId              *string                 `json:"proxy_id,omitempty"`
	Shipper              *struct {
		CompressionLevel            *float32 `json:"compression_level,omitempty"`
		DiskQueueCompressionEnabled *bool    `json:"disk_queue_compression_enabled,omitempty"`
		DiskQueueEnabled            *bool    `json:"disk_queue_enabled,omitempty"`
		DiskQueueEncryptionEnabled  *bool    `json:"disk_queue_encryption_enabled,omitempty"`
		DiskQueueMaxSize            *float32 `json:"disk_queue_max_size,omitempty"`
		DiskQueuePath               *string  `json:"disk_queue_path,omitempty"`
		Loadbalance                 *bool    `json:"loadbalance,omitempty"`
	} `json:"shipper,omitempty"`
	Ssl *struct {
		Certificate            *string   `json:"certificate,omitempty"`
		CertificateAuthorities *[]string `json:"certificate_authorities,omitempty"`
		Key                    *string   `json:"key,omitempty"`
	} `json:"ssl,omitempty"`
	Type OutputType `json:"type"`
}

Output defines model for output.

type OutputType

type OutputType string

OutputType defines model for Output.Type.

const (
	OutputTypeElasticsearch OutputType = "elasticsearch"
	OutputTypeLogstash      OutputType = "logstash"
)

Defines values for OutputType.

type PackagePolicy

type PackagePolicy struct {
	Description *string `json:"description,omitempty"`
	Enabled     *bool   `json:"enabled,omitempty"`
	Id          string  `json:"id"`
	Inputs      []struct {
		Config     *map[string]interface{} `json:"config,omitempty"`
		Enabled    bool                    `json:"enabled"`
		Processors *[]string               `json:"processors,omitempty"`
		Streams    *[]interface{}          `json:"streams,omitempty"`
		Type       string                  `json:"type"`
		Vars       *map[string]interface{} `json:"vars,omitempty"`
	} `json:"inputs"`
	Name      string  `json:"name"`
	Namespace *string `json:"namespace,omitempty"`
	// Deprecated:
	OutputId *string `json:"output_id,omitempty"`
	Package  *struct {
		Name    string  `json:"name"`
		Title   *string `json:"title,omitempty"`
		Version string  `json:"version"`
	} `json:"package,omitempty"`
	PolicyId *string `json:"policy_id,omitempty"`
	Revision float32 `json:"revision"`
}

PackagePolicy defines model for package_policy.

type PostFleetServerHostsJSONBody

type PostFleetServerHostsJSONBody struct {
	HostUrls  []string `json:"host_urls"`
	Id        *string  `json:"id,omitempty"`
	IsDefault *bool    `json:"is_default,omitempty"`
	Name      string   `json:"name"`
}

PostFleetServerHostsJSONBody defines parameters for PostFleetServerHosts.

type PostFleetServerHostsJSONRequestBody

type PostFleetServerHostsJSONRequestBody PostFleetServerHostsJSONBody

PostFleetServerHostsJSONRequestBody defines body for PostFleetServerHosts for application/json ContentType.

type PostFleetServerHostsResponse

type PostFleetServerHostsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item *FleetServerHost `json:"item,omitempty"`
	}
}

func ParsePostFleetServerHostsResponse

func ParsePostFleetServerHostsResponse(rsp *http.Response) (*PostFleetServerHostsResponse, error)

ParsePostFleetServerHostsResponse parses an HTTP response from a PostFleetServerHostsWithResponse call

func (PostFleetServerHostsResponse) Status

Status returns HTTPResponse.Status

func (PostFleetServerHostsResponse) StatusCode

func (r PostFleetServerHostsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostOutputsJSONBody

type PostOutputsJSONBody struct {
	CaSha256            *string                 `json:"ca_sha256,omitempty"`
	ConfigYaml          *string                 `json:"config_yaml,omitempty"`
	Hosts               *[]string               `json:"hosts,omitempty"`
	Id                  *string                 `json:"id,omitempty"`
	IsDefault           *bool                   `json:"is_default,omitempty"`
	IsDefaultMonitoring *bool                   `json:"is_default_monitoring,omitempty"`
	Name                string                  `json:"name"`
	Type                PostOutputsJSONBodyType `json:"type"`
}

PostOutputsJSONBody defines parameters for PostOutputs.

type PostOutputsJSONBodyType

type PostOutputsJSONBodyType string

PostOutputsJSONBodyType defines parameters for PostOutputs.

const (
	PostOutputsJSONBodyTypeElasticsearch PostOutputsJSONBodyType = "elasticsearch"
)

Defines values for PostOutputsJSONBodyType.

type PostOutputsJSONRequestBody

type PostOutputsJSONRequestBody PostOutputsJSONBody

PostOutputsJSONRequestBody defines body for PostOutputs for application/json ContentType.

type PostOutputsResponse

type PostOutputsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item *Output `json:"item,omitempty"`
	}
}

func ParsePostOutputsResponse

func ParsePostOutputsResponse(rsp *http.Response) (*PostOutputsResponse, error)

ParsePostOutputsResponse parses an HTTP response from a PostOutputsWithResponse call

func (PostOutputsResponse) Status

func (r PostOutputsResponse) Status() string

Status returns HTTPResponse.Status

func (PostOutputsResponse) StatusCode

func (r PostOutputsResponse) 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 UpdateAgentPolicyJSONRequestBody

type UpdateAgentPolicyJSONRequestBody = AgentPolicyUpdateRequest

UpdateAgentPolicyJSONRequestBody defines body for UpdateAgentPolicy for application/json ContentType.

type UpdateAgentPolicyResponse

type UpdateAgentPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item AgentPolicy `json:"item"`
	}
}

func ParseUpdateAgentPolicyResponse

func ParseUpdateAgentPolicyResponse(rsp *http.Response) (*UpdateAgentPolicyResponse, error)

ParseUpdateAgentPolicyResponse parses an HTTP response from a UpdateAgentPolicyWithResponse call

func (UpdateAgentPolicyResponse) Status

func (r UpdateAgentPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAgentPolicyResponse) StatusCode

func (r UpdateAgentPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateFleetServerHostsJSONBody

type UpdateFleetServerHostsJSONBody struct {
	HostUrls  *[]string `json:"host_urls,omitempty"`
	IsDefault *bool     `json:"is_default,omitempty"`
	Name      *string   `json:"name,omitempty"`
}

UpdateFleetServerHostsJSONBody defines parameters for UpdateFleetServerHosts.

type UpdateFleetServerHostsJSONRequestBody

type UpdateFleetServerHostsJSONRequestBody UpdateFleetServerHostsJSONBody

UpdateFleetServerHostsJSONRequestBody defines body for UpdateFleetServerHosts for application/json ContentType.

type UpdateFleetServerHostsResponse

type UpdateFleetServerHostsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item FleetServerHost `json:"item"`
	}
}

func ParseUpdateFleetServerHostsResponse

func ParseUpdateFleetServerHostsResponse(rsp *http.Response) (*UpdateFleetServerHostsResponse, error)

ParseUpdateFleetServerHostsResponse parses an HTTP response from a UpdateFleetServerHostsWithResponse call

func (UpdateFleetServerHostsResponse) Status

Status returns HTTPResponse.Status

func (UpdateFleetServerHostsResponse) StatusCode

func (r UpdateFleetServerHostsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOutputJSONBody

type UpdateOutputJSONBody struct {
	CaSha256             *string                  `json:"ca_sha256,omitempty"`
	CaTrustedFingerprint *string                  `json:"ca_trusted_fingerprint,omitempty"`
	ConfigYaml           *string                  `json:"config_yaml,omitempty"`
	Hosts                *[]string                `json:"hosts,omitempty"`
	IsDefault            *bool                    `json:"is_default,omitempty"`
	IsDefaultMonitoring  *bool                    `json:"is_default_monitoring,omitempty"`
	Name                 string                   `json:"name"`
	Type                 UpdateOutputJSONBodyType `json:"type"`
}

UpdateOutputJSONBody defines parameters for UpdateOutput.

type UpdateOutputJSONBodyType

type UpdateOutputJSONBodyType string

UpdateOutputJSONBodyType defines parameters for UpdateOutput.

const (
	Elasticsearch UpdateOutputJSONBodyType = "elasticsearch"
)

Defines values for UpdateOutputJSONBodyType.

type UpdateOutputJSONRequestBody

type UpdateOutputJSONRequestBody UpdateOutputJSONBody

UpdateOutputJSONRequestBody defines body for UpdateOutput for application/json ContentType.

type UpdateOutputResponse

type UpdateOutputResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Item Output `json:"item"`
	}
}

func ParseUpdateOutputResponse

func ParseUpdateOutputResponse(rsp *http.Response) (*UpdateOutputResponse, error)

ParseUpdateOutputResponse parses an HTTP response from a UpdateOutputWithResponse call

func (UpdateOutputResponse) Status

func (r UpdateOutputResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateOutputResponse) StatusCode

func (r UpdateOutputResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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