Documentation ¶
Index ¶
- func GenReqDefForBindInstanceTags() *def.HttpRequestDef
- func GenReqDefForChangeInstanceChargeMode() *def.HttpRequestDef
- func GenReqDefForCreateInstance() *def.HttpRequestDef
- func GenReqDefForDeleteInstance() *def.HttpRequestDef
- func GenReqDefForListInstances() *def.HttpRequestDef
- func GenReqDefForResizeInstance() *def.HttpRequestDef
- func GenReqDefForShowInstance() *def.HttpRequestDef
- func GenReqDefForUnbindInstanceTags() *def.HttpRequestDef
- func GenReqDefForUpdateInstance() *def.HttpRequestDef
- func IoTDMClientBuilder() *httpclient.HcHttpClientBuilder
- type BindInstanceTagsInvoker
- type ChangeInstanceChargeModeInvoker
- type CreateInstanceInvoker
- type DeleteInstanceInvoker
- type IoTDMClient
- func (c *IoTDMClient) BindInstanceTags(request *model.BindInstanceTagsRequest) (*model.BindInstanceTagsResponse, error)
- func (c *IoTDMClient) BindInstanceTagsInvoker(request *model.BindInstanceTagsRequest) *BindInstanceTagsInvoker
- func (c *IoTDMClient) ChangeInstanceChargeMode(request *model.ChangeInstanceChargeModeRequest) (*model.ChangeInstanceChargeModeResponse, error)
- func (c *IoTDMClient) ChangeInstanceChargeModeInvoker(request *model.ChangeInstanceChargeModeRequest) *ChangeInstanceChargeModeInvoker
- func (c *IoTDMClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error)
- func (c *IoTDMClient) CreateInstanceInvoker(request *model.CreateInstanceRequest) *CreateInstanceInvoker
- func (c *IoTDMClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error)
- func (c *IoTDMClient) DeleteInstanceInvoker(request *model.DeleteInstanceRequest) *DeleteInstanceInvoker
- func (c *IoTDMClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)
- func (c *IoTDMClient) ListInstancesInvoker(request *model.ListInstancesRequest) *ListInstancesInvoker
- func (c *IoTDMClient) ResizeInstance(request *model.ResizeInstanceRequest) (*model.ResizeInstanceResponse, error)
- func (c *IoTDMClient) ResizeInstanceInvoker(request *model.ResizeInstanceRequest) *ResizeInstanceInvoker
- func (c *IoTDMClient) ShowInstance(request *model.ShowInstanceRequest) (*model.ShowInstanceResponse, error)
- func (c *IoTDMClient) ShowInstanceInvoker(request *model.ShowInstanceRequest) *ShowInstanceInvoker
- func (c *IoTDMClient) UnbindInstanceTags(request *model.UnbindInstanceTagsRequest) (*model.UnbindInstanceTagsResponse, error)
- func (c *IoTDMClient) UnbindInstanceTagsInvoker(request *model.UnbindInstanceTagsRequest) *UnbindInstanceTagsInvoker
- func (c *IoTDMClient) UpdateInstance(request *model.UpdateInstanceRequest) (*model.UpdateInstanceResponse, error)
- func (c *IoTDMClient) UpdateInstanceInvoker(request *model.UpdateInstanceRequest) *UpdateInstanceInvoker
- type ListInstancesInvoker
- type ResizeInstanceInvoker
- type ShowInstanceInvoker
- type UnbindInstanceTagsInvoker
- type UpdateInstanceInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForBindInstanceTags ¶
func GenReqDefForBindInstanceTags() *def.HttpRequestDef
func GenReqDefForChangeInstanceChargeMode ¶
func GenReqDefForChangeInstanceChargeMode() *def.HttpRequestDef
func GenReqDefForCreateInstance ¶
func GenReqDefForCreateInstance() *def.HttpRequestDef
func GenReqDefForDeleteInstance ¶
func GenReqDefForDeleteInstance() *def.HttpRequestDef
func GenReqDefForListInstances ¶
func GenReqDefForListInstances() *def.HttpRequestDef
func GenReqDefForResizeInstance ¶
func GenReqDefForResizeInstance() *def.HttpRequestDef
func GenReqDefForShowInstance ¶
func GenReqDefForShowInstance() *def.HttpRequestDef
func GenReqDefForUnbindInstanceTags ¶
func GenReqDefForUnbindInstanceTags() *def.HttpRequestDef
func GenReqDefForUpdateInstance ¶
func GenReqDefForUpdateInstance() *def.HttpRequestDef
func IoTDMClientBuilder ¶
func IoTDMClientBuilder() *httpclient.HcHttpClientBuilder
Types ¶
type BindInstanceTagsInvoker ¶
type BindInstanceTagsInvoker struct {
*invoker.BaseInvoker
}
func (*BindInstanceTagsInvoker) Invoke ¶
func (i *BindInstanceTagsInvoker) Invoke() (*model.BindInstanceTagsResponse, error)
type ChangeInstanceChargeModeInvoker ¶
type ChangeInstanceChargeModeInvoker struct {
*invoker.BaseInvoker
}
func (*ChangeInstanceChargeModeInvoker) Invoke ¶
func (i *ChangeInstanceChargeModeInvoker) Invoke() (*model.ChangeInstanceChargeModeResponse, error)
type CreateInstanceInvoker ¶
type CreateInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*CreateInstanceInvoker) Invoke ¶
func (i *CreateInstanceInvoker) Invoke() (*model.CreateInstanceResponse, error)
type DeleteInstanceInvoker ¶
type DeleteInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteInstanceInvoker) Invoke ¶
func (i *DeleteInstanceInvoker) Invoke() (*model.DeleteInstanceResponse, error)
type IoTDMClient ¶
type IoTDMClient struct {
HcClient *httpclient.HcHttpClient
}
func NewIoTDMClient ¶
func NewIoTDMClient(hcClient *httpclient.HcHttpClient) *IoTDMClient
func (*IoTDMClient) BindInstanceTags ¶
func (c *IoTDMClient) BindInstanceTags(request *model.BindInstanceTagsRequest) (*model.BindInstanceTagsResponse, error)
BindInstanceTags 添加实例标签
添加实例标签。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) BindInstanceTagsInvoker ¶
func (c *IoTDMClient) BindInstanceTagsInvoker(request *model.BindInstanceTagsRequest) *BindInstanceTagsInvoker
BindInstanceTagsInvoker 添加实例标签
func (*IoTDMClient) ChangeInstanceChargeMode ¶
func (c *IoTDMClient) ChangeInstanceChargeMode(request *model.ChangeInstanceChargeModeRequest) (*model.ChangeInstanceChargeModeResponse, error)
ChangeInstanceChargeMode 修改实例计费模式
修改设备接入实例的计费模式,支持将按需计费模式修改为包年/包月计费模式。 接口约束:当前实例的规格支持包年/包月计费模式时,才可以修改实例的计费模式为包年/包月。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) ChangeInstanceChargeModeInvoker ¶
func (c *IoTDMClient) ChangeInstanceChargeModeInvoker(request *model.ChangeInstanceChargeModeRequest) *ChangeInstanceChargeModeInvoker
ChangeInstanceChargeModeInvoker 修改实例计费模式
func (*IoTDMClient) CreateInstance ¶
func (c *IoTDMClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error)
CreateInstance 创建设备接入实例
用户可以调用此接口创建一个设备接入实例。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 [接口约束: - 请保证账户余额充足,此接口无法使用优惠券支付,在创建包年/包月实例时,若余额不足会创建一个待支付订单。 - 若想使用优惠券,请将请求中的is_auto_pay字段设置为false,参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用优惠券进行支付。 - 如果您需要退订包年/包月资源,请参考[\"退订包年/包月资源\"](https://support.huaweicloud.com/api-bpconsole/api_order_00019.html)。](tag:hws)
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) CreateInstanceInvoker ¶
func (c *IoTDMClient) CreateInstanceInvoker(request *model.CreateInstanceRequest) *CreateInstanceInvoker
CreateInstanceInvoker 创建设备接入实例
func (*IoTDMClient) DeleteInstance ¶
func (c *IoTDMClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error)
DeleteInstance 删除实例
删除设备接入实例。约束:此接口仅支持删除按需计费的实例。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) DeleteInstanceInvoker ¶
func (c *IoTDMClient) DeleteInstanceInvoker(request *model.DeleteInstanceRequest) *DeleteInstanceInvoker
DeleteInstanceInvoker 删除实例
func (*IoTDMClient) ListInstances ¶
func (c *IoTDMClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)
ListInstances 查询实例列表
用户可以调用此接口查询设备接入实例列表。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) ListInstancesInvoker ¶
func (c *IoTDMClient) ListInstancesInvoker(request *model.ListInstancesRequest) *ListInstancesInvoker
ListInstancesInvoker 查询实例列表
func (*IoTDMClient) ResizeInstance ¶
func (c *IoTDMClient) ResizeInstance(request *model.ResizeInstanceRequest) (*model.ResizeInstanceResponse, error)
ResizeInstance 修改实例规格信息
修改设备接入实例的规格。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) ResizeInstanceInvoker ¶
func (c *IoTDMClient) ResizeInstanceInvoker(request *model.ResizeInstanceRequest) *ResizeInstanceInvoker
ResizeInstanceInvoker 修改实例规格信息
func (*IoTDMClient) ShowInstance ¶
func (c *IoTDMClient) ShowInstance(request *model.ShowInstanceRequest) (*model.ShowInstanceResponse, error)
ShowInstance 查询实例详情
查询设备接入实例详情。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) ShowInstanceInvoker ¶
func (c *IoTDMClient) ShowInstanceInvoker(request *model.ShowInstanceRequest) *ShowInstanceInvoker
ShowInstanceInvoker 查询实例详情
func (*IoTDMClient) UnbindInstanceTags ¶
func (c *IoTDMClient) UnbindInstanceTags(request *model.UnbindInstanceTagsRequest) (*model.UnbindInstanceTagsResponse, error)
UnbindInstanceTags 删除实例标签
删除实例标签。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) UnbindInstanceTagsInvoker ¶
func (c *IoTDMClient) UnbindInstanceTagsInvoker(request *model.UnbindInstanceTagsRequest) *UnbindInstanceTagsInvoker
UnbindInstanceTagsInvoker 删除实例标签
func (*IoTDMClient) UpdateInstance ¶
func (c *IoTDMClient) UpdateInstance(request *model.UpdateInstanceRequest) (*model.UpdateInstanceResponse, error)
UpdateInstance 修改实例信息
修改设备接入实例信息。
Please refer to HUAWEI cloud API Explorer for details.
func (*IoTDMClient) UpdateInstanceInvoker ¶
func (c *IoTDMClient) UpdateInstanceInvoker(request *model.UpdateInstanceRequest) *UpdateInstanceInvoker
UpdateInstanceInvoker 修改实例信息
type ListInstancesInvoker ¶
type ListInstancesInvoker struct {
*invoker.BaseInvoker
}
func (*ListInstancesInvoker) Invoke ¶
func (i *ListInstancesInvoker) Invoke() (*model.ListInstancesResponse, error)
type ResizeInstanceInvoker ¶
type ResizeInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*ResizeInstanceInvoker) Invoke ¶
func (i *ResizeInstanceInvoker) Invoke() (*model.ResizeInstanceResponse, error)
type ShowInstanceInvoker ¶
type ShowInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*ShowInstanceInvoker) Invoke ¶
func (i *ShowInstanceInvoker) Invoke() (*model.ShowInstanceResponse, error)
type UnbindInstanceTagsInvoker ¶
type UnbindInstanceTagsInvoker struct {
*invoker.BaseInvoker
}
func (*UnbindInstanceTagsInvoker) Invoke ¶
func (i *UnbindInstanceTagsInvoker) Invoke() (*model.UnbindInstanceTagsResponse, error)
type UpdateInstanceInvoker ¶
type UpdateInstanceInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateInstanceInvoker) Invoke ¶
func (i *UpdateInstanceInvoker) Invoke() (*model.UpdateInstanceResponse, error)