rest

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package rest provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Package rest provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Package rest provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Index

Constants

View Source
const (
	BasicAuthScopes = "BasicAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetOpenAPIFile

func GetOpenAPIFile() ([]byte, error)

func GetSwagger

func GetSwagger() (swagger *openapi3.Swagger, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewAddDataToTimeseriesRequest

func NewAddDataToTimeseriesRequest(server string, uuid UuidParam, params *AddDataToTimeseriesParams, body AddDataToTimeseriesJSONRequestBody) (*http.Request, error)

NewAddDataToTimeseriesRequest calls the generic AddDataToTimeseries builder with application/json body

func NewAddDataToTimeseriesRequestWithBody

func NewAddDataToTimeseriesRequestWithBody(server string, uuid UuidParam, params *AddDataToTimeseriesParams, contentType string, body io.Reader) (*http.Request, error)

NewAddDataToTimeseriesRequestWithBody generates requests for AddDataToTimeseries with any type of body

func NewAddDatasetsRequest

func NewAddDatasetsRequest(server string, body AddDatasetsJSONRequestBody) (*http.Request, error)

NewAddDatasetsRequest calls the generic AddDatasets builder with application/json body

func NewAddDatasetsRequestWithBody

func NewAddDatasetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddDatasetsRequestWithBody generates requests for AddDatasets with any type of body

func NewAddGroupRequest

func NewAddGroupRequest(server string, body AddGroupJSONRequestBody) (*http.Request, error)

NewAddGroupRequest calls the generic AddGroup builder with application/json body

func NewAddGroupRequestWithBody

func NewAddGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddGroupRequestWithBody generates requests for AddGroup with any type of body

func NewAddNewTokenToUserRequest

func NewAddNewTokenToUserRequest(server string, uuid UuidParam, body AddNewTokenToUserJSONRequestBody) (*http.Request, error)

NewAddNewTokenToUserRequest calls the generic AddNewTokenToUser builder with application/json body

func NewAddNewTokenToUserRequestWithBody

func NewAddNewTokenToUserRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewAddNewTokenToUserRequestWithBody generates requests for AddNewTokenToUser with any type of body

func NewAddPolicyRequest

func NewAddPolicyRequest(server string, body AddPolicyJSONRequestBody) (*http.Request, error)

NewAddPolicyRequest calls the generic AddPolicy builder with application/json body

func NewAddPolicyRequestWithBody

func NewAddPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddPolicyRequestWithBody generates requests for AddPolicy with any type of body

func NewAddProgramCodeRevisionRequestWithBody

func NewAddProgramCodeRevisionRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewAddProgramCodeRevisionRequestWithBody generates requests for AddProgramCodeRevision with any type of body

func NewAddProgramRequest

func NewAddProgramRequest(server string, body AddProgramJSONRequestBody) (*http.Request, error)

NewAddProgramRequest calls the generic AddProgram builder with application/json body

func NewAddProgramRequestWithBody

func NewAddProgramRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddProgramRequestWithBody generates requests for AddProgram with any type of body

func NewAddThingRequest

func NewAddThingRequest(server string, body AddThingJSONRequestBody) (*http.Request, error)

NewAddThingRequest calls the generic AddThing builder with application/json body

func NewAddThingRequestWithBody

func NewAddThingRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddThingRequestWithBody generates requests for AddThing with any type of body

func NewAddTimeSeriesRequest

func NewAddTimeSeriesRequest(server string, body AddTimeSeriesJSONRequestBody) (*http.Request, error)

NewAddTimeSeriesRequest calls the generic AddTimeSeries builder with application/json body

func NewAddTimeSeriesRequestWithBody

func NewAddTimeSeriesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddTimeSeriesRequestWithBody generates requests for AddTimeSeries with any type of body

func NewAddUserRequest

func NewAddUserRequest(server string, body AddUserJSONRequestBody) (*http.Request, error)

NewAddUserRequest calls the generic AddUser builder with application/json body

func NewAddUserRequestWithBody

func NewAddUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddUserRequestWithBody generates requests for AddUser with any type of body

func NewAssembleDatasetPartsByKeyRequest

func NewAssembleDatasetPartsByKeyRequest(server string, uuid UuidParam, params *AssembleDatasetPartsByKeyParams) (*http.Request, error)

NewAssembleDatasetPartsByKeyRequest generates requests for AssembleDatasetPartsByKey

func NewCreateAlertRequest added in v0.1.2

func NewCreateAlertRequest(server string, body CreateAlertJSONRequestBody) (*http.Request, error)

NewCreateAlertRequest calls the generic CreateAlert builder with application/json body

func NewCreateAlertRequestWithBody added in v0.1.2

func NewCreateAlertRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateAlertRequestWithBody generates requests for CreateAlert with any type of body

func NewDeleteAlertByUuidRequest added in v0.1.2

func NewDeleteAlertByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeleteAlertByUuidRequest generates requests for DeleteAlertByUuid

func NewDeleteDataFromTimeSeriesRequest

func NewDeleteDataFromTimeSeriesRequest(server string, uuid UuidParam, params *DeleteDataFromTimeSeriesParams) (*http.Request, error)

NewDeleteDataFromTimeSeriesRequest generates requests for DeleteDataFromTimeSeries

func NewDeleteDatasetByUuidRequest

func NewDeleteDatasetByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeleteDatasetByUuidRequest generates requests for DeleteDatasetByUuid

func NewDeleteDatasetUploadByKeyRequest

func NewDeleteDatasetUploadByKeyRequest(server string, uuid UuidParam, params *DeleteDatasetUploadByKeyParams) (*http.Request, error)

NewDeleteDatasetUploadByKeyRequest generates requests for DeleteDatasetUploadByKey

func NewDeleteGroupByUuidRequest

func NewDeleteGroupByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeleteGroupByUuidRequest generates requests for DeleteGroupByUuid

func NewDeletePolicyByUuidRequest

func NewDeletePolicyByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeletePolicyByUuidRequest generates requests for DeletePolicyByUuid

func NewDeleteProgramByUuidRequest

func NewDeleteProgramByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeleteProgramByUuidRequest generates requests for DeleteProgramByUuid

func NewDeleteProgramCodeRevisionsRequest

func NewDeleteProgramCodeRevisionsRequest(server string, uuid UuidParam, revisionId int) (*http.Request, error)

NewDeleteProgramCodeRevisionsRequest generates requests for DeleteProgramCodeRevisions

func NewDeleteThingByUuidRequest

func NewDeleteThingByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeleteThingByUuidRequest generates requests for DeleteThingByUuid

func NewDeleteTimeSeriesByUuidRequest

func NewDeleteTimeSeriesByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeleteTimeSeriesByUuidRequest generates requests for DeleteTimeSeriesByUuid

func NewDeleteTokenForUserRequest

func NewDeleteTokenForUserRequest(server string, uuid UuidParam, tokenUuid string) (*http.Request, error)

NewDeleteTokenForUserRequest generates requests for DeleteTokenForUser

func NewDeleteUserByUuidRequest

func NewDeleteUserByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewDeleteUserByUuidRequest generates requests for DeleteUserByUuid

func NewExecuteProgramWebhookRequest

func NewExecuteProgramWebhookRequest(server string, uuid UuidParam) (*http.Request, error)

NewExecuteProgramWebhookRequest generates requests for ExecuteProgramWebhook

func NewFindAlertByUuidRequest added in v0.1.2

func NewFindAlertByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindAlertByUuidRequest generates requests for FindAlertByUuid

func NewFindAlertsRequest

func NewFindAlertsRequest(server string, params *FindAlertsParams) (*http.Request, error)

NewFindAlertsRequest generates requests for FindAlerts

func NewFindDatasetByUuidRequest

func NewFindDatasetByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindDatasetByUuidRequest generates requests for FindDatasetByUuid

func NewFindDatasetsForThingRequest

func NewFindDatasetsForThingRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindDatasetsForThingRequest generates requests for FindDatasetsForThing

func NewFindDatasetsRequest

func NewFindDatasetsRequest(server string, params *FindDatasetsParams) (*http.Request, error)

NewFindDatasetsRequest generates requests for FindDatasets

func NewFindGroupByUuidRequest

func NewFindGroupByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindGroupByUuidRequest generates requests for FindGroupByUuid

func NewFindGroupsRequest

func NewFindGroupsRequest(server string, params *FindGroupsParams) (*http.Request, error)

NewFindGroupsRequest generates requests for FindGroups

func NewFindPoliciesForGroupRequest

func NewFindPoliciesForGroupRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindPoliciesForGroupRequest generates requests for FindPoliciesForGroup

func NewFindPoliciesForUserRequest

func NewFindPoliciesForUserRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindPoliciesForUserRequest generates requests for FindPoliciesForUser

func NewFindPoliciesRequest

func NewFindPoliciesRequest(server string, params *FindPoliciesParams) (*http.Request, error)

NewFindPoliciesRequest generates requests for FindPolicies

func NewFindPolicyByUuidRequest

func NewFindPolicyByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindPolicyByUuidRequest generates requests for FindPolicyByUuid

func NewFindProgramByUuidRequest

func NewFindProgramByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindProgramByUuidRequest generates requests for FindProgramByUuid

func NewFindProgramsRequest

func NewFindProgramsRequest(server string, params *FindProgramsParams) (*http.Request, error)

NewFindProgramsRequest generates requests for FindPrograms

func NewFindThingByUuidRequest

func NewFindThingByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindThingByUuidRequest generates requests for FindThingByUuid

func NewFindThingsRequest

func NewFindThingsRequest(server string, params *FindThingsParams) (*http.Request, error)

NewFindThingsRequest generates requests for FindThings

func NewFindTimeSeriesByUuidRequest

func NewFindTimeSeriesByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindTimeSeriesByUuidRequest generates requests for FindTimeSeriesByUuid

func NewFindTimeSeriesForThingRequest

func NewFindTimeSeriesForThingRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindTimeSeriesForThingRequest generates requests for FindTimeSeriesForThing

func NewFindTimeSeriesRequest

func NewFindTimeSeriesRequest(server string, params *FindTimeSeriesParams) (*http.Request, error)

NewFindTimeSeriesRequest generates requests for FindTimeSeries

func NewFindTokensForUserRequest

func NewFindTokensForUserRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindTokensForUserRequest generates requests for FindTokensForUser

func NewFindTsdataByQueryRequest

func NewFindTsdataByQueryRequest(server string, params *FindTsdataByQueryParams) (*http.Request, error)

NewFindTsdataByQueryRequest generates requests for FindTsdataByQuery

func NewFindUserByUuidRequest

func NewFindUserByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewFindUserByUuidRequest generates requests for FindUserByUuid

func NewFindUsersRequest

func NewFindUsersRequest(server string, params *FindUsersParams) (*http.Request, error)

NewFindUsersRequest generates requests for FindUsers

func NewGetCodeFromProgramRequest

func NewGetCodeFromProgramRequest(server string, uuid UuidParam) (*http.Request, error)

NewGetCodeFromProgramRequest generates requests for GetCodeFromProgram

func NewGetProgramCodeRevisionsDiffRequest

func NewGetProgramCodeRevisionsDiffRequest(server string, uuid UuidParam, params *GetProgramCodeRevisionsDiffParams) (*http.Request, error)

NewGetProgramCodeRevisionsDiffRequest generates requests for GetProgramCodeRevisionsDiff

func NewGetProgramCodeRevisionsRequest

func NewGetProgramCodeRevisionsRequest(server string, uuid UuidParam) (*http.Request, error)

NewGetProgramCodeRevisionsRequest generates requests for GetProgramCodeRevisions

func NewGetRawDatasetByUuidRequest

func NewGetRawDatasetByUuidRequest(server string, uuid UuidParam, params *GetRawDatasetByUuidParams) (*http.Request, error)

NewGetRawDatasetByUuidRequest generates requests for GetRawDatasetByUuid

func NewInitializeDatasetUploadByUuidRequest

func NewInitializeDatasetUploadByUuidRequest(server string, uuid UuidParam) (*http.Request, error)

NewInitializeDatasetUploadByUuidRequest generates requests for InitializeDatasetUploadByUuid

func NewListDatasetPartsByKeyRequest

func NewListDatasetPartsByKeyRequest(server string, uuid UuidParam, params *ListDatasetPartsByKeyParams) (*http.Request, error)

NewListDatasetPartsByKeyRequest generates requests for ListDatasetPartsByKey

func NewQueryTimeseriesForDataRequest

func NewQueryTimeseriesForDataRequest(server string, uuid UuidParam, params *QueryTimeseriesForDataParams) (*http.Request, error)

NewQueryTimeseriesForDataRequest generates requests for QueryTimeseriesForData

func NewSetRequestRateForUserRequest

func NewSetRequestRateForUserRequest(server string, uuid UuidParam, body SetRequestRateForUserJSONRequestBody) (*http.Request, error)

NewSetRequestRateForUserRequest calls the generic SetRequestRateForUser builder with application/json body

func NewSetRequestRateForUserRequestWithBody

func NewSetRequestRateForUserRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewSetRequestRateForUserRequestWithBody generates requests for SetRequestRateForUser with any type of body

func NewSignProgramCodeRevisionsRequest

func NewSignProgramCodeRevisionsRequest(server string, uuid UuidParam, revisionId int) (*http.Request, error)

NewSignProgramCodeRevisionsRequest generates requests for SignProgramCodeRevisions

func NewUpdateAlertByUuidRequest added in v0.1.2

func NewUpdateAlertByUuidRequest(server string, uuid UuidParam, body UpdateAlertByUuidJSONRequestBody) (*http.Request, error)

NewUpdateAlertByUuidRequest calls the generic UpdateAlertByUuid builder with application/json body

func NewUpdateAlertByUuidRequestWithBody added in v0.1.2

func NewUpdateAlertByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateAlertByUuidRequestWithBody generates requests for UpdateAlertByUuid with any type of body

func NewUpdateDatasetByUuidRequest

func NewUpdateDatasetByUuidRequest(server string, uuid UuidParam, body UpdateDatasetByUuidJSONRequestBody) (*http.Request, error)

NewUpdateDatasetByUuidRequest calls the generic UpdateDatasetByUuid builder with application/json body

func NewUpdateDatasetByUuidRequestWithBody

func NewUpdateDatasetByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateDatasetByUuidRequestWithBody generates requests for UpdateDatasetByUuid with any type of body

func NewUpdateGroupByUuidRequest

func NewUpdateGroupByUuidRequest(server string, uuid UuidParam, body UpdateGroupByUuidJSONRequestBody) (*http.Request, error)

NewUpdateGroupByUuidRequest calls the generic UpdateGroupByUuid builder with application/json body

func NewUpdateGroupByUuidRequestWithBody

func NewUpdateGroupByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateGroupByUuidRequestWithBody generates requests for UpdateGroupByUuid with any type of body

func NewUpdatePolicyByUuidRequest

func NewUpdatePolicyByUuidRequest(server string, uuid UuidParam, body UpdatePolicyByUuidJSONRequestBody) (*http.Request, error)

NewUpdatePolicyByUuidRequest calls the generic UpdatePolicyByUuid builder with application/json body

func NewUpdatePolicyByUuidRequestWithBody

func NewUpdatePolicyByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePolicyByUuidRequestWithBody generates requests for UpdatePolicyByUuid with any type of body

func NewUpdateProgramByUuidRequest

func NewUpdateProgramByUuidRequest(server string, uuid UuidParam, body UpdateProgramByUuidJSONRequestBody) (*http.Request, error)

NewUpdateProgramByUuidRequest calls the generic UpdateProgramByUuid builder with application/json body

func NewUpdateProgramByUuidRequestWithBody

func NewUpdateProgramByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProgramByUuidRequestWithBody generates requests for UpdateProgramByUuid with any type of body

func NewUpdateThingByUuidRequest

func NewUpdateThingByUuidRequest(server string, uuid UuidParam, body UpdateThingByUuidJSONRequestBody) (*http.Request, error)

NewUpdateThingByUuidRequest calls the generic UpdateThingByUuid builder with application/json body

func NewUpdateThingByUuidRequestWithBody

func NewUpdateThingByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateThingByUuidRequestWithBody generates requests for UpdateThingByUuid with any type of body

func NewUpdateTimeseriesByUuidRequest

func NewUpdateTimeseriesByUuidRequest(server string, uuid UuidParam, body UpdateTimeseriesByUuidJSONRequestBody) (*http.Request, error)

NewUpdateTimeseriesByUuidRequest calls the generic UpdateTimeseriesByUuid builder with application/json body

func NewUpdateTimeseriesByUuidRequestWithBody

func NewUpdateTimeseriesByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTimeseriesByUuidRequestWithBody generates requests for UpdateTimeseriesByUuid with any type of body

func NewUpdateUserByUuidRequest

func NewUpdateUserByUuidRequest(server string, uuid UuidParam, body UpdateUserByUuidJSONRequestBody) (*http.Request, error)

NewUpdateUserByUuidRequest calls the generic UpdateUserByUuid builder with application/json body

func NewUpdateUserByUuidRequestWithBody

func NewUpdateUserByUuidRequestWithBody(server string, uuid UuidParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserByUuidRequestWithBody generates requests for UpdateUserByUuid with any type of body

func NewUploadDatasetContentByKeyRequest

func NewUploadDatasetContentByKeyRequest(server string, uuid UuidParam, params *UploadDatasetContentByKeyParams) (*http.Request, error)

NewUploadDatasetContentByKeyRequest generates requests for UploadDatasetContentByKey

func NewWhoamiRequest

func NewWhoamiRequest(server string) (*http.Request, error)

NewWhoamiRequest generates requests for Whoami

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type AddDataToTimeseriesJSONRequestBody

type AddDataToTimeseriesJSONRequestBody NewTsData

AddDataToTimeseriesJSONRequestBody defines body for AddDataToTimeseries for application/json ContentType.

type AddDataToTimeseriesParams

type AddDataToTimeseriesParams struct {

	// The SI unit of the result. A cast will occur if the base unit differes.
	Unit *SiUnitParam `json:"unit,omitempty"`
}

AddDataToTimeseriesParams defines parameters for AddDataToTimeseries.

type AddDataToTimeseriesResponse

type AddDataToTimeseriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseAddDataToTimeseriesResponse

func ParseAddDataToTimeseriesResponse(rsp *http.Response) (*AddDataToTimeseriesResponse, error)

ParseAddDataToTimeseriesResponse parses an HTTP response from a AddDataToTimeseriesWithResponse call

func (AddDataToTimeseriesResponse) Status

Status returns HTTPResponse.Status

func (AddDataToTimeseriesResponse) StatusCode

func (r AddDataToTimeseriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddDatasetsJSONBodyFormat

type AddDatasetsJSONBodyFormat string

AddDatasetsJSONBodyFormat defines parameters for AddDatasets.

type AddDatasetsJSONRequestBody

type AddDatasetsJSONRequestBody NewDataset

AddDatasetsJSONRequestBody defines body for AddDatasets for application/json ContentType.

type AddDatasetsResponse

type AddDatasetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Dataset
}

func ParseAddDatasetsResponse

func ParseAddDatasetsResponse(rsp *http.Response) (*AddDatasetsResponse, error)

ParseAddDatasetsResponse parses an HTTP response from a AddDatasetsWithResponse call

func (AddDatasetsResponse) Status

func (r AddDatasetsResponse) Status() string

Status returns HTTPResponse.Status

func (AddDatasetsResponse) StatusCode

func (r AddDatasetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddGroupJSONRequestBody

type AddGroupJSONRequestBody NewGroup

AddGroupJSONRequestBody defines body for AddGroup for application/json ContentType.

type AddGroupResponse

type AddGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Group
}

func ParseAddGroupResponse

func ParseAddGroupResponse(rsp *http.Response) (*AddGroupResponse, error)

ParseAddGroupResponse parses an HTTP response from a AddGroupWithResponse call

func (AddGroupResponse) Status

func (r AddGroupResponse) Status() string

Status returns HTTPResponse.Status

func (AddGroupResponse) StatusCode

func (r AddGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddNewTokenToUserJSONRequestBody

type AddNewTokenToUserJSONRequestBody NewToken

AddNewTokenToUserJSONRequestBody defines body for AddNewTokenToUser for application/json ContentType.

type AddNewTokenToUserResponse

type AddNewTokenToUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *TokenWithSecret
}

func ParseAddNewTokenToUserResponse

func ParseAddNewTokenToUserResponse(rsp *http.Response) (*AddNewTokenToUserResponse, error)

ParseAddNewTokenToUserResponse parses an HTTP response from a AddNewTokenToUserWithResponse call

func (AddNewTokenToUserResponse) Status

func (r AddNewTokenToUserResponse) Status() string

Status returns HTTPResponse.Status

func (AddNewTokenToUserResponse) StatusCode

func (r AddNewTokenToUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddPolicyJSONBodyAction

type AddPolicyJSONBodyAction string

AddPolicyJSONBodyAction defines parameters for AddPolicy.

type AddPolicyJSONBodyEffect

type AddPolicyJSONBodyEffect string

AddPolicyJSONBodyEffect defines parameters for AddPolicy.

type AddPolicyJSONRequestBody

type AddPolicyJSONRequestBody NewPolicy

AddPolicyJSONRequestBody defines body for AddPolicy for application/json ContentType.

type AddPolicyResponse

type AddPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Policy
}

func ParseAddPolicyResponse

func ParseAddPolicyResponse(rsp *http.Response) (*AddPolicyResponse, error)

ParseAddPolicyResponse parses an HTTP response from a AddPolicyWithResponse call

func (AddPolicyResponse) Status

func (r AddPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (AddPolicyResponse) StatusCode

func (r AddPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddProgramCodeRevisionResponse

type AddProgramCodeRevisionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CodeRevision
}

func ParseAddProgramCodeRevisionResponse

func ParseAddProgramCodeRevisionResponse(rsp *http.Response) (*AddProgramCodeRevisionResponse, error)

ParseAddProgramCodeRevisionResponse parses an HTTP response from a AddProgramCodeRevisionWithResponse call

func (AddProgramCodeRevisionResponse) Status

Status returns HTTPResponse.Status

func (AddProgramCodeRevisionResponse) StatusCode

func (r AddProgramCodeRevisionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddProgramJSONBodyLanguage

type AddProgramJSONBodyLanguage string

AddProgramJSONBodyLanguage defines parameters for AddProgram.

type AddProgramJSONBodyState

type AddProgramJSONBodyState string

AddProgramJSONBodyState defines parameters for AddProgram.

type AddProgramJSONBodyType

type AddProgramJSONBodyType string

AddProgramJSONBodyType defines parameters for AddProgram.

type AddProgramJSONRequestBody

type AddProgramJSONRequestBody NewProgram

AddProgramJSONRequestBody defines body for AddProgram for application/json ContentType.

type AddProgramResponse

type AddProgramResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Program
}

func ParseAddProgramResponse

func ParseAddProgramResponse(rsp *http.Response) (*AddProgramResponse, error)

ParseAddProgramResponse parses an HTTP response from a AddProgramWithResponse call

func (AddProgramResponse) Status

func (r AddProgramResponse) Status() string

Status returns HTTPResponse.Status

func (AddProgramResponse) StatusCode

func (r AddProgramResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddThingJSONRequestBody

type AddThingJSONRequestBody NewThing

AddThingJSONRequestBody defines body for AddThing for application/json ContentType.

type AddThingResponse

type AddThingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Thing
}

func ParseAddThingResponse

func ParseAddThingResponse(rsp *http.Response) (*AddThingResponse, error)

ParseAddThingResponse parses an HTTP response from a AddThingWithResponse call

func (AddThingResponse) Status

func (r AddThingResponse) Status() string

Status returns HTTPResponse.Status

func (AddThingResponse) StatusCode

func (r AddThingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddTimeSeriesJSONRequestBody

type AddTimeSeriesJSONRequestBody NewTimeseries

AddTimeSeriesJSONRequestBody defines body for AddTimeSeries for application/json ContentType.

type AddTimeSeriesResponse

type AddTimeSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Timeseries
}

func ParseAddTimeSeriesResponse

func ParseAddTimeSeriesResponse(rsp *http.Response) (*AddTimeSeriesResponse, error)

ParseAddTimeSeriesResponse parses an HTTP response from a AddTimeSeriesWithResponse call

func (AddTimeSeriesResponse) Status

func (r AddTimeSeriesResponse) Status() string

Status returns HTTPResponse.Status

func (AddTimeSeriesResponse) StatusCode

func (r AddTimeSeriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddUserJSONRequestBody

type AddUserJSONRequestBody NewUser

AddUserJSONRequestBody defines body for AddUser for application/json ContentType.

type AddUserResponse

type AddUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *User
}

func ParseAddUserResponse

func ParseAddUserResponse(rsp *http.Response) (*AddUserResponse, error)

ParseAddUserResponse parses an HTTP response from a AddUserWithResponse call

func (AddUserResponse) Status

func (r AddUserResponse) Status() string

Status returns HTTPResponse.Status

func (AddUserResponse) StatusCode

func (r AddUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AggregateParam added in v0.1.1

type AggregateParam string

AggregateParam defines model for aggregateParam.

const (
	Avg AggregateParam = "avg"

	Count AggregateParam = "count"

	Max AggregateParam = "max"

	Min AggregateParam = "min"

	Sum AggregateParam = "sum"
)

Defines values for AggregateParam.

type Alert

type Alert struct {
	Created          time.Time     `json:"created"`
	Description      string        `json:"description"`
	Duplicate        int32         `json:"duplicate"`
	Environment      string        `json:"environment"`
	Event            string        `json:"event"`
	LastReceiveTime  *time.Time    `json:"last_receive_time"`
	Origin           string        `json:"origin"`
	PreviousSeverity AlertSeverity `json:"previous_severity"`
	Rawdata          []byte        `json:"rawdata"`
	Resource         string        `json:"resource"`
	Service          []string      `json:"service"`
	Severity         AlertSeverity `json:"severity"`
	Status           AlertStatus   `json:"status"`
	Tags             []string      `json:"tags"`
	Timeout          int32         `json:"timeout"`
	Uuid             string        `json:"uuid"`
	Value            string        `json:"value"`
}

Alert defines model for Alert.

type AlertSeverity added in v0.1.2

type AlertSeverity string

AlertSeverity defines model for AlertSeverity.

const (
	AlertSeverityCritical AlertSeverity = "critical"

	AlertSeverityDebug AlertSeverity = "debug"

	AlertSeverityIndeterminate AlertSeverity = "indeterminate"

	AlertSeverityInformational AlertSeverity = "informational"

	AlertSeverityMajor AlertSeverity = "major"

	AlertSeverityMinor AlertSeverity = "minor"

	AlertSeveritySecurity AlertSeverity = "security"

	AlertSeverityTrace AlertSeverity = "trace"

	AlertSeverityWarning AlertSeverity = "warning"
)

Defines values for AlertSeverity.

type AlertStatus added in v0.1.2

type AlertStatus string

AlertStatus defines model for AlertStatus.

const (
	AlertStatusAcknowledge AlertStatus = "acknowledge"

	AlertStatusClose AlertStatus = "close"

	AlertStatusExpire AlertStatus = "expire"

	AlertStatusOpen AlertStatus = "open"

	AlertStatusShelve AlertStatus = "shelve"

	AlertStatusUnknown AlertStatus = "unknown"
)

Defines values for AlertStatus.

type AssembleDatasetPartsByKeyParams

type AssembleDatasetPartsByKeyParams struct {
	PartNumber int    `json:"partNumber"`
	UploadId   string `json:"uploadId"`
	ContentMD5 string `json:"Content-MD5"`
}

AssembleDatasetPartsByKeyParams defines parameters for AssembleDatasetPartsByKey.

type AssembleDatasetPartsByKeyResponse

type AssembleDatasetPartsByKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Message string `json:"message"`
	}
}

func ParseAssembleDatasetPartsByKeyResponse

func ParseAssembleDatasetPartsByKeyResponse(rsp *http.Response) (*AssembleDatasetPartsByKeyResponse, error)

ParseAssembleDatasetPartsByKeyResponse parses an HTTP response from a AssembleDatasetPartsByKeyWithResponse call

func (AssembleDatasetPartsByKeyResponse) Status

Status returns HTTPResponse.Status

func (AssembleDatasetPartsByKeyResponse) StatusCode

func (r AssembleDatasetPartsByKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL     string
	BaseRouter  chi.Router
	Middlewares []MiddlewareFunc
}

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) AddDataToTimeseries

func (c *Client) AddDataToTimeseries(ctx context.Context, uuid UuidParam, params *AddDataToTimeseriesParams, body AddDataToTimeseriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddDataToTimeseriesWithBody

func (c *Client) AddDataToTimeseriesWithBody(ctx context.Context, uuid UuidParam, params *AddDataToTimeseriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddDatasets

func (c *Client) AddDatasets(ctx context.Context, body AddDatasetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddDatasetsWithBody

func (c *Client) AddDatasetsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddGroup

func (c *Client) AddGroup(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddGroupWithBody

func (c *Client) AddGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddNewTokenToUser

func (c *Client) AddNewTokenToUser(ctx context.Context, uuid UuidParam, body AddNewTokenToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddNewTokenToUserWithBody

func (c *Client) AddNewTokenToUserWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddPolicy

func (c *Client) AddPolicy(ctx context.Context, body AddPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddPolicyWithBody

func (c *Client) AddPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddProgram

func (c *Client) AddProgram(ctx context.Context, body AddProgramJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddProgramCodeRevisionWithBody

func (c *Client) AddProgramCodeRevisionWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddProgramWithBody

func (c *Client) AddProgramWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddThing

func (c *Client) AddThing(ctx context.Context, body AddThingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddThingWithBody

func (c *Client) AddThingWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddTimeSeries

func (c *Client) AddTimeSeries(ctx context.Context, body AddTimeSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddTimeSeriesWithBody

func (c *Client) AddTimeSeriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddUser

func (c *Client) AddUser(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddUserWithBody

func (c *Client) AddUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssembleDatasetPartsByKey

func (c *Client) AssembleDatasetPartsByKey(ctx context.Context, uuid UuidParam, params *AssembleDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAlert added in v0.1.2

func (c *Client) CreateAlert(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAlertWithBody added in v0.1.2

func (c *Client) CreateAlertWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAlertByUuid added in v0.1.2

func (c *Client) DeleteAlertByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteDataFromTimeSeries

func (c *Client) DeleteDataFromTimeSeries(ctx context.Context, uuid UuidParam, params *DeleteDataFromTimeSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteDatasetByUuid

func (c *Client) DeleteDatasetByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteDatasetUploadByKey

func (c *Client) DeleteDatasetUploadByKey(ctx context.Context, uuid UuidParam, params *DeleteDatasetUploadByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteGroupByUuid

func (c *Client) DeleteGroupByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeletePolicyByUuid

func (c *Client) DeletePolicyByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteProgramByUuid

func (c *Client) DeleteProgramByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteProgramCodeRevisions

func (c *Client) DeleteProgramCodeRevisions(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteThingByUuid

func (c *Client) DeleteThingByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteTimeSeriesByUuid

func (c *Client) DeleteTimeSeriesByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteTokenForUser

func (c *Client) DeleteTokenForUser(ctx context.Context, uuid UuidParam, tokenUuid string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteUserByUuid

func (c *Client) DeleteUserByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExecuteProgramWebhook

func (c *Client) ExecuteProgramWebhook(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindAlertByUuid added in v0.1.2

func (c *Client) FindAlertByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindAlerts

func (c *Client) FindAlerts(ctx context.Context, params *FindAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindDatasetByUuid

func (c *Client) FindDatasetByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindDatasets

func (c *Client) FindDatasets(ctx context.Context, params *FindDatasetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindDatasetsForThing

func (c *Client) FindDatasetsForThing(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindGroupByUuid

func (c *Client) FindGroupByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindGroups

func (c *Client) FindGroups(ctx context.Context, params *FindGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindPolicies

func (c *Client) FindPolicies(ctx context.Context, params *FindPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindPoliciesForGroup

func (c *Client) FindPoliciesForGroup(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindPoliciesForUser

func (c *Client) FindPoliciesForUser(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindPolicyByUuid

func (c *Client) FindPolicyByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindProgramByUuid

func (c *Client) FindProgramByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindPrograms

func (c *Client) FindPrograms(ctx context.Context, params *FindProgramsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindThingByUuid

func (c *Client) FindThingByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindThings

func (c *Client) FindThings(ctx context.Context, params *FindThingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindTimeSeries

func (c *Client) FindTimeSeries(ctx context.Context, params *FindTimeSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindTimeSeriesByUuid

func (c *Client) FindTimeSeriesByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindTimeSeriesForThing

func (c *Client) FindTimeSeriesForThing(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindTokensForUser

func (c *Client) FindTokensForUser(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindTsdataByQuery

func (c *Client) FindTsdataByQuery(ctx context.Context, params *FindTsdataByQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindUserByUuid

func (c *Client) FindUserByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindUsers

func (c *Client) FindUsers(ctx context.Context, params *FindUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCodeFromProgram

func (c *Client) GetCodeFromProgram(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProgramCodeRevisions

func (c *Client) GetProgramCodeRevisions(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProgramCodeRevisionsDiff

func (c *Client) GetProgramCodeRevisionsDiff(ctx context.Context, uuid UuidParam, params *GetProgramCodeRevisionsDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRawDatasetByUuid

func (c *Client) GetRawDatasetByUuid(ctx context.Context, uuid UuidParam, params *GetRawDatasetByUuidParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InitializeDatasetUploadByUuid

func (c *Client) InitializeDatasetUploadByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListDatasetPartsByKey

func (c *Client) ListDatasetPartsByKey(ctx context.Context, uuid UuidParam, params *ListDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QueryTimeseriesForData

func (c *Client) QueryTimeseriesForData(ctx context.Context, uuid UuidParam, params *QueryTimeseriesForDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetRequestRateForUser

func (c *Client) SetRequestRateForUser(ctx context.Context, uuid UuidParam, body SetRequestRateForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetRequestRateForUserWithBody

func (c *Client) SetRequestRateForUserWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SignProgramCodeRevisions

func (c *Client) SignProgramCodeRevisions(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAlertByUuid added in v0.1.2

func (c *Client) UpdateAlertByUuid(ctx context.Context, uuid UuidParam, body UpdateAlertByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAlertByUuidWithBody added in v0.1.2

func (c *Client) UpdateAlertByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateDatasetByUuid

func (c *Client) UpdateDatasetByUuid(ctx context.Context, uuid UuidParam, body UpdateDatasetByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateDatasetByUuidWithBody

func (c *Client) UpdateDatasetByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateGroupByUuid

func (c *Client) UpdateGroupByUuid(ctx context.Context, uuid UuidParam, body UpdateGroupByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateGroupByUuidWithBody

func (c *Client) UpdateGroupByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePolicyByUuid

func (c *Client) UpdatePolicyByUuid(ctx context.Context, uuid UuidParam, body UpdatePolicyByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePolicyByUuidWithBody

func (c *Client) UpdatePolicyByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProgramByUuid

func (c *Client) UpdateProgramByUuid(ctx context.Context, uuid UuidParam, body UpdateProgramByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProgramByUuidWithBody

func (c *Client) UpdateProgramByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateThingByUuid

func (c *Client) UpdateThingByUuid(ctx context.Context, uuid UuidParam, body UpdateThingByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateThingByUuidWithBody

func (c *Client) UpdateThingByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTimeseriesByUuid

func (c *Client) UpdateTimeseriesByUuid(ctx context.Context, uuid UuidParam, body UpdateTimeseriesByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTimeseriesByUuidWithBody

func (c *Client) UpdateTimeseriesByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserByUuid

func (c *Client) UpdateUserByUuid(ctx context.Context, uuid UuidParam, body UpdateUserByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserByUuidWithBody

func (c *Client) UpdateUserByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadDatasetContentByKey

func (c *Client) UploadDatasetContentByKey(ctx context.Context, uuid UuidParam, params *UploadDatasetContentByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Whoami

func (c *Client) Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// FindAlerts request
	FindAlerts(ctx context.Context, params *FindAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAlert request  with any body
	CreateAlertWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAlert(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAlertByUuid request
	DeleteAlertByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindAlertByUuid request
	FindAlertByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAlertByUuid request  with any body
	UpdateAlertByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateAlertByUuid(ctx context.Context, uuid UuidParam, body UpdateAlertByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindDatasets request
	FindDatasets(ctx context.Context, params *FindDatasetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddDatasets request  with any body
	AddDatasetsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddDatasets(ctx context.Context, body AddDatasetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDatasetByUuid request
	DeleteDatasetByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindDatasetByUuid request
	FindDatasetByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDatasetByUuid request  with any body
	UpdateDatasetByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateDatasetByUuid(ctx context.Context, uuid UuidParam, body UpdateDatasetByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssembleDatasetPartsByKey request
	AssembleDatasetPartsByKey(ctx context.Context, uuid UuidParam, params *AssembleDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDatasetPartsByKey request
	ListDatasetPartsByKey(ctx context.Context, uuid UuidParam, params *ListDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadDatasetContentByKey request
	UploadDatasetContentByKey(ctx context.Context, uuid UuidParam, params *UploadDatasetContentByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRawDatasetByUuid request
	GetRawDatasetByUuid(ctx context.Context, uuid UuidParam, params *GetRawDatasetByUuidParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDatasetUploadByKey request
	DeleteDatasetUploadByKey(ctx context.Context, uuid UuidParam, params *DeleteDatasetUploadByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InitializeDatasetUploadByUuid request
	InitializeDatasetUploadByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindGroups request
	FindGroups(ctx context.Context, params *FindGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddGroup request  with any body
	AddGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddGroup(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteGroupByUuid request
	DeleteGroupByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindGroupByUuid request
	FindGroupByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateGroupByUuid request  with any body
	UpdateGroupByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateGroupByUuid(ctx context.Context, uuid UuidParam, body UpdateGroupByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindPoliciesForGroup request
	FindPoliciesForGroup(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindPolicies request
	FindPolicies(ctx context.Context, params *FindPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddPolicy request  with any body
	AddPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddPolicy(ctx context.Context, body AddPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePolicyByUuid request
	DeletePolicyByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindPolicyByUuid request
	FindPolicyByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePolicyByUuid request  with any body
	UpdatePolicyByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePolicyByUuid(ctx context.Context, uuid UuidParam, body UpdatePolicyByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindPrograms request
	FindPrograms(ctx context.Context, params *FindProgramsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddProgram request  with any body
	AddProgramWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddProgram(ctx context.Context, body AddProgramJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProgramByUuid request
	DeleteProgramByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindProgramByUuid request
	FindProgramByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProgramByUuid request  with any body
	UpdateProgramByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateProgramByUuid(ctx context.Context, uuid UuidParam, body UpdateProgramByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCodeFromProgram request
	GetCodeFromProgram(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddProgramCodeRevision request  with any body
	AddProgramCodeRevisionWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProgramCodeRevisionsDiff request
	GetProgramCodeRevisionsDiff(ctx context.Context, uuid UuidParam, params *GetProgramCodeRevisionsDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProgramCodeRevisions request
	GetProgramCodeRevisions(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProgramCodeRevisions request
	DeleteProgramCodeRevisions(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SignProgramCodeRevisions request
	SignProgramCodeRevisions(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExecuteProgramWebhook request
	ExecuteProgramWebhook(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindThings request
	FindThings(ctx context.Context, params *FindThingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddThing request  with any body
	AddThingWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddThing(ctx context.Context, body AddThingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteThingByUuid request
	DeleteThingByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindThingByUuid request
	FindThingByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateThingByUuid request  with any body
	UpdateThingByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateThingByUuid(ctx context.Context, uuid UuidParam, body UpdateThingByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindDatasetsForThing request
	FindDatasetsForThing(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindTimeSeriesForThing request
	FindTimeSeriesForThing(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindTimeSeries request
	FindTimeSeries(ctx context.Context, params *FindTimeSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddTimeSeries request  with any body
	AddTimeSeriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddTimeSeries(ctx context.Context, body AddTimeSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTimeSeriesByUuid request
	DeleteTimeSeriesByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindTimeSeriesByUuid request
	FindTimeSeriesByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTimeseriesByUuid request  with any body
	UpdateTimeseriesByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateTimeseriesByUuid(ctx context.Context, uuid UuidParam, body UpdateTimeseriesByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDataFromTimeSeries request
	DeleteDataFromTimeSeries(ctx context.Context, uuid UuidParam, params *DeleteDataFromTimeSeriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryTimeseriesForData request
	QueryTimeseriesForData(ctx context.Context, uuid UuidParam, params *QueryTimeseriesForDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddDataToTimeseries request  with any body
	AddDataToTimeseriesWithBody(ctx context.Context, uuid UuidParam, params *AddDataToTimeseriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddDataToTimeseries(ctx context.Context, uuid UuidParam, params *AddDataToTimeseriesParams, body AddDataToTimeseriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindTsdataByQuery request
	FindTsdataByQuery(ctx context.Context, params *FindTsdataByQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindUsers request
	FindUsers(ctx context.Context, params *FindUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddUser request  with any body
	AddUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddUser(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Whoami request
	Whoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUserByUuid request
	DeleteUserByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindUserByUuid request
	FindUserByUuid(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserByUuid request  with any body
	UpdateUserByUuidWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateUserByUuid(ctx context.Context, uuid UuidParam, body UpdateUserByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindPoliciesForUser request
	FindPoliciesForUser(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetRequestRateForUser request  with any body
	SetRequestRateForUserWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetRequestRateForUser(ctx context.Context, uuid UuidParam, body SetRequestRateForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindTokensForUser request
	FindTokensForUser(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddNewTokenToUser request  with any body
	AddNewTokenToUserWithBody(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddNewTokenToUser(ctx context.Context, uuid UuidParam, body AddNewTokenToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTokenForUser request
	DeleteTokenForUser(ctx context.Context, uuid UuidParam, tokenUuid string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) AddDataToTimeseriesWithBodyWithResponse

func (c *ClientWithResponses) AddDataToTimeseriesWithBodyWithResponse(ctx context.Context, uuid UuidParam, params *AddDataToTimeseriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDataToTimeseriesResponse, error)

AddDataToTimeseriesWithBodyWithResponse request with arbitrary body returning *AddDataToTimeseriesResponse

func (*ClientWithResponses) AddDataToTimeseriesWithResponse

func (*ClientWithResponses) AddDatasetsWithBodyWithResponse

func (c *ClientWithResponses) AddDatasetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDatasetsResponse, error)

AddDatasetsWithBodyWithResponse request with arbitrary body returning *AddDatasetsResponse

func (*ClientWithResponses) AddDatasetsWithResponse

func (c *ClientWithResponses) AddDatasetsWithResponse(ctx context.Context, body AddDatasetsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDatasetsResponse, error)

func (*ClientWithResponses) AddGroupWithBodyWithResponse

func (c *ClientWithResponses) AddGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)

AddGroupWithBodyWithResponse request with arbitrary body returning *AddGroupResponse

func (*ClientWithResponses) AddGroupWithResponse

func (c *ClientWithResponses) AddGroupWithResponse(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)

func (*ClientWithResponses) AddNewTokenToUserWithBodyWithResponse

func (c *ClientWithResponses) AddNewTokenToUserWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNewTokenToUserResponse, error)

AddNewTokenToUserWithBodyWithResponse request with arbitrary body returning *AddNewTokenToUserResponse

func (*ClientWithResponses) AddNewTokenToUserWithResponse

func (c *ClientWithResponses) AddNewTokenToUserWithResponse(ctx context.Context, uuid UuidParam, body AddNewTokenToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddNewTokenToUserResponse, error)

func (*ClientWithResponses) AddPolicyWithBodyWithResponse

func (c *ClientWithResponses) AddPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPolicyResponse, error)

AddPolicyWithBodyWithResponse request with arbitrary body returning *AddPolicyResponse

func (*ClientWithResponses) AddPolicyWithResponse

func (c *ClientWithResponses) AddPolicyWithResponse(ctx context.Context, body AddPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPolicyResponse, error)

func (*ClientWithResponses) AddProgramCodeRevisionWithBodyWithResponse

func (c *ClientWithResponses) AddProgramCodeRevisionWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddProgramCodeRevisionResponse, error)

AddProgramCodeRevisionWithBodyWithResponse request with arbitrary body returning *AddProgramCodeRevisionResponse

func (*ClientWithResponses) AddProgramWithBodyWithResponse

func (c *ClientWithResponses) AddProgramWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddProgramResponse, error)

AddProgramWithBodyWithResponse request with arbitrary body returning *AddProgramResponse

func (*ClientWithResponses) AddProgramWithResponse

func (c *ClientWithResponses) AddProgramWithResponse(ctx context.Context, body AddProgramJSONRequestBody, reqEditors ...RequestEditorFn) (*AddProgramResponse, error)

func (*ClientWithResponses) AddThingWithBodyWithResponse

func (c *ClientWithResponses) AddThingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddThingResponse, error)

AddThingWithBodyWithResponse request with arbitrary body returning *AddThingResponse

func (*ClientWithResponses) AddThingWithResponse

func (c *ClientWithResponses) AddThingWithResponse(ctx context.Context, body AddThingJSONRequestBody, reqEditors ...RequestEditorFn) (*AddThingResponse, error)

func (*ClientWithResponses) AddTimeSeriesWithBodyWithResponse

func (c *ClientWithResponses) AddTimeSeriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTimeSeriesResponse, error)

AddTimeSeriesWithBodyWithResponse request with arbitrary body returning *AddTimeSeriesResponse

func (*ClientWithResponses) AddTimeSeriesWithResponse

func (c *ClientWithResponses) AddTimeSeriesWithResponse(ctx context.Context, body AddTimeSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTimeSeriesResponse, error)

func (*ClientWithResponses) AddUserWithBodyWithResponse

func (c *ClientWithResponses) AddUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserResponse, error)

AddUserWithBodyWithResponse request with arbitrary body returning *AddUserResponse

func (*ClientWithResponses) AddUserWithResponse

func (c *ClientWithResponses) AddUserWithResponse(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserResponse, error)

func (*ClientWithResponses) AssembleDatasetPartsByKeyWithResponse

func (c *ClientWithResponses) AssembleDatasetPartsByKeyWithResponse(ctx context.Context, uuid UuidParam, params *AssembleDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*AssembleDatasetPartsByKeyResponse, error)

AssembleDatasetPartsByKeyWithResponse request returning *AssembleDatasetPartsByKeyResponse

func (*ClientWithResponses) CreateAlertWithBodyWithResponse added in v0.1.2

func (c *ClientWithResponses) CreateAlertWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

CreateAlertWithBodyWithResponse request with arbitrary body returning *CreateAlertResponse

func (*ClientWithResponses) CreateAlertWithResponse added in v0.1.2

func (c *ClientWithResponses) CreateAlertWithResponse(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

func (*ClientWithResponses) DeleteAlertByUuidWithResponse added in v0.1.2

func (c *ClientWithResponses) DeleteAlertByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteAlertByUuidResponse, error)

DeleteAlertByUuidWithResponse request returning *DeleteAlertByUuidResponse

func (*ClientWithResponses) DeleteDataFromTimeSeriesWithResponse

func (c *ClientWithResponses) DeleteDataFromTimeSeriesWithResponse(ctx context.Context, uuid UuidParam, params *DeleteDataFromTimeSeriesParams, reqEditors ...RequestEditorFn) (*DeleteDataFromTimeSeriesResponse, error)

DeleteDataFromTimeSeriesWithResponse request returning *DeleteDataFromTimeSeriesResponse

func (*ClientWithResponses) DeleteDatasetByUuidWithResponse

func (c *ClientWithResponses) DeleteDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteDatasetByUuidResponse, error)

DeleteDatasetByUuidWithResponse request returning *DeleteDatasetByUuidResponse

func (*ClientWithResponses) DeleteDatasetUploadByKeyWithResponse

func (c *ClientWithResponses) DeleteDatasetUploadByKeyWithResponse(ctx context.Context, uuid UuidParam, params *DeleteDatasetUploadByKeyParams, reqEditors ...RequestEditorFn) (*DeleteDatasetUploadByKeyResponse, error)

DeleteDatasetUploadByKeyWithResponse request returning *DeleteDatasetUploadByKeyResponse

func (*ClientWithResponses) DeleteGroupByUuidWithResponse

func (c *ClientWithResponses) DeleteGroupByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteGroupByUuidResponse, error)

DeleteGroupByUuidWithResponse request returning *DeleteGroupByUuidResponse

func (*ClientWithResponses) DeletePolicyByUuidWithResponse

func (c *ClientWithResponses) DeletePolicyByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeletePolicyByUuidResponse, error)

DeletePolicyByUuidWithResponse request returning *DeletePolicyByUuidResponse

func (*ClientWithResponses) DeleteProgramByUuidWithResponse

func (c *ClientWithResponses) DeleteProgramByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteProgramByUuidResponse, error)

DeleteProgramByUuidWithResponse request returning *DeleteProgramByUuidResponse

func (*ClientWithResponses) DeleteProgramCodeRevisionsWithResponse

func (c *ClientWithResponses) DeleteProgramCodeRevisionsWithResponse(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*DeleteProgramCodeRevisionsResponse, error)

DeleteProgramCodeRevisionsWithResponse request returning *DeleteProgramCodeRevisionsResponse

func (*ClientWithResponses) DeleteThingByUuidWithResponse

func (c *ClientWithResponses) DeleteThingByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteThingByUuidResponse, error)

DeleteThingByUuidWithResponse request returning *DeleteThingByUuidResponse

func (*ClientWithResponses) DeleteTimeSeriesByUuidWithResponse

func (c *ClientWithResponses) DeleteTimeSeriesByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteTimeSeriesByUuidResponse, error)

DeleteTimeSeriesByUuidWithResponse request returning *DeleteTimeSeriesByUuidResponse

func (*ClientWithResponses) DeleteTokenForUserWithResponse

func (c *ClientWithResponses) DeleteTokenForUserWithResponse(ctx context.Context, uuid UuidParam, tokenUuid string, reqEditors ...RequestEditorFn) (*DeleteTokenForUserResponse, error)

DeleteTokenForUserWithResponse request returning *DeleteTokenForUserResponse

func (*ClientWithResponses) DeleteUserByUuidWithResponse

func (c *ClientWithResponses) DeleteUserByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteUserByUuidResponse, error)

DeleteUserByUuidWithResponse request returning *DeleteUserByUuidResponse

func (*ClientWithResponses) ExecuteProgramWebhookWithResponse

func (c *ClientWithResponses) ExecuteProgramWebhookWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*ExecuteProgramWebhookResponse, error)

ExecuteProgramWebhookWithResponse request returning *ExecuteProgramWebhookResponse

func (*ClientWithResponses) FindAlertByUuidWithResponse added in v0.1.2

func (c *ClientWithResponses) FindAlertByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindAlertByUuidResponse, error)

FindAlertByUuidWithResponse request returning *FindAlertByUuidResponse

func (*ClientWithResponses) FindAlertsWithResponse

func (c *ClientWithResponses) FindAlertsWithResponse(ctx context.Context, params *FindAlertsParams, reqEditors ...RequestEditorFn) (*FindAlertsResponse, error)

FindAlertsWithResponse request returning *FindAlertsResponse

func (*ClientWithResponses) FindDatasetByUuidWithResponse

func (c *ClientWithResponses) FindDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindDatasetByUuidResponse, error)

FindDatasetByUuidWithResponse request returning *FindDatasetByUuidResponse

func (*ClientWithResponses) FindDatasetsForThingWithResponse

func (c *ClientWithResponses) FindDatasetsForThingWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindDatasetsForThingResponse, error)

FindDatasetsForThingWithResponse request returning *FindDatasetsForThingResponse

func (*ClientWithResponses) FindDatasetsWithResponse

func (c *ClientWithResponses) FindDatasetsWithResponse(ctx context.Context, params *FindDatasetsParams, reqEditors ...RequestEditorFn) (*FindDatasetsResponse, error)

FindDatasetsWithResponse request returning *FindDatasetsResponse

func (*ClientWithResponses) FindGroupByUuidWithResponse

func (c *ClientWithResponses) FindGroupByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindGroupByUuidResponse, error)

FindGroupByUuidWithResponse request returning *FindGroupByUuidResponse

func (*ClientWithResponses) FindGroupsWithResponse

func (c *ClientWithResponses) FindGroupsWithResponse(ctx context.Context, params *FindGroupsParams, reqEditors ...RequestEditorFn) (*FindGroupsResponse, error)

FindGroupsWithResponse request returning *FindGroupsResponse

func (*ClientWithResponses) FindPoliciesForGroupWithResponse

func (c *ClientWithResponses) FindPoliciesForGroupWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindPoliciesForGroupResponse, error)

FindPoliciesForGroupWithResponse request returning *FindPoliciesForGroupResponse

func (*ClientWithResponses) FindPoliciesForUserWithResponse

func (c *ClientWithResponses) FindPoliciesForUserWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindPoliciesForUserResponse, error)

FindPoliciesForUserWithResponse request returning *FindPoliciesForUserResponse

func (*ClientWithResponses) FindPoliciesWithResponse

func (c *ClientWithResponses) FindPoliciesWithResponse(ctx context.Context, params *FindPoliciesParams, reqEditors ...RequestEditorFn) (*FindPoliciesResponse, error)

FindPoliciesWithResponse request returning *FindPoliciesResponse

func (*ClientWithResponses) FindPolicyByUuidWithResponse

func (c *ClientWithResponses) FindPolicyByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindPolicyByUuidResponse, error)

FindPolicyByUuidWithResponse request returning *FindPolicyByUuidResponse

func (*ClientWithResponses) FindProgramByUuidWithResponse

func (c *ClientWithResponses) FindProgramByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindProgramByUuidResponse, error)

FindProgramByUuidWithResponse request returning *FindProgramByUuidResponse

func (*ClientWithResponses) FindProgramsWithResponse

func (c *ClientWithResponses) FindProgramsWithResponse(ctx context.Context, params *FindProgramsParams, reqEditors ...RequestEditorFn) (*FindProgramsResponse, error)

FindProgramsWithResponse request returning *FindProgramsResponse

func (*ClientWithResponses) FindThingByUuidWithResponse

func (c *ClientWithResponses) FindThingByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindThingByUuidResponse, error)

FindThingByUuidWithResponse request returning *FindThingByUuidResponse

func (*ClientWithResponses) FindThingsWithResponse

func (c *ClientWithResponses) FindThingsWithResponse(ctx context.Context, params *FindThingsParams, reqEditors ...RequestEditorFn) (*FindThingsResponse, error)

FindThingsWithResponse request returning *FindThingsResponse

func (*ClientWithResponses) FindTimeSeriesByUuidWithResponse

func (c *ClientWithResponses) FindTimeSeriesByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindTimeSeriesByUuidResponse, error)

FindTimeSeriesByUuidWithResponse request returning *FindTimeSeriesByUuidResponse

func (*ClientWithResponses) FindTimeSeriesForThingWithResponse

func (c *ClientWithResponses) FindTimeSeriesForThingWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindTimeSeriesForThingResponse, error)

FindTimeSeriesForThingWithResponse request returning *FindTimeSeriesForThingResponse

func (*ClientWithResponses) FindTimeSeriesWithResponse

func (c *ClientWithResponses) FindTimeSeriesWithResponse(ctx context.Context, params *FindTimeSeriesParams, reqEditors ...RequestEditorFn) (*FindTimeSeriesResponse, error)

FindTimeSeriesWithResponse request returning *FindTimeSeriesResponse

func (*ClientWithResponses) FindTokensForUserWithResponse

func (c *ClientWithResponses) FindTokensForUserWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindTokensForUserResponse, error)

FindTokensForUserWithResponse request returning *FindTokensForUserResponse

func (*ClientWithResponses) FindTsdataByQueryWithResponse

func (c *ClientWithResponses) FindTsdataByQueryWithResponse(ctx context.Context, params *FindTsdataByQueryParams, reqEditors ...RequestEditorFn) (*FindTsdataByQueryResponse, error)

FindTsdataByQueryWithResponse request returning *FindTsdataByQueryResponse

func (*ClientWithResponses) FindUserByUuidWithResponse

func (c *ClientWithResponses) FindUserByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindUserByUuidResponse, error)

FindUserByUuidWithResponse request returning *FindUserByUuidResponse

func (*ClientWithResponses) FindUsersWithResponse

func (c *ClientWithResponses) FindUsersWithResponse(ctx context.Context, params *FindUsersParams, reqEditors ...RequestEditorFn) (*FindUsersResponse, error)

FindUsersWithResponse request returning *FindUsersResponse

func (*ClientWithResponses) GetCodeFromProgramWithResponse

func (c *ClientWithResponses) GetCodeFromProgramWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*GetCodeFromProgramResponse, error)

GetCodeFromProgramWithResponse request returning *GetCodeFromProgramResponse

func (*ClientWithResponses) GetProgramCodeRevisionsDiffWithResponse

func (c *ClientWithResponses) GetProgramCodeRevisionsDiffWithResponse(ctx context.Context, uuid UuidParam, params *GetProgramCodeRevisionsDiffParams, reqEditors ...RequestEditorFn) (*GetProgramCodeRevisionsDiffResponse, error)

GetProgramCodeRevisionsDiffWithResponse request returning *GetProgramCodeRevisionsDiffResponse

func (*ClientWithResponses) GetProgramCodeRevisionsWithResponse

func (c *ClientWithResponses) GetProgramCodeRevisionsWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*GetProgramCodeRevisionsResponse, error)

GetProgramCodeRevisionsWithResponse request returning *GetProgramCodeRevisionsResponse

func (*ClientWithResponses) GetRawDatasetByUuidWithResponse

func (c *ClientWithResponses) GetRawDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, params *GetRawDatasetByUuidParams, reqEditors ...RequestEditorFn) (*GetRawDatasetByUuidResponse, error)

GetRawDatasetByUuidWithResponse request returning *GetRawDatasetByUuidResponse

func (*ClientWithResponses) InitializeDatasetUploadByUuidWithResponse

func (c *ClientWithResponses) InitializeDatasetUploadByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*InitializeDatasetUploadByUuidResponse, error)

InitializeDatasetUploadByUuidWithResponse request returning *InitializeDatasetUploadByUuidResponse

func (*ClientWithResponses) ListDatasetPartsByKeyWithResponse

func (c *ClientWithResponses) ListDatasetPartsByKeyWithResponse(ctx context.Context, uuid UuidParam, params *ListDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*ListDatasetPartsByKeyResponse, error)

ListDatasetPartsByKeyWithResponse request returning *ListDatasetPartsByKeyResponse

func (*ClientWithResponses) QueryTimeseriesForDataWithResponse

func (c *ClientWithResponses) QueryTimeseriesForDataWithResponse(ctx context.Context, uuid UuidParam, params *QueryTimeseriesForDataParams, reqEditors ...RequestEditorFn) (*QueryTimeseriesForDataResponse, error)

QueryTimeseriesForDataWithResponse request returning *QueryTimeseriesForDataResponse

func (*ClientWithResponses) SetRequestRateForUserWithBodyWithResponse

func (c *ClientWithResponses) SetRequestRateForUserWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetRequestRateForUserResponse, error)

SetRequestRateForUserWithBodyWithResponse request with arbitrary body returning *SetRequestRateForUserResponse

func (*ClientWithResponses) SetRequestRateForUserWithResponse

func (c *ClientWithResponses) SetRequestRateForUserWithResponse(ctx context.Context, uuid UuidParam, body SetRequestRateForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*SetRequestRateForUserResponse, error)

func (*ClientWithResponses) SignProgramCodeRevisionsWithResponse

func (c *ClientWithResponses) SignProgramCodeRevisionsWithResponse(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*SignProgramCodeRevisionsResponse, error)

SignProgramCodeRevisionsWithResponse request returning *SignProgramCodeRevisionsResponse

func (*ClientWithResponses) UpdateAlertByUuidWithBodyWithResponse added in v0.1.2

func (c *ClientWithResponses) UpdateAlertByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertByUuidResponse, error)

UpdateAlertByUuidWithBodyWithResponse request with arbitrary body returning *UpdateAlertByUuidResponse

func (*ClientWithResponses) UpdateAlertByUuidWithResponse added in v0.1.2

func (c *ClientWithResponses) UpdateAlertByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateAlertByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertByUuidResponse, error)

func (*ClientWithResponses) UpdateDatasetByUuidWithBodyWithResponse

func (c *ClientWithResponses) UpdateDatasetByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatasetByUuidResponse, error)

UpdateDatasetByUuidWithBodyWithResponse request with arbitrary body returning *UpdateDatasetByUuidResponse

func (*ClientWithResponses) UpdateDatasetByUuidWithResponse

func (c *ClientWithResponses) UpdateDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateDatasetByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatasetByUuidResponse, error)

func (*ClientWithResponses) UpdateGroupByUuidWithBodyWithResponse

func (c *ClientWithResponses) UpdateGroupByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupByUuidResponse, error)

UpdateGroupByUuidWithBodyWithResponse request with arbitrary body returning *UpdateGroupByUuidResponse

func (*ClientWithResponses) UpdateGroupByUuidWithResponse

func (c *ClientWithResponses) UpdateGroupByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateGroupByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupByUuidResponse, error)

func (*ClientWithResponses) UpdatePolicyByUuidWithBodyWithResponse

func (c *ClientWithResponses) UpdatePolicyByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyByUuidResponse, error)

UpdatePolicyByUuidWithBodyWithResponse request with arbitrary body returning *UpdatePolicyByUuidResponse

func (*ClientWithResponses) UpdatePolicyByUuidWithResponse

func (c *ClientWithResponses) UpdatePolicyByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdatePolicyByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyByUuidResponse, error)

func (*ClientWithResponses) UpdateProgramByUuidWithBodyWithResponse

func (c *ClientWithResponses) UpdateProgramByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProgramByUuidResponse, error)

UpdateProgramByUuidWithBodyWithResponse request with arbitrary body returning *UpdateProgramByUuidResponse

func (*ClientWithResponses) UpdateProgramByUuidWithResponse

func (c *ClientWithResponses) UpdateProgramByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateProgramByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProgramByUuidResponse, error)

func (*ClientWithResponses) UpdateThingByUuidWithBodyWithResponse

func (c *ClientWithResponses) UpdateThingByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateThingByUuidResponse, error)

UpdateThingByUuidWithBodyWithResponse request with arbitrary body returning *UpdateThingByUuidResponse

func (*ClientWithResponses) UpdateThingByUuidWithResponse

func (c *ClientWithResponses) UpdateThingByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateThingByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateThingByUuidResponse, error)

func (*ClientWithResponses) UpdateTimeseriesByUuidWithBodyWithResponse

func (c *ClientWithResponses) UpdateTimeseriesByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeseriesByUuidResponse, error)

UpdateTimeseriesByUuidWithBodyWithResponse request with arbitrary body returning *UpdateTimeseriesByUuidResponse

func (*ClientWithResponses) UpdateTimeseriesByUuidWithResponse

func (c *ClientWithResponses) UpdateTimeseriesByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateTimeseriesByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeseriesByUuidResponse, error)

func (*ClientWithResponses) UpdateUserByUuidWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserByUuidResponse, error)

UpdateUserByUuidWithBodyWithResponse request with arbitrary body returning *UpdateUserByUuidResponse

func (*ClientWithResponses) UpdateUserByUuidWithResponse

func (c *ClientWithResponses) UpdateUserByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateUserByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserByUuidResponse, error)

func (*ClientWithResponses) UploadDatasetContentByKeyWithResponse

func (c *ClientWithResponses) UploadDatasetContentByKeyWithResponse(ctx context.Context, uuid UuidParam, params *UploadDatasetContentByKeyParams, reqEditors ...RequestEditorFn) (*UploadDatasetContentByKeyResponse, error)

UploadDatasetContentByKeyWithResponse request returning *UploadDatasetContentByKeyResponse

func (*ClientWithResponses) WhoamiWithResponse

func (c *ClientWithResponses) WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error)

WhoamiWithResponse request returning *WhoamiResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// FindAlerts request
	FindAlertsWithResponse(ctx context.Context, params *FindAlertsParams, reqEditors ...RequestEditorFn) (*FindAlertsResponse, error)

	// CreateAlert request  with any body
	CreateAlertWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

	CreateAlertWithResponse(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

	// DeleteAlertByUuid request
	DeleteAlertByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteAlertByUuidResponse, error)

	// FindAlertByUuid request
	FindAlertByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindAlertByUuidResponse, error)

	// UpdateAlertByUuid request  with any body
	UpdateAlertByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertByUuidResponse, error)

	UpdateAlertByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateAlertByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertByUuidResponse, error)

	// FindDatasets request
	FindDatasetsWithResponse(ctx context.Context, params *FindDatasetsParams, reqEditors ...RequestEditorFn) (*FindDatasetsResponse, error)

	// AddDatasets request  with any body
	AddDatasetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDatasetsResponse, error)

	AddDatasetsWithResponse(ctx context.Context, body AddDatasetsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDatasetsResponse, error)

	// DeleteDatasetByUuid request
	DeleteDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteDatasetByUuidResponse, error)

	// FindDatasetByUuid request
	FindDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindDatasetByUuidResponse, error)

	// UpdateDatasetByUuid request  with any body
	UpdateDatasetByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDatasetByUuidResponse, error)

	UpdateDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateDatasetByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDatasetByUuidResponse, error)

	// AssembleDatasetPartsByKey request
	AssembleDatasetPartsByKeyWithResponse(ctx context.Context, uuid UuidParam, params *AssembleDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*AssembleDatasetPartsByKeyResponse, error)

	// ListDatasetPartsByKey request
	ListDatasetPartsByKeyWithResponse(ctx context.Context, uuid UuidParam, params *ListDatasetPartsByKeyParams, reqEditors ...RequestEditorFn) (*ListDatasetPartsByKeyResponse, error)

	// UploadDatasetContentByKey request
	UploadDatasetContentByKeyWithResponse(ctx context.Context, uuid UuidParam, params *UploadDatasetContentByKeyParams, reqEditors ...RequestEditorFn) (*UploadDatasetContentByKeyResponse, error)

	// GetRawDatasetByUuid request
	GetRawDatasetByUuidWithResponse(ctx context.Context, uuid UuidParam, params *GetRawDatasetByUuidParams, reqEditors ...RequestEditorFn) (*GetRawDatasetByUuidResponse, error)

	// DeleteDatasetUploadByKey request
	DeleteDatasetUploadByKeyWithResponse(ctx context.Context, uuid UuidParam, params *DeleteDatasetUploadByKeyParams, reqEditors ...RequestEditorFn) (*DeleteDatasetUploadByKeyResponse, error)

	// InitializeDatasetUploadByUuid request
	InitializeDatasetUploadByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*InitializeDatasetUploadByUuidResponse, error)

	// FindGroups request
	FindGroupsWithResponse(ctx context.Context, params *FindGroupsParams, reqEditors ...RequestEditorFn) (*FindGroupsResponse, error)

	// AddGroup request  with any body
	AddGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)

	AddGroupWithResponse(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)

	// DeleteGroupByUuid request
	DeleteGroupByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteGroupByUuidResponse, error)

	// FindGroupByUuid request
	FindGroupByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindGroupByUuidResponse, error)

	// UpdateGroupByUuid request  with any body
	UpdateGroupByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupByUuidResponse, error)

	UpdateGroupByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateGroupByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupByUuidResponse, error)

	// FindPoliciesForGroup request
	FindPoliciesForGroupWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindPoliciesForGroupResponse, error)

	// FindPolicies request
	FindPoliciesWithResponse(ctx context.Context, params *FindPoliciesParams, reqEditors ...RequestEditorFn) (*FindPoliciesResponse, error)

	// AddPolicy request  with any body
	AddPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPolicyResponse, error)

	AddPolicyWithResponse(ctx context.Context, body AddPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPolicyResponse, error)

	// DeletePolicyByUuid request
	DeletePolicyByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeletePolicyByUuidResponse, error)

	// FindPolicyByUuid request
	FindPolicyByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindPolicyByUuidResponse, error)

	// UpdatePolicyByUuid request  with any body
	UpdatePolicyByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyByUuidResponse, error)

	UpdatePolicyByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdatePolicyByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyByUuidResponse, error)

	// FindPrograms request
	FindProgramsWithResponse(ctx context.Context, params *FindProgramsParams, reqEditors ...RequestEditorFn) (*FindProgramsResponse, error)

	// AddProgram request  with any body
	AddProgramWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddProgramResponse, error)

	AddProgramWithResponse(ctx context.Context, body AddProgramJSONRequestBody, reqEditors ...RequestEditorFn) (*AddProgramResponse, error)

	// DeleteProgramByUuid request
	DeleteProgramByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteProgramByUuidResponse, error)

	// FindProgramByUuid request
	FindProgramByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindProgramByUuidResponse, error)

	// UpdateProgramByUuid request  with any body
	UpdateProgramByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProgramByUuidResponse, error)

	UpdateProgramByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateProgramByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProgramByUuidResponse, error)

	// GetCodeFromProgram request
	GetCodeFromProgramWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*GetCodeFromProgramResponse, error)

	// AddProgramCodeRevision request  with any body
	AddProgramCodeRevisionWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddProgramCodeRevisionResponse, error)

	// GetProgramCodeRevisionsDiff request
	GetProgramCodeRevisionsDiffWithResponse(ctx context.Context, uuid UuidParam, params *GetProgramCodeRevisionsDiffParams, reqEditors ...RequestEditorFn) (*GetProgramCodeRevisionsDiffResponse, error)

	// GetProgramCodeRevisions request
	GetProgramCodeRevisionsWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*GetProgramCodeRevisionsResponse, error)

	// DeleteProgramCodeRevisions request
	DeleteProgramCodeRevisionsWithResponse(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*DeleteProgramCodeRevisionsResponse, error)

	// SignProgramCodeRevisions request
	SignProgramCodeRevisionsWithResponse(ctx context.Context, uuid UuidParam, revisionId int, reqEditors ...RequestEditorFn) (*SignProgramCodeRevisionsResponse, error)

	// ExecuteProgramWebhook request
	ExecuteProgramWebhookWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*ExecuteProgramWebhookResponse, error)

	// FindThings request
	FindThingsWithResponse(ctx context.Context, params *FindThingsParams, reqEditors ...RequestEditorFn) (*FindThingsResponse, error)

	// AddThing request  with any body
	AddThingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddThingResponse, error)

	AddThingWithResponse(ctx context.Context, body AddThingJSONRequestBody, reqEditors ...RequestEditorFn) (*AddThingResponse, error)

	// DeleteThingByUuid request
	DeleteThingByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteThingByUuidResponse, error)

	// FindThingByUuid request
	FindThingByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindThingByUuidResponse, error)

	// UpdateThingByUuid request  with any body
	UpdateThingByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateThingByUuidResponse, error)

	UpdateThingByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateThingByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateThingByUuidResponse, error)

	// FindDatasetsForThing request
	FindDatasetsForThingWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindDatasetsForThingResponse, error)

	// FindTimeSeriesForThing request
	FindTimeSeriesForThingWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindTimeSeriesForThingResponse, error)

	// FindTimeSeries request
	FindTimeSeriesWithResponse(ctx context.Context, params *FindTimeSeriesParams, reqEditors ...RequestEditorFn) (*FindTimeSeriesResponse, error)

	// AddTimeSeries request  with any body
	AddTimeSeriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTimeSeriesResponse, error)

	AddTimeSeriesWithResponse(ctx context.Context, body AddTimeSeriesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTimeSeriesResponse, error)

	// DeleteTimeSeriesByUuid request
	DeleteTimeSeriesByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteTimeSeriesByUuidResponse, error)

	// FindTimeSeriesByUuid request
	FindTimeSeriesByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindTimeSeriesByUuidResponse, error)

	// UpdateTimeseriesByUuid request  with any body
	UpdateTimeseriesByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeseriesByUuidResponse, error)

	UpdateTimeseriesByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateTimeseriesByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeseriesByUuidResponse, error)

	// DeleteDataFromTimeSeries request
	DeleteDataFromTimeSeriesWithResponse(ctx context.Context, uuid UuidParam, params *DeleteDataFromTimeSeriesParams, reqEditors ...RequestEditorFn) (*DeleteDataFromTimeSeriesResponse, error)

	// QueryTimeseriesForData request
	QueryTimeseriesForDataWithResponse(ctx context.Context, uuid UuidParam, params *QueryTimeseriesForDataParams, reqEditors ...RequestEditorFn) (*QueryTimeseriesForDataResponse, error)

	// AddDataToTimeseries request  with any body
	AddDataToTimeseriesWithBodyWithResponse(ctx context.Context, uuid UuidParam, params *AddDataToTimeseriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDataToTimeseriesResponse, error)

	AddDataToTimeseriesWithResponse(ctx context.Context, uuid UuidParam, params *AddDataToTimeseriesParams, body AddDataToTimeseriesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDataToTimeseriesResponse, error)

	// FindTsdataByQuery request
	FindTsdataByQueryWithResponse(ctx context.Context, params *FindTsdataByQueryParams, reqEditors ...RequestEditorFn) (*FindTsdataByQueryResponse, error)

	// FindUsers request
	FindUsersWithResponse(ctx context.Context, params *FindUsersParams, reqEditors ...RequestEditorFn) (*FindUsersResponse, error)

	// AddUser request  with any body
	AddUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserResponse, error)

	AddUserWithResponse(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserResponse, error)

	// Whoami request
	WhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*WhoamiResponse, error)

	// DeleteUserByUuid request
	DeleteUserByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*DeleteUserByUuidResponse, error)

	// FindUserByUuid request
	FindUserByUuidWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindUserByUuidResponse, error)

	// UpdateUserByUuid request  with any body
	UpdateUserByUuidWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserByUuidResponse, error)

	UpdateUserByUuidWithResponse(ctx context.Context, uuid UuidParam, body UpdateUserByUuidJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserByUuidResponse, error)

	// FindPoliciesForUser request
	FindPoliciesForUserWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindPoliciesForUserResponse, error)

	// SetRequestRateForUser request  with any body
	SetRequestRateForUserWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetRequestRateForUserResponse, error)

	SetRequestRateForUserWithResponse(ctx context.Context, uuid UuidParam, body SetRequestRateForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*SetRequestRateForUserResponse, error)

	// FindTokensForUser request
	FindTokensForUserWithResponse(ctx context.Context, uuid UuidParam, reqEditors ...RequestEditorFn) (*FindTokensForUserResponse, error)

	// AddNewTokenToUser request  with any body
	AddNewTokenToUserWithBodyWithResponse(ctx context.Context, uuid UuidParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNewTokenToUserResponse, error)

	AddNewTokenToUserWithResponse(ctx context.Context, uuid UuidParam, body AddNewTokenToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddNewTokenToUserResponse, error)

	// DeleteTokenForUser request
	DeleteTokenForUserWithResponse(ctx context.Context, uuid UuidParam, tokenUuid string, reqEditors ...RequestEditorFn) (*DeleteTokenForUserResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CodeRevision

type CodeRevision struct {
	Checksum string    `json:"checksum"`
	Created  time.Time `json:"created"`

	// User UUID
	CreatedBy string `json:"created_by"`

	// The revision number
	Revision int        `json:"revision"`
	Signed   *time.Time `json:"signed"`

	// User UUID
	SignedBy *string `json:"signed_by"`
}

CodeRevision defines model for CodeRevision.

type CreateAlertJSONRequestBody added in v0.1.2

type CreateAlertJSONRequestBody NewAlert

CreateAlertJSONRequestBody defines body for CreateAlert for application/json ContentType.

type CreateAlertResponse added in v0.1.2

type CreateAlertResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *NewAlertReply
}

