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
- func NewAgentPolicyInfoRequest(server string, agentPolicyId string) (*http.Request, error)
- func NewCreateAgentPolicyRequest(server string, body CreateAgentPolicyJSONRequestBody) (*http.Request, error)
- func NewCreateAgentPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAgentPolicyRequest(server string, body DeleteAgentPolicyJSONRequestBody) (*http.Request, error)
- func NewDeleteAgentPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteFleetServerHostsRequest(server string, itemId string) (*http.Request, error)
- func NewDeleteOutputRequest(server string, outputId string) (*http.Request, error)
- func NewGetEnrollmentApiKeysRequest(server string) (*http.Request, error)
- func NewGetOneFleetServerHostsRequest(server string, itemId string) (*http.Request, error)
- func NewGetOutputRequest(server string, outputId string) (*http.Request, error)
- func NewPostFleetServerHostsRequest(server string, body PostFleetServerHostsJSONRequestBody) (*http.Request, error)
- func NewPostFleetServerHostsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostOutputsRequest(server string, body PostOutputsJSONRequestBody) (*http.Request, error)
- func NewPostOutputsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateAgentPolicyRequest(server string, agentPolicyId string, body UpdateAgentPolicyJSONRequestBody) (*http.Request, error)
- func NewUpdateAgentPolicyRequestWithBody(server string, agentPolicyId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateFleetServerHostsRequest(server string, itemId string, body UpdateFleetServerHostsJSONRequestBody) (*http.Request, error)
- func NewUpdateFleetServerHostsRequestWithBody(server string, itemId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateOutputRequest(server string, outputId string, body UpdateOutputJSONRequestBody) (*http.Request, error)
- func NewUpdateOutputRequestWithBody(server string, outputId string, contentType string, body io.Reader) (*http.Request, error)
- type AgentPolicy
- type AgentPolicyCreateRequest
- type AgentPolicyCreateRequestMonitoringEnabled
- type AgentPolicyInfoResponse
- type AgentPolicyMonitoringEnabled
- type AgentPolicyUpdateRequest
- type AgentPolicyUpdateRequestMonitoringEnabled
- type Client
- func (c *Client) AgentPolicyInfo(ctx context.Context, agentPolicyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateAgentPolicy(ctx context.Context, body CreateAgentPolicyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAgentPolicyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAgentPolicy(ctx context.Context, body DeleteAgentPolicyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteAgentPolicyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteFleetServerHosts(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteOutput(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEnrollmentApiKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOneFleetServerHosts(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOutput(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostFleetServerHosts(ctx context.Context, body PostFleetServerHostsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostFleetServerHostsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostOutputs(ctx context.Context, body PostOutputsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostOutputsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateAgentPolicy(ctx context.Context, agentPolicyId string, ...) (*http.Response, error)
- func (c *Client) UpdateAgentPolicyWithBody(ctx context.Context, agentPolicyId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateFleetServerHosts(ctx context.Context, itemId string, body UpdateFleetServerHostsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateFleetServerHostsWithBody(ctx context.Context, itemId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateOutput(ctx context.Context, outputId string, body UpdateOutputJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateOutputWithBody(ctx context.Context, outputId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AgentPolicyInfoWithResponse(ctx context.Context, agentPolicyId string, reqEditors ...RequestEditorFn) (*AgentPolicyInfoResponse, error)
- func (c *ClientWithResponses) CreateAgentPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAgentPolicyResponse, error)
- func (c *ClientWithResponses) CreateAgentPolicyWithResponse(ctx context.Context, body CreateAgentPolicyJSONRequestBody, ...) (*CreateAgentPolicyResponse, error)
- func (c *ClientWithResponses) DeleteAgentPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteAgentPolicyResponse, error)
- func (c *ClientWithResponses) DeleteAgentPolicyWithResponse(ctx context.Context, body DeleteAgentPolicyJSONRequestBody, ...) (*DeleteAgentPolicyResponse, error)
- func (c *ClientWithResponses) DeleteFleetServerHostsWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*DeleteFleetServerHostsResponse, error)
- func (c *ClientWithResponses) DeleteOutputWithResponse(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*DeleteOutputResponse, error)
- func (c *ClientWithResponses) GetEnrollmentApiKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnrollmentApiKeysResponse, error)
- func (c *ClientWithResponses) GetOneFleetServerHostsWithResponse(ctx context.Context, itemId string, reqEditors ...RequestEditorFn) (*GetOneFleetServerHostsResponse, error)
- func (c *ClientWithResponses) GetOutputWithResponse(ctx context.Context, outputId string, reqEditors ...RequestEditorFn) (*GetOutputResponse, error)
- func (c *ClientWithResponses) PostFleetServerHostsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostFleetServerHostsResponse, error)
- func (c *ClientWithResponses) PostFleetServerHostsWithResponse(ctx context.Context, body PostFleetServerHostsJSONRequestBody, ...) (*PostFleetServerHostsResponse, error)
- func (c *ClientWithResponses) PostOutputsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostOutputsResponse, error)
- func (c *ClientWithResponses) PostOutputsWithResponse(ctx context.Context, body PostOutputsJSONRequestBody, ...) (*PostOutputsResponse, error)
- func (c *ClientWithResponses) UpdateAgentPolicyWithBodyWithResponse(ctx context.Context, agentPolicyId string, contentType string, body io.Reader, ...) (*UpdateAgentPolicyResponse, error)
- func (c *ClientWithResponses) UpdateAgentPolicyWithResponse(ctx context.Context, agentPolicyId string, ...) (*UpdateAgentPolicyResponse, error)
- func (c *ClientWithResponses) UpdateFleetServerHostsWithBodyWithResponse(ctx context.Context, itemId string, contentType string, body io.Reader, ...) (*UpdateFleetServerHostsResponse, error)
- func (c *ClientWithResponses) UpdateFleetServerHostsWithResponse(ctx context.Context, itemId string, body UpdateFleetServerHostsJSONRequestBody, ...) (*UpdateFleetServerHostsResponse, error)
- func (c *ClientWithResponses) UpdateOutputWithBodyWithResponse(ctx context.Context, outputId string, contentType string, body io.Reader, ...) (*UpdateOutputResponse, error)
- func (c *ClientWithResponses) UpdateOutputWithResponse(ctx context.Context, outputId string, body UpdateOutputJSONRequestBody, ...) (*UpdateOutputResponse, error)
- type ClientWithResponsesInterface
- type CreateAgentPolicyJSONRequestBody
- type CreateAgentPolicyResponse
- type DeleteAgentPolicyJSONBody
- type DeleteAgentPolicyJSONRequestBody
- type DeleteAgentPolicyResponse
- type DeleteFleetServerHostsResponse
- type DeleteOutputResponse
- type EnrollmentApiKey
- type FleetServerHost
- type GetEnrollmentApiKeysResponse
- type GetOneFleetServerHostsResponse
- type GetOutputResponse
- type HttpRequestDoer
- type NewPackagePolicy
- type Output
- type OutputType
- type PackagePolicy
- type PostFleetServerHostsJSONBody
- type PostFleetServerHostsJSONRequestBody
- type PostFleetServerHostsResponse
- type PostOutputsJSONBody
- type PostOutputsJSONBodyType
- type PostOutputsJSONRequestBody
- type PostOutputsResponse
- type RequestEditorFn
- type UpdateAgentPolicyJSONRequestBody
- type UpdateAgentPolicyResponse
- type UpdateFleetServerHostsJSONBody
- type UpdateFleetServerHostsJSONRequestBody
- type UpdateFleetServerHostsResponse
- type UpdateOutputJSONBody
- type UpdateOutputJSONBodyType
- type UpdateOutputJSONRequestBody
- type UpdateOutputResponse
Constants ¶
const (
BasicAuthScopes = "basicAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAgentPolicyInfoRequest ¶
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 ¶
NewDeleteFleetServerHostsRequest generates requests for DeleteFleetServerHosts
func NewDeleteOutputRequest ¶
NewDeleteOutputRequest generates requests for DeleteOutput
func NewGetEnrollmentApiKeysRequest ¶
NewGetEnrollmentApiKeysRequest generates requests for GetEnrollmentApiKeys
func NewGetOneFleetServerHostsRequest ¶
NewGetOneFleetServerHostsRequest generates requests for GetOneFleetServerHosts
func NewGetOutputRequest ¶
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
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.
const ( Logs AgentPolicyUpdateRequestMonitoringEnabled = "logs" Metrics AgentPolicyUpdateRequestMonitoringEnabled = "metrics" )
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 (*Client) CreateAgentPolicy ¶
func (c *Client) CreateAgentPolicy(ctx context.Context, body CreateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAgentPolicyWithBody ¶
func (*Client) DeleteAgentPolicy ¶
func (c *Client) DeleteAgentPolicy(ctx context.Context, body DeleteAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteAgentPolicyWithBody ¶
func (*Client) DeleteFleetServerHosts ¶
func (*Client) DeleteOutput ¶
func (*Client) GetEnrollmentApiKeys ¶
func (*Client) GetOneFleetServerHosts ¶
func (*Client) PostFleetServerHosts ¶
func (c *Client) PostFleetServerHosts(ctx context.Context, body PostFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostFleetServerHostsWithBody ¶
func (*Client) PostOutputs ¶
func (c *Client) PostOutputs(ctx context.Context, body PostOutputsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostOutputsWithBody ¶
func (*Client) UpdateAgentPolicy ¶
func (c *Client) UpdateAgentPolicy(ctx context.Context, agentPolicyId string, body UpdateAgentPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAgentPolicyWithBody ¶
func (*Client) UpdateFleetServerHosts ¶
func (c *Client) UpdateFleetServerHosts(ctx context.Context, itemId string, body UpdateFleetServerHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFleetServerHostsWithBody ¶
func (*Client) UpdateOutput ¶
func (c *Client) UpdateOutput(ctx context.Context, outputId string, body UpdateOutputJSONRequestBody, 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 ¶
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) 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 ¶
func (r DeleteFleetServerHostsResponse) Status() string
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 ¶
func (r GetEnrollmentApiKeysResponse) Status() string
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 ¶
func (r GetOneFleetServerHostsResponse) Status() string
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 ¶
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 ¶
func (r PostFleetServerHostsResponse) Status() string
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 ¶
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 ¶
func (r UpdateFleetServerHostsResponse) Status() string
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