iot

package
v0.0.0-...-bbc24d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCheckDeviceNamesRequest

type BatchCheckDeviceNamesRequest struct {
	*requests.RpcRequest
	ProductKey string `position:"Query" name:"ProductKey"`
}

BatchCheckDeviceNamesRequest is the request struct for api BatchCheckDeviceNames

func CreateBatchCheckDeviceNamesRequest

func CreateBatchCheckDeviceNamesRequest() (request *BatchCheckDeviceNamesRequest)

CreateBatchCheckDeviceNamesRequest creates a request to invoke BatchCheckDeviceNames request

func (*BatchCheckDeviceNamesRequest) SetDeviceNames

func (request *BatchCheckDeviceNamesRequest) SetDeviceNames(deviceNames []string)

SetDeviceName is the request struct for set device name

type BatchCheckDeviceNamesResponse

type BatchCheckDeviceNamesResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

BatchCheckDeviceNamesResponse is the response struct for api BatchCheckDeviceNames

func CreateBatchCheckDeviceNamesResponse

func CreateBatchCheckDeviceNamesResponse() (response *BatchCheckDeviceNamesResponse)

CreateBatchCheckDeviceNamesResponse creates a response to parse from BatchCheckDeviceNames response

type BatchGetDeviceStateRequest

type BatchGetDeviceStateRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
}

BatchGetDeviceStateRequest is the request struct for api BatchGetDeviceState

func CreateBatchGetDeviceStateRequest

func CreateBatchGetDeviceStateRequest() (request *BatchGetDeviceStateRequest)

CreateBatchGetDeviceStateRequest creates a request to invoke BatchGetDeviceState request

func (*BatchGetDeviceStateRequest) SetDeviceName

func (request *BatchGetDeviceStateRequest) SetDeviceName(deviceName []string)

SetDeviceName is the request struct for set device name

type BatchGetDeviceStateResponse

type BatchGetDeviceStateResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

BatchGetDeviceStateResponse is the response struct for api BatchGetDeviceState

func CreateBatchGetDeviceStateResponse

func CreateBatchGetDeviceStateResponse() (response *BatchGetDeviceStateResponse)

CreateBatchGetDeviceStateResponse creates a response to parse from BatchGetDeviceState response

type BatchRegisterDeviceRequest

type BatchRegisterDeviceRequest struct {
	*requests.RpcRequest
	ProductKey string           `position:"Query" name:"ProductKey"`
	Count      requests.Integer `position:"Query" name:"Count"`
}

BatchRegisterDeviceRequest is the request struct for api BatchRegisterDevice

func CreateBatchRegisterDeviceRequest

func CreateBatchRegisterDeviceRequest() (request *BatchRegisterDeviceRequest)

CreateBatchRegisterDeviceRequest creates a request to invoke BatchRegisterDevice request

type BatchRegisterDeviceResponse

type BatchRegisterDeviceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

BatchRegisterDeviceResponse is the response struct for api BatchRegisterDevice

func CreateBatchRegisterDeviceResponse

func CreateBatchRegisterDeviceResponse() (response *BatchRegisterDeviceResponse)

CreateBatchRegisterDeviceResponse creates a response to parse from BatchRegisterDevice response

type BatchRegisterDeviceWithApplyIdRequest

type BatchRegisterDeviceWithApplyIdRequest struct {
	*requests.RpcRequest
	ProductKey string           `position:"Query" name:"ProductKey"`
	ApplyId    requests.Integer `position:"Query" name:"ApplyId"`
}

BatchRegisterDeviceWithApplyIdRequest is the request struct for api BatchRegisterDeviceWithApplyId

func CreateBatchRegisterDeviceWithApplyIdRequest

func CreateBatchRegisterDeviceWithApplyIdRequest() (request *BatchRegisterDeviceWithApplyIdRequest)

CreateBatchRegisterDeviceWithApplyIdRequest creates a request to invoke BatchRegisterDeviceWithApplyId request

type BatchRegisterDeviceWithApplyIdResponse

type BatchRegisterDeviceWithApplyIdResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

BatchRegisterDeviceWithApplyIdResponse is the response struct for api BatchRegisterDeviceWithApplyId

func CreateBatchRegisterDeviceWithApplyIdResponse

func CreateBatchRegisterDeviceWithApplyIdResponse() (response *BatchRegisterDeviceWithApplyIdResponse)

CreateBatchRegisterDeviceWithApplyIdResponse creates a response to parse from BatchRegisterDeviceWithApplyId response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html

func (*Client) BatchCheckDeviceNames

func (client *Client) BatchCheckDeviceNames(request *BatchCheckDeviceNamesRequest) (response *BatchCheckDeviceNamesResponse, err error)

BatchCheckDeviceNames invokes the iot.BatchCheckDeviceNames API synchronously api document: https://help.aliyun.com/document_detail/69482.html

