logpushjobsapiv1

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package logpushjobsapiv1 : Operations and models for the LogpushJobsApiV1 service

Index

Constants

View Source
const (
	CreateLogpushJobV2Request_Dataset_FirewallEvents = "firewall_events"
	CreateLogpushJobV2Request_Dataset_HttpRequests   = "http_requests"
	CreateLogpushJobV2Request_Dataset_RangeEvents    = "range_events"
)

Constants associated with the CreateLogpushJobV2Request.Dataset property. Dataset to be pulled.

View Source
const (
	CreateLogpushJobV2Request_Frequency_High = "high"
	CreateLogpushJobV2Request_Frequency_Low  = "low"
)

Constants associated with the CreateLogpushJobV2Request.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	UpdateLogpushJobV2Request_Frequency_High = "high"
	UpdateLogpushJobV2Request_Frequency_Low  = "low"
)

Constants associated with the UpdateLogpushJobV2Request.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	UpdateLogpushJobV2Request_Dataset_FirewallEvents = "firewall_events"
	UpdateLogpushJobV2Request_Dataset_HttpRequests   = "http_requests"
	UpdateLogpushJobV2Request_Dataset_RangeEvents    = "range_events"
)

Constants associated with the UpdateLogpushJobV2Request.Dataset property. Dataset to be pulled.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobCosReq_Dataset_FirewallEvents = "firewall_events"
	CreateLogpushJobV2RequestLogpushJobCosReq_Dataset_HttpRequests   = "http_requests"
	CreateLogpushJobV2RequestLogpushJobCosReq_Dataset_RangeEvents    = "range_events"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobCosReq.Dataset property. Dataset to be pulled.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobCosReq_Frequency_High = "high"
	CreateLogpushJobV2RequestLogpushJobCosReq_Frequency_Low  = "low"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobCosReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobGenericReq_Dataset_FirewallEvents = "firewall_events"
	CreateLogpushJobV2RequestLogpushJobGenericReq_Dataset_HttpRequests   = "http_requests"
	CreateLogpushJobV2RequestLogpushJobGenericReq_Dataset_RangeEvents    = "range_events"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobGenericReq.Dataset property. Dataset to be pulled.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobGenericReq_Frequency_High = "high"
	CreateLogpushJobV2RequestLogpushJobGenericReq_Frequency_Low  = "low"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobGenericReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobIbmclReq_Dataset_FirewallEvents = "firewall_events"
	CreateLogpushJobV2RequestLogpushJobIbmclReq_Dataset_HttpRequests   = "http_requests"
	CreateLogpushJobV2RequestLogpushJobIbmclReq_Dataset_RangeEvents    = "range_events"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobIbmclReq.Dataset property. Dataset to be pulled.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobIbmclReq_Frequency_High = "high"
	CreateLogpushJobV2RequestLogpushJobIbmclReq_Frequency_Low  = "low"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobIbmclReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobLogdnaReq_Dataset_FirewallEvents = "firewall_events"
	CreateLogpushJobV2RequestLogpushJobLogdnaReq_Dataset_HttpRequests   = "http_requests"
	CreateLogpushJobV2RequestLogpushJobLogdnaReq_Dataset_RangeEvents    = "range_events"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobLogdnaReq.Dataset property. Dataset to be pulled.

View Source
const (
	CreateLogpushJobV2RequestLogpushJobLogdnaReq_Frequency_High = "high"
	CreateLogpushJobV2RequestLogpushJobLogdnaReq_Frequency_Low  = "low"
)

Constants associated with the CreateLogpushJobV2RequestLogpushJobLogdnaReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq_Frequency_High = "high"
	UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq_Frequency_Low  = "low"
)

Constants associated with the UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq_Dataset_FirewallEvents = "firewall_events"
	UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq_Dataset_HttpRequests   = "http_requests"
	UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq_Dataset_RangeEvents    = "range_events"
)

Constants associated with the UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq.Dataset property. Dataset to be pulled.

View Source
const (
	UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq_Frequency_High = "high"
	UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq_Frequency_Low  = "low"
)

Constants associated with the UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq_Frequency_High = "high"
	UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq_Frequency_Low  = "low"
)

Constants associated with the UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const (
	UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq_Frequency_High = "high"
	UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq_Frequency_Low  = "low"
)

Constants associated with the UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq.Frequency property. The frequency at which CIS sends batches of logs to your destination.

View Source
const DefaultServiceName = "logpush_jobs_api"

DefaultServiceName is the default key used to find external configuration information.

View Source
const DefaultServiceURL = "https://api.cis.cloud.ibm.com"

DefaultServiceURL is the default URL to make service requests to.

Variables

This section is empty.

Functions

func GetServiceURLForRegion

func GetServiceURLForRegion(region string) (string, error)

GetServiceURLForRegion returns the service URL to be used for the specified region

func UnmarshalCreateLogpushJobV2Request

