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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#81)
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 213baa5 commit ae7ade1
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 78 deletions.
42 changes: 21 additions & 21 deletions google/cloud/networkconnectivity_v1/services/hub_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 @@ -441,7 +441,7 @@ def __init__(

def list_hubs(
self,
request: hub.ListHubsRequest = None,
request: Union[hub.ListHubsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -451,7 +451,7 @@ def list_hubs(
r"""Lists hubs in a given project.
Args:
request (google.cloud.networkconnectivity_v1.types.ListHubsRequest):
request (Union[google.cloud.networkconnectivity_v1.types.ListHubsRequest, dict]):
The request object. Request for
[HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
method.
Expand Down Expand Up @@ -521,7 +521,7 @@ def list_hubs(

def get_hub(
self,
request: hub.GetHubRequest = None,
request: Union[hub.GetHubRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -531,7 +531,7 @@ def get_hub(
r"""Gets details about the specified hub.
Args:
request (google.cloud.networkconnectivity_v1.types.GetHubRequest):
request (Union[google.cloud.networkconnectivity_v1.types.GetHubRequest, dict]):
The request object. Request for
[HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
method.
Expand Down Expand Up @@ -597,7 +597,7 @@ def get_hub(

def create_hub(
self,
request: gcn_hub.CreateHubRequest = None,
request: Union[gcn_hub.CreateHubRequest, dict] = None,
*,
parent: str = None,
hub: gcn_hub.Hub = None,
Expand All @@ -609,7 +609,7 @@ def create_hub(
r"""Creates a new hub in the specified project.
Args:
request (google.cloud.networkconnectivity_v1.types.CreateHubRequest):
request (Union[google.cloud.networkconnectivity_v1.types.CreateHubRequest, dict]):
The request object. Request for
[HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
method.
Expand Down Expand Up @@ -699,7 +699,7 @@ def create_hub(

def update_hub(
self,
request: gcn_hub.UpdateHubRequest = None,
request: Union[gcn_hub.UpdateHubRequest, dict] = None,
*,
hub: gcn_hub.Hub = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -711,7 +711,7 @@ def update_hub(
specified hub.
Args:
request (google.cloud.networkconnectivity_v1.types.UpdateHubRequest):
request (Union[google.cloud.networkconnectivity_v1.types.UpdateHubRequest, dict]):
The request object. Request for
[HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
method.
Expand Down Expand Up @@ -798,7 +798,7 @@ def update_hub(

def delete_hub(
self,
request: hub.DeleteHubRequest = None,
request: Union[hub.DeleteHubRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -808,7 +808,7 @@ def delete_hub(
r"""Deletes the specified hub.
Args:
request (google.cloud.networkconnectivity_v1.types.DeleteHubRequest):
request (Union[google.cloud.networkconnectivity_v1.types.DeleteHubRequest, dict]):
The request object. The request for
[HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
name (str):
Expand Down Expand Up @@ -890,7 +890,7 @@ def delete_hub(

def list_spokes(
self,
request: hub.ListSpokesRequest = None,
request: Union[hub.ListSpokesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -901,7 +901,7 @@ def list_spokes(
location.
Args:
request (google.cloud.networkconnectivity_v1.types.ListSpokesRequest):
request (Union[google.cloud.networkconnectivity_v1.types.ListSpokesRequest, dict]):
The request object. The request for
[HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
parent (str):
Expand Down Expand Up @@ -969,7 +969,7 @@ def list_spokes(

def get_spoke(
self,
request: hub.GetSpokeRequest = None,
request: Union[hub.GetSpokeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -979,7 +979,7 @@ def get_spoke(
r"""Gets details about the specified spoke.
Args:
request (google.cloud.networkconnectivity_v1.types.GetSpokeRequest):
request (Union[google.cloud.networkconnectivity_v1.types.GetSpokeRequest, dict]):
The request object. The request for
[HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
name (str):
Expand Down Expand Up @@ -1048,7 +1048,7 @@ def get_spoke(

def create_spoke(
self,
request: hub.CreateSpokeRequest = None,
request: Union[hub.CreateSpokeRequest, dict] = None,
*,
parent: str = None,
spoke: hub.Spoke = None,
Expand All @@ -1061,7 +1061,7 @@ def create_spoke(
location.
Args:
request (google.cloud.networkconnectivity_v1.types.CreateSpokeRequest):
request (Union[google.cloud.networkconnectivity_v1.types.CreateSpokeRequest, dict]):
The request object. The request for
[HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
parent (str):
Expand Down Expand Up @@ -1156,7 +1156,7 @@ def create_spoke(

def update_spoke(
self,
request: hub.UpdateSpokeRequest = None,
request: Union[hub.UpdateSpokeRequest, dict] = None,
*,
spoke: hub.Spoke = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -1167,7 +1167,7 @@ def update_spoke(
r"""Updates the parameters of the specified spoke.
Args:
request (google.cloud.networkconnectivity_v1.types.UpdateSpokeRequest):
request (Union[google.cloud.networkconnectivity_v1.types.UpdateSpokeRequest, dict]):
The request object. Request for
[HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
method.
Expand Down Expand Up @@ -1262,7 +1262,7 @@ def update_spoke(

def delete_spoke(
self,
request: hub.DeleteSpokeRequest = None,
request: Union[hub.DeleteSpokeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1272,7 +1272,7 @@ def delete_spoke(
r"""Deletes the specified spoke.
Args:
request (google.cloud.networkconnectivity_v1.types.DeleteSpokeRequest):
request (Union[google.cloud.networkconnectivity_v1.types.DeleteSpokeRequest, dict]):
The request object. The request for
[HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
name (str):
Expand Down
Expand Up @@ -120,7 +120,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

0 comments on commit ae7ade1

Please sign in to comment.