Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CAM signature/authentication error. AUTHFAILURE = "AuthFailure" // Captcha signature error. AUTHFAILURE_CAPSIGERROR = "AuthFailure.CapSigError" // Request expired. AUTHFAILURE_EXPIRED = "AuthFailure.Expired" // DryRun operation means the request will be successful, but the DryRun parameter is passed. DRYRUNOPERATION = "DryRunOperation" // Operation failed. FAILEDOPERATION = "FailedOperation" // Internal error. INTERNALERROR = "InternalError" // Business system logic error. INTERNALERROR_BACKENDLOGICERROR = "InternalError.BackendLogicError" // Connection to the database timed out. INTERNALERROR_CONNECTDBTIMEOUT = "InternalError.ConnectDBTimeout" // Sign backend error. INTERNALERROR_SIGNBACKENDERROR = "InternalError.SignBackendError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // Captcha signature error. INVALIDPARAMETER_CAPSIGERROR = "InvalidParameter.CapSigError" // Parameter error. INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" // URL error. INVALIDPARAMETER_URLERROR = "InvalidParameter.UrlError" // Version error. INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" // Parameter value error. INVALIDPARAMETERVALUE = "InvalidParameterValue" // BadBody。 INVALIDPARAMETERVALUE_BADBODY = "InvalidParameterValue.BadBody" // The request packet is too large. INVALIDPARAMETERVALUE_BODYTOOLARGE = "InvalidParameterValue.BodyTooLarge" // Captcha mismatch. INVALIDPARAMETERVALUE_CAPMISMATCH = "InvalidParameterValue.CapMisMatch" // HTTP method error. INVALIDPARAMETERVALUE_HTTPMETHODERROR = "InvalidParameterValue.HttpMethodError" // Date value error. INVALIDPARAMETERVALUE_INVALIDDATE = "InvalidParameterValue.InvalidDate" // Incorrect PageLimit value. INVALIDPARAMETERVALUE_INVALIDLIMIT = "InvalidParameterValue.InvalidLimit" // PageNum value error. INVALIDPARAMETERVALUE_INVALIDNUM = "InvalidParameterValue.InvalidNum" // SrvId value error. INVALIDPARAMETERVALUE_INVALIDSRVID = "InvalidParameterValue.InvalidSrvId" // Stride value error. INVALIDPARAMETERVALUE_INVALIDSTRIDE = "InvalidParameterValue.InvalidStride" // The quota limit is exceeded. LIMITEXCEEDED = "LimitExceeded" // Quota exceeded. LIMITEXCEEDED_FREQCNT = "LimitExceeded.FreqCnt" // Quota exceeded (user IP address). LIMITEXCEEDED_IPFREQCNT = "LimitExceeded.IpFreqCnt" // Restricted keyword frequency control. LIMITEXCEEDED_KEYFREQCNT = "LimitExceeded.KeyFreqCnt" // Replay attack. LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" // Parameters are missing MISSINGPARAMETER = "MissingParameter" // Operation denied. OPERATIONDENIED = "OperationDenied" // Too many and frequent requests. REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // The resource is occupied. RESOURCEINUSE = "ResourceInUse" // Insufficient resources. RESOURCEINSUFFICIENT = "ResourceInsufficient" // The resource does not exist. RESOURCENOTFOUND = "ResourceNotFound" // The API does not exist. RESOURCENOTFOUND_INTERFACENOTFOUND = "ResourceNotFound.InterfaceNotFound" // Resources are unavailable. RESOURCEUNAVAILABLE = "ResourceUnavailable" // Service permission not activated. RESOURCEUNAVAILABLE_PERMISSIONDENIED = "ResourceUnavailable.PermissionDenied" // Resources are sold out. RESOURCESSOLDOUT = "ResourcesSoldOut" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // Authentication failed. UNAUTHORIZEDOPERATION_AUTHFAILED = "UnauthorizedOperation.AuthFailed" // Unknown parameter error. UNKNOWNPARAMETER = "UnknownParameter" // The key does not exist. UNKNOWNPARAMETER_SECRETIDNOTEXISTS = "UnknownParameter.SecretIdNotExists" // The operation is not supported. UNSUPPORTEDOPERATION = "UnsupportedOperation" )
View Source
const APIVersion = "2020-11-03"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeRiskAssessment ¶
func (c *Client) DescribeRiskAssessment(request *DescribeRiskAssessmentRequest) (response *DescribeRiskAssessmentResponse, err error)
DescribeRiskAssessment This API is used to query risk assessment results.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_CAPSIGERROR = "AuthFailure.CapSigError" AUTHFAILURE_EXPIRED = "AuthFailure.Expired" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_BACKENDLOGICERROR = "InternalError.BackendLogicError" INTERNALERROR_CONNECTDBTIMEOUT = "InternalError.ConnectDBTimeout" INTERNALERROR_SIGNBACKENDERROR = "InternalError.SignBackendError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CAPSIGERROR = "InvalidParameter.CapSigError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_URLERROR = "InvalidParameter.UrlError" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_BADBODY = "InvalidParameterValue.BadBody" INVALIDPARAMETERVALUE_BODYTOOLARGE = "InvalidParameterValue.BodyTooLarge" INVALIDPARAMETERVALUE_CAPMISMATCH = "InvalidParameterValue.CapMisMatch" INVALIDPARAMETERVALUE_HTTPMETHODERROR = "InvalidParameterValue.HttpMethodError" INVALIDPARAMETERVALUE_INVALIDDATE = "InvalidParameterValue.InvalidDate" INVALIDPARAMETERVALUE_INVALIDLIMIT = "InvalidParameterValue.InvalidLimit" INVALIDPARAMETERVALUE_INVALIDNUM = "InvalidParameterValue.InvalidNum" INVALIDPARAMETERVALUE_INVALIDSRVID = "InvalidParameterValue.InvalidSrvId" INVALIDPARAMETERVALUE_INVALIDSTRIDE = "InvalidParameterValue.InvalidStride" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_FREQCNT = "LimitExceeded.FreqCnt" LIMITEXCEEDED_IPFREQCNT = "LimitExceeded.IpFreqCnt" LIMITEXCEEDED_KEYFREQCNT = "LimitExceeded.KeyFreqCnt" LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INTERFACENOTFOUND = "ResourceNotFound.InterfaceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCEUNAVAILABLE_PERMISSIONDENIED = "ResourceUnavailable.PermissionDenied" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_AUTHFAILED = "UnauthorizedOperation.AuthFailed" UNKNOWNPARAMETER = "UnknownParameter" UNKNOWNPARAMETER_SECRETIDNOTEXISTS = "UnknownParameter.SecretIdNotExists" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeRiskAssessmentWithContext ¶
func (c *Client) DescribeRiskAssessmentWithContext(ctx context.Context, request *DescribeRiskAssessmentRequest) (response *DescribeRiskAssessmentResponse, err error)
DescribeRiskAssessment This API is used to query risk assessment results.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_CAPSIGERROR = "AuthFailure.CapSigError" AUTHFAILURE_EXPIRED = "AuthFailure.Expired" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_BACKENDLOGICERROR = "InternalError.BackendLogicError" INTERNALERROR_CONNECTDBTIMEOUT = "InternalError.ConnectDBTimeout" INTERNALERROR_SIGNBACKENDERROR = "InternalError.SignBackendError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CAPSIGERROR = "InvalidParameter.CapSigError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_URLERROR = "InvalidParameter.UrlError" INVALIDPARAMETER_VERSIONERROR = "InvalidParameter.VersionError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_BADBODY = "InvalidParameterValue.BadBody" INVALIDPARAMETERVALUE_BODYTOOLARGE = "InvalidParameterValue.BodyTooLarge" INVALIDPARAMETERVALUE_CAPMISMATCH = "InvalidParameterValue.CapMisMatch" INVALIDPARAMETERVALUE_HTTPMETHODERROR = "InvalidParameterValue.HttpMethodError" INVALIDPARAMETERVALUE_INVALIDDATE = "InvalidParameterValue.InvalidDate" INVALIDPARAMETERVALUE_INVALIDLIMIT = "InvalidParameterValue.InvalidLimit" INVALIDPARAMETERVALUE_INVALIDNUM = "InvalidParameterValue.InvalidNum" INVALIDPARAMETERVALUE_INVALIDSRVID = "InvalidParameterValue.InvalidSrvId" INVALIDPARAMETERVALUE_INVALIDSTRIDE = "InvalidParameterValue.InvalidStride" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_FREQCNT = "LimitExceeded.FreqCnt" LIMITEXCEEDED_IPFREQCNT = "LimitExceeded.IpFreqCnt" LIMITEXCEEDED_KEYFREQCNT = "LimitExceeded.KeyFreqCnt" LIMITEXCEEDED_REPLAYATTACK = "LimitExceeded.ReplayAttack" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INTERFACENOTFOUND = "ResourceNotFound.InterfaceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCEUNAVAILABLE_PERMISSIONDENIED = "ResourceUnavailable.PermissionDenied" RESOURCESSOLDOUT = "ResourcesSoldOut" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_AUTHFAILED = "UnauthorizedOperation.AuthFailed" UNKNOWNPARAMETER = "UnknownParameter" UNKNOWNPARAMETER_SECRETIDNOTEXISTS = "UnknownParameter.SecretIdNotExists" UNSUPPORTEDOPERATION = "UnsupportedOperation"
type DescribeRiskAssessmentRequest ¶
type DescribeRiskAssessmentRequest struct { *tchttp.BaseRequest // Business parameters BizCryptoData *InputBizCryptoData `json:"BizCryptoData,omitnil,omitempty" name:"BizCryptoData"` }
func NewDescribeRiskAssessmentRequest ¶
func NewDescribeRiskAssessmentRequest() (request *DescribeRiskAssessmentRequest)
func (*DescribeRiskAssessmentRequest) FromJsonString ¶
func (r *DescribeRiskAssessmentRequest) 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 (*DescribeRiskAssessmentRequest) ToJsonString ¶
func (r *DescribeRiskAssessmentRequest) ToJsonString() string
type DescribeRiskAssessmentRequestParams ¶
type DescribeRiskAssessmentRequestParams struct { // Business parameters BizCryptoData *InputBizCryptoData `json:"BizCryptoData,omitnil,omitempty" name:"BizCryptoData"` }
Predefined struct for user
type DescribeRiskAssessmentResponse ¶
type DescribeRiskAssessmentResponse struct { *tchttp.BaseResponse Response *DescribeRiskAssessmentResponseParams `json:"Response"` }
func NewDescribeRiskAssessmentResponse ¶
func NewDescribeRiskAssessmentResponse() (response *DescribeRiskAssessmentResponse)
func (*DescribeRiskAssessmentResponse) FromJsonString ¶
func (r *DescribeRiskAssessmentResponse) 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 (*DescribeRiskAssessmentResponse) ToJsonString ¶
func (r *DescribeRiskAssessmentResponse) ToJsonString() string
type DescribeRiskAssessmentResponseParams ¶
type DescribeRiskAssessmentResponseParams struct { // Business output parameters. Data *OutputRiskAssessment `json:"Data,omitnil,omitempty" name:"Data"` // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type InputBizCryptoData ¶
type InputBizCryptoData struct { // Whether to authorize. IsAuthorized *string `json:"IsAuthorized,omitnil,omitempty" name:"IsAuthorized"` // Encryption type. CryptoType *string `json:"CryptoType,omitnil,omitempty" name:"CryptoType"` // Encrypted content. CryptoContent *string `json:"CryptoContent,omitnil,omitempty" name:"CryptoContent"` }
type OutputRiskAssessment ¶
type OutputRiskAssessment struct { // Return code. // Note: This field may return null, indicating that no valid value is found. Code *int64 `json:"Code,omitnil,omitempty" name:"Code"` // Returned information // // Note: This field may return null, indicating that no valid value is found. Message *string `json:"Message,omitnil,omitempty" name:"Message"` // Business details. // Note: This field may return null, indicating that no valid value is found. Value *OutputRiskAssessmentInfo `json:"Value,omitnil,omitempty" name:"Value"` // Request ID. // Note: This field may return null, indicating that no valid value is found. UUid *string `json:"UUid,omitnil,omitempty" name:"UUid"` }
type OutputRiskAssessmentExtraInfoPair ¶
type OutputRiskAssessmentExtraInfoPair struct { // Key. // Note: This field may return null, indicating that no valid value is found. Key *string `json:"Key,omitnil,omitempty" name:"Key"` // Value. // Note: This field may return null, indicating that no valid value is found. Value *string `json:"Value,omitnil,omitempty" name:"Value"` }
type OutputRiskAssessmentInfo ¶
type OutputRiskAssessmentInfo struct { // Risk value. // Note: This field may return null, indicating that no valid value is found. RiskLevel *string `json:"RiskLevel,omitnil,omitempty" name:"RiskLevel"` // Risk type. // Note: This field may return null, indicating that no valid value is found. RiskType []*int64 `json:"RiskType,omitnil,omitempty" name:"RiskType"` // Device identification // // Note: This field may return null, indicating that no valid value is found. DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"` // Extended attributes. // Note: This field may return null, indicating that no valid value is found. ExtraInfo []*OutputRiskAssessmentExtraInfoPair `json:"ExtraInfo,omitnil,omitempty" name:"ExtraInfo"` // Token generation timestamp. // Note: This field may return null, indicating that no valid value is found. TokenTime *string `json:"TokenTime,omitnil,omitempty" name:"TokenTime"` }
Click to show internal directories.
Click to hide internal directories.