log_target

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for log target API

func (*Client) CreateLogTarget

CreateLogTarget adds a new log target

Adds a new Log Target of the specified type in the specified parent.

func (*Client) DeleteLogTarget

DeleteLogTarget deletes a log target

Deletes a Log Target configuration by it's index from the specified parent.

func (*Client) GetLogTarget

func (a *Client) GetLogTarget(params *GetLogTargetParams, authInfo runtime.ClientAuthInfoWriter) (*GetLogTargetOK, error)

GetLogTarget returns one log target

Returns one Log Target configuration by it's index in the specified parent.

func (*Client) GetLogTargets

func (a *Client) GetLogTargets(params *GetLogTargetsParams, authInfo runtime.ClientAuthInfoWriter) (*GetLogTargetsOK, error)

GetLogTargets returns an array of all log targets

Returns all Log Targets that are configured in specified parent.

func (*Client) ReplaceLogTarget

ReplaceLogTarget replaces a log target

Replaces a Log Target configuration by it's index in the specified parent.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new log target API client.

type CreateLogTargetAccepted

type CreateLogTargetAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.LogTarget
}

CreateLogTargetAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateLogTargetAccepted

func NewCreateLogTargetAccepted() *CreateLogTargetAccepted

NewCreateLogTargetAccepted creates a CreateLogTargetAccepted with default headers values

func (*CreateLogTargetAccepted) Error

func (o *CreateLogTargetAccepted) Error() string

func (*CreateLogTargetAccepted) GetPayload

func (o *CreateLogTargetAccepted) GetPayload() *models.LogTarget

type CreateLogTargetBadRequest

type CreateLogTargetBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateLogTargetBadRequest handles this case with default header values.

Bad request

func NewCreateLogTargetBadRequest

func NewCreateLogTargetBadRequest() *CreateLogTargetBadRequest

NewCreateLogTargetBadRequest creates a CreateLogTargetBadRequest with default headers values

func (*CreateLogTargetBadRequest) Error

func (o *CreateLogTargetBadRequest) Error() string

func (*CreateLogTargetBadRequest) GetPayload

func (o *CreateLogTargetBadRequest) GetPayload() *models.Error

type CreateLogTargetConflict

type CreateLogTargetConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateLogTargetConflict handles this case with default header values.

The specified resource already exists

func NewCreateLogTargetConflict

func NewCreateLogTargetConflict() *CreateLogTargetConflict

NewCreateLogTargetConflict creates a CreateLogTargetConflict with default headers values

func (*CreateLogTargetConflict) Error

func (o *CreateLogTargetConflict) Error() string

func (*CreateLogTargetConflict) GetPayload

func (o *CreateLogTargetConflict) GetPayload() *models.Error

type CreateLogTargetCreated

type CreateLogTargetCreated struct {
	Payload *models.LogTarget
}

CreateLogTargetCreated handles this case with default header values.

Log Target created

func NewCreateLogTargetCreated

func NewCreateLogTargetCreated() *CreateLogTargetCreated

NewCreateLogTargetCreated creates a CreateLogTargetCreated with default headers values

func (*CreateLogTargetCreated) Error

func (o *CreateLogTargetCreated) Error() string

func (*CreateLogTargetCreated) GetPayload

func (o *CreateLogTargetCreated) GetPayload() *models.LogTarget

type CreateLogTargetDefault

type CreateLogTargetDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateLogTargetDefault handles this case with default header values.

General Error

func NewCreateLogTargetDefault

func NewCreateLogTargetDefault(code int) *CreateLogTargetDefault

NewCreateLogTargetDefault creates a CreateLogTargetDefault with default headers values

func (*CreateLogTargetDefault) Code

func (o *CreateLogTargetDefault) Code() int

Code gets the status code for the create log target default response

func (*CreateLogTargetDefault) Error

func (o *CreateLogTargetDefault) Error() string

func (*CreateLogTargetDefault) GetPayload

func (o *CreateLogTargetDefault) GetPayload() *models.Error

type CreateLogTargetParams