func (*Client) BatchGetDeviceState

func (client *Client) BatchGetDeviceState(request *BatchGetDeviceStateRequest) (response *BatchGetDeviceStateResponse, err error)

BatchGetDeviceState invokes the iot.BatchGetDeviceState API synchronously api document: https://help.aliyun.com/document_detail/69906.html

func (*Client) BatchRegisterDevice

func (client *Client) BatchRegisterDevice(request *BatchRegisterDeviceRequest) (response *BatchRegisterDeviceResponse, err error)

BatchRegisterDevice invokes the iot.BatchRegisterDevice API synchronously api document: https://help.aliyun.com/document_detail/69473.html

func (*Client) BatchRegisterDeviceWithApplyId

func (client *Client) BatchRegisterDeviceWithApplyId(request *BatchRegisterDeviceWithApplyIdRequest) (response *BatchRegisterDeviceWithApplyIdResponse, err error)

BatchRegisterDeviceWithApplyId invokes the iot.BatchRegisterDeviceWithApplyId API synchronously api document: https://help.aliyun.com/document_detail/69514.html

func (*Client) DeleteDevice

func (client *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)

DeleteDevice invokes the iot.DeleteDevice API synchronously api document: https://help.aliyun.com/document_detail/69281.html

func (*Client) DisableThing

func (client *Client) DisableThing(request *DisableThingRequest) (response *DisableThingResponse, err error)

DisableThing invokes the iot.DisableThing API synchronously api document: https://help.aliyun.com/document_detail/69602.html

func (*Client) EnableThing

func (client *Client) EnableThing(request *EnableThingRequest) (response *EnableThingResponse, err error)

EnableThing invokes the iot.EnableThing API synchronously api document: https://help.aliyun.com/document_detail/69603.html

func (*Client) GetDeviceStatus

func (client *Client) GetDeviceStatus(request *GetDeviceStatusRequest) (response *GetDeviceStatusResponse, err error)

GetDeviceStatus invokes the iot.GetDeviceStatus API synchronously api document: https://help.aliyun.com/document_detail/69617.html

func (*Client) QueryBatchRegisterDeviceStatus

func (client *Client) QueryBatchRegisterDeviceStatus(request *QueryBatchRegisterDeviceStatusRequest) (response *QueryBatchRegisterDeviceStatusResponse, err error)

QueryBatchRegisterDeviceStatus invokes the iot.QueryBatchRegisterDeviceStatus API synchronously api document: https://help.aliyun.com/document_detail/69483.html

func (*Client) QueryDevice

func (client *Client) QueryDevice(request *QueryDeviceRequest) (response *QueryDeviceResponse, err error)

QueryDevice invokes the iot.QueryDevice API synchronously api document: https://help.aliyun.com/document_detail/69905.html

func (*Client) QueryDeviceDetail

func (client *Client) QueryDeviceDetail(request *QueryDeviceDetailRequest) (response *QueryDeviceDetailResponse, err error)

QueryDeviceDetail invokes the iot.QueryDeviceDetail API synchronously api document: https://help.aliyun.com/document_detail/69594.html

func (*Client) QueryDeviceProp

func (client *Client) QueryDeviceProp(request *QueryDevicePropRequest) (response *QueryDevicePropResponse, err error)

QueryDeviceProp invokes the iot.QueryDeviceProp API synchronously api document: https://help.aliyun.com/document_detail/69633.html

func (*Client) QueryPageByApplyId

func (client *Client) QueryPageByApplyId(request *QueryPageByApplyIdRequest) (response *QueryPageByApplyIdResponse, err error)

QueryPageByApplyId invokes the iot.QueryPageByApplyId API synchronously api document: https://help.aliyun.com/document_detail/69518.html

func (*Client) RegisterDevice

func (client *Client) RegisterDevice(request *RegisterDeviceRequest) (response *RegisterDeviceResponse, err error)

RegisterDevice invokes the iot.RegisterDevice API synchronously api document: https://help.aliyun.com/document_detail/69470.html

func (*Client) SetDeviceProperty

func (client *Client) SetDeviceProperty(request *SetDevicePropertyRequest) (response *SetDevicePropertyResponse, err error)

SetDeviceProperty invokes the iot.SetDeviceProperty API synchronously api document: https://help.aliyun.com/document_detail/69579.html

func (*Client) SetDevicesProperty

func (client *Client) SetDevicesProperty(request *SetDevicesPropertyRequest) (response *SetDevicesPropertyResponse, err error)

SetDevicesProperty invokes the iot.SetDevicesProperty API synchronously api document: https://help.aliyun.com/document_detail/96243.html

type DeleteDeviceRequest

type DeleteDeviceRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
}

