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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#130)
Browse files Browse the repository at this point in the history
- [ ] 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 df69cf4 commit 99b111d
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 66 deletions.
40 changes: 23 additions & 17 deletions google/cloud/recommender_v1/services/recommender/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 @@ -418,7 +418,7 @@ def __init__(

def list_insights(
self,
request: recommender_service.ListInsightsRequest = None,
request: Union[recommender_service.ListInsightsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -430,7 +430,7 @@ def list_insights(
type.
Args:
request (google.cloud.recommender_v1.types.ListInsightsRequest):
request (Union[google.cloud.recommender_v1.types.ListInsightsRequest, dict]):
The request object. Request for the `ListInsights`
method.
parent (str):
Expand Down Expand Up @@ -508,7 +508,7 @@ def list_insights(

def get_insight(
self,
request: recommender_service.GetInsightRequest = None,
request: Union[recommender_service.GetInsightRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -519,7 +519,7 @@ def get_insight(
permission for the specified insight type.
Args:
request (google.cloud.recommender_v1.types.GetInsightRequest):
request (Union[google.cloud.recommender_v1.types.GetInsightRequest, dict]):
The request object. Request to the `GetInsight` method.
name (str):
Required. Name of the insight.
Expand Down Expand Up @@ -579,7 +579,7 @@ def get_insight(

def mark_insight_accepted(
self,
request: recommender_service.MarkInsightAcceptedRequest = None,
request: Union[recommender_service.MarkInsightAcceptedRequest, dict] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -600,7 +600,7 @@ def mark_insight_accepted(
specified insight.
Args:
request (google.cloud.recommender_v1.types.MarkInsightAcceptedRequest):
request (Union[google.cloud.recommender_v1.types.MarkInsightAcceptedRequest, dict]):
The request object. Request for the
`MarkInsightAccepted` method.
name (str):
Expand Down Expand Up @@ -679,7 +679,7 @@ def mark_insight_accepted(

def list_recommendations(
self,
request: recommender_service.ListRecommendationsRequest = None,
request: Union[recommender_service.ListRecommendationsRequest, dict] = None,
*,
parent: str = None,
filter: str = None,
Expand All @@ -691,7 +691,7 @@ def list_recommendations(
recommender.*.list IAM permission for the specified recommender.
Args:
request (google.cloud.recommender_v1.types.ListRecommendationsRequest):
request (Union[google.cloud.recommender_v1.types.ListRecommendationsRequest, dict]):
The request object. Request for the
`ListRecommendations` method.
parent (str):
Expand Down Expand Up @@ -780,7 +780,7 @@ def list_recommendations(

def get_recommendation(
self,
request: recommender_service.GetRecommendationRequest = None,
request: Union[recommender_service.GetRecommendationRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -791,7 +791,7 @@ def get_recommendation(
recommender.*.get IAM permission for the specified recommender.
Args:
request (google.cloud.recommender_v1.types.GetRecommendationRequest):
request (Union[google.cloud.recommender_v1.types.GetRecommendationRequest, dict]):
The request object. Request to the `GetRecommendation`
method.
name (str):
Expand Down Expand Up @@ -852,7 +852,9 @@ def get_recommendation(

def mark_recommendation_claimed(
self,
request: recommender_service.MarkRecommendationClaimedRequest = None,
request: Union[
recommender_service.MarkRecommendationClaimedRequest, dict
] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -876,7 +878,7 @@ def mark_recommendation_claimed(
specified recommender.
Args:
request (google.cloud.recommender_v1.types.MarkRecommendationClaimedRequest):
request (Union[google.cloud.recommender_v1.types.MarkRecommendationClaimedRequest, dict]):
The request object. Request for the
`MarkRecommendationClaimed` Method.
name (str):
Expand Down Expand Up @@ -962,7 +964,9 @@ def mark_recommendation_claimed(

def mark_recommendation_succeeded(
self,
request: recommender_service.MarkRecommendationSucceededRequest = None,
request: Union[
recommender_service.MarkRecommendationSucceededRequest, dict
] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -986,7 +990,7 @@ def mark_recommendation_succeeded(
specified recommender.
Args:
request (google.cloud.recommender_v1.types.MarkRecommendationSucceededRequest):
request (Union[google.cloud.recommender_v1.types.MarkRecommendationSucceededRequest, dict]):
The request object. Request for the
`MarkRecommendationSucceeded` Method.
name (str):
Expand Down Expand Up @@ -1072,7 +1076,9 @@ def mark_recommendation_succeeded(

def mark_recommendation_failed(
self,
request: recommender_service.MarkRecommendationFailedRequest = None,
request: Union[
recommender_service.MarkRecommendationFailedRequest, dict
] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -1096,7 +1102,7 @@ def mark_recommendation_failed(
specified recommender.
Args:
request (google.cloud.recommender_v1.types.MarkRecommendationFailedRequest):
request (Union[google.cloud.recommender_v1.types.MarkRecommendationFailedRequest, dict]):
The request object. Request for the
`MarkRecommendationFailed` Method.
name (str):
Expand Down
Expand Up @@ -119,7 +119,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 @@ -86,16 +86,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 @@ -133,16 +133,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
40 changes: 23 additions & 17 deletions google/cloud/recommender_v1beta1/services/recommender/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 @@ -418,7 +418,7 @@ def __init__(

def list_insights(
self,
request: recommender_service.ListInsightsRequest = None,
request: Union[recommender_service.ListInsightsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -430,7 +430,7 @@ def list_insights(
type.
Args:
request (google.cloud.recommender_v1beta1.types.ListInsightsRequest):
request (Union[google.cloud.recommender_v1beta1.types.ListInsightsRequest, dict]):
The request object. Request for the `ListInsights`
method.
parent (str):
Expand Down Expand Up @@ -508,7 +508,7 @@ def list_insights(

def get_insight(
self,
request: recommender_service.GetInsightRequest = None,
request: Union[recommender_service.GetInsightRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -519,7 +519,7 @@ def get_insight(
permission for the specified insight type.
Args:
request (google.cloud.recommender_v1beta1.types.GetInsightRequest):
request (Union[google.cloud.recommender_v1beta1.types.GetInsightRequest, dict]):
The request object. Request to the `GetInsight` method.
name (str):
Required. Name of the insight.
Expand Down Expand Up @@ -579,7 +579,7 @@ def get_insight(

def mark_insight_accepted(
self,
request: recommender_service.MarkInsightAcceptedRequest = None,
request: Union[recommender_service.MarkInsightAcceptedRequest, dict] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -600,7 +600,7 @@ def mark_insight_accepted(
specified insight.
Args:
request (google.cloud.recommender_v1beta1.types.MarkInsightAcceptedRequest):
request (Union[google.cloud.recommender_v1beta1.types.MarkInsightAcceptedRequest, dict]):
The request object. Request for the
`MarkInsightAccepted` method.
name (str):
Expand Down Expand Up @@ -679,7 +679,7 @@ def mark_insight_accepted(

def list_recommendations(
self,
request: recommender_service.ListRecommendationsRequest = None,
request: Union[recommender_service.ListRecommendationsRequest, dict] = None,
*,
parent: str = None,
filter: str = None,
Expand All @@ -691,7 +691,7 @@ def list_recommendations(
recommender.*.list IAM permission for the specified recommender.
Args:
request (google.cloud.recommender_v1beta1.types.ListRecommendationsRequest):
request (Union[google.cloud.recommender_v1beta1.types.ListRecommendationsRequest, dict]):
The request object. Request for the
`ListRecommendations` method.
parent (str):
Expand Down Expand Up @@ -780,7 +780,7 @@ def list_recommendations(

def get_recommendation(
self,
request: recommender_service.GetRecommendationRequest = None,
request: Union[recommender_service.GetRecommendationRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -791,7 +791,7 @@ def get_recommendation(
recommender.*.get IAM permission for the specified recommender.
Args:
request (google.cloud.recommender_v1beta1.types.GetRecommendationRequest):
request (Union[google.cloud.recommender_v1beta1.types.GetRecommendationRequest, dict]):
The request object. Request to the `GetRecommendation`
method.
name (str):
Expand Down Expand Up @@ -852,7 +852,9 @@ def get_recommendation(

def mark_recommendation_claimed(
self,
request: recommender_service.MarkRecommendationClaimedRequest = None,
request: Union[
recommender_service.MarkRecommendationClaimedRequest, dict
] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -876,7 +878,7 @@ def mark_recommendation_claimed(
specified recommender.
Args:
request (google.cloud.recommender_v1beta1.types.MarkRecommendationClaimedRequest):
request (Union[google.cloud.recommender_v1beta1.types.MarkRecommendationClaimedRequest, dict]):
The request object. Request for the
`MarkRecommendationClaimed` Method.
name (str):
Expand Down Expand Up @@ -962,7 +964,9 @@ def mark_recommendation_claimed(

def mark_recommendation_succeeded(
self,
request: recommender_service.MarkRecommendationSucceededRequest = None,
request: Union[
recommender_service.MarkRecommendationSucceededRequest, dict
] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -986,7 +990,7 @@ def mark_recommendation_succeeded(
specified recommender.
Args:
request (google.cloud.recommender_v1beta1.types.MarkRecommendationSucceededRequest):
request (Union[google.cloud.recommender_v1beta1.types.MarkRecommendationSucceededRequest, dict]):
The request object. Request for the
`MarkRecommendationSucceeded` Method.
name (str):
Expand Down Expand Up @@ -1072,7 +1076,9 @@ def mark_recommendation_succeeded(

def mark_recommendation_failed(
self,
request: recommender_service.MarkRecommendationFailedRequest = None,
request: Union[
recommender_service.MarkRecommendationFailedRequest, dict
] = None,
*,
name: str = None,
state_metadata: Sequence[
Expand All @@ -1096,7 +1102,7 @@ def mark_recommendation_failed(
specified recommender.
Args:
request (google.cloud.recommender_v1beta1.types.MarkRecommendationFailedRequest):
request (Union[google.cloud.recommender_v1beta1.types.MarkRecommendationFailedRequest, dict]):
The request object. Request for the
`MarkRecommendationFailed` Method.
name (str):
Expand Down
Expand Up @@ -119,7 +119,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 @@ -86,16 +86,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 99b111d

Please sign in to comment.