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

Commit

Permalink
chore: use gapic-generator-python 0.53.4 (#15)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

docs: list oneofs in docstring
fix(deps): require google-api-core >= 1.28.0
fix(deps): drop packaging dependency

committer: busunkim96@
PiperOrigin-RevId: 406468269

Source-Link: googleapis/googleapis@83d81b0

Source-Link: googleapis/googleapis-gen@2ff001f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZmMDAxZmJhY2I5ZTc3ZTcxZDczNGRlNWY5NTVjMDVmZGFlODUyNiJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 1, 2021
1 parent 554b5f4 commit c98e3ab
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

import google.api_core.client_options as ClientOptions # type: ignore
from google.api_core.client_options import ClientOptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.common.types import operation_metadata as operation_metadata_pb2 # type: ignore
Expand Down Expand Up @@ -198,18 +200,18 @@ def __init__(

async def list_instances(
self,
request: cloud_filestore_service.ListInstancesRequest = None,
request: Union[cloud_filestore_service.ListInstancesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListInstancesAsyncPager:
r"""Lists all instances in a project for either a
specified location or for all locations.
Args:
request (:class:`google.cloud.filestore_v1.types.ListInstancesRequest`):
request (Union[google.cloud.filestore_v1.types.ListInstancesRequest, dict]):
The request object. ListInstancesRequest lists
instances.
parent (:class:`str`):
Expand Down Expand Up @@ -292,17 +294,17 @@ async def list_instances(

async def get_instance(
self,
request: cloud_filestore_service.GetInstanceRequest = None,
request: Union[cloud_filestore_service.GetInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> cloud_filestore_service.Instance:
r"""Gets the details of a specific instance.
Args:
request (:class:`google.cloud.filestore_v1.types.GetInstanceRequest`):
request (Union[google.cloud.filestore_v1.types.GetInstanceRequest, dict]):
The request object. GetInstanceRequest gets the state of
an instance.
name (:class:`str`):
Expand Down Expand Up @@ -370,12 +372,12 @@ async def get_instance(

async def create_instance(
self,
request: cloud_filestore_service.CreateInstanceRequest = None,
request: Union[cloud_filestore_service.CreateInstanceRequest, dict] = None,
*,
parent: str = None,
instance: cloud_filestore_service.Instance = None,
instance_id: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
Expand All @@ -386,7 +388,7 @@ async def create_instance(
the minimum capacity of the tier).
Args:
request (:class:`google.cloud.filestore_v1.types.CreateInstanceRequest`):
request (Union[google.cloud.filestore_v1.types.CreateInstanceRequest, dict]):
The request object. CreateInstanceRequest creates an
instance.
parent (:class:`str`):
Expand Down Expand Up @@ -479,18 +481,18 @@ async def create_instance(

async def update_instance(
self,
request: cloud_filestore_service.UpdateInstanceRequest = None,
request: Union[cloud_filestore_service.UpdateInstanceRequest, dict] = None,
*,
instance: cloud_filestore_service.Instance = None,
update_mask: field_mask_pb2.FieldMask = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Updates the settings of a specific instance.
Args:
request (:class:`google.cloud.filestore_v1.types.UpdateInstanceRequest`):
request (Union[google.cloud.filestore_v1.types.UpdateInstanceRequest, dict]):
The request object. UpdateInstanceRequest updates the
settings of an instance.
instance (:class:`google.cloud.filestore_v1.types.Instance`):
Expand Down Expand Up @@ -576,9 +578,9 @@ async def update_instance(

async def restore_instance(
self,
request: cloud_filestore_service.RestoreInstanceRequest = None,
request: Union[cloud_filestore_service.RestoreInstanceRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
Expand All @@ -589,7 +591,7 @@ async def restore_instance(
to or larger than the minimum capacity of the tier).
Args:
request (:class:`google.cloud.filestore_v1.types.RestoreInstanceRequest`):
request (Union[google.cloud.filestore_v1.types.RestoreInstanceRequest, dict]):
The request object. RestoreInstanceRequest restores an
existing instances's file share from a backup.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -640,17 +642,17 @@ async def restore_instance(

async def delete_instance(
self,
request: cloud_filestore_service.DeleteInstanceRequest = None,
request: Union[cloud_filestore_service.DeleteInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Deletes an instance.
Args:
request (:class:`google.cloud.filestore_v1.types.DeleteInstanceRequest`):
request (Union[google.cloud.filestore_v1.types.DeleteInstanceRequest, dict]):
The request object. DeleteInstanceRequest deletes an
instance.
name (:class:`str`):
Expand Down Expand Up @@ -732,18 +734,18 @@ async def delete_instance(

async def list_backups(
self,
request: cloud_filestore_service.ListBackupsRequest = None,
request: Union[cloud_filestore_service.ListBackupsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListBackupsAsyncPager:
r"""Lists all backups in a project for either a specified
location or for all locations.
Args:
request (:class:`google.cloud.filestore_v1.types.ListBackupsRequest`):
request (Union[google.cloud.filestore_v1.types.ListBackupsRequest, dict]):
The request object. ListBackupsRequest lists backups.
parent (:class:`str`):
Required. The project and location for which to retrieve
Expand Down Expand Up @@ -825,17 +827,17 @@ async def list_backups(

async def get_backup(
self,
request: cloud_filestore_service.GetBackupRequest = None,
request: Union[cloud_filestore_service.GetBackupRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> cloud_filestore_service.Backup:
r"""Gets the details of a specific backup.
Args:
request (:class:`google.cloud.filestore_v1.types.GetBackupRequest`):
request (Union[google.cloud.filestore_v1.types.GetBackupRequest, dict]):
The request object. GetBackupRequest gets the state of a
backup.
name (:class:`str`):
Expand Down Expand Up @@ -903,19 +905,19 @@ async def get_backup(

async def create_backup(
self,
request: cloud_filestore_service.CreateBackupRequest = None,
request: Union[cloud_filestore_service.CreateBackupRequest, dict] = None,
*,
parent: str = None,
backup: cloud_filestore_service.Backup = None,
backup_id: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Creates a backup.
Args:
request (:class:`google.cloud.filestore_v1.types.CreateBackupRequest`):
request (Union[google.cloud.filestore_v1.types.CreateBackupRequest, dict]):
The request object. CreateBackupRequest creates a
backup.
parent (:class:`str`):
Expand Down Expand Up @@ -1013,17 +1015,17 @@ async def create_backup(

async def delete_backup(
self,
request: cloud_filestore_service.DeleteBackupRequest = None,
request: Union[cloud_filestore_service.DeleteBackupRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Deletes a backup.
Args:
request (:class:`google.cloud.filestore_v1.types.DeleteBackupRequest`):
request (Union[google.cloud.filestore_v1.types.DeleteBackupRequest, dict]):
The request object. DeleteBackupRequest deletes a
backup.
name (:class:`str`):
Expand Down Expand Up @@ -1105,18 +1107,18 @@ async def delete_backup(

async def update_backup(
self,
request: cloud_filestore_service.UpdateBackupRequest = None,
request: Union[cloud_filestore_service.UpdateBackupRequest, dict] = None,
*,
backup: cloud_filestore_service.Backup = None,
update_mask: field_mask_pb2.FieldMask = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Updates the settings of a specific backup.
Args:
request (:class:`google.cloud.filestore_v1.types.UpdateBackupRequest`):
request (Union[google.cloud.filestore_v1.types.UpdateBackupRequest, dict]):
The request object. UpdateBackupRequest updates
description and/or labels for a backup.
backup (:class:`google.cloud.filestore_v1.types.Backup`):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.common.types import operation_metadata as operation_metadata_pb2 # type: ignore
Expand Down Expand Up @@ -400,7 +402,7 @@ def list_instances(
request: Union[cloud_filestore_service.ListInstancesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListInstancesPager:
Expand Down Expand Up @@ -485,7 +487,7 @@ def get_instance(
request: Union[cloud_filestore_service.GetInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> cloud_filestore_service.Instance:
Expand Down Expand Up @@ -556,7 +558,7 @@ def create_instance(
parent: str = None,
instance: cloud_filestore_service.Instance = None,
instance_id: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
Expand Down Expand Up @@ -664,7 +666,7 @@ def update_instance(
*,
instance: cloud_filestore_service.Instance = None,
update_mask: field_mask_pb2.FieldMask = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
Expand Down Expand Up @@ -759,7 +761,7 @@ def restore_instance(
self,
request: Union[cloud_filestore_service.RestoreInstanceRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
Expand Down Expand Up @@ -825,7 +827,7 @@ def delete_instance(
request: Union[cloud_filestore_service.DeleteInstanceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
Expand Down Expand Up @@ -917,7 +919,7 @@ def list_backups(
request: Union[cloud_filestore_service.ListBackupsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListBackupsPager:
Expand Down Expand Up @@ -1001,7 +1003,7 @@ def get_backup(
request: Union[cloud_filestore_service.GetBackupRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> cloud_filestore_service.Backup:
Expand Down Expand Up @@ -1072,7 +1074,7 @@ def create_backup(
parent: str = None,
backup: cloud_filestore_service.Backup = None,
backup_id: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
Expand Down Expand Up @@ -1180,7 +1182,7 @@ def delete_backup(
request: Union[cloud_filestore_service.DeleteBackupRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
Expand Down Expand Up @@ -1273,7 +1275,7 @@ def update_backup(
*,
backup: cloud_filestore_service.Backup = None,
update_mask: field_mask_pb2.FieldMask = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
Expand Down
Loading

0 comments on commit c98e3ab

Please sign in to comment.