logpushjobsapiv1

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package logpushjobsapiv1 : Operations and models for the LogpushJobsApiV1 service

Index

Constants

View Source
const (
	CreateLogpushJobOptions_Dataset_FirewallEvents = "firewall_events"
	CreateLogpushJobOptions_Dataset_HttpRequests   = "http_requests"
	CreateLogpushJobOptions_Dataset_RangeEvents    = "range_events"
)

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

View Source
const (
	CreateLogpushJobOptions_Frequency_High = "high"
	CreateLogpushJobOptions_Frequency_Low  = "low"
)

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

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 (
	UpdateLogpushJobOptions_Frequency_High = "high"
	UpdateLogpushJobOptions_Frequency_Low  = "low"
)

Constants associated with the UpdateLogpushJobOptions.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 (
	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 (
	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 (
	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 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 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 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 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 CreateLogpushJobOptions

type CreateLogpushJobOptions 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"`

	// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
	DestinationConf *string `json:"destination_conf,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"`

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

CreateLogpushJobOptions : The CreateLogpushJob options.

func (*CreateLogpushJobOptions) SetDataset

func (_options *CreateLogpushJobOptions) SetDataset(dataset string) *CreateLogpushJobOptions

SetDataset : Allow user to set Dataset

func (*CreateLogpushJobOptions) SetDestinationConf

func (_options *CreateLogpushJobOptions) SetDestinationConf(destinationConf string) *CreateLogpushJobOptions

SetDestinationConf : Allow user to set DestinationConf

func (*CreateLogpushJobOptions) SetEnabled

func (_options *CreateLogpushJobOptions) SetEnabled(enabled bool) *CreateLogpushJobOptions

SetEnabled : Allow user to set Enabled

func (*CreateLogpushJobOptions) SetFrequency

func (_options *CreateLogpushJobOptions) SetFrequency(frequency string) *CreateLogpushJobOptions

SetFrequency : Allow user to set Frequency

func (*CreateLogpushJobOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*CreateLogpushJobOptions) SetLogpullOptions

func (_options *CreateLogpushJobOptions) SetLogpullOptions(logpullOptions string) *CreateLogpushJobOptions

SetLogpullOptions : Allow user to set LogpullOptions

func (*CreateLogpushJobOptions) SetName

func (_options *CreateLogpushJobOptions) SetName(name string) *CreateLogpushJobOptions

SetName : Allow user to set Name

func (*CreateLogpushJobOptions) SetOwnershipChallenge

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

SetOwnershipChallenge : Allow user to set OwnershipChallenge

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 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 interface{} `json:"logdna,omitempty"`
}

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

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 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 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 interface{} `json:"logdna" validate:"required"`

	// 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"`
}

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

type DeleteLogpushJobOptions

type DeleteLogpushJobOptions struct {
	// logpush job identifier.
	JobID *int64 `json:"job_id" validate:"required"`

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

DeleteLogpushJobOptions : The DeleteLogpushJob options.

func (*DeleteLogpushJobOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*DeleteLogpushJobOptions) SetJobID

func (_options *DeleteLogpushJobOptions) SetJobID(jobID int64) *DeleteLogpushJobOptions

SetJobID : Allow user to set JobID

type DeleteLogpushJobResp

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

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

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

	// result.
	Result interface{} `json:"result" validate:"required"`
}

DeleteLogpushJobResp : delete logpush job response.

type DeleteLogpushJobV2Options

type DeleteLogpushJobV2Options struct {
	// logpush job identifier.
	JobID *int64 `json:"job_id" validate:"required"`

	// 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 int64) *DeleteLogpushJobV2Options

SetJobID : Allow user to set JobID

type GetLogpushJobOptions

type GetLogpushJobOptions struct {
	// logpush job identifier.
	JobID *int64 `json:"job_id" validate:"required"`

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

GetLogpushJobOptions : The GetLogpushJob options.

func (*GetLogpushJobOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*GetLogpushJobOptions) SetJobID

func (_options *GetLogpushJobOptions) SetJobID(jobID int64) *GetLogpushJobOptions

SetJobID : Allow user to set JobID

type GetLogpushJobV2Options

type GetLogpushJobV2Options struct {
	// logpush job identifier.
	JobID *int64 `json:"job_id" validate:"required"`

	// 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 int64) *GetLogpushJobV2Options

SetJobID : Allow user to set JobID

type GetLogpushJobsOptions

type GetLogpushJobsOptions struct {

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

GetLogpushJobsOptions : The GetLogpushJobs options.

func (*GetLogpushJobsOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

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 GetLogpushOwnershipOptions

type GetLogpushOwnershipOptions struct {
	// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
	DestinationConf *string `json:"destination_conf,omitempty"`

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

GetLogpushOwnershipOptions : The GetLogpushOwnership options.

func (*GetLogpushOwnershipOptions) SetDestinationConf

func (_options *GetLogpushOwnershipOptions) SetDestinationConf(destinationConf string) *GetLogpushOwnershipOptions

SetDestinationConf : Allow user to set DestinationConf

func (*GetLogpushOwnershipOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

type GetLogpushOwnershipV2Options

type GetLogpushOwnershipV2Options struct {
	// Information to identify the COS bucket where the data will be pushed.
	Cos 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 interface{}) *GetLogpushOwnershipV2Options

SetCos : Allow user to set Cos

func (*GetLogpushOwnershipV2Options) SetHeaders

SetHeaders : Allow user to set Headers

type ListFieldsForDatasetOptions

type ListFieldsForDatasetOptions struct {

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

ListFieldsForDatasetOptions : The ListFieldsForDataset options.

func (*ListFieldsForDatasetOptions) SetHeaders

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

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 interface{} `json:"result,omitempty"`
}

ListFieldsResp : list fields response.

type ListLogpushJobsForDatasetOptions

type ListLogpushJobsForDatasetOptions struct {

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

ListLogpushJobsForDatasetOptions : The ListLogpushJobsForDataset options.

func (*ListLogpushJobsForDatasetOptions) SetHeaders

SetHeaders : Allow user to set Headers

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 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 domain id.
	ZoneID *string

	// The dataset.
	Dataset *string
}

LogpushJobsApiV1 : CIS Loupush Jobs

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

func (logpushJobsApi *LogpushJobsApiV1) CreateLogpushJob(createLogpushJobOptions *CreateLogpushJobOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

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

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

func (logpushJobsApi *LogpushJobsApiV1) CreateLogpushJobWithContext(ctx context.Context, createLogpushJobOptions *CreateLogpushJobOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

CreateLogpushJobWithContext is an alternate form of the CreateLogpushJob method which supports a Context parameter

func (*LogpushJobsApiV1) DeleteLogpushJob

func (logpushJobsApi *LogpushJobsApiV1) DeleteLogpushJob(deleteLogpushJobOptions *DeleteLogpushJobOptions) (result *DeleteLogpushJobResp, response *core.DetailedResponse, err error)

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

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

func (logpushJobsApi *LogpushJobsApiV1) DeleteLogpushJobWithContext(ctx context.Context, deleteLogpushJobOptions *DeleteLogpushJobOptions) (result *DeleteLogpushJobResp, response *core.DetailedResponse, err error)

DeleteLogpushJobWithContext is an alternate form of the DeleteLogpushJob 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) GetLogpushJob

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJob(getLogpushJobOptions *GetLogpushJobOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

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

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

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJobWithContext(ctx context.Context, getLogpushJobOptions *GetLogpushJobOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

GetLogpushJobWithContext is an alternate form of the GetLogpushJob method which supports a Context parameter

func (*LogpushJobsApiV1) GetLogpushJobs

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJobs(getLogpushJobsOptions *GetLogpushJobsOptions) (result *ListLogpushJobsResp, response *core.DetailedResponse, err error)

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

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

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushJobsWithContext(ctx context.Context, getLogpushJobsOptions *GetLogpushJobsOptions) (result *ListLogpushJobsResp, response *core.DetailedResponse, err error)

GetLogpushJobsWithContext is an alternate form of the GetLogpushJobs method which supports a Context parameter

func (*LogpushJobsApiV1) GetLogpushOwnership

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushOwnership(getLogpushOwnershipOptions *GetLogpushOwnershipOptions) (result *OwnershipChallengeResp, response *core.DetailedResponse, err error)

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

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

func (logpushJobsApi *LogpushJobsApiV1) GetLogpushOwnershipWithContext(ctx context.Context, getLogpushOwnershipOptions *GetLogpushOwnershipOptions) (result *OwnershipChallengeResp, response *core.DetailedResponse, err error)

GetLogpushOwnershipWithContext is an alternate form of the GetLogpushOwnership method which supports a Context parameter

func (*LogpushJobsApiV1) GetServiceURL

func (logpushJobsApi *LogpushJobsApiV1) GetServiceURL() string

GetServiceURL returns the service URL

func (*LogpushJobsApiV1) ListFieldsForDataset

func (logpushJobsApi *LogpushJobsApiV1) ListFieldsForDataset(listFieldsForDatasetOptions *ListFieldsForDatasetOptions) (result *ListFieldsResp, response *core.DetailedResponse, err error)

ListFieldsForDataset : List all fields available for a dataset The list of all fields available for a given dataset.

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

func (logpushJobsApi *LogpushJobsApiV1) ListFieldsForDatasetWithContext(ctx context.Context, listFieldsForDatasetOptions *ListFieldsForDatasetOptions) (result *ListFieldsResp, response *core.DetailedResponse, err error)

ListFieldsForDatasetWithContext is an alternate form of the ListFieldsForDataset method which supports a Context parameter

func (*LogpushJobsApiV1) ListLogpushJobsForDataset

func (logpushJobsApi *LogpushJobsApiV1) ListLogpushJobsForDataset(listLogpushJobsForDatasetOptions *ListLogpushJobsForDatasetOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

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

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

func (logpushJobsApi *LogpushJobsApiV1) ListLogpushJobsForDatasetWithContext(ctx context.Context, listLogpushJobsForDatasetOptions *ListLogpushJobsForDatasetOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

ListLogpushJobsForDatasetWithContext is an alternate form of the ListLogpushJobsForDataset method which supports a Context parameter

func (*LogpushJobsApiV1) NewCreateLogpushJobOptions

func (*LogpushJobsApiV1) NewCreateLogpushJobOptions() *CreateLogpushJobOptions

NewCreateLogpushJobOptions : Instantiate CreateLogpushJobOptions

func (*LogpushJobsApiV1) NewCreateLogpushJobV2Options

func (*LogpushJobsApiV1) NewCreateLogpushJobV2Options() *CreateLogpushJobV2Options

NewCreateLogpushJobV2Options : Instantiate CreateLogpushJobV2Options

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobCosReq

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

NewCreateLogpushJobV2RequestLogpushJobCosReq : Instantiate CreateLogpushJobV2RequestLogpushJobCosReq (Generic Model Constructor)

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobLogdnaReq

func (*LogpushJobsApiV1) NewCreateLogpushJobV2RequestLogpushJobLogdnaReq(logdna interface{}) (_model *CreateLogpushJobV2RequestLogpushJobLogdnaReq, err error)

NewCreateLogpushJobV2RequestLogpushJobLogdnaReq : Instantiate CreateLogpushJobV2RequestLogpushJobLogdnaReq (Generic Model Constructor)

func (*LogpushJobsApiV1) NewDeleteLogpushJobOptions

func (*LogpushJobsApiV1) NewDeleteLogpushJobOptions(jobID int64) *DeleteLogpushJobOptions

NewDeleteLogpushJobOptions : Instantiate DeleteLogpushJobOptions

func (*LogpushJobsApiV1) NewDeleteLogpushJobV2Options

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

NewDeleteLogpushJobV2Options : Instantiate DeleteLogpushJobV2Options

func (*LogpushJobsApiV1) NewGetLogpushJobOptions

func (*LogpushJobsApiV1) NewGetLogpushJobOptions(jobID int64) *GetLogpushJobOptions

NewGetLogpushJobOptions : Instantiate GetLogpushJobOptions

func (*LogpushJobsApiV1) NewGetLogpushJobV2Options

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

NewGetLogpushJobV2Options : Instantiate GetLogpushJobV2Options

func (*LogpushJobsApiV1) NewGetLogpushJobsOptions

func (*LogpushJobsApiV1) NewGetLogpushJobsOptions() *GetLogpushJobsOptions

NewGetLogpushJobsOptions : Instantiate GetLogpushJobsOptions

func (*LogpushJobsApiV1) NewGetLogpushJobsV2Options

func (*LogpushJobsApiV1) NewGetLogpushJobsV2Options() *GetLogpushJobsV2Options

NewGetLogpushJobsV2Options : Instantiate GetLogpushJobsV2Options

func (*LogpushJobsApiV1) NewGetLogpushOwnershipOptions

func (*LogpushJobsApiV1) NewGetLogpushOwnershipOptions() *GetLogpushOwnershipOptions

NewGetLogpushOwnershipOptions : Instantiate GetLogpushOwnershipOptions

func (*LogpushJobsApiV1) NewGetLogpushOwnershipV2Options

func (*LogpushJobsApiV1) NewGetLogpushOwnershipV2Options() *GetLogpushOwnershipV2Options

NewGetLogpushOwnershipV2Options : Instantiate GetLogpushOwnershipV2Options

func (*LogpushJobsApiV1) NewListFieldsForDatasetOptions

func (*LogpushJobsApiV1) NewListFieldsForDatasetOptions() *ListFieldsForDatasetOptions

NewListFieldsForDatasetOptions : Instantiate ListFieldsForDatasetOptions

func (*LogpushJobsApiV1) NewListFieldsForDatasetV2Options

func (*LogpushJobsApiV1) NewListFieldsForDatasetV2Options() *ListFieldsForDatasetV2Options

NewListFieldsForDatasetV2Options : Instantiate ListFieldsForDatasetV2Options

func (*LogpushJobsApiV1) NewListLogpushJobsForDatasetOptions

func (*LogpushJobsApiV1) NewListLogpushJobsForDatasetOptions() *ListLogpushJobsForDatasetOptions

NewListLogpushJobsForDatasetOptions : Instantiate ListLogpushJobsForDatasetOptions

func (*LogpushJobsApiV1) NewListLogpushJobsForDatasetV2Options

func (*LogpushJobsApiV1) NewListLogpushJobsForDatasetV2Options() *ListLogpushJobsForDatasetV2Options

NewListLogpushJobsForDatasetV2Options : Instantiate ListLogpushJobsForDatasetV2Options

func (*LogpushJobsApiV1) NewUpdateLogpushJobOptions

func (*LogpushJobsApiV1) NewUpdateLogpushJobOptions(jobID int64) *UpdateLogpushJobOptions

NewUpdateLogpushJobOptions : Instantiate UpdateLogpushJobOptions

func (*LogpushJobsApiV1) NewUpdateLogpushJobV2Options

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

NewUpdateLogpushJobV2Options : Instantiate UpdateLogpushJobV2Options

func (*LogpushJobsApiV1) NewValidateLogpushOwnershipChallengeOptions

func (*LogpushJobsApiV1) NewValidateLogpushOwnershipChallengeOptions() *ValidateLogpushOwnershipChallengeOptions

NewValidateLogpushOwnershipChallengeOptions : Instantiate ValidateLogpushOwnershipChallengeOptions

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

func (logpushJobsApi *LogpushJobsApiV1) UpdateLogpushJob(updateLogpushJobOptions *UpdateLogpushJobOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

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

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

func (logpushJobsApi *LogpushJobsApiV1) UpdateLogpushJobWithContext(ctx context.Context, updateLogpushJobOptions *UpdateLogpushJobOptions) (result *LogpushJobsResp, response *core.DetailedResponse, err error)

UpdateLogpushJobWithContext is an alternate form of the UpdateLogpushJob method which supports a Context parameter

func (*LogpushJobsApiV1) ValidateLogpushOwnershipChallenge

func (logpushJobsApi *LogpushJobsApiV1) ValidateLogpushOwnershipChallenge(validateLogpushOwnershipChallengeOptions *ValidateLogpushOwnershipChallengeOptions) (result *OwnershipChallengeValidateResult, response *core.DetailedResponse, err error)

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

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

func (*LogpushJobsApiV1) ValidateLogpushOwnershipChallengeWithContext

func (logpushJobsApi *LogpushJobsApiV1) ValidateLogpushOwnershipChallengeWithContext(ctx context.Context, validateLogpushOwnershipChallengeOptions *ValidateLogpushOwnershipChallengeOptions) (result *OwnershipChallengeValidateResult, response *core.DetailedResponse, err error)

ValidateLogpushOwnershipChallengeWithContext is an alternate form of the ValidateLogpushOwnershipChallenge 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 domain id.
	ZoneID *string `validate:"required"`

	// The dataset.
	Dataset *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 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 UpdateLogpushJobOptions

type UpdateLogpushJobOptions struct {
	// logpush job identifier.
	JobID *int64 `json:"job_id" validate:"required"`

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

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

	// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
	DestinationConf *string `json:"destination_conf,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"`

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

UpdateLogpushJobOptions : The UpdateLogpushJob options.

func (*UpdateLogpushJobOptions) SetDestinationConf

func (_options *UpdateLogpushJobOptions) SetDestinationConf(destinationConf string) *UpdateLogpushJobOptions

SetDestinationConf : Allow user to set DestinationConf

func (*UpdateLogpushJobOptions) SetEnabled

func (_options *UpdateLogpushJobOptions) SetEnabled(enabled bool) *UpdateLogpushJobOptions

SetEnabled : Allow user to set Enabled

func (*UpdateLogpushJobOptions) SetFrequency

func (_options *UpdateLogpushJobOptions) SetFrequency(frequency string) *UpdateLogpushJobOptions

SetFrequency : Allow user to set Frequency

func (*UpdateLogpushJobOptions) SetHeaders

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

SetHeaders : Allow user to set Headers

func (*UpdateLogpushJobOptions) SetJobID

func (_options *UpdateLogpushJobOptions) SetJobID(jobID int64) *UpdateLogpushJobOptions

SetJobID : Allow user to set JobID

func (*UpdateLogpushJobOptions) SetLogpullOptions

func (_options *UpdateLogpushJobOptions) SetLogpullOptions(logpullOptions string) *UpdateLogpushJobOptions

SetLogpullOptions : Allow user to set LogpullOptions

func (*UpdateLogpushJobOptions) SetOwnershipChallenge

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

SetOwnershipChallenge : Allow user to set OwnershipChallenge

type UpdateLogpushJobV2Options

type UpdateLogpushJobV2Options struct {
	// logpush job identifier.
	JobID *int64 `json:"job_id" validate:"required"`

	// 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 int64) *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 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 interface{} `json:"logdna,omitempty"`
}

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

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 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 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 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 ValidateLogpushOwnershipChallengeOptions

type ValidateLogpushOwnershipChallengeOptions struct {
	// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
	DestinationConf *string `json:"destination_conf,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
}

ValidateLogpushOwnershipChallengeOptions : The ValidateLogpushOwnershipChallenge options.

func (*ValidateLogpushOwnershipChallengeOptions) SetDestinationConf

func (_options *ValidateLogpushOwnershipChallengeOptions) SetDestinationConf(destinationConf string) *ValidateLogpushOwnershipChallengeOptions

SetDestinationConf : Allow user to set DestinationConf

func (*ValidateLogpushOwnershipChallengeOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*ValidateLogpushOwnershipChallengeOptions) SetOwnershipChallenge

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

SetOwnershipChallenge : Allow user to set OwnershipChallenge

type ValidateLogpushOwnershipChallengeV2Options

type ValidateLogpushOwnershipChallengeV2Options struct {
	// Information to identify the COS bucket where the data will be pushed.
	Cos 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