type CreateLogTargetParams struct {

	/*Data*/
	Data *models.LogTarget
	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateLogTargetParams contains all the parameters to send to the API endpoint for the create log target operation typically these are written to a http.Request

func NewCreateLogTargetParams

func NewCreateLogTargetParams() *CreateLogTargetParams

NewCreateLogTargetParams creates a new CreateLogTargetParams object with the default values initialized.

func NewCreateLogTargetParamsWithContext

func NewCreateLogTargetParamsWithContext(ctx context.Context) *CreateLogTargetParams

NewCreateLogTargetParamsWithContext creates a new CreateLogTargetParams object with the default values initialized, and the ability to set a context for a request

func NewCreateLogTargetParamsWithHTTPClient

func NewCreateLogTargetParamsWithHTTPClient(client *http.Client) *CreateLogTargetParams

NewCreateLogTargetParamsWithHTTPClient creates a new CreateLogTargetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateLogTargetParamsWithTimeout

func NewCreateLogTargetParamsWithTimeout(timeout time.Duration) *CreateLogTargetParams

NewCreateLogTargetParamsWithTimeout creates a new CreateLogTargetParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateLogTargetParams) SetContext

func (o *CreateLogTargetParams) SetContext(ctx context.Context)

SetContext adds the context to the create log target params

func (*CreateLogTargetParams) SetData

func (o *CreateLogTargetParams) SetData(data *models.LogTarget)

SetData adds the data to the create log target params

func (*CreateLogTargetParams) SetForceReload

