@alicloud/sddp20190103 1.2.9 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +136 -0
- package/dist/client.js +145 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +233 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -7957,6 +7957,175 @@ export class ModifyRuleStatusResponse extends $tea.Model {
|
|
|
7957
7957
|
}
|
|
7958
7958
|
}
|
|
7959
7959
|
|
|
7960
|
+
export class ScanOssObjectV1Request extends $tea.Model {
|
|
7961
|
+
/**
|
|
7962
|
+
* @remarks
|
|
7963
|
+
* This parameter is required.
|
|
7964
|
+
*
|
|
7965
|
+
* @example
|
|
7966
|
+
* sddp-api-demo-bucket
|
|
7967
|
+
*/
|
|
7968
|
+
bucketName?: string;
|
|
7969
|
+
/**
|
|
7970
|
+
* @example
|
|
7971
|
+
* zh
|
|
7972
|
+
*/
|
|
7973
|
+
lang?: string;
|
|
7974
|
+
/**
|
|
7975
|
+
* @remarks
|
|
7976
|
+
* This parameter is required.
|
|
7977
|
+
*/
|
|
7978
|
+
objectKeyList?: string[];
|
|
7979
|
+
/**
|
|
7980
|
+
* @remarks
|
|
7981
|
+
* This parameter is required.
|
|
7982
|
+
*
|
|
7983
|
+
* @example
|
|
7984
|
+
* cn-hangzhou
|
|
7985
|
+
*/
|
|
7986
|
+
serviceRegionId?: string;
|
|
7987
|
+
/**
|
|
7988
|
+
* @example
|
|
7989
|
+
* 1
|
|
7990
|
+
*/
|
|
7991
|
+
templateId?: number;
|
|
7992
|
+
static names(): { [key: string]: string } {
|
|
7993
|
+
return {
|
|
7994
|
+
bucketName: 'BucketName',
|
|
7995
|
+
lang: 'Lang',
|
|
7996
|
+
objectKeyList: 'ObjectKeyList',
|
|
7997
|
+
serviceRegionId: 'ServiceRegionId',
|
|
7998
|
+
templateId: 'TemplateId',
|
|
7999
|
+
};
|
|
8000
|
+
}
|
|
8001
|
+
|
|
8002
|
+
static types(): { [key: string]: any } {
|
|
8003
|
+
return {
|
|
8004
|
+
bucketName: 'string',
|
|
8005
|
+
lang: 'string',
|
|
8006
|
+
objectKeyList: { 'type': 'array', 'itemType': 'string' },
|
|
8007
|
+
serviceRegionId: 'string',
|
|
8008
|
+
templateId: 'number',
|
|
8009
|
+
};
|
|
8010
|
+
}
|
|
8011
|
+
|
|
8012
|
+
constructor(map?: { [key: string]: any }) {
|
|
8013
|
+
super(map);
|
|
8014
|
+
}
|
|
8015
|
+
}
|
|
8016
|
+
|
|
8017
|
+
export class ScanOssObjectV1ShrinkRequest extends $tea.Model {
|
|
8018
|
+
/**
|
|
8019
|
+
* @remarks
|
|
8020
|
+
* This parameter is required.
|
|
8021
|
+
*
|
|
8022
|
+
* @example
|
|
8023
|
+
* sddp-api-demo-bucket
|
|
8024
|
+
*/
|
|
8025
|
+
bucketName?: string;
|
|
8026
|
+
/**
|
|
8027
|
+
* @example
|
|
8028
|
+
* zh
|
|
8029
|
+
*/
|
|
8030
|
+
lang?: string;
|
|
8031
|
+
/**
|
|
8032
|
+
* @remarks
|
|
8033
|
+
* This parameter is required.
|
|
8034
|
+
*/
|
|
8035
|
+
objectKeyListShrink?: string;
|
|
8036
|
+
/**
|
|
8037
|
+
* @remarks
|
|
8038
|
+
* This parameter is required.
|
|
8039
|
+
*
|
|
8040
|
+
* @example
|
|
8041
|
+
* cn-hangzhou
|
|
8042
|
+
*/
|
|
8043
|
+
serviceRegionId?: string;
|
|
8044
|
+
/**
|
|
8045
|
+
* @example
|
|
8046
|
+
* 1
|
|
8047
|
+
*/
|
|
8048
|
+
templateId?: number;
|
|
8049
|
+
static names(): { [key: string]: string } {
|
|
8050
|
+
return {
|
|
8051
|
+
bucketName: 'BucketName',
|
|
8052
|
+
lang: 'Lang',
|
|
8053
|
+
objectKeyListShrink: 'ObjectKeyList',
|
|
8054
|
+
serviceRegionId: 'ServiceRegionId',
|
|
8055
|
+
templateId: 'TemplateId',
|
|
8056
|
+
};
|
|
8057
|
+
}
|
|
8058
|
+
|
|
8059
|
+
static types(): { [key: string]: any } {
|
|
8060
|
+
return {
|
|
8061
|
+
bucketName: 'string',
|
|
8062
|
+
lang: 'string',
|
|
8063
|
+
objectKeyListShrink: 'string',
|
|
8064
|
+
serviceRegionId: 'string',
|
|
8065
|
+
templateId: 'number',
|
|
8066
|
+
};
|
|
8067
|
+
}
|
|
8068
|
+
|
|
8069
|
+
constructor(map?: { [key: string]: any }) {
|
|
8070
|
+
super(map);
|
|
8071
|
+
}
|
|
8072
|
+
}
|
|
8073
|
+
|
|
8074
|
+
export class ScanOssObjectV1ResponseBody extends $tea.Model {
|
|
8075
|
+
/**
|
|
8076
|
+
* @example
|
|
8077
|
+
* 268
|
|
8078
|
+
*/
|
|
8079
|
+
id?: number;
|
|
8080
|
+
/**
|
|
8081
|
+
* @example
|
|
8082
|
+
* 7C3AC882-E5A8-4855-BE77-B6837B695EF1
|
|
8083
|
+
*/
|
|
8084
|
+
requestId?: string;
|
|
8085
|
+
static names(): { [key: string]: string } {
|
|
8086
|
+
return {
|
|
8087
|
+
id: 'Id',
|
|
8088
|
+
requestId: 'RequestId',
|
|
8089
|
+
};
|
|
8090
|
+
}
|
|
8091
|
+
|
|
8092
|
+
static types(): { [key: string]: any } {
|
|
8093
|
+
return {
|
|
8094
|
+
id: 'number',
|
|
8095
|
+
requestId: 'string',
|
|
8096
|
+
};
|
|
8097
|
+
}
|
|
8098
|
+
|
|
8099
|
+
constructor(map?: { [key: string]: any }) {
|
|
8100
|
+
super(map);
|
|
8101
|
+
}
|
|
8102
|
+
}
|
|
8103
|
+
|
|
8104
|
+
export class ScanOssObjectV1Response extends $tea.Model {
|
|
8105
|
+
headers?: { [key: string]: string };
|
|
8106
|
+
statusCode?: number;
|
|
8107
|
+
body?: ScanOssObjectV1ResponseBody;
|
|
8108
|
+
static names(): { [key: string]: string } {
|
|
8109
|
+
return {
|
|
8110
|
+
headers: 'headers',
|
|
8111
|
+
statusCode: 'statusCode',
|
|
8112
|
+
body: 'body',
|
|
8113
|
+
};
|
|
8114
|
+
}
|
|
8115
|
+
|
|
8116
|
+
static types(): { [key: string]: any } {
|
|
8117
|
+
return {
|
|
8118
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8119
|
+
statusCode: 'number',
|
|
8120
|
+
body: ScanOssObjectV1ResponseBody,
|
|
8121
|
+
};
|
|
8122
|
+
}
|
|
8123
|
+
|
|
8124
|
+
constructor(map?: { [key: string]: any }) {
|
|
8125
|
+
super(map);
|
|
8126
|
+
}
|
|
8127
|
+
}
|
|
8128
|
+
|
|
7960
8129
|
export class StopMaskingProcessRequest extends $tea.Model {
|
|
7961
8130
|
/**
|
|
7962
8131
|
* @remarks
|
|
@@ -17853,6 +18022,70 @@ export default class Client extends OpenApi {
|
|
|
17853
18022
|
return await this.modifyRuleStatusWithOptions(request, runtime);
|
|
17854
18023
|
}
|
|
17855
18024
|
|
|
18025
|
+
/**
|
|
18026
|
+
* 创建文件扫描任务
|
|
18027
|
+
*
|
|
18028
|
+
* @param tmpReq - ScanOssObjectV1Request
|
|
18029
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
18030
|
+
* @returns ScanOssObjectV1Response
|
|
18031
|
+
*/
|
|
18032
|
+
async scanOssObjectV1WithOptions(tmpReq: ScanOssObjectV1Request, runtime: $Util.RuntimeOptions): Promise<ScanOssObjectV1Response> {
|
|
18033
|
+
Util.validateModel(tmpReq);
|
|
18034
|
+
let request = new ScanOssObjectV1ShrinkRequest({ });
|
|
18035
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
18036
|
+
if (!Util.isUnset(tmpReq.objectKeyList)) {
|
|
18037
|
+
request.objectKeyListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectKeyList, "ObjectKeyList", "json");
|
|
18038
|
+
}
|
|
18039
|
+
|
|
18040
|
+
let query = { };
|
|
18041
|
+
if (!Util.isUnset(request.bucketName)) {
|
|
18042
|
+
query["BucketName"] = request.bucketName;
|
|
18043
|
+
}
|
|
18044
|
+
|
|
18045
|
+
if (!Util.isUnset(request.lang)) {
|
|
18046
|
+
query["Lang"] = request.lang;
|
|
18047
|
+
}
|
|
18048
|
+
|
|
18049
|
+
if (!Util.isUnset(request.objectKeyListShrink)) {
|
|
18050
|
+
query["ObjectKeyList"] = request.objectKeyListShrink;
|
|
18051
|
+
}
|
|
18052
|
+
|
|
18053
|
+
if (!Util.isUnset(request.serviceRegionId)) {
|
|
18054
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
18055
|
+
}
|
|
18056
|
+
|
|
18057
|
+
if (!Util.isUnset(request.templateId)) {
|
|
18058
|
+
query["TemplateId"] = request.templateId;
|
|
18059
|
+
}
|
|
18060
|
+
|
|
18061
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
18062
|
+
query: OpenApiUtil.query(query),
|
|
18063
|
+
});
|
|
18064
|
+
let params = new $OpenApi.Params({
|
|
18065
|
+
action: "ScanOssObjectV1",
|
|
18066
|
+
version: "2019-01-03",
|
|
18067
|
+
protocol: "HTTPS",
|
|
18068
|
+
pathname: "/",
|
|
18069
|
+
method: "POST",
|
|
18070
|
+
authType: "AK",
|
|
18071
|
+
style: "RPC",
|
|
18072
|
+
reqBodyType: "formData",
|
|
18073
|
+
bodyType: "json",
|
|
18074
|
+
});
|
|
18075
|
+
return $tea.cast<ScanOssObjectV1Response>(await this.callApi(params, req, runtime), new ScanOssObjectV1Response({}));
|
|
18076
|
+
}
|
|
18077
|
+
|
|
18078
|
+
/**
|
|
18079
|
+
* 创建文件扫描任务
|
|
18080
|
+
*
|
|
18081
|
+
* @param request - ScanOssObjectV1Request
|
|
18082
|
+
* @returns ScanOssObjectV1Response
|
|
18083
|
+
*/
|
|
18084
|
+
async scanOssObjectV1(request: ScanOssObjectV1Request): Promise<ScanOssObjectV1Response> {
|
|
18085
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
18086
|
+
return await this.scanOssObjectV1WithOptions(request, runtime);
|
|
18087
|
+
}
|
|
18088
|
+
|
|
17856
18089
|
/**
|
|
17857
18090
|
* Stops a de-identification task. After you stop a de-identification task, you can resume the task by calling the ManualTriggerMaskingProcess operation.
|
|
17858
18091
|
*
|