Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

docs: Minor formatting #586

Merged
merged 2 commits into from
Sep 13, 2023
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
6 changes: 5 additions & 1 deletion google/cloud/asset_v1/services/asset_service/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from google.cloud.asset_v1.services.asset_service import pagers
from google.cloud.asset_v1.types import asset_service
from google.cloud.asset_v1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from google.rpc import status_pb2 # type: ignore
Expand Down Expand Up @@ -406,6 +406,7 @@ async def sample_list_assets():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.ListAssetsAsyncPager:
ListAssets response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -1303,6 +1304,7 @@ async def sample_search_all_resources():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.SearchAllResourcesAsyncPager:
Search all resources response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -1503,6 +1505,7 @@ async def sample_search_all_iam_policies():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.SearchAllIamPoliciesAsyncPager:
Search all IAM policies response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -2284,6 +2287,7 @@ async def sample_list_saved_queries():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.ListSavedQueriesAsyncPager:
Response of listing saved queries.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down
6 changes: 5 additions & 1 deletion google/cloud/asset_v1/services/asset_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
from google.cloud.asset_v1.services.asset_service import pagers
from google.cloud.asset_v1.types import asset_service
from google.cloud.asset_v1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from google.rpc import status_pb2 # type: ignore
Expand Down Expand Up @@ -720,6 +720,7 @@ def sample_list_assets():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.ListAssetsPager:
ListAssets response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -1568,6 +1569,7 @@ def sample_search_all_resources():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.SearchAllResourcesPager:
Search all resources response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -1759,6 +1761,7 @@ def sample_search_all_iam_policies():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.SearchAllIamPoliciesPager:
Search all IAM policies response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -2509,6 +2512,7 @@ def sample_list_saved_queries():
Returns:
google.cloud.asset_v1.services.asset_service.pagers.ListSavedQueriesPager:
Response of listing saved queries.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from google.oauth2 import service_account # type: ignore

from google.cloud.asset_v1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.protobuf import empty_pb2 # type: ignore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import grpc # type: ignore

from google.cloud.asset_v1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.protobuf import empty_pb2 # type: ignore
from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from grpc.experimental import aio # type: ignore

from google.cloud.asset_v1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.protobuf import empty_pb2 # type: ignore
from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

from google.protobuf import json_format
from google.api_core import operations_v1
from google.longrunning import operations_pb2
from requests import __version__ as requests_version
import dataclasses
import re
Expand All @@ -42,8 +41,8 @@


from google.cloud.asset_v1.types import asset_service
from google.longrunning import operations_pb2 # type: ignore
from google.protobuf import empty_pb2 # type: ignore
from google.longrunning import operations_pb2 # type: ignore

from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from google.cloud.asset_v1p1beta1.services.asset_service import pagers
from google.cloud.asset_v1p1beta1.types import asset_service
from google.cloud.asset_v1p1beta1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .transports.base import AssetServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import AssetServiceGrpcAsyncIOTransport
from .client import AssetServiceClient
Expand Down Expand Up @@ -294,6 +294,7 @@ async def sample_search_all_resources():
Returns:
google.cloud.asset_v1p1beta1.services.asset_service.pagers.SearchAllResourcesAsyncPager:
Search all resources response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -445,6 +446,7 @@ async def sample_search_all_iam_policies():
Returns:
google.cloud.asset_v1p1beta1.services.asset_service.pagers.SearchAllIamPoliciesAsyncPager:
Search all IAM policies response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from google.cloud.asset_v1p1beta1.services.asset_service import pagers
from google.cloud.asset_v1p1beta1.types import asset_service
from google.cloud.asset_v1p1beta1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .transports.base import AssetServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc import AssetServiceGrpcTransport
from .transports.grpc_asyncio import AssetServiceGrpcAsyncIOTransport
Expand Down Expand Up @@ -505,6 +505,7 @@ def sample_search_all_resources():
Returns:
google.cloud.asset_v1p1beta1.services.asset_service.pagers.SearchAllResourcesPager:
Search all resources response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down Expand Up @@ -646,6 +647,7 @@ def sample_search_all_iam_policies():
Returns:
google.cloud.asset_v1p1beta1.services.asset_service.pagers.SearchAllIamPoliciesPager:
Search all IAM policies response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from google.oauth2 import service_account # type: ignore

