Documentation ¶
Index ¶
- type BatchDeviceStateOptions
- type BatchUpdateDeviceNicknameOptions
- type DeviceListOptions
- type ProductListOptions
- type QueryDeviceOptions
- func (opts *QueryDeviceOptions) GenerateDeleteDeviceRequest(iotInstanceId string) (*iot.DeleteDeviceRequest, error)
- func (opts *QueryDeviceOptions) GenerateDisableThingRequest(iotInstanceId string) (*iot.DisableThingRequest, error)
- func (opts *QueryDeviceOptions) GenerateEnableThingRequest(iotInstanceId string) (*iot.EnableThingRequest, error)
- func (opts *QueryDeviceOptions) GenerateQueryDeviceDetailRequest(iotInstanceId string) (*iot.QueryDeviceDetailRequest, error)
- func (opts *QueryDeviceOptions) GenerateQueryDeviceInfoRequest(iotInstanceId string) (*iot.QueryDeviceInfoRequest, error)
- type RegisterDeviceOptions
- type UpdateDeviceNicknameOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchDeviceStateOptions ¶
type BatchDeviceStateOptions struct { ProductKey string `json:"ProductKey,omitempty"` // 要查询设备所属产品标识,需同时设置 DeviceName 参数 DeviceName *[]string `json:"DeviceName,omitempty"` // 要查看运行状态的设备的名称列表,需同时设置 ProductKey 参数 IotId *[]string `json:"IotId,omitempty"` // 要查看运行状态的设备 ID 列表 }
BatchDeviceStateOptions 批量获取设备状态设置选项
func (*BatchDeviceStateOptions) GenerateRequest ¶
func (opts *BatchDeviceStateOptions) GenerateRequest(iotInstanceId string) (*iot.BatchGetDeviceStateRequest, error)
GenerateRequest 生成批量获取设备状态请求
type BatchUpdateDeviceNicknameOptions ¶ added in v1.1.0
type BatchUpdateDeviceNicknameOptions []*UpdateDeviceNicknameOptions
BatchUpdateDeviceNicknameOptions 批量更新设备备注名称选项
func (*BatchUpdateDeviceNicknameOptions) GenerateRequest ¶ added in v1.1.0
func (opts *BatchUpdateDeviceNicknameOptions) GenerateRequest(iotInstanceId string) (*iot.BatchUpdateDeviceNicknameRequest, error)
type DeviceListOptions ¶
type DeviceListOptions struct { ProductKey string `json:"ProductKey"` // 要查询的设备所属产品标识 PageSize int `json:"PageSize,omitempty"` // 每页记录数,最大值是 50, 默认值是 10 CurrentPage int `json:"CurrentPage,omitempty"` // 当前页数,默认为 1 NextToken string `json:"NextToken,omitempty"` // 下一页标识,首次查询无需传入。后续查询需使用的NextToken,要从上一次查询的返回结果中获取 }
DeviceListOptions 获取设备列表设置选项
func (*DeviceListOptions) GenerateRequest ¶
func (opts *DeviceListOptions) GenerateRequest(iotInstanceId string) *iot.QueryDeviceRequest
GenerateRequest 生成获取设备列表请求
type ProductListOptions ¶
type ProductListOptions struct { CurrentPage int `json:"currentPage,omitempty"` PageSize int `json:"pageSize,omitempty"` }
ProductListOptions 获取产品列表设置选项
func (*ProductListOptions) GenerateRequest ¶
func (opts *ProductListOptions) GenerateRequest(iotInstanceId string) *iot.QueryProductListRequest
GenerateRequest 生成获取产品列表请求
type QueryDeviceOptions ¶
type QueryDeviceOptions struct { ProductKey string `json:"ProductKey,omitempty"` // 要查询设备所属产品标识,需同时设置 DeviceName 参数 DeviceName string `json:"DeviceName,omitempty"` // 要查询设备名称,需同时设置 ProductKey 参数 IotId string `json:"IotId,omitempty"` // 要查询设备 ID,如果设置该参数则无需设置 ProductKey 和 DeviceName 参数,同时设置时以 IotId 为准 }
QueryDeviceOptions 查询设备设置选项
func (*QueryDeviceOptions) GenerateDeleteDeviceRequest ¶
func (opts *QueryDeviceOptions) GenerateDeleteDeviceRequest(iotInstanceId string) (*iot.DeleteDeviceRequest, error)
func (*QueryDeviceOptions) GenerateDisableThingRequest ¶
func (opts *QueryDeviceOptions) GenerateDisableThingRequest(iotInstanceId string) (*iot.DisableThingRequest, error)
func (*QueryDeviceOptions) GenerateEnableThingRequest ¶
func (opts *QueryDeviceOptions) GenerateEnableThingRequest(iotInstanceId string) (*iot.EnableThingRequest, error)
func (*QueryDeviceOptions) GenerateQueryDeviceDetailRequest ¶
func (opts *QueryDeviceOptions) GenerateQueryDeviceDetailRequest(iotInstanceId string) (*iot.QueryDeviceDetailRequest, error)
func (*QueryDeviceOptions) GenerateQueryDeviceInfoRequest ¶
func (opts *QueryDeviceOptions) GenerateQueryDeviceInfoRequest(iotInstanceId string) (*iot.QueryDeviceInfoRequest, error)
GenerateQueryDeviceInfoRequest 生成查询设备信息请求
type RegisterDeviceOptions ¶
type RegisterDeviceOptions struct { ProductKey string `json:"productKey"` // 设备所属产品标识 DeviceName string `json:"deviceName"` // 设备名称,设备的唯一标识 Nickname string `json:"nickname,omitempty"` // 设备的备注名称 }
RegisterDeviceOptions 注册设备设置选项
func (*RegisterDeviceOptions) GenerateRequest ¶
func (opts *RegisterDeviceOptions) GenerateRequest(iotInstanceId string) *iot.RegisterDeviceRequest
GenerateRequest 生成注册设备请求
type UpdateDeviceNicknameOptions ¶ added in v1.1.0
type UpdateDeviceNicknameOptions struct { ProductKey string `json:"ProductKey,omitempty"` // 要查询设备所属产品标识,需同时设置 DeviceName 参数 DeviceName string `json:"DeviceName,omitempty"` // 要查看运行状态的设备的名称列表,需同时设置 ProductKey 参数 IotId string `json:"IotId,omitempty"` // 要查看运行状态的设备 ID 列表 Nickname string `json:"Nickname"` // 新的设备备注名称 }
UpdateDeviceNicknameOptions 更新设备备注名称选项
func (*UpdateDeviceNicknameOptions) GenerateDeviceNicknameInfo ¶ added in v1.1.0
func (opts *UpdateDeviceNicknameOptions) GenerateDeviceNicknameInfo() (*iot.BatchUpdateDeviceNicknameDeviceNicknameInfo, error)
Click to show internal directories.
Click to hide internal directories.