Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#457)
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 0dca32f commit 32bc180
Show file tree
Hide file tree
Showing 10 changed files with 86 additions and 96 deletions.
38 changes: 19 additions & 19 deletions google/cloud/firestore_admin_v1/services/firestore_admin/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 @@ -407,7 +407,7 @@ def __init__(

def create_index(
self,
request: firestore_admin.CreateIndexRequest = None,
request: Union[firestore_admin.CreateIndexRequest, dict] = None,
*,
parent: str = None,
index: gfa_index.Index = None,
Expand All @@ -422,7 +422,7 @@ def create_index(
[IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
Args:
request (google.cloud.firestore_admin_v1.types.CreateIndexRequest):
request (Union[google.cloud.firestore_admin_v1.types.CreateIndexRequest, dict]):
The request object. The request for
[FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
parent (str):
Expand Down Expand Up @@ -502,7 +502,7 @@ def create_index(

def list_indexes(
self,
request: firestore_admin.ListIndexesRequest = None,
request: Union[firestore_admin.ListIndexesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -512,7 +512,7 @@ def list_indexes(
r"""Lists composite indexes.
Args:
request (google.cloud.firestore_admin_v1.types.ListIndexesRequest):
request (Union[google.cloud.firestore_admin_v1.types.ListIndexesRequest, dict]):
The request object. The request for
[FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
parent (str):
Expand Down Expand Up @@ -582,7 +582,7 @@ def list_indexes(

def get_index(
self,
request: firestore_admin.GetIndexRequest = None,
request: Union[firestore_admin.GetIndexRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -592,7 +592,7 @@ def get_index(
r"""Gets a composite index.
Args:
request (google.cloud.firestore_admin_v1.types.GetIndexRequest):
request (Union[google.cloud.firestore_admin_v1.types.GetIndexRequest, dict]):
The request object. The request for
[FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
name (str):
Expand Down Expand Up @@ -654,7 +654,7 @@ def get_index(

def delete_index(
self,
request: firestore_admin.DeleteIndexRequest = None,
request: Union[firestore_admin.DeleteIndexRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -664,7 +664,7 @@ def delete_index(
r"""Deletes a composite index.
Args:
request (google.cloud.firestore_admin_v1.types.DeleteIndexRequest):
request (Union[google.cloud.firestore_admin_v1.types.DeleteIndexRequest, dict]):
The request object. The request for
[FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
name (str):
Expand Down Expand Up @@ -718,7 +718,7 @@ def delete_index(

def get_field(
self,
request: firestore_admin.GetFieldRequest = None,
request: Union[firestore_admin.GetFieldRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -728,7 +728,7 @@ def get_field(
r"""Gets the metadata and configuration for a Field.
Args:
request (google.cloud.firestore_admin_v1.types.GetFieldRequest):
request (Union[google.cloud.firestore_admin_v1.types.GetFieldRequest, dict]):
The request object. The request for
[FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
name (str):
Expand Down Expand Up @@ -792,7 +792,7 @@ def get_field(

def update_field(
self,
request: firestore_admin.UpdateFieldRequest = None,
request: Union[firestore_admin.UpdateFieldRequest, dict] = None,
*,
field: gfa_field.Field = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -817,7 +817,7 @@ def update_field(
``projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*``.
Args:
request (google.cloud.firestore_admin_v1.types.UpdateFieldRequest):
request (Union[google.cloud.firestore_admin_v1.types.UpdateFieldRequest, dict]):
The request object. The request for
[FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
field (google.cloud.firestore_admin_v1.types.Field):
Expand Down Expand Up @@ -893,7 +893,7 @@ def update_field(

def list_fields(
self,
request: firestore_admin.ListFieldsRequest = None,
request: Union[firestore_admin.ListFieldsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -910,7 +910,7 @@ def list_fields(
with the filter set to ``indexConfig.usesAncestorConfig:false``.
Args:
request (google.cloud.firestore_admin_v1.types.ListFieldsRequest):
request (Union[google.cloud.firestore_admin_v1.types.ListFieldsRequest, dict]):
The request object. The request for
[FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
parent (str):
Expand Down Expand Up @@ -980,7 +980,7 @@ def list_fields(

def export_documents(
self,
request: firestore_admin.ExportDocumentsRequest = None,
request: Union[firestore_admin.ExportDocumentsRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -999,7 +999,7 @@ def export_documents(
Google Cloud Storage.
Args:
request (google.cloud.firestore_admin_v1.types.ExportDocumentsRequest):
request (Union[google.cloud.firestore_admin_v1.types.ExportDocumentsRequest, dict]):
The request object. The request for
[FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
name (str):
Expand Down Expand Up @@ -1073,7 +1073,7 @@ def export_documents(

def import_documents(
self,
request: firestore_admin.ImportDocumentsRequest = None,
request: Union[firestore_admin.ImportDocumentsRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1089,7 +1089,7 @@ def import_documents(
already been imported to Cloud Firestore.
Args:
request (google.cloud.firestore_admin_v1.types.ImportDocumentsRequest):
request (Union[google.cloud.firestore_admin_v1.types.ImportDocumentsRequest, dict]):
The request object. The request for
[FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
name (str):
Expand Down
Expand Up @@ -125,7 +125,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 32bc180

Please sign in to comment.