model

package
v0.0.0-...-7077701 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for model API

func New

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

New creates a new model API client.

func (*Client) CreateModel

func (a *Client) CreateModel(params *CreateModelParams, authInfo runtime.ClientAuthInfoWriter) (*CreateModelOK, error)

CreateModel create device's model

func (*Client) DeleteModel

func (a *Client) DeleteModel(params *DeleteModelParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteModelOK, error)

DeleteModel delete device's model

func (*Client) GetModel

func (a *Client) GetModel(params *GetModelParams, authInfo runtime.ClientAuthInfoWriter) (*GetModelOK, error)

GetModel get specified model

func (*Client) GetModels

func (a *Client) GetModels(params *GetModelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetModelsOK, error)

GetModels get specified all models

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateModel

func (a *Client) UpdateModel(params *UpdateModelParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModelOK, error)

UpdateModel update device's model

type CreateModelBadRequest

type CreateModelBadRequest struct {
}

CreateModelBadRequest handles this case with default header values.

bad request

func NewCreateModelBadRequest

func NewCreateModelBadRequest() *CreateModelBadRequest

NewCreateModelBadRequest creates a CreateModelBadRequest with default headers values

func (*CreateModelBadRequest) Error

func (o *CreateModelBadRequest) Error() string

type CreateModelInternalServerError

type CreateModelInternalServerError struct {
}

CreateModelInternalServerError handles this case with default header values.

server internal error

func NewCreateModelInternalServerError

func NewCreateModelInternalServerError() *CreateModelInternalServerError

NewCreateModelInternalServerError creates a CreateModelInternalServerError with default headers values

func (*CreateModelInternalServerError) Error

type CreateModelNotFound

type CreateModelNotFound struct {
}

CreateModelNotFound handles this case with default header values.

device not found

func NewCreateModelNotFound

func NewCreateModelNotFound() *CreateModelNotFound

NewCreateModelNotFound creates a CreateModelNotFound with default headers values

func (*CreateModelNotFound) Error

func (o *CreateModelNotFound) Error() string

type CreateModelOK

type CreateModelOK struct {
}

CreateModelOK handles this case with default header values.

successful operation

func NewCreateModelOK

func NewCreateModelOK() *CreateModelOK

NewCreateModelOK creates a CreateModelOK with default headers values

func (*CreateModelOK) Error

func (o *CreateModelOK) Error() string

type CreateModelParams

