Skip to content

Commit 241e52c

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storagetransfer/check_latest_transfer_operation.py

Lines 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

Lines 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)