Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 81b23c7

Browse filesBrowse files
author
Shun Fan
committed
Merge pull request GoogleCloudPlatform#57 from GoogleCloudPlatform/sfan-sts03
Reword credential creation in README.md
2 parents f15cb07 + fd753e6 commit 81b23c7
Copy full SHA for 81b23c7

File tree

Expand file treeCollapse file tree

5 files changed

+9
-1
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+9
-1
lines changed

‎storage/storage_transfer/README.md

Copy file name to clipboardExpand all lines: storage/storage_transfer/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This app creates two types of transfers using the Transfer Service tool.
88
1. Go to the [Developers Console](https://cloud.google.com/console) and create or select your project.
99
You will need the project ID later.
1010
1. Within Developers Console, select APIs & auth > Credentials.
11-
1. Add a new JSON key credential for a service account.
11+
1. Select Add credentials > Service account > JSON key.
1212
1. Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to point to your JSON key.
1313
1. Add the Storage Transfer service account, cloud-mobility@system.gserviceaccount.com as an
1414
editor of your project.

‎storage/storage_transfer/aws_request.py

Copy file name to clipboardExpand all lines: storage/storage_transfer/aws_request.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14+
# [START all]
1415
import json
1516
import logging
1617

@@ -66,3 +67,4 @@ def main():
6667

6768
if __name__ == '__main__':
6869
main()
70+
# [END all]

‎storage/storage_transfer/create_client.py

Copy file name to clipboardExpand all lines: storage/storage_transfer/create_client.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14+
# [START all]
1415
import logging
1516

1617
from apiclient import discovery
@@ -25,3 +26,4 @@ def create_transfer_client():
2526
logging.getLogger().setLevel(logging.DEBUG)
2627
credentials = GoogleCredentials.get_application_default()
2728
return discovery.build('storagetransfer', 'v1', credentials=credentials)
29+
# [END all]

‎storage/storage_transfer/nearline_request.py

Copy file name to clipboardExpand all lines: storage/storage_transfer/nearline_request.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14+
# [START all]
1415
import json
1516
import logging
1617

@@ -62,3 +63,4 @@ def main():
6263

6364
if __name__ == '__main__':
6465
main()
66+
# [END all]

‎storage/storage_transfer/transfer_check.py

Copy file name to clipboardExpand all lines: storage/storage_transfer/transfer_check.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14+
# [START all]
1415
import json
1516
import logging
1617

@@ -42,3 +43,4 @@ def main():
4243

4344
if __name__ == '__main__':
4445
main()
46+
# [END all]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.