diff --git a/api/@ohos.dlpPermission.d.ts b/api/@ohos.dlpPermission.d.ts index 102a58f4561be2f152979f8d847ba3da80e0ab1c..25710ad4cc7213e363898f83e484fa6f11fcd49b 100644 --- a/api/@ohos.dlpPermission.d.ts +++ b/api/@ohos.dlpPermission.d.ts @@ -1018,8 +1018,7 @@ declare namespace dlpPermission { expireTime?: number; /** - * Action type when the DLP file exceed expire time. - * + * Define the action to perform when the DLP file has expired. * @type { ?ActionType } * @syscap SystemCapability.Security.DataLossPrevention * @systemapi Hide this for inner system use. @@ -1503,7 +1502,7 @@ declare namespace dlpPermission { } /** - * Represent the DLP file Custom property. + * Represents the DLP file Custom property. * * @interface CustomProperty * @syscap SystemCapability.Security.DataLossPrevention @@ -1523,7 +1522,7 @@ declare namespace dlpPermission { } /** - * Generates a DLP file. This method uses a promise to return the result. + * Generates a DLP file. * * @permission ohos.permission.ENTERPRISE_ACCESS_DLP_FILE * @param { number } plaintextFd - FD of the file in plaintext. @@ -1548,11 +1547,11 @@ declare namespace dlpPermission { function generateDlpFileForEnterprise(plaintextFd: number, dlpFd: number, property: DLPProperty, customProperty: CustomProperty): Promise; /** - * Queries the DLP policy. This method uses a promise to return the result. + * Queries the DLP file policy. * * @permission ohos.permission.ENTERPRISE_ACCESS_DLP_FILE - * @param { number } dlpFd - Indicates the file descriptor of the DLP file. - * @returns { Promise }. + * @param { number } dlpFd FD of the target DLP file. + * @returns Promise that returns no value. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. * @throws { BusinessError } 19100001 - Invalid parameter value. @@ -1571,12 +1570,12 @@ declare namespace dlpPermission { function queryDlpPolicy(dlpFd: number): Promise; /** - * Decrypts a DLP file. This method uses a promise to return the result. + * Decrypts a DLP file. This API uses a promise to return the result. * * @permission ohos.permission.ENTERPRISE_ACCESS_DLP_FILE - * @param { number } dlpFd - Indicates the file descriptor of the DLP file. - * @param { number } plaintextFd - Indicates the file descriptor of the file in plaintext. - * @returns { Promise }. + * @param { number } dlpFd FD of the target DLP file. + * @param { number } plaintextFd FD of the file decrypted. + * @returns Promise that returns no value. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. * @throws { BusinessError } 19100001 - Invalid parameter value.