from google.cloud.asset_v1p1beta1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore

DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=package_version.__version__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import grpc # type: ignore

from google.cloud.asset_v1p1beta1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from grpc.experimental import aio # type: ignore

from google.cloud.asset_v1p1beta1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO
from .grpc import AssetServiceGrpcTransport

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from google.api_core import gapic_v1

from google.protobuf import json_format
from google.longrunning import operations_pb2
from requests import __version__ as requests_version
import dataclasses
import re
Expand All @@ -41,6 +40,7 @@


from google.cloud.asset_v1p1beta1.types import asset_service
from google.longrunning import operations_pb2 # type: ignore

from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from google.cloud.asset_v1p5beta1.services.asset_service import pagers
from google.cloud.asset_v1p5beta1.types import asset_service
from google.cloud.asset_v1p5beta1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .transports.base import AssetServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import AssetServiceGrpcAsyncIOTransport
from .client import AssetServiceClient
Expand Down Expand Up @@ -280,6 +280,7 @@ async def sample_list_assets():
Returns:
google.cloud.asset_v1p5beta1.services.asset_service.pagers.ListAssetsAsyncPager:
ListAssets response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from google.cloud.asset_v1p5beta1.services.asset_service import pagers
from google.cloud.asset_v1p5beta1.types import asset_service
from google.cloud.asset_v1p5beta1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .transports.base import AssetServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc import AssetServiceGrpcTransport
from .transports.grpc_asyncio import AssetServiceGrpcAsyncIOTransport
Expand Down Expand Up @@ -541,6 +541,7 @@ def sample_list_assets():
Returns:
google.cloud.asset_v1p5beta1.services.asset_service.pagers.ListAssetsPager:
ListAssets response.

Iterating over this object will yield
results and resolve additional pages
automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from google.oauth2 import service_account # type: ignore

from google.cloud.asset_v1p5beta1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore

DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=package_version.__version__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import grpc # type: ignore

from google.cloud.asset_v1p5beta1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from grpc.experimental import aio # type: ignore

from google.cloud.asset_v1p5beta1.types import asset_service
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO
from .grpc import AssetServiceGrpcTransport

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from google.api_core import gapic_v1

from google.protobuf import json_format
from google.longrunning import operations_pb2
from requests import __version__ as requests_version
import dataclasses
import re
Expand All @@ -41,6 +40,7 @@


from google.cloud.asset_v1p5beta1.types import asset_service
from google.longrunning import operations_pb2 # type: ignore

from .base import AssetServiceTransport, DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/gapic/asset_v1/test_asset_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from google.cloud.asset_v1.services.asset_service import transports
from google.cloud.asset_v1.types import asset_service
from google.cloud.asset_v1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.oauth2 import service_account
from google.protobuf import duration_pb2 # type: ignore
from google.protobuf import field_mask_pb2 # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/gapic/asset_v1p1beta1/test_asset_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from google.cloud.asset_v1p1beta1.services.asset_service import transports
from google.cloud.asset_v1p1beta1.types import asset_service
from google.cloud.asset_v1p1beta1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.oauth2 import service_account
import google.auth

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/gapic/asset_v1p5beta1/test_asset_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from google.cloud.asset_v1p5beta1.services.asset_service import transports
from google.cloud.asset_v1p5beta1.types import asset_service
from google.cloud.asset_v1p5beta1.types import assets
from google.longrunning import operations_pb2
from google.longrunning import operations_pb2 # type: ignore
from google.oauth2 import service_account
from google.protobuf import timestamp_pb2 # type: ignore
import google.auth
Expand Down