Documentation
¶
Overview ¶
Package fleet provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 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 NewCreatePackagePolicyRequest(server string, params *CreatePackagePolicyParams, ...) (*http.Request, error)
- func NewCreatePackagePolicyRequestWithBody(server string, params *CreatePackagePolicyParams, contentType string, ...) (*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 NewDeletePackagePolicyRequest(server string, packagePolicyId string, params *DeletePackagePolicyParams) (*http.Request, error)
- func NewDeletePackageRequest(server string, pkgName string, pkgVersion string, params *DeletePackageParams, ...) (*http.Request, error)
- func NewDeletePackageRequestWithBody(server string, pkgName string, pkgVersion string, params *DeletePackageParams, ...) (*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 NewGetPackagePolicyRequest(server string, packagePolicyId string, params *GetPackagePolicyParams) (*http.Request, error)
- func NewGetPackageRequest(server string, pkgName string, pkgVersion string, params *GetPackageParams) (*http.Request, error)
- func NewInstallPackageRequest(server string, pkgName string, pkgVersion string, params *InstallPackageParams, ...) (*http.Request, error)
- func NewInstallPackageRequestWithBody(server string, pkgName string, pkgVersion string, params *InstallPackageParams, ...) (*http.Request, error)
- func NewListAllPackagesRequest(server string, params *ListAllPackagesParams) (*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)
- func NewUpdatePackagePolicyRequest(server string, packagePolicyId string, params *UpdatePackagePolicyParams, ...) (*http.Request, error)
- func NewUpdatePackagePolicyRequestWithBody(server string, packagePolicyId string, params *UpdatePackagePolicyParams, ...) (*http.Request, error)
- func NewUpdatePackageRequest(server string, pkgName string, pkgVersion string, params *UpdatePackageParams, ...) (*http.Request, error)
- func NewUpdatePackageRequestWithBody(server string, pkgName string, pkgVersion string, params *UpdatePackageParams, ...) (*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) CreatePackagePolicy(ctx context.Context, params *CreatePackagePolicyParams, ...) (*http.Response, error)
- func (c *Client) CreatePackagePolicyWithBody(ctx context.Context, params *CreatePackagePolicyParams, contentType string, ...) (*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) DeletePackage(ctx context.Context, pkgName string, pkgVersion string, ...) (*http.Response, error)
- func (c *Client) DeletePackagePolicy(ctx context.Context, packagePolicyId string, params *DeletePackagePolicyParams, ...) (*http.Response, error)
- func (c *Client) DeletePackageWithBody(ctx context.Context, pkgName string, pkgVersion string, ...) (*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) GetPackage(ctx context.Context, pkgName string, pkgVersion string, ...) (*http.Response, error)
- func (c *Client) GetPackagePolicy(ctx context.Context, packagePolicyId string, params *GetPackagePolicyParams, ...) (*http.Response, error)
- func (c *Client) InstallPackage(ctx context.Context, pkgName string, pkgVersion string, ...) (*http.Response, error)
- func (c *Client) InstallPackageWithBody(ctx context.Context, pkgName string, pkgVersion string, ...) (*http.Response, error)
- func (c *Client) ListAllPackages(ctx context.Context, params *ListAllPackagesParams, ...) (*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)
- func (c *Client) UpdatePackage(ctx context.Context, pkgName string, pkgVersion string, ...) (*http.Response, error)
- func (c *Client) UpdatePackagePolicy(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, ...) (*http.Response, error)
- func (c *Client) UpdatePackagePolicyWithBody(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, ...) (*http.Response, error)
- func (c *Client) UpdatePackageWithBody(ctx context.Context, pkgName string, pkgVersion string, ...) (*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) CreatePackagePolicyWithBodyWithResponse(ctx context.Context, params *CreatePackagePolicyParams, contentType string, ...) (*CreatePackagePolicyResponse, error)
- func (c *ClientWithResponses) CreatePackagePolicyWithResponse(ctx context.Context, params *CreatePackagePolicyParams, ...) (*CreatePackagePolicyResponse, 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) DeletePackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *DeletePackagePolicyParams, ...) (*DeletePackagePolicyResponse, error)
- func (c *ClientWithResponses) DeletePackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, ...) (*DeletePackageResponse, error)
- func (c *ClientWithResponses) DeletePackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, ...) (*DeletePackageResponse, 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) GetPackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *GetPackagePolicyParams, ...) (*GetPackagePolicyResponse, error)
- func (c *ClientWithResponses) GetPackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, ...) (*GetPackageResponse, error)
- func (c *ClientWithResponses) InstallPackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, ...) (*InstallPackageResponse, error)
- func (c *ClientWithResponses) InstallPackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, ...) (*InstallPackageResponse, error)
- func (c *ClientWithResponses) ListAllPackagesWithResponse(ctx context.Context, params *ListAllPackagesParams, ...) (*ListAllPackagesResponse, 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)
- func (c *ClientWithResponses) UpdatePackagePolicyWithBodyWithResponse(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, ...) (*UpdatePackagePolicyResponse, error)
- func (c *ClientWithResponses) UpdatePackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, ...) (*UpdatePackagePolicyResponse, error)
- func (c *ClientWithResponses) UpdatePackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, ...) (*UpdatePackageResponse, error)
- func (c *ClientWithResponses) UpdatePackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, ...) (*UpdatePackageResponse, error)
- type ClientWithResponsesInterface
- type CreateAgentPolicyJSONRequestBody
- type CreateAgentPolicyResponse
- type CreatePackagePolicyJSONRequestBody
- type CreatePackagePolicyParams
- type CreatePackagePolicyParamsFormat
- type CreatePackagePolicyResponse
- type DeleteAgentPolicyJSONBody
- type DeleteAgentPolicyJSONRequestBody
- type DeleteAgentPolicyResponse
- type DeleteFleetServerHostsResponse
- type DeleteOutputResponse
- type DeletePackageJSONBody
- type DeletePackageJSONRequestBody
- type DeletePackageParams
- type DeletePackagePolicyParams
- type DeletePackagePolicyResponse
- type DeletePackageResponse
- type ElasticsearchAssetType
- type EnrollmentApiKey
- type Error
- type FleetServerHost
- type Format
- type GetEnrollmentApiKeysResponse
- type GetOneFleetServerHostsResponse
- type GetOutputResponse
- type GetPackageParams
- type GetPackagePolicyParams
- type GetPackagePolicyParamsFormat
- type GetPackagePolicyResponse
- type GetPackageResponse
- type GetPackagesResponse
- type HttpRequestDoer
- type InstallPackageJSONBody
- type InstallPackageJSONRequestBody
- type InstallPackageParams
- type InstallPackageResponse
- type KibanaSavedObjectType
- type ListAllPackagesParams
- type ListAllPackagesResponse
- type NewPackagePolicy
- type OutputCreateRequest
- func (t OutputCreateRequest) AsOutputCreateRequestElasticsearch() (OutputCreateRequestElasticsearch, error)
- func (t OutputCreateRequest) AsOutputCreateRequestKafka() (OutputCreateRequestKafka, error)
- func (t OutputCreateRequest) AsOutputCreateRequestLogstash() (OutputCreateRequestLogstash, error)
- func (t OutputCreateRequest) Discriminator() (string, error)
- func (t *OutputCreateRequest) FromOutputCreateRequestElasticsearch(v OutputCreateRequestElasticsearch) error
- func (t *OutputCreateRequest) FromOutputCreateRequestKafka(v OutputCreateRequestKafka) error
- func (t *OutputCreateRequest) FromOutputCreateRequestLogstash(v OutputCreateRequestLogstash) error
- func (t OutputCreateRequest) MarshalJSON() ([]byte, error)
- func (t *OutputCreateRequest) MergeOutputCreateRequestElasticsearch(v OutputCreateRequestElasticsearch) error
- func (t *OutputCreateRequest) MergeOutputCreateRequestKafka(v OutputCreateRequestKafka) error
- func (t *OutputCreateRequest) MergeOutputCreateRequestLogstash(v OutputCreateRequestLogstash) error
- func (t *OutputCreateRequest) UnmarshalJSON(b []byte) error
- func (t OutputCreateRequest) ValueByDiscriminator() (interface{}, error)
- type OutputCreateRequestElasticsearch
- type OutputCreateRequestElasticsearchType
- type OutputCreateRequestKafka
- type OutputCreateRequestKafkaConnectionType
- type OutputCreateRequestKafkaSslVerificationMode
- type OutputCreateRequestKafkaType
- type OutputCreateRequestLogstash
- type OutputCreateRequestLogstashType
- type OutputUpdateRequest
- func (t OutputUpdateRequest) AsOutputUpdateRequestElasticsearch() (OutputUpdateRequestElasticsearch, error)
- func (t OutputUpdateRequest) AsOutputUpdateRequestKafka() (OutputUpdateRequestKafka, error)
- func (t OutputUpdateRequest) AsOutputUpdateRequestLogstash() (OutputUpdateRequestLogstash, error)
- func (t OutputUpdateRequest) Discriminator() (string, error)
- func (t *OutputUpdateRequest) FromOutputUpdateRequestElasticsearch(v OutputUpdateRequestElasticsearch) error
- func (t *OutputUpdateRequest) FromOutputUpdateRequestKafka(v OutputUpdateRequestKafka) error
- func (t *OutputUpdateRequest) FromOutputUpdateRequestLogstash(v OutputUpdateRequestLogstash) error
- func (t OutputUpdateRequest) MarshalJSON() ([]byte, error)
- func (t *OutputUpdateRequest) MergeOutputUpdateRequestElasticsearch(v OutputUpdateRequestElasticsearch) error
- func (t *OutputUpdateRequest) MergeOutputUpdateRequestKafka(v OutputUpdateRequestKafka) error
- func (t *OutputUpdateRequest) MergeOutputUpdateRequestLogstash(v OutputUpdateRequestLogstash) error
- func (t *OutputUpdateRequest) UnmarshalJSON(b []byte) error
- func (t OutputUpdateRequest) ValueByDiscriminator() (interface{}, error)
- type OutputUpdateRequestElasticsearch
- type OutputUpdateRequestElasticsearchType
- type OutputUpdateRequestKafka
- type OutputUpdateRequestKafkaConnectionType
- type OutputUpdateRequestKafkaSslVerificationMode
- type OutputUpdateRequestKafkaType
- type OutputUpdateRequestLogstash
- type OutputUpdateRequestLogstashType
- type PackageInfo
- type PackageInfoConditionsElasticsearchSubscription
- type PackageInfoRelease
- type PackageInfoSourceLicense
- type PackageInstallSource
- type PackageItemType
- func (t PackageItemType) AsElasticsearchAssetType() (ElasticsearchAssetType, error)
- func (t PackageItemType) AsKibanaSavedObjectType() (KibanaSavedObjectType, error)
- func (t *PackageItemType) FromElasticsearchAssetType(v ElasticsearchAssetType) error
- func (t *PackageItemType) FromKibanaSavedObjectType(v KibanaSavedObjectType) error
- func (t PackageItemType) MarshalJSON() ([]byte, error)
- func (t *PackageItemType) MergeElasticsearchAssetType(v ElasticsearchAssetType) error
- func (t *PackageItemType) MergeKibanaSavedObjectType(v KibanaSavedObjectType) error
- func (t *PackageItemType) UnmarshalJSON(b []byte) error
- type PackagePolicy
- type PackagePolicyInput
- type PackagePolicyPackageInfo
- type PackagePolicyRequest
- type PackagePolicyRequestInput
- type PackagePolicyRequestInputStream
- type PackageStatus
- type PostFleetServerHostsJSONBody
- type PostFleetServerHostsJSONRequestBody
- type PostFleetServerHostsResponse
- type PostOutputsJSONRequestBody
- type PostOutputsResponse
- type RequestEditorFn
- type SearchResult
- type UpdateAgentPolicyJSONRequestBody
- type UpdateAgentPolicyResponse
- type UpdateFleetServerHostsJSONBody
- type UpdateFleetServerHostsJSONRequestBody
- type UpdateFleetServerHostsResponse
- type UpdateOutputJSONRequestBody
- type UpdateOutputResponse
- type UpdatePackageJSONBody
- type UpdatePackageJSONRequestBody
- type UpdatePackageParams
- type UpdatePackagePolicyJSONRequestBody
- type UpdatePackagePolicyParams
- type UpdatePackagePolicyParamsFormat
- type UpdatePackagePolicyResponse
- type UpdatePackageResponse
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 NewCreatePackagePolicyRequest ¶ added in v0.10.0
func NewCreatePackagePolicyRequest(server string, params *CreatePackagePolicyParams, body CreatePackagePolicyJSONRequestBody) (*http.Request, error)
NewCreatePackagePolicyRequest calls the generic CreatePackagePolicy builder with application/json body
func NewCreatePackagePolicyRequestWithBody ¶ added in v0.10.0
func NewCreatePackagePolicyRequestWithBody(server string, params *CreatePackagePolicyParams, contentType string, body io.Reader) (*http.Request, error)
NewCreatePackagePolicyRequestWithBody generates requests for CreatePackagePolicy 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 NewDeletePackagePolicyRequest ¶ added in v0.10.0
func NewDeletePackagePolicyRequest(server string, packagePolicyId string, params *DeletePackagePolicyParams) (*http.Request, error)
NewDeletePackagePolicyRequest generates requests for DeletePackagePolicy
func NewDeletePackageRequest ¶ added in v0.10.0
func NewDeletePackageRequest(server string, pkgName string, pkgVersion string, params *DeletePackageParams, body DeletePackageJSONRequestBody) (*http.Request, error)
NewDeletePackageRequest calls the generic DeletePackage builder with application/json body
func NewDeletePackageRequestWithBody ¶ added in v0.10.0
func NewDeletePackageRequestWithBody(server string, pkgName string, pkgVersion string, params *DeletePackageParams, contentType string, body io.Reader) (*http.Request, error)
NewDeletePackageRequestWithBody generates requests for DeletePackage with any type of body
func NewGetEnrollmentApiKeysRequest ¶
NewGetEnrollmentApiKeysRequest generates requests for GetEnrollmentApiKeys
func NewGetOneFleetServerHostsRequest ¶
NewGetOneFleetServerHostsRequest generates requests for GetOneFleetServerHosts
func NewGetOutputRequest ¶
NewGetOutputRequest generates requests for GetOutput
func NewGetPackagePolicyRequest ¶ added in v0.10.0
func NewGetPackagePolicyRequest(server string, packagePolicyId string, params *GetPackagePolicyParams) (*http.Request, error)
NewGetPackagePolicyRequest generates requests for GetPackagePolicy
func NewGetPackageRequest ¶ added in v0.10.0
func NewGetPackageRequest(server string, pkgName string, pkgVersion string, params *GetPackageParams) (*http.Request, error)
NewGetPackageRequest generates requests for GetPackage
func NewInstallPackageRequest ¶ added in v0.10.0
func NewInstallPackageRequest(server string, pkgName string, pkgVersion string, params *InstallPackageParams, body InstallPackageJSONRequestBody) (*http.Request, error)
NewInstallPackageRequest calls the generic InstallPackage builder with application/json body
func NewInstallPackageRequestWithBody ¶ added in v0.10.0
func NewInstallPackageRequestWithBody(server string, pkgName string, pkgVersion string, params *InstallPackageParams, contentType string, body io.Reader) (*http.Request, error)
NewInstallPackageRequestWithBody generates requests for InstallPackage with any type of body
func NewListAllPackagesRequest ¶ added in v0.11.0
func NewListAllPackagesRequest(server string, params *ListAllPackagesParams) (*http.Request, error)
NewListAllPackagesRequest generates requests for ListAllPackages
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
func NewUpdatePackagePolicyRequest ¶ added in v0.10.0
func NewUpdatePackagePolicyRequest(server string, packagePolicyId string, params *UpdatePackagePolicyParams, body UpdatePackagePolicyJSONRequestBody) (*http.Request, error)
NewUpdatePackagePolicyRequest calls the generic UpdatePackagePolicy builder with application/json body
func NewUpdatePackagePolicyRequestWithBody ¶ added in v0.10.0
func NewUpdatePackagePolicyRequestWithBody(server string, packagePolicyId string, params *UpdatePackagePolicyParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePackagePolicyRequestWithBody generates requests for UpdatePackagePolicy with any type of body
func NewUpdatePackageRequest ¶ added in v0.10.0
func NewUpdatePackageRequest(server string, pkgName string, pkgVersion string, params *UpdatePackageParams, body UpdatePackageJSONRequestBody) (*http.Request, error)
NewUpdatePackageRequest calls the generic UpdatePackage builder with application/json body
func NewUpdatePackageRequestWithBody ¶ added in v0.10.0
func NewUpdatePackageRequestWithBody(server string, pkgName string, pkgVersion string, params *UpdatePackageParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePackageRequestWithBody generates requests for UpdatePackage 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"`
// IsProtected Indicates whether the agent policy has tamper protection enabled. Default false.
IsProtected *bool `json:"is_protected,omitempty"`
MonitoringEnabled *[]AgentPolicyMonitoringEnabled `json:"monitoring_enabled,omitempty"`
MonitoringOutputId *string `json:"monitoring_output_id"`
Name string `json:"name"`
Namespace string `json:"namespace"`
// Overrides Override settings that are defined in the agent policy. Input settings cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure.
Overrides *map[string]interface{} `json:"overrides"`
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"`
IsProtected *bool `json:"is_protected,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"`
}
JSON400 *Error
}
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"`
IsProtected *bool `json:"is_protected,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) CreatePackagePolicy ¶ added in v0.10.0
func (c *Client) CreatePackagePolicy(ctx context.Context, params *CreatePackagePolicyParams, body CreatePackagePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePackagePolicyWithBody ¶ added in v0.10.0
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) DeletePackage ¶ added in v0.10.0
func (c *Client) DeletePackage(ctx context.Context, pkgName string, pkgVersion string, params *DeletePackageParams, body DeletePackageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeletePackagePolicy ¶ added in v0.10.0
func (c *Client) DeletePackagePolicy(ctx context.Context, packagePolicyId string, params *DeletePackagePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeletePackageWithBody ¶ added in v0.10.0
func (*Client) GetEnrollmentApiKeys ¶
func (*Client) GetOneFleetServerHosts ¶
func (*Client) GetPackage ¶ added in v0.10.0
func (c *Client) GetPackage(ctx context.Context, pkgName string, pkgVersion string, params *GetPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPackagePolicy ¶ added in v0.10.0
func (c *Client) GetPackagePolicy(ctx context.Context, packagePolicyId string, params *GetPackagePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InstallPackage ¶ added in v0.10.0
func (c *Client) InstallPackage(ctx context.Context, pkgName string, pkgVersion string, params *InstallPackageParams, body InstallPackageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InstallPackageWithBody ¶ added in v0.10.0
func (*Client) ListAllPackages ¶ added in v0.11.0
func (c *Client) ListAllPackages(ctx context.Context, params *ListAllPackagesParams, 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 (*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)
func (*Client) UpdateOutputWithBody ¶
func (*Client) UpdatePackage ¶ added in v0.10.0
func (c *Client) UpdatePackage(ctx context.Context, pkgName string, pkgVersion string, params *UpdatePackageParams, body UpdatePackageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePackagePolicy ¶ added in v0.10.0
func (c *Client) UpdatePackagePolicy(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, body UpdatePackagePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePackagePolicyWithBody ¶ added in v0.10.0
func (*Client) UpdatePackageWithBody ¶ added in v0.10.0
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)
// ListAllPackages request
ListAllPackages(ctx context.Context, params *ListAllPackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeletePackageWithBody request with any body
DeletePackageWithBody(ctx context.Context, pkgName string, pkgVersion string, params *DeletePackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeletePackage(ctx context.Context, pkgName string, pkgVersion string, params *DeletePackageParams, body DeletePackageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPackage request
GetPackage(ctx context.Context, pkgName string, pkgVersion string, params *GetPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// InstallPackageWithBody request with any body
InstallPackageWithBody(ctx context.Context, pkgName string, pkgVersion string, params *InstallPackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
InstallPackage(ctx context.Context, pkgName string, pkgVersion string, params *InstallPackageParams, body InstallPackageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePackageWithBody request with any body
UpdatePackageWithBody(ctx context.Context, pkgName string, pkgVersion string, params *UpdatePackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePackage(ctx context.Context, pkgName string, pkgVersion string, params *UpdatePackageParams, body UpdatePackageJSONRequestBody, 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)
// CreatePackagePolicyWithBody request with any body
CreatePackagePolicyWithBody(ctx context.Context, params *CreatePackagePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePackagePolicy(ctx context.Context, params *CreatePackagePolicyParams, body CreatePackagePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeletePackagePolicy request
DeletePackagePolicy(ctx context.Context, packagePolicyId string, params *DeletePackagePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPackagePolicy request
GetPackagePolicy(ctx context.Context, packagePolicyId string, params *GetPackagePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePackagePolicyWithBody request with any body
UpdatePackagePolicyWithBody(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePackagePolicy(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, body UpdatePackagePolicyJSONRequestBody, 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) CreatePackagePolicyWithBodyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) CreatePackagePolicyWithBodyWithResponse(ctx context.Context, params *CreatePackagePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePackagePolicyResponse, error)
CreatePackagePolicyWithBodyWithResponse request with arbitrary body returning *CreatePackagePolicyResponse
func (*ClientWithResponses) CreatePackagePolicyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) CreatePackagePolicyWithResponse(ctx context.Context, params *CreatePackagePolicyParams, body CreatePackagePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePackagePolicyResponse, 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) DeletePackagePolicyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) DeletePackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *DeletePackagePolicyParams, reqEditors ...RequestEditorFn) (*DeletePackagePolicyResponse, error)
DeletePackagePolicyWithResponse request returning *DeletePackagePolicyResponse
func (*ClientWithResponses) DeletePackageWithBodyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) DeletePackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *DeletePackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePackageResponse, error)
DeletePackageWithBodyWithResponse request with arbitrary body returning *DeletePackageResponse
func (*ClientWithResponses) DeletePackageWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) DeletePackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *DeletePackageParams, body DeletePackageJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePackageResponse, error)
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) GetPackagePolicyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) GetPackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *GetPackagePolicyParams, reqEditors ...RequestEditorFn) (*GetPackagePolicyResponse, error)
GetPackagePolicyWithResponse request returning *GetPackagePolicyResponse
func (*ClientWithResponses) GetPackageWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) GetPackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *GetPackageParams, reqEditors ...RequestEditorFn) (*GetPackageResponse, error)
GetPackageWithResponse request returning *GetPackageResponse
func (*ClientWithResponses) InstallPackageWithBodyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) InstallPackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *InstallPackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallPackageResponse, error)
InstallPackageWithBodyWithResponse request with arbitrary body returning *InstallPackageResponse
func (*ClientWithResponses) InstallPackageWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) InstallPackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *InstallPackageParams, body InstallPackageJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallPackageResponse, error)
func (*ClientWithResponses) ListAllPackagesWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) ListAllPackagesWithResponse(ctx context.Context, params *ListAllPackagesParams, reqEditors ...RequestEditorFn) (*ListAllPackagesResponse, error)
ListAllPackagesWithResponse request returning *ListAllPackagesResponse
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)
func (*ClientWithResponses) UpdatePackagePolicyWithBodyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) UpdatePackagePolicyWithBodyWithResponse(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePackagePolicyResponse, error)
UpdatePackagePolicyWithBodyWithResponse request with arbitrary body returning *UpdatePackagePolicyResponse
func (*ClientWithResponses) UpdatePackagePolicyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) UpdatePackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, body UpdatePackagePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePackagePolicyResponse, error)
func (*ClientWithResponses) UpdatePackageWithBodyWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) UpdatePackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *UpdatePackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePackageResponse, error)
UpdatePackageWithBodyWithResponse request with arbitrary body returning *UpdatePackageResponse
func (*ClientWithResponses) UpdatePackageWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) UpdatePackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *UpdatePackageParams, body UpdatePackageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePackageResponse, 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)
// ListAllPackagesWithResponse request
ListAllPackagesWithResponse(ctx context.Context, params *ListAllPackagesParams, reqEditors ...RequestEditorFn) (*ListAllPackagesResponse, error)
// DeletePackageWithBodyWithResponse request with any body
DeletePackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *DeletePackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePackageResponse, error)
DeletePackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *DeletePackageParams, body DeletePackageJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePackageResponse, error)
// GetPackageWithResponse request
GetPackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *GetPackageParams, reqEditors ...RequestEditorFn) (*GetPackageResponse, error)
// InstallPackageWithBodyWithResponse request with any body
InstallPackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *InstallPackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallPackageResponse, error)
InstallPackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *InstallPackageParams, body InstallPackageJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallPackageResponse, error)
// UpdatePackageWithBodyWithResponse request with any body
UpdatePackageWithBodyWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *UpdatePackageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePackageResponse, error)
UpdatePackageWithResponse(ctx context.Context, pkgName string, pkgVersion string, params *UpdatePackageParams, body UpdatePackageJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePackageResponse, 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)
// CreatePackagePolicyWithBodyWithResponse request with any body
CreatePackagePolicyWithBodyWithResponse(ctx context.Context, params *CreatePackagePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePackagePolicyResponse, error)
CreatePackagePolicyWithResponse(ctx context.Context, params *CreatePackagePolicyParams, body CreatePackagePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePackagePolicyResponse, error)
// DeletePackagePolicyWithResponse request
DeletePackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *DeletePackagePolicyParams, reqEditors ...RequestEditorFn) (*DeletePackagePolicyResponse, error)
// GetPackagePolicyWithResponse request
GetPackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *GetPackagePolicyParams, reqEditors ...RequestEditorFn) (*GetPackagePolicyResponse, error)
// UpdatePackagePolicyWithBodyWithResponse request with any body
UpdatePackagePolicyWithBodyWithResponse(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePackagePolicyResponse, error)
UpdatePackagePolicyWithResponse(ctx context.Context, packagePolicyId string, params *UpdatePackagePolicyParams, body UpdatePackagePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePackagePolicyResponse, 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"`
}
JSON400 *Error
}
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 CreatePackagePolicyJSONRequestBody ¶ added in v0.10.0
type CreatePackagePolicyJSONRequestBody = PackagePolicyRequest
CreatePackagePolicyJSONRequestBody defines body for CreatePackagePolicy for application/json ContentType.
type CreatePackagePolicyParams ¶ added in v0.10.0
type CreatePackagePolicyParams struct {
// Format Simplified or legacy format for package inputs
Format *CreatePackagePolicyParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}
CreatePackagePolicyParams defines parameters for CreatePackagePolicy.
type CreatePackagePolicyParamsFormat ¶ added in v0.10.0
type CreatePackagePolicyParamsFormat string
CreatePackagePolicyParamsFormat defines parameters for CreatePackagePolicy.
const ( CreatePackagePolicyParamsFormatLegacy CreatePackagePolicyParamsFormat = "legacy" CreatePackagePolicyParamsFormatSimplified CreatePackagePolicyParamsFormat = "simplified" )
Defines values for CreatePackagePolicyParamsFormat.
type CreatePackagePolicyResponse ¶ added in v0.10.0
type CreatePackagePolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Item PackagePolicy `json:"item"`
}
JSON400 *Error
JSON409 *Error
}
func ParseCreatePackagePolicyResponse ¶ added in v0.10.0
func ParseCreatePackagePolicyResponse(rsp *http.Response) (*CreatePackagePolicyResponse, error)
ParseCreatePackagePolicyResponse parses an HTTP response from a CreatePackagePolicyWithResponse call
func (CreatePackagePolicyResponse) Status ¶ added in v0.10.0
func (r CreatePackagePolicyResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePackagePolicyResponse) StatusCode ¶ added in v0.10.0
func (r CreatePackagePolicyResponse) 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"`
}
JSON400 *Error
}
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"`
}
JSON400 *Error
}
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"`
}
JSON400 *Error
}
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 DeletePackageJSONBody ¶ added in v0.10.0
type DeletePackageJSONBody struct {
Force *bool `json:"force,omitempty"`
}
DeletePackageJSONBody defines parameters for DeletePackage.
type DeletePackageJSONRequestBody ¶ added in v0.10.0
type DeletePackageJSONRequestBody DeletePackageJSONBody
DeletePackageJSONRequestBody defines body for DeletePackage for application/json ContentType.
type DeletePackageParams ¶ added in v0.10.0
type DeletePackageParams struct {
// IgnoreUnverified Ignore if the package is fails signature verification
IgnoreUnverified *bool `form:"ignoreUnverified,omitempty" json:"ignoreUnverified,omitempty"`
// Full Return all fields from the package manifest, not just those supported by the Elastic Package Registry
Full *bool `form:"full,omitempty" json:"full,omitempty"`
// Prerelease Whether to return prerelease versions of packages (e.g. beta, rc, preview)
Prerelease *bool `form:"prerelease,omitempty" json:"prerelease,omitempty"`
}
DeletePackageParams defines parameters for DeletePackage.
type DeletePackagePolicyParams ¶ added in v0.10.0
type DeletePackagePolicyParams struct {
Force *bool `form:"force,omitempty" json:"force,omitempty"`
}
DeletePackagePolicyParams defines parameters for DeletePackagePolicy.
type DeletePackagePolicyResponse ¶ added in v0.10.0
type DeletePackagePolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Id string `json:"id"`
}
JSON400 *Error
}
func ParseDeletePackagePolicyResponse ¶ added in v0.10.0
func ParseDeletePackagePolicyResponse(rsp *http.Response) (*DeletePackagePolicyResponse, error)
ParseDeletePackagePolicyResponse parses an HTTP response from a DeletePackagePolicyWithResponse call
func (DeletePackagePolicyResponse) Status ¶ added in v0.10.0
func (r DeletePackagePolicyResponse) Status() string
Status returns HTTPResponse.Status
func (DeletePackagePolicyResponse) StatusCode ¶ added in v0.10.0
func (r DeletePackagePolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeletePackageResponse ¶ added in v0.10.0
type DeletePackageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Items []struct {
Id string `json:"id"`
Type PackageItemType `json:"type"`
} `json:"items"`
}
JSON400 *Error
}
func ParseDeletePackageResponse ¶ added in v0.10.0
func ParseDeletePackageResponse(rsp *http.Response) (*DeletePackageResponse, error)
ParseDeletePackageResponse parses an HTTP response from a DeletePackageWithResponse call
func (DeletePackageResponse) Status ¶ added in v0.10.0
func (r DeletePackageResponse) Status() string
Status returns HTTPResponse.Status
func (DeletePackageResponse) StatusCode ¶ added in v0.10.0
func (r DeletePackageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ElasticsearchAssetType ¶ added in v0.10.0
type ElasticsearchAssetType string
ElasticsearchAssetType defines model for elasticsearch_asset_type.
const ( ComponentTemplate ElasticsearchAssetType = "component_template" DataStreamIlmPolicy ElasticsearchAssetType = "data_stream_ilm_policy" IlmPolicy ElasticsearchAssetType = "ilm_policy" IndexTemplate ElasticsearchAssetType = "index_template" IngestPipeline ElasticsearchAssetType = "ingest_pipeline" Transform ElasticsearchAssetType = "transform" )
Defines values for ElasticsearchAssetType.
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 Error ¶
type Error struct {
Error *string `json:"error,omitempty"`
Message *string `json:"message,omitempty"`
StatusCode *float32 `json:"statusCode,omitempty"`
}
Error defines model for error.
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"`
}
JSON400 *Error
}
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"`
}
JSON400 *Error
}
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 *OutputCreateRequest `json:"item,omitempty"`
}
JSON400 *Error
}
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 GetPackageParams ¶ added in v0.10.0
type GetPackageParams struct {
// IgnoreUnverified Ignore if the package is fails signature verification
IgnoreUnverified *bool `form:"ignoreUnverified,omitempty" json:"ignoreUnverified,omitempty"`
// Full Return all fields from the package manifest, not just those supported by the Elastic Package Registry
Full *bool `form:"full,omitempty" json:"full,omitempty"`
// Prerelease Whether to return prerelease versions of packages (e.g. beta, rc, preview)
Prerelease *bool `form:"prerelease,omitempty" json:"prerelease,omitempty"`
}
GetPackageParams defines parameters for GetPackage.
type GetPackagePolicyParams ¶ added in v0.10.0
type GetPackagePolicyParams struct {
// Format Simplified or legacy format for package inputs
Format *GetPackagePolicyParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}
GetPackagePolicyParams defines parameters for GetPackagePolicy.
type GetPackagePolicyParamsFormat ¶ added in v0.10.0
type GetPackagePolicyParamsFormat string
GetPackagePolicyParamsFormat defines parameters for GetPackagePolicy.
const ( GetPackagePolicyParamsFormatLegacy GetPackagePolicyParamsFormat = "legacy" GetPackagePolicyParamsFormatSimplified GetPackagePolicyParamsFormat = "simplified" )
Defines values for GetPackagePolicyParamsFormat.
type GetPackagePolicyResponse ¶ added in v0.10.0
type GetPackagePolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Item PackagePolicy `json:"item"`
}
JSON400 *Error
}
func ParseGetPackagePolicyResponse ¶ added in v0.10.0
func ParseGetPackagePolicyResponse(rsp *http.Response) (*GetPackagePolicyResponse, error)
ParseGetPackagePolicyResponse parses an HTTP response from a GetPackagePolicyWithResponse call
func (GetPackagePolicyResponse) Status ¶ added in v0.10.0
func (r GetPackagePolicyResponse) Status() string
Status returns HTTPResponse.Status
func (GetPackagePolicyResponse) StatusCode ¶ added in v0.10.0
func (r GetPackagePolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPackageResponse ¶ added in v0.10.0
type GetPackageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Item *PackageInfo `json:"item,omitempty"`
KeepPoliciesUpToDate *bool `json:"keepPoliciesUpToDate,omitempty"`
LatestVersion *string `json:"latestVersion,omitempty"`
LicensePath *string `json:"licensePath,omitempty"`
Notice *string `json:"notice,omitempty"`
// Deprecated:
SavedObject map[string]interface{} `json:"savedObject"`
Status PackageStatus `json:"status"`
}
JSON400 *Error
}
func ParseGetPackageResponse ¶ added in v0.10.0
func ParseGetPackageResponse(rsp *http.Response) (*GetPackageResponse, error)
ParseGetPackageResponse parses an HTTP response from a GetPackageWithResponse call
func (GetPackageResponse) Status ¶ added in v0.10.0
func (r GetPackageResponse) Status() string
Status returns HTTPResponse.Status
func (GetPackageResponse) StatusCode ¶ added in v0.10.0
func (r GetPackageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPackagesResponse ¶ added in v0.11.0
type GetPackagesResponse struct {
Items []SearchResult `json:"items"`
// Deprecated:
Response *[]SearchResult `json:"response,omitempty"`
}
GetPackagesResponse defines model for get_packages_response.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InstallPackageJSONBody ¶ added in v0.10.0
type InstallPackageJSONBody struct {
Force *bool `json:"force,omitempty"`
IgnoreConstraints *bool `json:"ignore_constraints,omitempty"`
}
InstallPackageJSONBody defines parameters for InstallPackage.
type InstallPackageJSONRequestBody ¶ added in v0.10.0
type InstallPackageJSONRequestBody InstallPackageJSONBody
InstallPackageJSONRequestBody defines body for InstallPackage for application/json ContentType.
type InstallPackageParams ¶ added in v0.10.0
type InstallPackageParams struct {
// IgnoreUnverified Ignore if the package is fails signature verification
IgnoreUnverified *bool `form:"ignoreUnverified,omitempty" json:"ignoreUnverified,omitempty"`
// Full Return all fields from the package manifest, not just those supported by the Elastic Package Registry
Full *bool `form:"full,omitempty" json:"full,omitempty"`
// Prerelease Whether to return prerelease versions of packages (e.g. beta, rc, preview)
Prerelease *bool `form:"prerelease,omitempty" json:"prerelease,omitempty"`
}
InstallPackageParams defines parameters for InstallPackage.
type InstallPackageResponse ¶ added in v0.10.0
type InstallPackageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Meta *struct {
InstallSource *PackageInstallSource `json:"install_source,omitempty"`
} `json:"_meta,omitempty"`
Items []struct {
Id string `json:"id"`
Type PackageItemType `json:"type"`
} `json:"items"`
}
JSON400 *Error
}
func ParseInstallPackageResponse ¶ added in v0.10.0
func ParseInstallPackageResponse(rsp *http.Response) (*InstallPackageResponse, error)
ParseInstallPackageResponse parses an HTTP response from a InstallPackageWithResponse call
func (InstallPackageResponse) Status ¶ added in v0.10.0
func (r InstallPackageResponse) Status() string
Status returns HTTPResponse.Status
func (InstallPackageResponse) StatusCode ¶ added in v0.10.0
func (r InstallPackageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type KibanaSavedObjectType ¶ added in v0.10.0
type KibanaSavedObjectType string
KibanaSavedObjectType defines model for kibana_saved_object_type.
const ( CspRuleTemplate KibanaSavedObjectType = "csp_rule_template" Dashboard KibanaSavedObjectType = "dashboard" IndexPattern KibanaSavedObjectType = "index-pattern" Lens KibanaSavedObjectType = "lens" Map KibanaSavedObjectType = "map" MlModule KibanaSavedObjectType = "ml-module" Search KibanaSavedObjectType = "search" SecurityRule KibanaSavedObjectType = "security-rule" Visualization KibanaSavedObjectType = "visualization" )
Defines values for KibanaSavedObjectType.
type ListAllPackagesParams ¶ added in v0.11.0
type ListAllPackagesParams struct {
// ExcludeInstallStatus Whether to exclude the install status of each package. Enabling this option will opt in to caching for the response via `cache-control` headers. If you don't need up-to-date installation info for a package, and are querying for a list of available packages, providing this flag can improve performance substantially.
ExcludeInstallStatus *bool `form:"excludeInstallStatus,omitempty" json:"excludeInstallStatus,omitempty"`
// Prerelease Whether to return prerelease versions of packages (e.g. beta, rc, preview)
Prerelease *bool `form:"prerelease,omitempty" json:"prerelease,omitempty"`
Experimental *bool `form:"experimental,omitempty" json:"experimental,omitempty"`
Category *string `form:"category,omitempty" json:"category,omitempty"`
}
ListAllPackagesParams defines parameters for ListAllPackages.
type ListAllPackagesResponse ¶ added in v0.11.0
type ListAllPackagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetPackagesResponse
JSON400 *Error
}
func ParseListAllPackagesResponse ¶ added in v0.11.0
func ParseListAllPackagesResponse(rsp *http.Response) (*ListAllPackagesResponse, error)
ParseListAllPackagesResponse parses an HTTP response from a ListAllPackagesWithResponse call
func (ListAllPackagesResponse) Status ¶ added in v0.11.0
func (r ListAllPackagesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAllPackagesResponse) StatusCode ¶ added in v0.11.0
func (r ListAllPackagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NewPackagePolicy ¶
type NewPackagePolicy struct {
Description *string `json:"description,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Inputs map[string]PackagePolicyInput `json:"inputs"`
Name string `json:"name"`
Namespace *string `json:"namespace,omitempty"`
// Deprecated:
OutputId *string `json:"output_id,omitempty"`
Package *PackagePolicyPackageInfo `json:"package,omitempty"`
PolicyId *string `json:"policy_id,omitempty"`
SecretReferences *[]struct {
Id *string `json:"id,omitempty"`
} `json:"secret_references,omitempty"`
Vars *map[string]interface{} `json:"vars,omitempty"`
}
NewPackagePolicy defines model for new_package_policy.
type OutputCreateRequest ¶
type OutputCreateRequest struct {
// contains filtered or unexported fields
}
OutputCreateRequest defines model for output_create_request.
func (OutputCreateRequest) AsOutputCreateRequestElasticsearch ¶
func (t OutputCreateRequest) AsOutputCreateRequestElasticsearch() (OutputCreateRequestElasticsearch, error)
AsOutputCreateRequestElasticsearch returns the union data inside the OutputCreateRequest as a OutputCreateRequestElasticsearch
func (OutputCreateRequest) AsOutputCreateRequestKafka ¶
func (t OutputCreateRequest) AsOutputCreateRequestKafka() (OutputCreateRequestKafka, error)
AsOutputCreateRequestKafka returns the union data inside the OutputCreateRequest as a OutputCreateRequestKafka
func (OutputCreateRequest) AsOutputCreateRequestLogstash ¶
func (t OutputCreateRequest) AsOutputCreateRequestLogstash() (OutputCreateRequestLogstash, error)
AsOutputCreateRequestLogstash returns the union data inside the OutputCreateRequest as a OutputCreateRequestLogstash
func (OutputCreateRequest) Discriminator ¶
func (t OutputCreateRequest) Discriminator() (string, error)
func (*OutputCreateRequest) FromOutputCreateRequestElasticsearch ¶
func (t *OutputCreateRequest) FromOutputCreateRequestElasticsearch(v OutputCreateRequestElasticsearch) error
FromOutputCreateRequestElasticsearch overwrites any union data inside the OutputCreateRequest as the provided OutputCreateRequestElasticsearch
func (*OutputCreateRequest) FromOutputCreateRequestKafka ¶
func (t *OutputCreateRequest) FromOutputCreateRequestKafka(v OutputCreateRequestKafka) error
FromOutputCreateRequestKafka overwrites any union data inside the OutputCreateRequest as the provided OutputCreateRequestKafka
func (*OutputCreateRequest) FromOutputCreateRequestLogstash ¶
func (t *OutputCreateRequest) FromOutputCreateRequestLogstash(v OutputCreateRequestLogstash) error
FromOutputCreateRequestLogstash overwrites any union data inside the OutputCreateRequest as the provided OutputCreateRequestLogstash
func (OutputCreateRequest) MarshalJSON ¶
func (t OutputCreateRequest) MarshalJSON() ([]byte, error)
func (*OutputCreateRequest) MergeOutputCreateRequestElasticsearch ¶
func (t *OutputCreateRequest) MergeOutputCreateRequestElasticsearch(v OutputCreateRequestElasticsearch) error
MergeOutputCreateRequestElasticsearch performs a merge with any union data inside the OutputCreateRequest, using the provided OutputCreateRequestElasticsearch
func (*OutputCreateRequest) MergeOutputCreateRequestKafka ¶
func (t *OutputCreateRequest) MergeOutputCreateRequestKafka(v OutputCreateRequestKafka) error
MergeOutputCreateRequestKafka performs a merge with any union data inside the OutputCreateRequest, using the provided OutputCreateRequestKafka
func (*OutputCreateRequest) MergeOutputCreateRequestLogstash ¶
func (t *OutputCreateRequest) MergeOutputCreateRequestLogstash(v OutputCreateRequestLogstash) error
MergeOutputCreateRequestLogstash performs a merge with any union data inside the OutputCreateRequest, using the provided OutputCreateRequestLogstash
func (*OutputCreateRequest) UnmarshalJSON ¶
func (t *OutputCreateRequest) UnmarshalJSON(b []byte) error
func (OutputCreateRequest) ValueByDiscriminator ¶
func (t OutputCreateRequest) ValueByDiscriminator() (interface{}, error)
type OutputCreateRequestElasticsearch ¶
type OutputCreateRequestElasticsearch 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,omitempty"`
IsDefault *bool `json:"is_default,omitempty"`
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 OutputCreateRequestElasticsearchType `json:"type"`
}
OutputCreateRequestElasticsearch defines model for output_create_request_elasticsearch.
type OutputCreateRequestElasticsearchType ¶
type OutputCreateRequestElasticsearchType string
OutputCreateRequestElasticsearchType defines model for OutputCreateRequestElasticsearch.Type.
const (
OutputCreateRequestElasticsearchTypeElasticsearch OutputCreateRequestElasticsearchType = "elasticsearch"
)
Defines values for OutputCreateRequestElasticsearchType.
type OutputCreateRequestKafka ¶
type OutputCreateRequestKafka struct {
AuthType string `json:"auth_type"`
BrokerTimeout *float32 `json:"broker_timeout,omitempty"`
CaSha256 *string `json:"ca_sha256,omitempty"`
CaTrustedFingerprint *string `json:"ca_trusted_fingerprint,omitempty"`
ClientId *string `json:"client_id,omitempty"`
Compression *string `json:"compression,omitempty"`
CompressionLevel *float32 `json:"compression_level,omitempty"`
Config *map[string]interface{} `json:"config,omitempty"`
ConfigYaml *string `json:"config_yaml,omitempty"`
ConnectionType *OutputCreateRequestKafkaConnectionType `json:"connection_type,omitempty"`
Headers *[]struct {
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
} `json:"headers,omitempty"`
Hosts []string `json:"hosts"`
Id *string `json:"id,omitempty"`
IsDefault *bool `json:"is_default,omitempty"`
IsDefaultMonitoring *bool `json:"is_default_monitoring,omitempty"`
Key *string `json:"key,omitempty"`
Name string `json:"name"`
Partition *string `json:"partition,omitempty"`
Password *string `json:"password,omitempty"`
ProxyId *string `json:"proxy_id,omitempty"`
Random *struct {
GroupEvents *float32 `json:"group_events,omitempty"`
} `json:"random,omitempty"`
RequiredAcks *float32 `json:"required_acks,omitempty"`
RoundRobin *struct {
GroupEvents *float32 `json:"group_events,omitempty"`
} `json:"round_robin,omitempty"`
Sasl *struct {
Mechanism *string `json:"mechanism,omitempty"`
} `json:"sasl,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"`
VerificationMode *OutputCreateRequestKafkaSslVerificationMode `json:"verification_mode,omitempty"`
} `json:"ssl,omitempty"`
Timeout *float32 `json:"timeout,omitempty"`
Topics []struct {
Topic *string `json:"topic,omitempty"`
When *struct {
Condition *string `json:"condition,omitempty"`
Type *string `json:"type,omitempty"`
} `json:"when,omitempty"`
} `json:"topics"`
Type OutputCreateRequestKafkaType `json:"type"`
Username *string `json:"username,omitempty"`
Version *string `json:"version,omitempty"`
}
OutputCreateRequestKafka defines model for output_create_request_kafka.
type OutputCreateRequestKafkaConnectionType ¶
type OutputCreateRequestKafkaConnectionType string
OutputCreateRequestKafkaConnectionType defines model for OutputCreateRequestKafka.ConnectionType.
const ( OutputCreateRequestKafkaConnectionTypeEncryption OutputCreateRequestKafkaConnectionType = "encryption" OutputCreateRequestKafkaConnectionTypePlaintext OutputCreateRequestKafkaConnectionType = "plaintext" )
Defines values for OutputCreateRequestKafkaConnectionType.
type OutputCreateRequestKafkaSslVerificationMode ¶
type OutputCreateRequestKafkaSslVerificationMode string
OutputCreateRequestKafkaSslVerificationMode defines model for OutputCreateRequestKafka.Ssl.VerificationMode.
const ( OutputCreateRequestKafkaSslVerificationModeCertificate OutputCreateRequestKafkaSslVerificationMode = "certificate" OutputCreateRequestKafkaSslVerificationModeFull OutputCreateRequestKafkaSslVerificationMode = "full" OutputCreateRequestKafkaSslVerificationModeNone OutputCreateRequestKafkaSslVerificationMode = "none" OutputCreateRequestKafkaSslVerificationModeStrict OutputCreateRequestKafkaSslVerificationMode = "strict" )
Defines values for OutputCreateRequestKafkaSslVerificationMode.
type OutputCreateRequestKafkaType ¶
type OutputCreateRequestKafkaType string
OutputCreateRequestKafkaType defines model for OutputCreateRequestKafka.Type.
const (
OutputCreateRequestKafkaTypeKafka OutputCreateRequestKafkaType = "kafka"
)
Defines values for OutputCreateRequestKafkaType.
type OutputCreateRequestLogstash ¶
type OutputCreateRequestLogstash 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"`
Id *string `json:"id,omitempty"`
IsDefault *bool `json:"is_default,omitempty"`
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 OutputCreateRequestLogstashType `json:"type"`
}
OutputCreateRequestLogstash defines model for output_create_request_logstash.
type OutputCreateRequestLogstashType ¶
type OutputCreateRequestLogstashType string
OutputCreateRequestLogstashType defines model for OutputCreateRequestLogstash.Type.
const (
OutputCreateRequestLogstashTypeLogstash OutputCreateRequestLogstashType = "logstash"
)
Defines values for OutputCreateRequestLogstashType.
type OutputUpdateRequest ¶
type OutputUpdateRequest struct {
// contains filtered or unexported fields
}
OutputUpdateRequest defines model for output_update_request.
func (OutputUpdateRequest) AsOutputUpdateRequestElasticsearch ¶
func (t OutputUpdateRequest) AsOutputUpdateRequestElasticsearch() (OutputUpdateRequestElasticsearch, error)
AsOutputUpdateRequestElasticsearch returns the union data inside the OutputUpdateRequest as a OutputUpdateRequestElasticsearch
func (OutputUpdateRequest) AsOutputUpdateRequestKafka ¶
func (t OutputUpdateRequest) AsOutputUpdateRequestKafka() (OutputUpdateRequestKafka, error)
AsOutputUpdateRequestKafka returns the union data inside the OutputUpdateRequest as a OutputUpdateRequestKafka
func (OutputUpdateRequest) AsOutputUpdateRequestLogstash ¶
func (t OutputUpdateRequest) AsOutputUpdateRequestLogstash() (OutputUpdateRequestLogstash, error)
AsOutputUpdateRequestLogstash returns the union data inside the OutputUpdateRequest as a OutputUpdateRequestLogstash
func (OutputUpdateRequest) Discriminator ¶
func (t OutputUpdateRequest) Discriminator() (string, error)
func (*OutputUpdateRequest) FromOutputUpdateRequestElasticsearch ¶
func (t *OutputUpdateRequest) FromOutputUpdateRequestElasticsearch(v OutputUpdateRequestElasticsearch) error
FromOutputUpdateRequestElasticsearch overwrites any union data inside the OutputUpdateRequest as the provided OutputUpdateRequestElasticsearch
func (*OutputUpdateRequest) FromOutputUpdateRequestKafka ¶
func (t *OutputUpdateRequest) FromOutputUpdateRequestKafka(v OutputUpdateRequestKafka) error
FromOutputUpdateRequestKafka overwrites any union data inside the OutputUpdateRequest as the provided OutputUpdateRequestKafka
func (*OutputUpdateRequest) FromOutputUpdateRequestLogstash ¶
func (t *OutputUpdateRequest) FromOutputUpdateRequestLogstash(v OutputUpdateRequestLogstash) error
FromOutputUpdateRequestLogstash overwrites any union data inside the OutputUpdateRequest as the provided OutputUpdateRequestLogstash
func (OutputUpdateRequest) MarshalJSON ¶
func (t OutputUpdateRequest) MarshalJSON() ([]byte, error)
func (*OutputUpdateRequest) MergeOutputUpdateRequestElasticsearch ¶
func (t *OutputUpdateRequest) MergeOutputUpdateRequestElasticsearch(v OutputUpdateRequestElasticsearch) error
MergeOutputUpdateRequestElasticsearch performs a merge with any union data inside the OutputUpdateRequest, using the provided OutputUpdateRequestElasticsearch
func (*OutputUpdateRequest) MergeOutputUpdateRequestKafka ¶
func (t *OutputUpdateRequest) MergeOutputUpdateRequestKafka(v OutputUpdateRequestKafka) error
MergeOutputUpdateRequestKafka performs a merge with any union data inside the OutputUpdateRequest, using the provided OutputUpdateRequestKafka
func (*OutputUpdateRequest) MergeOutputUpdateRequestLogstash ¶
func (t *OutputUpdateRequest) MergeOutputUpdateRequestLogstash(v OutputUpdateRequestLogstash) error
MergeOutputUpdateRequestLogstash performs a merge with any union data inside the OutputUpdateRequest, using the provided OutputUpdateRequestLogstash
func (*OutputUpdateRequest) UnmarshalJSON ¶
func (t *OutputUpdateRequest) UnmarshalJSON(b []byte) error
func (OutputUpdateRequest) ValueByDiscriminator ¶
func (t OutputUpdateRequest) ValueByDiscriminator() (interface{}, error)
type OutputUpdateRequestElasticsearch ¶
type OutputUpdateRequestElasticsearch 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"`
Id *string `json:"id,omitempty"`
IsDefault *bool `json:"is_default,omitempty"`
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 OutputUpdateRequestElasticsearchType `json:"type"`
}
OutputUpdateRequestElasticsearch defines model for output_update_request_elasticsearch.
type OutputUpdateRequestElasticsearchType ¶
type OutputUpdateRequestElasticsearchType string
OutputUpdateRequestElasticsearchType defines model for OutputUpdateRequestElasticsearch.Type.
const (
OutputUpdateRequestElasticsearchTypeElasticsearch OutputUpdateRequestElasticsearchType = "elasticsearch"
)
Defines values for OutputUpdateRequestElasticsearchType.
type OutputUpdateRequestKafka ¶
type OutputUpdateRequestKafka struct {
AuthType *string `json:"auth_type,omitempty"`
BrokerTimeout *float32 `json:"broker_timeout,omitempty"`
CaSha256 *string `json:"ca_sha256,omitempty"`
CaTrustedFingerprint *string `json:"ca_trusted_fingerprint,omitempty"`
ClientId *string `json:"client_id,omitempty"`
Compression *string `json:"compression,omitempty"`
CompressionLevel *float32 `json:"compression_level,omitempty"`
Config *map[string]interface{} `json:"config,omitempty"`
ConfigYaml *string `json:"config_yaml,omitempty"`
ConnectionType *OutputUpdateRequestKafkaConnectionType `json:"connection_type,omitempty"`
Headers *[]struct {
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
} `json:"headers,omitempty"`
Hosts *[]string `json:"hosts,omitempty"`
Id *string `json:"id,omitempty"`
IsDefault *bool `json:"is_default,omitempty"`
IsDefaultMonitoring *bool `json:"is_default_monitoring,omitempty"`
Key *string `json:"key,omitempty"`
Name string `json:"name"`
Partition *string `json:"partition,omitempty"`
Password *string `json:"password,omitempty"`
ProxyId *string `json:"proxy_id,omitempty"`
Random *struct {
GroupEvents *float32 `json:"group_events,omitempty"`
} `json:"random,omitempty"`
RequiredAcks *float32 `json:"required_acks,omitempty"`
RoundRobin *struct {
GroupEvents *float32 `json:"group_events,omitempty"`
} `json:"round_robin,omitempty"`
Sasl *struct {
Mechanism *string `json:"mechanism,omitempty"`
} `json:"sasl,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"`
VerificationMode *OutputUpdateRequestKafkaSslVerificationMode `json:"verification_mode,omitempty"`
} `json:"ssl,omitempty"`
Timeout *float32 `json:"timeout,omitempty"`
Topics *[]struct {
Topic *string `json:"topic,omitempty"`
When *struct {
Condition *string `json:"condition,omitempty"`
Type *string `json:"type,omitempty"`
} `json:"when,omitempty"`
} `json:"topics,omitempty"`
Type OutputUpdateRequestKafkaType `json:"type"`
Username *string `json:"username,omitempty"`
Version *string `json:"version,omitempty"`
}
OutputUpdateRequestKafka defines model for output_update_request_kafka.
type OutputUpdateRequestKafkaConnectionType ¶
type OutputUpdateRequestKafkaConnectionType string
OutputUpdateRequestKafkaConnectionType defines model for OutputUpdateRequestKafka.ConnectionType.
const ( OutputUpdateRequestKafkaConnectionTypeEncryption OutputUpdateRequestKafkaConnectionType = "encryption" OutputUpdateRequestKafkaConnectionTypePlaintext OutputUpdateRequestKafkaConnectionType = "plaintext" )
Defines values for OutputUpdateRequestKafkaConnectionType.
type OutputUpdateRequestKafkaSslVerificationMode ¶
type OutputUpdateRequestKafkaSslVerificationMode string
OutputUpdateRequestKafkaSslVerificationMode defines model for OutputUpdateRequestKafka.Ssl.VerificationMode.
const ( OutputUpdateRequestKafkaSslVerificationModeCertificate OutputUpdateRequestKafkaSslVerificationMode = "certificate" OutputUpdateRequestKafkaSslVerificationModeFull OutputUpdateRequestKafkaSslVerificationMode = "full" OutputUpdateRequestKafkaSslVerificationModeNone OutputUpdateRequestKafkaSslVerificationMode = "none" OutputUpdateRequestKafkaSslVerificationModeStrict OutputUpdateRequestKafkaSslVerificationMode = "strict" )
Defines values for OutputUpdateRequestKafkaSslVerificationMode.
type OutputUpdateRequestKafkaType ¶
type OutputUpdateRequestKafkaType string
OutputUpdateRequestKafkaType defines model for OutputUpdateRequestKafka.Type.
const (
OutputUpdateRequestKafkaTypeKafka OutputUpdateRequestKafkaType = "kafka"
)
Defines values for OutputUpdateRequestKafkaType.
type OutputUpdateRequestLogstash ¶
type OutputUpdateRequestLogstash 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,omitempty"`
IsDefault *bool `json:"is_default,omitempty"`
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 OutputUpdateRequestLogstashType `json:"type"`
}
OutputUpdateRequestLogstash defines model for output_update_request_logstash.
type OutputUpdateRequestLogstashType ¶
type OutputUpdateRequestLogstashType string
OutputUpdateRequestLogstashType defines model for OutputUpdateRequestLogstash.Type.
const (
OutputUpdateRequestLogstashTypeLogstash OutputUpdateRequestLogstashType = "logstash"
)
Defines values for OutputUpdateRequestLogstashType.
type PackageInfo ¶ added in v0.10.0
type PackageInfo struct {
Assets []string `json:"assets"`
Categories []string `json:"categories"`
Conditions struct {
Elasticsearch *struct {
Subscription *PackageInfoConditionsElasticsearchSubscription `json:"subscription,omitempty"`
} `json:"elasticsearch,omitempty"`
Kibana *struct {
Versions *string `json:"versions,omitempty"`
} `json:"kibana,omitempty"`
} `json:"conditions"`
DataStreams *[]struct {
IngesetPipeline string `json:"ingeset_pipeline"`
Name string `json:"name"`
Package string `json:"package"`
Release string `json:"release"`
Title string `json:"title"`
Type string `json:"type"`
Vars *[]struct {
Default string `json:"default"`
Name string `json:"name"`
} `json:"vars,omitempty"`
} `json:"data_streams,omitempty"`
Description string `json:"description"`
Download string `json:"download"`
Elasticsearch *struct {
Privileges *struct {
Cluster *[]string `json:"cluster,omitempty"`
} `json:"privileges,omitempty"`
} `json:"elasticsearch,omitempty"`
FormatVersion string `json:"format_version"`
Icons *[]string `json:"icons,omitempty"`
Internal *bool `json:"internal,omitempty"`
Name string `json:"name"`
Path string `json:"path"`
Readme *string `json:"readme,omitempty"`
// Release release label is deprecated, derive from the version instead (packages follow semver)
// Deprecated:
Release *PackageInfoRelease `json:"release,omitempty"`
Screenshots *[]struct {
Path string `json:"path"`
Size *string `json:"size,omitempty"`
Src string `json:"src"`
Title *string `json:"title,omitempty"`
Type *string `json:"type,omitempty"`
} `json:"screenshots,omitempty"`
Source *struct {
License *PackageInfoSourceLicense `json:"license,omitempty"`
} `json:"source,omitempty"`
Title string `json:"title"`
Type string `json:"type"`
Version string `json:"version"`
}
PackageInfo defines model for package_info.
type PackageInfoConditionsElasticsearchSubscription ¶ added in v0.10.0
type PackageInfoConditionsElasticsearchSubscription string
PackageInfoConditionsElasticsearchSubscription defines model for PackageInfo.Conditions.Elasticsearch.Subscription.
const ( Basic PackageInfoConditionsElasticsearchSubscription = "basic" Enterprise PackageInfoConditionsElasticsearchSubscription = "enterprise" Gold PackageInfoConditionsElasticsearchSubscription = "gold" Platinum PackageInfoConditionsElasticsearchSubscription = "platinum" )
Defines values for PackageInfoConditionsElasticsearchSubscription.
type PackageInfoRelease ¶ added in v0.10.0
type PackageInfoRelease string
PackageInfoRelease release label is deprecated, derive from the version instead (packages follow semver)
const ( Beta PackageInfoRelease = "beta" Experimental PackageInfoRelease = "experimental" Ga PackageInfoRelease = "ga" )
Defines values for PackageInfoRelease.
type PackageInfoSourceLicense ¶ added in v0.10.0
type PackageInfoSourceLicense string
PackageInfoSourceLicense defines model for PackageInfo.Source.License.
const ( Apache20 PackageInfoSourceLicense = "Apache-2.0" Elastic20 PackageInfoSourceLicense = "Elastic-2.0" )
Defines values for PackageInfoSourceLicense.
type PackageInstallSource ¶ added in v0.10.0
type PackageInstallSource string
PackageInstallSource defines model for package_install_source.
const ( Bundled PackageInstallSource = "bundled" Registry PackageInstallSource = "registry" Upload PackageInstallSource = "upload" )
Defines values for PackageInstallSource.
type PackageItemType ¶ added in v0.10.0
type PackageItemType struct {
// contains filtered or unexported fields
}
PackageItemType defines model for package_item_type.
func (PackageItemType) AsElasticsearchAssetType ¶ added in v0.10.0
func (t PackageItemType) AsElasticsearchAssetType() (ElasticsearchAssetType, error)
AsElasticsearchAssetType returns the union data inside the PackageItemType as a ElasticsearchAssetType
func (PackageItemType) AsKibanaSavedObjectType ¶ added in v0.10.0
func (t PackageItemType) AsKibanaSavedObjectType() (KibanaSavedObjectType, error)
AsKibanaSavedObjectType returns the union data inside the PackageItemType as a KibanaSavedObjectType
func (*PackageItemType) FromElasticsearchAssetType ¶ added in v0.10.0
func (t *PackageItemType) FromElasticsearchAssetType(v ElasticsearchAssetType) error
FromElasticsearchAssetType overwrites any union data inside the PackageItemType as the provided ElasticsearchAssetType
func (*PackageItemType) FromKibanaSavedObjectType ¶ added in v0.10.0
func (t *PackageItemType) FromKibanaSavedObjectType(v KibanaSavedObjectType) error
FromKibanaSavedObjectType overwrites any union data inside the PackageItemType as the provided KibanaSavedObjectType
func (PackageItemType) MarshalJSON ¶ added in v0.10.0
func (t PackageItemType) MarshalJSON() ([]byte, error)
func (*PackageItemType) MergeElasticsearchAssetType ¶ added in v0.10.0
func (t *PackageItemType) MergeElasticsearchAssetType(v ElasticsearchAssetType) error
MergeElasticsearchAssetType performs a merge with any union data inside the PackageItemType, using the provided ElasticsearchAssetType
func (*PackageItemType) MergeKibanaSavedObjectType ¶ added in v0.10.0
func (t *PackageItemType) MergeKibanaSavedObjectType(v KibanaSavedObjectType) error
MergeKibanaSavedObjectType performs a merge with any union data inside the PackageItemType, using the provided KibanaSavedObjectType
func (*PackageItemType) UnmarshalJSON ¶ added in v0.10.0
func (t *PackageItemType) UnmarshalJSON(b []byte) error
type PackagePolicy ¶
type PackagePolicy struct {
Description *string `json:"description,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Id string `json:"id"`
Inputs map[string]PackagePolicyInput `json:"inputs"`
Name string `json:"name"`
Namespace *string `json:"namespace,omitempty"`
// Deprecated:
OutputId *string `json:"output_id,omitempty"`
Package *PackagePolicyPackageInfo `json:"package,omitempty"`
PolicyId *string `json:"policy_id,omitempty"`
Revision float32 `json:"revision"`
SecretReferences *[]struct {
Id *string `json:"id,omitempty"`
} `json:"secret_references,omitempty"`
Vars *map[string]interface{} `json:"vars,omitempty"`
}
PackagePolicy defines model for package_policy.
type PackagePolicyInput ¶ added in v0.10.0
type PackagePolicyInput struct {
Config *map[string]interface{} `json:"config,omitempty"`
Enabled bool `json:"enabled"`
Processors *[]string `json:"processors,omitempty"`
Streams *map[string]interface{} `json:"streams,omitempty"`
Type string `json:"type"`
Vars *map[string]interface{} `json:"vars,omitempty"`
}
PackagePolicyInput defines model for package_policy_input.
type PackagePolicyPackageInfo ¶ added in v0.10.0
type PackagePolicyPackageInfo struct {
Name string `json:"name"`
Title *string `json:"title,omitempty"`
Version string `json:"version"`
}
PackagePolicyPackageInfo defines model for package_policy_package_info.
type PackagePolicyRequest ¶ added in v0.10.0
type PackagePolicyRequest struct {
// Description Package policy description
Description *string `json:"description,omitempty"`
// Force Force package policy creation even if package is not verified, or if the agent policy is managed.
Force *bool `json:"force,omitempty"`
// Id Package policy unique identifier
Id *string `json:"id,omitempty"`
// Inputs Package policy inputs (see integration documentation to know what inputs are available)
Inputs *map[string]PackagePolicyRequestInput `json:"inputs,omitempty"`
// Name Package policy name (should be unique)
Name string `json:"name"`
// Namespace namespace by default "default"
Namespace *string `json:"namespace,omitempty"`
Package struct {
// Name Package name
Name string `json:"name"`
// Version Package version
Version string `json:"version"`
} `json:"package"`
// PolicyId Agent policy ID where that package policy will be added
PolicyId string `json:"policy_id"`
// Vars Package root level variable (see integration documentation for more information)
Vars *map[string]interface{} `json:"vars,omitempty"`
}
PackagePolicyRequest defines model for package_policy_request.
type PackagePolicyRequestInput ¶ added in v0.10.0
type PackagePolicyRequestInput struct {
// Enabled enable or disable that input, (default to true)
Enabled *bool `json:"enabled,omitempty"`
// Streams Input streams (see integration documentation to know what streams are available)
Streams *map[string]PackagePolicyRequestInputStream `json:"streams,omitempty"`
// Vars Input level variable (see integration documentation for more information)
Vars *map[string]interface{} `json:"vars,omitempty"`
}
PackagePolicyRequestInput defines model for package_policy_request_input.
type PackagePolicyRequestInputStream ¶ added in v0.10.0
type PackagePolicyRequestInputStream struct {
// Enabled enable or disable that stream, (default to true)
Enabled *bool `json:"enabled,omitempty"`
// Vars Stream level variable (see integration documentation for more information)
Vars *map[string]interface{} `json:"vars,omitempty"`
}
PackagePolicyRequestInputStream defines model for package_policy_request_input_stream.
type PackageStatus ¶ added in v0.10.0
type PackageStatus string
PackageStatus defines model for package_status.
const ( InstallFailed PackageStatus = "install_failed" Installed PackageStatus = "installed" Installing PackageStatus = "installing" NotInstalled PackageStatus = "not_installed" )
Defines values for PackageStatus.
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"`
}
JSON400 *Error
}
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 PostOutputsJSONRequestBody ¶
type PostOutputsJSONRequestBody = OutputCreateRequest
PostOutputsJSONRequestBody defines body for PostOutputs for application/json ContentType.
type PostOutputsResponse ¶
type PostOutputsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Item *OutputCreateRequest `json:"item,omitempty"`
}
JSON400 *Error
}
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 SearchResult ¶ added in v0.11.0
type SearchResult struct {
Description string `json:"description"`
Download string `json:"download"`
Name string `json:"name"`
Path string `json:"path"`
// Deprecated:
SavedObject *map[string]interface{} `json:"savedObject,omitempty"`
Status string `json:"status"`
Title string `json:"title"`
Type string `json:"type"`
Version string `json:"version"`
}
SearchResult defines model for search_result.
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"`
}
JSON400 *Error
}
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"`
}
JSON400 *Error
}
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 UpdateOutputJSONRequestBody ¶
type UpdateOutputJSONRequestBody = OutputUpdateRequest
UpdateOutputJSONRequestBody defines body for UpdateOutput for application/json ContentType.
type UpdateOutputResponse ¶
type UpdateOutputResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Item *OutputUpdateRequest `json:"item,omitempty"`
}
JSON400 *Error
}
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
type UpdatePackageJSONBody ¶ added in v0.10.0
type UpdatePackageJSONBody struct {
KeepPoliciesUpToDate *bool `json:"keepPoliciesUpToDate,omitempty"`
}
UpdatePackageJSONBody defines parameters for UpdatePackage.
type UpdatePackageJSONRequestBody ¶ added in v0.10.0
type UpdatePackageJSONRequestBody UpdatePackageJSONBody
UpdatePackageJSONRequestBody defines body for UpdatePackage for application/json ContentType.
type UpdatePackageParams ¶ added in v0.10.0
type UpdatePackageParams struct {
// IgnoreUnverified Ignore if the package is fails signature verification
IgnoreUnverified *bool `form:"ignoreUnverified,omitempty" json:"ignoreUnverified,omitempty"`
// Full Return all fields from the package manifest, not just those supported by the Elastic Package Registry
Full *bool `form:"full,omitempty" json:"full,omitempty"`
// Prerelease Whether to return prerelease versions of packages (e.g. beta, rc, preview)
Prerelease *bool `form:"prerelease,omitempty" json:"prerelease,omitempty"`
}
UpdatePackageParams defines parameters for UpdatePackage.
type UpdatePackagePolicyJSONRequestBody ¶ added in v0.10.0
type UpdatePackagePolicyJSONRequestBody = PackagePolicyRequest
UpdatePackagePolicyJSONRequestBody defines body for UpdatePackagePolicy for application/json ContentType.
type UpdatePackagePolicyParams ¶ added in v0.10.0
type UpdatePackagePolicyParams struct {
// Format Simplified or legacy format for package inputs
Format *UpdatePackagePolicyParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}
UpdatePackagePolicyParams defines parameters for UpdatePackagePolicy.
type UpdatePackagePolicyParamsFormat ¶ added in v0.10.0
type UpdatePackagePolicyParamsFormat string
UpdatePackagePolicyParamsFormat defines parameters for UpdatePackagePolicy.
const ( UpdatePackagePolicyParamsFormatLegacy UpdatePackagePolicyParamsFormat = "legacy" UpdatePackagePolicyParamsFormatSimplified UpdatePackagePolicyParamsFormat = "simplified" )
Defines values for UpdatePackagePolicyParamsFormat.
type UpdatePackagePolicyResponse ¶ added in v0.10.0
type UpdatePackagePolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Item PackagePolicy `json:"item"`
Sucess bool `json:"sucess"`
}
JSON400 *Error
}
func ParseUpdatePackagePolicyResponse ¶ added in v0.10.0
func ParseUpdatePackagePolicyResponse(rsp *http.Response) (*UpdatePackagePolicyResponse, error)
ParseUpdatePackagePolicyResponse parses an HTTP response from a UpdatePackagePolicyWithResponse call
func (UpdatePackagePolicyResponse) Status ¶ added in v0.10.0
func (r UpdatePackagePolicyResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePackagePolicyResponse) StatusCode ¶ added in v0.10.0
func (r UpdatePackagePolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatePackageResponse ¶ added in v0.10.0
type UpdatePackageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Items []struct {
Id string `json:"id"`
Type PackageItemType `json:"type"`
} `json:"items"`
}
JSON400 *Error
}
func ParseUpdatePackageResponse ¶ added in v0.10.0
func ParseUpdatePackageResponse(rsp *http.Response) (*UpdatePackageResponse, error)
ParseUpdatePackageResponse parses an HTTP response from a UpdatePackageWithResponse call
func (UpdatePackageResponse) Status ¶ added in v0.10.0
func (r UpdatePackageResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePackageResponse) StatusCode ¶ added in v0.10.0
func (r UpdatePackageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode