// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) // Level - An integer log level to write to the PMS log with. // 0: Error // 1: Warning // 2: Info // 3: Debug // 4: Verbose type Level int64 const ( LevelZero Level = 0 LevelOne Level = 1 LevelTwo Level = 2 LevelThree Level = 3 LevelFour Level = 4 ) func (e Level) ToPointer() *Level { return &e } type LogLineRequest struct { // An integer log level to write to the PMS log with. // 0: Error // 1: Warning // 2: Info // 3: Debug // 4: Verbose // Level Level `queryParam:"style=form,explode=true,name=level"` // The text of the message to write to the log. Message string `queryParam:"style=form,explode=true,name=message"` // a string indicating the source of the message. Source string `queryParam:"style=form,explode=true,name=source"` } func (o *LogLineRequest) GetLevel() Level { if o == nil { return Level(0) } return o.Level } func (o *LogLineRequest) GetMessage() string { if o == nil { return "" } return o.Message } func (o *LogLineRequest) GetSource() string { if o == nil { return "" } return o.Source } type LogLineResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response } func (o *LogLineResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } func (o *LogLineResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } func (o *LogLineResponse) GetRawResponse() *http.Response { if o == nil { return nil } return o.RawResponse }