Documentation ¶
Index ¶
- Constants
- type AdInfo
- type AppDetailInfo
- type AppInfo
- type AppScanSet
- type AppSetInfo
- type BindInfo
- type Client
- func (c *Client) CreateBindInstance(request *CreateBindInstanceRequest) (response *CreateBindInstanceResponse, err error)
- func (c *Client) CreateCosSecKeyInstance(request *CreateCosSecKeyInstanceRequest) (response *CreateCosSecKeyInstanceResponse, err error)
- func (c *Client) CreateResourceInstances(request *CreateResourceInstancesRequest) (response *CreateResourceInstancesResponse, err error)
- func (c *Client) CreateScanInstances(request *CreateScanInstancesRequest) (response *CreateScanInstancesResponse, err error)
- func (c *Client) CreateShieldInstance(request *CreateShieldInstanceRequest) (response *CreateShieldInstanceResponse, err error)
- func (c *Client) CreateShieldPlanInstance(request *CreateShieldPlanInstanceRequest) (response *CreateShieldPlanInstanceResponse, err error)
- func (c *Client) DeleteScanInstances(request *DeleteScanInstancesRequest) (response *DeleteScanInstancesResponse, err error)
- func (c *Client) DeleteShieldInstances(request *DeleteShieldInstancesRequest) (response *DeleteShieldInstancesResponse, err error)
- func (c *Client) DescribeResourceInstances(request *DescribeResourceInstancesRequest) (response *DescribeResourceInstancesResponse, err error)
- func (c *Client) DescribeScanInstances(request *DescribeScanInstancesRequest) (response *DescribeScanInstancesResponse, err error)
- func (c *Client) DescribeScanResults(request *DescribeScanResultsRequest) (response *DescribeScanResultsResponse, err error)
- func (c *Client) DescribeShieldInstances(request *DescribeShieldInstancesRequest) (response *DescribeShieldInstancesResponse, err error)
- func (c *Client) DescribeShieldPlanInstance(request *DescribeShieldPlanInstanceRequest) (response *DescribeShieldPlanInstanceResponse, err error)
- func (c *Client) DescribeShieldResult(request *DescribeShieldResultRequest) (response *DescribeShieldResultResponse, err error)
- func (c *Client) DescribeUserBaseInfoInstance(request *DescribeUserBaseInfoInstanceRequest) (response *DescribeUserBaseInfoInstanceResponse, err error)
- type CreateBindInstanceRequest
- type CreateBindInstanceResponse
- type CreateCosSecKeyInstanceRequest
- type CreateCosSecKeyInstanceResponse
- type CreateResourceInstancesRequest
- type CreateResourceInstancesResponse
- type CreateScanInstancesRequest
- type CreateScanInstancesResponse
- type CreateShieldInstanceRequest
- type CreateShieldInstanceResponse
- type CreateShieldPlanInstanceRequest
- type CreateShieldPlanInstanceResponse
- type DeleteScanInstancesRequest
- type DeleteScanInstancesResponse
- type DeleteShieldInstancesRequest
- type DeleteShieldInstancesResponse
- type DescribeResourceInstancesRequest
- type DescribeResourceInstancesResponse
- type DescribeScanInstancesRequest
- type DescribeScanInstancesResponse
- type DescribeScanResultsRequest
- type DescribeScanResultsResponse
- type DescribeShieldInstancesRequest
- type DescribeShieldInstancesResponse
- type DescribeShieldPlanInstanceRequest
- type DescribeShieldPlanInstanceResponse
- type DescribeShieldResultRequest
- type DescribeShieldResultResponse
- type DescribeUserBaseInfoInstanceRequest
- type DescribeUserBaseInfoInstanceResponse
- type Filter
- type PlanDetailInfo
- type PlanInfo
- type PluginInfo
- type ResourceInfo
- type ResourceServiceInfo
- type ScanInfo
- type ScanPermissionInfo
- type ScanPermissionList
- type ScanSensitiveInfo
- type ScanSensitiveList
- type ScanSetInfo
- type ServiceInfo
- type ShieldInfo
- type ShieldPlanInfo
- type SoInfo
- type VirusInfo
- type VulInfo
- type VulList
Constants ¶
View Source
const APIVersion = "2018-04-08"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdInfo ¶
type AdInfo struct { // 插播广告列表 Spots []*PluginInfo `json:"Spots,omitempty" name:"Spots" list` // 精品推荐广告列表 BoutiqueRecommands []*PluginInfo `json:"BoutiqueRecommands,omitempty" name:"BoutiqueRecommands" list` // 悬浮窗广告列表 FloatWindowses []*PluginInfo `json:"FloatWindowses,omitempty" name:"FloatWindowses" list` // banner广告列表 Banners []*PluginInfo `json:"Banners,omitempty" name:"Banners" list` // 积分墙广告列表 IntegralWalls []*PluginInfo `json:"IntegralWalls,omitempty" name:"IntegralWalls" list` // 通知栏广告列表 NotifyBars []*PluginInfo `json:"NotifyBars,omitempty" name:"NotifyBars" list` }
type AppDetailInfo ¶
type AppDetailInfo struct { // app的名称 AppName *string `json:"AppName,omitempty" name:"AppName"` // app的包名 AppPkgName *string `json:"AppPkgName,omitempty" name:"AppPkgName"` // app的版本号 AppVersion *string `json:"AppVersion,omitempty" name:"AppVersion"` // app的大小 AppSize *uint64 `json:"AppSize,omitempty" name:"AppSize"` // app的md5 AppMd5 *string `json:"AppMd5,omitempty" name:"AppMd5"` // app的图标url AppIconUrl *string `json:"AppIconUrl,omitempty" name:"AppIconUrl"` // app的文件名称 FileName *string `json:"FileName,omitempty" name:"FileName"` }
type AppInfo ¶
type AppInfo struct { // app的url,必须保证不用权限校验就可以下载 AppUrl *string `json:"AppUrl,omitempty" name:"AppUrl"` // app的md5,需要正确传递 AppMd5 *string `json:"AppMd5,omitempty" name:"AppMd5"` // app的大小 AppSize *uint64 `json:"AppSize,omitempty" name:"AppSize"` // app的文件名,指定后加固后的文件名是{FileName}_legu.apk FileName *string `json:"FileName,omitempty" name:"FileName"` // app的包名,需要正确的传递此字段 AppPkgName *string `json:"AppPkgName,omitempty" name:"AppPkgName"` // app的版本号 AppVersion *string `json:"AppVersion,omitempty" name:"AppVersion"` // app的图标url AppIconUrl *string `json:"AppIconUrl,omitempty" name:"AppIconUrl"` // app的名称 AppName *string `json:"AppName,omitempty" name:"AppName"` }
type AppScanSet ¶
type AppScanSet struct { // 任务唯一标识 ItemId *string `json:"ItemId,omitempty" name:"ItemId"` // app的名称 AppName *string `json:"AppName,omitempty" name:"AppName"` // app的包名 AppPkgName *string `json:"AppPkgName,omitempty" name:"AppPkgName"` // app的版本号 AppVersion *string `json:"AppVersion,omitempty" name:"AppVersion"` // app的md5 AppMd5 *string `json:"AppMd5,omitempty" name:"AppMd5"` // app的大小 AppSize *uint64 `json:"AppSize,omitempty" name:"AppSize"` // 扫描结果返回码 ScanCode *uint64 `json:"ScanCode,omitempty" name:"ScanCode"` // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // 提交扫描时间 TaskTime *uint64 `json:"TaskTime,omitempty" name:"TaskTime"` // app的图标url AppIconUrl *string `json:"AppIconUrl,omitempty" name:"AppIconUrl"` // 标识唯一该app,主要用于删除 AppSid *string `json:"AppSid,omitempty" name:"AppSid"` // 安全类型:1-安全软件,2-风险软件,3病毒软件 SafeType *uint64 `json:"SafeType,omitempty" name:"SafeType"` // 漏洞个数 VulCount *uint64 `json:"VulCount,omitempty" name:"VulCount"` }
type AppSetInfo ¶
type AppSetInfo struct { // 任务唯一标识 ItemId *string `json:"ItemId,omitempty" name:"ItemId"` // app的名称 AppName *string `json:"AppName,omitempty" name:"AppName"` // app的包名 AppPkgName *string `json:"AppPkgName,omitempty" name:"AppPkgName"` // app的版本号 AppVersion *string `json:"AppVersion,omitempty" name:"AppVersion"` // app的md5 AppMd5 *string `json:"AppMd5,omitempty" name:"AppMd5"` // app的大小 AppSize *uint64 `json:"AppSize,omitempty" name:"AppSize"` // 加固服务版本 ServiceEdition *string `json:"ServiceEdition,omitempty" name:"ServiceEdition"` // 加固结果返回码 ShieldCode *uint64 `json:"ShieldCode,omitempty" name:"ShieldCode"` // 加固后的APP下载地址 AppUrl *string `json:"AppUrl,omitempty" name:"AppUrl"` // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // 请求的客户端ip ClientIp *string `json:"ClientIp,omitempty" name:"ClientIp"` // 提交加固时间 TaskTime *uint64 `json:"TaskTime,omitempty" name:"TaskTime"` // app的图标url AppIconUrl *string `json:"AppIconUrl,omitempty" name:"AppIconUrl"` // 加固后app的md5 ShieldMd5 *string `json:"ShieldMd5,omitempty" name:"ShieldMd5"` // 加固后app的大小 ShieldSize *uint64 `json:"ShieldSize,omitempty" name:"ShieldSize"` }
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateBindInstance ¶
func (c *Client) CreateBindInstance(request *CreateBindInstanceRequest) (response *CreateBindInstanceResponse, err error)
将应用和资源进行绑定
func (*Client) CreateCosSecKeyInstance ¶
func (c *Client) CreateCosSecKeyInstance(request *CreateCosSecKeyInstanceRequest) (response *CreateCosSecKeyInstanceResponse, err error)
获取云COS文件存储临时密钥,密钥仅限于临时上传文件,有访问限制和时效性。
func (*Client) CreateResourceInstances ¶
func (c *Client) CreateResourceInstances(request *CreateResourceInstancesRequest) (response *CreateResourceInstancesResponse, err error)
用户可以使用该接口自建资源,只支持白名单用户
func (*Client) CreateScanInstances ¶
func (c *Client) CreateScanInstances(request *CreateScanInstancesRequest) (response *CreateScanInstancesResponse, err error)
用户通过该接口批量提交应用进行应用扫描,扫描后需通过DescribeScanResults接口查询扫描结果
func (*Client) CreateShieldInstance ¶
func (c *Client) CreateShieldInstance(request *CreateShieldInstanceRequest) (response *CreateShieldInstanceResponse, err error)
用户通过该接口提交应用进行应用加固,加固后需通过DescribeShieldResult接口查询加固结果
func (*Client) CreateShieldPlanInstance ¶
func (c *Client) CreateShieldPlanInstance(request *CreateShieldPlanInstanceRequest) (response *CreateShieldPlanInstanceResponse, err error)
对资源进行策略新增
func (*Client) DeleteScanInstances ¶
func (c *Client) DeleteScanInstances(request *DeleteScanInstancesRequest) (response *DeleteScanInstancesResponse, err error)
删除一个或者多个app扫描信息
func (*Client) DeleteShieldInstances ¶
func (c *Client) DeleteShieldInstances(request *DeleteShieldInstancesRequest) (response *DeleteShieldInstancesResponse, err error)
删除一个或者多个app加固信息
func (*Client) DescribeResourceInstances ¶
func (c *Client) DescribeResourceInstances(request *DescribeResourceInstancesRequest) (response *DescribeResourceInstancesResponse, err error)
获取某个用户的所有资源信息
func (*Client) DescribeScanInstances ¶
func (c *Client) DescribeScanInstances(request *DescribeScanInstancesRequest) (response *DescribeScanInstancesResponse, err error)
本接口用于查看app列表。 可以通过指定任务唯一标识ItemId来查询指定app的详细信息,或通过设定过滤器来查询满足过滤条件的app的详细信息。 指定偏移(Offset)和限制(Limit)来选择结果中的一部分,默认返回满足条件的前20个app信息。
func (*Client) DescribeScanResults ¶
func (c *Client) DescribeScanResults(request *DescribeScanResultsRequest) (response *DescribeScanResultsResponse, err error)
用户通过CreateScanInstances接口提交应用进行风险批量扫描后,用此接口批量获取风险详细信息,包含漏洞信息,广告信息,插件信息和病毒信息
func (*Client) DescribeShieldInstances ¶
func (c *Client) DescribeShieldInstances(request *DescribeShieldInstancesRequest) (response *DescribeShieldInstancesResponse, err error)
本接口用于查看app列表。 可以通过指定任务唯一标识ItemId来查询指定app的详细信息,或通过设定过滤器来查询满足过滤条件的app的详细信息。 指定偏移(Offset)和限制(Limit)来选择结果中的一部分,默认返回满足条件的前20个app信息。
func (*Client) DescribeShieldPlanInstance ¶
func (c *Client) DescribeShieldPlanInstance(request *DescribeShieldPlanInstanceRequest) (response *DescribeShieldPlanInstanceResponse, err error)
查询加固策略
func (*Client) DescribeShieldResult ¶
func (c *Client) DescribeShieldResult(request *DescribeShieldResultRequest) (response *DescribeShieldResultResponse, err error)
通过唯一标识获取加固的结果
func (*Client) DescribeUserBaseInfoInstance ¶
func (c *Client) DescribeUserBaseInfoInstance(request *DescribeUserBaseInfoInstanceRequest) (response *DescribeUserBaseInfoInstanceResponse, err error)
获取用户基础信息
type CreateBindInstanceRequest ¶
type CreateBindInstanceRequest struct { *tchttp.BaseRequest // 资源id,全局唯一 ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // app的icon的url AppIconUrl *string `json:"AppIconUrl,omitempty" name:"AppIconUrl"` // app的名称 AppName *string `json:"AppName,omitempty" name:"AppName"` // app的包名 AppPkgName *string `json:"AppPkgName,omitempty" name:"AppPkgName"` }
func NewCreateBindInstanceRequest ¶
func NewCreateBindInstanceRequest() (request *CreateBindInstanceRequest)
func (*CreateBindInstanceRequest) FromJsonString ¶
func (r *CreateBindInstanceRequest) FromJsonString(s string) error
func (*CreateBindInstanceRequest) ToJsonString ¶
func (r *CreateBindInstanceRequest) ToJsonString() string
type CreateBindInstanceResponse ¶
type CreateBindInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateBindInstanceResponse ¶
func NewCreateBindInstanceResponse() (response *CreateBindInstanceResponse)
func (*CreateBindInstanceResponse) FromJsonString ¶
func (r *CreateBindInstanceResponse) FromJsonString(s string) error
func (*CreateBindInstanceResponse) ToJsonString ¶
func (r *CreateBindInstanceResponse) ToJsonString() string
type CreateCosSecKeyInstanceRequest ¶
type CreateCosSecKeyInstanceRequest struct { *tchttp.BaseRequest // 地域信息,例如广州:ap-guangzhou,上海:ap-shanghai,默认为广州。 CosRegion *string `json:"CosRegion,omitempty" name:"CosRegion"` // 密钥有效时间,默认为1小时。 Duration *uint64 `json:"Duration,omitempty" name:"Duration"` }
func NewCreateCosSecKeyInstanceRequest ¶
func NewCreateCosSecKeyInstanceRequest() (request *CreateCosSecKeyInstanceRequest)
func (*CreateCosSecKeyInstanceRequest) FromJsonString ¶
func (r *CreateCosSecKeyInstanceRequest) FromJsonString(s string) error
func (*CreateCosSecKeyInstanceRequest) ToJsonString ¶
func (r *CreateCosSecKeyInstanceRequest) ToJsonString() string
type CreateCosSecKeyInstanceResponse ¶
type CreateCosSecKeyInstanceResponse struct { *tchttp.BaseResponse Response *struct { // COS密钥对应的AppId CosAppid *uint64 `json:"CosAppid,omitempty" name:"CosAppid"` // COS密钥对应的存储桶名 CosBucket *string `json:"CosBucket,omitempty" name:"CosBucket"` // 存储桶对应的地域 CosRegion *string `json:"CosRegion,omitempty" name:"CosRegion"` // 密钥过期时间 ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // 密钥ID信息 CosId *string `json:"CosId,omitempty" name:"CosId"` // 密钥KEY信息 CosKey *string `json:"CosKey,omitempty" name:"CosKey"` // 密钥TOCKEN信息 CosTocken *string `json:"CosTocken,omitempty" name:"CosTocken"` // 密钥可访问的文件前缀人。例如:CosPrefix=test/123/666,则该密钥只能操作test/123/666为前缀的文件,例如test/123/666/1.txt CosPrefix *string `json:"CosPrefix,omitempty" name:"CosPrefix"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateCosSecKeyInstanceResponse ¶
func NewCreateCosSecKeyInstanceResponse() (response *CreateCosSecKeyInstanceResponse)
func (*CreateCosSecKeyInstanceResponse) FromJsonString ¶
func (r *CreateCosSecKeyInstanceResponse) FromJsonString(s string) error
func (*CreateCosSecKeyInstanceResponse) ToJsonString ¶
func (r *CreateCosSecKeyInstanceResponse) ToJsonString() string
type CreateResourceInstancesRequest ¶
type CreateResourceInstancesRequest struct { *tchttp.BaseRequest // 资源类型id。13624:加固专业版。 Pid *uint64 `json:"Pid,omitempty" name:"Pid"` // 时间单位,取值为d,m,y,分别表示天,月,年。 TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // 时间数量。 TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // 资源数量。 ResourceNum *uint64 `json:"ResourceNum,omitempty" name:"ResourceNum"` }
func NewCreateResourceInstancesRequest ¶
func NewCreateResourceInstancesRequest() (request *CreateResourceInstancesRequest)
func (*CreateResourceInstancesRequest) FromJsonString ¶
func (r *CreateResourceInstancesRequest) FromJsonString(s string) error
func (*CreateResourceInstancesRequest) ToJsonString ¶
func (r *CreateResourceInstancesRequest) ToJsonString() string
type CreateResourceInstancesResponse ¶
type CreateResourceInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 新创建的资源列表。 ResourceSet []*string `json:"ResourceSet,omitempty" name:"ResourceSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateResourceInstancesResponse ¶
func NewCreateResourceInstancesResponse() (response *CreateResourceInstancesResponse)
func (*CreateResourceInstancesResponse) FromJsonString ¶
func (r *CreateResourceInstancesResponse) FromJsonString(s string) error
func (*CreateResourceInstancesResponse) ToJsonString ¶
func (r *CreateResourceInstancesResponse) ToJsonString() string
type CreateScanInstancesRequest ¶
type CreateScanInstancesRequest struct { *tchttp.BaseRequest // 待扫描的app信息列表,一次最多提交20个 AppInfos []*AppInfo `json:"AppInfos,omitempty" name:"AppInfos" list` // 扫描信息 ScanInfo *ScanInfo `json:"ScanInfo,omitempty" name:"ScanInfo"` }
func NewCreateScanInstancesRequest ¶
func NewCreateScanInstancesRequest() (request *CreateScanInstancesRequest)
func (*CreateScanInstancesRequest) FromJsonString ¶
func (r *CreateScanInstancesRequest) FromJsonString(s string) error
func (*CreateScanInstancesRequest) ToJsonString ¶
func (r *CreateScanInstancesRequest) ToJsonString() string
type CreateScanInstancesResponse ¶
type CreateScanInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 任务唯一标识 ItemId *string `json:"ItemId,omitempty" name:"ItemId"` // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 提交成功的app的md5集合 AppMd5s []*string `json:"AppMd5s,omitempty" name:"AppMd5s" list` // 剩余可用次数 LimitCount *uint64 `json:"LimitCount,omitempty" name:"LimitCount"` // 到期时间 LimitTime *uint64 `json:"LimitTime,omitempty" name:"LimitTime"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateScanInstancesResponse ¶
func NewCreateScanInstancesResponse() (response *CreateScanInstancesResponse)
func (*CreateScanInstancesResponse) FromJsonString ¶
func (r *CreateScanInstancesResponse) FromJsonString(s string) error
func (*CreateScanInstancesResponse) ToJsonString ¶
func (r *CreateScanInstancesResponse) ToJsonString() string
type CreateShieldInstanceRequest ¶
type CreateShieldInstanceRequest struct { *tchttp.BaseRequest // 待加固的应用信息 AppInfo *AppInfo `json:"AppInfo,omitempty" name:"AppInfo"` // 加固服务信息 ServiceInfo *ServiceInfo `json:"ServiceInfo,omitempty" name:"ServiceInfo"` }
func NewCreateShieldInstanceRequest ¶
func NewCreateShieldInstanceRequest() (request *CreateShieldInstanceRequest)
func (*CreateShieldInstanceRequest) FromJsonString ¶
func (r *CreateShieldInstanceRequest) FromJsonString(s string) error
func (*CreateShieldInstanceRequest) ToJsonString ¶
func (r *CreateShieldInstanceRequest) ToJsonString() string
type CreateShieldInstanceResponse ¶
type CreateShieldInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 任务唯一标识 ItemId *string `json:"ItemId,omitempty" name:"ItemId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateShieldInstanceResponse ¶
func NewCreateShieldInstanceResponse() (response *CreateShieldInstanceResponse)
func (*CreateShieldInstanceResponse) FromJsonString ¶
func (r *CreateShieldInstanceResponse) FromJsonString(s string) error
func (*CreateShieldInstanceResponse) ToJsonString ¶
func (r *CreateShieldInstanceResponse) ToJsonString() string
type CreateShieldPlanInstanceRequest ¶
type CreateShieldPlanInstanceRequest struct { *tchttp.BaseRequest // 资源id ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // 策略名称 PlanName *string `json:"PlanName,omitempty" name:"PlanName"` // 策略具体信息 PlanInfo *PlanInfo `json:"PlanInfo,omitempty" name:"PlanInfo"` }
func NewCreateShieldPlanInstanceRequest ¶
func NewCreateShieldPlanInstanceRequest() (request *CreateShieldPlanInstanceRequest)
func (*CreateShieldPlanInstanceRequest) FromJsonString ¶
func (r *CreateShieldPlanInstanceRequest) FromJsonString(s string) error
func (*CreateShieldPlanInstanceRequest) ToJsonString ¶
func (r *CreateShieldPlanInstanceRequest) ToJsonString() string
type CreateShieldPlanInstanceResponse ¶
type CreateShieldPlanInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 策略id PlanId *uint64 `json:"PlanId,omitempty" name:"PlanId"` // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateShieldPlanInstanceResponse ¶
func NewCreateShieldPlanInstanceResponse() (response *CreateShieldPlanInstanceResponse)
func (*CreateShieldPlanInstanceResponse) FromJsonString ¶
func (r *CreateShieldPlanInstanceResponse) FromJsonString(s string) error
func (*CreateShieldPlanInstanceResponse) ToJsonString ¶
func (r *CreateShieldPlanInstanceResponse) ToJsonString() string
type DeleteScanInstancesRequest ¶
type DeleteScanInstancesRequest struct { *tchttp.BaseRequest // 删除一个或多个扫描的app,最大支持20个 AppSids []*string `json:"AppSids,omitempty" name:"AppSids" list` }
func NewDeleteScanInstancesRequest ¶
func NewDeleteScanInstancesRequest() (request *DeleteScanInstancesRequest)
func (*DeleteScanInstancesRequest) FromJsonString ¶
func (r *DeleteScanInstancesRequest) FromJsonString(s string) error
func (*DeleteScanInstancesRequest) ToJsonString ¶
func (r *DeleteScanInstancesRequest) ToJsonString() string
type DeleteScanInstancesResponse ¶
type DeleteScanInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteScanInstancesResponse ¶
func NewDeleteScanInstancesResponse() (response *DeleteScanInstancesResponse)
func (*DeleteScanInstancesResponse) FromJsonString ¶
func (r *DeleteScanInstancesResponse) FromJsonString(s string) error
func (*DeleteScanInstancesResponse) ToJsonString ¶
func (r *DeleteScanInstancesResponse) ToJsonString() string
type DeleteShieldInstancesRequest ¶
type DeleteShieldInstancesRequest struct { *tchttp.BaseRequest // 任务唯一标识ItemId的列表 ItemIds []*string `json:"ItemIds,omitempty" name:"ItemIds" list` }
func NewDeleteShieldInstancesRequest ¶
func NewDeleteShieldInstancesRequest() (request *DeleteShieldInstancesRequest)
func (*DeleteShieldInstancesRequest) FromJsonString ¶
func (r *DeleteShieldInstancesRequest) FromJsonString(s string) error
func (*DeleteShieldInstancesRequest) ToJsonString ¶
func (r *DeleteShieldInstancesRequest) ToJsonString() string
type DeleteShieldInstancesResponse ¶
type DeleteShieldInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 Progress *uint64 `json:"Progress,omitempty" name:"Progress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteShieldInstancesResponse ¶
func NewDeleteShieldInstancesResponse() (response *DeleteShieldInstancesResponse)
func (*DeleteShieldInstancesResponse) FromJsonString ¶
func (r *DeleteShieldInstancesResponse) FromJsonString(s string) error
func (*DeleteShieldInstancesResponse) ToJsonString ¶
func (r *DeleteShieldInstancesResponse) ToJsonString() string
type DescribeResourceInstancesRequest ¶
type DescribeResourceInstancesRequest struct { *tchttp.BaseRequest // 资源类别id数组,13624:加固专业版,12750:企业版。空数组表示返回全部资源。 Pids []*uint64 `json:"Pids,omitempty" name:"Pids" list` // 支持通过资源id,pid进行查询 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 偏移量,默认为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制,默认为20,最大值为100。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 按某个字段排序,目前支持CreateTime、ExpireTime其中的一个排序。 OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 升序(asc)还是降序(desc),默认:desc。 OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` }
func NewDescribeResourceInstancesRequest ¶
func NewDescribeResourceInstancesRequest() (request *DescribeResourceInstancesRequest)
func (*DescribeResourceInstancesRequest) FromJsonString ¶
func (r *DescribeResourceInstancesRequest) FromJsonString(s string) error
func (*DescribeResourceInstancesRequest) ToJsonString ¶
func (r *DescribeResourceInstancesRequest) ToJsonString() string
type DescribeResourceInstancesResponse ¶
type DescribeResourceInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 符合要求的资源数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 符合要求的资源数组 ResourceSet []*ResourceInfo `json:"ResourceSet,omitempty" name:"ResourceSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourceInstancesResponse ¶
func NewDescribeResourceInstancesResponse() (response *DescribeResourceInstancesResponse)
func (*DescribeResourceInstancesResponse) FromJsonString ¶
func (r *DescribeResourceInstancesResponse) FromJsonString(s string) error
func (*DescribeResourceInstancesResponse) ToJsonString ¶
func (r *DescribeResourceInstancesResponse) ToJsonString() string
type DescribeScanInstancesRequest ¶
type DescribeScanInstancesRequest struct { *tchttp.BaseRequest // 支持通过app名称,app包名进行筛选 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 偏移量,默认为0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制,默认为20,最大值为100。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 可以提供ItemId数组来查询一个或者多个结果。注意不可以同时指定ItemIds和Filters。 ItemIds []*string `json:"ItemIds,omitempty" name:"ItemIds" list` // 按某个字段排序,目前仅支持TaskTime排序。 OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 升序(asc)还是降序(desc),默认:desc。 OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` }
func NewDescribeScanInstancesRequest ¶
func NewDescribeScanInstancesRequest() (request *DescribeScanInstancesRequest)
func (*DescribeScanInstancesRequest) FromJsonString ¶
func (r *DescribeScanInstancesRequest) FromJsonString(s string) error
func (*DescribeScanInstancesRequest) ToJsonString ¶
func (r *DescribeScanInstancesRequest) ToJsonString() string
type DescribeScanInstancesResponse ¶
type DescribeScanInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 符合要求的app数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 一个关于app详细信息的结构体,主要包括app的基本信息和扫描状态信息。 ScanSet []*AppScanSet `json:"ScanSet,omitempty" name:"ScanSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeScanInstancesResponse ¶
func NewDescribeScanInstancesResponse() (response *DescribeScanInstancesResponse)
func (*DescribeScanInstancesResponse) FromJsonString ¶
func (r *DescribeScanInstancesResponse) FromJsonString(s string) error
func (*DescribeScanInstancesResponse) ToJsonString ¶
func (r *DescribeScanInstancesResponse) ToJsonString() string
type DescribeScanResultsRequest ¶
type DescribeScanResultsRequest struct { *tchttp.BaseRequest // 任务唯一标识 ItemId *string `json:"ItemId,omitempty" name:"ItemId"` // 批量查询一个或者多个app的扫描结果,如果不传表示查询该任务下所提交的所有app AppMd5s []*string `json:"AppMd5s,omitempty" name:"AppMd5s" list` }
func NewDescribeScanResultsRequest ¶
func NewDescribeScanResultsRequest() (request *DescribeScanResultsRequest)
func (*DescribeScanResultsRequest) FromJsonString ¶
func (r *DescribeScanResultsRequest) FromJsonString(s string) error
func (*DescribeScanResultsRequest) ToJsonString ¶
func (r *DescribeScanResultsRequest) ToJsonString() string
type DescribeScanResultsResponse ¶
type DescribeScanResultsResponse struct { *tchttp.BaseResponse Response *struct { // 批量扫描的app结果集 ScanSet []*ScanSetInfo `json:"ScanSet,omitempty" name:"ScanSet" list` // 批量扫描结果的个数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeScanResultsResponse ¶
func NewDescribeScanResultsResponse() (response *DescribeScanResultsResponse)
func (*DescribeScanResultsResponse) FromJsonString ¶
func (r *DescribeScanResultsResponse) FromJsonString(s string) error
func (*DescribeScanResultsResponse) ToJsonString ¶
func (r *DescribeScanResultsResponse) ToJsonString() string
type DescribeShieldInstancesRequest ¶
type DescribeShieldInstancesRequest struct { *tchttp.BaseRequest // 支持通过app名称,app包名,加固的服务版本,提交的渠道进行筛选。 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 偏移量,默认为0。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制,默认为20,最大值为100。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 可以提供ItemId数组来查询一个或者多个结果。注意不可以同时指定ItemIds和Filters。 ItemIds []*string `json:"ItemIds,omitempty" name:"ItemIds" list` // 按某个字段排序,目前仅支持TaskTime排序。 OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 升序(asc)还是降序(desc),默认:desc。 OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` }
func NewDescribeShieldInstancesRequest ¶
func NewDescribeShieldInstancesRequest() (request *DescribeShieldInstancesRequest)
func (*DescribeShieldInstancesRequest) FromJsonString ¶
func (r *DescribeShieldInstancesRequest) FromJsonString(s string) error
func (*DescribeShieldInstancesRequest) ToJsonString ¶
func (r *DescribeShieldInstancesRequest) ToJsonString() string
type DescribeShieldInstancesResponse ¶
type DescribeShieldInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 符合要求的app数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 一个关于app详细信息的结构体,主要包括app的基本信息和加固信息。 AppSet []*AppSetInfo `json:"AppSet,omitempty" name:"AppSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeShieldInstancesResponse ¶
func NewDescribeShieldInstancesResponse() (response *DescribeShieldInstancesResponse)
func (*DescribeShieldInstancesResponse) FromJsonString ¶
func (r *DescribeShieldInstancesResponse) FromJsonString(s string) error
func (*DescribeShieldInstancesResponse) ToJsonString ¶
func (r *DescribeShieldInstancesResponse) ToJsonString() string
type DescribeShieldPlanInstanceRequest ¶
type DescribeShieldPlanInstanceRequest struct { *tchttp.BaseRequest // 资源id ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // 服务类别id Pid *uint64 `json:"Pid,omitempty" name:"Pid"` }
func NewDescribeShieldPlanInstanceRequest ¶
func NewDescribeShieldPlanInstanceRequest() (request *DescribeShieldPlanInstanceRequest)
func (*DescribeShieldPlanInstanceRequest) FromJsonString ¶
func (r *DescribeShieldPlanInstanceRequest) FromJsonString(s string) error
func (*DescribeShieldPlanInstanceRequest) ToJsonString ¶
func (r *DescribeShieldPlanInstanceRequest) ToJsonString() string
type DescribeShieldPlanInstanceResponse ¶
type DescribeShieldPlanInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 绑定资源信息 BindInfo *BindInfo `json:"BindInfo,omitempty" name:"BindInfo"` // 加固策略信息 ShieldPlanInfo *ShieldPlanInfo `json:"ShieldPlanInfo,omitempty" name:"ShieldPlanInfo"` // 加固资源信息 ResourceServiceInfo *ResourceServiceInfo `json:"ResourceServiceInfo,omitempty" name:"ResourceServiceInfo"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeShieldPlanInstanceResponse ¶
func NewDescribeShieldPlanInstanceResponse() (response *DescribeShieldPlanInstanceResponse)
func (*DescribeShieldPlanInstanceResponse) FromJsonString ¶
func (r *DescribeShieldPlanInstanceResponse) FromJsonString(s string) error
func (*DescribeShieldPlanInstanceResponse) ToJsonString ¶
func (r *DescribeShieldPlanInstanceResponse) ToJsonString() string
type DescribeShieldResultRequest ¶
type DescribeShieldResultRequest struct { *tchttp.BaseRequest // 任务唯一标识 ItemId *string `json:"ItemId,omitempty" name:"ItemId"` }
func NewDescribeShieldResultRequest ¶
func NewDescribeShieldResultRequest() (request *DescribeShieldResultRequest)
func (*DescribeShieldResultRequest) FromJsonString ¶
func (r *DescribeShieldResultRequest) FromJsonString(s string) error
func (*DescribeShieldResultRequest) ToJsonString ¶
func (r *DescribeShieldResultRequest) ToJsonString() string
type DescribeShieldResultResponse ¶
type DescribeShieldResultResponse struct { *tchttp.BaseResponse Response *struct { // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // app加固前的详细信息 AppDetailInfo *AppDetailInfo `json:"AppDetailInfo,omitempty" name:"AppDetailInfo"` // app加固后的详细信息 ShieldInfo *ShieldInfo `json:"ShieldInfo,omitempty" name:"ShieldInfo"` // 状态描述 StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // 状态指引 StatusRef *string `json:"StatusRef,omitempty" name:"StatusRef"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeShieldResultResponse ¶
func NewDescribeShieldResultResponse() (response *DescribeShieldResultResponse)
func (*DescribeShieldResultResponse) FromJsonString ¶
func (r *DescribeShieldResultResponse) FromJsonString(s string) error
func (*DescribeShieldResultResponse) ToJsonString ¶
func (r *DescribeShieldResultResponse) ToJsonString() string
type DescribeUserBaseInfoInstanceRequest ¶
type DescribeUserBaseInfoInstanceRequest struct {
*tchttp.BaseRequest
}
func NewDescribeUserBaseInfoInstanceRequest ¶
func NewDescribeUserBaseInfoInstanceRequest() (request *DescribeUserBaseInfoInstanceRequest)
func (*DescribeUserBaseInfoInstanceRequest) FromJsonString ¶
func (r *DescribeUserBaseInfoInstanceRequest) FromJsonString(s string) error
func (*DescribeUserBaseInfoInstanceRequest) ToJsonString ¶
func (r *DescribeUserBaseInfoInstanceRequest) ToJsonString() string
type DescribeUserBaseInfoInstanceResponse ¶
type DescribeUserBaseInfoInstanceResponse struct { *tchttp.BaseResponse Response *struct { // 用户uin信息 UserUin *uint64 `json:"UserUin,omitempty" name:"UserUin"` // 用户APPID信息 UserAppid *uint64 `json:"UserAppid,omitempty" name:"UserAppid"` // 系统时间戳 TimeStamp *uint64 `json:"TimeStamp,omitempty" name:"TimeStamp"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeUserBaseInfoInstanceResponse ¶
func NewDescribeUserBaseInfoInstanceResponse() (response *DescribeUserBaseInfoInstanceResponse)
func (*DescribeUserBaseInfoInstanceResponse) FromJsonString ¶
func (r *DescribeUserBaseInfoInstanceResponse) FromJsonString(s string) error
func (*DescribeUserBaseInfoInstanceResponse) ToJsonString ¶
func (r *DescribeUserBaseInfoInstanceResponse) ToJsonString() string
type PlanDetailInfo ¶
type PlanDetailInfo struct { // 默认策略,1为默认,0为非默认 IsDefault *uint64 `json:"IsDefault,omitempty" name:"IsDefault"` // 策略id PlanId *uint64 `json:"PlanId,omitempty" name:"PlanId"` // 策略名称 PlanName *string `json:"PlanName,omitempty" name:"PlanName"` // 策略信息 PlanInfo *PlanInfo `json:"PlanInfo,omitempty" name:"PlanInfo"` }
type PlanInfo ¶
type PlanInfo struct { // apk大小优化,0关闭,1开启 ApkSizeOpt *uint64 `json:"ApkSizeOpt,omitempty" name:"ApkSizeOpt"` // Dex加固,0关闭,1开启 Dex *uint64 `json:"Dex,omitempty" name:"Dex"` // So加固,0关闭,1开启 So *uint64 `json:"So,omitempty" name:"So"` // 数据收集,0关闭,1开启 Bugly *uint64 `json:"Bugly,omitempty" name:"Bugly"` // 防止重打包,0关闭,1开启 AntiRepack *uint64 `json:"AntiRepack,omitempty" name:"AntiRepack"` // Dex分离,0关闭,1开启 SeperateDex *uint64 `json:"SeperateDex,omitempty" name:"SeperateDex"` // 内存保护,0关闭,1开启 Db *uint64 `json:"Db,omitempty" name:"Db"` // Dex签名校验,0关闭,1开启 DexSig *uint64 `json:"DexSig,omitempty" name:"DexSig"` // So文件信息 SoInfo *SoInfo `json:"SoInfo,omitempty" name:"SoInfo"` // vmp,0关闭,1开启 AntiVMP *uint64 `json:"AntiVMP,omitempty" name:"AntiVMP"` // 保护so的强度, SoType []*string `json:"SoType,omitempty" name:"SoType" list` // 防日志泄漏,0关闭,1开启 AntiLogLeak *uint64 `json:"AntiLogLeak,omitempty" name:"AntiLogLeak"` // root检测,0关闭,1开启 AntiQemuRoot *uint64 `json:"AntiQemuRoot,omitempty" name:"AntiQemuRoot"` // 资源防篡改,0关闭,1开启 AntiAssets *uint64 `json:"AntiAssets,omitempty" name:"AntiAssets"` // 防止截屏,0关闭,1开启 AntiScreenshot *uint64 `json:"AntiScreenshot,omitempty" name:"AntiScreenshot"` // SSL证书防窃取,0关闭,1开启 AntiSSL *uint64 `json:"AntiSSL,omitempty" name:"AntiSSL"` }
type PluginInfo ¶
type PluginInfo struct { // 插件类型,分别为 1-通知栏广告,2-积分墙广告,3-banner广告,4- 悬浮窗图标广告,5-精品推荐列表广告, 6-插播广告 PluginType *uint64 `json:"PluginType,omitempty" name:"PluginType"` // 插件名称 PluginName *string `json:"PluginName,omitempty" name:"PluginName"` // 插件描述 PluginDesc *string `json:"PluginDesc,omitempty" name:"PluginDesc"` }
type ResourceInfo ¶
type ResourceInfo struct { // 用户购买的资源id,全局唯一 ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // 资源的pid,MTP加固-12767,应用加固-12750 MTP反作弊-12766 源代码混淆-12736 Pid *uint64 `json:"Pid,omitempty" name:"Pid"` // 购买时间戳 CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` // 到期时间戳 ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // 0-未绑定,1-已绑定 IsBind *int64 `json:"IsBind,omitempty" name:"IsBind"` // 用户绑定app的基本信息 BindInfo *BindInfo `json:"BindInfo,omitempty" name:"BindInfo"` // 资源名称,如应用加固,漏洞扫描 ResourceName *string `json:"ResourceName,omitempty" name:"ResourceName"` }
type ResourceServiceInfo ¶
type ScanInfo ¶
type ScanInfo struct { // 任务处理完成后的反向通知回调地址,批量提交app每扫描完成一个会通知一次,通知为POST请求,post信息{ItemId: CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` // VULSCAN-漏洞扫描信息,VIRUSSCAN-返回病毒扫描信息, ADSCAN-广告扫描信息,PLUGINSCAN-插件扫描信息,PERMISSION-系统权限信息,SENSITIVE-敏感词信息,可以自由组合 ScanTypes []*string `json:"ScanTypes,omitempty" name:"ScanTypes" list` }
type ScanPermissionInfo ¶
type ScanPermissionInfo struct { // 系统权限 Permission *string `json:"Permission,omitempty" name:"Permission"` }
type ScanPermissionList ¶
type ScanPermissionList struct { // 系统权限信息 PermissionList []*ScanPermissionInfo `json:"PermissionList,omitempty" name:"PermissionList" list` }
type ScanSensitiveInfo ¶
type ScanSensitiveList ¶
type ScanSensitiveList struct { // 敏感词列表 SensitiveList []*ScanSensitiveInfo `json:"SensitiveList,omitempty" name:"SensitiveList" list` }
type ScanSetInfo ¶
type ScanSetInfo struct { // 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时 TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // app信息 AppDetailInfo *AppDetailInfo `json:"AppDetailInfo,omitempty" name:"AppDetailInfo"` // 病毒信息 VirusInfo *VirusInfo `json:"VirusInfo,omitempty" name:"VirusInfo"` // 漏洞信息 VulInfo *VulInfo `json:"VulInfo,omitempty" name:"VulInfo"` // 广告插件信息 AdInfo *AdInfo `json:"AdInfo,omitempty" name:"AdInfo"` // 提交扫描的时间 TaskTime *uint64 `json:"TaskTime,omitempty" name:"TaskTime"` // 状态码,成功返回0,失败返回错误码 StatusCode *uint64 `json:"StatusCode,omitempty" name:"StatusCode"` // 状态描述 StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // 状态操作指引 StatusRef *string `json:"StatusRef,omitempty" name:"StatusRef"` // 系统权限信息 PermissionInfo *ScanPermissionList `json:"PermissionInfo,omitempty" name:"PermissionInfo"` // 敏感词列表 SensitiveInfo *ScanSensitiveList `json:"SensitiveInfo,omitempty" name:"SensitiveInfo"` }
type ServiceInfo ¶
type ServiceInfo struct { // 服务版本,基础版basic,专业版professional,企业版enterprise。 ServiceEdition *string `json:"ServiceEdition,omitempty" name:"ServiceEdition"` // 任务处理完成后的反向通知回调地址,如果不需要通知请传递空字符串。通知为POST请求,post包体数据示例{"Response":{"ItemId":"4cdad8fb86f036b06bccb3f58971c306","ShieldCode":0,"ShieldMd5":"78701576793c4a5f04e1c9660de0aa0b","ShieldSize":11997354,"TaskStatus":1,"TaskTime":1539148141}},调用方需要返回如下信息,{"Result":"ok","Reason":"xxxxx"},如果Result字段值不等于ok会继续回调。 CallbackUrl *string `json:"CallbackUrl,omitempty" name:"CallbackUrl"` // 提交来源 YYB-应用宝 RDM-rdm MC-控制台 MAC_TOOL-mac工具 WIN_TOOL-window工具。 SubmitSource *string `json:"SubmitSource,omitempty" name:"SubmitSource"` // 加固策略编号,如果不传则使用系统默认加固策略。如果指定的plan不存在会返回错误。 PlanId *uint64 `json:"PlanId,omitempty" name:"PlanId"` }
type ShieldInfo ¶
type ShieldInfo struct { // 加固结果的返回码 ShieldCode *uint64 `json:"ShieldCode,omitempty" name:"ShieldCode"` // 加固后app的大小 ShieldSize *uint64 `json:"ShieldSize,omitempty" name:"ShieldSize"` // 加固后app的md5 ShieldMd5 *string `json:"ShieldMd5,omitempty" name:"ShieldMd5"` // 加固后的APP下载地址,该地址有效期为20分钟,请及时下载 AppUrl *string `json:"AppUrl,omitempty" name:"AppUrl"` // 加固的提交时间 TaskTime *uint64 `json:"TaskTime,omitempty" name:"TaskTime"` // 任务唯一标识 ItemId *string `json:"ItemId,omitempty" name:"ItemId"` // 加固版本,basic基础版,professional专业版,enterprise企业版 ServiceEdition *string `json:"ServiceEdition,omitempty" name:"ServiceEdition"` }
type ShieldPlanInfo ¶
type ShieldPlanInfo struct { // 加固策略数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 加固策略具体信息数组 PlanSet []*PlanDetailInfo `json:"PlanSet,omitempty" name:"PlanSet" list` }
type SoInfo ¶
type SoInfo struct { // so文件列表 SoFileNames []*string `json:"SoFileNames,omitempty" name:"SoFileNames" list` }
type VirusInfo ¶
type VirusInfo struct { // 软件安全类型,分别为0-未知、 1-安全软件、2-风险软件、3-病毒软件 SafeType *int64 `json:"SafeType,omitempty" name:"SafeType"` // 病毒名称, utf8编码,非病毒时值为空 VirusName *string `json:"VirusName,omitempty" name:"VirusName"` // 病毒描述,utf8编码,非病毒时值为空 VirusDesc *string `json:"VirusDesc,omitempty" name:"VirusDesc"` }
type VulList ¶
type VulList struct { // 漏洞id VulId *string `json:"VulId,omitempty" name:"VulId"` // 漏洞名称 VulName *string `json:"VulName,omitempty" name:"VulName"` // 漏洞代码 VulCode *string `json:"VulCode,omitempty" name:"VulCode"` // 漏洞描述 VulDesc *string `json:"VulDesc,omitempty" name:"VulDesc"` // 漏洞解决方案 VulSolution *string `json:"VulSolution,omitempty" name:"VulSolution"` // 漏洞来源类别,0默认自身,1第三方插件 VulSrcType *int64 `json:"VulSrcType,omitempty" name:"VulSrcType"` // 漏洞位置 VulFilepath *string `json:"VulFilepath,omitempty" name:"VulFilepath"` // 风险级别:1 低风险 ;2中等风险;3 高风险 RiskLevel *uint64 `json:"RiskLevel,omitempty" name:"RiskLevel"` }
Click to show internal directories.
Click to hide internal directories.