slo

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 11 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 slo API

func (*Client) CreateSLO

func (a *Client) CreateSLO(params *CreateSLOParams, opts ...ClientOption) (*CreateSLOOK, error)

CreateSLO create SLO API

func (*Client) DeleteSLO

func (a *Client) DeleteSLO(params *DeleteSLOParams, opts ...ClientOption) (*DeleteSLOOK, error)

DeleteSLO delete SLO API

func (*Client) ListSLOs

func (a *Client) ListSLOs(params *ListSLOsParams, opts ...ClientOption) (*ListSLOsOK, error)

ListSLOs list s l os API

func (*Client) ReadSLO

func (a *Client) ReadSLO(params *ReadSLOParams, opts ...ClientOption) (*ReadSLOOK, error)

ReadSLO read SLO API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateSLO

func (a *Client) UpdateSLO(params *UpdateSLOParams, opts ...ClientOption) (*UpdateSLOOK, error)

UpdateSLO update SLO API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateSLO(params *CreateSLOParams, opts ...ClientOption) (*CreateSLOOK, error)

	DeleteSLO(params *DeleteSLOParams, opts ...ClientOption) (*DeleteSLOOK, error)

	ListSLOs(params *ListSLOsParams, opts ...ClientOption) (*ListSLOsOK, error)

	ReadSLO(params *ReadSLOParams, opts ...ClientOption) (*ReadSLOOK, error)

	UpdateSLO(params *UpdateSLOParams, opts ...ClientOption) (*UpdateSLOOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new slo API client.

type CreateSLOBadRequest

type CreateSLOBadRequest struct {
	Payload *models.APIError
}

CreateSLOBadRequest describes a response with status code 400, with default header values.

Cannot create the SLO because the request is invalid.

func NewCreateSLOBadRequest

func NewCreateSLOBadRequest() *CreateSLOBadRequest

NewCreateSLOBadRequest creates a CreateSLOBadRequest with default headers values

func (*CreateSLOBadRequest) Code

func (o *CreateSLOBadRequest) Code() int

Code gets the status code for the create Slo bad request response

func (*CreateSLOBadRequest) Error

func (o *CreateSLOBadRequest) Error() string

func (*CreateSLOBadRequest) GetPayload

func (o *CreateSLOBadRequest) GetPayload() *models.APIError

func (*CreateSLOBadRequest) IsClientError

func (o *CreateSLOBadRequest) IsClientError() bool

IsClientError returns true when this create Slo bad request response has a 4xx status code

func (*CreateSLOBadRequest) IsCode

func (o *CreateSLOBadRequest) IsCode(code int) bool

IsCode returns true when this create Slo bad request response a status code equal to that given

func (*CreateSLOBadRequest) IsRedirect

func (o *CreateSLOBadRequest) IsRedirect() bool

IsRedirect returns true when this create Slo bad request response has a 3xx status code

func (*CreateSLOBadRequest) IsServerError

func (o *CreateSLOBadRequest) IsServerError() bool

IsServerError returns true when this create Slo bad request response has a 5xx status code

func (*CreateSLOBadRequest) IsSuccess

func (o *CreateSLOBadRequest) IsSuccess() bool

IsSuccess returns true when this create Slo bad request response has a 2xx status code

func (*CreateSLOBadRequest) String

func (o *CreateSLOBadRequest) String() string

type CreateSLOConflict

type CreateSLOConflict struct {
	Payload *models.APIError
}

CreateSLOConflict describes a response with status code 409, with default header values.

Cannot create the SLO because there is a conflict with an existing SLO.

func NewCreateSLOConflict

func NewCreateSLOConflict() *CreateSLOConflict

NewCreateSLOConflict creates a CreateSLOConflict with default headers values

func (*CreateSLOConflict) Code

func (o *CreateSLOConflict) Code() int

Code gets the status code for the create Slo conflict response

func (*CreateSLOConflict) Error

func (o *CreateSLOConflict) Error() string

func (*CreateSLOConflict) GetPayload

func (o *CreateSLOConflict) GetPayload() *models.APIError

func (*CreateSLOConflict) IsClientError

func (o *CreateSLOConflict) IsClientError() bool

IsClientError returns true when this create Slo conflict response has a 4xx status code

func (*CreateSLOConflict) IsCode

func (o *CreateSLOConflict) IsCode(code int) bool

IsCode returns true when this create Slo conflict response a status code equal to that given

func (*CreateSLOConflict) IsRedirect

func (o *CreateSLOConflict) IsRedirect() bool

IsRedirect returns true when this create Slo conflict response has a 3xx status code

func (*CreateSLOConflict) IsServerError

func (o *CreateSLOConflict) IsServerError() bool

IsServerError returns true when this create Slo conflict response has a 5xx status code

func (*CreateSLOConflict) IsSuccess

func (o *CreateSLOConflict) IsSuccess() bool

IsSuccess returns true when this create Slo conflict response has a 2xx status code

func (*CreateSLOConflict) String

func (o *CreateSLOConflict) String() string

type CreateSLODefault

type CreateSLODefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateSLODefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateSLODefault

func NewCreateSLODefault(code int) *CreateSLODefault

NewCreateSLODefault creates a CreateSLODefault with default headers values

func (*CreateSLODefault) Code

func (o *CreateSLODefault) Code() int

Code gets the status code for the create SLO default response

func (*CreateSLODefault) Error

func (o *CreateSLODefault) Error() string

func (*CreateSLODefault) GetPayload

func (o *CreateSLODefault) GetPayload() models.GenericError

func (*CreateSLODefault) IsClientError

func (o *CreateSLODefault) IsClientError() bool

IsClientError returns true when this create SLO default response has a 4xx status code

func (*CreateSLODefault) IsCode

func (o *CreateSLODefault) IsCode(code int) bool

IsCode returns true when this create SLO default response a status code equal to that given

func (*CreateSLODefault) IsRedirect

func (o *CreateSLODefault) IsRedirect() bool

IsRedirect returns true when this create SLO default response has a 3xx status code

func (*CreateSLODefault) IsServerError

func (o *CreateSLODefault) IsServerError() bool

IsServerError returns true when this create SLO default response has a 5xx status code

func (*CreateSLODefault) IsSuccess

func (o *CreateSLODefault) IsSuccess() bool

IsSuccess returns true when this create SLO default response has a 2xx status code

func (*CreateSLODefault) String

func (o *CreateSLODefault) String() string

type CreateSLOInternalServerError

type CreateSLOInternalServerError struct {
	Payload *models.APIError
}

CreateSLOInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateSLOInternalServerError

func NewCreateSLOInternalServerError() *CreateSLOInternalServerError

NewCreateSLOInternalServerError creates a CreateSLOInternalServerError with default headers values

func (*CreateSLOInternalServerError) Code

Code gets the status code for the create Slo internal server error response

func (*CreateSLOInternalServerError) Error

func (*CreateSLOInternalServerError) GetPayload

func (o *CreateSLOInternalServerError) GetPayload() *models.APIError

func (*CreateSLOInternalServerError) IsClientError

func (o *CreateSLOInternalServerError) IsClientError() bool

IsClientError returns true when this create Slo internal server error response has a 4xx status code

func (*CreateSLOInternalServerError) IsCode

func (o *CreateSLOInternalServerError) IsCode(code int) bool

IsCode returns true when this create Slo internal server error response a status code equal to that given

func (*CreateSLOInternalServerError) IsRedirect

func (o *CreateSLOInternalServerError) IsRedirect() bool

IsRedirect returns true when this create Slo internal server error response has a 3xx status code

func (*CreateSLOInternalServerError) IsServerError

func (o *CreateSLOInternalServerError) IsServerError() bool

IsServerError returns true when this create Slo internal server error response has a 5xx status code

func (*CreateSLOInternalServerError) IsSuccess

func (o *CreateSLOInternalServerError) IsSuccess() bool

IsSuccess returns true when this create Slo internal server error response has a 2xx status code

func (*CreateSLOInternalServerError) String

type CreateSLOOK

type CreateSLOOK struct {
	Payload *models.ConfigunstableCreateSLOResponse
}

CreateSLOOK describes a response with status code 200, with default header values.

A successful response containing the created SLO.

func NewCreateSLOOK

func NewCreateSLOOK() *CreateSLOOK

NewCreateSLOOK creates a CreateSLOOK with default headers values

func (*CreateSLOOK) Code

func (o *CreateSLOOK) Code() int

Code gets the status code for the create Slo o k response

func (*CreateSLOOK) Error

func (o *CreateSLOOK) Error() string

func (*CreateSLOOK) GetPayload

func (*CreateSLOOK) IsClientError

func (o *CreateSLOOK) IsClientError() bool

IsClientError returns true when this create Slo o k response has a 4xx status code

func (*CreateSLOOK) IsCode

func (o *CreateSLOOK) IsCode(code int) bool

IsCode returns true when this create Slo o k response a status code equal to that given

func (*CreateSLOOK) IsRedirect

func (o *CreateSLOOK) IsRedirect() bool

IsRedirect returns true when this create Slo o k response has a 3xx status code

func (*CreateSLOOK) IsServerError

func (o *CreateSLOOK) IsServerError() bool

IsServerError returns true when this create Slo o k response has a 5xx status code

func (*CreateSLOOK) IsSuccess

func (o *CreateSLOOK) IsSuccess() bool

IsSuccess returns true when this create Slo o k response has a 2xx status code

func (*CreateSLOOK) String

func (o *CreateSLOOK) String() string

type CreateSLOParams

type CreateSLOParams struct {

	// Body.
	Body *models.ConfigunstableCreateSLORequest

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

CreateSLOParams contains all the parameters to send to the API endpoint

for the create SLO operation.

Typically these are written to a http.Request.

func NewCreateSLOParams

func NewCreateSLOParams() *CreateSLOParams

NewCreateSLOParams creates a new CreateSLOParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateSLOParamsWithContext

func NewCreateSLOParamsWithContext(ctx context.Context) *CreateSLOParams

NewCreateSLOParamsWithContext creates a new CreateSLOParams object with the ability to set a context for a request.

func NewCreateSLOParamsWithHTTPClient

func NewCreateSLOParamsWithHTTPClient(client *http.Client) *CreateSLOParams

NewCreateSLOParamsWithHTTPClient creates a new CreateSLOParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSLOParamsWithTimeout

func NewCreateSLOParamsWithTimeout(timeout time.Duration) *CreateSLOParams

NewCreateSLOParamsWithTimeout creates a new CreateSLOParams object with the ability to set a timeout on a request.

func (*CreateSLOParams) SetBody

SetBody adds the body to the create SLO params

func (*CreateSLOParams) SetContext

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

SetContext adds the context to the create SLO params

func (*CreateSLOParams) SetDefaults

func (o *CreateSLOParams) SetDefaults()

SetDefaults hydrates default values in the create SLO params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSLOParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create SLO params

func (*CreateSLOParams) SetTimeout

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

SetTimeout adds the timeout to the create SLO params

func (*CreateSLOParams) WithBody

WithBody adds the body to the create SLO params

func (*CreateSLOParams) WithContext

func (o *CreateSLOParams) WithContext(ctx context.Context) *CreateSLOParams

WithContext adds the context to the create SLO params

func (*CreateSLOParams) WithDefaults

func (o *CreateSLOParams) WithDefaults() *CreateSLOParams

WithDefaults hydrates default values in the create SLO params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSLOParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create SLO params

func (*CreateSLOParams) WithTimeout

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

WithTimeout adds the timeout to the create SLO params

func (*CreateSLOParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateSLOReader

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

CreateSLOReader is a Reader for the CreateSLO structure.

func (*CreateSLOReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSLOBadRequest

type DeleteSLOBadRequest struct {
	Payload *models.APIError
}

DeleteSLOBadRequest describes a response with status code 400, with default header values.

Cannot delete the SLO because it is in use.

func NewDeleteSLOBadRequest

func NewDeleteSLOBadRequest() *DeleteSLOBadRequest

NewDeleteSLOBadRequest creates a DeleteSLOBadRequest with default headers values

func (*DeleteSLOBadRequest) Code

func (o *DeleteSLOBadRequest) Code() int

Code gets the status code for the delete Slo bad request response

func (*DeleteSLOBadRequest) Error

func (o *DeleteSLOBadRequest) Error() string

func (*DeleteSLOBadRequest) GetPayload

func (o *DeleteSLOBadRequest) GetPayload() *models.APIError

func (*DeleteSLOBadRequest) IsClientError

func (o *DeleteSLOBadRequest) IsClientError() bool

IsClientError returns true when this delete Slo bad request response has a 4xx status code

func (*DeleteSLOBadRequest) IsCode

func (o *DeleteSLOBadRequest) IsCode(code int) bool

IsCode returns true when this delete Slo bad request response a status code equal to that given

func (*DeleteSLOBadRequest) IsRedirect

func (o *DeleteSLOBadRequest) IsRedirect() bool

IsRedirect returns true when this delete Slo bad request response has a 3xx status code

func (*DeleteSLOBadRequest) IsServerError

func (o *DeleteSLOBadRequest) IsServerError() bool

IsServerError returns true when this delete Slo bad request response has a 5xx status code

func (*DeleteSLOBadRequest) IsSuccess

func (o *DeleteSLOBadRequest) IsSuccess() bool

IsSuccess returns true when this delete Slo bad request response has a 2xx status code

func (*DeleteSLOBadRequest) String

func (o *DeleteSLOBadRequest) String() string

type DeleteSLODefault

type DeleteSLODefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteSLODefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteSLODefault

func NewDeleteSLODefault(code int) *DeleteSLODefault

NewDeleteSLODefault creates a DeleteSLODefault with default headers values

func (*DeleteSLODefault) Code

func (o *DeleteSLODefault) Code() int

Code gets the status code for the delete SLO default response

func (*DeleteSLODefault) Error

func (o *DeleteSLODefault) Error() string

func (*DeleteSLODefault) GetPayload

func (o *DeleteSLODefault) GetPayload() models.GenericError

func (*DeleteSLODefault) IsClientError

func (o *DeleteSLODefault) IsClientError() bool

IsClientError returns true when this delete SLO default response has a 4xx status code

func (*DeleteSLODefault) IsCode

func (o *DeleteSLODefault) IsCode(code int) bool

IsCode returns true when this delete SLO default response a status code equal to that given

func (*DeleteSLODefault) IsRedirect

func (o *DeleteSLODefault) IsRedirect() bool

IsRedirect returns true when this delete SLO default response has a 3xx status code

func (*DeleteSLODefault) IsServerError

func (o *DeleteSLODefault) IsServerError() bool

IsServerError returns true when this delete SLO default response has a 5xx status code

func (*DeleteSLODefault) IsSuccess

func (o *DeleteSLODefault) IsSuccess() bool

IsSuccess returns true when this delete SLO default response has a 2xx status code

func (*DeleteSLODefault) String

func (o *DeleteSLODefault) String() string

type DeleteSLOInternalServerError

type DeleteSLOInternalServerError struct {
	Payload *models.APIError
}

DeleteSLOInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteSLOInternalServerError

func NewDeleteSLOInternalServerError() *DeleteSLOInternalServerError

NewDeleteSLOInternalServerError creates a DeleteSLOInternalServerError with default headers values

func (*DeleteSLOInternalServerError) Code

Code gets the status code for the delete Slo internal server error response

func (*DeleteSLOInternalServerError) Error

func (*DeleteSLOInternalServerError) GetPayload

func (o *DeleteSLOInternalServerError) GetPayload() *models.APIError

func (*DeleteSLOInternalServerError) IsClientError

func (o *DeleteSLOInternalServerError) IsClientError() bool

IsClientError returns true when this delete Slo internal server error response has a 4xx status code

func (*DeleteSLOInternalServerError) IsCode

func (o *DeleteSLOInternalServerError) IsCode(code int) bool

IsCode returns true when this delete Slo internal server error response a status code equal to that given

func (*DeleteSLOInternalServerError) IsRedirect

func (o *DeleteSLOInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete Slo internal server error response has a 3xx status code

func (*DeleteSLOInternalServerError) IsServerError

func (o *DeleteSLOInternalServerError) IsServerError() bool

IsServerError returns true when this delete Slo internal server error response has a 5xx status code

func (*DeleteSLOInternalServerError) IsSuccess

func (o *DeleteSLOInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete Slo internal server error response has a 2xx status code

func (*DeleteSLOInternalServerError) String

type DeleteSLONotFound

type DeleteSLONotFound struct {
	Payload *models.APIError
}

DeleteSLONotFound describes a response with status code 404, with default header values.

Cannot delete the SLO because the slug does not exist.

func NewDeleteSLONotFound

func NewDeleteSLONotFound() *DeleteSLONotFound

NewDeleteSLONotFound creates a DeleteSLONotFound with default headers values

func (*DeleteSLONotFound) Code

func (o *DeleteSLONotFound) Code() int

Code gets the status code for the delete Slo not found response

func (*DeleteSLONotFound) Error

func (o *DeleteSLONotFound) Error() string

func (*DeleteSLONotFound) GetPayload

func (o *DeleteSLONotFound) GetPayload() *models.APIError

func (*DeleteSLONotFound) IsClientError

func (o *DeleteSLONotFound) IsClientError() bool

IsClientError returns true when this delete Slo not found response has a 4xx status code

func (*DeleteSLONotFound) IsCode

func (o *DeleteSLONotFound) IsCode(code int) bool

IsCode returns true when this delete Slo not found response a status code equal to that given

func (*DeleteSLONotFound) IsRedirect

func (o *DeleteSLONotFound) IsRedirect() bool

IsRedirect returns true when this delete Slo not found response has a 3xx status code

func (*DeleteSLONotFound) IsServerError

func (o *DeleteSLONotFound) IsServerError() bool

IsServerError returns true when this delete Slo not found response has a 5xx status code

func (*DeleteSLONotFound) IsSuccess

func (o *DeleteSLONotFound) IsSuccess() bool

IsSuccess returns true when this delete Slo not found response has a 2xx status code

func (*DeleteSLONotFound) String

func (o *DeleteSLONotFound) String() string

type DeleteSLOOK

type DeleteSLOOK struct {
	Payload models.ConfigunstableDeleteSLOResponse
}

DeleteSLOOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteSLOOK

func NewDeleteSLOOK() *DeleteSLOOK

NewDeleteSLOOK creates a DeleteSLOOK with default headers values

func (*DeleteSLOOK) Code

func (o *DeleteSLOOK) Code() int

Code gets the status code for the delete Slo o k response

func (*DeleteSLOOK) Error

func (o *DeleteSLOOK) Error() string

func (*DeleteSLOOK) GetPayload

func (*DeleteSLOOK) IsClientError

func (o *DeleteSLOOK) IsClientError() bool

IsClientError returns true when this delete Slo o k response has a 4xx status code

func (*DeleteSLOOK) IsCode

func (o *DeleteSLOOK) IsCode(code int) bool

IsCode returns true when this delete Slo o k response a status code equal to that given

func (*DeleteSLOOK) IsRedirect

func (o *DeleteSLOOK) IsRedirect() bool

IsRedirect returns true when this delete Slo o k response has a 3xx status code

func (*DeleteSLOOK) IsServerError

func (o *DeleteSLOOK) IsServerError() bool

IsServerError returns true when this delete Slo o k response has a 5xx status code

func (*DeleteSLOOK) IsSuccess

func (o *DeleteSLOOK) IsSuccess() bool

IsSuccess returns true when this delete Slo o k response has a 2xx status code

func (*DeleteSLOOK) String

func (o *DeleteSLOOK) String() string

type DeleteSLOParams

type DeleteSLOParams struct {

	// Slug.
	Slug string

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

DeleteSLOParams contains all the parameters to send to the API endpoint

for the delete SLO operation.

Typically these are written to a http.Request.

func NewDeleteSLOParams

func NewDeleteSLOParams() *DeleteSLOParams

NewDeleteSLOParams creates a new DeleteSLOParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteSLOParamsWithContext

func NewDeleteSLOParamsWithContext(ctx context.Context) *DeleteSLOParams

NewDeleteSLOParamsWithContext creates a new DeleteSLOParams object with the ability to set a context for a request.

func NewDeleteSLOParamsWithHTTPClient

func NewDeleteSLOParamsWithHTTPClient(client *http.Client) *DeleteSLOParams

NewDeleteSLOParamsWithHTTPClient creates a new DeleteSLOParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSLOParamsWithTimeout

func NewDeleteSLOParamsWithTimeout(timeout time.Duration) *DeleteSLOParams

NewDeleteSLOParamsWithTimeout creates a new DeleteSLOParams object with the ability to set a timeout on a request.

func (*DeleteSLOParams) SetContext

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

SetContext adds the context to the delete SLO params

func (*DeleteSLOParams) SetDefaults

func (o *DeleteSLOParams) SetDefaults()

SetDefaults hydrates default values in the delete SLO params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSLOParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete SLO params

func (*DeleteSLOParams) SetSlug

func (o *DeleteSLOParams) SetSlug(slug string)

SetSlug adds the slug to the delete SLO params

func (*DeleteSLOParams) SetTimeout

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

SetTimeout adds the timeout to the delete SLO params

func (*DeleteSLOParams) WithContext

func (o *DeleteSLOParams) WithContext(ctx context.Context) *DeleteSLOParams

WithContext adds the context to the delete SLO params

func (*DeleteSLOParams) WithDefaults

func (o *DeleteSLOParams) WithDefaults() *DeleteSLOParams

WithDefaults hydrates default values in the delete SLO params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSLOParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete SLO params

func (*DeleteSLOParams) WithSlug

func (o *DeleteSLOParams) WithSlug(slug string) *DeleteSLOParams

WithSlug adds the slug to the delete SLO params

func (*DeleteSLOParams) WithTimeout

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

WithTimeout adds the timeout to the delete SLO params

func (*DeleteSLOParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteSLOReader

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

DeleteSLOReader is a Reader for the DeleteSLO structure.

func (*DeleteSLOReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSLOsDefault

type ListSLOsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListSLOsDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListSLOsDefault

func NewListSLOsDefault(code int) *ListSLOsDefault

NewListSLOsDefault creates a ListSLOsDefault with default headers values

func (*ListSLOsDefault) Code

func (o *ListSLOsDefault) Code() int

Code gets the status code for the list s l os default response

func (*ListSLOsDefault) Error

func (o *ListSLOsDefault) Error() string

func (*ListSLOsDefault) GetPayload

func (o *ListSLOsDefault) GetPayload() models.GenericError

func (*ListSLOsDefault) IsClientError

func (o *ListSLOsDefault) IsClientError() bool

IsClientError returns true when this list s l os default response has a 4xx status code

func (*ListSLOsDefault) IsCode

func (o *ListSLOsDefault) IsCode(code int) bool

IsCode returns true when this list s l os default response a status code equal to that given

func (*ListSLOsDefault) IsRedirect

func (o *ListSLOsDefault) IsRedirect() bool

IsRedirect returns true when this list s l os default response has a 3xx status code

func (*ListSLOsDefault) IsServerError

func (o *ListSLOsDefault) IsServerError() bool

IsServerError returns true when this list s l os default response has a 5xx status code

func (*ListSLOsDefault) IsSuccess

func (o *ListSLOsDefault) IsSuccess() bool

IsSuccess returns true when this list s l os default response has a 2xx status code

func (*ListSLOsDefault) String

func (o *ListSLOsDefault) String() string

type ListSLOsInternalServerError

type ListSLOsInternalServerError struct {
	Payload *models.APIError
}

ListSLOsInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListSLOsInternalServerError

func NewListSLOsInternalServerError() *ListSLOsInternalServerError

NewListSLOsInternalServerError creates a ListSLOsInternalServerError with default headers values

func (*ListSLOsInternalServerError) Code

func (o *ListSLOsInternalServerError) Code() int

Code gets the status code for the list s l os internal server error response

func (*ListSLOsInternalServerError) Error

func (*ListSLOsInternalServerError) GetPayload

func (o *ListSLOsInternalServerError) GetPayload() *models.APIError

func (*ListSLOsInternalServerError) IsClientError

func (o *ListSLOsInternalServerError) IsClientError() bool

IsClientError returns true when this list s l os internal server error response has a 4xx status code

func (*ListSLOsInternalServerError) IsCode

func (o *ListSLOsInternalServerError) IsCode(code int) bool

IsCode returns true when this list s l os internal server error response a status code equal to that given

func (*ListSLOsInternalServerError) IsRedirect

func (o *ListSLOsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list s l os internal server error response has a 3xx status code

func (*ListSLOsInternalServerError) IsServerError

func (o *ListSLOsInternalServerError) IsServerError() bool

IsServerError returns true when this list s l os internal server error response has a 5xx status code

func (*ListSLOsInternalServerError) IsSuccess

func (o *ListSLOsInternalServerError) IsSuccess() bool

IsSuccess returns true when this list s l os internal server error response has a 2xx status code

func (*ListSLOsInternalServerError) String

func (o *ListSLOsInternalServerError) String() string

type ListSLOsOK

type ListSLOsOK struct {
	Payload *models.ConfigunstableListSLOsResponse
}

ListSLOsOK describes a response with status code 200, with default header values.

A successful response.

func NewListSLOsOK

func NewListSLOsOK() *ListSLOsOK

NewListSLOsOK creates a ListSLOsOK with default headers values

func (*ListSLOsOK) Code

func (o *ListSLOsOK) Code() int

Code gets the status code for the list s l os o k response

func (*ListSLOsOK) Error

func (o *ListSLOsOK) Error() string

func (*ListSLOsOK) GetPayload

func (*ListSLOsOK) IsClientError

func (o *ListSLOsOK) IsClientError() bool

IsClientError returns true when this list s l os o k response has a 4xx status code

func (*ListSLOsOK) IsCode

func (o *ListSLOsOK) IsCode(code int) bool

IsCode returns true when this list s l os o k response a status code equal to that given

func (*ListSLOsOK) IsRedirect

func (o *ListSLOsOK) IsRedirect() bool

IsRedirect returns true when this list s l os o k response has a 3xx status code

func (*ListSLOsOK) IsServerError

func (o *ListSLOsOK) IsServerError() bool

IsServerError returns true when this list s l os o k response has a 5xx status code

func (*ListSLOsOK) IsSuccess

func (o *ListSLOsOK) IsSuccess() bool

IsSuccess returns true when this list s l os o k response has a 2xx status code

func (*ListSLOsOK) String

func (o *ListSLOsOK) String() string

type ListSLOsParams

type ListSLOsParams struct {

	// CollectionSlugs.
	CollectionSlugs []string

	/* Names.

	   Filters results by name, where any SLO with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	// ServiceSlugs.
	ServiceSlugs []string

	/* Slugs.

	   Filters results by slug, where any SLO with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

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

ListSLOsParams contains all the parameters to send to the API endpoint

for the list s l os operation.

Typically these are written to a http.Request.

func NewListSLOsParams

func NewListSLOsParams() *ListSLOsParams

NewListSLOsParams creates a new ListSLOsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListSLOsParamsWithContext

func NewListSLOsParamsWithContext(ctx context.Context) *ListSLOsParams

NewListSLOsParamsWithContext creates a new ListSLOsParams object with the ability to set a context for a request.

func NewListSLOsParamsWithHTTPClient

func NewListSLOsParamsWithHTTPClient(client *http.Client) *ListSLOsParams

NewListSLOsParamsWithHTTPClient creates a new ListSLOsParams object with the ability to set a custom HTTPClient for a request.

func NewListSLOsParamsWithTimeout

func NewListSLOsParamsWithTimeout(timeout time.Duration) *ListSLOsParams

NewListSLOsParamsWithTimeout creates a new ListSLOsParams object with the ability to set a timeout on a request.

func (*ListSLOsParams) SetCollectionSlugs

func (o *ListSLOsParams) SetCollectionSlugs(collectionSlugs []string)

SetCollectionSlugs adds the collectionSlugs to the list s l os params

func (*ListSLOsParams) SetContext

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

SetContext adds the context to the list s l os params

func (*ListSLOsParams) SetDefaults

func (o *ListSLOsParams) SetDefaults()

SetDefaults hydrates default values in the list s l os params (not the query body).

All values with no default are reset to their zero value.

func (*ListSLOsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list s l os params

func (*ListSLOsParams) SetNames

func (o *ListSLOsParams) SetNames(names []string)

SetNames adds the names to the list s l os params

func (*ListSLOsParams) SetPageMaxSize

func (o *ListSLOsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list s l os params

func (*ListSLOsParams) SetPageToken

func (o *ListSLOsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list s l os params

func (*ListSLOsParams) SetServiceSlugs

func (o *ListSLOsParams) SetServiceSlugs(serviceSlugs []string)

SetServiceSlugs adds the serviceSlugs to the list s l os params

func (*ListSLOsParams) SetSlugs

func (o *ListSLOsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list s l os params

func (*ListSLOsParams) SetTimeout

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

SetTimeout adds the timeout to the list s l os params

func (*ListSLOsParams) WithCollectionSlugs

func (o *ListSLOsParams) WithCollectionSlugs(collectionSlugs []string) *ListSLOsParams

WithCollectionSlugs adds the collectionSlugs to the list s l os params

func (*ListSLOsParams) WithContext

func (o *ListSLOsParams) WithContext(ctx context.Context) *ListSLOsParams

WithContext adds the context to the list s l os params

func (*ListSLOsParams) WithDefaults

func (o *ListSLOsParams) WithDefaults() *ListSLOsParams

WithDefaults hydrates default values in the list s l os params (not the query body).

All values with no default are reset to their zero value.

func (*ListSLOsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list s l os params

func (*ListSLOsParams) WithNames

func (o *ListSLOsParams) WithNames(names []string) *ListSLOsParams

WithNames adds the names to the list s l os params

func (*ListSLOsParams) WithPageMaxSize

func (o *ListSLOsParams) WithPageMaxSize(pageMaxSize *int64) *ListSLOsParams

WithPageMaxSize adds the pageMaxSize to the list s l os params

func (*ListSLOsParams) WithPageToken

func (o *ListSLOsParams) WithPageToken(pageToken *string) *ListSLOsParams

WithPageToken adds the pageToken to the list s l os params

func (*ListSLOsParams) WithServiceSlugs

func (o *ListSLOsParams) WithServiceSlugs(serviceSlugs []string) *ListSLOsParams

WithServiceSlugs adds the serviceSlugs to the list s l os params

func (*ListSLOsParams) WithSlugs

func (o *ListSLOsParams) WithSlugs(slugs []string) *ListSLOsParams

WithSlugs adds the slugs to the list s l os params

func (*ListSLOsParams) WithTimeout

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

WithTimeout adds the timeout to the list s l os params

func (*ListSLOsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListSLOsReader

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

ListSLOsReader is a Reader for the ListSLOs structure.

func (*ListSLOsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadSLODefault

type ReadSLODefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadSLODefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadSLODefault

func NewReadSLODefault(code int) *ReadSLODefault

NewReadSLODefault creates a ReadSLODefault with default headers values

func (*ReadSLODefault) Code

func (o *ReadSLODefault) Code() int

Code gets the status code for the read SLO default response

func (*ReadSLODefault) Error

func (o *ReadSLODefault) Error() string

func (*ReadSLODefault) GetPayload

func (o *ReadSLODefault) GetPayload() models.GenericError

func (*ReadSLODefault) IsClientError

func (o *ReadSLODefault) IsClientError() bool

IsClientError returns true when this read SLO default response has a 4xx status code

func (*ReadSLODefault) IsCode

func (o *ReadSLODefault) IsCode(code int) bool

IsCode returns true when this read SLO default response a status code equal to that given

func (*ReadSLODefault) IsRedirect

func (o *ReadSLODefault) IsRedirect() bool

IsRedirect returns true when this read SLO default response has a 3xx status code

func (*ReadSLODefault) IsServerError

func (o *ReadSLODefault) IsServerError() bool

IsServerError returns true when this read SLO default response has a 5xx status code

func (*ReadSLODefault) IsSuccess

func (o *ReadSLODefault) IsSuccess() bool

IsSuccess returns true when this read SLO default response has a 2xx status code

func (*ReadSLODefault) String

func (o *ReadSLODefault) String() string

type ReadSLOInternalServerError

type ReadSLOInternalServerError struct {
	Payload *models.APIError
}

ReadSLOInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadSLOInternalServerError

func NewReadSLOInternalServerError() *ReadSLOInternalServerError

NewReadSLOInternalServerError creates a ReadSLOInternalServerError with default headers values

func (*ReadSLOInternalServerError) Code

func (o *ReadSLOInternalServerError) Code() int

Code gets the status code for the read Slo internal server error response

func (*ReadSLOInternalServerError) Error

func (*ReadSLOInternalServerError) GetPayload

func (o *ReadSLOInternalServerError) GetPayload() *models.APIError

func (*ReadSLOInternalServerError) IsClientError

func (o *ReadSLOInternalServerError) IsClientError() bool

IsClientError returns true when this read Slo internal server error response has a 4xx status code

func (*ReadSLOInternalServerError) IsCode

func (o *ReadSLOInternalServerError) IsCode(code int) bool

IsCode returns true when this read Slo internal server error response a status code equal to that given

func (*ReadSLOInternalServerError) IsRedirect

func (o *ReadSLOInternalServerError) IsRedirect() bool

IsRedirect returns true when this read Slo internal server error response has a 3xx status code

func (*ReadSLOInternalServerError) IsServerError

func (o *ReadSLOInternalServerError) IsServerError() bool

IsServerError returns true when this read Slo internal server error response has a 5xx status code

func (*ReadSLOInternalServerError) IsSuccess

func (o *ReadSLOInternalServerError) IsSuccess() bool

IsSuccess returns true when this read Slo internal server error response has a 2xx status code

func (*ReadSLOInternalServerError) String

func (o *ReadSLOInternalServerError) String() string

type ReadSLONotFound

type ReadSLONotFound struct {
	Payload *models.APIError
}

ReadSLONotFound describes a response with status code 404, with default header values.

Cannot read the SLO because the slug does not exist.

func NewReadSLONotFound

func NewReadSLONotFound() *ReadSLONotFound

NewReadSLONotFound creates a ReadSLONotFound with default headers values

func (*ReadSLONotFound) Code

func (o *ReadSLONotFound) Code() int

Code gets the status code for the read Slo not found response

func (*ReadSLONotFound) Error

func (o *ReadSLONotFound) Error() string

func (*ReadSLONotFound) GetPayload

func (o *ReadSLONotFound) GetPayload() *models.APIError

func (*ReadSLONotFound) IsClientError

func (o *ReadSLONotFound) IsClientError() bool

IsClientError returns true when this read Slo not found response has a 4xx status code

func (*ReadSLONotFound) IsCode

func (o *ReadSLONotFound) IsCode(code int) bool

IsCode returns true when this read Slo not found response a status code equal to that given

func (*ReadSLONotFound) IsRedirect

func (o *ReadSLONotFound) IsRedirect() bool

IsRedirect returns true when this read Slo not found response has a 3xx status code

func (*ReadSLONotFound) IsServerError

func (o *ReadSLONotFound) IsServerError() bool

IsServerError returns true when this read Slo not found response has a 5xx status code

func (*ReadSLONotFound) IsSuccess

func (o *ReadSLONotFound) IsSuccess() bool

IsSuccess returns true when this read Slo not found response has a 2xx status code

func (*ReadSLONotFound) String

func (o *ReadSLONotFound) String() string

type ReadSLOOK

type ReadSLOOK struct {
	Payload *models.ConfigunstableReadSLOResponse
}

ReadSLOOK describes a response with status code 200, with default header values.

A successful response.

func NewReadSLOOK

func NewReadSLOOK() *ReadSLOOK

NewReadSLOOK creates a ReadSLOOK with default headers values

func (*ReadSLOOK) Code

func (o *ReadSLOOK) Code() int

Code gets the status code for the read Slo o k response

func (*ReadSLOOK) Error

func (o *ReadSLOOK) Error() string

func (*ReadSLOOK) GetPayload

func (*ReadSLOOK) IsClientError

func (o *ReadSLOOK) IsClientError() bool

IsClientError returns true when this read Slo o k response has a 4xx status code

func (*ReadSLOOK) IsCode

func (o *ReadSLOOK) IsCode(code int) bool

IsCode returns true when this read Slo o k response a status code equal to that given

func (*ReadSLOOK) IsRedirect

func (o *ReadSLOOK) IsRedirect() bool

IsRedirect returns true when this read Slo o k response has a 3xx status code

func (*ReadSLOOK) IsServerError

func (o *ReadSLOOK) IsServerError() bool

IsServerError returns true when this read Slo o k response has a 5xx status code

func (*ReadSLOOK) IsSuccess

func (o *ReadSLOOK) IsSuccess() bool

IsSuccess returns true when this read Slo o k response has a 2xx status code

func (*ReadSLOOK) String

func (o *ReadSLOOK) String() string

type ReadSLOParams

type ReadSLOParams struct {

	// Slug.
	Slug string

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

ReadSLOParams contains all the parameters to send to the API endpoint

for the read SLO operation.

Typically these are written to a http.Request.

func NewReadSLOParams

func NewReadSLOParams() *ReadSLOParams

NewReadSLOParams creates a new ReadSLOParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewReadSLOParamsWithContext

func NewReadSLOParamsWithContext(ctx context.Context) *ReadSLOParams

NewReadSLOParamsWithContext creates a new ReadSLOParams object with the ability to set a context for a request.

func NewReadSLOParamsWithHTTPClient

func NewReadSLOParamsWithHTTPClient(client *http.Client) *ReadSLOParams

NewReadSLOParamsWithHTTPClient creates a new ReadSLOParams object with the ability to set a custom HTTPClient for a request.

func NewReadSLOParamsWithTimeout

func NewReadSLOParamsWithTimeout(timeout time.Duration) *ReadSLOParams

NewReadSLOParamsWithTimeout creates a new ReadSLOParams object with the ability to set a timeout on a request.

func (*ReadSLOParams) SetContext

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

SetContext adds the context to the read SLO params

func (*ReadSLOParams) SetDefaults

func (o *ReadSLOParams) SetDefaults()

SetDefaults hydrates default values in the read SLO params (not the query body).

All values with no default are reset to their zero value.

func (*ReadSLOParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read SLO params

func (*ReadSLOParams) SetSlug

func (o *ReadSLOParams) SetSlug(slug string)

SetSlug adds the slug to the read SLO params

func (*ReadSLOParams) SetTimeout

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

SetTimeout adds the timeout to the read SLO params

func (*ReadSLOParams) WithContext

func (o *ReadSLOParams) WithContext(ctx context.Context) *ReadSLOParams

WithContext adds the context to the read SLO params

func (*ReadSLOParams) WithDefaults

func (o *ReadSLOParams) WithDefaults() *ReadSLOParams

WithDefaults hydrates default values in the read SLO params (not the query body).

All values with no default are reset to their zero value.

func (*ReadSLOParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read SLO params

func (*ReadSLOParams) WithSlug

func (o *ReadSLOParams) WithSlug(slug string) *ReadSLOParams

WithSlug adds the slug to the read SLO params

func (*ReadSLOParams) WithTimeout

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

WithTimeout adds the timeout to the read SLO params

func (*ReadSLOParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadSLOReader

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

ReadSLOReader is a Reader for the ReadSLO structure.

func (*ReadSLOReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSLOBadRequest

type UpdateSLOBadRequest struct {
	Payload *models.APIError
}

UpdateSLOBadRequest describes a response with status code 400, with default header values.

Cannot update the SLO because the request is invalid.

func NewUpdateSLOBadRequest

func NewUpdateSLOBadRequest() *UpdateSLOBadRequest

NewUpdateSLOBadRequest creates a UpdateSLOBadRequest with default headers values

func (*UpdateSLOBadRequest) Code

func (o *UpdateSLOBadRequest) Code() int

Code gets the status code for the update Slo bad request response

func (*UpdateSLOBadRequest) Error

func (o *UpdateSLOBadRequest) Error() string

func (*UpdateSLOBadRequest) GetPayload

func (o *UpdateSLOBadRequest) GetPayload() *models.APIError

func (*UpdateSLOBadRequest) IsClientError

func (o *UpdateSLOBadRequest) IsClientError() bool

IsClientError returns true when this update Slo bad request response has a 4xx status code

func (*UpdateSLOBadRequest) IsCode

func (o *UpdateSLOBadRequest) IsCode(code int) bool

IsCode returns true when this update Slo bad request response a status code equal to that given

func (*UpdateSLOBadRequest) IsRedirect

func (o *UpdateSLOBadRequest) IsRedirect() bool

IsRedirect returns true when this update Slo bad request response has a 3xx status code

func (*UpdateSLOBadRequest) IsServerError

func (o *UpdateSLOBadRequest) IsServerError() bool

IsServerError returns true when this update Slo bad request response has a 5xx status code

func (*UpdateSLOBadRequest) IsSuccess

func (o *UpdateSLOBadRequest) IsSuccess() bool

IsSuccess returns true when this update Slo bad request response has a 2xx status code

func (*UpdateSLOBadRequest) String

func (o *UpdateSLOBadRequest) String() string

type UpdateSLOConflict

type UpdateSLOConflict struct {
	Payload *models.APIError
}

UpdateSLOConflict describes a response with status code 409, with default header values.

Cannot update the SLO because there is a conflict with an existing SLO.

func NewUpdateSLOConflict

func NewUpdateSLOConflict() *UpdateSLOConflict

NewUpdateSLOConflict creates a UpdateSLOConflict with default headers values

func (*UpdateSLOConflict) Code

func (o *UpdateSLOConflict) Code() int

Code gets the status code for the update Slo conflict response

func (*UpdateSLOConflict) Error

func (o *UpdateSLOConflict) Error() string

func (*UpdateSLOConflict) GetPayload

func (o *UpdateSLOConflict) GetPayload() *models.APIError

func (*UpdateSLOConflict) IsClientError

func (o *UpdateSLOConflict) IsClientError() bool

IsClientError returns true when this update Slo conflict response has a 4xx status code

func (*UpdateSLOConflict) IsCode

func (o *UpdateSLOConflict) IsCode(code int) bool

IsCode returns true when this update Slo conflict response a status code equal to that given

func (*UpdateSLOConflict) IsRedirect

func (o *UpdateSLOConflict) IsRedirect() bool

IsRedirect returns true when this update Slo conflict response has a 3xx status code

func (*UpdateSLOConflict) IsServerError

func (o *UpdateSLOConflict) IsServerError() bool

IsServerError returns true when this update Slo conflict response has a 5xx status code

func (*UpdateSLOConflict) IsSuccess

func (o *UpdateSLOConflict) IsSuccess() bool

IsSuccess returns true when this update Slo conflict response has a 2xx status code

func (*UpdateSLOConflict) String

func (o *UpdateSLOConflict) String() string

type UpdateSLODefault

type UpdateSLODefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateSLODefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateSLODefault

func NewUpdateSLODefault(code int) *UpdateSLODefault

NewUpdateSLODefault creates a UpdateSLODefault with default headers values

func (*UpdateSLODefault) Code

func (o *UpdateSLODefault) Code() int

Code gets the status code for the update SLO default response

func (*UpdateSLODefault) Error

func (o *UpdateSLODefault) Error() string

func (*UpdateSLODefault) GetPayload

func (o *UpdateSLODefault) GetPayload() models.GenericError

func (*UpdateSLODefault) IsClientError

func (o *UpdateSLODefault) IsClientError() bool

IsClientError returns true when this update SLO default response has a 4xx status code

func (*UpdateSLODefault) IsCode

func (o *UpdateSLODefault) IsCode(code int) bool

IsCode returns true when this update SLO default response a status code equal to that given

func (*UpdateSLODefault) IsRedirect

func (o *UpdateSLODefault) IsRedirect() bool

IsRedirect returns true when this update SLO default response has a 3xx status code

func (*UpdateSLODefault) IsServerError

func (o *UpdateSLODefault) IsServerError() bool

IsServerError returns true when this update SLO default response has a 5xx status code

func (*UpdateSLODefault) IsSuccess

func (o *UpdateSLODefault) IsSuccess() bool

IsSuccess returns true when this update SLO default response has a 2xx status code

func (*UpdateSLODefault) String

func (o *UpdateSLODefault) String() string

type UpdateSLOInternalServerError

type UpdateSLOInternalServerError struct {
	Payload *models.APIError
}

UpdateSLOInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateSLOInternalServerError

func NewUpdateSLOInternalServerError() *UpdateSLOInternalServerError

NewUpdateSLOInternalServerError creates a UpdateSLOInternalServerError with default headers values

func (*UpdateSLOInternalServerError) Code

Code gets the status code for the update Slo internal server error response

func (*UpdateSLOInternalServerError) Error

func (*UpdateSLOInternalServerError) GetPayload

func (o *UpdateSLOInternalServerError) GetPayload() *models.APIError

func (*UpdateSLOInternalServerError) IsClientError

func (o *UpdateSLOInternalServerError) IsClientError() bool

IsClientError returns true when this update Slo internal server error response has a 4xx status code

func (*UpdateSLOInternalServerError) IsCode

func (o *UpdateSLOInternalServerError) IsCode(code int) bool

IsCode returns true when this update Slo internal server error response a status code equal to that given

func (*UpdateSLOInternalServerError) IsRedirect

func (o *UpdateSLOInternalServerError) IsRedirect() bool

IsRedirect returns true when this update Slo internal server error response has a 3xx status code

func (*UpdateSLOInternalServerError) IsServerError

func (o *UpdateSLOInternalServerError) IsServerError() bool

IsServerError returns true when this update Slo internal server error response has a 5xx status code

func (*UpdateSLOInternalServerError) IsSuccess

func (o *UpdateSLOInternalServerError) IsSuccess() bool

IsSuccess returns true when this update Slo internal server error response has a 2xx status code

func (*UpdateSLOInternalServerError) String

type UpdateSLONotFound

type UpdateSLONotFound struct {
	Payload *models.APIError
}

UpdateSLONotFound describes a response with status code 404, with default header values.

Cannot update the SLO because the slug does not exist.

func NewUpdateSLONotFound

func NewUpdateSLONotFound() *UpdateSLONotFound

NewUpdateSLONotFound creates a UpdateSLONotFound with default headers values

func (*UpdateSLONotFound) Code

func (o *UpdateSLONotFound) Code() int

Code gets the status code for the update Slo not found response

func (*UpdateSLONotFound) Error

func (o *UpdateSLONotFound) Error() string

func (*UpdateSLONotFound) GetPayload

func (o *UpdateSLONotFound) GetPayload() *models.APIError

func (*UpdateSLONotFound) IsClientError

func (o *UpdateSLONotFound) IsClientError() bool

IsClientError returns true when this update Slo not found response has a 4xx status code

func (*UpdateSLONotFound) IsCode

func (o *UpdateSLONotFound) IsCode(code int) bool

IsCode returns true when this update Slo not found response a status code equal to that given

func (*UpdateSLONotFound) IsRedirect

func (o *UpdateSLONotFound) IsRedirect() bool

IsRedirect returns true when this update Slo not found response has a 3xx status code

func (*UpdateSLONotFound) IsServerError

func (o *UpdateSLONotFound) IsServerError() bool

IsServerError returns true when this update Slo not found response has a 5xx status code

func (*UpdateSLONotFound) IsSuccess

func (o *UpdateSLONotFound) IsSuccess() bool

IsSuccess returns true when this update Slo not found response has a 2xx status code

func (*UpdateSLONotFound) String

func (o *UpdateSLONotFound) String() string

type UpdateSLOOK

type UpdateSLOOK struct {
	Payload *models.ConfigunstableUpdateSLOResponse
}

UpdateSLOOK describes a response with status code 200, with default header values.

A successful response containing the updated SLO.

func NewUpdateSLOOK

func NewUpdateSLOOK() *UpdateSLOOK

NewUpdateSLOOK creates a UpdateSLOOK with default headers values

func (*UpdateSLOOK) Code

func (o *UpdateSLOOK) Code() int

Code gets the status code for the update Slo o k response

func (*UpdateSLOOK) Error

func (o *UpdateSLOOK) Error() string

func (*UpdateSLOOK) GetPayload

func (*UpdateSLOOK) IsClientError

func (o *UpdateSLOOK) IsClientError() bool

IsClientError returns true when this update Slo o k response has a 4xx status code

func (*UpdateSLOOK) IsCode

func (o *UpdateSLOOK) IsCode(code int) bool

IsCode returns true when this update Slo o k response a status code equal to that given

func (*UpdateSLOOK) IsRedirect

func (o *UpdateSLOOK) IsRedirect() bool

IsRedirect returns true when this update Slo o k response has a 3xx status code

func (*UpdateSLOOK) IsServerError

func (o *UpdateSLOOK) IsServerError() bool

IsServerError returns true when this update Slo o k response has a 5xx status code

func (*UpdateSLOOK) IsSuccess

func (o *UpdateSLOOK) IsSuccess() bool

IsSuccess returns true when this update Slo o k response has a 2xx status code

func (*UpdateSLOOK) String

func (o *UpdateSLOOK) String() string

type UpdateSLOParams

type UpdateSLOParams struct {

	// Body.
	Body *models.ConfigUnstableUpdateSLOBody

	// Slug.
	Slug string

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

UpdateSLOParams contains all the parameters to send to the API endpoint

for the update SLO operation.

Typically these are written to a http.Request.

func NewUpdateSLOParams

func NewUpdateSLOParams() *UpdateSLOParams

NewUpdateSLOParams creates a new UpdateSLOParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateSLOParamsWithContext

func NewUpdateSLOParamsWithContext(ctx context.Context) *UpdateSLOParams

NewUpdateSLOParamsWithContext creates a new UpdateSLOParams object with the ability to set a context for a request.

func NewUpdateSLOParamsWithHTTPClient

func NewUpdateSLOParamsWithHTTPClient(client *http.Client) *UpdateSLOParams

NewUpdateSLOParamsWithHTTPClient creates a new UpdateSLOParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateSLOParamsWithTimeout

func NewUpdateSLOParamsWithTimeout(timeout time.Duration) *UpdateSLOParams

NewUpdateSLOParamsWithTimeout creates a new UpdateSLOParams object with the ability to set a timeout on a request.

func (*UpdateSLOParams) SetBody

SetBody adds the body to the update SLO params

func (*UpdateSLOParams) SetContext

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

SetContext adds the context to the update SLO params

func (*UpdateSLOParams) SetDefaults

func (o *UpdateSLOParams) SetDefaults()

SetDefaults hydrates default values in the update SLO params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateSLOParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update SLO params

func (*UpdateSLOParams) SetSlug

func (o *UpdateSLOParams) SetSlug(slug string)

SetSlug adds the slug to the update SLO params

func (*UpdateSLOParams) SetTimeout

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

SetTimeout adds the timeout to the update SLO params

func (*UpdateSLOParams) WithBody

WithBody adds the body to the update SLO params

func (*UpdateSLOParams) WithContext

func (o *UpdateSLOParams) WithContext(ctx context.Context) *UpdateSLOParams

WithContext adds the context to the update SLO params

func (*UpdateSLOParams) WithDefaults

func (o *UpdateSLOParams) WithDefaults() *UpdateSLOParams

WithDefaults hydrates default values in the update SLO params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateSLOParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update SLO params

func (*UpdateSLOParams) WithSlug

func (o *UpdateSLOParams) WithSlug(slug string) *UpdateSLOParams

WithSlug adds the slug to the update SLO params

func (*UpdateSLOParams) WithTimeout

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

WithTimeout adds the timeout to the update SLO params

func (*UpdateSLOParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateSLOReader

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

UpdateSLOReader is a Reader for the UpdateSLO structure.

func (*UpdateSLOReader) ReadResponse

func (o *UpdateSLOReader) 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