DeleteDeviceRequest is the request struct for api DeleteDevice

func CreateDeleteDeviceRequest

func CreateDeleteDeviceRequest() (request *DeleteDeviceRequest)

CreateDeleteDeviceRequest creates a request to invoke DeleteDevice request

type DeleteDeviceResponse

type DeleteDeviceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DeleteDeviceResponse is the response struct for api DeleteDevice

func CreateDeleteDeviceResponse

func CreateDeleteDeviceResponse() (response *DeleteDeviceResponse)

CreateDeleteDeviceResponse creates a response to parse from DeleteDevice response

type DisableThingRequest

type DisableThingRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
}

DisableThingRequest is the request struct for api DisableThing

func CreateDisableThingRequest

func CreateDisableThingRequest() (request *DisableThingRequest)

CreateDisableThingRequest creates a request to invoke DisableThing request

type DisableThingResponse

type DisableThingResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DisableThingResponse is the response struct for api DisableThing

func CreateDisableThingResponse

func CreateDisableThingResponse() (response *DisableThingResponse)

CreateDisableThingResponse creates a response to parse from DisableThing response

type EnableThingRequest

type EnableThingRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
}

EnableThingRequest is the request struct for api EnableThing

func CreateEnableThingRequest

func CreateEnableThingRequest() (request *EnableThingRequest)

CreateEnableThingRequest creates a request to invoke EnableThing request

type EnableThingResponse

type EnableThingResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

EnableThingResponse is the response struct for api EnableThing

func CreateEnableThingResponse

func CreateEnableThingResponse() (response *EnableThingResponse)

CreateEnableThingResponse creates a response to parse from EnableThing response

type GetDeviceStatusRequest

type GetDeviceStatusRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
}

GetDeviceStatusRequest is the request struct for api GetDeviceStatus

func CreateGetDeviceStatusRequest

func CreateGetDeviceStatusRequest() (request *GetDeviceStatusRequest)

CreateGetDeviceStatusRequest creates a request to invoke GetDeviceStatus request

type GetDeviceStatusResponse

type GetDeviceStatusResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

GetDeviceStatusResponse is the response struct for api GetDeviceStatus

func CreateGetDeviceStatusResponse

func CreateGetDeviceStatusResponse() (response *GetDeviceStatusResponse)

CreateGetDeviceStatusResponse creates a response to parse from GetDeviceStatus response

type QueryBatchRegisterDeviceStatusRequest

type QueryBatchRegisterDeviceStatusRequest struct {
	*requests.RpcRequest
	ProductKey string           `position:"Query" name:"ProductKey"`
	ApplyId    requests.Integer `position:"Query" name:"ApplyId"`
}

QueryBatchRegisterDeviceStatusRequest is the request struct for api QueryBatchRegisterDeviceStatus

func CreateQueryBatchRegisterDeviceStatusRequest

func CreateQueryBatchRegisterDeviceStatusRequest() (request *QueryBatchRegisterDeviceStatusRequest)

CreateQueryBatchRegisterDeviceStatusRequest creates a request to invoke QueryBatchRegisterDeviceStatus request

type QueryBatchRegisterDeviceStatusResponse

type QueryBatchRegisterDeviceStatusResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

QueryBatchRegisterDeviceStatusResponse is the response struct for api QueryBatchRegisterDeviceStatus

func CreateQueryBatchRegisterDeviceStatusResponse

func CreateQueryBatchRegisterDeviceStatusResponse() (response *QueryBatchRegisterDeviceStatusResponse)

CreateQueryBatchRegisterDeviceStatusResponse creates a response to parse from QueryBatchRegisterDeviceStatus response

type QueryDeviceDetailRequest

type QueryDeviceDetailRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
}

QueryDeviceDetailRequest is the request struct for api QueryDeviceDetail

func CreateQueryDeviceDetailRequest

func CreateQueryDeviceDetailRequest() (request *QueryDeviceDetailRequest)

CreateQueryDeviceDetailRequest creates a request to invoke QueryDeviceDetail request

type QueryDeviceDetailResponse

type QueryDeviceDetailResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

QueryDeviceDetailResponse is the response struct for api QueryDeviceDetail

func CreateQueryDeviceDetailResponse

func CreateQueryDeviceDetailResponse() (response *QueryDeviceDetailResponse)

CreateQueryDeviceDetailResponse creates a response to parse from QueryDeviceDetail response

type QueryDevicePropRequest

type QueryDevicePropRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
}

QueryDevicePropRequest is the request struct for api QueryDeviceProp

func CreateQueryDevicePropRequest

func CreateQueryDevicePropRequest() (request *QueryDevicePropRequest)

CreateQueryDevicePropRequest creates a request to invoke QueryDeviceProp request

type QueryDevicePropResponse

type QueryDevicePropResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

