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 241e52c

Browse filesBrowse files
authored
refactor(storagetransfer): Use public transport rather than _transport (GoogleCloudPlatform#7602)
1 parent 199ee96 commit 241e52c
Copy full SHA for 241e52c

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎storagetransfer/check_latest_transfer_operation.py

Copy file name to clipboardExpand all lines: storagetransfer/check_latest_transfer_operation.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def check_latest_transfer_operation(project_id: str, job_name: str):
4343
})
4444

4545
if transfer_job.latest_operation_name:
46-
response = client._transport.operations_client.get_operation(
46+
response = client.transport.operations_client.get_operation(
4747
transfer_job.latest_operation_name)
4848
operation = storage_transfer.TransferOperation.deserialize(
4949
response.metadata.value)

‎storagetransfer/transfer_check.py

Copy file name to clipboardExpand all lines: storagetransfer/transfer_check.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def transfer_check(project_id: str, job_name: str):
4545
'job_names': [job_name]
4646
})
4747

48-
response = client._transport.operations_client.list_operations(
48+
response = client.transport.operations_client.list_operations(
4949
"transferOperations", job_filter)
5050
operations = [
5151
storage_transfer.TransferOperation.deserialize(

0 commit comments

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