Documentation
¶
Index ¶
- type Client
- type ClientService
- type GetLifecycleEventBadRequest
- type GetLifecycleEventForbidden
- type GetLifecycleEventGone
- type GetLifecycleEventInternalServerError
- type GetLifecycleEventMethodNotAllowed
- type GetLifecycleEventNotFound
- type GetLifecycleEventOK
- type GetLifecycleEventOKBody
- type GetLifecycleEventParams
- func NewGetLifecycleEventParams() *GetLifecycleEventParams
- func NewGetLifecycleEventParamsWithContext(ctx context.Context) *GetLifecycleEventParams
- func NewGetLifecycleEventParamsWithHTTPClient(client *http.Client) *GetLifecycleEventParams
- func NewGetLifecycleEventParamsWithTimeout(timeout time.Duration) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) SetAsset(asset *string)
- func (o *GetLifecycleEventParams) SetContext(ctx context.Context)
- func (o *GetLifecycleEventParams) SetDateGt(dateGt *string)
- func (o *GetLifecycleEventParams) SetDateLt(dateLt *string)
- func (o *GetLifecycleEventParams) SetDevice(device *string)
- func (o *GetLifecycleEventParams) SetEnduser(enduser *string)
- func (o *GetLifecycleEventParams) SetHTTPClient(client *http.Client)
- func (o *GetLifecycleEventParams) SetTimeout(timeout time.Duration)
- func (o *GetLifecycleEventParams) SetType(typeVar *string)
- func (o *GetLifecycleEventParams) WithAsset(asset *string) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithContext(ctx context.Context) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithDateGt(dateGt *string) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithDateLt(dateLt *string) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithDevice(device *string) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithEnduser(enduser *string) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithHTTPClient(client *http.Client) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithTimeout(timeout time.Duration) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WithType(typeVar *string) *GetLifecycleEventParams
- func (o *GetLifecycleEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLifecycleEventReader
- type GetLifecycleEventServiceUnavailable
- type GetLifecycleEventUnauthorized
- type LifecycleEventsItems0
- type PutLifecycleEventBadRequest
- type PutLifecycleEventForbidden
- type PutLifecycleEventGone
- type PutLifecycleEventInternalServerError
- type PutLifecycleEventMethodNotAllowed
- type PutLifecycleEventNotFound
- type PutLifecycleEventOK
- type PutLifecycleEventOKBody
- type PutLifecycleEventParams
- func NewPutLifecycleEventParams() *PutLifecycleEventParams
- func NewPutLifecycleEventParamsWithContext(ctx context.Context) *PutLifecycleEventParams
- func NewPutLifecycleEventParamsWithHTTPClient(client *http.Client) *PutLifecycleEventParams
- func NewPutLifecycleEventParamsWithTimeout(timeout time.Duration) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) SetAssetID(assetID *string)
- func (o *PutLifecycleEventParams) SetAssetNo(assetNo *string)
- func (o *PutLifecycleEventParams) SetContext(ctx context.Context)
- func (o *PutLifecycleEventParams) SetDate(date string)
- func (o *PutLifecycleEventParams) SetDevice(device *string)
- func (o *PutLifecycleEventParams) SetDeviceID(deviceID *string)
- func (o *PutLifecycleEventParams) SetHTTPClient(client *http.Client)
- func (o *PutLifecycleEventParams) SetNotes(notes *string)
- func (o *PutLifecycleEventParams) SetSerialNo(serialNo *string)
- func (o *PutLifecycleEventParams) SetTimeout(timeout time.Duration)
- func (o *PutLifecycleEventParams) SetType(typeVar string)
- func (o *PutLifecycleEventParams) SetUser(user *string)
- func (o *PutLifecycleEventParams) WithAssetID(assetID *string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithAssetNo(assetNo *string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithContext(ctx context.Context) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithDate(date string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithDevice(device *string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithDeviceID(deviceID *string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithHTTPClient(client *http.Client) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithNotes(notes *string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithSerialNo(serialNo *string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithTimeout(timeout time.Duration) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithType(typeVar string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WithUser(user *string) *PutLifecycleEventParams
- func (o *PutLifecycleEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutLifecycleEventReader
- type PutLifecycleEventServiceUnavailable
- type PutLifecycleEventUnauthorized
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 asset device life cycle API
func (*Client) GetLifecycleEvent ¶
func (a *Client) GetLifecycleEvent(params *GetLifecycleEventParams) (*GetLifecycleEventOK, error)
GetLifecycleEvent retrieves life cycle events using filters introduced in version 5 5 7
Get Life Cycle Events
func (*Client) PutLifecycleEvent ¶
func (a *Client) PutLifecycleEvent(params *PutLifecycleEventParams) (*PutLifecycleEventOK, error)
PutLifecycleEvent creates life cycle events
Use this API to create life cycle events for devices or assets. Use device, device_id, asset_no, serial_no, or asset_id to indicate the device or asset the event is to be created for.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
GetLifecycleEvent(params *GetLifecycleEventParams) (*GetLifecycleEventOK, error)
PutLifecycleEvent(params *PutLifecycleEventParams) (*PutLifecycleEventOK, 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 asset device life cycle API client.
type GetLifecycleEventBadRequest ¶
type GetLifecycleEventBadRequest struct {
}
GetLifecycleEventBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetLifecycleEventBadRequest ¶
func NewGetLifecycleEventBadRequest() *GetLifecycleEventBadRequest
NewGetLifecycleEventBadRequest creates a GetLifecycleEventBadRequest with default headers values
func (*GetLifecycleEventBadRequest) Error ¶
func (o *GetLifecycleEventBadRequest) Error() string
type GetLifecycleEventForbidden ¶
type GetLifecycleEventForbidden struct {
}
GetLifecycleEventForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetLifecycleEventForbidden ¶
func NewGetLifecycleEventForbidden() *GetLifecycleEventForbidden
NewGetLifecycleEventForbidden creates a GetLifecycleEventForbidden with default headers values
func (*GetLifecycleEventForbidden) Error ¶
func (o *GetLifecycleEventForbidden) Error() string
type GetLifecycleEventGone ¶
type GetLifecycleEventGone struct {
}
GetLifecycleEventGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetLifecycleEventGone ¶
func NewGetLifecycleEventGone() *GetLifecycleEventGone
NewGetLifecycleEventGone creates a GetLifecycleEventGone with default headers values
func (*GetLifecycleEventGone) Error ¶
func (o *GetLifecycleEventGone) Error() string
type GetLifecycleEventInternalServerError ¶
type GetLifecycleEventInternalServerError struct {
}
GetLifecycleEventInternalServerError 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 NewGetLifecycleEventInternalServerError ¶
func NewGetLifecycleEventInternalServerError() *GetLifecycleEventInternalServerError
NewGetLifecycleEventInternalServerError creates a GetLifecycleEventInternalServerError with default headers values
func (*GetLifecycleEventInternalServerError) Error ¶
func (o *GetLifecycleEventInternalServerError) Error() string
type GetLifecycleEventMethodNotAllowed ¶
type GetLifecycleEventMethodNotAllowed struct {
}
GetLifecycleEventMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetLifecycleEventMethodNotAllowed ¶
func NewGetLifecycleEventMethodNotAllowed() *GetLifecycleEventMethodNotAllowed
NewGetLifecycleEventMethodNotAllowed creates a GetLifecycleEventMethodNotAllowed with default headers values
func (*GetLifecycleEventMethodNotAllowed) Error ¶
func (o *GetLifecycleEventMethodNotAllowed) Error() string
type GetLifecycleEventNotFound ¶
type GetLifecycleEventNotFound struct {
}
GetLifecycleEventNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetLifecycleEventNotFound ¶
func NewGetLifecycleEventNotFound() *GetLifecycleEventNotFound
NewGetLifecycleEventNotFound creates a GetLifecycleEventNotFound with default headers values
func (*GetLifecycleEventNotFound) Error ¶
func (o *GetLifecycleEventNotFound) Error() string
type GetLifecycleEventOK ¶
type GetLifecycleEventOK struct {
Payload *GetLifecycleEventOKBody
}
GetLifecycleEventOK handles this case with default header values.
The above command returns results like this:
func NewGetLifecycleEventOK ¶
func NewGetLifecycleEventOK() *GetLifecycleEventOK
NewGetLifecycleEventOK creates a GetLifecycleEventOK with default headers values
func (*GetLifecycleEventOK) Error ¶
func (o *GetLifecycleEventOK) Error() string
func (*GetLifecycleEventOK) GetPayload ¶
func (o *GetLifecycleEventOK) GetPayload() *GetLifecycleEventOKBody
type GetLifecycleEventOKBody ¶
type GetLifecycleEventOKBody struct {
// lifecycle events
LifecycleEvents []*LifecycleEventsItems0 `json:"lifecycle_events"`
}
GetLifecycleEventOKBody get lifecycle event o k body swagger:model GetLifecycleEventOKBody
func (*GetLifecycleEventOKBody) MarshalBinary ¶
func (o *GetLifecycleEventOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetLifecycleEventOKBody) UnmarshalBinary ¶
func (o *GetLifecycleEventOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetLifecycleEventParams ¶
type GetLifecycleEventParams struct {
/*Asset
filter by asset name
*/
Asset *string
/*DateGt
filter by date greater than (YYYY-MM-DD)
*/
DateGt *string
/*DateLt
filter by date less than (YYYY-MM-DD)
*/
DateLt *string
/*Device
filter by device name
*/
Device *string
/*Enduser
filter by end user name
*/
Enduser *string
/*Type
filter by existing event type
*/
Type *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetLifecycleEventParams contains all the parameters to send to the API endpoint for the get lifecycle event operation typically these are written to a http.Request
func NewGetLifecycleEventParams ¶
func NewGetLifecycleEventParams() *GetLifecycleEventParams
NewGetLifecycleEventParams creates a new GetLifecycleEventParams object with the default values initialized.
func NewGetLifecycleEventParamsWithContext ¶
func NewGetLifecycleEventParamsWithContext(ctx context.Context) *GetLifecycleEventParams
NewGetLifecycleEventParamsWithContext creates a new GetLifecycleEventParams object with the default values initialized, and the ability to set a context for a request
func NewGetLifecycleEventParamsWithHTTPClient ¶
func NewGetLifecycleEventParamsWithHTTPClient(client *http.Client) *GetLifecycleEventParams
NewGetLifecycleEventParamsWithHTTPClient creates a new GetLifecycleEventParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetLifecycleEventParamsWithTimeout ¶
func NewGetLifecycleEventParamsWithTimeout(timeout time.Duration) *GetLifecycleEventParams
NewGetLifecycleEventParamsWithTimeout creates a new GetLifecycleEventParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetLifecycleEventParams) SetAsset ¶
func (o *GetLifecycleEventParams) SetAsset(asset *string)
SetAsset adds the asset to the get lifecycle event params
func (*GetLifecycleEventParams) SetContext ¶
func (o *GetLifecycleEventParams) SetContext(ctx context.Context)
SetContext adds the context to the get lifecycle event params
func (*GetLifecycleEventParams) SetDateGt ¶
func (o *GetLifecycleEventParams) SetDateGt(dateGt *string)
SetDateGt adds the dateGt to the get lifecycle event params
func (*GetLifecycleEventParams) SetDateLt ¶
func (o *GetLifecycleEventParams) SetDateLt(dateLt *string)
SetDateLt adds the dateLt to the get lifecycle event params
func (*GetLifecycleEventParams) SetDevice ¶
func (o *GetLifecycleEventParams) SetDevice(device *string)
SetDevice adds the device to the get lifecycle event params
func (*GetLifecycleEventParams) SetEnduser ¶
func (o *GetLifecycleEventParams) SetEnduser(enduser *string)
SetEnduser adds the enduser to the get lifecycle event params
func (*GetLifecycleEventParams) SetHTTPClient ¶
func (o *GetLifecycleEventParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get lifecycle event params
func (*GetLifecycleEventParams) SetTimeout ¶
func (o *GetLifecycleEventParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get lifecycle event params
func (*GetLifecycleEventParams) SetType ¶
func (o *GetLifecycleEventParams) SetType(typeVar *string)
SetType adds the type to the get lifecycle event params
func (*GetLifecycleEventParams) WithAsset ¶
func (o *GetLifecycleEventParams) WithAsset(asset *string) *GetLifecycleEventParams
WithAsset adds the asset to the get lifecycle event params
func (*GetLifecycleEventParams) WithContext ¶
func (o *GetLifecycleEventParams) WithContext(ctx context.Context) *GetLifecycleEventParams
WithContext adds the context to the get lifecycle event params
func (*GetLifecycleEventParams) WithDateGt ¶
func (o *GetLifecycleEventParams) WithDateGt(dateGt *string) *GetLifecycleEventParams
WithDateGt adds the dateGt to the get lifecycle event params
func (*GetLifecycleEventParams) WithDateLt ¶
func (o *GetLifecycleEventParams) WithDateLt(dateLt *string) *GetLifecycleEventParams
WithDateLt adds the dateLt to the get lifecycle event params
func (*GetLifecycleEventParams) WithDevice ¶
func (o *GetLifecycleEventParams) WithDevice(device *string) *GetLifecycleEventParams
WithDevice adds the device to the get lifecycle event params
func (*GetLifecycleEventParams) WithEnduser ¶
func (o *GetLifecycleEventParams) WithEnduser(enduser *string) *GetLifecycleEventParams
WithEnduser adds the enduser to the get lifecycle event params
func (*GetLifecycleEventParams) WithHTTPClient ¶
func (o *GetLifecycleEventParams) WithHTTPClient(client *http.Client) *GetLifecycleEventParams
WithHTTPClient adds the HTTPClient to the get lifecycle event params
func (*GetLifecycleEventParams) WithTimeout ¶
func (o *GetLifecycleEventParams) WithTimeout(timeout time.Duration) *GetLifecycleEventParams
WithTimeout adds the timeout to the get lifecycle event params
func (*GetLifecycleEventParams) WithType ¶
func (o *GetLifecycleEventParams) WithType(typeVar *string) *GetLifecycleEventParams
WithType adds the typeVar to the get lifecycle event params
func (*GetLifecycleEventParams) WriteToRequest ¶
func (o *GetLifecycleEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLifecycleEventReader ¶
type GetLifecycleEventReader struct {
// contains filtered or unexported fields
}
GetLifecycleEventReader is a Reader for the GetLifecycleEvent structure.
func (*GetLifecycleEventReader) ReadResponse ¶
func (o *GetLifecycleEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLifecycleEventServiceUnavailable ¶
type GetLifecycleEventServiceUnavailable struct {
}
GetLifecycleEventServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetLifecycleEventServiceUnavailable ¶
func NewGetLifecycleEventServiceUnavailable() *GetLifecycleEventServiceUnavailable
NewGetLifecycleEventServiceUnavailable creates a GetLifecycleEventServiceUnavailable with default headers values
func (*GetLifecycleEventServiceUnavailable) Error ¶
func (o *GetLifecycleEventServiceUnavailable) Error() string
type GetLifecycleEventUnauthorized ¶
type GetLifecycleEventUnauthorized struct {
}
GetLifecycleEventUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetLifecycleEventUnauthorized ¶
func NewGetLifecycleEventUnauthorized() *GetLifecycleEventUnauthorized
NewGetLifecycleEventUnauthorized creates a GetLifecycleEventUnauthorized with default headers values
func (*GetLifecycleEventUnauthorized) Error ¶
func (o *GetLifecycleEventUnauthorized) Error() string
type LifecycleEventsItems0 ¶
type LifecycleEventsItems0 struct {
// asset id
AssetID interface{} `json:"asset_id,omitempty"`
// asset name
AssetName interface{} `json:"asset_name,omitempty"`
// date
Date interface{} `json:"date,omitempty"`
// enduser
Enduser interface{} `json:"enduser,omitempty"`
// id
ID interface{} `json:"id,omitempty"`
// notes
Notes interface{} `json:"notes,omitempty"`
// type
Type interface{} `json:"type,omitempty"`
}
LifecycleEventsItems0 lifecycle events items0 swagger:model LifecycleEventsItems0
func (*LifecycleEventsItems0) MarshalBinary ¶
func (o *LifecycleEventsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LifecycleEventsItems0) UnmarshalBinary ¶
func (o *LifecycleEventsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutLifecycleEventBadRequest ¶
type PutLifecycleEventBadRequest struct {
}
PutLifecycleEventBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPutLifecycleEventBadRequest ¶
func NewPutLifecycleEventBadRequest() *PutLifecycleEventBadRequest
NewPutLifecycleEventBadRequest creates a PutLifecycleEventBadRequest with default headers values
func (*PutLifecycleEventBadRequest) Error ¶
func (o *PutLifecycleEventBadRequest) Error() string
type PutLifecycleEventForbidden ¶
type PutLifecycleEventForbidden struct {
}
PutLifecycleEventForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPutLifecycleEventForbidden ¶
func NewPutLifecycleEventForbidden() *PutLifecycleEventForbidden
NewPutLifecycleEventForbidden creates a PutLifecycleEventForbidden with default headers values
func (*PutLifecycleEventForbidden) Error ¶
func (o *PutLifecycleEventForbidden) Error() string
type PutLifecycleEventGone ¶
type PutLifecycleEventGone struct {
}
PutLifecycleEventGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPutLifecycleEventGone ¶
func NewPutLifecycleEventGone() *PutLifecycleEventGone
NewPutLifecycleEventGone creates a PutLifecycleEventGone with default headers values
func (*PutLifecycleEventGone) Error ¶
func (o *PutLifecycleEventGone) Error() string
type PutLifecycleEventInternalServerError ¶
type PutLifecycleEventInternalServerError struct {
}
PutLifecycleEventInternalServerError 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 NewPutLifecycleEventInternalServerError ¶
func NewPutLifecycleEventInternalServerError() *PutLifecycleEventInternalServerError
NewPutLifecycleEventInternalServerError creates a PutLifecycleEventInternalServerError with default headers values
func (*PutLifecycleEventInternalServerError) Error ¶
func (o *PutLifecycleEventInternalServerError) Error() string
type PutLifecycleEventMethodNotAllowed ¶
type PutLifecycleEventMethodNotAllowed struct {
}
PutLifecycleEventMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPutLifecycleEventMethodNotAllowed ¶
func NewPutLifecycleEventMethodNotAllowed() *PutLifecycleEventMethodNotAllowed
NewPutLifecycleEventMethodNotAllowed creates a PutLifecycleEventMethodNotAllowed with default headers values
func (*PutLifecycleEventMethodNotAllowed) Error ¶
func (o *PutLifecycleEventMethodNotAllowed) Error() string
type PutLifecycleEventNotFound ¶
type PutLifecycleEventNotFound struct {
}
PutLifecycleEventNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPutLifecycleEventNotFound ¶
func NewPutLifecycleEventNotFound() *PutLifecycleEventNotFound
NewPutLifecycleEventNotFound creates a PutLifecycleEventNotFound with default headers values
func (*PutLifecycleEventNotFound) Error ¶
func (o *PutLifecycleEventNotFound) Error() string
type PutLifecycleEventOK ¶
type PutLifecycleEventOK struct {
Payload *PutLifecycleEventOKBody
}
PutLifecycleEventOK handles this case with default header values.
The above command returns results like this:
func NewPutLifecycleEventOK ¶
func NewPutLifecycleEventOK() *PutLifecycleEventOK
NewPutLifecycleEventOK creates a PutLifecycleEventOK with default headers values
func (*PutLifecycleEventOK) Error ¶
func (o *PutLifecycleEventOK) Error() string
func (*PutLifecycleEventOK) GetPayload ¶
func (o *PutLifecycleEventOK) GetPayload() *PutLifecycleEventOKBody
type PutLifecycleEventOKBody ¶
type PutLifecycleEventOKBody struct {
// code
Code interface{} `json:"code,omitempty"`
// msg
Msg interface{} `json:"msg,omitempty"`
}
PutLifecycleEventOKBody put lifecycle event o k body swagger:model PutLifecycleEventOKBody
func (*PutLifecycleEventOKBody) MarshalBinary ¶
func (o *PutLifecycleEventOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutLifecycleEventOKBody) UnmarshalBinary ¶
func (o *PutLifecycleEventOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutLifecycleEventParams ¶
type PutLifecycleEventParams struct {
/*AssetID
ID of the asset that the event is for
*/
AssetID *string
/*AssetNo
Asset number of the device that the event is for
*/
AssetNo *string
/*Date
in YYYY-MM-DD or YYYY-MM-DD-HH:MM format.
*/
Date string
/*Device
Name of the device that the event is for
*/
Device *string
/*DeviceID
ID of the device that the event is for
*/
DeviceID *string
/*Notes
Any additional notes
*/
Notes *string
/*SerialNo
Serial number of the device that the event is for
*/
SerialNo *string
/*Type
must be defined already in device42.
*/
Type string
/*User
enduser name
*/
User *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PutLifecycleEventParams contains all the parameters to send to the API endpoint for the put lifecycle event operation typically these are written to a http.Request
func NewPutLifecycleEventParams ¶
func NewPutLifecycleEventParams() *PutLifecycleEventParams
NewPutLifecycleEventParams creates a new PutLifecycleEventParams object with the default values initialized.
func NewPutLifecycleEventParamsWithContext ¶
func NewPutLifecycleEventParamsWithContext(ctx context.Context) *PutLifecycleEventParams
NewPutLifecycleEventParamsWithContext creates a new PutLifecycleEventParams object with the default values initialized, and the ability to set a context for a request
func NewPutLifecycleEventParamsWithHTTPClient ¶
func NewPutLifecycleEventParamsWithHTTPClient(client *http.Client) *PutLifecycleEventParams
NewPutLifecycleEventParamsWithHTTPClient creates a new PutLifecycleEventParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPutLifecycleEventParamsWithTimeout ¶
func NewPutLifecycleEventParamsWithTimeout(timeout time.Duration) *PutLifecycleEventParams
NewPutLifecycleEventParamsWithTimeout creates a new PutLifecycleEventParams object with the default values initialized, and the ability to set a timeout on a request
func (*PutLifecycleEventParams) SetAssetID ¶
func (o *PutLifecycleEventParams) SetAssetID(assetID *string)
SetAssetID adds the assetId to the put lifecycle event params
func (*PutLifecycleEventParams) SetAssetNo ¶
func (o *PutLifecycleEventParams) SetAssetNo(assetNo *string)
SetAssetNo adds the assetNo to the put lifecycle event params
func (*PutLifecycleEventParams) SetContext ¶
func (o *PutLifecycleEventParams) SetContext(ctx context.Context)
SetContext adds the context to the put lifecycle event params
func (*PutLifecycleEventParams) SetDate ¶
func (o *PutLifecycleEventParams) SetDate(date string)
SetDate adds the date to the put lifecycle event params
func (*PutLifecycleEventParams) SetDevice ¶
func (o *PutLifecycleEventParams) SetDevice(device *string)
SetDevice adds the device to the put lifecycle event params
func (*PutLifecycleEventParams) SetDeviceID ¶
func (o *PutLifecycleEventParams) SetDeviceID(deviceID *string)
SetDeviceID adds the deviceId to the put lifecycle event params
func (*PutLifecycleEventParams) SetHTTPClient ¶
func (o *PutLifecycleEventParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put lifecycle event params
func (*PutLifecycleEventParams) SetNotes ¶
func (o *PutLifecycleEventParams) SetNotes(notes *string)
SetNotes adds the notes to the put lifecycle event params
func (*PutLifecycleEventParams) SetSerialNo ¶
func (o *PutLifecycleEventParams) SetSerialNo(serialNo *string)
SetSerialNo adds the serialNo to the put lifecycle event params
func (*PutLifecycleEventParams) SetTimeout ¶
func (o *PutLifecycleEventParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put lifecycle event params
func (*PutLifecycleEventParams) SetType ¶
func (o *PutLifecycleEventParams) SetType(typeVar string)
SetType adds the type to the put lifecycle event params
func (*PutLifecycleEventParams) SetUser ¶
func (o *PutLifecycleEventParams) SetUser(user *string)
SetUser adds the user to the put lifecycle event params
func (*PutLifecycleEventParams) WithAssetID ¶
func (o *PutLifecycleEventParams) WithAssetID(assetID *string) *PutLifecycleEventParams
WithAssetID adds the assetID to the put lifecycle event params
func (*PutLifecycleEventParams) WithAssetNo ¶
func (o *PutLifecycleEventParams) WithAssetNo(assetNo *string) *PutLifecycleEventParams
WithAssetNo adds the assetNo to the put lifecycle event params
func (*PutLifecycleEventParams) WithContext ¶
func (o *PutLifecycleEventParams) WithContext(ctx context.Context) *PutLifecycleEventParams
WithContext adds the context to the put lifecycle event params
func (*PutLifecycleEventParams) WithDate ¶
func (o *PutLifecycleEventParams) WithDate(date string) *PutLifecycleEventParams
WithDate adds the date to the put lifecycle event params
func (*PutLifecycleEventParams) WithDevice ¶
func (o *PutLifecycleEventParams) WithDevice(device *string) *PutLifecycleEventParams
WithDevice adds the device to the put lifecycle event params
func (*PutLifecycleEventParams) WithDeviceID ¶
func (o *PutLifecycleEventParams) WithDeviceID(deviceID *string) *PutLifecycleEventParams
WithDeviceID adds the deviceID to the put lifecycle event params
func (*PutLifecycleEventParams) WithHTTPClient ¶
func (o *PutLifecycleEventParams) WithHTTPClient(client *http.Client) *PutLifecycleEventParams
WithHTTPClient adds the HTTPClient to the put lifecycle event params
func (*PutLifecycleEventParams) WithNotes ¶
func (o *PutLifecycleEventParams) WithNotes(notes *string) *PutLifecycleEventParams
WithNotes adds the notes to the put lifecycle event params
func (*PutLifecycleEventParams) WithSerialNo ¶
func (o *PutLifecycleEventParams) WithSerialNo(serialNo *string) *PutLifecycleEventParams
WithSerialNo adds the serialNo to the put lifecycle event params
func (*PutLifecycleEventParams) WithTimeout ¶
func (o *PutLifecycleEventParams) WithTimeout(timeout time.Duration) *PutLifecycleEventParams
WithTimeout adds the timeout to the put lifecycle event params
func (*PutLifecycleEventParams) WithType ¶
func (o *PutLifecycleEventParams) WithType(typeVar string) *PutLifecycleEventParams
WithType adds the typeVar to the put lifecycle event params
func (*PutLifecycleEventParams) WithUser ¶
func (o *PutLifecycleEventParams) WithUser(user *string) *PutLifecycleEventParams
WithUser adds the user to the put lifecycle event params
func (*PutLifecycleEventParams) WriteToRequest ¶
func (o *PutLifecycleEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutLifecycleEventReader ¶
type PutLifecycleEventReader struct {
// contains filtered or unexported fields
}
PutLifecycleEventReader is a Reader for the PutLifecycleEvent structure.
func (*PutLifecycleEventReader) ReadResponse ¶
func (o *PutLifecycleEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutLifecycleEventServiceUnavailable ¶
type PutLifecycleEventServiceUnavailable struct {
}
PutLifecycleEventServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPutLifecycleEventServiceUnavailable ¶
func NewPutLifecycleEventServiceUnavailable() *PutLifecycleEventServiceUnavailable
NewPutLifecycleEventServiceUnavailable creates a PutLifecycleEventServiceUnavailable with default headers values
func (*PutLifecycleEventServiceUnavailable) Error ¶
func (o *PutLifecycleEventServiceUnavailable) Error() string
type PutLifecycleEventUnauthorized ¶
type PutLifecycleEventUnauthorized struct {
}
PutLifecycleEventUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPutLifecycleEventUnauthorized ¶
func NewPutLifecycleEventUnauthorized() *PutLifecycleEventUnauthorized
NewPutLifecycleEventUnauthorized creates a PutLifecycleEventUnauthorized with default headers values
func (*PutLifecycleEventUnauthorized) Error ¶
func (o *PutLifecycleEventUnauthorized) Error() string