

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 Google 雲端硬碟
<a name="google-drive-end-user"></a>

**注意**  
Amazon WorkSpaces 應用程式使用和轉移到任何其他從 Google APIs收到的資訊應用程式，將遵守 [Google API Services 使用者資料政策](https://developers.google.com/terms/api-services-user-data-policy)，包括有限使用要求。

如果您的 WorkSpaces 應用程式管理員已啟用此檔案儲存選項，您可以將 Google Drive 帳戶新增至 WorkSpaces 應用程式。新增帳戶並登入 WorkSpaces 應用程式串流工作階段後，您可以在 Google Drive 中執行下列動作：

**注意**  
Linux 型串流執行個體目前不支援 Google 雲端硬碟。
+ 開啟和編輯您存放在 Google Drive 中的檔案和資料夾。除非您選擇共享，否則其他使用者都無法存取您的內容。
+ 在本機電腦和 Google Drive 間上傳及下載檔案。任何您在串流工作階段期間對 Google Drive 中檔案和資料夾所做的變更，都會自動備份並同步。您可以在登入 Google Drive 帳戶並在串流工作階段外部存取 Google Drive 時使用他們。
+ 當您使用應用程式時，您可以存取您存放在 Google Drive 中的檔案和資料夾。從應用程式界面選擇 **File (檔案)**、**Open (開啟)**，然後瀏覽到您希望開啟的檔案或資料夾。若要將您在檔案中的變更儲存到 Google Drive，請從應用程式選擇 **File (檔案)**、**Save (儲存)**，然後瀏覽到 Google Drive 中您希望儲存檔案的位置。
+ 您也可以從 WorkSpaces 應用程式工具列左上角選擇**我的檔案**來存取 Google Drive。

**將您的 Google Drive 帳戶新增至 WorkSpaces 應用程式**

若要在 WorkSpaces 應用程式串流工作階段期間存取 Google Drive，您必須先將 Google Drive 帳戶新增至 WorkSpaces 應用程式。

1. 在 WorkSpaces 應用程式工具列的左上角，選擇**我的檔案**圖示。

1. 在 **My Files (我的檔案)** 對話方塊中，選擇 **Add Storage (新增儲存體)**。  
![\[File management interface showing Home Folder and Temporary Files with Add Storage option.\]](http://docs.aws.amazon.com/zh_tw/appstream2/latest/developerguide/images/AddStorage.png)

1. 選擇 **Google Drive**。  
![\[Google Drive option highlighted in the Add Storage dropdown menu.\]](http://docs.aws.amazon.com/zh_tw/appstream2/latest/developerguide/images/AddGoogleDrive1.png)

1. 選擇您 Google Drive 帳戶的網域。  
![\[Dropdown menu showing login account options with example.com highlighted.\]](http://docs.aws.amazon.com/zh_tw/appstream2/latest/developerguide/images/LoginAccounts.png)

1. 隨即顯示 **Sign in with Google (使用 Google 登入)** 對話方塊。出現提示時，輸入您的 Google 雲端硬碟帳戶的登入憑證。

   將 Google Drive 帳戶新增至 WorkSpaces 應用程式後，您的 Google Drive 資料夾會顯示在**我的檔案**。  
![\[File explorer window showing Google Drive folder added to My Files with last modified date.\]](http://docs.aws.amazon.com/zh_tw/appstream2/latest/developerguide/images/AddGoogleDrive2.png)

1. 若要使用您 Google Drive 中的檔案和資料夾，請選擇 **Google Drive** 資料夾然後瀏覽至您想要的檔案或資料夾。若您不想要在此串流工作階段期間使用 Google Drive 中的檔案，請關閉 **My Files (我的檔案)** 對話方塊。

**在本機電腦和 Google Drive 間上傳及下載檔案**

1. 在 WorkSpaces 應用程式工具列的左上角，選擇**我的檔案**圖示。

1. 在 **My Files (我的檔案)** 對話方塊中，選擇 **Google Drive**。

1. 導覽至現有的資料夾，或是選擇 **Add Folder (新增資料夾)** 來建立資料夾。

1. 在顯示您想要的資料夾時，執行下列其中一項作業：
   + 若要將檔案上傳至資料夾，請選取您希望上傳的檔案，然後選擇 **Upload (上傳)**。
   + 若要從資料夾下載檔案，請選取您希望下載的檔案，然後選擇檔案名稱右側的向下箭頭，並選擇 **Download (下載)**。  
![\[File management interface showing PDF file with options to upload, download, and rename.\]](http://docs.aws.amazon.com/zh_tw/appstream2/latest/developerguide/images/GoogleDrive_FileUploadDownload.png)