QueryDevicePropResponse is the response struct for api QueryDeviceProp

func CreateQueryDevicePropResponse

func CreateQueryDevicePropResponse() (response *QueryDevicePropResponse)

CreateQueryDevicePropResponse creates a response to parse from QueryDeviceProp response

type QueryDeviceRequest

type QueryDeviceRequest struct {
	*requests.RpcRequest
	PageSize    requests.Integer `position:"Query" name:"PageSize"`
	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
	ProductKey  string           `position:"Query" name:"ProductKey"`
}

QueryDeviceRequest is the request struct for api QueryDevice

func CreateQueryDeviceRequest

func CreateQueryDeviceRequest() (request *QueryDeviceRequest)

CreateQueryDeviceRequest creates a request to invoke QueryDevice request

type QueryDeviceResponse

type QueryDeviceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

QueryDeviceResponse is the response struct for api QueryDevice

func CreateQueryDeviceResponse

func CreateQueryDeviceResponse() (response *QueryDeviceResponse)

CreateQueryDeviceResponse creates a response to parse from QueryDevice response

type QueryPageByApplyIdRequest

type QueryPageByApplyIdRequest struct {
	*requests.RpcRequest
	PageSize    requests.Integer `position:"Query" name:"PageSize"`
	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
	ApplyId     int64            `position:"Query" name:"ApplyId"`
}

QueryPageByApplyIdRequest is the request struct for api QueryPageByApplyId

func CreateQueryPageByApplyIdRequest

func CreateQueryPageByApplyIdRequest() (request *QueryPageByApplyIdRequest)

CreateQueryPageByApplyIdRequest creates a request to invoke QueryPageByApplyId request

type QueryPageByApplyIdResponse

type QueryPageByApplyIdResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

QueryPageByApplyIdResponse is the response struct for api QueryPageByApplyId

func CreateQueryPageByApplyIdResponse

func CreateQueryPageByApplyIdResponse() (response *QueryPageByApplyIdResponse)

CreateQueryPageByApplyIdResponse creates a response to parse from QueryPageByApplyId response

type RegisterDeviceRequest

type RegisterDeviceRequest struct {
	*requests.RpcRequest
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
}

RegisterDeviceRequest is the request struct for api RegisterDevice

func CreateRegisterDeviceRequest

func CreateRegisterDeviceRequest() (request *RegisterDeviceRequest)

CreateRegisterDeviceRequest creates a request to invoke RegisterDevice request

type RegisterDeviceResponse

type RegisterDeviceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

RegisterDeviceResponse is the response struct for api RegisterDevice

func CreateRegisterDeviceResponse

func CreateRegisterDeviceResponse() (response *RegisterDeviceResponse)

CreateRegisterDeviceResponse creates a response to parse from RegisterDevice response

type SetDevicePropertyRequest

type SetDevicePropertyRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	DeviceName string `position:"Query" name:"DeviceName"`
	Items      string `position:"Query" name:"Items"`
}

SetDevicePropertyRequest is the request struct for api SetDeviceProperty

func CreateSetDevicePropertyRequest

func CreateSetDevicePropertyRequest() (request *SetDevicePropertyRequest)

CreateSetDevicePropertyRequest creates a request to invoke SetDeviceProperty request

type SetDevicePropertyResponse

type SetDevicePropertyResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

SetDevicePropertyResponse is the response struct for api SetDeviceProperty

func CreateSetDevicePropertyResponse

func CreateSetDevicePropertyResponse() (response *SetDevicePropertyResponse)

CreateSetDevicePropertyResponse creates a response to parse from SetDeviceProperty response

type SetDevicesPropertyRequest

type SetDevicesPropertyRequest struct {
	*requests.RpcRequest
	IotId      string `position:"Query" name:"IotId"`
	ProductKey string `position:"Query" name:"ProductKey"`
	Items      string `position:"Query" name:"Items"`
}

SetDevicesPropertyRequest is the request struct for api SetDeviceProperty

func CreateSetDevicesPropertyRequest

func CreateSetDevicesPropertyRequest() (request *SetDevicesPropertyRequest)

CreateSetDevicesPropertyRequest creates a request to invokeSetDeviceProperty request

func (*SetDevicesPropertyRequest) SetDeviceNames

func (request *SetDevicesPropertyRequest) SetDeviceNames(deviceNames []string)

SetDeviceNames is the request struct for set device names

type SetDevicesPropertyResponse

type SetDevicesPropertyResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

SetDevicesPropertyResponse is the response struct for api SetDeviceProperty

func CreateSetDevicesPropertyResponse

func CreateSetDevicesPropertyResponse() (response *SetDevicesPropertyResponse)

CreateSetDevicesPropertyResponse creates a response to parse from SetDeviceProperty response

Jump to

Keyboard shortcuts

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