service_levels

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 10 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 service levels API

func (*Client) GetServiceLevel

func (a *Client) GetServiceLevel(params *GetServiceLevelParams, authInfo runtime.ClientAuthInfoWriter) (*GetServiceLevelOK, error)

GetServiceLevel gets all service levels devices

Get all Service Levels

func (*Client) PostServiceLevel

func (a *Client) PostServiceLevel(params *PostServiceLevelParams, authInfo runtime.ClientAuthInfoWriter) (*PostServiceLevelOK, error)

PostServiceLevel creates service level

Create Service Level

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetServiceLevel(params *GetServiceLevelParams, authInfo runtime.ClientAuthInfoWriter) (*GetServiceLevelOK, error)

	PostServiceLevel(params *PostServiceLevelParams, authInfo runtime.ClientAuthInfoWriter) (*PostServiceLevelOK, 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 service levels API client.

type GetServiceLevelBadRequest

type GetServiceLevelBadRequest struct {
}

GetServiceLevelBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetServiceLevelBadRequest

func NewGetServiceLevelBadRequest() *GetServiceLevelBadRequest

NewGetServiceLevelBadRequest creates a GetServiceLevelBadRequest with default headers values

func (*GetServiceLevelBadRequest) Error

func (o *GetServiceLevelBadRequest) Error() string

type GetServiceLevelForbidden

type GetServiceLevelForbidden struct {
}

GetServiceLevelForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetServiceLevelForbidden

func NewGetServiceLevelForbidden() *GetServiceLevelForbidden

NewGetServiceLevelForbidden creates a GetServiceLevelForbidden with default headers values

func (*GetServiceLevelForbidden) Error

func (o *GetServiceLevelForbidden) Error() string

type GetServiceLevelGone

type GetServiceLevelGone struct {
}

GetServiceLevelGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetServiceLevelGone

func NewGetServiceLevelGone() *GetServiceLevelGone

NewGetServiceLevelGone creates a GetServiceLevelGone with default headers values

func (*GetServiceLevelGone) Error

func (o *GetServiceLevelGone) Error() string

type GetServiceLevelInternalServerError

type GetServiceLevelInternalServerError struct {
}

GetServiceLevelInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewGetServiceLevelInternalServerError

func NewGetServiceLevelInternalServerError() *GetServiceLevelInternalServerError

NewGetServiceLevelInternalServerError creates a GetServiceLevelInternalServerError with default headers values

func (*GetServiceLevelInternalServerError) Error

type GetServiceLevelMethodNotAllowed

type GetServiceLevelMethodNotAllowed struct {
}

GetServiceLevelMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetServiceLevelMethodNotAllowed

func NewGetServiceLevelMethodNotAllowed() *GetServiceLevelMethodNotAllowed

NewGetServiceLevelMethodNotAllowed creates a GetServiceLevelMethodNotAllowed with default headers values

func (*GetServiceLevelMethodNotAllowed) Error

type GetServiceLevelNotFound

type GetServiceLevelNotFound struct {
}

GetServiceLevelNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetServiceLevelNotFound

func NewGetServiceLevelNotFound() *GetServiceLevelNotFound

NewGetServiceLevelNotFound creates a GetServiceLevelNotFound with default headers values

func (*GetServiceLevelNotFound) Error

func (o *GetServiceLevelNotFound) Error() string

type GetServiceLevelOK

type GetServiceLevelOK struct {
	Payload []*GetServiceLevelOKBodyItems0
}

GetServiceLevelOK handles this case with default header values.

The above command returns results like this:

func NewGetServiceLevelOK

func NewGetServiceLevelOK() *GetServiceLevelOK

NewGetServiceLevelOK creates a GetServiceLevelOK with default headers values

func (*GetServiceLevelOK) Error

func (o *GetServiceLevelOK) Error() string

func (*GetServiceLevelOK) GetPayload

type GetServiceLevelOKBodyItems0

type GetServiceLevelOKBodyItems0 struct {

	// id
	ID interface{} `json:"id,omitempty"`

	// name
	Name interface{} `json:"name,omitempty"`
}

GetServiceLevelOKBodyItems0 get service level o k body items0 swagger:model GetServiceLevelOKBodyItems0

func (*GetServiceLevelOKBodyItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServiceLevelOKBodyItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServiceLevelOKBodyItems0) Validate

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

Validate validates this get service level o k body items0

type GetServiceLevelParams

type GetServiceLevelParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetServiceLevelParams contains all the parameters to send to the API endpoint for the get service level operation typically these are written to a http.Request

func NewGetServiceLevelParams

func NewGetServiceLevelParams() *GetServiceLevelParams

NewGetServiceLevelParams creates a new GetServiceLevelParams object with the default values initialized.

func NewGetServiceLevelParamsWithContext

func NewGetServiceLevelParamsWithContext(ctx context.Context) *GetServiceLevelParams

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

func NewGetServiceLevelParamsWithHTTPClient

func NewGetServiceLevelParamsWithHTTPClient(client *http.Client) *GetServiceLevelParams

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

func NewGetServiceLevelParamsWithTimeout

func NewGetServiceLevelParamsWithTimeout(timeout time.Duration) *GetServiceLevelParams

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

func (*GetServiceLevelParams) SetContext

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

SetContext adds the context to the get service level params

func (*GetServiceLevelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service level params

func (*GetServiceLevelParams) SetTimeout

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

SetTimeout adds the timeout to the get service level params

func (*GetServiceLevelParams) WithContext

WithContext adds the context to the get service level params

func (*GetServiceLevelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service level params

func (*GetServiceLevelParams) WithTimeout

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

WithTimeout adds the timeout to the get service level params

func (*GetServiceLevelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServiceLevelReader

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

GetServiceLevelReader is a Reader for the GetServiceLevel structure.

func (*GetServiceLevelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceLevelServiceUnavailable

type GetServiceLevelServiceUnavailable struct {
}

GetServiceLevelServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetServiceLevelServiceUnavailable

func NewGetServiceLevelServiceUnavailable() *GetServiceLevelServiceUnavailable

NewGetServiceLevelServiceUnavailable creates a GetServiceLevelServiceUnavailable with default headers values

func (*GetServiceLevelServiceUnavailable) Error

type GetServiceLevelUnauthorized

type GetServiceLevelUnauthorized struct {
}

GetServiceLevelUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetServiceLevelUnauthorized

func NewGetServiceLevelUnauthorized() *GetServiceLevelUnauthorized

NewGetServiceLevelUnauthorized creates a GetServiceLevelUnauthorized with default headers values

func (*GetServiceLevelUnauthorized) Error

type PostServiceLevelBadRequest

type PostServiceLevelBadRequest struct {
}

PostServiceLevelBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostServiceLevelBadRequest

func NewPostServiceLevelBadRequest() *PostServiceLevelBadRequest

NewPostServiceLevelBadRequest creates a PostServiceLevelBadRequest with default headers values

func (*PostServiceLevelBadRequest) Error

type PostServiceLevelForbidden

type PostServiceLevelForbidden struct {
}

PostServiceLevelForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostServiceLevelForbidden

func NewPostServiceLevelForbidden() *PostServiceLevelForbidden

NewPostServiceLevelForbidden creates a PostServiceLevelForbidden with default headers values

func (*PostServiceLevelForbidden) Error

func (o *PostServiceLevelForbidden) Error() string

type PostServiceLevelGone

type PostServiceLevelGone struct {
}

PostServiceLevelGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostServiceLevelGone

func NewPostServiceLevelGone() *PostServiceLevelGone

NewPostServiceLevelGone creates a PostServiceLevelGone with default headers values

func (*PostServiceLevelGone) Error

func (o *PostServiceLevelGone) Error() string

type PostServiceLevelInternalServerError

type PostServiceLevelInternalServerError struct {
}

PostServiceLevelInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewPostServiceLevelInternalServerError

func NewPostServiceLevelInternalServerError() *PostServiceLevelInternalServerError

NewPostServiceLevelInternalServerError creates a PostServiceLevelInternalServerError with default headers values

func (*PostServiceLevelInternalServerError) Error

type PostServiceLevelMethodNotAllowed

type PostServiceLevelMethodNotAllowed struct {
}

PostServiceLevelMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostServiceLevelMethodNotAllowed

func NewPostServiceLevelMethodNotAllowed() *PostServiceLevelMethodNotAllowed

NewPostServiceLevelMethodNotAllowed creates a PostServiceLevelMethodNotAllowed with default headers values

func (*PostServiceLevelMethodNotAllowed) Error

type PostServiceLevelNotFound

type PostServiceLevelNotFound struct {
}

PostServiceLevelNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostServiceLevelNotFound

func NewPostServiceLevelNotFound() *PostServiceLevelNotFound

NewPostServiceLevelNotFound creates a PostServiceLevelNotFound with default headers values

func (*PostServiceLevelNotFound) Error

func (o *PostServiceLevelNotFound) Error() string

type PostServiceLevelOK

type PostServiceLevelOK struct {
	Payload *PostServiceLevelOKBody
}

PostServiceLevelOK handles this case with default header values.

The above command returns results like this:

func NewPostServiceLevelOK

func NewPostServiceLevelOK() *PostServiceLevelOK

NewPostServiceLevelOK creates a PostServiceLevelOK with default headers values

func (*PostServiceLevelOK) Error

func (o *PostServiceLevelOK) Error() string

func (*PostServiceLevelOK) GetPayload

func (o *PostServiceLevelOK) GetPayload() *PostServiceLevelOKBody

type PostServiceLevelOKBody

type PostServiceLevelOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostServiceLevelOKBody post service level o k body swagger:model PostServiceLevelOKBody

func (*PostServiceLevelOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostServiceLevelOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostServiceLevelOKBody) Validate

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

Validate validates this post service level o k body

type PostServiceLevelParams

type PostServiceLevelParams struct {

	/*Name
	  Name of the Service Level

	*/
	Name string

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

PostServiceLevelParams contains all the parameters to send to the API endpoint for the post service level operation typically these are written to a http.Request

func NewPostServiceLevelParams

func NewPostServiceLevelParams() *PostServiceLevelParams

NewPostServiceLevelParams creates a new PostServiceLevelParams object with the default values initialized.

func NewPostServiceLevelParamsWithContext

func NewPostServiceLevelParamsWithContext(ctx context.Context) *PostServiceLevelParams

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

func NewPostServiceLevelParamsWithHTTPClient

func NewPostServiceLevelParamsWithHTTPClient(client *http.Client) *PostServiceLevelParams

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

func NewPostServiceLevelParamsWithTimeout

func NewPostServiceLevelParamsWithTimeout(timeout time.Duration) *PostServiceLevelParams

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

func (*PostServiceLevelParams) SetContext

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

SetContext adds the context to the post service level params

func (*PostServiceLevelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post service level params

func (*PostServiceLevelParams) SetName

func (o *PostServiceLevelParams) SetName(name string)

SetName adds the name to the post service level params

func (*PostServiceLevelParams) SetTimeout

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

SetTimeout adds the timeout to the post service level params

func (*PostServiceLevelParams) WithContext

WithContext adds the context to the post service level params

func (*PostServiceLevelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post service level params

func (*PostServiceLevelParams) WithName

WithName adds the name to the post service level params

func (*PostServiceLevelParams) WithTimeout

WithTimeout adds the timeout to the post service level params

func (*PostServiceLevelParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostServiceLevelReader

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

PostServiceLevelReader is a Reader for the PostServiceLevel structure.

func (*PostServiceLevelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostServiceLevelServiceUnavailable

type PostServiceLevelServiceUnavailable struct {
}

PostServiceLevelServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostServiceLevelServiceUnavailable

func NewPostServiceLevelServiceUnavailable() *PostServiceLevelServiceUnavailable

NewPostServiceLevelServiceUnavailable creates a PostServiceLevelServiceUnavailable with default headers values

func (*PostServiceLevelServiceUnavailable) Error

type PostServiceLevelUnauthorized

type PostServiceLevelUnauthorized struct {
}

PostServiceLevelUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostServiceLevelUnauthorized

func NewPostServiceLevelUnauthorized() *PostServiceLevelUnauthorized

NewPostServiceLevelUnauthorized creates a PostServiceLevelUnauthorized with default headers values

func (*PostServiceLevelUnauthorized) Error

Jump to

Keyboard shortcuts

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