@@ -12,7 +12,9 @@ amount of data at any time.
1212* [ Setup] ( #setup )
1313* [ Samples] ( #samples )
1414 * [ Buckets] ( #buckets )
15+ * [ Encryption] ( #encryption )
1516 * [ Files] ( #files )
17+ * [ Storage Transfer API] ( #storage-transfer-api )
1618
1719## Setup
1820
@@ -51,6 +53,33 @@ Examples:
5153[ buckets_docs ] : https://cloud.google.com/storage/docs
5254[ buckets_code ] : buckets.js
5355
56+ ### Encryption
57+
58+ View the [ documentation] [ encryption_docs ] or the [ source code] [ encryption_code ] .
59+
60+ __ Usage:__ ` node encryption --help `
61+
62+ ```
63+ Usage: node encryption COMMAND [ARGS...]
64+
65+ Commands:
66+
67+ generate-encryption-key
68+ upload BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME KEY
69+ download BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME KEY
70+ rotate BUCKET_NAME FILE_NAME OLD_KEY NEW_KEY
71+
72+ Examples:
73+
74+ node encryption generate-encryption-key
75+ node encryption upload my-bucket resources/test.txt file_encrypted.txt QxhqaZEqBGVTW55HhQw9Q=
76+ node encryption download my-bucket file_encrypted.txt ./file.txt QxhqaZEqBGVTW55HhQw9Q=
77+ node encryption rotate my-bucket file_encrypted.txt QxhqaZEqBGVTW55HhQw9Q= SxafpsdfSDFS89sds9Q=
78+ ```
79+
80+ [ encryption_docs ] : https://cloud.google.com/storage/docs
81+ [ encryption_code ] : encryption.js
82+
5483### Files
5584
5685View the [ documentation] [ files_docs ] or the [ source code] [ files_code ] .
@@ -89,29 +118,48 @@ Examples:
89118[ files_docs ] : https://cloud.google.com/storage/docs
90119[ files_code ] : files.js
91120
92- ### Encryption
121+ ### Storage Transfer API
93122
94- View the [ documentation] [ encryption_docs ] or the [ source code] [ encryption_code ] .
123+ View the [ documentation] [ storagetransfer_docs ] or the [ source code] [ storagetransfer_code ] .
95124
96- __ Usage:__ ` node encryption --help `
125+ __ Usage:__ ` node transfer --help `
97126
98127```
99- Usage: node encryption COMMAND [ARGS...]
128+ Usage: node encryption RESOURCE COMMAND [ARGS...]
100129
101- Commands :
130+ Resources :
102131
103- generate-encryption-key
104- upload BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME KEY
105- download BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME KEY
106- rotate BUCKET_NAME FILE_NAME OLD_KEY NEW_KEY
132+ jobs
133+
134+ Commands:
135+
136+ create SRC_BUCKET_NAME DEST_BUCKET_NAME DATE TIME [DESCRIPTION]
137+ get JOB_NAME
138+ list
139+ set JOB_NAME FIELD VALUE
140+
141+ operations
142+
143+ Commands:
144+
145+ list [JOB_NAME]
146+ get TRANSFER_NAME
147+ pause TRANSFER_NAME
148+ resume TRANSFER_NAME
107149
108150Examples:
109151
110- node encryption generate-encryption-key
111- node encryption upload my-bucket resources/test.txt file_encrypted.txt QxhqaZEqBGVTW55HhQw9Q=
112- node encryption download my-bucket file_encrypted.txt ./file.txt QxhqaZEqBGVTW55HhQw9Q=
113- node encryption rotate my-bucket file_encrypted.txt QxhqaZEqBGVTW55HhQw9Q= SxafpsdfSDFS89sds9Q=
152+ node transfer jobs create my-bucket my-other-bucket 2016/08/12 16:30 "Move my files"
153+ node transfer jobs get transferJobs/123456789012345678
154+ node transfer jobs list
155+ node transfer jobs set transferJobs/123456789012345678 description "My new description"
156+ node transfer jobs set transferJobs/123456789012345678 status DISABLED
157+ node transfer operations list
158+ node transfer operations list transferJobs/123456789012345678
159+ node transfer operations get transferOperations/123456789012345678
160+ node transfer operations pause transferOperations/123456789012345678
161+ node transfer operations resume transferOperations/123456789012345678
114162```
115163
116- [ encryption_docs ] : https://cloud.google.com/storage/docs
117- [ encryption_code ] : encryption .js
164+ [ storagetransfer_docs ] : https://cloud.google.com/storage/docs
165+ [ storagetransfer_code ] : transfer .js
0 commit comments