目录

class info
public class DriveScopes extends Object
Class of scopes available for HUAWEI Drive Kit.

Constant Summary

TypeNameDesc
StringSCOPE_DRIVEAll permissions, except those for the app folder.
StringSCOPE_DRIVE_FILEPermissions for viewing and managing files.
StringSCOPE_DRIVE_READONLYPermissions only for viewing file content and metadata.
StringSCOPE_DRIVE_METADATAPermissions for viewing and managing file metadata, excluding file entities.
StringSCOPE_DRIVE_METADATA_READONLYPermissions only for viewing file metadata, excluding file entities.
StringSCOPE_DRIVE_APPDATAPermissions for uploading and storing app data.

Public Method Summary

Return typeMethod name
static Set<String>

all()

Returns the collection of all scopes defined in HUAWEI Drive Kit. The collection cannot be modified.

Constants

Constant
public static final String SCOPE_DRIVE

All permissions, except those for the app folder.

Constant value: https://www.huawei.com/auth/drive

Constant


public static final String SCOPE_DRIVE_FILE

Permissions for viewing and managing files.

Constant value: https://www.huawei.com/auth/drive.file

Constant


public static final String SCOPE_DRIVE_READONLY

Permissions only for viewing file content and metadata.

Constant value: https://www.huawei.com/auth/drive.readonly

Constant


public static final String SCOPE_DRIVE_METADATA

Permissions for viewing and managing file metadata, excluding file entities.

Constant value: https://www.huawei.com/auth/drive.metadata

Constant


public static final String SCOPE_DRIVE_METADATA_READONLY

Permissions only for viewing file metadata, excluding file entities.

Constant value: https://www.huawei.com/auth/drive.metadata.readonly

Constant


public static final String SCOPE_DRIVE_APPDATA

Permissions for uploading and storing app data.

Constant value: https://www.huawei.com/auth/drive.appdata

Public Methods

Method
public static Set<String> all()
Returns the collection of all scopes defined in HUAWEI Drive Kit. The collection cannot be modified.

Return

typedesc
Set<String>Collection of all scopes defined in HUAWEI Drive Kit.