diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-accountManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-accountManager.md index e472202a6b8d6c005f8eb3483d8b380ca69a052b..7f0d3f9599730fba8829406fde188bc911a61227 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-accountManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-accountManager.md @@ -341,8 +341,8 @@ async function getDomainAccountPolicy() { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ------------------------------ | ------ | ---- | ------------------------------------------------------------ | -| authenticationValidityPeriod | number | 否 | 表示域账号认证Token的有效期(单位:s),取值范围是[-1,2147483647]。有效期起始时间为最后一次域账号的认证时间点,如登录、锁屏后解锁等。
默认值为-1,表示Token永久有效。取值为0,表示Token立即失效。Token过期/失效后,用户进入系统时必须进行域账号认证,验证域账号和密码。 | -| passwordValidityPeriod | number | 否 | 表示域账号密码有效期(单位:s),取值范围是[-1,2147483647],有效期起始时间为设备侧最后一次修改密码的时间点。
默认值为-1,表示域账号密码永久有效。 | -| passwordExpirationNotification | number | 否 | 表示域账号密码过期前提示时间(单位:s),取值范围是[0,2147483647]。
默认值为0,表示域账号密码过期不提示。
**说明**:passwordExpirationNotification需与passwordValidityPeriod配合使用,当系统时间大于或等于(设备侧最后一次修改域账号密码时间 + passwordValidityPeriod - passwordExpirationNotification)时,会发页面通知提示密码即将过期。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ------------------------------ | ------ | ---- | ---- |------------------------------------------------------------ | +| authenticationValidityPeriod | number | 否 | 是 |表示域账号认证Token的有效期(单位:s),取值范围是[-1,2147483647]。有效期起始时间为最后一次域账号的认证时间点,如登录、锁屏后解锁等。
默认值为-1,表示Token永久有效。取值为0,表示Token立即失效。Token过期/失效后,用户进入系统时必须进行域账号认证,验证域账号和密码。 | +| passwordValidityPeriod | number | 否 | 是 |表示域账号密码有效期(单位:s),取值范围是[-1,2147483647],有效期起始时间为设备侧最后一次修改密码的时间点。
默认值为-1,表示域账号密码永久有效。 | +| passwordExpirationNotification | number | 否 | 是 |表示域账号密码过期前提示时间(单位:s),取值范围是[0,2147483647]。
默认值为0,表示域账号密码过期不提示。
**说明**:passwordExpirationNotification需与passwordValidityPeriod配合使用,当系统时间大于或等于(设备侧最后一次修改域账号密码时间 + passwordValidityPeriod - passwordExpirationNotification)时,会发页面通知提示密码即将过期。 | diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-adminManager-sys.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-adminManager-sys.md index 8edc3bd8fed57054d809d9efb38891ecfca7d09d..9f07f3f73741a4af1ccc2f3cfc9b98a759df0d9f 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-adminManager-sys.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-adminManager-sys.md @@ -1271,6 +1271,8 @@ replaceSuperAdmin(oldAdmin: Want, newAdmin: Want, isKeepPolicy: boolean): void 将指定应用替换成超级设备管理应用。 +**需要权限:** ohos.permission.MANAGE_ENTERPRISE_DEVICE_ADMIN + **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager @@ -1327,6 +1329,8 @@ setAdminRunningMode(admin: Want, mode: RunningMode): void 该接口仅在PC设备上生效。 +**需要权限:** ohos.permission.MANAGE_ENTERPRISE_DEVICE_ADMIN + **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager @@ -1378,10 +1382,10 @@ try { -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ---- | ------------------------------- | -| name | string | 是 | 表示设备管理应用所属企业的名称。 | -| description | string | 是 | 表示设备管理应用所属企业的描述。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ---- | -----| -------------------------- | +| name | string | 否 | 否 | 表示设备管理应用所属企业的名称。 | +| description | string | 否 | 否 |表示设备管理应用所属企业的描述。 | ## AdminType diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bluetoothManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bluetoothManager.md index 301cef187fd34242c9a6efbf9feab16d10822ddd..c6221039f18d2f3b2a50a59bc0b9b4099955fe56 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bluetoothManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bluetoothManager.md @@ -385,11 +385,11 @@ try { **模型约束:** 此接口仅可在Stage模型下使用。 -| 名称 | 类型 | 必填 | 说明 | -| --------------- | ------------------------------------------------------------ | ---- | ------------------------ | -| name | string | 是 | 表示设备的蓝牙名称。 | -| state | [access.BluetoothState](../apis-connectivity-kit/js-apis-bluetooth-access.md#bluetoothstate) | 是 | 表示设备的蓝牙状态。 | -| connectionState | [constant.ProfileConnectionState](../apis-connectivity-kit/js-apis-bluetooth-constant.md#profileconnectionstate) | 是 | 表示设备的蓝牙连接状态。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| --------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------ | +| name | string | 否 | 否 | 表示设备的蓝牙名称。 | +| state | [access.BluetoothState](../apis-connectivity-kit/js-apis-bluetooth-access.md#bluetoothstate) | 否 | 否 | 表示设备的蓝牙状态。 | +| connectionState | [constant.ProfileConnectionState](../apis-connectivity-kit/js-apis-bluetooth-constant.md#profileconnectionstate) | 否 | 否 | 表示设备的蓝牙连接状态。 | ## bluetoothManager.turnOnBluetooth20+ diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bundleManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bundleManager.md index c51af7b5c039bc7452c3eb127f1350a751b24f34..417fa6fc7c11abe5b0803ee07d7946adb6edb828 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bundleManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-bundleManager.md @@ -688,11 +688,11 @@ bundleManager.getInstalledBundleList(wantTemp, accountId).then((result) => { **模型约束:** 此接口仅可在Stage模型下使用。 -| 名称 | 类型 | 必填 | 说明 | +| 名称 | 类型 | 只读 | 可选 | 说明 | | ------------------------ | ---------------------- | ---- | ------------------------------------------------------------ | -| userId | number | 否 | 指示用户id,默认值:调用方所在用户,取值范围:大于等于0。 | -| installFlag | number | 否 | 安装标志。枚举值:0:应用初次安装,1:应用覆盖安装,2:应用免安装,默认值为应用初次安装。 | -| parameters19+ | Record<string, string> | 否 | 扩展参数,默认值为空。key取值支持"ohos.bms.param.enterpriseForAllUser",若对应的value值为"true",表示为所有用户安装应用。 | +| userId | number | 否 | 是 | 指示用户id,默认值:调用方所在用户,取值范围:大于等于0。 | +| installFlag | number | 否 | 是 | 安装标志。枚举值:0:应用初次安装,1:应用覆盖安装,2:应用免安装,默认值为应用初次安装。 | +| parameters19+ | Record<string, string> | 否 | 是 | 扩展参数,默认值为空。key取值支持"ohos.bms.param.enterpriseForAllUser",若对应的value值为"true",表示为所有用户安装应用。 | ## BundleInfo20+ diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-deviceSettings-sys.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-deviceSettings-sys.md index a45228d08f246cdc3caa57762cd73ba2d1ca54a3..317b321346d9b7f9ec10440178ec93a13f3777d1 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-deviceSettings-sys.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-deviceSettings-sys.md @@ -298,10 +298,10 @@ context.resourceManager.getRawFileContent("test.cer").then((value) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ----- | ------------------------------- | -| inData | Uint8Array | 是 | 证书的二进制内容。 | -| alias | string | 是 | 证书别名。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ----- | ---- | ------------------------------- | +| inData | Uint8Array | 否 | 否 |证书的二进制内容。 | +| alias | string | 否 | 否 |证书别名。 | ## deviceSettings.uninstallUserCertificate @@ -517,10 +517,10 @@ try { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ----- | ------------------------------- | -| powerPolicyAction | [PowerPolicyAction](#powerpolicyaction11) | 是 | 执行电源策略的动作。 | -| delayTime | number | 是 | 延迟时间(单位:毫秒)。| +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ----- | ---- | ------------------------------- | +| powerPolicyAction | [PowerPolicyAction](#powerpolicyaction11) | 否 | 否 | 执行电源策略的动作。 | +| delayTime | number | 否 | 否 | 延迟时间(单位:毫秒)。| ## PowerScene11+ diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager-sys.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager-sys.md index 762de262823118f01717ac866dde9a5b32dc3572..663bebc0dd806ec1fa92fe06ade95aaf29bf407d 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager-sys.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager-sys.md @@ -1121,18 +1121,18 @@ networkManager.listIptablesFilterRules(wantTemp).then((result) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ---- | ------------------------------- | -| ruleNo | number | 否 | 规则序号。 | -| srcAddr | string | 否 | ip源地址。 | -| destAddr | string | 否 | ip目标地址。 | -| srcPort | string | 否 | ip源端口。 | -| destPort | string | 否 | ip目标端口。 | -| uid | string | 否 | 应用uid。 | -| method | [AddMethod](#addmethod) | 是 | 添加策略。 | -| direction | [Direction](js-apis-enterprise-networkManager.md#direction) | 是 | 规则链。 | -| action | [Action](js-apis-enterprise-networkManager.md#action) | 是 | 接收或者丢弃数据包。 | -| protocol | [Protocol](js-apis-enterprise-networkManager.md#protocol) | 否 | 网络协议。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ---- | ---- | ------------------------------- | +| ruleNo | number | 否 | 是 | 规则序号。 | +| srcAddr | string | 否 | 是 | ip源地址。 | +| destAddr | string | 否 | 是 | ip目标地址。 | +| srcPort | string | 否 | 是 | ip源端口。 | +| destPort | string | 否 | 是 | ip目标端口。 | +| uid | string | 否 | 是 | 应用uid。 | +| method | [AddMethod](#addmethod) | 否 | 否 | 添加策略。 | +| direction | [Direction](js-apis-enterprise-networkManager.md#direction) | 否 | 否 | 规则链。 | +| action | [Action](js-apis-enterprise-networkManager.md#action) | 否 | 否 | 接收或者丢弃数据包。 | +| protocol | [Protocol](js-apis-enterprise-networkManager.md#protocol) | 否 | 是 |网络协议。 | ## RemoveFilterRule @@ -1141,16 +1141,16 @@ networkManager.listIptablesFilterRules(wantTemp).then((result) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ---- | ------------------------------- | -| srcAddr | string | 否 | ip源地址。 | -| destAddr | string | 否 | ip目标地址。 | -| srcPort | string | 否 | ip源端口。 | -| destPort | string | 否 | ip目标端口。 | -| uid | string | 否 | 应用uid。 | -| direction | [Direction](js-apis-enterprise-networkManager.md#direction) | 是 | 规则链。 | -| action | [Action](js-apis-enterprise-networkManager.md#action) | 否 | 接收或者丢弃数据包。 | -| protocol | [Protocol](js-apis-enterprise-networkManager.md#protocol) | 否 | 网络协议。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ---- | ---- | ------------------------------ | +| srcAddr | string | 否 | 是 | ip源地址。 | +| destAddr | string | 否 | 是 | ip目标地址。 | +| srcPort | string | 否 | 是 | ip源端口。 | +| destPort | string | 否 | 是 | ip目标端口。 | +| uid | string | 否 | 是 | 应用uid。 | +| direction | [Direction](js-apis-enterprise-networkManager.md#direction) | 否 | 否 | 规则链。 | +| action | [Action](js-apis-enterprise-networkManager.md#action) | 否 | 是 | 接收或者丢弃数据包。 | +| protocol | [Protocol](js-apis-enterprise-networkManager.md#protocol) | 否 | 是 | 网络协议。 | ## AddMethod diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager.md index 76109ef2f94a892a91208ccb7bfbe882a9a474ab..87231f93e03b8944cfe238e69731f0cfe178f63b 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-networkManager.md @@ -802,16 +802,16 @@ domainFilterRule = networkManager.getDomainFilterRules(wantTemp); **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| --------- | ----------------------- | ---- | ------------------------------------------------------------ | -| srcAddr | string | 否 | ip源地址。支持IP段,例如:192.168.0.0/22或者192.168.1.100-192.168.1.200 | -| destAddr | string | 否 | ip目标地址。支持IP段,例如:192.168.0.0/22或者192.168.1.100-192.168.1.200 | -| srcPort | string | 否 | 源端口。 | -| destPort | string | 否 | 目标端口。 | -| appUid | string | 否 | 应用uid。 | -| direction | [Direction](#direction) | 否 | 规则链。
添加防护墙过滤规则时必填;
移除防火墙时非必填,当值为空时,表示清空所有的[Direction](#direction)链,且srcAddr,destAddr,srcPort,destPort,appUid也必须传入空值。 | -| action | [Action](#action) | 否 | 接收或者丢弃数据包。
添加防护墙过滤规则时必填;
移除防火墙时非必填,当值为空时,表示清空所有的匹配[Action](#action)规则的链,且srcAddr,destAddr,srcPort,destPort,appUid也必须传入空值。 | -| protocol | [Protocol](#protocol) | 否 | 网络协议。当值为ALL或者ICMP时,不允许设置srcPort与destPort。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| --------- | ----------------------- | ---- | ---- |------------------------------------------------------------ | +| srcAddr | string | 否 | 是 |ip源地址。支持IP段,例如:192.168.0.0/22或者192.168.1.100-192.168.1.200 | +| destAddr | string | 否 | 是 |ip目标地址。支持IP段,例如:192.168.0.0/22或者192.168.1.100-192.168.1.200 | +| srcPort | string | 否 | 是 |源端口。 | +| destPort | string | 否 | 是 |目标端口。 | +| appUid | string | 否 | 是 |应用uid。 | +| direction | [Direction](#direction) | 否 | 是 |规则链。
添加防护墙过滤规则时必填;
移除防火墙时非必填,当值为空时,表示清空所有的[Direction](#direction)链,且srcAddr,destAddr,srcPort,destPort,appUid也必须传入空值。 | +| action | [Action](#action) | 否 | 是 |接收或者丢弃数据包。
添加防护墙过滤规则时必填;
移除防火墙时非必填,当值为空时,表示清空所有的匹配[Action](#action)规则的链,且srcAddr,destAddr,srcPort,destPort,appUid也必须传入空值。 | +| protocol | [Protocol](#protocol) | 否 | 是 |网络协议。当值为ALL或者ICMP时,不允许设置srcPort与destPort。 | ## DomainFilterRule @@ -820,12 +820,12 @@ domainFilterRule = networkManager.getDomainFilterRules(wantTemp); **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ---------- | ----------------- | ---- | ------------------------------------------------------------ | -| domainName | string | 否 | 域名。添加域名过滤规则时必填。 | -| appUid | string | 否 | 应用uid。 | -| action | [Action](#action) | 否 | 接收或者丢弃数据包。
添加域名过滤规则时必填;
移除域名过滤规则时非必填,当值为空时,表示清空所有的匹配[Action](#action)规则的链,且domainName,appUid也必须传入空值。 | -| direction15+ | [Direction](#direction) | 否 |规则链。
添加防护墙过滤规则时必填;
移除防火墙时非必填,当值为空时,表示清空所有的[Direction](#direction)链,且domainName,appUid也必须传入空值。| +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ---------- | ----------------- | ---- | ---- | ------------------------------------------------------------ | +| domainName | string | 否 | 是 |域名。添加域名过滤规则时必填。 | +| appUid | string | 否 | 是 |应用uid。 | +| action | [Action](#action) | 否 | 是 |接收或者丢弃数据包。
添加域名过滤规则时必填;
移除域名过滤规则时非必填,当值为空时,表示清空所有的匹配[Action](#action)规则的链,且domainName,appUid也必须传入空值。 | +| direction15+ | [Direction](#direction) | 否 | 是 |规则链。
添加防护墙过滤规则时必填;
移除防火墙时非必填,当值为空时,表示清空所有的[Direction](#direction)链,且domainName,appUid也必须传入空值。| ## Direction diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager-sys.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager-sys.md index 2eb144144b891cfcd6b6d3b4d6285ed7d5789094..0c661094a608522f60dcc061fa07465284d7b39e 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager-sys.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager-sys.md @@ -168,6 +168,6 @@ try { **系统API**: 此接口为系统接口。 -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ---- | ------------------------------- | -| isEncrypted | boolean | 是 | 表示设备的文件系统是否加密。true:表示已加密。false:表示未加密。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ---- | ----| ---------------------------- | +| isEncrypted | boolean | 否 | 否 | 表示设备的文件系统是否加密。true:表示已加密。false:表示未加密。 | diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager.md index ca3d9ae7b99da431ae3c8146aec235ff98b267f2..6133cf250ef506698948e50b96001ad3260b1eb2 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-securityManager.md @@ -704,10 +704,10 @@ try { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ------ | ---------- | ---- | ------------------ | -| inData | Uint8Array | 是 | 证书的二进制内容。 | -| alias | string | 是 | 证书别名。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ------ | ---------- | ---- | ---- | ------------------ | +| inData | Uint8Array | 否 | 否 |证书的二进制内容。 | +| alias | string | 否 | 否 |证书别名。 | ## PasswordPolicy @@ -715,11 +715,11 @@ try { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ---- | ------------------------------- | -| complexityRegex | string | 否 | 口令复杂度正则表达式。 | -| validityPeriod | number | 否 | 密码有效期(单位:毫秒)。 | -| additionalDescription | string | 否 | 描述文本。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ---- | ---- | --------------------------- | +| complexityRegex | string | 否 | 是 | 口令复杂度正则表达式。 | +| validityPeriod | number | 否 | 是 | 密码有效期(单位:毫秒)。 | +| additionalDescription | string | 否 | 是 | 描述文本。 | ## ClipboardPolicy diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-systemManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-systemManager.md index 2493e5edcb81fc20e956bde7a31f894e56f50a0c..867ce6da785b315b912597540534e9836cc0b250 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-systemManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-systemManager.md @@ -446,11 +446,11 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------------- | ------ | --- | ------------- | -| versionName | string | 是 | 待更新的系统版本名称。 | -| firstReceivedTime | number | 是 | 首次收到系统更新包的时间。 | -| packageType | string | 是 | 待更新的系统更新包类型。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------------- | ------ | --- | --- |------------- | +| versionName | string | 否 | 否 |待更新的系统版本名称。 | +| firstReceivedTime | number | 否 | 否 |第一次收到系统更新包的时间。 | +| packageType | string | 否 | 否 |待更新的系统更新包类型。 | ## OtaUpdatePolicy @@ -458,15 +458,15 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------| ---- | ------------------------------- | -| policyType | [PolicyType](#policytype) | 是 | 表示升级策略类型。 | -| version | string | 是 | 表示待升级软件版本号。 | -| latestUpdateTime | number | 否 | 表示最晚升级时间(时间戳)。 | -| delayUpdateTime | number | 否 | 表示延迟升级时间(单位:小时)。 | -| installStartTime | number | 否 | 表示指定安装窗口起始时间(时间戳)。 | -| installEndTime | number | 否 | 表示指定安装窗口结束时间(时间戳)。 | -| disableSystemOtaUpdate20+ | boolean | 否 | 表示是否禁用在公网环境下升级。true表示禁用公网升级,false表示不禁用公网升级,默认值为false。禁用公网升级后,可以采用内网升级。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------- | --------| ---- | -----| -------------------------- | +| policyType | [PolicyType](#policytype) | 否 | 否 | 表示升级策略类型。 | +| version | string | 否 | 否 |表示待升级软件版本号。 | +| latestUpdateTime | number | 否 | 是 | 表示最晚升级时间(时间戳)。 | +| delayUpdateTime | number | 否 | 是 | 表示延迟升级时间(单位:小时)。 | +| installStartTime | number | 否 | 是 | 表示指定安装窗口起始时间(时间戳)。 | +| installEndTime | number | 否 | 是 | 表示指定安装窗口结束时间(时间戳)。 | +| disableSystemOtaUpdate20+ | boolean | 否 | 是 | 表示是否禁用在公网环境下升级。true表示禁用公网升级,false表示不禁用公网升级,默认值为false。禁用公网升级后,可以采用内网升级。 | ## PolicyType @@ -488,12 +488,12 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------------- | ------ | --- | ------------- | -| version | string | 是 | 系统更新包版本号。 | -| packages | Array<[Package](#package)> | 是 | 系统更新包详情。 | -| description | [PackageDescription](#packagedescription) | 否 | 系统更新包描述信息。 | -| authInfo19+ | string | 否 | 系统更新包的鉴权信息。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------------- | ------ | --- | ---- |------------- | +| version | string | 否 | 否 | 系统更新包版本号。 | +| packages | Array<[Package](#package)> | 否 | 否 | 系统更新包详情。 | +| description | [PackageDescription](#packagedescription) | 否 | 是 | 系统更新包描述信息。 | +| authInfo19+ | string | 否 | 是 | 系统更新包的鉴权信息。 | ## Package @@ -501,11 +501,11 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------------- | ------ | --- | ------------- | -| type | [PackageType](#packagetype) | 是 | 系统更新包类型。 | -| path | string | 是 | 系统更新包文件路径。若传入fd参数,该参数传入更新包文件名。 | -| fd | number | 否 | 系统更新包文件句柄。当前不支持只传入path参数,需要传入fd。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------------- | ------ | --- | --- | ------------- | +| type | [PackageType](#packagetype) | 否 | 否 | 系统更新包类型。 | +| path | string | 否 | 否 | 系统更新包文件路径。若传入fd参数,该参数传入更新包文件名。 | +| fd | number | 否 | 是 | 系统更新包文件句柄。当前不支持只传入path参数,需要传入fd。 | ## PackageDescription @@ -513,9 +513,9 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------------- | ------ | --- | ------------- | -| notify | [NotifyDescription](#notifydescription) | 否 | 企业自定义更新通知说明。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------------- | ------ | --- | --- | ------------- | +| notify | [NotifyDescription](#notifydescription) | 否 | 是 | 企业自定义更新通知说明。 | ## NotifyDescription @@ -523,10 +523,10 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ----------------- | ------ | --- | ------------- | -| installTips | string | 否 | 企业自定义更新提示。 | -| installTipsDetail | string | 否 | 企业自定义更新提示详情。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------------- | ------ | --- | ---- | ------------- | +| installTips | string | 否 | 是 | 企业自定义更新提示。 | +| installTipsDetail | string | 否 | 是 | 企业自定义更新提示详情。 | ## UpdateResult @@ -534,11 +534,11 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可选 | 说明 | | ----------------- | ------ | ------ | ------ | ------------- | -| version | string | 是 | 否 |系统当前版本号。 | -| status | [UpdateStatus](#updatestatus) | 是 | 否 | 系统更新状态。 | -| errorInfo | [ErrorInfo](#errorinfo) | 是 | 否 | 系统更新错误信息。 | +| version | string | 否 | 否 |系统当前版本号。 | +| status | [UpdateStatus](#updatestatus) | 否 | 否 | 系统更新状态。 | +| errorInfo | [ErrorInfo](#errorinfo) | 否 | 否 | 系统更新错误信息。 | ## ErrorInfo @@ -546,10 +546,10 @@ systemManager.getUpdateAuthData(wantTemp).then((result: string) => { **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 可选 | 说明 | | ----------------- | ------ | ------ | ------ | ------------- | -| code | number | 是 | 否 | 错误码。 | -| message | string | 是 | 否 | 错误描述信息。 | +| code | number | 否 | 否 | 错误码。 | +| message | string | 否 | 否 | 错误描述信息。 | ## PackageType diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-usbManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-usbManager.md index 5582b194c974d811fe73d7a5c6eab5559b279283..2f85dff3e6f17023a0c15afbac25cefebb41c40c 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-usbManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-usbManager.md @@ -462,10 +462,10 @@ USB设备ID信息。 **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| --------- | ------ | ---- | -------- | -| vendorId | number | 是 | 厂商ID。 | -| productId | number | 是 | 产品ID。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| --------- | ------ | ---- | ---- | -------- | +| vendorId | number | 否 | 否 | 厂商ID。 | +| productId | number | 否 | 否 | 产品ID。 | ## UsbDeviceType14+ @@ -473,12 +473,12 @@ USB设备类型信息。其中具体编号可查询:[defined-class-codes](http **系统能力:** SystemCapability.Customization.EnterpriseDeviceManager -| 名称 | 类型 | 必填 | 说明 | -| ---------- | --------------------------- | ---- | ------------------------------------------------------------ | -| baseClass | number | 是 | 类型编号,可通过[getDevices](../apis-basic-services-kit/js-apis-usbManager.md#usbmanagergetdevices)接口获取。若descriptor为DEVICE,则取返回值中的USBDevice.clazz字段,若descriptor为INTERFACE,则取返回值中的USBDevice.configs.interfaces.clazz字段。 | -| subClass | number | 是 | 子类型编号,可通过[getDevices](../apis-basic-services-kit/js-apis-usbManager.md#usbmanagergetdevices)接口获取。若descriptor为DEVICE,则取返回值中的USBDevice.subClass字段,若descriptor为INTERFACE,则取返回值中的USBDevice.configs.interfaces.subClass字段。 | -| protocol | number | 是 | 协议编号,可通过[getDevices](../apis-basic-services-kit/js-apis-usbManager.md#usbmanagergetdevices)接口获取。若descriptor为DEVICE,则取返回值中的USBDevice.protocol字段,若descriptor为INTERFACE,则取返回值中的USBDevice.configs.interfaces.protocol字段。 | -| descriptor | [Descriptor](#descriptor14) | 是 | USB描述符。须按照[defined-class-codes](https://www.usb.org/defined-class-codes),取baseClass对应的Descriptor Usage值作为参数传入,若Descriptor Usage为Both,则设备级禁用时传入DEVICE、接口级禁用时传入INTERFACE。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ---------- | --------------------------- | ---- | ---- | ------------------------------------------------------------ | +| baseClass | number | 否 | 否 | 类型编号,可通过[getDevices](../apis-basic-services-kit/js-apis-usbManager.md#usbmanagergetdevices)接口获取。若descriptor为DEVICE,则取返回值中的USBDevice.clazz字段,若descriptor为INTERFACE,则取返回值中的USBDevice.configs.interfaces.clazz字段。 | +| subClass | number | 否 | 否 | 子类型编号,可通过[getDevices](../apis-basic-services-kit/js-apis-usbManager.md#usbmanagergetdevices)接口获取。若descriptor为DEVICE,则取返回值中的USBDevice.subClass字段,若descriptor为INTERFACE,则取返回值中的USBDevice.configs.interfaces.subClass字段。 | +| protocol | number | 否 | 否 | 协议编号,可通过[getDevices](../apis-basic-services-kit/js-apis-usbManager.md#usbmanagergetdevices)接口获取。若descriptor为DEVICE,则取返回值中的USBDevice.protocol字段,若descriptor为INTERFACE,则取返回值中的USBDevice.configs.interfaces.protocol字段。 | +| descriptor | [Descriptor](#descriptor14) | 否 | 否 | USB描述符。须按照[defined-class-codes](https://www.usb.org/defined-class-codes),取baseClass对应的Descriptor Usage值作为参数传入,若Descriptor Usage为Both,则设备级禁用时传入DEVICE、接口级禁用时传入INTERFACE。 | ## UsbPolicy diff --git a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-wifiManager.md b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-wifiManager.md index d98584e53107c55abc4c59cdd1c2b9d134487ab8..b53bf194025a0bb0b504c0f8560fb011c34a169b 100644 --- a/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-wifiManager.md +++ b/zh-cn/application-dev/reference/apis-mdm-kit/js-apis-enterprise-wifiManager.md @@ -456,10 +456,10 @@ Wi-Fi的SSID和BSSID信息。 -| 名称 | 类型 | 必填 | 说明 | -| ------------- | ------------------------------------- | ---- | ----------------------------------------------------------- | -| ssid | string | 是 | Wi-Fi热点名称,编码格式为UTF-8,最大长度为32字节(中文字符占3位,英文字符占1位)。 | -| bssid | string | 否 | Wi-Fi热点的mac地址,例如:00:11:22:33:44:55。
调用[addAllowedWifiList](#wifimanageraddallowedwifilist19)和[removeAllowedWifiList](#wifimanagerremoveallowedwifilist19)时为必填。
调用[addDisallowedWifiList](#wifimanageradddisallowedwifilist19)和[removeDisallowedWifiList](#wifimanagerremovedisallowedwifilist19)时为选填(默认值为空字符串)。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ------------- | --------------------------------| ---- | -----| ------------------------------------------------------ | +| ssid | string | 否 | 否 | Wi-Fi热点名称,编码格式为UTF-8,最大长度为32字节(中文字符占3位,英文字符占1位)。 | +| bssid | string | 否 | 是 | Wi-Fi热点的mac地址,例如:00:11:22:33:44:55。
调用[addAllowedWifiList](#wifimanageraddallowedwifilist19)和[removeAllowedWifiList](#wifimanagerremoveallowedwifilist19)时为必填。
调用[addDisallowedWifiList](#wifimanageradddisallowedwifilist19)和[removeDisallowedWifiList](#wifimanagerremovedisallowedwifilist19)时为选填(默认值为空字符串)。 | ## WifiProfile @@ -469,21 +469,21 @@ Wi-Fi配置信息。 -| 名称 | 类型 | 必填 | 说明 | -| ------------- | ------------------------------------- | ---- | ----------------------------------------------------------- | -| ssid | string | 是 | 热点的SSID,编码格式为UTF-8。 | -| bssid | string | 否 | 热点的BSSID。 | -| preSharedKey | string | 是 | 热点的密钥。 | -| isHiddenSsid | boolean | 否 | 是否是隐藏网络。true表示是隐藏网络,false表示不是隐藏网络。 | -| securityType | [WifiSecurityType](#wifisecuritytype) | 是 | 加密类型。 | -| creatorUid | number | 否 | 创建用户的ID。 | -| disableReason | number | 否 | 禁用原因。 | -| netId | number | 否 | 分配的网络ID。 | -| randomMacType | number | 否 | 随机MAC类型。 | -| randomMacAddr | string | 否 | 随机MAC地址。 | -| ipType | [IpType](#iptype) | 否 | IP地址类型。 | -| staticIp | [IpProfile](#ipprofile) | 否 | 静态IP配置信息。 | -| eapProfile | [WifiEapProfile](#wifieapprofile) | 否 | 可扩展身份验证协议配置。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ------------- | ----------------------------------| ---- | ----| ------------------------------------------------------- | +| ssid | string | 否 | 否 | 热点的SSID,编码格式为UTF-8。 | +| bssid | string | 否 | 是 | 热点的BSSID。 | +| preSharedKey | string | 否 | 否 | 热点的密钥。 | +| isHiddenSsid | boolean | 否 | 是 | 是否是隐藏网络。true表示是隐藏网络,false表示不是隐藏网络。 | +| securityType | [WifiSecurityType](#wifisecuritytype) | 否 | 否 | 加密类型。 | +| creatorUid | number | 否 | 是 | 创建用户的ID。 | +| disableReason | number | 否 | 是 | 禁用原因。 | +| netId | number | 否 | 是 | 分配的网络ID。 | +| randomMacType | number | 否 | 是 | 随机MAC类型。 | +| randomMacAddr | string | 否 | 是 | 随机MAC地址。 | +| ipType | [IpType](#iptype) | 否 | 是 | IP地址类型。 | +| staticIp | [IpProfile](#ipprofile) | 否 | 是 | 静态IP配置信息。 | +| eapProfile | [WifiEapProfile](#wifieapprofile) | 否 | 是 | 可扩展身份验证协议配置。 | ## WifiSecurityType @@ -544,23 +544,23 @@ IP配置信息。 -| 名称 | 类型 | 必填 | 说明 | -| ----------------- | ----------------------------- | ---- | -------------------------------- | -| eapMethod | [EapMethod](#eapmethod) | 是 | AP认证方式。 | -| phase2Method | [Phase2Method](#phase2method) | 是 | 第二阶段认证方式。 | -| identity | string | 是 | 身份信息。 | -| anonymousIdentity | string | 是 | 匿名身份。 | -| password | string | 是 | 密码。 | -| caCertAliases | string | 是 | CA 证书别名。 | -| caPath | string | 是 | CA 证书路径。 | -| clientCertAliases | string | 是 | 客户端证书别名。 | -| certEntry | Uint8Array | 是 | CA 证书内容。 | -| certPassword | string | 是 | CA证书密码。 | -| altSubjectMatch | string | 是 | 替代主题匹配。 | -| domainSuffixMatch | string | 是 | 域后缀匹配。 | -| realm | string | 是 | 通行证凭证的领域。 | -| plmn | string | 是 | 公共陆地移动网的直通凭证提供商。 | -| eapSubId | number | 是 | SIM卡的子ID。 | +| 名称 | 类型 | 只读 | 可选 | 说明 | +| ----------------- | ----------------------------- | ---- |----| -------------------------------- | +| eapMethod | [EapMethod](#eapmethod) | 否 | 否 | AP认证方式。 | +| phase2Method | [Phase2Method](#phase2method) | 否 | 否 | 第二阶段认证方式。 | +| identity | string | 否 | 否 | 身份信息。 | +| anonymousIdentity | string | 否 | 否 | 匿名身份。 | +| password | string | 否 | 否 | 密码。 | +| caCertAliases | string | 否 | 否 | CA 证书别名。 | +| caPath | string | 否 | 否 | CA 证书路径。 | +| clientCertAliases | string | 否 | 否 | 客户端证书别名。 | +| certEntry | Uint8Array | 否 | 否 | CA 证书内容。 | +| certPassword | string | 否 | 否 | CA证书密码。 | +| altSubjectMatch | string | 否 | 否 | 替代主题匹配。 | +| domainSuffixMatch | string | 否 | 否 | 域后缀匹配。 | +| realm | string | 否 | 否 | 通行证凭证的领域。 | +| plmn | string | 否 | 否 | 公共陆地移动网的直通凭证提供商。 | +| eapSubId | number | 否 | 否 | SIM卡的子ID。 | ## EapMethod