func UnmarshalCreateLogpushJobV2Request(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalCreateLogpushJobV2Request unmarshals an instance of CreateLogpushJobV2Request from the specified map of raw messages.

func UnmarshalCreateLogpushJobV2RequestLogpushJobCosReq

func UnmarshalCreateLogpushJobV2RequestLogpushJobCosReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalCreateLogpushJobV2RequestLogpushJobCosReq unmarshals an instance of CreateLogpushJobV2RequestLogpushJobCosReq from the specified map of raw messages.

func UnmarshalCreateLogpushJobV2RequestLogpushJobGenericReq added in v0.51.0

func UnmarshalCreateLogpushJobV2RequestLogpushJobGenericReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalCreateLogpushJobV2RequestLogpushJobGenericReq unmarshals an instance of CreateLogpushJobV2RequestLogpushJobGenericReq from the specified map of raw messages.

func UnmarshalCreateLogpushJobV2RequestLogpushJobIbmclReq added in v0.51.0

func UnmarshalCreateLogpushJobV2RequestLogpushJobIbmclReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalCreateLogpushJobV2RequestLogpushJobIbmclReq unmarshals an instance of CreateLogpushJobV2RequestLogpushJobIbmclReq from the specified map of raw messages.

func UnmarshalCreateLogpushJobV2RequestLogpushJobLogdnaReq

func UnmarshalCreateLogpushJobV2RequestLogpushJobLogdnaReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalCreateLogpushJobV2RequestLogpushJobLogdnaReq unmarshals an instance of CreateLogpushJobV2RequestLogpushJobLogdnaReq from the specified map of raw messages.

func UnmarshalDeleteLogpushJobResp

func UnmarshalDeleteLogpushJobResp(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalDeleteLogpushJobResp unmarshals an instance of DeleteLogpushJobResp from the specified map of raw messages.

func UnmarshalListFieldsResp

func UnmarshalListFieldsResp(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListFieldsResp unmarshals an instance of ListFieldsResp from the specified map of raw messages.

func UnmarshalListLogpushJobsResp

func UnmarshalListLogpushJobsResp(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListLogpushJobsResp unmarshals an instance of ListLogpushJobsResp from the specified map of raw messages.

func UnmarshalLogRetentionResp added in v0.51.0

func UnmarshalLogRetentionResp(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLogRetentionResp unmarshals an instance of LogRetentionResp from the specified map of raw messages.

func UnmarshalLogRetentionRespResult added in v0.51.0

func UnmarshalLogRetentionRespResult(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLogRetentionRespResult unmarshals an instance of LogRetentionRespResult from the specified map of raw messages.

func UnmarshalLogpushJobIbmclReqIbmcl added in v0.51.0

func UnmarshalLogpushJobIbmclReqIbmcl(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLogpushJobIbmclReqIbmcl unmarshals an instance of LogpushJobIbmclReqIbmcl from the specified map of raw messages.

func UnmarshalLogpushJobPack

func UnmarshalLogpushJobPack(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLogpushJobPack unmarshals an instance of LogpushJobPack from the specified map of raw messages.

func UnmarshalLogpushJobsResp

func UnmarshalLogpushJobsResp(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLogpushJobsResp unmarshals an instance of LogpushJobsResp from the specified map of raw messages.

func UnmarshalLogpushJobsUpdateIbmclReqIbmcl added in v0.51.0

func UnmarshalLogpushJobsUpdateIbmclReqIbmcl(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLogpushJobsUpdateIbmclReqIbmcl unmarshals an instance of LogpushJobsUpdateIbmclReqIbmcl from the specified map of raw messages.

func UnmarshalOwnershipChallengeResp

func UnmarshalOwnershipChallengeResp(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalOwnershipChallengeResp unmarshals an instance of OwnershipChallengeResp from the specified map of raw messages.

func UnmarshalOwnershipChallengeResult

func UnmarshalOwnershipChallengeResult(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalOwnershipChallengeResult unmarshals an instance of OwnershipChallengeResult from the specified map of raw messages.

func UnmarshalOwnershipChallengeValidateResult

func UnmarshalOwnershipChallengeValidateResult(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalOwnershipChallengeValidateResult unmarshals an instance of OwnershipChallengeValidateResult from the specified map of raw messages.

func UnmarshalUpdateLogpushJobV2Request

func UnmarshalUpdateLogpushJobV2Request(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalUpdateLogpushJobV2Request unmarshals an instance of UpdateLogpushJobV2Request from the specified map of raw messages.

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateCosReq

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateCosReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateCosReq unmarshals an instance of UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq from the specified map of raw messages.

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq added in v0.51.0

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq unmarshals an instance of UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq from the specified map of raw messages.

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq added in v0.51.0

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq unmarshals an instance of UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq from the specified map of raw messages.

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq

func UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalUpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq unmarshals an instance of UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq from the specified map of raw messages.

Types

type CreateLogRetentionOptions added in v0.51.0

type CreateLogRetentionOptions struct {
	Flag *bool `json:"flag,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

CreateLogRetentionOptions : The CreateLogRetention options.

func (*CreateLogRetentionOptions) SetFlag added in v0.51.0

func (_options *CreateLogRetentionOptions) SetFlag(flag bool) *CreateLogRetentionOptions

SetFlag : Allow user to set Flag

func (*CreateLogRetentionOptions) SetHeaders added in v0.51.0

func (options *CreateLogRetentionOptions) SetHeaders(param map[string]string) *CreateLogRetentionOptions

SetHeaders : Allow user to set Headers

type CreateLogpushJobV2Options

type CreateLogpushJobV2Options struct {
	// Create logpush job body.
	CreateLogpushJobV2Request CreateLogpushJobV2RequestIntf `json:"CreateLogpushJobV2Request,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

CreateLogpushJobV2Options : The CreateLogpushJobV2 options.

func (*CreateLogpushJobV2Options) SetCreateLogpushJobV2Request

func (_options *CreateLogpushJobV2Options) SetCreateLogpushJobV2Request(createLogpushJobV2Request CreateLogpushJobV2RequestIntf) *CreateLogpushJobV2Options

SetCreateLogpushJobV2Request : Allow user to set CreateLogpushJobV2Request

func (*CreateLogpushJobV2Options) SetHeaders

func (options *CreateLogpushJobV2Options) SetHeaders(param map[string]string) *CreateLogpushJobV2Options

SetHeaders : Allow user to set Headers

type CreateLogpushJobV2Request

type CreateLogpushJobV2Request struct {
	// Logpush Job Name.
	Name *string `json:"name,omitempty"`

	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Information to identify the COS bucket where the data will be pushed.
	Cos map[string]interface{} `json:"cos,omitempty"`

	// Ownership challenge token to prove destination ownership.
	OwnershipChallenge *string `json:"ownership_challenge,omitempty"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`

	// Information to identify the LogDNA instance the data will be pushed.
	Logdna map[string]interface{} `json:"logdna,omitempty"`

	// Required information to push logs to your Cloud Logs instance.
	Ibmcl *LogpushJobIbmclReqIbmcl `json:"ibmcl,omitempty"`

	// Uniquely identifies a resource where data will be pushed. Additional configuration parameters supported by the
	// destination may be included.
	DestinationConf *string `json:"destination_conf,omitempty"`
}

CreateLogpushJobV2Request : CreateLogpushJobV2Request struct Models which "extend" this model: - CreateLogpushJobV2RequestLogpushJobCosReq - CreateLogpushJobV2RequestLogpushJobLogdnaReq - CreateLogpushJobV2RequestLogpushJobIbmclReq - CreateLogpushJobV2RequestLogpushJobGenericReq

type CreateLogpushJobV2RequestIntf

type CreateLogpushJobV2RequestIntf interface {
	// contains filtered or unexported methods
}

type CreateLogpushJobV2RequestLogpushJobCosReq

type CreateLogpushJobV2RequestLogpushJobCosReq struct {
	// Logpush Job Name.
	Name *string `json:"name,omitempty"`

	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Information to identify the COS bucket where the data will be pushed.
	Cos map[string]interface{} `json:"cos" validate:"required"`

	// Ownership challenge token to prove destination ownership.
	OwnershipChallenge *string `json:"ownership_challenge" validate:"required"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

CreateLogpushJobV2RequestLogpushJobCosReq : Create COS logpush job input. This model "extends" CreateLogpushJobV2Request

type CreateLogpushJobV2RequestLogpushJobGenericReq added in v0.51.0

type CreateLogpushJobV2RequestLogpushJobGenericReq struct {
	// Logpush Job Name.
	Name *string `json:"name,omitempty"`

	// Whether the logpush job is enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Uniquely identifies a resource where data will be pushed. Additional configuration parameters supported by the
	// destination may be included.
	DestinationConf *string `json:"destination_conf" validate:"required"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

CreateLogpushJobV2RequestLogpushJobGenericReq : Create logpush job for a generic destination. This model "extends" CreateLogpushJobV2Request

type CreateLogpushJobV2RequestLogpushJobIbmclReq added in v0.51.0

type CreateLogpushJobV2RequestLogpushJobIbmclReq struct {
	// Logpush Job Name.
	Name *string `json:"name,omitempty"`

	// Whether the logpush job is enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Required information to push logs to your Cloud Logs instance.
	Ibmcl *LogpushJobIbmclReqIbmcl `json:"ibmcl" validate:"required"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

CreateLogpushJobV2RequestLogpushJobIbmclReq : Create IBM Cloud Logs logpush job input. This model "extends" CreateLogpushJobV2Request

type CreateLogpushJobV2RequestLogpushJobLogdnaReq

type CreateLogpushJobV2RequestLogpushJobLogdnaReq struct {
	// Logpush Job Name.
	Name *string `json:"name,omitempty"`

	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Information to identify the LogDNA instance the data will be pushed.
	Logdna map[string]interface{} `json:"logdna" validate:"required"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

CreateLogpushJobV2RequestLogpushJobLogdnaReq : Create LogDNA logpush job input. This model "extends" CreateLogpushJobV2Request

type DeleteLogpushJobResp

type DeleteLogpushJobResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// result.
	Result map[string]interface{} `json:"result" validate:"required"`
}

DeleteLogpushJobResp : delete logpush job response.

type DeleteLogpushJobV2Options

type DeleteLogpushJobV2Options struct {
	// logpush job identifier.
	JobID *string `json:"job_id" validate:"required,ne="`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

DeleteLogpushJobV2Options : The DeleteLogpushJobV2 options.

func (*DeleteLogpushJobV2Options) SetHeaders

func (options *DeleteLogpushJobV2Options) SetHeaders(param map[string]string) *DeleteLogpushJobV2Options

SetHeaders : Allow user to set Headers

func (*DeleteLogpushJobV2Options) SetJobID

func (_options *DeleteLogpushJobV2Options) SetJobID(jobID string) *DeleteLogpushJobV2Options

SetJobID : Allow user to set JobID

type GetLogpushJobV2Options

type GetLogpushJobV2Options struct {
	// logpush job identifier.
	JobID *string `json:"job_id" validate:"required,ne="`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

GetLogpushJobV2Options : The GetLogpushJobV2 options.

func (*GetLogpushJobV2Options) SetHeaders

func (options *GetLogpushJobV2Options) SetHeaders(param map[string]string) *GetLogpushJobV2Options

SetHeaders : Allow user to set Headers

func (*GetLogpushJobV2Options) SetJobID

func (_options *GetLogpushJobV2Options) SetJobID(jobID string) *GetLogpushJobV2Options

SetJobID : Allow user to set JobID

type GetLogpushJobsV2Options

type GetLogpushJobsV2Options struct {

	// Allows users to set headers on API requests.
	Headers map[string]string
}

GetLogpushJobsV2Options : The GetLogpushJobsV2 options.

func (*GetLogpushJobsV2Options) SetHeaders

func (options *GetLogpushJobsV2Options) SetHeaders(param map[string]string) *GetLogpushJobsV2Options

SetHeaders : Allow user to set Headers

type GetLogpushOwnershipV2Options

type GetLogpushOwnershipV2Options struct {
	// Information to identify the COS bucket where the data will be pushed.
	Cos map[string]interface{} `json:"cos,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

GetLogpushOwnershipV2Options : The GetLogpushOwnershipV2 options.

func (*GetLogpushOwnershipV2Options) SetCos

func (_options *GetLogpushOwnershipV2Options) SetCos(cos map[string]interface{}) *GetLogpushOwnershipV2Options

SetCos : Allow user to set Cos

func (*GetLogpushOwnershipV2Options) SetHeaders

SetHeaders : Allow user to set Headers

type GetLogsRetentionOptions added in v0.51.0

type GetLogsRetentionOptions struct {

	// Allows users to set headers on API requests.
	Headers map[string]string
}

GetLogsRetentionOptions : The GetLogsRetention options.

func (*GetLogsRetentionOptions) SetHeaders added in v0.51.0

func (options *GetLogsRetentionOptions) SetHeaders(param map[string]string) *GetLogsRetentionOptions

SetHeaders : Allow user to set Headers

type ListFieldsForDatasetV2Options

type ListFieldsForDatasetV2Options struct {

	// Allows users to set headers on API requests.
	Headers map[string]string
}

ListFieldsForDatasetV2Options : The ListFieldsForDatasetV2 options.

func (*ListFieldsForDatasetV2Options) SetHeaders

SetHeaders : Allow user to set Headers

type ListFieldsResp

type ListFieldsResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// result.
	Result map[string]interface{} `json:"result,omitempty"`
}

ListFieldsResp : list fields response.

type ListLogpushJobsForDatasetV2Options

type ListLogpushJobsForDatasetV2Options struct {

	// Allows users to set headers on API requests.
	Headers map[string]string
}

ListLogpushJobsForDatasetV2Options : The ListLogpushJobsForDatasetV2 options.

func (*ListLogpushJobsForDatasetV2Options) SetHeaders

SetHeaders : Allow user to set Headers

type ListLogpushJobsResp

type ListLogpushJobsResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// result.
	Result []LogpushJobPack `json:"result" validate:"required"`
}

ListLogpushJobsResp : List Logpush Jobs Response.

type LogRetentionResp added in v0.51.0

type LogRetentionResp struct {
	Result *LogRetentionRespResult `json:"result,omitempty"`

	// success response.
	Success *bool `json:"success,omitempty"`

	// errors.
	Errors [][]string `json:"errors,omitempty"`

	// messages.
	Messages [][]string `json:"messages,omitempty"`
}

LogRetentionResp : log retention result.

type LogRetentionRespResult added in v0.51.0

type LogRetentionRespResult struct {
	Flag *bool `json:"flag,omitempty"`
}

LogRetentionRespResult : LogRetentionRespResult struct

type LogpushJobIbmclReqIbmcl added in v0.51.0

type LogpushJobIbmclReqIbmcl struct {
	// GUID of the IBM Cloud Logs instance where you want to send logs.
	InstanceID *string `json:"instance_id" validate:"required"`

	// Region where the IBM Cloud Logs instance is located.
	Region *string `json:"region" validate:"required"`

	// IBM Cloud API key used to generate a token for pushing to your Cloud Logs instance.
	ApiKey *string `json:"api_key" validate:"required"`
}

LogpushJobIbmclReqIbmcl : Required information to push logs to your Cloud Logs instance.

type LogpushJobPack

type LogpushJobPack struct {
	// Logpush Job ID.
	ID *int64 `json:"id" validate:"required"`

	// Logpush Job Name.
	Name *string `json:"name" validate:"required"`

	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled" validate:"required"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset" validate:"required"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency" validate:"required"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options" validate:"required"`

	// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
	DestinationConf *string `json:"destination_conf" validate:"required"`

	// Records the last time for which logs have been successfully pushed.
	LastComplete *string `json:"last_complete" validate:"required"`

	// Records the last time the job failed.
	LastError *string `json:"last_error" validate:"required"`

	// The last failure.
	ErrorMessage *string `json:"error_message" validate:"required"`
}

LogpushJobPack : logpush job pack.

type LogpushJobsApiV1

type LogpushJobsApiV1 struct {
	Service *core.BaseService

	// Full URL-encoded CRN of the service instance.
	Crn *string

	// The dataset.
	Dataset *string

	// Zone identifier.
	ZoneID *string
}

LogpushJobsApiV1 : CIS Logpush Jobs

API Version: 1.0.0

func NewLogpushJobsApiV1

func NewLogpushJobsApiV1(options *LogpushJobsApiV1Options) (service *LogpushJobsApiV1, err error)

NewLogpushJobsApiV1 : constructs an instance of LogpushJobsApiV1 with passed in options.

func NewLogpushJobsApiV1UsingExternalConfig

func NewLogpushJobsApiV1UsingExternalConfig(options *LogpushJobsApiV1Options) (logpushJobsApi *LogpushJobsApiV1, err error)

NewLogpushJobsApiV1UsingExternalConfig : constructs an instance of LogpushJobsApiV1 with passed in options and external configuration.

func (*LogpushJobsApiV1) Clone

func (logpushJobsApi *LogpushJobsApiV1) Clone() *LogpushJobsApiV1

Clone makes a copy of "logpushJobsApi" suitable for processing requests.

func (*LogpushJobsApiV1) CreateLogRetention added in v0.51.0

func (logpushJobsApi *LogpushJobsApiV1) CreateLogRetention(createLogRetentionOptions *CreateLogRetentionOptions) (result *LogRetentionResp, response *core.DetailedResponse, err error)

CreateLogRetention : Update log retention Update log retention flag for Logpull/Logpush.

func (*LogpushJobsApiV1) CreateLogRetentionWithContext added in v0.51.0

func (logpushJobsApi *LogpushJobsApiV1) CreateLogRetentionWithContext(ctx context.Context, createLogRetentionOptions *CreateLogRetentionOptions) (result *LogRetentionResp, response *core.DetailedResponse, err error)

CreateLogRetentionWithContext is an alternate form of the CreateLogRetention method which supports a Context parameter

func (*LogpushJobsApiV1) CreateLogpushJobV2

func (logpushJobsApi *LogpushJobsApiV1) CreateLogpushJobV2(createLogpushJobV2Options *CreateLogpushJobV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

CreateLogpushJobV2 : Create a logpush jobs Create a new logpush job for the domain.

func (*LogpushJobsApiV1) CreateLogpushJobV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) CreateLogpushJobV2WithContext(ctx context.Context, createLogpushJobV2Options *CreateLogpushJobV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

CreateLogpushJobV2WithContext is an alternate form of the CreateLogpushJobV2 method which supports a Context parameter

func (*LogpushJobsApiV1) DeleteLogpushJobV2

func (logpushJobsApi *LogpushJobsApiV1) DeleteLogpushJobV2(deleteLogpushJobV2Options *DeleteLogpushJobV2Options) (result *DeleteLogpushJobResp, response *core.DetailedResponse, err error)

DeleteLogpushJobV2 : Delete a logpush job Delete a logpush job for a zone.

func (*LogpushJobsApiV1) DeleteLogpushJobV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) DeleteLogpushJobV2WithContext(ctx context.Context, deleteLogpushJobV2Options *DeleteLogpushJobV2Options) (result *DeleteLogpushJobResp, response *core.DetailedResponse, err error)

DeleteLogpushJobV2WithContext is an alternate form of the DeleteLogpushJobV2 method which supports a Context parameter

func (*LogpushJobsApiV1) DisableRetries

func (logpushJobsApi *LogpushJobsApiV1) DisableRetries()

DisableRetries disables automatic retries for requests invoked for this service instance.

func (*LogpushJobsApiV1) EnableRetries

func (logpushJobsApi *LogpushJobsApiV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)

EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.

func (*LogpushJobsApiV1) GetEnableGzipCompression

func (logpushJobsApi *LogpushJobsApiV1) GetEnableGzipCompression() bool

GetEnableGzipCompression returns the service's EnableGzipCompression field

func (*LogpushJobsApiV1) GetLogpushJobV2

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJobV2(getLogpushJobV2Options *GetLogpushJobV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

GetLogpushJobV2 : Get a logpush job Get a logpush job for a given zone.

func (*LogpushJobsApiV1) GetLogpushJobV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJobV2WithContext(ctx context.Context, getLogpushJobV2Options *GetLogpushJobV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

GetLogpushJobV2WithContext is an alternate form of the GetLogpushJobV2 method which supports a Context parameter

func (*LogpushJobsApiV1) GetLogpushJobsV2

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJobsV2(getLogpushJobsV2Options *GetLogpushJobsV2Options) (result *ListLogpushJobsResp, response *core.DetailedResponse, err error)

GetLogpushJobsV2 : List logpush jobs List configured logpush jobs for your domain.

func (*LogpushJobsApiV1) GetLogpushJobsV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJobsV2WithContext(ctx context.Context, getLogpushJobsV2Options *GetLogpushJobsV2Options) (result *ListLogpushJobsResp, response *core.DetailedResponse, err error)

GetLogpushJobsV2WithContext is an alternate form of the GetLogpushJobsV2 method which supports a Context parameter

func (*LogpushJobsApiV1) GetLogpushOwnershipV2

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushOwnershipV2(getLogpushOwnershipV2Options *GetLogpushOwnershipV2Options) (result *OwnershipChallengeResp, response *core.DetailedResponse, err error)

GetLogpushOwnershipV2 : Get a new ownership challenge sent to your destination Get a new ownership challenge.

func (*LogpushJobsApiV1) GetLogpushOwnershipV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushOwnershipV2WithContext(ctx context.Context, getLogpushOwnershipV2Options *GetLogpushOwnershipV2Options) (result *OwnershipChallengeResp, response *core.DetailedResponse, err error)

GetLogpushOwnershipV2WithContext is an alternate form of the GetLogpushOwnershipV2 method which supports a Context parameter

func (*LogpushJobsApiV1) GetLogsRetention added in v0.51.0

func (logpushJobsApi *LogpushJobsApiV1) GetLogsRetention(getLogsRetentionOptions *GetLogsRetentionOptions) (result *LogRetentionResp, response *core.DetailedResponse, err error)

GetLogsRetention : Get log retention Get log retention setting for Logpull/Logpush on your domain.

func (*LogpushJobsApiV1) GetLogsRetentionWithContext added in v0.51.0

func (logpushJobsApi *LogpushJobsApiV1) GetLogsRetentionWithContext(ctx context.Context, getLogsRetentionOptions *GetLogsRetentionOptions) (result *LogRetentionResp, response *core.DetailedResponse, err error)

GetLogsRetentionWithContext is an alternate form of the GetLogsRetention method which supports a Context parameter

func (*LogpushJobsApiV1) GetServiceURL

func (logpushJobsApi *LogpushJobsApiV1) GetServiceURL() string

GetServiceURL returns the service URL

func (*LogpushJobsApiV1) ListFieldsForDatasetV2

func (logpushJobsApi *LogpushJobsApiV1) ListFieldsForDatasetV2(listFieldsForDatasetV2Options *ListFieldsForDatasetV2Options) (result *ListFieldsResp, response *core.DetailedResponse, err error)

ListFieldsForDatasetV2 : The list of all fields available for a dataset The list of all fields available for a dataset.

func (*LogpushJobsApiV1) ListFieldsForDatasetV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) ListFieldsForDatasetV2WithContext(ctx context.Context, listFieldsForDatasetV2Options *ListFieldsForDatasetV2Options) (result *ListFieldsResp, response *core.DetailedResponse, err error)

ListFieldsForDatasetV2WithContext is an alternate form of the ListFieldsForDatasetV2 method which supports a Context parameter

func (*LogpushJobsApiV1) ListLogpushJobsForDatasetV2

func (logpushJobsApi *LogpushJobsApiV1) ListLogpushJobsForDatasetV2(listLogpushJobsForDatasetV2Options *ListLogpushJobsForDatasetV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

ListLogpushJobsForDatasetV2 : List logpush jobs for dataset List configured logpush jobs for a dataset.

func (*LogpushJobsApiV1) ListLogpushJobsForDatasetV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) ListLogpushJobsForDatasetV2WithContext(ctx context.Context, listLogpushJobsForDatasetV2Options *ListLogpushJobsForDatasetV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

ListLogpushJobsForDatasetV2WithContext is an alternate form of the ListLogpushJobsForDatasetV2 method which supports a Context parameter

func (*LogpushJobsApiV1) NewCreateLogRetentionOptions added in v0.51.0

func (*LogpushJobsApiV1) NewCreateLogRetentionOptions() *CreateLogRetentionOptions

NewCreateLogRetentionOptions : Instantiate CreateLogRetentionOptions

func (*LogpushJobsApiV1) NewCreateLogpushJobV2Options

func (*LogpushJobsApiV1) NewCreateLogpushJobV2Options() *CreateLogpushJobV2Options

NewCreateLogpushJobV2Options : Instantiate CreateLogpushJobV2Options

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobCosReq

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobCosReq(cos map[string]interface{}, ownershipChallenge string) (_model *CreateLogpushJobV2RequestLogpushJobCosReq, err error)

NewCreateLogpushJobV2RequestLogpushJobCosReq : Instantiate CreateLogpushJobV2RequestLogpushJobCosReq (Generic Model Constructor)

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobGenericReq added in v0.51.0

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobGenericReq(destinationConf string) (_model *CreateLogpushJobV2RequestLogpushJobGenericReq, err error)

NewCreateLogpushJobV2RequestLogpushJobGenericReq : Instantiate CreateLogpushJobV2RequestLogpushJobGenericReq (Generic Model Constructor)

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobIbmclReq added in v0.51.0

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobIbmclReq(ibmcl *LogpushJobIbmclReqIbmcl) (_model *CreateLogpushJobV2RequestLogpushJobIbmclReq, err error)

NewCreateLogpushJobV2RequestLogpushJobIbmclReq : Instantiate CreateLogpushJobV2RequestLogpushJobIbmclReq (Generic Model Constructor)

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobLogdnaReq

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobLogdnaReq(logdna map[string]interface{}) (_model *CreateLogpushJobV2RequestLogpushJobLogdnaReq, err error)

NewCreateLogpushJobV2RequestLogpushJobLogdnaReq : Instantiate CreateLogpushJobV2RequestLogpushJobLogdnaReq (Generic Model Constructor)

func (*LogpushJobsApiV1) NewDeleteLogpushJobV2Options

func (*LogpushJobsApiV1) NewDeleteLogpushJobV2Options(jobID string) *DeleteLogpushJobV2Options

NewDeleteLogpushJobV2Options : Instantiate DeleteLogpushJobV2Options

func (*LogpushJobsApiV1) NewGetLogpushJobV2Options

func (*LogpushJobsApiV1) NewGetLogpushJobV2Options(jobID string) *GetLogpushJobV2Options

NewGetLogpushJobV2Options : Instantiate GetLogpushJobV2Options

func (*LogpushJobsApiV1) NewGetLogpushJobsV2Options

func (*LogpushJobsApiV1) NewGetLogpushJobsV2Options() *GetLogpushJobsV2Options

NewGetLogpushJobsV2Options : Instantiate GetLogpushJobsV2Options

func (*LogpushJobsApiV1) NewGetLogpushOwnershipV2Options

func (*LogpushJobsApiV1) NewGetLogpushOwnershipV2Options() *GetLogpushOwnershipV2Options

NewGetLogpushOwnershipV2Options : Instantiate GetLogpushOwnershipV2Options

func (*LogpushJobsApiV1) NewGetLogsRetentionOptions added in v0.51.0

func (*LogpushJobsApiV1) NewGetLogsRetentionOptions() *GetLogsRetentionOptions

NewGetLogsRetentionOptions : Instantiate GetLogsRetentionOptions

func (*LogpushJobsApiV1) NewListFieldsForDatasetV2Options

func (*LogpushJobsApiV1) NewListFieldsForDatasetV2Options() *ListFieldsForDatasetV2Options

NewListFieldsForDatasetV2Options : Instantiate ListFieldsForDatasetV2Options

func (*LogpushJobsApiV1) NewListLogpushJobsForDatasetV2Options

func (*LogpushJobsApiV1) NewListLogpushJobsForDatasetV2Options() *ListLogpushJobsForDatasetV2Options

NewListLogpushJobsForDatasetV2Options : Instantiate ListLogpushJobsForDatasetV2Options

func (*LogpushJobsApiV1) NewLogpushJobIbmclReqIbmcl added in v0.51.0

func (*LogpushJobsApiV1) NewLogpushJobIbmclReqIbmcl(instanceID string, region string, apiKey string) (_model *LogpushJobIbmclReqIbmcl, err error)

NewLogpushJobIbmclReqIbmcl : Instantiate LogpushJobIbmclReqIbmcl (Generic Model Constructor)

func (*LogpushJobsApiV1) NewUpdateLogpushJobV2Options

func (*LogpushJobsApiV1) NewUpdateLogpushJobV2Options(jobID string) *UpdateLogpushJobV2Options

NewUpdateLogpushJobV2Options : Instantiate UpdateLogpushJobV2Options

func (*LogpushJobsApiV1) NewValidateLogpushOwnershipChallengeV2Options

func (*LogpushJobsApiV1) NewValidateLogpushOwnershipChallengeV2Options() *ValidateLogpushOwnershipChallengeV2Options

NewValidateLogpushOwnershipChallengeV2Options : Instantiate ValidateLogpushOwnershipChallengeV2Options

func (*LogpushJobsApiV1) SetDefaultHeaders

func (logpushJobsApi *LogpushJobsApiV1) SetDefaultHeaders(headers http.Header)

SetDefaultHeaders sets HTTP headers to be sent in every request

func (*LogpushJobsApiV1) SetEnableGzipCompression

func (logpushJobsApi *LogpushJobsApiV1) SetEnableGzipCompression(enableGzip bool)

SetEnableGzipCompression sets the service's EnableGzipCompression field

func (*LogpushJobsApiV1) SetServiceURL

func (logpushJobsApi *LogpushJobsApiV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*LogpushJobsApiV1) UpdateLogpushJobV2

func (logpushJobsApi *LogpushJobsApiV1) UpdateLogpushJobV2(updateLogpushJobV2Options *UpdateLogpushJobV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

UpdateLogpushJobV2 : Update a logpush job Update an existing logpush job for a given zone.

func (*LogpushJobsApiV1) UpdateLogpushJobV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) UpdateLogpushJobV2WithContext(ctx context.Context, updateLogpushJobV2Options *UpdateLogpushJobV2Options) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

UpdateLogpushJobV2WithContext is an alternate form of the UpdateLogpushJobV2 method which supports a Context parameter

func (*LogpushJobsApiV1) ValidateLogpushOwnershipChallengeV2

func (logpushJobsApi *LogpushJobsApiV1) ValidateLogpushOwnershipChallengeV2(validateLogpushOwnershipChallengeV2Options *ValidateLogpushOwnershipChallengeV2Options) (result *OwnershipChallengeValidateResult, response *core.DetailedResponse, err error)

ValidateLogpushOwnershipChallengeV2 : Validate ownership challenge of the destination Validate ownership challenge of the destination.

func (*LogpushJobsApiV1) ValidateLogpushOwnershipChallengeV2WithContext

func (logpushJobsApi *LogpushJobsApiV1) ValidateLogpushOwnershipChallengeV2WithContext(ctx context.Context, validateLogpushOwnershipChallengeV2Options *ValidateLogpushOwnershipChallengeV2Options) (result *OwnershipChallengeValidateResult, response *core.DetailedResponse, err error)

ValidateLogpushOwnershipChallengeV2WithContext is an alternate form of the ValidateLogpushOwnershipChallengeV2 method which supports a Context parameter

type LogpushJobsApiV1Options

type LogpushJobsApiV1Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator

	// Full URL-encoded CRN of the service instance.
	Crn *string `validate:"required"`

	// The dataset.
	Dataset *string `validate:"required"`

	// Zone identifier.
	ZoneID *string `validate:"required"`
}

LogpushJobsApiV1Options : Service options

type LogpushJobsResp

type LogpushJobsResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// logpush job pack.
	Result *LogpushJobPack `json:"result" validate:"required"`
}

LogpushJobsResp : logpush job response.

type LogpushJobsUpdateIbmclReqIbmcl added in v0.51.0

type LogpushJobsUpdateIbmclReqIbmcl struct {
	// GUID of the IBM Cloud Logs instance where you want to send logs.
	InstanceID *string `json:"instance_id,omitempty"`

	// Region where the IBM Cloud Logs instance is located.
	Region *string `json:"region,omitempty"`

	// IBM Cloud API key used to generate a token for pushing to your Cloud Logs instance.
	ApiKey *string `json:"api_key,omitempty"`
}

LogpushJobsUpdateIbmclReqIbmcl : Required information to push logs to your Cloud Logs instance.

type OwnershipChallengeResp

type OwnershipChallengeResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// ownership challenge result.
	Result *OwnershipChallengeResult `json:"result" validate:"required"`
}

OwnershipChallengeResp : Get Logpush Ownership Challenge Response.

type OwnershipChallengeResult

type OwnershipChallengeResult struct {
	// file name.
	Filename *string `json:"filename" validate:"required"`

	// valid.
	Valid *bool `json:"valid" validate:"required"`

	// message.
	Messages *string `json:"messages,omitempty"`
}

OwnershipChallengeResult : ownership challenge result.

type OwnershipChallengeValidateResult

type OwnershipChallengeValidateResult struct {
	// valid.
	Valid *bool `json:"valid" validate:"required"`
}

OwnershipChallengeValidateResult : ownership challenge validate result.

type UpdateLogpushJobV2Options

type UpdateLogpushJobV2Options struct {
	// logpush job identifier.
	JobID *string `json:"job_id" validate:"required,ne="`

	// Update logpush job.
	UpdateLogpushJobV2Request UpdateLogpushJobV2RequestIntf `json:"UpdateLogpushJobV2Request,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

UpdateLogpushJobV2Options : The UpdateLogpushJobV2 options.

func (*UpdateLogpushJobV2Options) SetHeaders

func (options *UpdateLogpushJobV2Options) SetHeaders(param map[string]string) *UpdateLogpushJobV2Options

SetHeaders : Allow user to set Headers

func (*UpdateLogpushJobV2Options) SetJobID

func (_options *UpdateLogpushJobV2Options) SetJobID(jobID string) *UpdateLogpushJobV2Options

SetJobID : Allow user to set JobID

func (*UpdateLogpushJobV2Options) SetUpdateLogpushJobV2Request

func (_options *UpdateLogpushJobV2Options) SetUpdateLogpushJobV2Request(updateLogpushJobV2Request UpdateLogpushJobV2RequestIntf) *UpdateLogpushJobV2Options

SetUpdateLogpushJobV2Request : Allow user to set UpdateLogpushJobV2Request

type UpdateLogpushJobV2Request

type UpdateLogpushJobV2Request struct {
	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Information to identify the COS bucket where the data will be pushed.
	Cos map[string]interface{} `json:"cos,omitempty"`

	// Ownership challenge token to prove destination ownership.
	OwnershipChallenge *string `json:"ownership_challenge,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`

	// Information to identify the LogDNA instance the data will be pushed.
	Logdna map[string]interface{} `json:"logdna,omitempty"`

	// Required information to push logs to your Cloud Logs instance.
	Ibmcl *LogpushJobsUpdateIbmclReqIbmcl `json:"ibmcl,omitempty"`

	// Logpush Job Name.
	Name *string `json:"name,omitempty"`

	// Uniquely identifies a resource where data will be pushed. Additional configuration parameters supported by the
	// destination may be included.
	DestinationConf *string `json:"destination_conf,omitempty"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset,omitempty"`
}

UpdateLogpushJobV2Request : UpdateLogpushJobV2Request struct Models which "extend" this model: - UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq - UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq - UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq - UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq

type UpdateLogpushJobV2RequestIntf

type UpdateLogpushJobV2RequestIntf interface {
	// contains filtered or unexported methods
}

type UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq

type UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq struct {
	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Information to identify the COS bucket where the data will be pushed.
	Cos map[string]interface{} `json:"cos,omitempty"`

	// Ownership challenge token to prove destination ownership.
	OwnershipChallenge *string `json:"ownership_challenge,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

UpdateLogpushJobV2RequestLogpushJobsUpdateCosReq : Update COS logpush job input. This model "extends" UpdateLogpushJobV2Request

type UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq added in v0.51.0

type UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq struct {
	// Logpush Job Name.
	Name *string `json:"name,omitempty"`

	// Whether the logpush job is enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Uniquely identifies a resource where data will be pushed. Additional configuration parameters supported by the
	// destination may be included.
	DestinationConf *string `json:"destination_conf,omitempty"`

	// Dataset to be pulled.
	Dataset *string `json:"dataset,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

UpdateLogpushJobV2RequestLogpushJobsUpdateGenericReq : Create logpush job for a generic destination. This model "extends" UpdateLogpushJobV2Request

type UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq added in v0.51.0

type UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq struct {
	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Required information to push logs to your Cloud Logs instance.
	Ibmcl *LogpushJobsUpdateIbmclReqIbmcl `json:"ibmcl,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

UpdateLogpushJobV2RequestLogpushJobsUpdateIbmclReq : Update IBM Cloud Logs logpush job input. This model "extends" UpdateLogpushJobV2Request

type UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq

type UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq struct {
	// Whether the logpush job enabled or not.
	Enabled *bool `json:"enabled,omitempty"`

	// Configuration string.
	LogpullOptions *string `json:"logpull_options,omitempty"`

	// Information to identify the LogDNA instance the data will be pushed.
	Logdna map[string]interface{} `json:"logdna,omitempty"`

	// The frequency at which CIS sends batches of logs to your destination.
	Frequency *string `json:"frequency,omitempty"`
}

UpdateLogpushJobV2RequestLogpushJobsUpdateLogdnaReq : Update LogDNA logpush job input. This model "extends" UpdateLogpushJobV2Request

type ValidateLogpushOwnershipChallengeV2Options

type ValidateLogpushOwnershipChallengeV2Options struct {
	// Information to identify the COS bucket where the data will be pushed.
	Cos map[string]interface{} `json:"cos,omitempty"`

	// Ownership challenge token to prove destination ownership.
	OwnershipChallenge *string `json:"ownership_challenge,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

ValidateLogpushOwnershipChallengeV2Options : The ValidateLogpushOwnershipChallengeV2 options.

func (*ValidateLogpushOwnershipChallengeV2Options) SetCos

SetCos : Allow user to set Cos

func (*ValidateLogpushOwnershipChallengeV2Options) SetHeaders

SetHeaders : Allow user to set Headers

func (*ValidateLogpushOwnershipChallengeV2Options) SetOwnershipChallenge

func (_options *ValidateLogpushOwnershipChallengeV2Options) SetOwnershipChallenge(ownershipChallenge string) *ValidateLogpushOwnershipChallengeV2Options

SetOwnershipChallenge : Allow user to set OwnershipChallenge

Jump to

Keyboard shortcuts

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