Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]