未验证 提交 07f1dc75 编写于 作者: O openharmony_ci 提交者: Gitee

!13809 [翻译完成】#I64V5B

Merge pull request !13809 from Annie_wang/PR12154
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
- [@ohos.bundle.bundleManager](js-apis-bundleManager.md) - [@ohos.bundle.bundleManager](js-apis-bundleManager.md)
- [@ohos.bundle.bundleMonitor](js-apis-bundleMonitor.md) - [@ohos.bundle.bundleMonitor](js-apis-bundleMonitor.md)
- [@ohos.bundle.defaultAppManager](js-apis-defaultAppManager.md) - [@ohos.bundle.defaultAppManager](js-apis-defaultAppManager.md)
- [@ohos.bundle.distributedBundle](js-apis-distributedBundle.md) - [@ohos.bundle.distributedBundleManager (distributedBundleManager)](js-apis-distributedBundleManager.md)
- [@ohos.bundle.freeInstall](js-apis-freeInstall.md) - [@ohos.bundle.freeInstall](js-apis-freeInstall.md)
- [@ohos.bundle.installer](js-apis-installer.md) - [@ohos.bundle.installer](js-apis-installer.md)
- [@ohos.bundle.launcherBundleManager](js-apis-launcherBundleManager.md) - [@ohos.bundle.launcherBundleManager](js-apis-launcherBundleManager.md)
...@@ -210,22 +210,21 @@ ...@@ -210,22 +210,21 @@
- [@ohos.data.distributedDataObject (Distributed Data Object)](js-apis-data-distributedobject.md) - [@ohos.data.distributedDataObject (Distributed Data Object)](js-apis-data-distributedobject.md)
- [@ohos.data.distributedKVStore (Distributed KV Store)](js-apis-distributedKVStore.md) - [@ohos.data.distributedKVStore (Distributed KV Store)](js-apis-distributedKVStore.md)
- [@ohos.data.preferences (Preferences)](js-apis-data-preferences.md) - [@ohos.data.preferences (Preferences)](js-apis-data-preferences.md)
- [@ohos.data.rdb (RDB)](js-apis-data-rdb.md) - [@ohos.data.relationalStore (RDB Store)](js-apis-data-relationalStore.md)
- [@ohos.data.ValuesBucket (Value Bucket)](js-apis-data-valuesBucket.md) - [@ohos.data.ValuesBucket (Value Bucket)](js-apis-data-valuesBucket.md)
- data/rdb - data/rdb
- [resultSet](js-apis-data-resultset.md) - [resultSet](js-apis-data-resultset.md)
- File Management - File Management
- [@ohos.document](js-apis-document.md)
- [@ohos.environment](js-apis-environment.md) - [@ohos.environment](js-apis-environment.md)
- [@ohos.data.fileAccess](js-apis-fileAccess.md) - [@ohos.data.fileAccess (User File Access and Management)](js-apis-fileAccess.md)
- [@ohos.fileExtensionInfo](js-apis-fileExtensionInfo.md) - [@ohos.fileExtensionInfo (User File Access and Management Attributes)](js-apis-fileExtensionInfo.md)
- [@ohos.fileio](js-apis-fileio.md) - [@ohos.fileio (File Management)](js-apis-fileio.md)
- [@ohos.filemanagement.userFileManager](js-apis-userFileManager.md) - [@ohos.filemanagement.userFileManager (User Data Management)](js-apis-userFileManager.md)
- [@ohos.multimedia.medialibrary](js-apis-medialibrary.md) - [@ohos.multimedia.medialibrary (Media Library Management)](js-apis-medialibrary.md)
- [@ohos.securityLabel](js-apis-securityLabel.md) - [@ohos.securityLabel (Data Label)](js-apis-securityLabel.md)
- [@ohos.statfs](js-apis-statfs.md) - [@ohos.statfs (statfs)](js-apis-statfs.md)
- [@ohos.storageStatistics](js-apis-storage-statistics.md) - [@ohos.storageStatistics (Application Storage Statistics)](js-apis-storage-statistics.md)
- [@ohos.volumeManager](js-apis-volumemanager.md) - [@ohos.volumeManager (Volume Management)](js-apis-volumemanager.md)
- Telephony Service - Telephony Service
- [@ohos.contact](js-apis-contact.md) - [@ohos.contact](js-apis-contact.md)
- [@ohos.telephony.call](js-apis-call.md) - [@ohos.telephony.call](js-apis-call.md)
...@@ -357,10 +356,11 @@ ...@@ -357,10 +356,11 @@
- [@ohos.bundle.innerBundleManager](js-apis-Bundle-InnerBundleManager.md) - [@ohos.bundle.innerBundleManager](js-apis-Bundle-InnerBundleManager.md)
- [@ohos.bundleState](js-apis-deviceUsageStatistics.md) - [@ohos.bundleState](js-apis-deviceUsageStatistics.md)
- [@ohos.bytrace](js-apis-bytrace.md) - [@ohos.bytrace](js-apis-bytrace.md)
- [@ohos.data.storage](js-apis-data-storage.md) - [@ohos.data.distributedData (Distributed Data Management)](js-apis-distributed-data.md)
- [@ohos.data.distributedData](js-apis-distributed-data.md) - [@ohos.data.storage (Lightweight Data Storage)](js-apis-data-storage.md)
- [@ohos.data.rdb (RDB)](js-apis-data-rdb.md)
- [@ohos.distributedBundle](js-apis-Bundle-distributedBundle.md) - [@ohos.distributedBundle](js-apis-Bundle-distributedBundle.md)
- [@ohos.document](js-apis-document.md) - [@ohos.document (File Operation)](js-apis-document.md)
- [@ohos.geolocation](js-apis-geolocation.md) - [@ohos.geolocation](js-apis-geolocation.md)
- [@ohos.hiAppEvent](js-apis-hiappevent.md) - [@ohos.hiAppEvent](js-apis-hiappevent.md)
- [@ohos.prompt](js-apis-prompt.md) - [@ohos.prompt](js-apis-prompt.md)
......
# @ohos.data.relationalStore # @ohos.data.relationalStore (RDB Store)
The relational database (RDB) store manages data based on relational models. With the underlying SQLite database, the RDB store provides a complete mechanism for managing local databases. To satisfy different needs in complicated scenarios, the RDB store offers a series of APIs for performing operations such as adding, deleting, modifying, and querying data, and supports direct execution of SQL statements. The relational database (RDB) store manages data based on relational models. With the underlying SQLite database, the RDB store provides a complete mechanism for managing local databases. To satisfy different needs in complicated scenarios, the RDB store offers a series of APIs for performing operations such as adding, deleting, modifying, and querying data, and supports direct execution of SQL statements.
......
# @ohos.data.storage # @ohos.data.storage (Lightweight Data Storage)
The **DataStorage** module provides applications with data processing capability and allows applications to perform lightweight data storage and query. Data is stored in key-value (KV) pairs. Keys are of the string type, and values can be of the number, string, or Boolean type. The **DataStorage** module provides applications with data processing capability and allows applications to perform lightweight data storage and query. Data is stored in key-value (KV) pairs. Keys are of the string type, and values can be of the number, string, or Boolean type.
......
# File Interaction # @ohos.document (File Operation)
> **NOTE**<br/> > **NOTE**
>
> - The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. > - The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> - The APIs of this module have been deprecated since API version 9 and are not recommended for use. An exception will be thrown if any of the APIs is called. > - The APIs provided by this module have been deprecated since API version 9 and are not recommended for use. An exception will be thrown if any of the APIs is called.
## Modules to Import ## Modules to Import
...@@ -12,7 +13,7 @@ import document from '@ohos.document'; ...@@ -12,7 +13,7 @@ import document from '@ohos.document';
## document.choose<sup>(deprecated)</sup> ## document.choose<sup>(deprecated)</sup>
choose(types? : string[]): Promise&lt;string&gt; choose(types?: string[]): Promise&lt;string&gt;
Chooses files of the specified types using the file manager. This API uses a promise to return the result. Chooses files of the specified types using the file manager. This API uses a promise to return the result.
......
# @ohos.data.fileAccess # @ohos.data.fileAccess (User File Access and Management)
The **fileAccess** module is a framework for accessing and operating user files based on the Extension ability mechanism. This module interacts with diverse file management services, such as the media library and external storage management service, and provides a set of file access and management APIs for system applications. The media library service allows access to user files on local devices and distributed devices. The external storage management service allows access to the user files stored on devices such as shared disks, USB flash drives, and SD cards. The **fileAccess** module is a framework for accessing and operating user files based on the Extension ability mechanism. This module interacts with diverse file management services, such as the media library and external storage management service, and provides a set of file access and management APIs for system applications. The media library service allows access to user files on local devices and distributed devices. The external storage management service allows access to the user files stored on devices such as shared disks, USB flash drives, and SD cards.
......
# @ohos.fileExtensionInfo # @ohos.fileExtensionInfo (User File Access and Management Attributes)
The **fileExtensionInfo** module defines attributes in **RootInfo** and **FileInfo** of the user file access and management module. The **fileExtensionInfo** module defines attributes in **RootInfo** and **FileInfo** of the user file access and management module.
......
# Security Label # @ohos.securityLabel (Data Label)
The **secuityLabel** module provides APIs to manage file data security levels, including obtaining and setting file data security levels. The **secuityLabel** module provides APIs to manage file data security levels, including obtaining and setting file data security levels.
> **NOTE**<br/> > **NOTE**
> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import ## Modules to Import
......
# statfs # @ohos.statfs (statfs)
The statfs module provides APIs for obtaining file system information, including the total number of bytes and the number of idle bytes of the file system. The **statfs** module provides APIs for obtaining file system information, including the total number of bytes and the number of idle bytes of the file system.
> **NOTE**<br> > **NOTE**
>
> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import ## Modules to Import
......
# @ohos.storageStatistics (App Storage Statistics) # @ohos.storageStatistics (Application Storage Statistics)
The **storageStatistics** module provides APIs for obtaining storage space information, including the space of built-in and plug-in memory cards, space occupied by different types of data, and space of application data. The **storageStatistics** module provides APIs for obtaining storage space information, including the space of built-in and plug-in memory cards, space occupied by different types of data, and space of application data.
...@@ -68,7 +68,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -68,7 +68,7 @@ This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------------------------------------ | ---- | -------------------------- | | ---------- | ------------------------------------ | ---- | -------------------------- |
| volumeUuid | string | Yes | UUID of the volume. | | volumeUuid | string | Yes | UUID of the volume. |
| callback | callback: AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the total size of the volume.| | callback | AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the total size of the volume.|
**Example** **Example**
...@@ -137,7 +137,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -137,7 +137,7 @@ This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------------------------------------ | ---- | ---------------------------- | | ---------- | ------------------------------------ | ---- | ---------------------------- |
| volumeUuid | string | Yes | UUID of the volume. | | volumeUuid | string | Yes | UUID of the volume. |
| callback | callback: AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the available space of the volume.| | callback | AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the available space of the volume.|
**Example** **Example**
...@@ -173,7 +173,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -173,7 +173,7 @@ This is a system API and cannot be called by third-party applications.
| Type | Description | | Type | Description |
| ------------------------------------------ | -------------------------- | | ------------------------------------------ | -------------------------- |
| Promise&lt;[Bundlestats](#bundlestats)&gt; | Promise used to return the space information obtained.| | Promise&lt;[Bundlestats](#bundlestats9)&gt; | Promise used to return the space information obtained.|
**Example** **Example**
...@@ -205,7 +205,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -205,7 +205,7 @@ This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------ | | -------- | --------------------------------------------------------- | ---- | ------------------------------------ |
| packageName | string | Yes | Bundle name of the application.| | packageName | string | Yes | Bundle name of the application.|
| callback | callback: AsyncCallback&lt;[Bundlestats](#bundlestats)&gt; | Yes | Callback invoked to return the space information obtained.| | callback | AsyncCallback&lt;[Bundlestats](#bundlestats9)&gt; | Yes | Callback invoked to return the space information obtained.|
**Example** **Example**
...@@ -229,7 +229,7 @@ Asynchronously obtains space information of the current third-party application. ...@@ -229,7 +229,7 @@ Asynchronously obtains space information of the current third-party application.
| Type | Description | | Type | Description |
| ------------------------------------------ | -------------------------- | | ------------------------------------------ | -------------------------- |
| Promise&lt;[Bundlestats](#bundlestats)&gt; | Promise used to return the space information obtained. | | Promise&lt;[Bundlestats](#bundlestats9)&gt; | Promise used to return the space information obtained. |
**Example** **Example**
...@@ -250,7 +250,7 @@ Asynchronously obtains space information of the current third-party application. ...@@ -250,7 +250,7 @@ Asynchronously obtains space information of the current third-party application.
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------ | | -------- | --------------------------------------------------------- | ---- | ------------------------------------ |
| callback | callback: AsyncCallback&lt;[BundleStats](#bundlestats)&gt; | Yes | Callback invoked to return the space information obtained. | | callback | AsyncCallback&lt;[BundleStats](#bundlestats9)&gt; | Yes | Callback invoked to return the space information obtained. |
**Example** **Example**
...@@ -270,11 +270,11 @@ Asynchronously obtains space information of the current third-party application. ...@@ -270,11 +270,11 @@ Asynchronously obtains space information of the current third-party application.
This is a system API and cannot be called by third-party applications. This is a system API and cannot be called by third-party applications.
| Name | Type | Description | | Name | Type | Readable| Writable| Description |
| --------- | ------ | -------------- | | --------- | ------ | --- | ---- | -------------- |
| appSize | number | Size of the application. | | appSize | number | Yes| No| Size of the application. |
| cacheSize | number | Cache size of the application. | | cacheSize | number | Yes| No| Cache size of the application. |
| dataSize | number | Total data size of the application.| | dataSize | number | Yes| No| Total data size of the application.|
## storageStatistics.getTotalSize<sup>9+</sup> ## storageStatistics.getTotalSize<sup>9+</sup>
...@@ -322,7 +322,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -322,7 +322,7 @@ This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory | Description | | Name | Type | Mandatory | Description |
| -------- | ------------------------------------ | ---- | ------------------------ | | -------- | ------------------------------------ | ---- | ------------------------ |
| callback | callback: AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the total space of the built-in memory card.| | callback | AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the total space of the built-in memory card.|
**Example** **Example**
...@@ -380,7 +380,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -380,7 +380,7 @@ This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------ | ---- | ------------------------- | | -------- | ------------------------------------ | ---- | ------------------------- |
| callback | callback: AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the available space of the built-in memory card.| | callback | AsyncCallback&lt;number&gt; | Yes | Callback invoked to return the available space of the built-in memory card.|
**Example** **Example**
...@@ -439,7 +439,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -439,7 +439,7 @@ This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------------------------------------ | ---- | -------------------------- | | ---------- | ------------------------------------ | ---- | -------------------------- |
| callback | callback: AsyncCallback&lt;number&gt; | Yes | Callback used to return the system space obtained.| | callback | AsyncCallback&lt;number&gt; | Yes | Callback used to return the system space obtained.|
**Example** **Example**
...@@ -452,7 +452,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -452,7 +452,7 @@ This is a system API and cannot be called by third-party applications.
## storageStatistics.getUserStorageStats<sup>9+</sup> ## storageStatistics.getUserStorageStats<sup>9+</sup>
getUserStorageStats(userId? : number): Promise&lt;StorageStats&gt; getUserStorageStats(userId?: number): Promise&lt;StorageStats&gt;
Asynchronously obtains the space occupied by each type of user data. This API uses a promise to return the result. Asynchronously obtains the space occupied by each type of user data. This API uses a promise to return the result.
...@@ -474,7 +474,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -474,7 +474,7 @@ This is a system API and cannot be called by third-party applications.
| Type | Description | | Type | Description |
| --------------------- | ---------------- | | --------------------- | ---------------- |
| Promise&lt;[StorageStats](#storagestats)&gt; | Promise used to return the information obtained.| | Promise&lt;[StorageStats](#storagestats9)&gt; | Promise used to return the information obtained.|
**Example** **Example**
...@@ -489,7 +489,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -489,7 +489,7 @@ This is a system API and cannot be called by third-party applications.
## storageStatistics.getUserStorageStats<sup>9+</sup> ## storageStatistics.getUserStorageStats<sup>9+</sup>
getUserStorageStats(userId: number, callback: AsyncCallback&lt;StorageStats&gt;): void getUserStorageStats(userId?: number, callback: AsyncCallback&lt;StorageStats&gt;): void
Asynchronously obtains the space occupied by each type of user data. This API uses a callback to return the result. Asynchronously obtains the space occupied by each type of user data. This API uses a callback to return the result.
...@@ -506,7 +506,7 @@ This is a system API and cannot be called by third-party applications. ...@@ -506,7 +506,7 @@ This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ---------- | ------------------------------------ | ---- | -------------------------- | | ---------- | ------------------------------------ | ---- | -------------------------- |
| userId | number | No | User ID.<br>Value:<br>-&nbsp; Set this parameter to the ID of the user to be queried.<br>-&nbsp; If no value is specified, information about the current user is queried. | | userId | number | No | User ID.<br>Value:<br>-&nbsp; Set this parameter to the ID of the user to be queried.<br>-&nbsp; If no value is specified, information about the current user is queried. |
| callback | callback: AsyncCallback&lt;[StorageStats](#storagestats)&gt; | Yes | Callback invoked to return the information obtained.| | callback | AsyncCallback&lt;[StorageStats](#storagestats9)&gt; | Yes | Callback invoked to return the information obtained.|
**Example** **Example**
...@@ -528,11 +528,11 @@ This is a system API and cannot be called by third-party applications. ...@@ -528,11 +528,11 @@ This is a system API and cannot be called by third-party applications.
This is a system API and cannot be called by third-party applications. This is a system API and cannot be called by third-party applications.
| Name | Type | Description | | Name | Type | Readable | Writable | Description |
| --------- | ------ | -------------- | | --------- | ------ | ---- | ----- | -------------- |
| total | number | Total space of the built-in memory card. | | total | number | Yes| No| Total space of the built-in memory card. |
| audio | number | Space occupied by audio data. | | audio | number |Yes| No| Space occupied by audio data. |
| video | number | Space occupied by video data.| | video | number | Yes| No| Space occupied by video data.|
| image | number | Space occupied by image data. | | image | number | Yes| No| Space occupied by image data. |
| file | number | Space occupied by files. | | file | number | Yes| No| Space occupied by files. |
| app | number | Space occupied by application data.| | app | number | Yes| No| Space occupied by application data.|
# @ohos.filemanagement.userFileManager # @ohos.filemanagement.userFileManager (User Data Management)
The **userFileManager** module provides user data management capabilities, including accessing and modifying user media data (audio and video clips, images, and files). The **userFileManager** module provides user data management capabilities, including accessing and modifying user media data (audio and video clips, images, and files).
......
# Volume Management # @ohos.volumeManager (Volume Management)
The volumeManager module provides APIs for volume and disk management, including obtaining volume information, mounting or unmounting volumes, partitioning disks, and formatting volumes. The volumeManager module provides APIs for volume and disk management, including obtaining volume information, mounting or unmounting volumes, partitioning disks, and formatting volumes.
> **NOTE**<br> > **NOTE**
> >
> - The initial APIs of this module are supported since API version 9. > - The initial APIs of this module are supported since API version 9.
> - API version 9 is a canary version for trial use. The APIs of this version may be unstable.
> - The APIs of this module are system APIs and cannot be called by third-party applications. > - The APIs of this module are system APIs and cannot be called by third-party applications.
## Modules to Import ## Modules to Import
...@@ -52,7 +51,7 @@ Asynchronously obtains information about all available volumes. This API uses a ...@@ -52,7 +51,7 @@ Asynchronously obtains information about all available volumes. This API uses a
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------------------- | ---- | ------------------------------------ | | -------- | ------------------------------------------------- | ---- | ------------------------------------ |
| callback | callback: AsyncCallback&lt;[Volume](#volume)[]&gt; | Yes | Callback invoked to return the volume information obtained.| | callback | AsyncCallback&lt;[Volume](#volume)[]&gt; | Yes | Callback invoked to return the volume information obtained.|
**Example** **Example**
...@@ -110,7 +109,7 @@ Asynchronously obtains the available space of the specified volume. This API use ...@@ -110,7 +109,7 @@ Asynchronously obtains the available space of the specified volume. This API use
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------- | ---- | -------------------- | | -------- | ------------------------------------- | ---- | -------------------- |
| volumeId | string | Yes | Volume ID. | | volumeId | string | Yes | Volume ID. |
| callback | callback: AsyncCallback&lt;boolean&gt; | Yes | Callback invoked to return the execution result.| | callback | AsyncCallback&lt;boolean&gt; | Yes | Callback invoked to return the execution result.|
**Example** **Example**
...@@ -167,7 +166,7 @@ Asynchronously unmounts a volume. This API uses a callback to return the result. ...@@ -167,7 +166,7 @@ Asynchronously unmounts a volume. This API uses a callback to return the result.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------- | ---- | -------------------- | | -------- | ------------------------------------- | ---- | -------------------- |
| volumeId | string | Yes | Volume ID. | | volumeId | string | Yes | Volume ID. |
| callback | callback: AsyncCallback&lt;boolean&gt; | Yes | Callback invoked to return the execution result.| | callback | AsyncCallback&lt;boolean&gt; | Yes | Callback invoked to return the execution result.|
**Example** **Example**
...@@ -226,7 +225,7 @@ Asynchronously obtains volume information based on the UUID. This API uses a cal ...@@ -226,7 +225,7 @@ Asynchronously obtains volume information based on the UUID. This API uses a cal
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------------------ | ---- | -------------------- | | -------- | ------------------------------------------------ | ---- | -------------------- |
| uuid | string | Yes | UUID of the volume. | | uuid | string | Yes | UUID of the volume. |
| callback | callback: AsyncCallback&lt;[Volume](#volume)&gt; | Yes | Callback invoked to return the volume information obtained.| | callback | AsyncCallback&lt;[Volume](#volume)&gt; | Yes | Callback invoked to return the volume information obtained.|
**Example** **Example**
...@@ -285,7 +284,7 @@ Asynchronously obtains volume information based on the volume ID. This API uses ...@@ -285,7 +284,7 @@ Asynchronously obtains volume information based on the volume ID. This API uses
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ----------------------------- | | -------- | ------------------------- | ---- | ----------------------------- |
| volumeId | string | Yes | Volume ID. | | volumeId | string | Yes | Volume ID. |
| callback | callback:AsyncCallback&lt;[Volume](#volume)&gt; | Yes | Callback invoked to return the volume information obtained. | | callback | AsyncCallback&lt;[Volume](#volume)&gt; | Yes | Callback invoked to return the volume information obtained. |
**Example** **Example**
...@@ -347,7 +346,7 @@ Asynchronously sets the volume description based on the UUID. This API uses a ca ...@@ -347,7 +346,7 @@ Asynchronously sets the volume description based on the UUID. This API uses a ca
| ---------- | --------------------------------------- | ---- | ---------------- | | ---------- | --------------------------------------- | ---- | ---------------- |
| uuid | string | Yes | UUID of the volume. | | uuid | string | Yes | UUID of the volume. |
| description | string | Yes | Volume description. | | description | string | Yes | Volume description. |
| callback | callback: AsyncCallback&lt;void&gt; | Yes | Callback invoked to return the result.| | callback | AsyncCallback&lt;void&gt; | Yes | Callback invoked to return the result.|
**Example** **Example**
...@@ -410,7 +409,7 @@ Asynchronously formats a volume. This API uses a callback to return the result. ...@@ -410,7 +409,7 @@ Asynchronously formats a volume. This API uses a callback to return the result.
| -------- | ------------------------- | ---- | ----------------------------- | | -------- | ------------------------- | ---- | ----------------------------- |
| volumeId | string | Yes | Volume ID. | | volumeId | string | Yes | Volume ID. |
| fsType | string | Yes | File system type.| | fsType | string | Yes | File system type.|
| callback | callback: AsyncCallback&lt;void&gt; | Yes | Called after the volume is formatted. | | callback | AsyncCallback&lt;void&gt; | Yes | Called after the volume is formatted. |
**Example** **Example**
...@@ -473,7 +472,7 @@ Asynchronously partitions a disk. This API uses a callback to return the result. ...@@ -473,7 +472,7 @@ Asynchronously partitions a disk. This API uses a callback to return the result.
| -------- | --------------------------------------- | ---- | ---------------- | | -------- | --------------------------------------- | ---- | ---------------- |
| diskId | string | Yes | ID of the disk to which the volume belongs. | | diskId | string | Yes | ID of the disk to which the volume belongs. |
| type | number | Yes | Partition type. | | type | number | Yes | Partition type. |
| callback | callback: AsyncCallback&lt;void&gt; | Yes | Callback invoked to return the result. | | callback | AsyncCallback&lt;void&gt; | Yes | Callback invoked to return the result. |
**Example** **Example**
...@@ -491,12 +490,12 @@ Asynchronously partitions a disk. This API uses a callback to return the result. ...@@ -491,12 +490,12 @@ Asynchronously partitions a disk. This API uses a callback to return the result.
### Attributes ### Attributes
| Name | Type | Description | | Name | Type | Readable | Writable | Description |
| ----------- | ------- | -------------------- | | ----------- | ------- | ------- | ----- | -------------------- |
| id | string | Volume ID. | | id | string | Yes| No| Volume ID. |
| uuid | string | UUID of the volume. | | uuid | string | Yes| No| UUID of the volume. |
| diskId | string | ID of the disk to which the volume belongs. | | diskId | string | Yes| No| ID of the disk to which the volume belongs. |
| description | string | Description of the volume. | | description | string | Yes| No| Description of the volume. |
| removable | boolean | Whether the volume is a removable storage device.| | removable | boolean | Yes| No| Whether the volume is a removable storage device.|
| state | number | Volume state. | | state | number | Yes| No| Volume state. |
| path | string | Mount address of the volume. | | path | string | Yes| No| Mount address of the volume. |
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册