Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit b9b8298

Browse files
docs: Minor formatting (#175)
* docs: Minor formatting chore: Update gapic-generator-python to v1.11.5 build: Update rules_python to 0.24.0 PiperOrigin-RevId: 563436317 Source-Link: googleapis/googleapis@42fd37b Source-Link: https://github.com/googleapis/googleapis-gen/commit/280264ca02fb9316b4237a96d0af1a2343a81a56 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjgwMjY0Y2EwMmZiOTMxNmI0MjM3YTk2ZDBhZjFhMjM0M2E4MWE1NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d7707e2 commit b9b8298

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

google/cloud/storage_transfer_v1/services/storage_transfer_service/async_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
from google.api_core import operation # type: ignore
4646
from google.api_core import operation_async # type: ignore
47-
from google.longrunning import operations_pb2
47+
from google.longrunning import operations_pb2 # type: ignore
4848
from google.protobuf import empty_pb2 # type: ignore
4949
from google.protobuf import field_mask_pb2 # type: ignore
5050
from google.protobuf import timestamp_pb2 # type: ignore
@@ -614,6 +614,7 @@ async def sample_list_transfer_jobs():
614614
Returns:
615615
google.cloud.storage_transfer_v1.services.storage_transfer_service.pagers.ListTransferJobsAsyncPager:
616616
Response from ListTransferJobs.
617+
617618
Iterating over this object will yield
618619
results and resolve additional pages
619620
automatically.
@@ -1389,6 +1390,7 @@ async def sample_list_agent_pools():
13891390
Returns:
13901391
google.cloud.storage_transfer_v1.services.storage_transfer_service.pagers.ListAgentPoolsAsyncPager:
13911392
Response from ListAgentPools.
1393+
13921394
Iterating over this object will yield
13931395
results and resolve additional pages
13941396
automatically.

google/cloud/storage_transfer_v1/services/storage_transfer_service/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
from google.api_core import operation # type: ignore
5050
from google.api_core import operation_async # type: ignore
51-
from google.longrunning import operations_pb2
51+
from google.longrunning import operations_pb2 # type: ignore
5252
from google.protobuf import empty_pb2 # type: ignore
5353
from google.protobuf import field_mask_pb2 # type: ignore
5454
from google.protobuf import timestamp_pb2 # type: ignore
@@ -841,6 +841,7 @@ def sample_list_transfer_jobs():
841841
Returns:
842842
google.cloud.storage_transfer_v1.services.storage_transfer_service.pagers.ListTransferJobsPager:
843843
Response from ListTransferJobs.
844+
844845
Iterating over this object will yield
845846
results and resolve additional pages
846847
automatically.
@@ -1623,6 +1624,7 @@ def sample_list_agent_pools():
16231624
Returns:
16241625
google.cloud.storage_transfer_v1.services.storage_transfer_service.pagers.ListAgentPoolsPager:
16251626
Response from ListAgentPools.
1627+
16261628
Iterating over this object will yield
16271629
results and resolve additional pages
16281630
automatically.

google/cloud/storage_transfer_v1/services/storage_transfer_service/transports/rest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from google.auth import credentials as ga_credentials # type: ignore
3333
from google.auth.transport.grpc import SslCredentials # type: ignore
3434
from google.auth.transport.requests import AuthorizedSession # type: ignore
35-
from google.longrunning import operations_pb2
3635
from google.protobuf import json_format
3736
import grpc # type: ignore
3837
from requests import __version__ as requests_version

google/cloud/storage_transfer_v1/types/transfer_types.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ class AwsS3Data(proto.Message):
336336
credentials </storage-transfer/docs/data-retention#user-credentials>`__.
337337
path (str):
338338
Root path to transfer objects.
339+
339340
Must be an empty string or full path name that
340341
ends with a '/'. This field is treated as an
341342
object prefix. As such, it should generally not
@@ -430,6 +431,7 @@ class AzureBlobStorageData(proto.Message):
430431
Azure Storage account.
431432
path (str):
432433
Root path to transfer objects.
434+
433435
Must be an empty string or full path name that
434436
ends with a '/'. This field is treated as an
435437
object prefix. As such, it should generally not
@@ -567,6 +569,7 @@ class AwsS3CompatibleData(proto.Message):
567569
Required. Specifies the name of the bucket.
568570
path (str):
569571
Specifies the root path to transfer objects.
572+
570573
Must be an empty string or full path name that
571574
ends with a '/'. This field is treated as an
572575
object prefix. As such, it should generally not
@@ -678,10 +681,9 @@ class NetworkProtocol(proto.Enum):
678681
Perform requests using HTTPS.
679682
NETWORK_PROTOCOL_HTTP (2):
680683
Not recommended: This sends data in
681-
clear-text. This is only
682-
appropriate within a closed network or for
683-
publicly available data. Perform requests using
684-
HTTP.
684+
clear-text. This is only appropriate within a
685+
closed network or for publicly available data.
686+
Perform requests using HTTP.
685687
"""
686688
NETWORK_PROTOCOL_UNSPECIFIED = 0
687689
NETWORK_PROTOCOL_HTTPS = 1
@@ -1700,6 +1702,7 @@ class ErrorSummary(proto.Message):
17001702
Required. Count of this type of error.
17011703
error_log_entries (MutableSequence[google.cloud.storage_transfer_v1.types.ErrorLogEntry]):
17021704
Error samples.
1705+
17031706
At most 5 error log entries are recorded for a
17041707
given error code for a single transfer
17051708
operation.
@@ -1787,13 +1790,15 @@ class TransferCounters(proto.Message):
17871790
and ``base/b/`` is 3.
17881791
directories_failed_to_list_from_source (int):
17891792
For transfers involving PosixFilesystem only.
1793+
17901794
Number of listing failures for each directory
17911795
found at the source. Potential failures when
17921796
listing a directory include permission failure
17931797
or block failure. If listing a directory fails,
17941798
no files in the directory are transferred.
17951799
directories_successfully_listed_from_source (int):
17961800
For transfers involving PosixFilesystem only.
1801+
17971802
Number of successful listings for each directory
17981803
found at the source.
17991804
intermediate_objects_cleaned_up (int):

tests/unit/gapic/storage_transfer_v1/test_storage_transfer_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import google.auth
4242
from google.auth import credentials as ga_credentials
4343
from google.auth.exceptions import MutualTLSChannelError
44-
from google.longrunning import operations_pb2
44+
from google.longrunning import operations_pb2 # type: ignore
4545
from google.oauth2 import service_account
4646
from google.protobuf import duration_pb2 # type: ignore
4747
from google.protobuf import empty_pb2 # type: ignore

0 commit comments

Comments
 (0)