v20220420

package
v1.0.520 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CAM签名/鉴权错误。
	AUTHFAILURE = "AuthFailure"

	// DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
	DRYRUNOPERATION = "DryRunOperation"

	// 操作失败。
	FAILEDOPERATION = "FailedOperation"

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 分组名称已存在。
	INVALIDPARAMETER_GROUPNAMEEXISTED = "InvalidParameter.GroupNameExisted"

	// 记录超出限制。
	INVALIDPARAMETER_RECORDEXCEEDSLIMIT = "InvalidParameter.RecordExceedsLimit"

	// 记录参数验证不通过。
	INVALIDPARAMETER_RECORDPARAMETERCHECKFAIL = "InvalidParameter.RecordParameterCheckFail"

	// 记录参数解析不通过。
	INVALIDPARAMETER_RECORDPARAMETERPARSEFAIL = "InvalidParameter.RecordParameterParseFail"

	// 参数取值错误。
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// 超过配额限制。
	LIMITEXCEEDED = "LimitExceeded"

	// 缺少参数错误。
	MISSINGPARAMETER = "MissingParameter"

	// 操作被拒绝。
	OPERATIONDENIED = "OperationDenied"

	// 请求的次数超过了频率限制。
	REQUESTLIMITEXCEEDED = "RequestLimitExceeded"

	// 资源被占用。
	RESOURCEINUSE = "ResourceInUse"

	// 资源不足。
	RESOURCEINSUFFICIENT = "ResourceInsufficient"

	// 资源不存在。
	RESOURCENOTFOUND = "ResourceNotFound"

	// 资源不可用。
	RESOURCEUNAVAILABLE = "ResourceUnavailable"

	// 资源售罄。
	RESOURCESSOLDOUT = "ResourcesSoldOut"

	// 未授权操作。
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

	// 未知参数错误。
	UNKNOWNPARAMETER = "UnknownParameter"

	// 操作不支持。
	UNSUPPORTEDOPERATION = "UnsupportedOperation"
)
View Source
const APIVersion = "2022-04-20"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateBlockNodeRecords

func (c *Client) CreateBlockNodeRecords(request *CreateBlockNodeRecordsRequest) (response *CreateBlockNodeRecordsResponse, err error)

CreateBlockNodeRecords 推送节点数据

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
DRYRUNOPERATION = "DryRunOperation"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_GROUPNAMEEXISTED = "InvalidParameter.GroupNameExisted"
INVALIDPARAMETER_RECORDEXCEEDSLIMIT = "InvalidParameter.RecordExceedsLimit"
INVALIDPARAMETER_RECORDPARAMETERCHECKFAIL = "InvalidParameter.RecordParameterCheckFail"
INVALIDPARAMETER_RECORDPARAMETERPARSEFAIL = "InvalidParameter.RecordParameterParseFail"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED = "LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINSUFFICIENT = "ResourceInsufficient"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCEUNAVAILABLE = "ResourceUnavailable"
RESOURCESSOLDOUT = "ResourcesSoldOut"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) CreateBlockNodeRecordsWithContext

func (c *Client) CreateBlockNodeRecordsWithContext(ctx context.Context, request *CreateBlockNodeRecordsRequest) (response *CreateBlockNodeRecordsResponse, err error)

CreateBlockNodeRecords 推送节点数据

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
DRYRUNOPERATION = "DryRunOperation"
FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_GROUPNAMEEXISTED = "InvalidParameter.GroupNameExisted"
INVALIDPARAMETER_RECORDEXCEEDSLIMIT = "InvalidParameter.RecordExceedsLimit"
INVALIDPARAMETER_RECORDPARAMETERCHECKFAIL = "InvalidParameter.RecordParameterCheckFail"
INVALIDPARAMETER_RECORDPARAMETERPARSEFAIL = "InvalidParameter.RecordParameterParseFail"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED = "LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINSUFFICIENT = "ResourceInsufficient"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCEUNAVAILABLE = "ResourceUnavailable"
RESOURCESSOLDOUT = "ResourcesSoldOut"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

type CreateBlockNodeRecordsRequest

type CreateBlockNodeRecordsRequest struct {
	*tchttp.BaseRequest

	// 盘查组id,可在“盘查组概览”功能中获取。
	GroupId *string `json:"GroupId,omitempty" name:"GroupId"`

	// 节点id,可在“数据接入管理”中获取。
	NodeId *string `json:"NodeId,omitempty" name:"NodeId"`

	// 节点数据json,具体demo请参考输入示例,其中key为数据接入管理中节点内创建的属性变量名,value为期望的推送值。
	Records *string `json:"Records,omitempty" name:"Records"`
}

func NewCreateBlockNodeRecordsRequest

func NewCreateBlockNodeRecordsRequest() (request *CreateBlockNodeRecordsRequest)

func (*CreateBlockNodeRecordsRequest) FromJsonString

func (r *CreateBlockNodeRecordsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateBlockNodeRecordsRequest) ToJsonString

func (r *CreateBlockNodeRecordsRequest) ToJsonString() string

type CreateBlockNodeRecordsRequestParams added in v1.0.426

type CreateBlockNodeRecordsRequestParams struct {
	// 盘查组id,可在“盘查组概览”功能中获取。
	GroupId *string `json:"GroupId,omitempty" name:"GroupId"`

	// 节点id,可在“数据接入管理”中获取。
	NodeId *string `json:"NodeId,omitempty" name:"NodeId"`

	// 节点数据json,具体demo请参考输入示例,其中key为数据接入管理中节点内创建的属性变量名,value为期望的推送值。
	Records *string `json:"Records,omitempty" name:"Records"`
}

Predefined struct for user

type CreateBlockNodeRecordsResponse

type CreateBlockNodeRecordsResponse struct {
	*tchttp.BaseResponse
	Response *CreateBlockNodeRecordsResponseParams `json:"Response"`
}

func NewCreateBlockNodeRecordsResponse

func NewCreateBlockNodeRecordsResponse() (response *CreateBlockNodeRecordsResponse)

func (*CreateBlockNodeRecordsResponse) FromJsonString

func (r *CreateBlockNodeRecordsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateBlockNodeRecordsResponse) ToJsonString

func (r *CreateBlockNodeRecordsResponse) ToJsonString() string

type CreateBlockNodeRecordsResponseParams added in v1.0.426

type CreateBlockNodeRecordsResponseParams struct {
	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

Jump to

Keyboard shortcuts

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