Skip to content

Commit

Permalink
Merge pull request #57 from GoogleCloudPlatform/sfan-sts03
Browse files Browse the repository at this point in the history
Reword credential creation in README.md
  • Loading branch information
Shun Fan committed Jul 22, 2015
2 parents f15cb07 + fd753e6 commit 81b23c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion storage/storage_transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This app creates two types of transfers using the Transfer Service tool.
1. Go to the [Developers Console](https://cloud.google.com/console) and create or select your project.
You will need the project ID later.
1. Within Developers Console, select APIs & auth > Credentials.
1. Add a new JSON key credential for a service account.
1. Select Add credentials > Service account > JSON key.
1. Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to point to your JSON key.
1. Add the Storage Transfer service account, [email protected] as an
editor of your project.
Expand Down
2 changes: 2 additions & 0 deletions storage/storage_transfer/aws_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# [START all]
import json
import logging

Expand Down Expand Up @@ -66,3 +67,4 @@ def main():

if __name__ == '__main__':
main()
# [END all]
2 changes: 2 additions & 0 deletions storage/storage_transfer/create_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# [START all]
import logging

from apiclient import discovery
Expand All @@ -25,3 +26,4 @@ def create_transfer_client():
logging.getLogger().setLevel(logging.DEBUG)
credentials = GoogleCredentials.get_application_default()
return discovery.build('storagetransfer', 'v1', credentials=credentials)
# [END all]
2 changes: 2 additions & 0 deletions storage/storage_transfer/nearline_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# [START all]
import json
import logging

Expand Down Expand Up @@ -62,3 +63,4 @@ def main():

if __name__ == '__main__':
main()
# [END all]
2 changes: 2 additions & 0 deletions storage/storage_transfer/transfer_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# [START all]
import json
import logging

Expand Down Expand Up @@ -42,3 +43,4 @@ def main():

if __name__ == '__main__':
main()
# [END all]

0 comments on commit 81b23c7

Please sign in to comment.