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

Commit e1246c8

Browse files
chore: use gapic-generator-python 0.51.2 (#87)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 303768c commit e1246c8

File tree

12 files changed

+144
-144
lines changed

12 files changed

+144
-144
lines changed

google/cloud/notebooks_v1/services/managed_notebook_service/client.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

2323
from google.api_core import client_options as client_options_lib # type: ignore
@@ -361,7 +361,7 @@ def __init__(
361361

362362
def list_runtimes(
363363
self,
364-
request: managed_service.ListRuntimesRequest = None,
364+
request: Union[managed_service.ListRuntimesRequest, dict] = None,
365365
*,
366366
parent: str = None,
367367
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -371,7 +371,7 @@ def list_runtimes(
371371
r"""Lists Runtimes in a given project and location.
372372
373373
Args:
374-
request (google.cloud.notebooks_v1.types.ListRuntimesRequest):
374+
request (Union[google.cloud.notebooks_v1.types.ListRuntimesRequest, dict]):
375375
The request object. Request for listing Managed Notebook
376376
Runtimes.
377377
parent (str):
@@ -441,7 +441,7 @@ def list_runtimes(
441441

442442
def get_runtime(
443443
self,
444-
request: managed_service.GetRuntimeRequest = None,
444+
request: Union[managed_service.GetRuntimeRequest, dict] = None,
445445
*,
446446
name: str = None,
447447
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -452,7 +452,7 @@ def get_runtime(
452452
be a regional endpoint rather than zonal.
453453
454454
Args:
455-
request (google.cloud.notebooks_v1.types.GetRuntimeRequest):
455+
request (Union[google.cloud.notebooks_v1.types.GetRuntimeRequest, dict]):
456456
The request object. Request for getting a Managed
457457
Notebook Runtime.
458458
name (str):
@@ -513,7 +513,7 @@ def get_runtime(
513513

514514
def create_runtime(
515515
self,
516-
request: managed_service.CreateRuntimeRequest = None,
516+
request: Union[managed_service.CreateRuntimeRequest, dict] = None,
517517
*,
518518
parent: str = None,
519519
runtime_id: str = None,
@@ -526,7 +526,7 @@ def create_runtime(
526526
location.
527527
528528
Args:
529-
request (google.cloud.notebooks_v1.types.CreateRuntimeRequest):
529+
request (Union[google.cloud.notebooks_v1.types.CreateRuntimeRequest, dict]):
530530
The request object. Request for creating a Managed
531531
Notebook Runtime.
532532
parent (str):
@@ -614,7 +614,7 @@ def create_runtime(
614614

615615
def delete_runtime(
616616
self,
617-
request: managed_service.DeleteRuntimeRequest = None,
617+
request: Union[managed_service.DeleteRuntimeRequest, dict] = None,
618618
*,
619619
name: str = None,
620620
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -624,7 +624,7 @@ def delete_runtime(
624624
r"""Deletes a single Runtime.
625625
626626
Args:
627-
request (google.cloud.notebooks_v1.types.DeleteRuntimeRequest):
627+
request (Union[google.cloud.notebooks_v1.types.DeleteRuntimeRequest, dict]):
628628
The request object. Request for deleting a Managed
629629
Notebook Runtime.
630630
name (str):
@@ -706,7 +706,7 @@ def delete_runtime(
706706

707707
def start_runtime(
708708
self,
709-
request: managed_service.StartRuntimeRequest = None,
709+
request: Union[managed_service.StartRuntimeRequest, dict] = None,
710710
*,
711711
name: str = None,
712712
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -722,7 +722,7 @@ def start_runtime(
722722
resume-instance
723723
724724
Args:
725-
request (google.cloud.notebooks_v1.types.StartRuntimeRequest):
725+
request (Union[google.cloud.notebooks_v1.types.StartRuntimeRequest, dict]):
726726
The request object. Request for starting a Managed
727727
Notebook Runtime.
728728
name (str):
@@ -794,7 +794,7 @@ def start_runtime(
794794

795795
def stop_runtime(
796796
self,
797-
request: managed_service.StopRuntimeRequest = None,
797+
request: Union[managed_service.StopRuntimeRequest, dict] = None,
798798
*,
799799
name: str = None,
800800
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -810,7 +810,7 @@ def stop_runtime(
810810
resume-instance
811811
812812
Args:
813-
request (google.cloud.notebooks_v1.types.StopRuntimeRequest):
813+
request (Union[google.cloud.notebooks_v1.types.StopRuntimeRequest, dict]):
814814
The request object. Request for stopping a Managed
815815
Notebook Runtime.
816816
name (str):
@@ -882,7 +882,7 @@ def stop_runtime(
882882

883883
def switch_runtime(
884884
self,
885-
request: managed_service.SwitchRuntimeRequest = None,
885+
request: Union[managed_service.SwitchRuntimeRequest, dict] = None,
886886
*,
887887
name: str = None,
888888
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -892,7 +892,7 @@ def switch_runtime(
892892
r"""Switch a Managed Notebook Runtime.
893893
894894
Args:
895-
request (google.cloud.notebooks_v1.types.SwitchRuntimeRequest):
895+
request (Union[google.cloud.notebooks_v1.types.SwitchRuntimeRequest, dict]):
896896
The request object. Request for switching a Managed
897897
Notebook Runtime.
898898
name (str):
@@ -964,7 +964,7 @@ def switch_runtime(
964964

965965
def reset_runtime(
966966
self,
967-
request: managed_service.ResetRuntimeRequest = None,
967+
request: Union[managed_service.ResetRuntimeRequest, dict] = None,
968968
*,
969969
name: str = None,
970970
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -974,7 +974,7 @@ def reset_runtime(
974974
r"""Resets a Managed Notebook Runtime.
975975
976976
Args:
977-
request (google.cloud.notebooks_v1.types.ResetRuntimeRequest):
977+
request (Union[google.cloud.notebooks_v1.types.ResetRuntimeRequest, dict]):
978978
The request object. Request for reseting a Managed
979979
Notebook Runtime.
980980
name (str):
@@ -1046,7 +1046,7 @@ def reset_runtime(
10461046

10471047
def report_runtime_event(
10481048
self,
1049-
request: managed_service.ReportRuntimeEventRequest = None,
1049+
request: Union[managed_service.ReportRuntimeEventRequest, dict] = None,
10501050
*,
10511051
name: str = None,
10521052
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1056,7 +1056,7 @@ def report_runtime_event(
10561056
r"""Report and process a runtime event.
10571057
10581058
Args:
1059-
request (google.cloud.notebooks_v1.types.ReportRuntimeEventRequest):
1059+
request (Union[google.cloud.notebooks_v1.types.ReportRuntimeEventRequest, dict]):
10601060
The request object. Request for reporting a Managed
10611061
Notebook Event.
10621062
name (str):

google/cloud/notebooks_v1/services/managed_notebook_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(
118118
**scopes_kwargs, quota_project_id=quota_project_id
119119
)
120120

121-
# If the credentials is service account credentials, then always try to use self signed JWT.
121+
# If the credentials are service account credentials, then always try to use self signed JWT.
122122
if (
123123
always_use_jwt_access
124124
and isinstance(credentials, service_account.Credentials)

google/cloud/notebooks_v1/services/managed_notebook_service/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ def __init__(
8383
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8484
If provided, it overrides the ``host`` argument and tries to create
8585
a mutual TLS channel with client SSL credentials from
86-
``client_cert_source`` or applicatin default SSL credentials.
86+
``client_cert_source`` or application default SSL credentials.
8787
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8888
Deprecated. A callback to provide client SSL certificate bytes and
8989
private key bytes, both in PEM format. It is ignored if
9090
``api_mtls_endpoint`` is None.
9191
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
92-
for grpc channel. It is ignored if ``channel`` is provided.
92+
for the grpc channel. It is ignored if ``channel`` is provided.
9393
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9494
A callback to provide client certificate bytes and private key bytes,
95-
both in PEM format. It is used to configure mutual TLS channel. It is
95+
both in PEM format. It is used to configure a mutual TLS channel. It is
9696
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9797
quota_project_id (Optional[str]): An optional project to use for billing
9898
and quota.

google/cloud/notebooks_v1/services/managed_notebook_service/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ def __init__(
130130
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
131131
If provided, it overrides the ``host`` argument and tries to create
132132
a mutual TLS channel with client SSL credentials from
133-
``client_cert_source`` or applicatin default SSL credentials.
133+
``client_cert_source`` or application default SSL credentials.
134134
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
135135
Deprecated. A callback to provide client SSL certificate bytes and
136136
private key bytes, both in PEM format. It is ignored if
137137
``api_mtls_endpoint`` is None.
138138
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
139-
for grpc channel. It is ignored if ``channel`` is provided.
139+
for the grpc channel. It is ignored if ``channel`` is provided.
140140
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
141141
A callback to provide client certificate bytes and private key bytes,
142-
both in PEM format. It is used to configure mutual TLS channel. It is
142+
both in PEM format. It is used to configure a mutual TLS channel. It is
143143
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
144144
quota_project_id (Optional[str]): An optional project to use for billing
145145
and quota.

0 commit comments

Comments
 (0)