Skip to content

Commit ea37463

Browse files
authored
Update main.py
1 parent c8573e0 commit ea37463

File tree

1 file changed

+9
-5
lines changed
  • Python/taskqueues-backup-images/functions

1 file changed

+9
-5
lines changed

Python/taskqueues-backup-images/functions/main.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# [START v2imports]
16+
# Dependencies for task queue functions
17+
from google.cloud import tasks_v2
18+
import requests
19+
from firebase_functions.options import RetryConfig, RateLimits, SupportedRegion
20+
21+
// Dependencies for image backup sample
1522
from datetime import datetime, timedelta
1623
import json
1724
import pathlib
1825
from urllib.parse import urlparse
19-
2026
from firebase_admin import initialize_app, storage
2127
from firebase_functions import https_fn, tasks_fn, params
22-
from firebase_functions.options import RetryConfig, RateLimits, SupportedRegion
23-
2428
import google.auth
2529
from google.auth.transport.requests import AuthorizedSession
26-
from google.cloud import tasks_v2
27-
import requests
30+
// [END v2imports]
31+
2832

2933
app = initialize_app()
3034

0 commit comments

Comments
 (0)