func ParseCreateAlertResponse added in v0.1.2

func ParseCreateAlertResponse(rsp *http.Response) (*CreateAlertResponse, error)

ParseCreateAlertResponse parses an HTTP response from a CreateAlertWithResponse call

func (CreateAlertResponse) Status added in v0.1.2

func (r CreateAlertResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAlertResponse) StatusCode added in v0.1.2

func (r CreateAlertResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Dataset

type Dataset struct {

	// The sha256 checksum of the content
	Checksum string `json:"checksum"`

	// Date-time when created, as defined by RFC 3339, section 5.6.
	Created time.Time `json:"created"`

	// User UUID reference.
	CreatedBy string `json:"created_by"`

	// File format of the data set.
	Format DatasetFormat `json:"format"`

	// Name of the resource. Does *not* have to be unique.
	Name string `json:"name"`

	// The size of the content in number of bytes.
	Size int64    `json:"size"`
	Tags []string `json:"tags"`

	// UUID reference to a Thing as a way to track data-sets to things.
	ThingUuid *string `json:"thing_uuid"`

	// Date-time of last change, as defined by RFC 3339, section 5.6.
	Updated time.Time `json:"updated"`

	// User UUID reference.
	UpdatedBy string `json:"updated_by"`

	// Unique identifier.
	Uuid string `json:"uuid"`
}

Dataset defines model for Dataset.

type DatasetFormat

type DatasetFormat string

File format of the data set.

const (
	DatasetFormatCsv DatasetFormat = "csv"

	DatasetFormatIni DatasetFormat = "ini"

	DatasetFormatJson DatasetFormat = "json"

	DatasetFormatMisc DatasetFormat = "misc"

	DatasetFormatToml DatasetFormat = "toml"

	DatasetFormatXml DatasetFormat = "xml"

	DatasetFormatYaml DatasetFormat = "yaml"
)

Defines values for DatasetFormat.

type DeleteAlertByUuidResponse added in v0.1.2

type DeleteAlertByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteAlertByUuidResponse added in v0.1.2

func ParseDeleteAlertByUuidResponse(rsp *http.Response) (*DeleteAlertByUuidResponse, error)

ParseDeleteAlertByUuidResponse parses an HTTP response from a DeleteAlertByUuidWithResponse call

func (DeleteAlertByUuidResponse) Status added in v0.1.2

func (r DeleteAlertByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteAlertByUuidResponse) StatusCode added in v0.1.2

func (r DeleteAlertByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDataFromTimeSeriesParams

type DeleteDataFromTimeSeriesParams struct {

	// Start (>=) of time period. The period (start to end) can **not** exceed 1 year. Defaults to `now`.
	Start RangeStartParam `json:"start"`

	// End (<=) of time period. The period (start to end) can **not** exceed 1 year. Defaults to `now`.
	End RangeEndParam `json:"end"`

	// Value should be greater or equal to (>=) this.
	Ge *GreaterOrEqParam `json:"ge,omitempty"`

	// Value should be less or equal to (<=) this.
	Le *LessOrEqParam `json:"le,omitempty"`
}

DeleteDataFromTimeSeriesParams defines parameters for DeleteDataFromTimeSeries.

type DeleteDataFromTimeSeriesResponse

type DeleteDataFromTimeSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteDataFromTimeSeriesResponse

func ParseDeleteDataFromTimeSeriesResponse(rsp *http.Response) (*DeleteDataFromTimeSeriesResponse, error)

ParseDeleteDataFromTimeSeriesResponse parses an HTTP response from a DeleteDataFromTimeSeriesWithResponse call

func (DeleteDataFromTimeSeriesResponse) Status

Status returns HTTPResponse.Status

func (DeleteDataFromTimeSeriesResponse) StatusCode

func (r DeleteDataFromTimeSeriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDatasetByUuidResponse

type DeleteDatasetByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteDatasetByUuidResponse

func ParseDeleteDatasetByUuidResponse(rsp *http.Response) (*DeleteDatasetByUuidResponse, error)

ParseDeleteDatasetByUuidResponse parses an HTTP response from a DeleteDatasetByUuidWithResponse call

func (DeleteDatasetByUuidResponse) Status

Status returns HTTPResponse.Status

func (DeleteDatasetByUuidResponse) StatusCode

func (r DeleteDatasetByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDatasetUploadByKeyParams

type DeleteDatasetUploadByKeyParams struct {
	Key string `json:"key"`
}

DeleteDatasetUploadByKeyParams defines parameters for DeleteDatasetUploadByKey.

type DeleteDatasetUploadByKeyResponse

type DeleteDatasetUploadByKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteDatasetUploadByKeyResponse

func ParseDeleteDatasetUploadByKeyResponse(rsp *http.Response) (*DeleteDatasetUploadByKeyResponse, error)

ParseDeleteDatasetUploadByKeyResponse parses an HTTP response from a DeleteDatasetUploadByKeyWithResponse call

func (DeleteDatasetUploadByKeyResponse) Status

Status returns HTTPResponse.Status

func (DeleteDatasetUploadByKeyResponse) StatusCode

func (r DeleteDatasetUploadByKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteGroupByUuidResponse

type DeleteGroupByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteGroupByUuidResponse

func ParseDeleteGroupByUuidResponse(rsp *http.Response) (*DeleteGroupByUuidResponse, error)

ParseDeleteGroupByUuidResponse parses an HTTP response from a DeleteGroupByUuidWithResponse call

func (DeleteGroupByUuidResponse) Status

func (r DeleteGroupByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteGroupByUuidResponse) StatusCode

func (r DeleteGroupByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePolicyByUuidResponse

type DeletePolicyByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeletePolicyByUuidResponse

func ParseDeletePolicyByUuidResponse(rsp *http.Response) (*DeletePolicyByUuidResponse, error)

ParseDeletePolicyByUuidResponse parses an HTTP response from a DeletePolicyByUuidWithResponse call

func (DeletePolicyByUuidResponse) Status

Status returns HTTPResponse.Status

func (DeletePolicyByUuidResponse) StatusCode

func (r DeletePolicyByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProgramByUuidResponse

type DeleteProgramByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteProgramByUuidResponse

func ParseDeleteProgramByUuidResponse(rsp *http.Response) (*DeleteProgramByUuidResponse, error)

ParseDeleteProgramByUuidResponse parses an HTTP response from a DeleteProgramByUuidWithResponse call

func (DeleteProgramByUuidResponse) Status

Status returns HTTPResponse.Status

func (DeleteProgramByUuidResponse) StatusCode

func (r DeleteProgramByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProgramCodeRevisionsResponse

type DeleteProgramCodeRevisionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteProgramCodeRevisionsResponse

func ParseDeleteProgramCodeRevisionsResponse(rsp *http.Response) (*DeleteProgramCodeRevisionsResponse, error)

ParseDeleteProgramCodeRevisionsResponse parses an HTTP response from a DeleteProgramCodeRevisionsWithResponse call

func (DeleteProgramCodeRevisionsResponse) Status

Status returns HTTPResponse.Status

func (DeleteProgramCodeRevisionsResponse) StatusCode

func (r DeleteProgramCodeRevisionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteThingByUuidResponse

type DeleteThingByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteThingByUuidResponse

func ParseDeleteThingByUuidResponse(rsp *http.Response) (*DeleteThingByUuidResponse, error)

ParseDeleteThingByUuidResponse parses an HTTP response from a DeleteThingByUuidWithResponse call

func (DeleteThingByUuidResponse) Status

func (r DeleteThingByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteThingByUuidResponse) StatusCode

func (r DeleteThingByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTimeSeriesByUuidResponse

type DeleteTimeSeriesByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteTimeSeriesByUuidResponse

func ParseDeleteTimeSeriesByUuidResponse(rsp *http.Response) (*DeleteTimeSeriesByUuidResponse, error)

ParseDeleteTimeSeriesByUuidResponse parses an HTTP response from a DeleteTimeSeriesByUuidWithResponse call

func (DeleteTimeSeriesByUuidResponse) Status

Status returns HTTPResponse.Status

func (DeleteTimeSeriesByUuidResponse) StatusCode

func (r DeleteTimeSeriesByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTokenForUserResponse

type DeleteTokenForUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteTokenForUserResponse

func ParseDeleteTokenForUserResponse(rsp *http.Response) (*DeleteTokenForUserResponse, error)

ParseDeleteTokenForUserResponse parses an HTTP response from a DeleteTokenForUserWithResponse call

func (DeleteTokenForUserResponse) Status

Status returns HTTPResponse.Status

func (DeleteTokenForUserResponse) StatusCode

func (r DeleteTokenForUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserByUuidResponse

type DeleteUserByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteUserByUuidResponse

func ParseDeleteUserByUuidResponse(rsp *http.Response) (*DeleteUserByUuidResponse, error)

ParseDeleteUserByUuidResponse parses an HTTP response from a DeleteUserByUuidWithResponse call

func (DeleteUserByUuidResponse) Status

func (r DeleteUserByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserByUuidResponse) StatusCode

func (r DeleteUserByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnvFilterParam added in v0.1.2

type EnvFilterParam string

EnvFilterParam defines model for envFilterParam.

type Error

type Error string

Error message

type EventFilterParam added in v0.1.2

type EventFilterParam string

EventFilterParam defines model for eventFilterParam.

type ExecuteProgramWebhookResponse

type ExecuteProgramWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseExecuteProgramWebhookResponse

func ParseExecuteProgramWebhookResponse(rsp *http.Response) (*ExecuteProgramWebhookResponse, error)

ParseExecuteProgramWebhookResponse parses an HTTP response from a ExecuteProgramWebhookWithResponse call

func (ExecuteProgramWebhookResponse) Status

Status returns HTTPResponse.Status

func (ExecuteProgramWebhookResponse) StatusCode

func (r ExecuteProgramWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindAlertByUuidResponse added in v0.1.2

type FindAlertByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Alert
}

func ParseFindAlertByUuidResponse added in v0.1.2

func ParseFindAlertByUuidResponse(rsp *http.Response) (*FindAlertByUuidResponse, error)

ParseFindAlertByUuidResponse parses an HTTP response from a FindAlertByUuidWithResponse call

func (FindAlertByUuidResponse) Status added in v0.1.2

func (r FindAlertByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (FindAlertByUuidResponse) StatusCode added in v0.1.2

func (r FindAlertByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindAlertsParams

type FindAlertsParams struct {

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// Alert resource
	Resource *ResourceFilterParam `json:"resource,omitempty"`

	// Alert environment
	Environment *EnvFilterParam `json:"environment,omitempty"`

	// Alert event
	Event *EventFilterParam `json:"event,omitempty"`

	// Alert origin
	Origin *OriginFilterParam `json:"origin,omitempty"`

	// Alert status
	Status *StatusFilterParam `json:"status,omitempty"`

	// Alert severity LessOrEqual to
	SeverityLe *SeverityLeFilterParam `json:"severity_le,omitempty"`

	// Alert severity GreaterOrEqual to
	SeverityGe *SeverityGeFilterParam `json:"severity_ge,omitempty"`

	// Alert severity
	Severity *SeverityFilterParam `json:"severity,omitempty"`

	// Array of tags to match on
	Tags *TagsFilterParam `json:"tags,omitempty"`

	// Array of services to match on
	Service *ServiceFilterParam `json:"service,omitempty"`
}

FindAlertsParams defines parameters for FindAlerts.

type FindAlertsResponse

type FindAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Alert
}

func ParseFindAlertsResponse

func ParseFindAlertsResponse(rsp *http.Response) (*FindAlertsResponse, error)

ParseFindAlertsResponse parses an HTTP response from a FindAlertsWithResponse call

func (FindAlertsResponse) Status

func (r FindAlertsResponse) Status() string

Status returns HTTPResponse.Status

func (FindAlertsResponse) StatusCode

func (r FindAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindDatasetByUuidResponse

type FindDatasetByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Dataset
}

func ParseFindDatasetByUuidResponse

func ParseFindDatasetByUuidResponse(rsp *http.Response) (*FindDatasetByUuidResponse, error)

ParseFindDatasetByUuidResponse parses an HTTP response from a FindDatasetByUuidWithResponse call

func (FindDatasetByUuidResponse) Status

func (r FindDatasetByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (FindDatasetByUuidResponse) StatusCode

func (r FindDatasetByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindDatasetsForThingResponse

type FindDatasetsForThingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Timeseries
}

func ParseFindDatasetsForThingResponse

func ParseFindDatasetsForThingResponse(rsp *http.Response) (*FindDatasetsForThingResponse, error)

ParseFindDatasetsForThingResponse parses an HTTP response from a FindDatasetsForThingWithResponse call

func (FindDatasetsForThingResponse) Status

Status returns HTTPResponse.Status

func (FindDatasetsForThingResponse) StatusCode

func (r FindDatasetsForThingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindDatasetsParams

type FindDatasetsParams struct {

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// Array of tags to match on
	Tags *TagsFilterParam `json:"tags,omitempty"`
}

FindDatasetsParams defines parameters for FindDatasets.

type FindDatasetsResponse

type FindDatasetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Dataset
}

func ParseFindDatasetsResponse

func ParseFindDatasetsResponse(rsp *http.Response) (*FindDatasetsResponse, error)

ParseFindDatasetsResponse parses an HTTP response from a FindDatasetsWithResponse call

func (FindDatasetsResponse) Status

func (r FindDatasetsResponse) Status() string

Status returns HTTPResponse.Status

func (FindDatasetsResponse) StatusCode

func (r FindDatasetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindGroupByUuidResponse

type FindGroupByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Group
}

func ParseFindGroupByUuidResponse

func ParseFindGroupByUuidResponse(rsp *http.Response) (*FindGroupByUuidResponse, error)

ParseFindGroupByUuidResponse parses an HTTP response from a FindGroupByUuidWithResponse call

func (FindGroupByUuidResponse) Status

func (r FindGroupByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (FindGroupByUuidResponse) StatusCode

func (r FindGroupByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindGroupsParams

type FindGroupsParams struct {

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`
}

FindGroupsParams defines parameters for FindGroups.

type FindGroupsResponse

type FindGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Group
}

func ParseFindGroupsResponse

func ParseFindGroupsResponse(rsp *http.Response) (*FindGroupsResponse, error)

ParseFindGroupsResponse parses an HTTP response from a FindGroupsWithResponse call

func (FindGroupsResponse) Status

func (r FindGroupsResponse) Status() string

Status returns HTTPResponse.Status

func (FindGroupsResponse) StatusCode

func (r FindGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindPoliciesForGroupResponse

type FindPoliciesForGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Policy
}

func ParseFindPoliciesForGroupResponse

func ParseFindPoliciesForGroupResponse(rsp *http.Response) (*FindPoliciesForGroupResponse, error)

ParseFindPoliciesForGroupResponse parses an HTTP response from a FindPoliciesForGroupWithResponse call

func (FindPoliciesForGroupResponse) Status

Status returns HTTPResponse.Status

func (FindPoliciesForGroupResponse) StatusCode

func (r FindPoliciesForGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindPoliciesForUserResponse

type FindPoliciesForUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Policy
}

func ParseFindPoliciesForUserResponse

func ParseFindPoliciesForUserResponse(rsp *http.Response) (*FindPoliciesForUserResponse, error)

ParseFindPoliciesForUserResponse parses an HTTP response from a FindPoliciesForUserWithResponse call

func (FindPoliciesForUserResponse) Status

Status returns HTTPResponse.Status

func (FindPoliciesForUserResponse) StatusCode

func (r FindPoliciesForUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindPoliciesParams

type FindPoliciesParams struct {

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// Group(s) to filter on
	GroupUuids *[]string `json:"group_uuids,omitempty"`
}

FindPoliciesParams defines parameters for FindPolicies.

type FindPoliciesResponse

type FindPoliciesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Policy
}

func ParseFindPoliciesResponse

func ParseFindPoliciesResponse(rsp *http.Response) (*FindPoliciesResponse, error)

ParseFindPoliciesResponse parses an HTTP response from a FindPoliciesWithResponse call

func (FindPoliciesResponse) Status

func (r FindPoliciesResponse) Status() string

Status returns HTTPResponse.Status

func (FindPoliciesResponse) StatusCode

func (r FindPoliciesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindPolicyByUuidResponse

type FindPolicyByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Policy
}

func ParseFindPolicyByUuidResponse

func ParseFindPolicyByUuidResponse(rsp *http.Response) (*FindPolicyByUuidResponse, error)

ParseFindPolicyByUuidResponse parses an HTTP response from a FindPolicyByUuidWithResponse call

func (FindPolicyByUuidResponse) Status

func (r FindPolicyByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (FindPolicyByUuidResponse) StatusCode

func (r FindPolicyByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindProgramByUuidResponse

type FindProgramByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Program
}

func ParseFindProgramByUuidResponse

func ParseFindProgramByUuidResponse(rsp *http.Response) (*FindProgramByUuidResponse, error)

ParseFindProgramByUuidResponse parses an HTTP response from a FindProgramByUuidWithResponse call

func (FindProgramByUuidResponse) Status

func (r FindProgramByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (FindProgramByUuidResponse) StatusCode

func (r FindProgramByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindProgramsParams

type FindProgramsParams struct {

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// Array of tags to match on
	Tags *TagsFilterParam `json:"tags,omitempty"`
}

FindProgramsParams defines parameters for FindPrograms.

type FindProgramsResponse

type FindProgramsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Program
}

func ParseFindProgramsResponse

func ParseFindProgramsResponse(rsp *http.Response) (*FindProgramsResponse, error)

ParseFindProgramsResponse parses an HTTP response from a FindProgramsWithResponse call

func (FindProgramsResponse) Status

func (r FindProgramsResponse) Status() string

Status returns HTTPResponse.Status

func (FindProgramsResponse) StatusCode

func (r FindProgramsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindThingByUuidResponse

type FindThingByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Thing
}

func ParseFindThingByUuidResponse

func ParseFindThingByUuidResponse(rsp *http.Response) (*FindThingByUuidResponse, error)

ParseFindThingByUuidResponse parses an HTTP response from a FindThingByUuidWithResponse call

func (FindThingByUuidResponse) Status

func (r FindThingByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (FindThingByUuidResponse) StatusCode

func (r FindThingByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindThingsParams

type FindThingsParams struct {

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`

	// Array of tags to match on
	Tags *TagsFilterParam `json:"tags,omitempty"`
}

FindThingsParams defines parameters for FindThings.

type FindThingsResponse

type FindThingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Thing
}

func ParseFindThingsResponse

func ParseFindThingsResponse(rsp *http.Response) (*FindThingsResponse, error)

ParseFindThingsResponse parses an HTTP response from a FindThingsWithResponse call

func (FindThingsResponse) Status

func (r FindThingsResponse) Status() string

Status returns HTTPResponse.Status

func (FindThingsResponse) StatusCode

func (r FindThingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindTimeSeriesByUuidResponse

type FindTimeSeriesByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Timeseries
}

func ParseFindTimeSeriesByUuidResponse

func ParseFindTimeSeriesByUuidResponse(rsp *http.Response) (*FindTimeSeriesByUuidResponse, error)

ParseFindTimeSeriesByUuidResponse parses an HTTP response from a FindTimeSeriesByUuidWithResponse call

func (FindTimeSeriesByUuidResponse) Status

Status returns HTTPResponse.Status

func (FindTimeSeriesByUuidResponse) StatusCode

func (r FindTimeSeriesByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindTimeSeriesForThingResponse

type FindTimeSeriesForThingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Timeseries
}

func ParseFindTimeSeriesForThingResponse

func ParseFindTimeSeriesForThingResponse(rsp *http.Response) (*FindTimeSeriesForThingResponse, error)

ParseFindTimeSeriesForThingResponse parses an HTTP response from a FindTimeSeriesForThingWithResponse call

func (FindTimeSeriesForThingResponse) Status

Status returns HTTPResponse.Status

func (FindTimeSeriesForThingResponse) StatusCode

func (r FindTimeSeriesForThingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindTimeSeriesParams

type FindTimeSeriesParams struct {

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`

	// Array of tags to match on
	Tags *TagsFilterParam `json:"tags,omitempty"`
}

FindTimeSeriesParams defines parameters for FindTimeSeries.

type FindTimeSeriesResponse

type FindTimeSeriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Timeseries
}

func ParseFindTimeSeriesResponse

func ParseFindTimeSeriesResponse(rsp *http.Response) (*FindTimeSeriesResponse, error)

ParseFindTimeSeriesResponse parses an HTTP response from a FindTimeSeriesWithResponse call

func (FindTimeSeriesResponse) Status

func (r FindTimeSeriesResponse) Status() string

Status returns HTTPResponse.Status

func (FindTimeSeriesResponse) StatusCode

func (r FindTimeSeriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindTokensForUserResponse

type FindTokensForUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Token
}

func ParseFindTokensForUserResponse

func ParseFindTokensForUserResponse(rsp *http.Response) (*FindTokensForUserResponse, error)

ParseFindTokensForUserResponse parses an HTTP response from a FindTokensForUserWithResponse call

func (FindTokensForUserResponse) Status

func (r FindTokensForUserResponse) Status() string

Status returns HTTPResponse.Status

func (FindTokensForUserResponse) StatusCode

func (r FindTokensForUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindTsdataByQueryParams added in v0.1.1

type FindTsdataByQueryParams struct {

	// A series of timeseries UUIDs to search for
	Uuids []string `json:"uuids"`

	// Start (>=) of time period. The period (start to end) can **not** exceed 1 year. Defaults to `now`.
	Start RangeStartParam `json:"start"`

	// End (<=) of time period. The period (start to end) can **not** exceed 1 year. Defaults to `now`.
	End RangeEndParam `json:"end"`

	// Value should be greater or equal to (>=) this.
	Ge *GreaterOrEqParam `json:"ge,omitempty"`

	// Value should be less or equal to (<=) this.
	Le *LessOrEqParam `json:"le,omitempty"`

	// Truncate all timestamps and perform aggregate operations on the grouping.
	Precision *FindTsdataByQueryParamsPrecision `json:"precision,omitempty"`

	// When using `precision`. Select this aggregate function instead of the default `avg` when computing the result. Does nothing when `precision` is not set.
	Aggregate *FindTsdataByQueryParamsAggregate `json:"aggregate,omitempty"`

	// Act as this time zone. Defaults to `UTC`.
	Timezone *TimezoneParam `json:"timezone,omitempty"`
}

FindTsdataByQueryParams defines parameters for FindTsdataByQuery.

type FindTsdataByQueryParamsAggregate added in v0.1.1

type FindTsdataByQueryParamsAggregate string

FindTsdataByQueryParamsAggregate defines parameters for FindTsdataByQuery.

type FindTsdataByQueryParamsPrecision added in v0.1.1

type FindTsdataByQueryParamsPrecision string

FindTsdataByQueryParamsPrecision defines parameters for FindTsdataByQuery.

type FindTsdataByQueryResponse

type FindTsdataByQueryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]TsResults
}

func ParseFindTsdataByQueryResponse

func ParseFindTsdataByQueryResponse(rsp *http.Response) (*FindTsdataByQueryResponse, error)

ParseFindTsdataByQueryResponse parses an HTTP response from a FindTsdataByQueryWithResponse call

func (FindTsdataByQueryResponse) Status

func (r FindTsdataByQueryResponse) Status() string

Status returns HTTPResponse.Status

func (FindTsdataByQueryResponse) StatusCode

func (r FindTsdataByQueryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindUserByUuidResponse

type FindUserByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

func ParseFindUserByUuidResponse

func ParseFindUserByUuidResponse(rsp *http.Response) (*FindUserByUuidResponse, error)

ParseFindUserByUuidResponse parses an HTTP response from a FindUserByUuidWithResponse call

func (FindUserByUuidResponse) Status

func (r FindUserByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (FindUserByUuidResponse) StatusCode

func (r FindUserByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindUsersParams

type FindUsersParams struct {

	// The numbers of items to return.
	Limit *LimitParam `json:"limit,omitempty"`

	// The number of items to skip before starting to collect the result set.
	Offset *OffsetParam `json:"offset,omitempty"`
}

FindUsersParams defines parameters for FindUsers.

type FindUsersResponse

type FindUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]User
}

func ParseFindUsersResponse

func ParseFindUsersResponse(rsp *http.Response) (*FindUsersResponse, error)

ParseFindUsersResponse parses an HTTP response from a FindUsersWithResponse call

func (FindUsersResponse) Status

func (r FindUsersResponse) Status() string

Status returns HTTPResponse.Status

func (FindUsersResponse) StatusCode

func (r FindUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCodeFromProgramResponse

type GetCodeFromProgramResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Program
}

func ParseGetCodeFromProgramResponse

func ParseGetCodeFromProgramResponse(rsp *http.Response) (*GetCodeFromProgramResponse, error)

ParseGetCodeFromProgramResponse parses an HTTP response from a GetCodeFromProgramWithResponse call

func (GetCodeFromProgramResponse) Status

Status returns HTTPResponse.Status

func (GetCodeFromProgramResponse) StatusCode

func (r GetCodeFromProgramResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProgramCodeRevisionsDiffParams

type GetProgramCodeRevisionsDiffParams struct {

	// Revision A
	RevA int `json:"rev_a"`

	// Revision B
	RevB int `json:"rev_b"`
}

GetProgramCodeRevisionsDiffParams defines parameters for GetProgramCodeRevisionsDiff.

type GetProgramCodeRevisionsDiffResponse

type GetProgramCodeRevisionsDiffResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetProgramCodeRevisionsDiffResponse

func ParseGetProgramCodeRevisionsDiffResponse(rsp *http.Response) (*GetProgramCodeRevisionsDiffResponse, error)

ParseGetProgramCodeRevisionsDiffResponse parses an HTTP response from a GetProgramCodeRevisionsDiffWithResponse call

func (GetProgramCodeRevisionsDiffResponse) Status

Status returns HTTPResponse.Status

func (GetProgramCodeRevisionsDiffResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProgramCodeRevisionsResponse

type GetProgramCodeRevisionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]CodeRevision
}

func ParseGetProgramCodeRevisionsResponse

func ParseGetProgramCodeRevisionsResponse(rsp *http.Response) (*GetProgramCodeRevisionsResponse, error)

ParseGetProgramCodeRevisionsResponse parses an HTTP response from a GetProgramCodeRevisionsWithResponse call

func (GetProgramCodeRevisionsResponse) Status

Status returns HTTPResponse.Status

func (GetProgramCodeRevisionsResponse) StatusCode

func (r GetProgramCodeRevisionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRawDatasetByUuidParams

type GetRawDatasetByUuidParams struct {

	// The server compares the client's ETag (sent with If-None-Match) with
	// the ETag for its current version of the resource, and if both values
	// match (that is, the resource has not changed), the server sends back
	// a 304 Not Modified status, without a body, which tells the client
	// that the cached version of the response is still good to use (fresh).
	IfNoneMatch *IfNoneMatchParam `json:"If-None-Match,omitempty"`
}

GetRawDatasetByUuidParams defines parameters for GetRawDatasetByUuid.

type GetRawDatasetByUuidResponse

type GetRawDatasetByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *string
	XML200       *string
	YAML200      *string
}

func ParseGetRawDatasetByUuidResponse

func ParseGetRawDatasetByUuidResponse(rsp *http.Response) (*GetRawDatasetByUuidResponse, error)

ParseGetRawDatasetByUuidResponse parses an HTTP response from a GetRawDatasetByUuidWithResponse call

func (GetRawDatasetByUuidResponse) Status

Status returns HTTPResponse.Status

func (GetRawDatasetByUuidResponse) StatusCode

func (r GetRawDatasetByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GreaterOrEqParam

type GreaterOrEqParam float32

GreaterOrEqParam defines model for greaterOrEqParam.

type Group

type Group struct {
	Name string `json:"name"`
	Uuid string `json:"uuid"`
}

Group defines model for Group.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IfNoneMatchParam

type IfNoneMatchParam string

IfNoneMatchParam defines model for ifNoneMatchParam.

type InitializeDatasetUploadByUuidResponse

type InitializeDatasetUploadByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		UploadId *string `json:"uploadId,omitempty"`
	}
}

func ParseInitializeDatasetUploadByUuidResponse

func ParseInitializeDatasetUploadByUuidResponse(rsp *http.Response) (*InitializeDatasetUploadByUuidResponse, error)

ParseInitializeDatasetUploadByUuidResponse parses an HTTP response from a InitializeDatasetUploadByUuidWithResponse call

func (InitializeDatasetUploadByUuidResponse) Status

Status returns HTTPResponse.Status

func (InitializeDatasetUploadByUuidResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type LessOrEqParam

type LessOrEqParam float32

LessOrEqParam defines model for lessOrEqParam.

type LimitParam

type LimitParam int64

LimitParam defines model for limitParam.

type ListDatasetPartsByKeyParams

type ListDatasetPartsByKeyParams struct {
	Key string `json:"key"`
}

ListDatasetPartsByKeyParams defines parameters for ListDatasetPartsByKey.

type ListDatasetPartsByKeyResponse

type ListDatasetPartsByKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseListDatasetPartsByKeyResponse

func ParseListDatasetPartsByKeyResponse(rsp *http.Response) (*ListDatasetPartsByKeyResponse, error)

ParseListDatasetPartsByKeyResponse parses an HTTP response from a ListDatasetPartsByKeyWithResponse call

func (ListDatasetPartsByKeyResponse) Status

Status returns HTTPResponse.Status

func (ListDatasetPartsByKeyResponse) StatusCode

func (r ListDatasetPartsByKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MiddlewareFunc

type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc

type NewAlert added in v0.1.2

type NewAlert struct {
	Description string `json:"description"`
	Environment string `json:"environment"`
	Event       string `json:"event"`
	Origin      string `json:"origin"`

	// Base64 encoded raw data.
	Rawdata  *[]byte       `json:"rawdata,omitempty"`
	Resource string        `json:"resource"`
	Service  *[]string     `json:"service,omitempty"`
	Severity AlertSeverity `json:"severity"`
	Status   *AlertStatus  `json:"status,omitempty"`
	Tags     *[]string     `json:"tags,omitempty"`
	Timeout  *int32        `json:"timeout,omitempty"`
	Value    string        `json:"value"`
}

NewAlert defines model for NewAlert.

type NewAlertReply added in v0.1.2

type NewAlertReply struct {
	Uuid string `json:"uuid"`
}

The model returned when an Alert was created.

type NewDataset

type NewDataset struct {

	// Content of the resource.
	Content *[]byte          `json:"content"`
	Format  NewDatasetFormat `json:"format"`
	Name    string           `json:"name"`

	// An array of text labels (tags) for tracking and filtering purposes.
	Tags *[]string `json:"tags,omitempty"`

	// A reference to a Thing
	ThingUuid *string `json:"thing_uuid"`
}

NewDataset defines model for NewDataset.

type NewDatasetFormat

type NewDatasetFormat DatasetFormat

type NewGroup

type NewGroup struct {

	// Name of the group
	Name string `json:"name"`
}

NewGroup defines model for NewGroup.

type NewPolicy

type NewPolicy struct {
	Action    NewPolicyAction `json:"action"`
	Effect    NewPolicyEffect `json:"effect"`
	GroupUuid string          `json:"group_uuid"`
	Priority  int             `json:"priority"`
	Resource  string          `json:"resource"`
}

NewPolicy defines model for NewPolicy.

type NewPolicyAction

type NewPolicyAction PolicyAction

type NewPolicyEffect

type NewPolicyEffect PolicyEffect

type NewProgram

type NewProgram struct {

	// Ignored for Modules. An duration (in milliseconds) after which a Program (routine, webhook) shall terminate, to avoid long running programs.
	Deadline int                `json:"deadline"`
	Language NewProgramLanguage `json:"language"`
	Name     string             `json:"name"`

	// Ignored for Modules and Webhooks. A CRON schedule on the typical [CRON format](https://en.wikipedia.org/wiki/Cron), yet with support for seconds.
	Schedule string          `json:"schedule"`
	State    NewProgramState `json:"state"`

	// An array of text labels (tags) for tracking and filtering purposes.
	Tags *[]string `json:"tags,omitempty"`

	// Routines are executed at an interval. Webhooks are called using the REST API. Modules are used by Routines and Webhooks to extend their functionality.
	Type NewProgramType `json:"type"`
}

NewProgram defines model for NewProgram.

type NewProgramLanguage

type NewProgramLanguage ProgramLanguage

type NewProgramState

type NewProgramState ProgramState

type NewProgramType

type NewProgramType ProgramType

type NewThing

type NewThing struct {

	// Name of the thing
	Name string `json:"name"`

	// An array of text labels (tags) for tracking and filtering purposes.
	Tags *[]string `json:"tags,omitempty"`

	// Thing type declaration
	Type *string `json:"type,omitempty"`
}

NewThing defines model for NewThing.

type NewTimeseries

type NewTimeseries struct {
	LowerBound *float64 `json:"lower_bound,omitempty"`

	// Name of the time series
	Name string `json:"name"`

	// The SI unit assigned to this time series.
	SiUnit string    `json:"si_unit"`
	Tags   *[]string `json:"tags,omitempty"`

	// Optional reference to a thing
	ThingUuid  *string  `json:"thing_uuid"`
	UpperBound *float64 `json:"upper_bound,omitempty"`
}

NewTimeseries defines model for NewTimeseries.

type NewToken

type NewToken struct {

	// Name/label for the Token
	Name string `json:"name"`
}

NewToken defines model for NewToken.

type NewTsData

type NewTsData []TsRow

NewTsData defines model for NewTsData.

type NewUser

type NewUser struct {

	// Name of the user
	Name string `json:"name"`
}

NewUser defines model for NewUser.

type OffsetParam

type OffsetParam int64

OffsetParam defines model for offsetParam.

type OriginFilterParam added in v0.1.2

type OriginFilterParam string

OriginFilterParam defines model for originFilterParam.

type Policy

type Policy struct {
	Action    PolicyAction `json:"action"`
	Effect    PolicyEffect `json:"effect"`
	GroupUuid string       `json:"group_uuid"`
	Priority  int32        `json:"priority"`
	Resource  string       `json:"resource"`
	Uuid      string       `json:"uuid"`
}

Policy defines model for Policy.

type PolicyAction

type PolicyAction string

PolicyAction defines model for Policy.Action.

const (
	PolicyActionCreate PolicyAction = "create"

	PolicyActionDelete PolicyAction = "delete"

	PolicyActionRead PolicyAction = "read"

	PolicyActionUpdate PolicyAction = "update"
)

Defines values for PolicyAction.

type PolicyEffect

type PolicyEffect string

PolicyEffect defines model for Policy.Effect.

const (
	PolicyEffectAllow PolicyEffect = "allow"

	PolicyEffectDeny PolicyEffect = "deny"
)

Defines values for PolicyEffect.

type PrecisionParam added in v0.1.1

type PrecisionParam string

PrecisionParam defines model for precisionParam.

const (
	Century PrecisionParam = "century"

	Day PrecisionParam = "day"

	Decade PrecisionParam = "decade"

	Hour PrecisionParam = "hour"

	Microseconds PrecisionParam = "microseconds"

	Millennia PrecisionParam = "millennia"

	Milliseconds PrecisionParam = "milliseconds"

	Minute PrecisionParam = "minute"

	Minute10 PrecisionParam = "minute10"

	Minute15 PrecisionParam = "minute15"

	Minute20 PrecisionParam = "minute20"

	Minute30 PrecisionParam = "minute30"

	Minute5 PrecisionParam = "minute5"

	Month PrecisionParam = "month"

	Second PrecisionParam = "second"

	Week PrecisionParam = "week"

	Year PrecisionParam = "year"
)

Defines values for PrecisionParam.

type Program

type Program struct {

	// Ignored for Modules. An duration (in milliseconds) after which a Program (routine, webhook) shall terminate, to avoid long running programs.
	Deadline int             `json:"deadline"`
	Language ProgramLanguage `json:"language"`
	Name     string          `json:"name"`

	// Ignored for Modules and Webhooks. A CRON schedule on the typical [CRON format](https://en.wikipedia.org/wiki/Cron), yet with support for seconds.
	Schedule string       `json:"schedule"`
	State    ProgramState `json:"state"`
	Tags     []string     `json:"tags"`

	// Routines are executed at an interval. Webhooks are called using the REST API. Modules are used by Routines and Webhooks to extend their functionality.
	Type ProgramType `json:"type"`
	Uuid string      `json:"uuid"`
}

Program defines model for Program.

type ProgramLanguage

type ProgramLanguage string

ProgramLanguage defines model for Program.Language.

const (
	ProgramLanguageTengo ProgramLanguage = "tengo"
)

Defines values for ProgramLanguage.

type ProgramState

type ProgramState string

ProgramState defines model for Program.State.

const (
	ProgramStateActive ProgramState = "active"

	ProgramStateFailed ProgramState = "failed"

	ProgramStateInactive ProgramState = "inactive"
)

Defines values for ProgramState.

type ProgramType

type ProgramType string

Routines are executed at an interval. Webhooks are called using the REST API. Modules are used by Routines and Webhooks to extend their functionality.

const (
	ProgramTypeModule ProgramType = "module"

	ProgramTypeRoutine ProgramType = "routine"

	ProgramTypeWebhook ProgramType = "webhook"
)

Defines values for ProgramType.

type QueryTimeseriesForDataParams

type QueryTimeseriesForDataParams struct {

	// Start (>=) of time period. The period (start to end) can **not** exceed 1 year. Defaults to `now`.
	Start RangeStartParam `json:"start"`

	// End (<=) of time period. The period (start to end) can **not** exceed 1 year. Defaults to `now`.
	End RangeEndParam `json:"end"`

	// The SI unit of the result. A cast will occur if the base unit differes.
	Unit *SiUnitParam `json:"unit,omitempty"`

	// Value should be greater or equal to (>=) this.
	Ge *GreaterOrEqParam `json:"ge,omitempty"`

	// Value should be less or equal to (<=) this.
	Le *LessOrEqParam `json:"le,omitempty"`

	// Truncate all timestamps and perform aggregate operations on the grouping.
	Precision *QueryTimeseriesForDataParamsPrecision `json:"precision,omitempty"`

	// When using `precision`. Select this aggregate function instead of the default `avg` when computing the result. Does nothing when `precision` is not set.
	Aggregate *QueryTimeseriesForDataParamsAggregate `json:"aggregate,omitempty"`

	// Act as this time zone. Defaults to `UTC`.
	Timezone *TimezoneParam `json:"timezone,omitempty"`
}

QueryTimeseriesForDataParams defines parameters for QueryTimeseriesForData.

type QueryTimeseriesForDataParamsAggregate added in v0.1.1

type QueryTimeseriesForDataParamsAggregate string

QueryTimeseriesForDataParamsAggregate defines parameters for QueryTimeseriesForData.

type QueryTimeseriesForDataParamsPrecision added in v0.1.1

type QueryTimeseriesForDataParamsPrecision string

QueryTimeseriesForDataParamsPrecision defines parameters for QueryTimeseriesForData.

type QueryTimeseriesForDataResponse

type QueryTimeseriesForDataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]TsRow
}

func ParseQueryTimeseriesForDataResponse

func ParseQueryTimeseriesForDataResponse(rsp *http.Response) (*QueryTimeseriesForDataResponse, error)

ParseQueryTimeseriesForDataResponse parses an HTTP response from a QueryTimeseriesForDataWithResponse call

func (QueryTimeseriesForDataResponse) Status

Status returns HTTPResponse.Status

func (QueryTimeseriesForDataResponse) StatusCode

func (r QueryTimeseriesForDataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RangeEndParam

type RangeEndParam time.Time

RangeEndParam defines model for rangeEndParam.

type RangeStartParam

type RangeStartParam time.Time

RangeStartParam defines model for rangeStartParam.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResourceFilterParam added in v0.1.2

type ResourceFilterParam string

ResourceFilterParam defines model for resourceFilterParam.

type ServerInterface

type ServerInterface interface {
	// Get alerts.
	// (GET /v2/alerts)
	FindAlerts(w http.ResponseWriter, r *http.Request, params FindAlertsParams)
	// Create a new alert.
	// (POST /v2/alerts)
	CreateAlert(w http.ResponseWriter, r *http.Request)
	// Delete a specific alert.
	// (DELETE /v2/alerts/{uuid})
	DeleteAlertByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Get a specific alert.
	// (GET /v2/alerts/{uuid})
	FindAlertByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Update a specific alert.
	// (PUT /v2/alerts/{uuid})
	UpdateAlertByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Get datasets.
	// (GET /v2/datasets)
	FindDatasets(w http.ResponseWriter, r *http.Request, params FindDatasetsParams)
	// Add dataset.
	// (POST /v2/datasets)
	AddDatasets(w http.ResponseWriter, r *http.Request)
	// Delete a specific dataset.
	// (DELETE /v2/datasets/{uuid})
	DeleteDatasetByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Get a specific dataset.
	// (GET /v2/datasets/{uuid})
	FindDatasetByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Update a specific dataset.
	// (PUT /v2/datasets/{uuid})
	UpdateDatasetByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Assemble the uploaded parts. TBD.
	// (POST /v2/datasets/{uuid}/assemble)
	AssembleDatasetPartsByKey(w http.ResponseWriter, r *http.Request, uuid UuidParam, params AssembleDatasetPartsByKeyParams)
	// List parts. TBD.
	// (GET /v2/datasets/{uuid}/parts)
	ListDatasetPartsByKey(w http.ResponseWriter, r *http.Request, uuid UuidParam, params ListDatasetPartsByKeyParams)
	// Upload each part of the data-set content. TBD.
	// (PUT /v2/datasets/{uuid}/parts)
	UploadDatasetContentByKey(w http.ResponseWriter, r *http.Request, uuid UuidParam, params UploadDatasetContentByKeyParams)
	// Download dataset content
	// (GET /v2/datasets/{uuid}/raw)
	GetRawDatasetByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam, params GetRawDatasetByUuidParams)
	// Cancel content upload. TBD.
	// (DELETE /v2/datasets/{uuid}/uploads)
	DeleteDatasetUploadByKey(w http.ResponseWriter, r *http.Request, uuid UuidParam, params DeleteDatasetUploadByKeyParams)
	// Initialize a content upload. TBD.
	// (POST /v2/datasets/{uuid}/uploads)
	InitializeDatasetUploadByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Get groups.
	// (GET /v2/groups)
	FindGroups(w http.ResponseWriter, r *http.Request, params FindGroupsParams)
	// Add a new group.
	// (POST /v2/groups)
	AddGroup(w http.ResponseWriter, r *http.Request)
	// Delete a Group
	// (DELETE /v2/groups/{uuid})
	DeleteGroupByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Get info about a Group
	// (GET /v2/groups/{uuid})
	FindGroupByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Update a Group
	// (PUT /v2/groups/{uuid})
	UpdateGroupByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// List Policies for a Group
	// (GET /v2/groups/{uuid}/policies)
	FindPoliciesForGroup(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// List Policies
	// (GET /v2/policies)
	FindPolicies(w http.ResponseWriter, r *http.Request, params FindPoliciesParams)
	// Add a new Policy
	// (POST /v2/policies)
	AddPolicy(w http.ResponseWriter, r *http.Request)

	// (DELETE /v2/policies/{uuid})
	DeletePolicyByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/policies/{uuid})
	FindPolicyByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (PUT /v2/policies/{uuid})
	UpdatePolicyByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/programs)
	FindPrograms(w http.ResponseWriter, r *http.Request, params FindProgramsParams)

	// (POST /v2/programs)
	AddProgram(w http.ResponseWriter, r *http.Request)

	// (DELETE /v2/programs/{uuid})
	DeleteProgramByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/programs/{uuid})
	FindProgramByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (PUT /v2/programs/{uuid})
	UpdateProgramByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/programs/{uuid}/code)
	GetCodeFromProgram(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (POST /v2/programs/{uuid}/code)
	AddProgramCodeRevision(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/programs/{uuid}/diff)
	GetProgramCodeRevisionsDiff(w http.ResponseWriter, r *http.Request, uuid UuidParam, params GetProgramCodeRevisionsDiffParams)

	// (GET /v2/programs/{uuid}/revisions)
	GetProgramCodeRevisions(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (DELETE /v2/programs/{uuid}/revisions/{revision_id})
	DeleteProgramCodeRevisions(w http.ResponseWriter, r *http.Request, uuid UuidParam, revisionId int)

	// (PUT /v2/programs/{uuid}/revisions/{revision_id}/sign)
	SignProgramCodeRevisions(w http.ResponseWriter, r *http.Request, uuid UuidParam, revisionId int)
	// TBD
	// (POST /v2/programs/{uuid}/webhook)
	ExecuteProgramWebhook(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/things)
	FindThings(w http.ResponseWriter, r *http.Request, params FindThingsParams)

	// (POST /v2/things)
	AddThing(w http.ResponseWriter, r *http.Request)

	// (DELETE /v2/things/{uuid})
	DeleteThingByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/things/{uuid})
	FindThingByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Update Thing.
	// (PUT /v2/things/{uuid})
	UpdateThingByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// List Datasets assigned to a Thing.
	// (GET /v2/things/{uuid}/datasets)
	FindDatasetsForThing(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// List Timeseries assigned to a Thing.
	// (GET /v2/things/{uuid}/timeseries)
	FindTimeSeriesForThing(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/timeseries)
	FindTimeSeries(w http.ResponseWriter, r *http.Request, params FindTimeSeriesParams)

	// (POST /v2/timeseries)
	AddTimeSeries(w http.ResponseWriter, r *http.Request)

	// (DELETE /v2/timeseries/{uuid})
	DeleteTimeSeriesByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/timeseries/{uuid})
	FindTimeSeriesByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Update Timeseries.
	// (PUT /v2/timeseries/{uuid})
	UpdateTimeseriesByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Delete a range of Timeseries data.
	// (DELETE /v2/timeseries/{uuid}/data)
	DeleteDataFromTimeSeries(w http.ResponseWriter, r *http.Request, uuid UuidParam, params DeleteDataFromTimeSeriesParams)
	// Get a range of Timeseries data.
	// (GET /v2/timeseries/{uuid}/data)
	QueryTimeseriesForData(w http.ResponseWriter, r *http.Request, uuid UuidParam, params QueryTimeseriesForDataParams)
	// Add data to Timeseries
	// (POST /v2/timeseries/{uuid}/data)
	AddDataToTimeseries(w http.ResponseWriter, r *http.Request, uuid UuidParam, params AddDataToTimeseriesParams)
	// Query for data from Time series.
	// (GET /v2/tsquery)
	FindTsdataByQuery(w http.ResponseWriter, r *http.Request, params FindTsdataByQueryParams)
	// Returns a list of user objects.
	// (GET /v2/users)
	FindUsers(w http.ResponseWriter, r *http.Request, params FindUsersParams)

	// (POST /v2/users)
	AddUser(w http.ResponseWriter, r *http.Request)
	// Who am I
	// (GET /v2/users/me)
	Whoami(w http.ResponseWriter, r *http.Request)
	// Delete a User
	// (DELETE /v2/users/{uuid})
	DeleteUserByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/users/{uuid})
	FindUserByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Update a User
	// (PUT /v2/users/{uuid})
	UpdateUserByUuid(w http.ResponseWriter, r *http.Request, uuid UuidParam)

	// (GET /v2/users/{uuid}/policies)
	FindPoliciesForUser(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// TBD
	// (PUT /v2/users/{uuid}/rate)
	SetRequestRateForUser(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Access tokens
	// (GET /v2/users/{uuid}/tokens)
	FindTokensForUser(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Generate a new access token.
	// (POST /v2/users/{uuid}/tokens)
	AddNewTokenToUser(w http.ResponseWriter, r *http.Request, uuid UuidParam)
	// Delete access token.
	// (DELETE /v2/users/{uuid}/tokens/{token_uuid})
	DeleteTokenForUser(w http.ResponseWriter, r *http.Request, uuid UuidParam, tokenUuid string)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AddDataToTimeseries

func (siw *ServerInterfaceWrapper) AddDataToTimeseries(w http.ResponseWriter, r *http.Request)

AddDataToTimeseries operation middleware

func (*ServerInterfaceWrapper) AddDatasets

func (siw *ServerInterfaceWrapper) AddDatasets(w http.ResponseWriter, r *http.Request)

AddDatasets operation middleware

func (*ServerInterfaceWrapper) AddGroup

func (siw *ServerInterfaceWrapper) AddGroup(w http.ResponseWriter, r *http.Request)

AddGroup operation middleware

func (*ServerInterfaceWrapper) AddNewTokenToUser

func (siw *ServerInterfaceWrapper) AddNewTokenToUser(w http.ResponseWriter, r *http.Request)

AddNewTokenToUser operation middleware

func (*ServerInterfaceWrapper) AddPolicy

func (siw *ServerInterfaceWrapper) AddPolicy(w http.ResponseWriter, r *http.Request)

AddPolicy operation middleware

func (*ServerInterfaceWrapper) AddProgram

func (siw *ServerInterfaceWrapper) AddProgram(w http.ResponseWriter, r *http.Request)

AddProgram operation middleware

func (*ServerInterfaceWrapper) AddProgramCodeRevision

func (siw *ServerInterfaceWrapper) AddProgramCodeRevision(w http.ResponseWriter, r *http.Request)

AddProgramCodeRevision operation middleware

func (*ServerInterfaceWrapper) AddThing

func (siw *ServerInterfaceWrapper) AddThing(w http.ResponseWriter, r *http.Request)

AddThing operation middleware

func (*ServerInterfaceWrapper) AddTimeSeries

func (siw *ServerInterfaceWrapper) AddTimeSeries(w http.ResponseWriter, r *http.Request)

AddTimeSeries operation middleware

func (*ServerInterfaceWrapper) AddUser

AddUser operation middleware

func (*ServerInterfaceWrapper) AssembleDatasetPartsByKey

func (siw *ServerInterfaceWrapper) AssembleDatasetPartsByKey(w http.ResponseWriter, r *http.Request)

AssembleDatasetPartsByKey operation middleware

func (*ServerInterfaceWrapper) CreateAlert added in v0.1.2

func (siw *ServerInterfaceWrapper) CreateAlert(w http.ResponseWriter, r *http.Request)

CreateAlert operation middleware

func (*ServerInterfaceWrapper) DeleteAlertByUuid added in v0.1.2

func (siw *ServerInterfaceWrapper) DeleteAlertByUuid(w http.ResponseWriter, r *http.Request)

DeleteAlertByUuid operation middleware

func (*ServerInterfaceWrapper) DeleteDataFromTimeSeries

func (siw *ServerInterfaceWrapper) DeleteDataFromTimeSeries(w http.ResponseWriter, r *http.Request)

DeleteDataFromTimeSeries operation middleware

func (*ServerInterfaceWrapper) DeleteDatasetByUuid

func (siw *ServerInterfaceWrapper) DeleteDatasetByUuid(w http.ResponseWriter, r *http.Request)

DeleteDatasetByUuid operation middleware

func (*ServerInterfaceWrapper) DeleteDatasetUploadByKey

func (siw *ServerInterfaceWrapper) DeleteDatasetUploadByKey(w http.ResponseWriter, r *http.Request)

DeleteDatasetUploadByKey operation middleware

func (*ServerInterfaceWrapper) DeleteGroupByUuid

func (siw *ServerInterfaceWrapper) DeleteGroupByUuid(w http.ResponseWriter, r *http.Request)

DeleteGroupByUuid operation middleware

func (*ServerInterfaceWrapper) DeletePolicyByUuid

func (siw *ServerInterfaceWrapper) DeletePolicyByUuid(w http.ResponseWriter, r *http.Request)

DeletePolicyByUuid operation middleware

func (*ServerInterfaceWrapper) DeleteProgramByUuid

func (siw *ServerInterfaceWrapper) DeleteProgramByUuid(w http.ResponseWriter, r *http.Request)

DeleteProgramByUuid operation middleware

func (*ServerInterfaceWrapper) DeleteProgramCodeRevisions

func (siw *ServerInterfaceWrapper) DeleteProgramCodeRevisions(w http.ResponseWriter, r *http.Request)

DeleteProgramCodeRevisions operation middleware

func (*ServerInterfaceWrapper) DeleteThingByUuid

func (siw *ServerInterfaceWrapper) DeleteThingByUuid(w http.ResponseWriter, r *http.Request)

DeleteThingByUuid operation middleware

func (*ServerInterfaceWrapper) DeleteTimeSeriesByUuid

func (siw *ServerInterfaceWrapper) DeleteTimeSeriesByUuid(w http.ResponseWriter, r *http.Request)

DeleteTimeSeriesByUuid operation middleware

func (*ServerInterfaceWrapper) DeleteTokenForUser

func (siw *ServerInterfaceWrapper) DeleteTokenForUser(w http.ResponseWriter, r *http.Request)

DeleteTokenForUser operation middleware

func (*ServerInterfaceWrapper) DeleteUserByUuid

func (siw *ServerInterfaceWrapper) DeleteUserByUuid(w http.ResponseWriter, r *http.Request)

DeleteUserByUuid operation middleware

func (*ServerInterfaceWrapper) ExecuteProgramWebhook

func (siw *ServerInterfaceWrapper) ExecuteProgramWebhook(w http.ResponseWriter, r *http.Request)

ExecuteProgramWebhook operation middleware

func (*ServerInterfaceWrapper) FindAlertByUuid added in v0.1.2

func (siw *ServerInterfaceWrapper) FindAlertByUuid(w http.ResponseWriter, r *http.Request)

FindAlertByUuid operation middleware

func (*ServerInterfaceWrapper) FindAlerts

func (siw *ServerInterfaceWrapper) FindAlerts(w http.ResponseWriter, r *http.Request)

FindAlerts operation middleware

func (*ServerInterfaceWrapper) FindDatasetByUuid

func (siw *ServerInterfaceWrapper) FindDatasetByUuid(w http.ResponseWriter, r *http.Request)

FindDatasetByUuid operation middleware

func (*ServerInterfaceWrapper) FindDatasets

func (siw *ServerInterfaceWrapper) FindDatasets(w http.ResponseWriter, r *http.Request)

FindDatasets operation middleware

func (*ServerInterfaceWrapper) FindDatasetsForThing

func (siw *ServerInterfaceWrapper) FindDatasetsForThing(w http.ResponseWriter, r *http.Request)

FindDatasetsForThing operation middleware

func (*ServerInterfaceWrapper) FindGroupByUuid

func (siw *ServerInterfaceWrapper) FindGroupByUuid(w http.ResponseWriter, r *http.Request)

FindGroupByUuid operation middleware

func (*ServerInterfaceWrapper) FindGroups

func (siw *ServerInterfaceWrapper) FindGroups(w http.ResponseWriter, r *http.Request)

FindGroups operation middleware

func (*ServerInterfaceWrapper) FindPolicies

func (siw *ServerInterfaceWrapper) FindPolicies(w http.ResponseWriter, r *http.Request)

FindPolicies operation middleware

func (*ServerInterfaceWrapper) FindPoliciesForGroup

func (siw *ServerInterfaceWrapper) FindPoliciesForGroup(w http.ResponseWriter, r *http.Request)

FindPoliciesForGroup operation middleware

func (*ServerInterfaceWrapper) FindPoliciesForUser

func (siw *ServerInterfaceWrapper) FindPoliciesForUser(w http.ResponseWriter, r *http.Request)

FindPoliciesForUser operation middleware

func (*ServerInterfaceWrapper) FindPolicyByUuid

func (siw *ServerInterfaceWrapper) FindPolicyByUuid(w http.ResponseWriter, r *http.Request)

FindPolicyByUuid operation middleware

func (*ServerInterfaceWrapper) FindProgramByUuid

func (siw *ServerInterfaceWrapper) FindProgramByUuid(w http.ResponseWriter, r *http.Request)

FindProgramByUuid operation middleware

func (*ServerInterfaceWrapper) FindPrograms

func (siw *ServerInterfaceWrapper) FindPrograms(w http.ResponseWriter, r *http.Request)

FindPrograms operation middleware

func (*ServerInterfaceWrapper) FindThingByUuid

func (siw *ServerInterfaceWrapper) FindThingByUuid(w http.ResponseWriter, r *http.Request)

FindThingByUuid operation middleware

func (*ServerInterfaceWrapper) FindThings

func (siw *ServerInterfaceWrapper) FindThings(w http.ResponseWriter, r *http.Request)

FindThings operation middleware

func (*ServerInterfaceWrapper) FindTimeSeries

func (siw *ServerInterfaceWrapper) FindTimeSeries(w http.ResponseWriter, r *http.Request)

FindTimeSeries operation middleware

func (*ServerInterfaceWrapper) FindTimeSeriesByUuid

func (siw *ServerInterfaceWrapper) FindTimeSeriesByUuid(w http.ResponseWriter, r *http.Request)

FindTimeSeriesByUuid operation middleware

func (*ServerInterfaceWrapper) FindTimeSeriesForThing

func (siw *ServerInterfaceWrapper) FindTimeSeriesForThing(w http.ResponseWriter, r *http.Request)

FindTimeSeriesForThing operation middleware

func (*ServerInterfaceWrapper) FindTokensForUser

func (siw *ServerInterfaceWrapper) FindTokensForUser(w http.ResponseWriter, r *http.Request)

FindTokensForUser operation middleware

func (*ServerInterfaceWrapper) FindTsdataByQuery

func (siw *ServerInterfaceWrapper) FindTsdataByQuery(w http.ResponseWriter, r *http.Request)

FindTsdataByQuery operation middleware

func (*ServerInterfaceWrapper) FindUserByUuid

func (siw *ServerInterfaceWrapper) FindUserByUuid(w http.ResponseWriter, r *http.Request)

FindUserByUuid operation middleware

func (*ServerInterfaceWrapper) FindUsers

func (siw *ServerInterfaceWrapper) FindUsers(w http.ResponseWriter, r *http.Request)

FindUsers operation middleware

func (*ServerInterfaceWrapper) GetCodeFromProgram

func (siw *ServerInterfaceWrapper) GetCodeFromProgram(w http.ResponseWriter, r *http.Request)

GetCodeFromProgram operation middleware

func (*ServerInterfaceWrapper) GetProgramCodeRevisions

func (siw *ServerInterfaceWrapper) GetProgramCodeRevisions(w http.ResponseWriter, r *http.Request)

GetProgramCodeRevisions operation middleware

func (*ServerInterfaceWrapper) GetProgramCodeRevisionsDiff

func (siw *ServerInterfaceWrapper) GetProgramCodeRevisionsDiff(w http.ResponseWriter, r *http.Request)

GetProgramCodeRevisionsDiff operation middleware

func (*ServerInterfaceWrapper) GetRawDatasetByUuid

func (siw *ServerInterfaceWrapper) GetRawDatasetByUuid(w http.ResponseWriter, r *http.Request)

GetRawDatasetByUuid operation middleware

func (*ServerInterfaceWrapper) InitializeDatasetUploadByUuid

func (siw *ServerInterfaceWrapper) InitializeDatasetUploadByUuid(w http.ResponseWriter, r *http.Request)

InitializeDatasetUploadByUuid operation middleware

func (*ServerInterfaceWrapper) ListDatasetPartsByKey

func (siw *ServerInterfaceWrapper) ListDatasetPartsByKey(w http.ResponseWriter, r *http.Request)

ListDatasetPartsByKey operation middleware

func (*ServerInterfaceWrapper) QueryTimeseriesForData

func (siw *ServerInterfaceWrapper) QueryTimeseriesForData(w http.ResponseWriter, r *http.Request)

QueryTimeseriesForData operation middleware

func (*ServerInterfaceWrapper) SetRequestRateForUser

func (siw *ServerInterfaceWrapper) SetRequestRateForUser(w http.ResponseWriter, r *http.Request)

SetRequestRateForUser operation middleware

func (*ServerInterfaceWrapper) SignProgramCodeRevisions

func (siw *ServerInterfaceWrapper) SignProgramCodeRevisions(w http.ResponseWriter, r *http.Request)

SignProgramCodeRevisions operation middleware

func (*ServerInterfaceWrapper) UpdateAlertByUuid added in v0.1.2

func (siw *ServerInterfaceWrapper) UpdateAlertByUuid(w http.ResponseWriter, r *http.Request)

UpdateAlertByUuid operation middleware

func (*ServerInterfaceWrapper) UpdateDatasetByUuid

func (siw *ServerInterfaceWrapper) UpdateDatasetByUuid(w http.ResponseWriter, r *http.Request)

UpdateDatasetByUuid operation middleware

func (*ServerInterfaceWrapper) UpdateGroupByUuid

func (siw *ServerInterfaceWrapper) UpdateGroupByUuid(w http.ResponseWriter, r *http.Request)

UpdateGroupByUuid operation middleware

func (*ServerInterfaceWrapper) UpdatePolicyByUuid

func (siw *ServerInterfaceWrapper) UpdatePolicyByUuid(w http.ResponseWriter, r *http.Request)

UpdatePolicyByUuid operation middleware

func (*ServerInterfaceWrapper) UpdateProgramByUuid

func (siw *ServerInterfaceWrapper) UpdateProgramByUuid(w http.ResponseWriter, r *http.Request)

UpdateProgramByUuid operation middleware

func (*ServerInterfaceWrapper) UpdateThingByUuid

func (siw *ServerInterfaceWrapper) UpdateThingByUuid(w http.ResponseWriter, r *http.Request)

UpdateThingByUuid operation middleware

func (*ServerInterfaceWrapper) UpdateTimeseriesByUuid

func (siw *ServerInterfaceWrapper) UpdateTimeseriesByUuid(w http.ResponseWriter, r *http.Request)

UpdateTimeseriesByUuid operation middleware

func (*ServerInterfaceWrapper) UpdateUserByUuid

func (siw *ServerInterfaceWrapper) UpdateUserByUuid(w http.ResponseWriter, r *http.Request)

UpdateUserByUuid operation middleware

func (*ServerInterfaceWrapper) UploadDatasetContentByKey

func (siw *ServerInterfaceWrapper) UploadDatasetContentByKey(w http.ResponseWriter, r *http.Request)

UploadDatasetContentByKey operation middleware

func (*ServerInterfaceWrapper) Whoami

Whoami operation middleware

type ServiceFilterParam added in v0.1.2

type ServiceFilterParam []string

ServiceFilterParam defines model for serviceFilterParam.

type SetRequestRateForUserJSONRequestBody

type SetRequestRateForUserJSONRequestBody UpdateRequestRate

SetRequestRateForUserJSONRequestBody defines body for SetRequestRateForUser for application/json ContentType.

type SetRequestRateForUserResponse

type SetRequestRateForUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSetRequestRateForUserResponse

func ParseSetRequestRateForUserResponse(rsp *http.Response) (*SetRequestRateForUserResponse, error)

ParseSetRequestRateForUserResponse parses an HTTP response from a SetRequestRateForUserWithResponse call

func (SetRequestRateForUserResponse) Status

Status returns HTTPResponse.Status

func (SetRequestRateForUserResponse) StatusCode

func (r SetRequestRateForUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SeverityFilterParam added in v0.1.2

type SeverityFilterParam AlertSeverity

SeverityFilterParam defines model for severityFilterParam.

type SeverityGeFilterParam added in v0.1.2

type SeverityGeFilterParam AlertSeverity

SeverityGeFilterParam defines model for severityGeFilterParam.

type SeverityLeFilterParam added in v0.1.2

type SeverityLeFilterParam AlertSeverity

SeverityLeFilterParam defines model for severityLeFilterParam.

type SiUnitParam

type SiUnitParam string

SiUnitParam defines model for siUnitParam.

type SignProgramCodeRevisionsResponse

type SignProgramCodeRevisionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSignProgramCodeRevisionsResponse

func ParseSignProgramCodeRevisionsResponse(rsp *http.Response) (*SignProgramCodeRevisionsResponse, error)

ParseSignProgramCodeRevisionsResponse parses an HTTP response from a SignProgramCodeRevisionsWithResponse call

func (SignProgramCodeRevisionsResponse) Status

Status returns HTTPResponse.Status

func (SignProgramCodeRevisionsResponse) StatusCode

func (r SignProgramCodeRevisionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StatusFilterParam added in v0.1.2

type StatusFilterParam AlertStatus

StatusFilterParam defines model for statusFilterParam.

type TagsFilterParam

type TagsFilterParam []string

TagsFilterParam defines model for tagsFilterParam.

type Thing

type Thing struct {

	// Reference to a User
	CreatedBy string     `json:"created_by"`
	Name      string     `json:"name"`
	State     ThingState `json:"state"`
	Tags      []string   `json:"tags"`
	Type      *string    `json:"type"`
	Uuid      string     `json:"uuid"`
}

Thing defines model for Thing.

type ThingState

type ThingState string

ThingState defines model for Thing.State.

const (
	ThingStateActive ThingState = "active"

	ThingStateArchived ThingState = "archived"

	ThingStateInactive ThingState = "inactive"

	ThingStatePassive ThingState = "passive"
)

Defines values for ThingState.

type Timeseries

type Timeseries struct {
	CreatedBy  string   `json:"created_by"`
	LowerBound *float64 `json:"lower_bound"`
	Name       string   `json:"name"`
	SiUnit     string   `json:"si_unit"`
	Tags       []string `json:"tags"`
	ThingUuid  *string  `json:"thing_uuid"`
	UpperBound *float64 `json:"upper_bound"`
	Uuid       string   `json:"uuid"`
}

Timeseries defines model for Timeseries.

type TimezoneParam added in v0.1.1

type TimezoneParam string

TimezoneParam defines model for timezoneParam.

type Token

type Token struct {
	Created time.Time `json:"created"`
	Name    string    `json:"name"`
	Uuid    string    `json:"uuid"`
}

Token defines model for Token.

type TokenWithSecret

type TokenWithSecret struct {
	Name   string `json:"name"`
	Secret string `json:"secret"`
	Uuid   string `json:"uuid"`
}

TokenWithSecret defines model for TokenWithSecret.

type TsResults added in v0.1.1

type TsResults struct {
	Data []TsRow `json:"data"`

	// Reference to a Timeseries
	Uuid string `json:"uuid"`
}

TsResults defines model for TsResults.

type TsRow

type TsRow struct {

	// Date-time when created, as defined by RFC 3339, section 5.6.
	Ts time.Time `json:"ts"`

	// Any number
	V float32 `json:"v"`
}

TsRow defines model for TsRow.

type UpdateAlert added in v0.1.2

type UpdateAlert struct {
	Description *string `json:"description,omitempty"`
	Environment *string `json:"environment,omitempty"`
	Event       *string `json:"event,omitempty"`
	Origin      *string `json:"origin,omitempty"`

	// Base64 encoded raw data.
	Rawdata  *[]byte        `json:"rawdata,omitempty"`
	Resource *string        `json:"resource,omitempty"`
	Service  *[]string      `json:"service,omitempty"`
	Severity *AlertSeverity `json:"severity,omitempty"`
	Status   *AlertStatus   `json:"status,omitempty"`
	Tags     *[]string      `json:"tags,omitempty"`
	Timeout  *int32         `json:"timeout,omitempty"`
	Value    *string        `json:"value,omitempty"`
}

UpdateAlert defines model for UpdateAlert.

type UpdateAlertByUuidJSONRequestBody added in v0.1.2

type UpdateAlertByUuidJSONRequestBody UpdateAlert

UpdateAlertByUuidJSONRequestBody defines body for UpdateAlertByUuid for application/json ContentType.

type UpdateAlertByUuidResponse added in v0.1.2

type UpdateAlertByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateAlertByUuidResponse added in v0.1.2

func ParseUpdateAlertByUuidResponse(rsp *http.Response) (*UpdateAlertByUuidResponse, error)

ParseUpdateAlertByUuidResponse parses an HTTP response from a UpdateAlertByUuidWithResponse call

func (UpdateAlertByUuidResponse) Status added in v0.1.2

func (r UpdateAlertByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAlertByUuidResponse) StatusCode added in v0.1.2

func (r UpdateAlertByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateDataset

type UpdateDataset struct {

	// Base64 encoded content. Used for smaller uploads.
	Content *[]byte              `json:"content,omitempty"`
	Format  *UpdateDatasetFormat `json:"format,omitempty"`
	Name    *string              `json:"name,omitempty"`

	// An array of text labels (tags) for tracking and filtering purposes.
	Tags *[]string `json:"tags,omitempty"`

	// A reference to a Thing
	ThingUuid *string `json:"thing_uuid"`
}

The max allowed size of the complete request body is 1048576 bytes (1 MB). Performing a request with a Content-Length over this limit will result in a 400, malformed request error.

type UpdateDatasetByUuidJSONBodyFormat

type UpdateDatasetByUuidJSONBodyFormat string

UpdateDatasetByUuidJSONBodyFormat defines parameters for UpdateDatasetByUuid.

type UpdateDatasetByUuidJSONRequestBody

type UpdateDatasetByUuidJSONRequestBody UpdateDataset

UpdateDatasetByUuidJSONRequestBody defines body for UpdateDatasetByUuid for application/json ContentType.

type UpdateDatasetByUuidResponse

type UpdateDatasetByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateDatasetByUuidResponse

func ParseUpdateDatasetByUuidResponse(rsp *http.Response) (*UpdateDatasetByUuidResponse, error)

ParseUpdateDatasetByUuidResponse parses an HTTP response from a UpdateDatasetByUuidWithResponse call

func (UpdateDatasetByUuidResponse) Status

Status returns HTTPResponse.Status

func (UpdateDatasetByUuidResponse) StatusCode

func (r UpdateDatasetByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateDatasetFormat

type UpdateDatasetFormat DatasetFormat

type UpdateGroup

type UpdateGroup struct {
	Name string `json:"name"`
}

UpdateGroup defines model for UpdateGroup.

type UpdateGroupByUuidJSONRequestBody

type UpdateGroupByUuidJSONRequestBody UpdateGroup

UpdateGroupByUuidJSONRequestBody defines body for UpdateGroupByUuid for application/json ContentType.

type UpdateGroupByUuidResponse

type UpdateGroupByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateGroupByUuidResponse

func ParseUpdateGroupByUuidResponse(rsp *http.Response) (*UpdateGroupByUuidResponse, error)

ParseUpdateGroupByUuidResponse parses an HTTP response from a UpdateGroupByUuidWithResponse call

func (UpdateGroupByUuidResponse) Status

func (r UpdateGroupByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateGroupByUuidResponse) StatusCode

func (r UpdateGroupByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePolicy

type UpdatePolicy struct {
	Action    *UpdatePolicyAction `json:"action,omitempty"`
	Effect    *UpdatePolicyEffect `json:"effect,omitempty"`
	GroupUuid *string             `json:"group_uuid,omitempty"`
	Priority  *int                `json:"priority,omitempty"`
	Resource  *string             `json:"resource,omitempty"`
}

UpdatePolicy defines model for UpdatePolicy.

type UpdatePolicyAction

type UpdatePolicyAction PolicyAction

type UpdatePolicyByUuidJSONBodyAction

type UpdatePolicyByUuidJSONBodyAction string

UpdatePolicyByUuidJSONBodyAction defines parameters for UpdatePolicyByUuid.

type UpdatePolicyByUuidJSONBodyEffect

type UpdatePolicyByUuidJSONBodyEffect string

UpdatePolicyByUuidJSONBodyEffect defines parameters for UpdatePolicyByUuid.

type UpdatePolicyByUuidJSONRequestBody

type UpdatePolicyByUuidJSONRequestBody UpdatePolicy

UpdatePolicyByUuidJSONRequestBody defines body for UpdatePolicyByUuid for application/json ContentType.

type UpdatePolicyByUuidResponse

type UpdatePolicyByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdatePolicyByUuidResponse

func ParseUpdatePolicyByUuidResponse(rsp *http.Response) (*UpdatePolicyByUuidResponse, error)

ParseUpdatePolicyByUuidResponse parses an HTTP response from a UpdatePolicyByUuidWithResponse call

func (UpdatePolicyByUuidResponse) Status

Status returns HTTPResponse.Status

func (UpdatePolicyByUuidResponse) StatusCode

func (r UpdatePolicyByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePolicyEffect

type UpdatePolicyEffect PolicyEffect

type UpdateProgram

type UpdateProgram struct {

	// Ignored for Modules. An duration (in milliseconds) after which a Program (routine, webhook) shall terminate, to avoid long running programs.
	Deadline *int                   `json:"deadline,omitempty"`
	Language *UpdateProgramLanguage `json:"language,omitempty"`
	Name     *string                `json:"name,omitempty"`

	// Ignored for Modules and Webhooks. A CRON schedule on the typical [CRON format](https://en.wikipedia.org/wiki/Cron), yet with support for seconds.
	Schedule *string             `json:"schedule,omitempty"`
	State    *UpdateProgramState `json:"state,omitempty"`

	// An array of text labels (tags) for tracking and filtering purposes.
	Tags *[]string `json:"tags,omitempty"`

	// Routines are executed at an interval. Webhooks are called using the REST API. Modules are used by Routines and Webhooks to extend their functionality.
	Type *UpdateProgramType `json:"type,omitempty"`
}

UpdateProgram defines model for UpdateProgram.

type UpdateProgramByUuidJSONBodyLanguage

type UpdateProgramByUuidJSONBodyLanguage string

UpdateProgramByUuidJSONBodyLanguage defines parameters for UpdateProgramByUuid.

type UpdateProgramByUuidJSONBodyState

type UpdateProgramByUuidJSONBodyState string

UpdateProgramByUuidJSONBodyState defines parameters for UpdateProgramByUuid.

type UpdateProgramByUuidJSONBodyType

type UpdateProgramByUuidJSONBodyType string

UpdateProgramByUuidJSONBodyType defines parameters for UpdateProgramByUuid.

type UpdateProgramByUuidJSONRequestBody

type UpdateProgramByUuidJSONRequestBody UpdateProgram

UpdateProgramByUuidJSONRequestBody defines body for UpdateProgramByUuid for application/json ContentType.

type UpdateProgramByUuidResponse

type UpdateProgramByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateProgramByUuidResponse

func ParseUpdateProgramByUuidResponse(rsp *http.Response) (*UpdateProgramByUuidResponse, error)

ParseUpdateProgramByUuidResponse parses an HTTP response from a UpdateProgramByUuidWithResponse call

func (UpdateProgramByUuidResponse) Status

Status returns HTTPResponse.Status

func (UpdateProgramByUuidResponse) StatusCode

func (r UpdateProgramByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateProgramLanguage

type UpdateProgramLanguage ProgramLanguage

type UpdateProgramState

type UpdateProgramState ProgramState

type UpdateProgramType

type UpdateProgramType ProgramType

type UpdateRequestRate

type UpdateRequestRate struct {
	Rate *float32 `json:"rate,omitempty"`
}

UpdateRequestRate defines model for UpdateRequestRate.

type UpdateThing

type UpdateThing struct {

	// The name of the Thing.
	Name *string `json:"name,omitempty"`

	// The state of the thing.
	State *UpdateThingState `json:"state,omitempty"`

	// An array of text labels (tags) for tracking and filtering purposes.
	Tags *[]string `json:"tags,omitempty"`

	// A text label to organize Things into different types.
	Type *string `json:"type"`
}

UpdateThing defines model for UpdateThing.

type UpdateThingByUuidJSONBodyState

type UpdateThingByUuidJSONBodyState string

UpdateThingByUuidJSONBodyState defines parameters for UpdateThingByUuid.

type UpdateThingByUuidJSONRequestBody

type UpdateThingByUuidJSONRequestBody UpdateThing

UpdateThingByUuidJSONRequestBody defines body for UpdateThingByUuid for application/json ContentType.

type UpdateThingByUuidResponse

type UpdateThingByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateThingByUuidResponse

func ParseUpdateThingByUuidResponse(rsp *http.Response) (*UpdateThingByUuidResponse, error)

ParseUpdateThingByUuidResponse parses an HTTP response from a UpdateThingByUuidWithResponse call

func (UpdateThingByUuidResponse) Status

func (r UpdateThingByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateThingByUuidResponse) StatusCode

func (r UpdateThingByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateThingState

type UpdateThingState ThingState

type UpdateTimeseries

type UpdateTimeseries struct {

	// An optional lower bound at which values are accepted and stored. Values *less* than this will be rejected.
	LowerBound *float64 `json:"lower_bound"`

	// Name of the time-series.
	Name *string `json:"name,omitempty"`

	// SI unit.
	SiUnit *string `json:"si_unit,omitempty"`

	// An array of text labels (tags) for tracking and filtering purposes.
	Tags *[]string `json:"tags,omitempty"`

	// Optional reference to a Thing.
	ThingUuid *string `json:"thing_uuid"`

	// An optional upper bound at which values are accepted and stored. Values *greater* than this will be rejected.
	UpperBound *float64 `json:"upper_bound"`
}

UpdateTimeseries defines model for UpdateTimeseries.

type UpdateTimeseriesByUuidJSONRequestBody

type UpdateTimeseriesByUuidJSONRequestBody UpdateTimeseries

UpdateTimeseriesByUuidJSONRequestBody defines body for UpdateTimeseriesByUuid for application/json ContentType.

type UpdateTimeseriesByUuidResponse

type UpdateTimeseriesByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateTimeseriesByUuidResponse

func ParseUpdateTimeseriesByUuidResponse(rsp *http.Response) (*UpdateTimeseriesByUuidResponse, error)

ParseUpdateTimeseriesByUuidResponse parses an HTTP response from a UpdateTimeseriesByUuidWithResponse call

func (UpdateTimeseriesByUuidResponse) Status

Status returns HTTPResponse.Status

func (UpdateTimeseriesByUuidResponse) StatusCode

func (r UpdateTimeseriesByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUser

type UpdateUser struct {

	// Set the user groups. This parameter is incompatible with `groups_add` and `groups_remove`.
	Groups *[]string `json:"groups,omitempty"`

	// Add the user to these groups. This parameter is incompatible with `groups`.
	GroupsAdd *[]string `json:"groups_add,omitempty"`

	// Remove the user from these groups. This parameter is incompatible with `groups`.
	GroupsRemove *[]string `json:"groups_remove,omitempty"`
	Name         *string   `json:"name,omitempty"`
}

UpdateUser defines model for UpdateUser.

type UpdateUserByUuidJSONRequestBody

type UpdateUserByUuidJSONRequestBody UpdateUser

UpdateUserByUuidJSONRequestBody defines body for UpdateUserByUuid for application/json ContentType.

type UpdateUserByUuidResponse

type UpdateUserByUuidResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateUserByUuidResponse

func ParseUpdateUserByUuidResponse(rsp *http.Response) (*UpdateUserByUuidResponse, error)

ParseUpdateUserByUuidResponse parses an HTTP response from a UpdateUserByUuidWithResponse call

func (UpdateUserByUuidResponse) Status

func (r UpdateUserByUuidResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserByUuidResponse) StatusCode

func (r UpdateUserByUuidResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadDatasetContentByKeyParams

type UploadDatasetContentByKeyParams struct {
	PartNumber int    `json:"partNumber"`
	UploadId   string `json:"uploadId"`
	ContentMD5 string `json:"Content-MD5"`
}

UploadDatasetContentByKeyParams defines parameters for UploadDatasetContentByKey.

type UploadDatasetContentByKeyResponse

type UploadDatasetContentByKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message string `json:"message"`
	}
}

func ParseUploadDatasetContentByKeyResponse

func ParseUploadDatasetContentByKeyResponse(rsp *http.Response) (*UploadDatasetContentByKeyResponse, error)

ParseUploadDatasetContentByKeyResponse parses an HTTP response from a UploadDatasetContentByKeyWithResponse call

func (UploadDatasetContentByKeyResponse) Status

Status returns HTTPResponse.Status

func (UploadDatasetContentByKeyResponse) StatusCode

func (r UploadDatasetContentByKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type User

type User struct {
	Groups []Group `json:"groups"`
	Name   string  `json:"name"`
	Uuid   string  `json:"uuid"`
}

User defines model for User.

type UuidParam

type UuidParam string

UuidParam defines model for uuidParam.

type WhoamiResponse

type WhoamiResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]User
}

func ParseWhoamiResponse

func ParseWhoamiResponse(rsp *http.Response) (*WhoamiResponse, error)

ParseWhoamiResponse parses an HTTP response from a WhoamiWithResponse call

func (WhoamiResponse) Status

func (r WhoamiResponse) Status() string

Status returns HTTPResponse.Status

func (WhoamiResponse) StatusCode

func (r WhoamiResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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