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 (#87)
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 303768c commit e1246c8
Show file tree
Hide file tree
Showing 12 changed files with 144 additions and 144 deletions.
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 @@ -361,7 +361,7 @@ def __init__(

def list_runtimes(
self,
request: managed_service.ListRuntimesRequest = None,
request: Union[managed_service.ListRuntimesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -371,7 +371,7 @@ def list_runtimes(
r"""Lists Runtimes in a given project and location.
Args:
request (google.cloud.notebooks_v1.types.ListRuntimesRequest):
request (Union[google.cloud.notebooks_v1.types.ListRuntimesRequest, dict]):
The request object. Request for listing Managed Notebook
Runtimes.
parent (str):
Expand Down Expand Up @@ -441,7 +441,7 @@ def list_runtimes(

def get_runtime(
self,
request: managed_service.GetRuntimeRequest = None,
request: Union[managed_service.GetRuntimeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -452,7 +452,7 @@ def get_runtime(
be a regional endpoint rather than zonal.
Args:
request (google.cloud.notebooks_v1.types.GetRuntimeRequest):
request (Union[google.cloud.notebooks_v1.types.GetRuntimeRequest, dict]):
The request object. Request for getting a Managed
Notebook Runtime.
name (str):
Expand Down Expand Up @@ -513,7 +513,7 @@ def get_runtime(

def create_runtime(
self,
request: managed_service.CreateRuntimeRequest = None,
request: Union[managed_service.CreateRuntimeRequest, dict] = None,
*,
parent: str = None,
runtime_id: str = None,
Expand All @@ -526,7 +526,7 @@ def create_runtime(
location.
Args:
request (google.cloud.notebooks_v1.types.CreateRuntimeRequest):
request (Union[google.cloud.notebooks_v1.types.CreateRuntimeRequest, dict]):
The request object. Request for creating a Managed
Notebook Runtime.
parent (str):
Expand Down Expand Up @@ -614,7 +614,7 @@ def create_runtime(

def delete_runtime(
self,
request: managed_service.DeleteRuntimeRequest = None,
request: Union[managed_service.DeleteRuntimeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -624,7 +624,7 @@ def delete_runtime(
r"""Deletes a single Runtime.
Args:
request (google.cloud.notebooks_v1.types.DeleteRuntimeRequest):
request (Union[google.cloud.notebooks_v1.types.DeleteRuntimeRequest, dict]):
The request object. Request for deleting a Managed
Notebook Runtime.
name (str):
Expand Down Expand Up @@ -706,7 +706,7 @@ def delete_runtime(

def start_runtime(
self,
request: managed_service.StartRuntimeRequest = None,
request: Union[managed_service.StartRuntimeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -722,7 +722,7 @@ def start_runtime(
resume-instance
Args:
request (google.cloud.notebooks_v1.types.StartRuntimeRequest):
request (Union[google.cloud.notebooks_v1.types.StartRuntimeRequest, dict]):
The request object. Request for starting a Managed
Notebook Runtime.
name (str):
Expand Down Expand Up @@ -794,7 +794,7 @@ def start_runtime(

def stop_runtime(
self,
request: managed_service.StopRuntimeRequest = None,
request: Union[managed_service.StopRuntimeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -810,7 +810,7 @@ def stop_runtime(
resume-instance
Args:
request (google.cloud.notebooks_v1.types.StopRuntimeRequest):
request (Union[google.cloud.notebooks_v1.types.StopRuntimeRequest, dict]):
The request object. Request for stopping a Managed
Notebook Runtime.
name (str):
Expand Down Expand Up @@ -882,7 +882,7 @@ def stop_runtime(

def switch_runtime(
self,
request: managed_service.SwitchRuntimeRequest = None,
request: Union[managed_service.SwitchRuntimeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -892,7 +892,7 @@ def switch_runtime(
r"""Switch a Managed Notebook Runtime.
Args:
request (google.cloud.notebooks_v1.types.SwitchRuntimeRequest):
request (Union[google.cloud.notebooks_v1.types.SwitchRuntimeRequest, dict]):
The request object. Request for switching a Managed
Notebook Runtime.
name (str):
Expand Down Expand Up @@ -964,7 +964,7 @@ def switch_runtime(

def reset_runtime(
self,
request: managed_service.ResetRuntimeRequest = None,
request: Union[managed_service.ResetRuntimeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -974,7 +974,7 @@ def reset_runtime(
r"""Resets a Managed Notebook Runtime.
Args:
request (google.cloud.notebooks_v1.types.ResetRuntimeRequest):
request (Union[google.cloud.notebooks_v1.types.ResetRuntimeRequest, dict]):
The request object. Request for reseting a Managed
Notebook Runtime.
name (str):
Expand Down Expand Up @@ -1046,7 +1046,7 @@ def reset_runtime(

def report_runtime_event(
self,
request: managed_service.ReportRuntimeEventRequest = None,
request: Union[managed_service.ReportRuntimeEventRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1056,7 +1056,7 @@ def report_runtime_event(
r"""Report and process a runtime event.
Args:
request (google.cloud.notebooks_v1.types.ReportRuntimeEventRequest):
request (Union[google.cloud.notebooks_v1.types.ReportRuntimeEventRequest, dict]):
The request object. Request for reporting a Managed
Notebook Event.
name (str):
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

0 comments on commit e1246c8

Please sign in to comment.