Documentation
¶
Overview ¶
Package hyundaiclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
Index ¶
- func NewCreatePushNotificationsDeviceRequest(server string, body CreatePushNotificationsDeviceJSONRequestBody) (*http.Request, error)
- func NewCreatePushNotificationsDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetCurrentVehicleLocationRequest(server string, vehicleId string) (*http.Request, error)
- func NewGetCurrentVehicleStatusRequest(server string, vehicleId string) (*http.Request, error)
- func NewGetLastVehicleStatusRequest(server string, vehicleId string) (*http.Request, error)
- func NewListVehiclesRequest(server string) (*http.Request, error)
- func NewQueryVehicleDrivingHistoryRequest(server string, vehicleId string, ...) (*http.Request, error)
- func NewQueryVehicleDrivingHistoryRequestWithBody(server string, vehicleId string, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryVehicleTripInfoRequest(server string, vehicleId string, body QueryVehicleTripInfoJSONRequestBody) (*http.Request, error)
- func NewQueryVehicleTripInfoRequestWithBody(server string, vehicleId string, contentType string, body io.Reader) (*http.Request, error)
- type Client
- func (c *Client) CreatePushNotificationsDevice(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePushNotificationsDeviceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetCurrentVehicleLocation(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCurrentVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLastVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListVehicles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) QueryVehicleDrivingHistory(ctx context.Context, vehicleId string, ...) (*http.Response, error)
- func (c *Client) QueryVehicleDrivingHistoryWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryVehicleTripInfo(ctx context.Context, vehicleId string, ...) (*http.Response, error)
- func (c *Client) QueryVehicleTripInfoWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreatePushNotificationsDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePushNotificationsDeviceResponse, error)
- func (c *ClientWithResponses) CreatePushNotificationsDeviceWithResponse(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, ...) (*CreatePushNotificationsDeviceResponse, error)
- func (c *ClientWithResponses) GetCurrentVehicleLocationWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleLocationResponse, error)
- func (c *ClientWithResponses) GetCurrentVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleStatusResponse, error)
- func (c *ClientWithResponses) GetLastVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetLastVehicleStatusResponse, error)
- func (c *ClientWithResponses) ListVehiclesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVehiclesResponse, error)
- func (c *ClientWithResponses) QueryVehicleDrivingHistoryWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, ...) (*QueryVehicleDrivingHistoryResponse, error)
- func (c *ClientWithResponses) QueryVehicleDrivingHistoryWithResponse(ctx context.Context, vehicleId string, ...) (*QueryVehicleDrivingHistoryResponse, error)
- func (c *ClientWithResponses) QueryVehicleTripInfoWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, ...) (*QueryVehicleTripInfoResponse, error)
- func (c *ClientWithResponses) QueryVehicleTripInfoWithResponse(ctx context.Context, vehicleId string, ...) (*QueryVehicleTripInfoResponse, error)
- type ClientWithResponsesInterface
- type CreatePushNotificationsDeviceJSONBody
- type CreatePushNotificationsDeviceJSONRequestBody
- type CreatePushNotificationsDeviceResponse
- type CurrentVehicleLocationResponse
- type CurrentVehicleStatusResponse
- type ErrorResponse
- type GetCurrentVehicleLocationResponse
- type GetCurrentVehicleStatusResponse
- type GetLastVehicleStatusResponse
- type HttpRequestDoer
- type LastVehicleStatusResponse
- type ListVehiclesResponse
- type PushNotificationsDeviceResponse
- type QueryVehicleDrivingHistoryJSONBody
- type QueryVehicleDrivingHistoryJSONRequestBody
- type QueryVehicleDrivingHistoryResponse
- type QueryVehicleTripInfoJSONBody
- type QueryVehicleTripInfoJSONRequestBody
- type QueryVehicleTripInfoResponse
- type RequestEditorFn
- type VehicleDrivingHistoryResponse
- type VehicleLocationGps
- type VehicleStatus
- type VehicleTripInfoResponse
- type VehiclesListResponse
- type VehiclesListResponseVehicle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreatePushNotificationsDeviceRequest ¶
func NewCreatePushNotificationsDeviceRequest(server string, body CreatePushNotificationsDeviceJSONRequestBody) (*http.Request, error)
NewCreatePushNotificationsDeviceRequest calls the generic CreatePushNotificationsDevice builder with application/json body
func NewCreatePushNotificationsDeviceRequestWithBody ¶
func NewCreatePushNotificationsDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePushNotificationsDeviceRequestWithBody generates requests for CreatePushNotificationsDevice with any type of body
func NewGetCurrentVehicleLocationRequest ¶
NewGetCurrentVehicleLocationRequest generates requests for GetCurrentVehicleLocation
func NewGetCurrentVehicleStatusRequest ¶
NewGetCurrentVehicleStatusRequest generates requests for GetCurrentVehicleStatus
func NewGetLastVehicleStatusRequest ¶
NewGetLastVehicleStatusRequest generates requests for GetLastVehicleStatus
func NewListVehiclesRequest ¶
NewListVehiclesRequest generates requests for ListVehicles
func NewQueryVehicleDrivingHistoryRequest ¶
func NewQueryVehicleDrivingHistoryRequest(server string, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody) (*http.Request, error)
NewQueryVehicleDrivingHistoryRequest calls the generic QueryVehicleDrivingHistory builder with application/json body
func NewQueryVehicleDrivingHistoryRequestWithBody ¶
func NewQueryVehicleDrivingHistoryRequestWithBody(server string, vehicleId string, contentType string, body io.Reader) (*http.Request, error)
NewQueryVehicleDrivingHistoryRequestWithBody generates requests for QueryVehicleDrivingHistory with any type of body
func NewQueryVehicleTripInfoRequest ¶
func NewQueryVehicleTripInfoRequest(server string, vehicleId string, body QueryVehicleTripInfoJSONRequestBody) (*http.Request, error)
NewQueryVehicleTripInfoRequest calls the generic QueryVehicleTripInfo builder with application/json body
Types ¶
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreatePushNotificationsDevice ¶
func (c *Client) CreatePushNotificationsDevice(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePushNotificationsDeviceWithBody ¶
func (*Client) GetCurrentVehicleLocation ¶
func (*Client) GetCurrentVehicleStatus ¶
func (*Client) GetLastVehicleStatus ¶
func (*Client) ListVehicles ¶
func (*Client) QueryVehicleDrivingHistory ¶
func (c *Client) QueryVehicleDrivingHistory(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryVehicleDrivingHistoryWithBody ¶
func (*Client) QueryVehicleTripInfo ¶
func (c *Client) QueryVehicleTripInfo(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // CreatePushNotificationsDeviceWithBody request with any body CreatePushNotificationsDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreatePushNotificationsDevice(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListVehicles request ListVehicles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // QueryVehicleDrivingHistoryWithBody request with any body QueryVehicleDrivingHistoryWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) QueryVehicleDrivingHistory(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCurrentVehicleLocation request GetCurrentVehicleLocation(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCurrentVehicleStatus request GetCurrentVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLastVehicleStatus request GetLastVehicleStatus(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*http.Response, error) // QueryVehicleTripInfoWithBody request with any body QueryVehicleTripInfoWithBody(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) QueryVehicleTripInfo(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreatePushNotificationsDeviceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePushNotificationsDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error)
CreatePushNotificationsDeviceWithBodyWithResponse request with arbitrary body returning *CreatePushNotificationsDeviceResponse
func (*ClientWithResponses) CreatePushNotificationsDeviceWithResponse ¶
func (c *ClientWithResponses) CreatePushNotificationsDeviceWithResponse(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error)
func (*ClientWithResponses) GetCurrentVehicleLocationWithResponse ¶
func (c *ClientWithResponses) GetCurrentVehicleLocationWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleLocationResponse, error)
GetCurrentVehicleLocationWithResponse request returning *GetCurrentVehicleLocationResponse
func (*ClientWithResponses) GetCurrentVehicleStatusWithResponse ¶
func (c *ClientWithResponses) GetCurrentVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleStatusResponse, error)
GetCurrentVehicleStatusWithResponse request returning *GetCurrentVehicleStatusResponse
func (*ClientWithResponses) GetLastVehicleStatusWithResponse ¶
func (c *ClientWithResponses) GetLastVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetLastVehicleStatusResponse, error)
GetLastVehicleStatusWithResponse request returning *GetLastVehicleStatusResponse
func (*ClientWithResponses) ListVehiclesWithResponse ¶
func (c *ClientWithResponses) ListVehiclesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVehiclesResponse, error)
ListVehiclesWithResponse request returning *ListVehiclesResponse
func (*ClientWithResponses) QueryVehicleDrivingHistoryWithBodyWithResponse ¶
func (c *ClientWithResponses) QueryVehicleDrivingHistoryWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error)
QueryVehicleDrivingHistoryWithBodyWithResponse request with arbitrary body returning *QueryVehicleDrivingHistoryResponse
func (*ClientWithResponses) QueryVehicleDrivingHistoryWithResponse ¶
func (c *ClientWithResponses) QueryVehicleDrivingHistoryWithResponse(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error)
func (*ClientWithResponses) QueryVehicleTripInfoWithBodyWithResponse ¶
func (c *ClientWithResponses) QueryVehicleTripInfoWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error)
QueryVehicleTripInfoWithBodyWithResponse request with arbitrary body returning *QueryVehicleTripInfoResponse
func (*ClientWithResponses) QueryVehicleTripInfoWithResponse ¶
func (c *ClientWithResponses) QueryVehicleTripInfoWithResponse(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // CreatePushNotificationsDeviceWithBodyWithResponse request with any body CreatePushNotificationsDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error) CreatePushNotificationsDeviceWithResponse(ctx context.Context, body CreatePushNotificationsDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePushNotificationsDeviceResponse, error) // ListVehiclesWithResponse request ListVehiclesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVehiclesResponse, error) // QueryVehicleDrivingHistoryWithBodyWithResponse request with any body QueryVehicleDrivingHistoryWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error) QueryVehicleDrivingHistoryWithResponse(ctx context.Context, vehicleId string, body QueryVehicleDrivingHistoryJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleDrivingHistoryResponse, error) // GetCurrentVehicleLocationWithResponse request GetCurrentVehicleLocationWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleLocationResponse, error) // GetCurrentVehicleStatusWithResponse request GetCurrentVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetCurrentVehicleStatusResponse, error) // GetLastVehicleStatusWithResponse request GetLastVehicleStatusWithResponse(ctx context.Context, vehicleId string, reqEditors ...RequestEditorFn) (*GetLastVehicleStatusResponse, error) // QueryVehicleTripInfoWithBodyWithResponse request with any body QueryVehicleTripInfoWithBodyWithResponse(ctx context.Context, vehicleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error) QueryVehicleTripInfoWithResponse(ctx context.Context, vehicleId string, body QueryVehicleTripInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryVehicleTripInfoResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreatePushNotificationsDeviceJSONBody ¶
type CreatePushNotificationsDeviceJSONBody struct { PushRegId string `json:"pushRegId"` // PushType Which type of push notifications (GCN or APNS) PushType string `json:"pushType"` Uuid string `json:"uuid"` }
CreatePushNotificationsDeviceJSONBody defines parameters for CreatePushNotificationsDevice.
type CreatePushNotificationsDeviceJSONRequestBody ¶
type CreatePushNotificationsDeviceJSONRequestBody CreatePushNotificationsDeviceJSONBody
CreatePushNotificationsDeviceJSONRequestBody defines body for CreatePushNotificationsDevice for application/json ContentType.
type CreatePushNotificationsDeviceResponse ¶
type CreatePushNotificationsDeviceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PushNotificationsDeviceResponse JSONDefault *ErrorResponse }
func ParseCreatePushNotificationsDeviceResponse ¶
func ParseCreatePushNotificationsDeviceResponse(rsp *http.Response) (*CreatePushNotificationsDeviceResponse, error)
ParseCreatePushNotificationsDeviceResponse parses an HTTP response from a CreatePushNotificationsDeviceWithResponse call
func (CreatePushNotificationsDeviceResponse) Status ¶
func (r CreatePushNotificationsDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePushNotificationsDeviceResponse) StatusCode ¶
func (r CreatePushNotificationsDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CurrentVehicleLocationResponse ¶
type CurrentVehicleLocationResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg map[string]interface{} `json:"resMsg"` RetCode string `json:"retCode"` }
CurrentVehicleLocationResponse defines model for CurrentVehicleLocationResponse.
type CurrentVehicleStatusResponse ¶
type CurrentVehicleStatusResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg VehicleStatus `json:"resMsg"` RetCode string `json:"retCode"` }
CurrentVehicleStatusResponse defines model for CurrentVehicleStatusResponse.
type ErrorResponse ¶
type ErrorResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg string `json:"resMsg"` RetCode string `json:"retCode"` }
ErrorResponse defines model for ErrorResponse.
type GetCurrentVehicleLocationResponse ¶
type GetCurrentVehicleLocationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CurrentVehicleLocationResponse JSONDefault *ErrorResponse }
func ParseGetCurrentVehicleLocationResponse ¶
func ParseGetCurrentVehicleLocationResponse(rsp *http.Response) (*GetCurrentVehicleLocationResponse, error)
ParseGetCurrentVehicleLocationResponse parses an HTTP response from a GetCurrentVehicleLocationWithResponse call
func (GetCurrentVehicleLocationResponse) Status ¶
func (r GetCurrentVehicleLocationResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentVehicleLocationResponse) StatusCode ¶
func (r GetCurrentVehicleLocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCurrentVehicleStatusResponse ¶
type GetCurrentVehicleStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CurrentVehicleStatusResponse JSONDefault *ErrorResponse }
func ParseGetCurrentVehicleStatusResponse ¶
func ParseGetCurrentVehicleStatusResponse(rsp *http.Response) (*GetCurrentVehicleStatusResponse, error)
ParseGetCurrentVehicleStatusResponse parses an HTTP response from a GetCurrentVehicleStatusWithResponse call
func (GetCurrentVehicleStatusResponse) Status ¶
func (r GetCurrentVehicleStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentVehicleStatusResponse) StatusCode ¶
func (r GetCurrentVehicleStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLastVehicleStatusResponse ¶
type GetLastVehicleStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LastVehicleStatusResponse JSONDefault *ErrorResponse }
func ParseGetLastVehicleStatusResponse ¶
func ParseGetLastVehicleStatusResponse(rsp *http.Response) (*GetLastVehicleStatusResponse, error)
ParseGetLastVehicleStatusResponse parses an HTTP response from a GetLastVehicleStatusWithResponse call
func (GetLastVehicleStatusResponse) Status ¶
func (r GetLastVehicleStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetLastVehicleStatusResponse) StatusCode ¶
func (r GetLastVehicleStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LastVehicleStatusResponse ¶
type LastVehicleStatusResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg struct { VehicleStatusInfo struct { Odometer struct { // Unit The distance unit associated with the value. 1 == miles. Unit int `json:"unit"` // Value The distance value. Value float32 `json:"value"` } `json:"odometer"` // VehicleLocation A GPS location capture. This could be the current state or the last known state. VehicleLocation VehicleLocationGps `json:"vehicleLocation"` VehicleStatus VehicleStatus `json:"vehicleStatus"` } `json:"vehicleStatusInfo"` } `json:"resMsg"` RetCode string `json:"retCode"` }
LastVehicleStatusResponse defines model for LastVehicleStatusResponse.
type ListVehiclesResponse ¶
type ListVehiclesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *VehiclesListResponse JSONDefault *ErrorResponse }
func ParseListVehiclesResponse ¶
func ParseListVehiclesResponse(rsp *http.Response) (*ListVehiclesResponse, error)
ParseListVehiclesResponse parses an HTTP response from a ListVehiclesWithResponse call
func (ListVehiclesResponse) Status ¶
func (r ListVehiclesResponse) Status() string
Status returns HTTPResponse.Status
func (ListVehiclesResponse) StatusCode ¶
func (r ListVehiclesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PushNotificationsDeviceResponse ¶
type PushNotificationsDeviceResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg struct { // DeviceId The generated device id to use in future requests. DeviceId openapi_types.UUID `json:"deviceId"` } `json:"resMsg"` RetCode string `json:"retCode"` }
PushNotificationsDeviceResponse defines model for PushNotificationsDeviceResponse.
type QueryVehicleDrivingHistoryJSONBody ¶
type QueryVehicleDrivingHistoryJSONBody struct { // PeriodTarget Which period to query, 0 == 30 days, 1 == all time PeriodTarget int `json:"periodTarget"` }
QueryVehicleDrivingHistoryJSONBody defines parameters for QueryVehicleDrivingHistory.
type QueryVehicleDrivingHistoryJSONRequestBody ¶
type QueryVehicleDrivingHistoryJSONRequestBody QueryVehicleDrivingHistoryJSONBody
QueryVehicleDrivingHistoryJSONRequestBody defines body for QueryVehicleDrivingHistory for application/json ContentType.
type QueryVehicleDrivingHistoryResponse ¶
type QueryVehicleDrivingHistoryResponse struct { Body []byte HTTPResponse *http.Response JSON200 *VehicleDrivingHistoryResponse JSONDefault *ErrorResponse }
func ParseQueryVehicleDrivingHistoryResponse ¶
func ParseQueryVehicleDrivingHistoryResponse(rsp *http.Response) (*QueryVehicleDrivingHistoryResponse, error)
ParseQueryVehicleDrivingHistoryResponse parses an HTTP response from a QueryVehicleDrivingHistoryWithResponse call
func (QueryVehicleDrivingHistoryResponse) Status ¶
func (r QueryVehicleDrivingHistoryResponse) Status() string
Status returns HTTPResponse.Status
func (QueryVehicleDrivingHistoryResponse) StatusCode ¶
func (r QueryVehicleDrivingHistoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryVehicleTripInfoJSONBody ¶
type QueryVehicleTripInfoJSONBody struct { SetTripDay *string `json:"setTripDay,omitempty"` SetTripMonth *string `json:"setTripMonth,omitempty"` // TripPeriodType Which period to query, 0 == monthly, 1 == daily TripPeriodType int `json:"tripPeriodType"` }
QueryVehicleTripInfoJSONBody defines parameters for QueryVehicleTripInfo.
type QueryVehicleTripInfoJSONRequestBody ¶
type QueryVehicleTripInfoJSONRequestBody QueryVehicleTripInfoJSONBody
QueryVehicleTripInfoJSONRequestBody defines body for QueryVehicleTripInfo for application/json ContentType.
type QueryVehicleTripInfoResponse ¶
type QueryVehicleTripInfoResponse struct { Body []byte HTTPResponse *http.Response JSON200 *VehicleTripInfoResponse JSONDefault *ErrorResponse }
func ParseQueryVehicleTripInfoResponse ¶
func ParseQueryVehicleTripInfoResponse(rsp *http.Response) (*QueryVehicleTripInfoResponse, error)
ParseQueryVehicleTripInfoResponse parses an HTTP response from a QueryVehicleTripInfoWithResponse call
func (QueryVehicleTripInfoResponse) Status ¶
func (r QueryVehicleTripInfoResponse) Status() string
Status returns HTTPResponse.Status
func (QueryVehicleTripInfoResponse) StatusCode ¶
func (r QueryVehicleTripInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type VehicleDrivingHistoryResponse ¶
type VehicleDrivingHistoryResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg map[string]interface{} `json:"resMsg"` RetCode string `json:"retCode"` }
VehicleDrivingHistoryResponse defines model for VehicleDrivingHistoryResponse.
type VehicleLocationGps ¶
type VehicleLocationGps struct { Accuracy struct { Hdop int `json:"hdop"` Pdop int `json:"pdop"` } `json:"accuracy"` Coord struct { // Alt Unconfirmed. Altitude in meters if known. Alt *int `json:"alt,omitempty"` // Lat GPS Latitude in degrees Lat float32 `json:"lat"` // Lon GPS Longitude in degrees Lon float32 `json:"lon"` // Type Unknown. Type *int `json:"type,omitempty"` } `json:"coord"` // Head Compass heading in degrees. Head *int `json:"head,omitempty"` Speed *struct { // Unit The distance unit per hour. 1 == miles. Unit int `json:"unit"` // Value The speed value. Value int `json:"value"` } `json:"speed,omitempty"` // Time Timestamp of the location capture. Time string `json:"time"` }
VehicleLocationGps A GPS location capture. This could be the current state or the last known state.
type VehicleStatus ¶
type VehicleStatus = map[string]interface{}
VehicleStatus defines model for VehicleStatus.
type VehicleTripInfoResponse ¶
type VehicleTripInfoResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg map[string]interface{} `json:"resMsg"` RetCode string `json:"retCode"` }
VehicleTripInfoResponse defines model for VehicleTripInfoResponse.
type VehiclesListResponse ¶
type VehiclesListResponse struct { MsgId string `json:"msgId"` ResCode string `json:"resCode"` ResMsg struct { // Vehicles The list of vehicles accessible on this account. Vehicles []VehiclesListResponseVehicle `json:"vehicles"` } `json:"resMsg"` RetCode string `json:"retCode"` }
VehiclesListResponse defines model for VehiclesListResponse.
type VehiclesListResponseVehicle ¶
type VehiclesListResponseVehicle struct { int `json:"carShare,omitempty"` // CcuCCS2ProtocolSupport Unknown. CcuCCS2ProtocolSupport *int `json:"ccuCCS2ProtocolSupport,omitempty"` DetailInfo *struct { // BodyType Unknown. BodyType *string `json:"bodyType,omitempty"` // InColor Interior color code of the vehicle. InColor *string `json:"inColor,omitempty"` // OutColor Exterior color code of the vehicle. OutColor *string `json:"outColor,omitempty"` // SaleCarmdlCd Unknown. SaleCarmdlCd *string `json:"saleCarmdlCd,omitempty"` // SaleCarmdlEnNm Unconfirmed. A model name. SaleCarmdlEnNm *string `json:"saleCarmdlEnNm,omitempty"` } `json:"detailInfo,omitempty"` // Master Unconfirmed, presumably indicates whether this account is the 'master' account. Master *bool `json:"master,omitempty"` // Nickname A nickname assigned to the vehicle in the account. Nickname string `json:"nickname"` // ProtocolType Unknown. ProtocolType *int `json:"protocolType,omitempty"` // RegDate Date the vehicle was registered with Hyundai/Bluelink. RegDate *string `json:"regDate,omitempty"` // TmuNum Unknown. TmuNum *string `json:"tmuNum,omitempty"` // Type The vehicle type. EV, GN, PHEV, HV. Type string `json:"type"` // VehicleId The UUID of the vehicle. VehicleId openapi_types.UUID `json:"vehicleId"` // VehicleName The model of the vehicle. VehicleName string `json:"vehicleName"` // Vin The VIN number of the vehicle. Vin string `json:"vin"` // Year The model year of the vehicle. Year string `json:"year"` }CarShare *
VehiclesListResponseVehicle defines model for VehiclesListResponseVehicle.