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.51.2 (#297)
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 24, 2021
1 parent 473e133 commit 79a5a8a
Show file tree
Hide file tree
Showing 25 changed files with 114 additions and 114 deletions.
54 changes: 27 additions & 27 deletions google/cloud/asset_v1/services/asset_service/client.py
Expand Up @@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
Expand Down Expand Up @@ -413,7 +413,7 @@ def __init__(

def export_assets(
self,
request: asset_service.ExportAssetsRequest = None,
request: Union[asset_service.ExportAssetsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -434,7 +434,7 @@ def export_assets(
the export operation usually finishes within 5 minutes.
Args:
request (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 @@ -487,7 +487,7 @@ def export_assets(

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,
Expand All @@ -498,7 +498,7 @@ def list_assets(
paged results in response.
Args:
request (google.cloud.asset_v1.types.ListAssetsRequest):
request (Union[google.cloud.asset_v1.types.ListAssetsRequest, dict]):
The request object. ListAssets request.
parent (str):
Required. Name of the organization or project the assets
Expand Down Expand Up @@ -569,7 +569,7 @@ def list_assets(

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,
timeout: float = None,
Expand All @@ -584,7 +584,7 @@ def batch_get_assets_history(
INVALID_ARGUMENT error.
Args:
request (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 @@ -622,7 +622,7 @@ def batch_get_assets_history(

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,
Expand All @@ -634,7 +634,7 @@ def create_feed(
updates.
Args:
request (google.cloud.asset_v1.types.CreateFeedRequest):
request (Union[google.cloud.asset_v1.types.CreateFeedRequest, dict]):
The request object. Create asset feed request.
parent (str):
Required. The name of the
Expand Down Expand Up @@ -706,7 +706,7 @@ def create_feed(

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,
Expand All @@ -716,7 +716,7 @@ def get_feed(
r"""Gets details about an asset feed.
Args:
request (google.cloud.asset_v1.types.GetFeedRequest):
request (Union[google.cloud.asset_v1.types.GetFeedRequest, dict]):
The request object. Get asset feed request.
name (str):
Required. The name of the Feed and it must be in the
Expand Down Expand Up @@ -783,7 +783,7 @@ def get_feed(

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,
Expand All @@ -794,7 +794,7 @@ def list_feeds(
project/folder/organization.
Args:
request (google.cloud.asset_v1.types.ListFeedsRequest):
request (Union[google.cloud.asset_v1.types.ListFeedsRequest, dict]):
The request object. List asset feeds request.
parent (str):
Required. The parent
Expand Down Expand Up @@ -856,7 +856,7 @@ def list_feeds(

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,
Expand All @@ -866,7 +866,7 @@ def update_feed(
r"""Updates an asset feed configuration.
Args:
request (google.cloud.asset_v1.types.UpdateFeedRequest):
request (Union[google.cloud.asset_v1.types.UpdateFeedRequest, dict]):
The request object. Update asset feed request.
feed (google.cloud.asset_v1.types.Feed):
Required. The new values of feed details. It must match
Expand Down Expand Up @@ -936,7 +936,7 @@ def update_feed(

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,
Expand All @@ -946,7 +946,7 @@ def delete_feed(
r"""Deletes an asset feed.
Args:
request (google.cloud.asset_v1.types.DeleteFeedRequest):
request (Union[google.cloud.asset_v1.types.DeleteFeedRequest, dict]):
The request object.
name (str):
Required. The name of the feed and it must be in the
Expand Down Expand Up @@ -1001,7 +1001,7 @@ def delete_feed(

def search_all_resources(
self,
request: asset_service.SearchAllResourcesRequest = None,
request: Union[asset_service.SearchAllResourcesRequest, dict] = None,
*,
scope: str = None,
query: str = None,
Expand All @@ -1016,7 +1016,7 @@ def search_all_resources(
desired scope, otherwise the request will be rejected.
Args:
request (google.cloud.asset_v1.types.SearchAllResourcesRequest):
request (Union[google.cloud.asset_v1.types.SearchAllResourcesRequest, dict]):
The request object. Search all resources request.
scope (str):
Required. A scope can be a project, a folder, or an
Expand Down Expand Up @@ -1174,7 +1174,7 @@ def search_all_resources(

def search_all_iam_policies(
self,
request: asset_service.SearchAllIamPoliciesRequest = None,
request: Union[asset_service.SearchAllIamPoliciesRequest, dict] = None,
*,
scope: str = None,
query: str = None,
Expand All @@ -1188,7 +1188,7 @@ def search_all_iam_policies(
desired scope, otherwise the request will be rejected.
Args:
request (google.cloud.asset_v1.types.SearchAllIamPoliciesRequest):
request (Union[google.cloud.asset_v1.types.SearchAllIamPoliciesRequest, dict]):
The request object. Search all IAM policies request.
scope (str):
Required. A scope can be a project, a folder, or an
Expand Down Expand Up @@ -1326,7 +1326,7 @@ def search_all_iam_policies(

def analyze_iam_policy(
self,
request: asset_service.AnalyzeIamPolicyRequest = None,
request: Union[asset_service.AnalyzeIamPolicyRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1336,7 +1336,7 @@ def analyze_iam_policy(
what accesses on which resources.
Args:
request (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 @@ -1379,7 +1379,7 @@ def analyze_iam_policy(

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,
timeout: float = None,
Expand All @@ -1399,7 +1399,7 @@ def analyze_iam_policy_longrunning(
for the long-running operation.
Args:
request (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 @@ -1456,7 +1456,7 @@ def analyze_iam_policy_longrunning(

def analyze_move(
self,
request: asset_service.AnalyzeMoveRequest = None,
request: Union[asset_service.AnalyzeMoveRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1471,7 +1471,7 @@ def analyze_move(
takes place.
Args:
request (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
Expand Up @@ -118,7 +118,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
Expand Down
Expand Up @@ -83,16 +83,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Expand Up @@ -130,16 +130,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
10 changes: 5 additions & 5 deletions google/cloud/asset_v1p1beta1/services/asset_service/client.py
Expand Up @@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
Expand Down Expand Up @@ -335,7 +335,7 @@ def __init__(

def search_all_resources(
self,
request: asset_service.SearchAllResourcesRequest = None,
request: Union[asset_service.SearchAllResourcesRequest, dict] = None,
*,
scope: str = None,
query: str = None,
Expand All @@ -353,7 +353,7 @@ def search_all_resources(
requested scope, otherwise it will be rejected.
Args:
request (google.cloud.asset_v1p1beta1.types.SearchAllResourcesRequest):
request (Union[google.cloud.asset_v1p1beta1.types.SearchAllResourcesRequest, dict]):
The request object. Search all resources request.
scope (str):
Required. The relative name of an asset. The search is
Expand Down Expand Up @@ -445,7 +445,7 @@ def search_all_resources(

def search_all_iam_policies(
self,
request: asset_service.SearchAllIamPoliciesRequest = None,
request: Union[asset_service.SearchAllIamPoliciesRequest, dict] = None,
*,
scope: str = None,
query: str = None,
Expand All @@ -463,7 +463,7 @@ def search_all_iam_policies(
requested scope, otherwise it will be rejected.
Args:
request (google.cloud.asset_v1p1beta1.types.SearchAllIamPoliciesRequest):
request (Union[google.cloud.asset_v1p1beta1.types.SearchAllIamPoliciesRequest, dict]):
The request object. Search all IAM policies request.
scope (str):
Required. The relative name of an asset. The search is
Expand Down
Expand Up @@ -115,7 +115,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
Expand Down
Expand Up @@ -80,16 +80,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Expand Up @@ -127,16 +127,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down

0 comments on commit 79a5a8a

Please sign in to comment.