func (o *CreateLogTargetParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create log target params

func (*CreateLogTargetParams) SetHTTPClient

func (o *CreateLogTargetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create log target params

func (*CreateLogTargetParams) SetParentName

func (o *CreateLogTargetParams) SetParentName(parentName *string)

SetParentName adds the parentName to the create log target params

func (*CreateLogTargetParams) SetParentType

func (o *CreateLogTargetParams) SetParentType(parentType string)

SetParentType adds the parentType to the create log target params

func (*CreateLogTargetParams) SetTimeout

func (o *CreateLogTargetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create log target params

func (*CreateLogTargetParams) SetTransactionID

func (o *CreateLogTargetParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create log target params

func (*CreateLogTargetParams) SetVersion

func (o *CreateLogTargetParams) SetVersion(version *int64)

SetVersion adds the version to the create log target params

func (*CreateLogTargetParams) WithContext

WithContext adds the context to the create log target params

func (*CreateLogTargetParams) WithData

WithData adds the data to the create log target params

func (*CreateLogTargetParams) WithForceReload

func (o *CreateLogTargetParams) WithForceReload(forceReload *bool) *CreateLogTargetParams

WithForceReload adds the forceReload to the create log target params

func (*CreateLogTargetParams) WithHTTPClient

func (o *CreateLogTargetParams) WithHTTPClient(client *http.Client) *CreateLogTargetParams

WithHTTPClient adds the HTTPClient to the create log target params

func (*CreateLogTargetParams) WithParentName

func (o *CreateLogTargetParams) WithParentName(parentName *string) *CreateLogTargetParams

WithParentName adds the parentName to the create log target params

func (*CreateLogTargetParams) WithParentType

func (o *CreateLogTargetParams) WithParentType(parentType string) *CreateLogTargetParams

WithParentType adds the parentType to the create log target params

func (*CreateLogTargetParams) WithTimeout

func (o *CreateLogTargetParams) WithTimeout(timeout time.Duration) *CreateLogTargetParams

WithTimeout adds the timeout to the create log target params

func (*CreateLogTargetParams) WithTransactionID

func (o *CreateLogTargetParams) WithTransactionID(transactionID *string) *CreateLogTargetParams

WithTransactionID adds the transactionID to the create log target params

func (*CreateLogTargetParams) WithVersion

func (o *CreateLogTargetParams) WithVersion(version *int64) *CreateLogTargetParams

WithVersion adds the version to the create log target params

func (*CreateLogTargetParams) WriteToRequest

func (o *CreateLogTargetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateLogTargetReader

type CreateLogTargetReader struct {
	// contains filtered or unexported fields
}

CreateLogTargetReader is a Reader for the CreateLogTarget structure.

func (*CreateLogTargetReader) ReadResponse

func (o *CreateLogTargetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteLogTargetAccepted

type DeleteLogTargetAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string
}

DeleteLogTargetAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteLogTargetAccepted

func NewDeleteLogTargetAccepted() *DeleteLogTargetAccepted

NewDeleteLogTargetAccepted creates a DeleteLogTargetAccepted with default headers values

func (*DeleteLogTargetAccepted) Error

func (o *DeleteLogTargetAccepted) Error() string

type DeleteLogTargetDefault

type DeleteLogTargetDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteLogTargetDefault handles this case with default header values.

General Error

func NewDeleteLogTargetDefault

func NewDeleteLogTargetDefault(code int) *DeleteLogTargetDefault

NewDeleteLogTargetDefault creates a DeleteLogTargetDefault with default headers values

func (*DeleteLogTargetDefault) Code

func (o *DeleteLogTargetDefault) Code() int

Code gets the status code for the delete log target default response

func (*DeleteLogTargetDefault) Error

func (o *DeleteLogTargetDefault) Error() string

func (*DeleteLogTargetDefault) GetPayload

func (o *DeleteLogTargetDefault) GetPayload() *models.Error

type DeleteLogTargetNoContent

type DeleteLogTargetNoContent struct {
}

DeleteLogTargetNoContent handles this case with default header values.

Log Target deleted

func NewDeleteLogTargetNoContent

func NewDeleteLogTargetNoContent() *DeleteLogTargetNoContent

NewDeleteLogTargetNoContent creates a DeleteLogTargetNoContent with default headers values

func (*DeleteLogTargetNoContent) Error

func (o *DeleteLogTargetNoContent) Error() string

type DeleteLogTargetNotFound

type DeleteLogTargetNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteLogTargetNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteLogTargetNotFound

func NewDeleteLogTargetNotFound() *DeleteLogTargetNotFound

NewDeleteLogTargetNotFound creates a DeleteLogTargetNotFound with default headers values

func (*DeleteLogTargetNotFound) Error

func (o *DeleteLogTargetNotFound) Error() string

func (*DeleteLogTargetNotFound) GetPayload

func (o *DeleteLogTargetNotFound) GetPayload() *models.Error

type DeleteLogTargetParams

type DeleteLogTargetParams struct {

	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*Index
	  Log Target Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteLogTargetParams contains all the parameters to send to the API endpoint for the delete log target operation typically these are written to a http.Request

func NewDeleteLogTargetParams

func NewDeleteLogTargetParams() *DeleteLogTargetParams

NewDeleteLogTargetParams creates a new DeleteLogTargetParams object with the default values initialized.

func NewDeleteLogTargetParamsWithContext

func NewDeleteLogTargetParamsWithContext(ctx context.Context) *DeleteLogTargetParams

NewDeleteLogTargetParamsWithContext creates a new DeleteLogTargetParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteLogTargetParamsWithHTTPClient

func NewDeleteLogTargetParamsWithHTTPClient(client *http.Client) *DeleteLogTargetParams

NewDeleteLogTargetParamsWithHTTPClient creates a new DeleteLogTargetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteLogTargetParamsWithTimeout

func NewDeleteLogTargetParamsWithTimeout(timeout time.Duration) *DeleteLogTargetParams

NewDeleteLogTargetParamsWithTimeout creates a new DeleteLogTargetParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteLogTargetParams) SetContext

func (o *DeleteLogTargetParams) SetContext(ctx context.Context)

SetContext adds the context to the delete log target params

func (*DeleteLogTargetParams) SetForceReload

func (o *DeleteLogTargetParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete log target params

func (*DeleteLogTargetParams) SetHTTPClient

func (o *DeleteLogTargetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete log target params

func (*DeleteLogTargetParams) SetIndex

func (o *DeleteLogTargetParams) SetIndex(index int64)

SetIndex adds the index to the delete log target params

func (*DeleteLogTargetParams) SetParentName

func (o *DeleteLogTargetParams) SetParentName(parentName *string)

SetParentName adds the parentName to the delete log target params

func (*DeleteLogTargetParams) SetParentType

func (o *DeleteLogTargetParams) SetParentType(parentType string)

SetParentType adds the parentType to the delete log target params

func (*DeleteLogTargetParams) SetTimeout

func (o *DeleteLogTargetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete log target params

func (*DeleteLogTargetParams) SetTransactionID

func (o *DeleteLogTargetParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete log target params

func (*DeleteLogTargetParams) SetVersion

func (o *DeleteLogTargetParams) SetVersion(version *int64)

SetVersion adds the version to the delete log target params

func (*DeleteLogTargetParams) WithContext

WithContext adds the context to the delete log target params

func (*DeleteLogTargetParams) WithForceReload

func (o *DeleteLogTargetParams) WithForceReload(forceReload *bool) *DeleteLogTargetParams

WithForceReload adds the forceReload to the delete log target params

func (*DeleteLogTargetParams) WithHTTPClient

func (o *DeleteLogTargetParams) WithHTTPClient(client *http.Client) *DeleteLogTargetParams

WithHTTPClient adds the HTTPClient to the delete log target params

func (*DeleteLogTargetParams) WithIndex

func (o *DeleteLogTargetParams) WithIndex(index int64) *DeleteLogTargetParams

WithIndex adds the index to the delete log target params

func (*DeleteLogTargetParams) WithParentName

func (o *DeleteLogTargetParams) WithParentName(parentName *string) *DeleteLogTargetParams

WithParentName adds the parentName to the delete log target params

func (*DeleteLogTargetParams) WithParentType

func (o *DeleteLogTargetParams) WithParentType(parentType string) *DeleteLogTargetParams

WithParentType adds the parentType to the delete log target params

func (*DeleteLogTargetParams) WithTimeout

func (o *DeleteLogTargetParams) WithTimeout(timeout time.Duration) *DeleteLogTargetParams

WithTimeout adds the timeout to the delete log target params

func (*DeleteLogTargetParams) WithTransactionID

func (o *DeleteLogTargetParams) WithTransactionID(transactionID *string) *DeleteLogTargetParams

WithTransactionID adds the transactionID to the delete log target params

func (*DeleteLogTargetParams) WithVersion

func (o *DeleteLogTargetParams) WithVersion(version *int64) *DeleteLogTargetParams

WithVersion adds the version to the delete log target params

func (*DeleteLogTargetParams) WriteToRequest

func (o *DeleteLogTargetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteLogTargetReader

type DeleteLogTargetReader struct {
	// contains filtered or unexported fields
}

DeleteLogTargetReader is a Reader for the DeleteLogTarget structure.

func (*DeleteLogTargetReader) ReadResponse

func (o *DeleteLogTargetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetLogTargetDefault

type GetLogTargetDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetLogTargetDefault handles this case with default header values.

General Error

func NewGetLogTargetDefault

func NewGetLogTargetDefault(code int) *GetLogTargetDefault

NewGetLogTargetDefault creates a GetLogTargetDefault with default headers values

func (*GetLogTargetDefault) Code

func (o *GetLogTargetDefault) Code() int

Code gets the status code for the get log target default response

func (*GetLogTargetDefault) Error

func (o *GetLogTargetDefault) Error() string

func (*GetLogTargetDefault) GetPayload

func (o *GetLogTargetDefault) GetPayload() *models.Error

type GetLogTargetNotFound

type GetLogTargetNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetLogTargetNotFound handles this case with default header values.

The specified resource was not found

func NewGetLogTargetNotFound

func NewGetLogTargetNotFound() *GetLogTargetNotFound

NewGetLogTargetNotFound creates a GetLogTargetNotFound with default headers values

func (*GetLogTargetNotFound) Error

func (o *GetLogTargetNotFound) Error() string

func (*GetLogTargetNotFound) GetPayload

func (o *GetLogTargetNotFound) GetPayload() *models.Error

type GetLogTargetOK

type GetLogTargetOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetLogTargetOKBody
}

GetLogTargetOK handles this case with default header values.

Successful operation

func NewGetLogTargetOK

func NewGetLogTargetOK() *GetLogTargetOK

NewGetLogTargetOK creates a GetLogTargetOK with default headers values

func (*GetLogTargetOK) Error

func (o *GetLogTargetOK) Error() string

func (*GetLogTargetOK) GetPayload

func (o *GetLogTargetOK) GetPayload() *GetLogTargetOKBody

type GetLogTargetOKBody

type GetLogTargetOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.LogTarget `json:"data,omitempty"`
}

GetLogTargetOKBody get log target o k body swagger:model GetLogTargetOKBody

func (*GetLogTargetOKBody) MarshalBinary

func (o *GetLogTargetOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetLogTargetOKBody) UnmarshalBinary

func (o *GetLogTargetOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetLogTargetOKBody) Validate

func (o *GetLogTargetOKBody) Validate(formats strfmt.Registry) error

Validate validates this get log target o k body

type GetLogTargetParams

type GetLogTargetParams struct {

	/*Index
	  Log Target Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetLogTargetParams contains all the parameters to send to the API endpoint for the get log target operation typically these are written to a http.Request

func NewGetLogTargetParams

func NewGetLogTargetParams() *GetLogTargetParams

NewGetLogTargetParams creates a new GetLogTargetParams object with the default values initialized.

func NewGetLogTargetParamsWithContext

func NewGetLogTargetParamsWithContext(ctx context.Context) *GetLogTargetParams

NewGetLogTargetParamsWithContext creates a new GetLogTargetParams object with the default values initialized, and the ability to set a context for a request

func NewGetLogTargetParamsWithHTTPClient

func NewGetLogTargetParamsWithHTTPClient(client *http.Client) *GetLogTargetParams

NewGetLogTargetParamsWithHTTPClient creates a new GetLogTargetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetLogTargetParamsWithTimeout

func NewGetLogTargetParamsWithTimeout(timeout time.Duration) *GetLogTargetParams

NewGetLogTargetParamsWithTimeout creates a new GetLogTargetParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetLogTargetParams) SetContext

func (o *GetLogTargetParams) SetContext(ctx context.Context)

SetContext adds the context to the get log target params

func (*GetLogTargetParams) SetHTTPClient

func (o *GetLogTargetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get log target params

func (*GetLogTargetParams) SetIndex

func (o *GetLogTargetParams) SetIndex(index int64)

SetIndex adds the index to the get log target params

func (*GetLogTargetParams) SetParentName

func (o *GetLogTargetParams) SetParentName(parentName *string)

SetParentName adds the parentName to the get log target params

func (*GetLogTargetParams) SetParentType

func (o *GetLogTargetParams) SetParentType(parentType string)

SetParentType adds the parentType to the get log target params

func (*GetLogTargetParams) SetTimeout

func (o *GetLogTargetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get log target params

func (*GetLogTargetParams) SetTransactionID

func (o *GetLogTargetParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get log target params

func (*GetLogTargetParams) WithContext

WithContext adds the context to the get log target params

func (*GetLogTargetParams) WithHTTPClient

func (o *GetLogTargetParams) WithHTTPClient(client *http.Client) *GetLogTargetParams

WithHTTPClient adds the HTTPClient to the get log target params

func (*GetLogTargetParams) WithIndex

func (o *GetLogTargetParams) WithIndex(index int64) *GetLogTargetParams

WithIndex adds the index to the get log target params

func (*GetLogTargetParams) WithParentName

func (o *GetLogTargetParams) WithParentName(parentName *string) *GetLogTargetParams

WithParentName adds the parentName to the get log target params

func (*GetLogTargetParams) WithParentType

func (o *GetLogTargetParams) WithParentType(parentType string) *GetLogTargetParams

WithParentType adds the parentType to the get log target params

func (*GetLogTargetParams) WithTimeout

func (o *GetLogTargetParams) WithTimeout(timeout time.Duration) *GetLogTargetParams

WithTimeout adds the timeout to the get log target params

func (*GetLogTargetParams) WithTransactionID

func (o *GetLogTargetParams) WithTransactionID(transactionID *string) *GetLogTargetParams

WithTransactionID adds the transactionID to the get log target params

func (*GetLogTargetParams) WriteToRequest

func (o *GetLogTargetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetLogTargetReader

type GetLogTargetReader struct {
	// contains filtered or unexported fields
}

GetLogTargetReader is a Reader for the GetLogTarget structure.

func (*GetLogTargetReader) ReadResponse

func (o *GetLogTargetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetLogTargetsDefault

type GetLogTargetsDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetLogTargetsDefault handles this case with default header values.

General Error

func NewGetLogTargetsDefault

func NewGetLogTargetsDefault(code int) *GetLogTargetsDefault

NewGetLogTargetsDefault creates a GetLogTargetsDefault with default headers values

func (*GetLogTargetsDefault) Code

func (o *GetLogTargetsDefault) Code() int

Code gets the status code for the get log targets default response

func (*GetLogTargetsDefault) Error

func (o *GetLogTargetsDefault) Error() string

func (*GetLogTargetsDefault) GetPayload

func (o *GetLogTargetsDefault) GetPayload() *models.Error

type GetLogTargetsOK

type GetLogTargetsOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetLogTargetsOKBody
}

GetLogTargetsOK handles this case with default header values.

Successful operation

func NewGetLogTargetsOK

func NewGetLogTargetsOK() *GetLogTargetsOK

NewGetLogTargetsOK creates a GetLogTargetsOK with default headers values

func (*GetLogTargetsOK) Error

func (o *GetLogTargetsOK) Error() string

func (*GetLogTargetsOK) GetPayload

func (o *GetLogTargetsOK) GetPayload() *GetLogTargetsOKBody

type GetLogTargetsOKBody

type GetLogTargetsOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.LogTargets `json:"data"`
}

GetLogTargetsOKBody get log targets o k body swagger:model GetLogTargetsOKBody

func (*GetLogTargetsOKBody) MarshalBinary

func (o *GetLogTargetsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetLogTargetsOKBody) UnmarshalBinary

func (o *GetLogTargetsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetLogTargetsOKBody) Validate

func (o *GetLogTargetsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get log targets o k body

type GetLogTargetsParams

type GetLogTargetsParams struct {

	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetLogTargetsParams contains all the parameters to send to the API endpoint for the get log targets operation typically these are written to a http.Request

func NewGetLogTargetsParams

func NewGetLogTargetsParams() *GetLogTargetsParams

NewGetLogTargetsParams creates a new GetLogTargetsParams object with the default values initialized.

func NewGetLogTargetsParamsWithContext

func NewGetLogTargetsParamsWithContext(ctx context.Context) *GetLogTargetsParams

NewGetLogTargetsParamsWithContext creates a new GetLogTargetsParams object with the default values initialized, and the ability to set a context for a request

func NewGetLogTargetsParamsWithHTTPClient

func NewGetLogTargetsParamsWithHTTPClient(client *http.Client) *GetLogTargetsParams

NewGetLogTargetsParamsWithHTTPClient creates a new GetLogTargetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetLogTargetsParamsWithTimeout

func NewGetLogTargetsParamsWithTimeout(timeout time.Duration) *GetLogTargetsParams

NewGetLogTargetsParamsWithTimeout creates a new GetLogTargetsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetLogTargetsParams) SetContext

func (o *GetLogTargetsParams) SetContext(ctx context.Context)

SetContext adds the context to the get log targets params

func (*GetLogTargetsParams) SetHTTPClient

func (o *GetLogTargetsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get log targets params

func (*GetLogTargetsParams) SetParentName

func (o *GetLogTargetsParams) SetParentName(parentName *string)

SetParentName adds the parentName to the get log targets params

func (*GetLogTargetsParams) SetParentType

func (o *GetLogTargetsParams) SetParentType(parentType string)

SetParentType adds the parentType to the get log targets params

func (*GetLogTargetsParams) SetTimeout

func (o *GetLogTargetsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get log targets params

func (*GetLogTargetsParams) SetTransactionID

func (o *GetLogTargetsParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get log targets params

func (*GetLogTargetsParams) WithContext

WithContext adds the context to the get log targets params

func (*GetLogTargetsParams) WithHTTPClient

func (o *GetLogTargetsParams) WithHTTPClient(client *http.Client) *GetLogTargetsParams

WithHTTPClient adds the HTTPClient to the get log targets params

func (*GetLogTargetsParams) WithParentName

func (o *GetLogTargetsParams) WithParentName(parentName *string) *GetLogTargetsParams

WithParentName adds the parentName to the get log targets params

func (*GetLogTargetsParams) WithParentType

func (o *GetLogTargetsParams) WithParentType(parentType string) *GetLogTargetsParams

WithParentType adds the parentType to the get log targets params

func (*GetLogTargetsParams) WithTimeout

func (o *GetLogTargetsParams) WithTimeout(timeout time.Duration) *GetLogTargetsParams

WithTimeout adds the timeout to the get log targets params

func (*GetLogTargetsParams) WithTransactionID

func (o *GetLogTargetsParams) WithTransactionID(transactionID *string) *GetLogTargetsParams

WithTransactionID adds the transactionID to the get log targets params

func (*GetLogTargetsParams) WriteToRequest

func (o *GetLogTargetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetLogTargetsReader

type GetLogTargetsReader struct {
	// contains filtered or unexported fields
}

GetLogTargetsReader is a Reader for the GetLogTargets structure.

func (*GetLogTargetsReader) ReadResponse

func (o *GetLogTargetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ReplaceLogTargetAccepted

type ReplaceLogTargetAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.LogTarget
}

ReplaceLogTargetAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceLogTargetAccepted

func NewReplaceLogTargetAccepted() *ReplaceLogTargetAccepted

NewReplaceLogTargetAccepted creates a ReplaceLogTargetAccepted with default headers values

func (*ReplaceLogTargetAccepted) Error

func (o *ReplaceLogTargetAccepted) Error() string

func (*ReplaceLogTargetAccepted) GetPayload

func (o *ReplaceLogTargetAccepted) GetPayload() *models.LogTarget

type ReplaceLogTargetBadRequest

type ReplaceLogTargetBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceLogTargetBadRequest handles this case with default header values.

Bad request

func NewReplaceLogTargetBadRequest

func NewReplaceLogTargetBadRequest() *ReplaceLogTargetBadRequest

NewReplaceLogTargetBadRequest creates a ReplaceLogTargetBadRequest with default headers values

func (*ReplaceLogTargetBadRequest) Error

func (*ReplaceLogTargetBadRequest) GetPayload

func (o *ReplaceLogTargetBadRequest) GetPayload() *models.Error

type ReplaceLogTargetDefault

type ReplaceLogTargetDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceLogTargetDefault handles this case with default header values.

General Error

func NewReplaceLogTargetDefault

func NewReplaceLogTargetDefault(code int) *ReplaceLogTargetDefault

NewReplaceLogTargetDefault creates a ReplaceLogTargetDefault with default headers values

func (*ReplaceLogTargetDefault) Code

func (o *ReplaceLogTargetDefault) Code() int

Code gets the status code for the replace log target default response

func (*ReplaceLogTargetDefault) Error

func (o *ReplaceLogTargetDefault) Error() string

func (*ReplaceLogTargetDefault) GetPayload

func (o *ReplaceLogTargetDefault) GetPayload() *models.Error

type ReplaceLogTargetNotFound

type ReplaceLogTargetNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceLogTargetNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceLogTargetNotFound

func NewReplaceLogTargetNotFound() *ReplaceLogTargetNotFound

NewReplaceLogTargetNotFound creates a ReplaceLogTargetNotFound with default headers values

func (*ReplaceLogTargetNotFound) Error

func (o *ReplaceLogTargetNotFound) Error() string

func (*ReplaceLogTargetNotFound) GetPayload

func (o *ReplaceLogTargetNotFound) GetPayload() *models.Error

type ReplaceLogTargetOK

type ReplaceLogTargetOK struct {
	Payload *models.LogTarget
}

ReplaceLogTargetOK handles this case with default header values.

Log Target replaced

func NewReplaceLogTargetOK

func NewReplaceLogTargetOK() *ReplaceLogTargetOK

NewReplaceLogTargetOK creates a ReplaceLogTargetOK with default headers values

func (*ReplaceLogTargetOK) Error

func (o *ReplaceLogTargetOK) Error() string

func (*ReplaceLogTargetOK) GetPayload

func (o *ReplaceLogTargetOK) GetPayload() *models.LogTarget

type ReplaceLogTargetParams

type ReplaceLogTargetParams struct {

	/*Data*/
	Data *models.LogTarget
	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*Index
	  Log Target Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName *string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ReplaceLogTargetParams contains all the parameters to send to the API endpoint for the replace log target operation typically these are written to a http.Request

func NewReplaceLogTargetParams

func NewReplaceLogTargetParams() *ReplaceLogTargetParams

NewReplaceLogTargetParams creates a new ReplaceLogTargetParams object with the default values initialized.

func NewReplaceLogTargetParamsWithContext

func NewReplaceLogTargetParamsWithContext(ctx context.Context) *ReplaceLogTargetParams

NewReplaceLogTargetParamsWithContext creates a new ReplaceLogTargetParams object with the default values initialized, and the ability to set a context for a request

func NewReplaceLogTargetParamsWithHTTPClient

func NewReplaceLogTargetParamsWithHTTPClient(client *http.Client) *ReplaceLogTargetParams

NewReplaceLogTargetParamsWithHTTPClient creates a new ReplaceLogTargetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewReplaceLogTargetParamsWithTimeout

func NewReplaceLogTargetParamsWithTimeout(timeout time.Duration) *ReplaceLogTargetParams

NewReplaceLogTargetParamsWithTimeout creates a new ReplaceLogTargetParams object with the default values initialized, and the ability to set a timeout on a request

func (*ReplaceLogTargetParams) SetContext

func (o *ReplaceLogTargetParams) SetContext(ctx context.Context)

SetContext adds the context to the replace log target params

func (*ReplaceLogTargetParams) SetData

func (o *ReplaceLogTargetParams) SetData(data *models.LogTarget)

SetData adds the data to the replace log target params

func (*ReplaceLogTargetParams) SetForceReload

func (o *ReplaceLogTargetParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace log target params

func (*ReplaceLogTargetParams) SetHTTPClient

func (o *ReplaceLogTargetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the replace log target params

func (*ReplaceLogTargetParams) SetIndex

func (o *ReplaceLogTargetParams) SetIndex(index int64)

SetIndex adds the index to the replace log target params

func (*ReplaceLogTargetParams) SetParentName

func (o *ReplaceLogTargetParams) SetParentName(parentName *string)

SetParentName adds the parentName to the replace log target params

func (*ReplaceLogTargetParams) SetParentType

func (o *ReplaceLogTargetParams) SetParentType(parentType string)

SetParentType adds the parentType to the replace log target params

func (*ReplaceLogTargetParams) SetTimeout

func (o *ReplaceLogTargetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the replace log target params

func (*ReplaceLogTargetParams) SetTransactionID

func (o *ReplaceLogTargetParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace log target params

func (*ReplaceLogTargetParams) SetVersion

func (o *ReplaceLogTargetParams) SetVersion(version *int64)

SetVersion adds the version to the replace log target params

func (*ReplaceLogTargetParams) WithContext

WithContext adds the context to the replace log target params

func (*ReplaceLogTargetParams) WithData

WithData adds the data to the replace log target params

func (*ReplaceLogTargetParams) WithForceReload

func (o *ReplaceLogTargetParams) WithForceReload(forceReload *bool) *ReplaceLogTargetParams

WithForceReload adds the forceReload to the replace log target params

func (*ReplaceLogTargetParams) WithHTTPClient

func (o *ReplaceLogTargetParams) WithHTTPClient(client *http.Client) *ReplaceLogTargetParams

WithHTTPClient adds the HTTPClient to the replace log target params

func (*ReplaceLogTargetParams) WithIndex

WithIndex adds the index to the replace log target params

func (*ReplaceLogTargetParams) WithParentName

func (o *ReplaceLogTargetParams) WithParentName(parentName *string) *ReplaceLogTargetParams

WithParentName adds the parentName to the replace log target params

func (*ReplaceLogTargetParams) WithParentType

func (o *ReplaceLogTargetParams) WithParentType(parentType string) *ReplaceLogTargetParams

WithParentType adds the parentType to the replace log target params

func (*ReplaceLogTargetParams) WithTimeout

WithTimeout adds the timeout to the replace log target params

func (*ReplaceLogTargetParams) WithTransactionID

func (o *ReplaceLogTargetParams) WithTransactionID(transactionID *string) *ReplaceLogTargetParams

WithTransactionID adds the transactionID to the replace log target params

func (*ReplaceLogTargetParams) WithVersion

func (o *ReplaceLogTargetParams) WithVersion(version *int64) *ReplaceLogTargetParams

WithVersion adds the version to the replace log target params

func (*ReplaceLogTargetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceLogTargetReader

type ReplaceLogTargetReader struct {
	// contains filtered or unexported fields
}

ReplaceLogTargetReader is a Reader for the ReplaceLogTarget structure.

func (*ReplaceLogTargetReader) ReadResponse

func (o *ReplaceLogTargetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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