type CreateModelParams struct {

	/*DeviceModel*/
	DeviceModel *models.DeviceModel

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

CreateModelParams contains all the parameters to send to the API endpoint for the create model operation typically these are written to a http.Request

func NewCreateModelParams

func NewCreateModelParams() *CreateModelParams

NewCreateModelParams creates a new CreateModelParams object with the default values initialized.

func NewCreateModelParamsWithContext

func NewCreateModelParamsWithContext(ctx context.Context) *CreateModelParams

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

func NewCreateModelParamsWithHTTPClient

func NewCreateModelParamsWithHTTPClient(client *http.Client) *CreateModelParams

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

func NewCreateModelParamsWithTimeout

func NewCreateModelParamsWithTimeout(timeout time.Duration) *CreateModelParams

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

func (*CreateModelParams) SetContext

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

SetContext adds the context to the create model params

func (*CreateModelParams) SetDeviceModel

func (o *CreateModelParams) SetDeviceModel(deviceModel *models.DeviceModel)

SetDeviceModel adds the deviceModel to the create model params

func (*CreateModelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create model params

func (*CreateModelParams) SetTimeout

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

SetTimeout adds the timeout to the create model params

func (*CreateModelParams) WithContext

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

WithContext adds the context to the create model params

func (*CreateModelParams) WithDeviceModel

func (o *CreateModelParams) WithDeviceModel(deviceModel *models.DeviceModel) *CreateModelParams

WithDeviceModel adds the deviceModel to the create model params

func (*CreateModelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create model params

func (*CreateModelParams) WithTimeout

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

WithTimeout adds the timeout to the create model params

func (*CreateModelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateModelReader

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

CreateModelReader is a Reader for the CreateModel structure.

func (*CreateModelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteModelBadRequest

type DeleteModelBadRequest struct {
}

DeleteModelBadRequest handles this case with default header values.

bad request

func NewDeleteModelBadRequest

func NewDeleteModelBadRequest() *DeleteModelBadRequest

NewDeleteModelBadRequest creates a DeleteModelBadRequest with default headers values

func (*DeleteModelBadRequest) Error

func (o *DeleteModelBadRequest) Error() string

type DeleteModelInternalServerError

type DeleteModelInternalServerError struct {
}

DeleteModelInternalServerError handles this case with default header values.

server internal error

func NewDeleteModelInternalServerError

func NewDeleteModelInternalServerError() *DeleteModelInternalServerError

NewDeleteModelInternalServerError creates a DeleteModelInternalServerError with default headers values

func (*DeleteModelInternalServerError) Error

type DeleteModelNotFound

type DeleteModelNotFound struct {
}

DeleteModelNotFound handles this case with default header values.

model not found

func NewDeleteModelNotFound

func NewDeleteModelNotFound() *DeleteModelNotFound

NewDeleteModelNotFound creates a DeleteModelNotFound with default headers values

func (*DeleteModelNotFound) Error

func (o *DeleteModelNotFound) Error() string

type DeleteModelOK

type DeleteModelOK struct {
}

DeleteModelOK handles this case with default header values.

successful operation

func NewDeleteModelOK

func NewDeleteModelOK() *DeleteModelOK

NewDeleteModelOK creates a DeleteModelOK with default headers values

func (*DeleteModelOK) Error

func (o *DeleteModelOK) Error() string

type DeleteModelParams

type DeleteModelParams struct {

	/*ModelID
	  device model identifier

	*/
	ModelID string

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

DeleteModelParams contains all the parameters to send to the API endpoint for the delete model operation typically these are written to a http.Request

func NewDeleteModelParams

func NewDeleteModelParams() *DeleteModelParams

NewDeleteModelParams creates a new DeleteModelParams object with the default values initialized.

func NewDeleteModelParamsWithContext

func NewDeleteModelParamsWithContext(ctx context.Context) *DeleteModelParams

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

func NewDeleteModelParamsWithHTTPClient

func NewDeleteModelParamsWithHTTPClient(client *http.Client) *DeleteModelParams

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

func NewDeleteModelParamsWithTimeout

func NewDeleteModelParamsWithTimeout(timeout time.Duration) *DeleteModelParams

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

func (*DeleteModelParams) SetContext

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

SetContext adds the context to the delete model params

func (*DeleteModelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete model params

func (*DeleteModelParams) SetModelID

func (o *DeleteModelParams) SetModelID(modelID string)

SetModelID adds the modelId to the delete model params

func (*DeleteModelParams) SetTimeout

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

SetTimeout adds the timeout to the delete model params

func (*DeleteModelParams) WithContext

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

WithContext adds the context to the delete model params

func (*DeleteModelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete model params

func (*DeleteModelParams) WithModelID

func (o *DeleteModelParams) WithModelID(modelID string) *DeleteModelParams

WithModelID adds the modelID to the delete model params

func (*DeleteModelParams) WithTimeout

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

WithTimeout adds the timeout to the delete model params

func (*DeleteModelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteModelReader

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

DeleteModelReader is a Reader for the DeleteModel structure.

func (*DeleteModelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetModelNotFound

type GetModelNotFound struct {
}

GetModelNotFound handles this case with default header values.

model not found

func NewGetModelNotFound

func NewGetModelNotFound() *GetModelNotFound

NewGetModelNotFound creates a GetModelNotFound with default headers values

func (*GetModelNotFound) Error

func (o *GetModelNotFound) Error() string

type GetModelOK

type GetModelOK struct {
	Payload *models.DeviceModel
}

GetModelOK handles this case with default header values.

successfully operation

func NewGetModelOK

func NewGetModelOK() *GetModelOK

NewGetModelOK creates a GetModelOK with default headers values

func (*GetModelOK) Error

func (o *GetModelOK) Error() string

func (*GetModelOK) GetPayload

func (o *GetModelOK) GetPayload() *models.DeviceModel

type GetModelParams

type GetModelParams struct {

	/*ModelID
	  device model id

	*/
	ModelID string

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

GetModelParams contains all the parameters to send to the API endpoint for the get model operation typically these are written to a http.Request

func NewGetModelParams

func NewGetModelParams() *GetModelParams

NewGetModelParams creates a new GetModelParams object with the default values initialized.

func NewGetModelParamsWithContext

func NewGetModelParamsWithContext(ctx context.Context) *GetModelParams

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

func NewGetModelParamsWithHTTPClient

func NewGetModelParamsWithHTTPClient(client *http.Client) *GetModelParams

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

func NewGetModelParamsWithTimeout

func NewGetModelParamsWithTimeout(timeout time.Duration) *GetModelParams

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

func (*GetModelParams) SetContext

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

SetContext adds the context to the get model params

func (*GetModelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get model params

func (*GetModelParams) SetModelID

func (o *GetModelParams) SetModelID(modelID string)

SetModelID adds the modelId to the get model params

func (*GetModelParams) SetTimeout

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

SetTimeout adds the timeout to the get model params

func (*GetModelParams) WithContext

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

WithContext adds the context to the get model params

func (*GetModelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get model params

func (*GetModelParams) WithModelID

func (o *GetModelParams) WithModelID(modelID string) *GetModelParams

WithModelID adds the modelID to the get model params

func (*GetModelParams) WithTimeout

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

WithTimeout adds the timeout to the get model params

func (*GetModelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetModelReader

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

GetModelReader is a Reader for the GetModel structure.

func (*GetModelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetModelsBadRequest

type GetModelsBadRequest struct {
}

GetModelsBadRequest handles this case with default header values.

Bad request

func NewGetModelsBadRequest

func NewGetModelsBadRequest() *GetModelsBadRequest

NewGetModelsBadRequest creates a GetModelsBadRequest with default headers values

func (*GetModelsBadRequest) Error

func (o *GetModelsBadRequest) Error() string

type GetModelsInternalServerError

type GetModelsInternalServerError struct {
}

GetModelsInternalServerError handles this case with default header values.

Internal error

func NewGetModelsInternalServerError

func NewGetModelsInternalServerError() *GetModelsInternalServerError

NewGetModelsInternalServerError creates a GetModelsInternalServerError with default headers values

func (*GetModelsInternalServerError) Error

type GetModelsOK

type GetModelsOK struct {
	Payload []*models.DeviceModel
}

GetModelsOK handles this case with default header values.

successfully operation

func NewGetModelsOK

func NewGetModelsOK() *GetModelsOK

NewGetModelsOK creates a GetModelsOK with default headers values

func (*GetModelsOK) Error

func (o *GetModelsOK) Error() string

func (*GetModelsOK) GetPayload

func (o *GetModelsOK) GetPayload() []*models.DeviceModel

type GetModelsParams

type GetModelsParams struct {

	/*PageNumber
	  Page number

	*/
	PageNumber *int64
	/*PageSize
	  Number of persons returned

	*/
	PageSize *int64
	/*Q
	  query object for.You can get query key from rulechain object. This is a json string. For example:
	  * 模糊检索name,description,category
	  {"name": "product"}
	  {"description": "abcd"}
	  {"category": "abcd"}
	  * 多条件模糊检索(and)
	  {"name": "product", "description": "abcd"}
	  * (deprecated) 模糊检索created_at,updated_at
	  {"created_at": "2018-10-11T09:13:26Z"}
	  {"updated_at": "2018-10-11T09:13:26Z"}
	  * 精确检索user_id,id,template_id,key,secret,status,data_format
	  {"user_id": "bevh8dkvr53g2n6u9l70"}
	  {"id": "bevh8dkvr53g2n6u9l70"}
	  {"template_id": "bevh8dkvr53g2n6u9l70"}
	  {"key": "bevh8dkvr53g2n6u9l70"}
	  {"secret": "bevh8dkvr53g2n6u9l70"}
	  {"data_format": "JSON"}
	  {"data_format": "XML"}


	*/
	Q *string

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

GetModelsParams contains all the parameters to send to the API endpoint for the get models operation typically these are written to a http.Request

func NewGetModelsParams

func NewGetModelsParams() *GetModelsParams

NewGetModelsParams creates a new GetModelsParams object with the default values initialized.

func NewGetModelsParamsWithContext

func NewGetModelsParamsWithContext(ctx context.Context) *GetModelsParams

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

func NewGetModelsParamsWithHTTPClient

func NewGetModelsParamsWithHTTPClient(client *http.Client) *GetModelsParams

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

func NewGetModelsParamsWithTimeout

func NewGetModelsParamsWithTimeout(timeout time.Duration) *GetModelsParams

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

func (*GetModelsParams) SetContext

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

SetContext adds the context to the get models params

func (*GetModelsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get models params

func (*GetModelsParams) SetPageNumber

func (o *GetModelsParams) SetPageNumber(pageNumber *int64)

SetPageNumber adds the pageNumber to the get models params

func (*GetModelsParams) SetPageSize

func (o *GetModelsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get models params

func (*GetModelsParams) SetQ

func (o *GetModelsParams) SetQ(q *string)

SetQ adds the q to the get models params

func (*GetModelsParams) SetTimeout

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

SetTimeout adds the timeout to the get models params

func (*GetModelsParams) WithContext

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

WithContext adds the context to the get models params

func (*GetModelsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get models params

func (*GetModelsParams) WithPageNumber

func (o *GetModelsParams) WithPageNumber(pageNumber *int64) *GetModelsParams

WithPageNumber adds the pageNumber to the get models params

func (*GetModelsParams) WithPageSize

func (o *GetModelsParams) WithPageSize(pageSize *int64) *GetModelsParams

WithPageSize adds the pageSize to the get models params

func (*GetModelsParams) WithQ

func (o *GetModelsParams) WithQ(q *string) *GetModelsParams

WithQ adds the q to the get models params

func (*GetModelsParams) WithTimeout

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

WithTimeout adds the timeout to the get models params

func (*GetModelsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetModelsReader

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

GetModelsReader is a Reader for the GetModels structure.

func (*GetModelsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateModelBadRequest

type UpdateModelBadRequest struct {
}

UpdateModelBadRequest handles this case with default header values.

bad request

func NewUpdateModelBadRequest

func NewUpdateModelBadRequest() *UpdateModelBadRequest

NewUpdateModelBadRequest creates a UpdateModelBadRequest with default headers values

func (*UpdateModelBadRequest) Error

func (o *UpdateModelBadRequest) Error() string

type UpdateModelInternalServerError

type UpdateModelInternalServerError struct {
}

UpdateModelInternalServerError handles this case with default header values.

server internal error

func NewUpdateModelInternalServerError

func NewUpdateModelInternalServerError() *UpdateModelInternalServerError

NewUpdateModelInternalServerError creates a UpdateModelInternalServerError with default headers values

func (*UpdateModelInternalServerError) Error

type UpdateModelNotFound

type UpdateModelNotFound struct {
}

UpdateModelNotFound handles this case with default header values.

device not found

func NewUpdateModelNotFound

func NewUpdateModelNotFound() *UpdateModelNotFound

NewUpdateModelNotFound creates a UpdateModelNotFound with default headers values

func (*UpdateModelNotFound) Error

func (o *UpdateModelNotFound) Error() string

type UpdateModelOK

type UpdateModelOK struct {
}

UpdateModelOK handles this case with default header values.

successful operation

func NewUpdateModelOK

func NewUpdateModelOK() *UpdateModelOK

NewUpdateModelOK creates a UpdateModelOK with default headers values

func (*UpdateModelOK) Error

func (o *UpdateModelOK) Error() string

type UpdateModelParams

type UpdateModelParams struct {

	/*DeviceModel*/
	DeviceModel *models.DeviceModel

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

UpdateModelParams contains all the parameters to send to the API endpoint for the update model operation typically these are written to a http.Request

func NewUpdateModelParams

func NewUpdateModelParams() *UpdateModelParams

NewUpdateModelParams creates a new UpdateModelParams object with the default values initialized.

func NewUpdateModelParamsWithContext

func NewUpdateModelParamsWithContext(ctx context.Context) *UpdateModelParams

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

func NewUpdateModelParamsWithHTTPClient

func NewUpdateModelParamsWithHTTPClient(client *http.Client) *UpdateModelParams

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

func NewUpdateModelParamsWithTimeout

func NewUpdateModelParamsWithTimeout(timeout time.Duration) *UpdateModelParams

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

func (*UpdateModelParams) SetContext

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

SetContext adds the context to the update model params

func (*UpdateModelParams) SetDeviceModel

func (o *UpdateModelParams) SetDeviceModel(deviceModel *models.DeviceModel)

SetDeviceModel adds the deviceModel to the update model params

func (*UpdateModelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update model params

func (*UpdateModelParams) SetTimeout

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

SetTimeout adds the timeout to the update model params

func (*UpdateModelParams) WithContext

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

WithContext adds the context to the update model params

func (*UpdateModelParams) WithDeviceModel

func (o *UpdateModelParams) WithDeviceModel(deviceModel *models.DeviceModel) *UpdateModelParams

WithDeviceModel adds the deviceModel to the update model params

func (*UpdateModelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update model params

func (*UpdateModelParams) WithTimeout

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

WithTimeout adds the timeout to the update model params

func (*UpdateModelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateModelReader

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

UpdateModelReader is a Reader for the UpdateModel structure.

func (*UpdateModelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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