Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: use gapic-generator-python 0.53.4 (#325)
- [ ] Regenerate this pull request now.

docs: list oneofs in docstring
fix(deps): require google-api-core >= 1.28.0
fix(deps): drop packaging dependency
fix: fix extras_require typo in setup.py

committer: busunkim96@
PiperOrigin-RevId: 406468269

Source-Link: googleapis/googleapis@83d81b0

Source-Link: googleapis/googleapis-gen@2ff001f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZmMDAxZmJhY2I5ZTc3ZTcxZDczNGRlNWY5NTVjMDVmZGFlODUyNiJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 1, 2021
1 parent 00b49a8 commit 3f3e552
Show file tree
Hide file tree
Showing 35 changed files with 272 additions and 694 deletions.
82 changes: 42 additions & 40 deletions google/cloud/asset_v1/services/asset_service/async_client.py
Expand Up @@ -19,13 +19,15 @@
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

import google.api_core.client_options as ClientOptions # type: ignore
from google.api_core.client_options import ClientOptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.asset_v1.services.asset_service import pagers
Expand Down Expand Up @@ -175,9 +177,9 @@ def __init__(

async def export_assets(
self,
request: asset_service.ExportAssetsRequest = None,
request: Union[asset_service.ExportAssetsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
Expand All @@ -196,7 +198,7 @@ async def export_assets(
the export operation usually finishes within 5 minutes.
Args:
request (:class:`google.cloud.asset_v1.types.ExportAssetsRequest`):
request (Union[google.cloud.asset_v1.types.ExportAssetsRequest, dict]):
The request object. Export asset request.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -248,18 +250,18 @@ async def export_assets(

async def list_assets(
self,
request: asset_service.ListAssetsRequest = None,
request: Union[asset_service.ListAssetsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListAssetsAsyncPager:
r"""Lists assets with time and resource types and returns
paged results in response.
Args:
request (:class:`google.cloud.asset_v1.types.ListAssetsRequest`):
request (Union[google.cloud.asset_v1.types.ListAssetsRequest, dict]):
The request object. ListAssets request.
parent (:class:`str`):
Required. Name of the organization or project the assets
Expand Down Expand Up @@ -340,9 +342,9 @@ async def list_assets(

async def batch_get_assets_history(
self,
request: asset_service.BatchGetAssetsHistoryRequest = None,
request: Union[asset_service.BatchGetAssetsHistoryRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> asset_service.BatchGetAssetsHistoryResponse:
Expand All @@ -355,7 +357,7 @@ async def batch_get_assets_history(
INVALID_ARGUMENT error.
Args:
request (:class:`google.cloud.asset_v1.types.BatchGetAssetsHistoryRequest`):
request (Union[google.cloud.asset_v1.types.BatchGetAssetsHistoryRequest, dict]):
The request object. Batch get assets history request.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -402,10 +404,10 @@ async def batch_get_assets_history(

async def create_feed(
self,
request: asset_service.CreateFeedRequest = None,
request: Union[asset_service.CreateFeedRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> asset_service.Feed:
Expand All @@ -414,7 +416,7 @@ async def create_feed(
updates.
Args:
request (:class:`google.cloud.asset_v1.types.CreateFeedRequest`):
request (Union[google.cloud.asset_v1.types.CreateFeedRequest, dict]):
The request object. Create asset feed request.
parent (:class:`str`):
Required. The name of the
Expand Down Expand Up @@ -486,17 +488,17 @@ async def create_feed(

async def get_feed(
self,
request: asset_service.GetFeedRequest = None,
request: Union[asset_service.GetFeedRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> asset_service.Feed:
r"""Gets details about an asset feed.
Args:
request (:class:`google.cloud.asset_v1.types.GetFeedRequest`):
request (Union[google.cloud.asset_v1.types.GetFeedRequest, dict]):
The request object. Get asset feed request.
name (:class:`str`):
Required. The name of the Feed and it must be in the
Expand Down Expand Up @@ -573,18 +575,18 @@ async def get_feed(

async def list_feeds(
self,
request: asset_service.ListFeedsRequest = None,
request: Union[asset_service.ListFeedsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> asset_service.ListFeedsResponse:
r"""Lists all asset feeds in a parent
project/folder/organization.
Args:
request (:class:`google.cloud.asset_v1.types.ListFeedsRequest`):
request (Union[google.cloud.asset_v1.types.ListFeedsRequest, dict]):
The request object. List asset feeds request.
parent (:class:`str`):
Required. The parent
Expand Down Expand Up @@ -656,17 +658,17 @@ async def list_feeds(

async def update_feed(
self,
request: asset_service.UpdateFeedRequest = None,
request: Union[asset_service.UpdateFeedRequest, dict] = None,
*,
feed: asset_service.Feed = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> asset_service.Feed:
r"""Updates an asset feed configuration.
Args:
request (:class:`google.cloud.asset_v1.types.UpdateFeedRequest`):
request (Union[google.cloud.asset_v1.types.UpdateFeedRequest, dict]):
The request object. Update asset feed request.
feed (:class:`google.cloud.asset_v1.types.Feed`):
Required. The new values of feed details. It must match
Expand Down Expand Up @@ -736,17 +738,17 @@ async def update_feed(

async def delete_feed(
self,
request: asset_service.DeleteFeedRequest = None,
request: Union[asset_service.DeleteFeedRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes an asset feed.
Args:
request (:class:`google.cloud.asset_v1.types.DeleteFeedRequest`):
request (Union[google.cloud.asset_v1.types.DeleteFeedRequest, dict]):
The request object.
name (:class:`str`):
Required. The name of the feed and it must be in the
Expand Down Expand Up @@ -811,12 +813,12 @@ async def delete_feed(

async def search_all_resources(
self,
request: asset_service.SearchAllResourcesRequest = None,
request: Union[asset_service.SearchAllResourcesRequest, dict] = None,
*,
scope: str = None,
query: str = None,
asset_types: Sequence[str] = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.SearchAllResourcesAsyncPager:
Expand All @@ -826,7 +828,7 @@ async def search_all_resources(
desired scope, otherwise the request will be rejected.
Args:
request (:class:`google.cloud.asset_v1.types.SearchAllResourcesRequest`):
request (Union[google.cloud.asset_v1.types.SearchAllResourcesRequest, dict]):
The request object. Search all resources request.
scope (:class:`str`):
Required. A scope can be a project, a folder, or an
Expand Down Expand Up @@ -993,11 +995,11 @@ async def search_all_resources(

async def search_all_iam_policies(
self,
request: asset_service.SearchAllIamPoliciesRequest = None,
request: Union[asset_service.SearchAllIamPoliciesRequest, dict] = None,
*,
scope: str = None,
query: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.SearchAllIamPoliciesAsyncPager:
Expand All @@ -1007,7 +1009,7 @@ async def search_all_iam_policies(
desired scope, otherwise the request will be rejected.
Args:
request (:class:`google.cloud.asset_v1.types.SearchAllIamPoliciesRequest`):
request (Union[google.cloud.asset_v1.types.SearchAllIamPoliciesRequest, dict]):
The request object. Search all IAM policies request.
scope (:class:`str`):
Required. A scope can be a project, a folder, or an
Expand Down Expand Up @@ -1154,17 +1156,17 @@ async def search_all_iam_policies(

async def analyze_iam_policy(
self,
request: asset_service.AnalyzeIamPolicyRequest = None,
request: Union[asset_service.AnalyzeIamPolicyRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> asset_service.AnalyzeIamPolicyResponse:
r"""Analyzes IAM policies to answer which identities have
what accesses on which resources.
Args:
request (:class:`google.cloud.asset_v1.types.AnalyzeIamPolicyRequest`):
request (Union[google.cloud.asset_v1.types.AnalyzeIamPolicyRequest, dict]):
The request object. A request message for
[AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1215,9 +1217,9 @@ async def analyze_iam_policy(

async def analyze_iam_policy_longrunning(
self,
request: asset_service.AnalyzeIamPolicyLongrunningRequest = None,
request: Union[asset_service.AnalyzeIamPolicyLongrunningRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
Expand All @@ -1235,7 +1237,7 @@ async def analyze_iam_policy_longrunning(
for the long-running operation.
Args:
request (:class:`google.cloud.asset_v1.types.AnalyzeIamPolicyLongrunningRequest`):
request (Union[google.cloud.asset_v1.types.AnalyzeIamPolicyLongrunningRequest, dict]):
The request object. A request message for
[AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1289,9 +1291,9 @@ async def analyze_iam_policy_longrunning(

async def analyze_move(
self,
request: asset_service.AnalyzeMoveRequest = None,
request: Union[asset_service.AnalyzeMoveRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> asset_service.AnalyzeMoveResponse:
Expand All @@ -1304,7 +1306,7 @@ async def analyze_move(
takes place.
Args:
request (:class:`google.cloud.asset_v1.types.AnalyzeMoveRequest`):
request (Union[google.cloud.asset_v1.types.AnalyzeMoveRequest, dict]):
The request object. The request message for performing
resource move analysis.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down

0 comments on commit 3f3e552

Please sign in to comment.