Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSLO(params *CreateSLOParams, opts ...ClientOption) (*CreateSLOOK, error)
- func (a *Client) DeleteSLO(params *DeleteSLOParams, opts ...ClientOption) (*DeleteSLOOK, error)
- func (a *Client) ListSLOs(params *ListSLOsParams, opts ...ClientOption) (*ListSLOsOK, error)
- func (a *Client) ReadSLO(params *ReadSLOParams, opts ...ClientOption) (*ReadSLOOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSLO(params *UpdateSLOParams, opts ...ClientOption) (*UpdateSLOOK, error)
- type ClientOption
- type ClientService
- type CreateSLOBadRequest
- func (o *CreateSLOBadRequest) Code() int
- func (o *CreateSLOBadRequest) Error() string
- func (o *CreateSLOBadRequest) GetPayload() *models.APIError
- func (o *CreateSLOBadRequest) IsClientError() bool
- func (o *CreateSLOBadRequest) IsCode(code int) bool
- func (o *CreateSLOBadRequest) IsRedirect() bool
- func (o *CreateSLOBadRequest) IsServerError() bool
- func (o *CreateSLOBadRequest) IsSuccess() bool
- func (o *CreateSLOBadRequest) String() string
- type CreateSLOConflict
- func (o *CreateSLOConflict) Code() int
- func (o *CreateSLOConflict) Error() string
- func (o *CreateSLOConflict) GetPayload() *models.APIError
- func (o *CreateSLOConflict) IsClientError() bool
- func (o *CreateSLOConflict) IsCode(code int) bool
- func (o *CreateSLOConflict) IsRedirect() bool
- func (o *CreateSLOConflict) IsServerError() bool
- func (o *CreateSLOConflict) IsSuccess() bool
- func (o *CreateSLOConflict) String() string
- type CreateSLODefault
- func (o *CreateSLODefault) Code() int
- func (o *CreateSLODefault) Error() string
- func (o *CreateSLODefault) GetPayload() models.GenericError
- func (o *CreateSLODefault) IsClientError() bool
- func (o *CreateSLODefault) IsCode(code int) bool
- func (o *CreateSLODefault) IsRedirect() bool
- func (o *CreateSLODefault) IsServerError() bool
- func (o *CreateSLODefault) IsSuccess() bool
- func (o *CreateSLODefault) String() string
- type CreateSLOInternalServerError
- func (o *CreateSLOInternalServerError) Code() int
- func (o *CreateSLOInternalServerError) Error() string
- func (o *CreateSLOInternalServerError) GetPayload() *models.APIError
- func (o *CreateSLOInternalServerError) IsClientError() bool
- func (o *CreateSLOInternalServerError) IsCode(code int) bool
- func (o *CreateSLOInternalServerError) IsRedirect() bool
- func (o *CreateSLOInternalServerError) IsServerError() bool
- func (o *CreateSLOInternalServerError) IsSuccess() bool
- func (o *CreateSLOInternalServerError) String() string
- type CreateSLOOK
- func (o *CreateSLOOK) Code() int
- func (o *CreateSLOOK) Error() string
- func (o *CreateSLOOK) GetPayload() *models.ConfigunstableCreateSLOResponse
- func (o *CreateSLOOK) IsClientError() bool
- func (o *CreateSLOOK) IsCode(code int) bool
- func (o *CreateSLOOK) IsRedirect() bool
- func (o *CreateSLOOK) IsServerError() bool
- func (o *CreateSLOOK) IsSuccess() bool
- func (o *CreateSLOOK) String() string
- type CreateSLOParams
- func (o *CreateSLOParams) SetBody(body *models.ConfigunstableCreateSLORequest)
- func (o *CreateSLOParams) SetContext(ctx context.Context)
- func (o *CreateSLOParams) SetDefaults()
- func (o *CreateSLOParams) SetHTTPClient(client *http.Client)
- func (o *CreateSLOParams) SetTimeout(timeout time.Duration)
- func (o *CreateSLOParams) WithBody(body *models.ConfigunstableCreateSLORequest) *CreateSLOParams
- func (o *CreateSLOParams) WithContext(ctx context.Context) *CreateSLOParams
- func (o *CreateSLOParams) WithDefaults() *CreateSLOParams
- func (o *CreateSLOParams) WithHTTPClient(client *http.Client) *CreateSLOParams
- func (o *CreateSLOParams) WithTimeout(timeout time.Duration) *CreateSLOParams
- func (o *CreateSLOParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSLOReader
- type DeleteSLOBadRequest
- func (o *DeleteSLOBadRequest) Code() int
- func (o *DeleteSLOBadRequest) Error() string
- func (o *DeleteSLOBadRequest) GetPayload() *models.APIError
- func (o *DeleteSLOBadRequest) IsClientError() bool
- func (o *DeleteSLOBadRequest) IsCode(code int) bool
- func (o *DeleteSLOBadRequest) IsRedirect() bool
- func (o *DeleteSLOBadRequest) IsServerError() bool
- func (o *DeleteSLOBadRequest) IsSuccess() bool
- func (o *DeleteSLOBadRequest) String() string
- type DeleteSLODefault
- func (o *DeleteSLODefault) Code() int
- func (o *DeleteSLODefault) Error() string
- func (o *DeleteSLODefault) GetPayload() models.GenericError
- func (o *DeleteSLODefault) IsClientError() bool
- func (o *DeleteSLODefault) IsCode(code int) bool
- func (o *DeleteSLODefault) IsRedirect() bool
- func (o *DeleteSLODefault) IsServerError() bool
- func (o *DeleteSLODefault) IsSuccess() bool
- func (o *DeleteSLODefault) String() string
- type DeleteSLOInternalServerError
- func (o *DeleteSLOInternalServerError) Code() int
- func (o *DeleteSLOInternalServerError) Error() string
- func (o *DeleteSLOInternalServerError) GetPayload() *models.APIError
- func (o *DeleteSLOInternalServerError) IsClientError() bool
- func (o *DeleteSLOInternalServerError) IsCode(code int) bool
- func (o *DeleteSLOInternalServerError) IsRedirect() bool
- func (o *DeleteSLOInternalServerError) IsServerError() bool
- func (o *DeleteSLOInternalServerError) IsSuccess() bool
- func (o *DeleteSLOInternalServerError) String() string
- type DeleteSLONotFound
- func (o *DeleteSLONotFound) Code() int
- func (o *DeleteSLONotFound) Error() string
- func (o *DeleteSLONotFound) GetPayload() *models.APIError
- func (o *DeleteSLONotFound) IsClientError() bool
- func (o *DeleteSLONotFound) IsCode(code int) bool
- func (o *DeleteSLONotFound) IsRedirect() bool
- func (o *DeleteSLONotFound) IsServerError() bool
- func (o *DeleteSLONotFound) IsSuccess() bool
- func (o *DeleteSLONotFound) String() string
- type DeleteSLOOK
- func (o *DeleteSLOOK) Code() int
- func (o *DeleteSLOOK) Error() string
- func (o *DeleteSLOOK) GetPayload() models.ConfigunstableDeleteSLOResponse
- func (o *DeleteSLOOK) IsClientError() bool
- func (o *DeleteSLOOK) IsCode(code int) bool
- func (o *DeleteSLOOK) IsRedirect() bool
- func (o *DeleteSLOOK) IsServerError() bool
- func (o *DeleteSLOOK) IsSuccess() bool
- func (o *DeleteSLOOK) String() string
- type DeleteSLOParams
- func (o *DeleteSLOParams) SetContext(ctx context.Context)
- func (o *DeleteSLOParams) SetDefaults()
- func (o *DeleteSLOParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSLOParams) SetSlug(slug string)
- func (o *DeleteSLOParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSLOParams) WithContext(ctx context.Context) *DeleteSLOParams
- func (o *DeleteSLOParams) WithDefaults() *DeleteSLOParams
- func (o *DeleteSLOParams) WithHTTPClient(client *http.Client) *DeleteSLOParams
- func (o *DeleteSLOParams) WithSlug(slug string) *DeleteSLOParams
- func (o *DeleteSLOParams) WithTimeout(timeout time.Duration) *DeleteSLOParams
- func (o *DeleteSLOParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSLOReader
- type ListSLOsDefault
- func (o *ListSLOsDefault) Code() int
- func (o *ListSLOsDefault) Error() string
- func (o *ListSLOsDefault) GetPayload() models.GenericError
- func (o *ListSLOsDefault) IsClientError() bool
- func (o *ListSLOsDefault) IsCode(code int) bool
- func (o *ListSLOsDefault) IsRedirect() bool
- func (o *ListSLOsDefault) IsServerError() bool
- func (o *ListSLOsDefault) IsSuccess() bool
- func (o *ListSLOsDefault) String() string
- type ListSLOsInternalServerError
- func (o *ListSLOsInternalServerError) Code() int
- func (o *ListSLOsInternalServerError) Error() string
- func (o *ListSLOsInternalServerError) GetPayload() *models.APIError
- func (o *ListSLOsInternalServerError) IsClientError() bool
- func (o *ListSLOsInternalServerError) IsCode(code int) bool
- func (o *ListSLOsInternalServerError) IsRedirect() bool
- func (o *ListSLOsInternalServerError) IsServerError() bool
- func (o *ListSLOsInternalServerError) IsSuccess() bool
- func (o *ListSLOsInternalServerError) String() string
- type ListSLOsOK
- func (o *ListSLOsOK) Code() int
- func (o *ListSLOsOK) Error() string
- func (o *ListSLOsOK) GetPayload() *models.ConfigunstableListSLOsResponse
- func (o *ListSLOsOK) IsClientError() bool
- func (o *ListSLOsOK) IsCode(code int) bool
- func (o *ListSLOsOK) IsRedirect() bool
- func (o *ListSLOsOK) IsServerError() bool
- func (o *ListSLOsOK) IsSuccess() bool
- func (o *ListSLOsOK) String() string
- type ListSLOsParams
- func (o *ListSLOsParams) SetCollectionSlugs(collectionSlugs []string)
- func (o *ListSLOsParams) SetContext(ctx context.Context)
- func (o *ListSLOsParams) SetDefaults()
- func (o *ListSLOsParams) SetHTTPClient(client *http.Client)
- func (o *ListSLOsParams) SetNames(names []string)
- func (o *ListSLOsParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListSLOsParams) SetPageToken(pageToken *string)
- func (o *ListSLOsParams) SetServiceSlugs(serviceSlugs []string)
- func (o *ListSLOsParams) SetSlugs(slugs []string)
- func (o *ListSLOsParams) SetTimeout(timeout time.Duration)
- func (o *ListSLOsParams) WithCollectionSlugs(collectionSlugs []string) *ListSLOsParams
- func (o *ListSLOsParams) WithContext(ctx context.Context) *ListSLOsParams
- func (o *ListSLOsParams) WithDefaults() *ListSLOsParams
- func (o *ListSLOsParams) WithHTTPClient(client *http.Client) *ListSLOsParams
- func (o *ListSLOsParams) WithNames(names []string) *ListSLOsParams
- func (o *ListSLOsParams) WithPageMaxSize(pageMaxSize *int64) *ListSLOsParams
- func (o *ListSLOsParams) WithPageToken(pageToken *string) *ListSLOsParams
- func (o *ListSLOsParams) WithServiceSlugs(serviceSlugs []string) *ListSLOsParams
- func (o *ListSLOsParams) WithSlugs(slugs []string) *ListSLOsParams
- func (o *ListSLOsParams) WithTimeout(timeout time.Duration) *ListSLOsParams
- func (o *ListSLOsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSLOsReader
- type ReadSLODefault
- func (o *ReadSLODefault) Code() int
- func (o *ReadSLODefault) Error() string
- func (o *ReadSLODefault) GetPayload() models.GenericError
- func (o *ReadSLODefault) IsClientError() bool
- func (o *ReadSLODefault) IsCode(code int) bool
- func (o *ReadSLODefault) IsRedirect() bool
- func (o *ReadSLODefault) IsServerError() bool
- func (o *ReadSLODefault) IsSuccess() bool
- func (o *ReadSLODefault) String() string
- type ReadSLOInternalServerError
- func (o *ReadSLOInternalServerError) Code() int
- func (o *ReadSLOInternalServerError) Error() string
- func (o *ReadSLOInternalServerError) GetPayload() *models.APIError
- func (o *ReadSLOInternalServerError) IsClientError() bool
- func (o *ReadSLOInternalServerError) IsCode(code int) bool
- func (o *ReadSLOInternalServerError) IsRedirect() bool
- func (o *ReadSLOInternalServerError) IsServerError() bool
- func (o *ReadSLOInternalServerError) IsSuccess() bool
- func (o *ReadSLOInternalServerError) String() string
- type ReadSLONotFound
- func (o *ReadSLONotFound) Code() int
- func (o *ReadSLONotFound) Error() string
- func (o *ReadSLONotFound) GetPayload() *models.APIError
- func (o *ReadSLONotFound) IsClientError() bool
- func (o *ReadSLONotFound) IsCode(code int) bool
- func (o *ReadSLONotFound) IsRedirect() bool
- func (o *ReadSLONotFound) IsServerError() bool
- func (o *ReadSLONotFound) IsSuccess() bool
- func (o *ReadSLONotFound) String() string
- type ReadSLOOK
- func (o *ReadSLOOK) Code() int
- func (o *ReadSLOOK) Error() string
- func (o *ReadSLOOK) GetPayload() *models.ConfigunstableReadSLOResponse
- func (o *ReadSLOOK) IsClientError() bool
- func (o *ReadSLOOK) IsCode(code int) bool
- func (o *ReadSLOOK) IsRedirect() bool
- func (o *ReadSLOOK) IsServerError() bool
- func (o *ReadSLOOK) IsSuccess() bool
- func (o *ReadSLOOK) String() string
- type ReadSLOParams
- func (o *ReadSLOParams) SetContext(ctx context.Context)
- func (o *ReadSLOParams) SetDefaults()
- func (o *ReadSLOParams) SetHTTPClient(client *http.Client)
- func (o *ReadSLOParams) SetSlug(slug string)
- func (o *ReadSLOParams) SetTimeout(timeout time.Duration)
- func (o *ReadSLOParams) WithContext(ctx context.Context) *ReadSLOParams
- func (o *ReadSLOParams) WithDefaults() *ReadSLOParams
- func (o *ReadSLOParams) WithHTTPClient(client *http.Client) *ReadSLOParams
- func (o *ReadSLOParams) WithSlug(slug string) *ReadSLOParams
- func (o *ReadSLOParams) WithTimeout(timeout time.Duration) *ReadSLOParams
- func (o *ReadSLOParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadSLOReader
- type UpdateSLOBadRequest
- func (o *UpdateSLOBadRequest) Code() int
- func (o *UpdateSLOBadRequest) Error() string
- func (o *UpdateSLOBadRequest) GetPayload() *models.APIError
- func (o *UpdateSLOBadRequest) IsClientError() bool
- func (o *UpdateSLOBadRequest) IsCode(code int) bool
- func (o *UpdateSLOBadRequest) IsRedirect() bool
- func (o *UpdateSLOBadRequest) IsServerError() bool
- func (o *UpdateSLOBadRequest) IsSuccess() bool
- func (o *UpdateSLOBadRequest) String() string
- type UpdateSLOConflict
- func (o *UpdateSLOConflict) Code() int
- func (o *UpdateSLOConflict) Error() string
- func (o *UpdateSLOConflict) GetPayload() *models.APIError
- func (o *UpdateSLOConflict) IsClientError() bool
- func (o *UpdateSLOConflict) IsCode(code int) bool
- func (o *UpdateSLOConflict) IsRedirect() bool
- func (o *UpdateSLOConflict) IsServerError() bool
- func (o *UpdateSLOConflict) IsSuccess() bool
- func (o *UpdateSLOConflict) String() string
- type UpdateSLODefault
- func (o *UpdateSLODefault) Code() int
- func (o *UpdateSLODefault) Error() string
- func (o *UpdateSLODefault) GetPayload() models.GenericError
- func (o *UpdateSLODefault) IsClientError() bool
- func (o *UpdateSLODefault) IsCode(code int) bool
- func (o *UpdateSLODefault) IsRedirect() bool
- func (o *UpdateSLODefault) IsServerError() bool
- func (o *UpdateSLODefault) IsSuccess() bool
- func (o *UpdateSLODefault) String() string
- type UpdateSLOInternalServerError
- func (o *UpdateSLOInternalServerError) Code() int
- func (o *UpdateSLOInternalServerError) Error() string
- func (o *UpdateSLOInternalServerError) GetPayload() *models.APIError
- func (o *UpdateSLOInternalServerError) IsClientError() bool
- func (o *UpdateSLOInternalServerError) IsCode(code int) bool
- func (o *UpdateSLOInternalServerError) IsRedirect() bool
- func (o *UpdateSLOInternalServerError) IsServerError() bool
- func (o *UpdateSLOInternalServerError) IsSuccess() bool
- func (o *UpdateSLOInternalServerError) String() string
- type UpdateSLONotFound
- func (o *UpdateSLONotFound) Code() int
- func (o *UpdateSLONotFound) Error() string
- func (o *UpdateSLONotFound) GetPayload() *models.APIError
- func (o *UpdateSLONotFound) IsClientError() bool
- func (o *UpdateSLONotFound) IsCode(code int) bool
- func (o *UpdateSLONotFound) IsRedirect() bool
- func (o *UpdateSLONotFound) IsServerError() bool
- func (o *UpdateSLONotFound) IsSuccess() bool
- func (o *UpdateSLONotFound) String() string
- type UpdateSLOOK
- func (o *UpdateSLOOK) Code() int
- func (o *UpdateSLOOK) Error() string
- func (o *UpdateSLOOK) GetPayload() *models.ConfigunstableUpdateSLOResponse
- func (o *UpdateSLOOK) IsClientError() bool
- func (o *UpdateSLOOK) IsCode(code int) bool
- func (o *UpdateSLOOK) IsRedirect() bool
- func (o *UpdateSLOOK) IsServerError() bool
- func (o *UpdateSLOOK) IsSuccess() bool
- func (o *UpdateSLOOK) String() string
- type UpdateSLOParams
- func (o *UpdateSLOParams) SetBody(body *models.ConfigUnstableUpdateSLOBody)
- func (o *UpdateSLOParams) SetContext(ctx context.Context)
- func (o *UpdateSLOParams) SetDefaults()
- func (o *UpdateSLOParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSLOParams) SetSlug(slug string)
- func (o *UpdateSLOParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSLOParams) WithBody(body *models.ConfigUnstableUpdateSLOBody) *UpdateSLOParams
- func (o *UpdateSLOParams) WithContext(ctx context.Context) *UpdateSLOParams
- func (o *UpdateSLOParams) WithDefaults() *UpdateSLOParams
- func (o *UpdateSLOParams) WithHTTPClient(client *http.Client) *UpdateSLOParams
- func (o *UpdateSLOParams) WithSlug(slug string) *UpdateSLOParams
- func (o *UpdateSLOParams) WithTimeout(timeout time.Duration) *UpdateSLOParams
- func (o *UpdateSLOParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSLOReader
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 ¶
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 ¶
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 ¶
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 ¶
func (o *CreateSLOInternalServerError) Code() int
Code gets the status code for the create Slo internal server error response
func (*CreateSLOInternalServerError) Error ¶
func (o *CreateSLOInternalServerError) Error() string
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 ¶
func (o *CreateSLOInternalServerError) String() 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 (o *CreateSLOOK) GetPayload() *models.ConfigunstableCreateSLOResponse
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 ¶
func (o *CreateSLOParams) SetBody(body *models.ConfigunstableCreateSLORequest)
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 ¶
func (o *CreateSLOParams) WithBody(body *models.ConfigunstableCreateSLORequest) *CreateSLOParams
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 ¶
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 ¶
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 ¶
func (o *DeleteSLOInternalServerError) Code() int
Code gets the status code for the delete Slo internal server error response
func (*DeleteSLOInternalServerError) Error ¶
func (o *DeleteSLOInternalServerError) Error() string
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 ¶
func (o *DeleteSLOInternalServerError) String() string
type DeleteSLONotFound ¶
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 (o *DeleteSLOOK) GetPayload() models.ConfigunstableDeleteSLOResponse
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 ¶
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 (o *ListSLOsInternalServerError) Error() string
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 (o *ListSLOsOK) GetPayload() *models.ConfigunstableListSLOsResponse
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 ¶
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 (o *ReadSLOInternalServerError) Error() string
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 ¶
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) GetPayload ¶
func (o *ReadSLOOK) GetPayload() *models.ConfigunstableReadSLOResponse
func (*ReadSLOOK) IsClientError ¶
IsClientError returns true when this read Slo o k response has a 4xx status code
func (*ReadSLOOK) IsCode ¶
IsCode returns true when this read Slo o k response a status code equal to that given
func (*ReadSLOOK) IsRedirect ¶
IsRedirect returns true when this read Slo o k response has a 3xx status code
func (*ReadSLOOK) IsServerError ¶
IsServerError returns true when this read Slo o k response has a 5xx status code
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 ¶
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 ¶
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 ¶
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 ¶
func (o *UpdateSLOInternalServerError) Code() int
Code gets the status code for the update Slo internal server error response
func (*UpdateSLOInternalServerError) Error ¶
func (o *UpdateSLOInternalServerError) Error() string
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 ¶
func (o *UpdateSLOInternalServerError) String() string
type UpdateSLONotFound ¶
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 (o *UpdateSLOOK) GetPayload() *models.ConfigunstableUpdateSLOResponse
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 ¶
func (o *UpdateSLOParams) SetBody(body *models.ConfigUnstableUpdateSLOBody)
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 ¶
func (o *UpdateSLOParams) WithBody(body *models.ConfigUnstableUpdateSLOBody) *UpdateSLOParams
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.