Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added methods for creating and deleting composite indexes #248

Merged
merged 3 commits into from Nov 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 9 additions & 4 deletions google/cloud/datastore_admin_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,7 +15,11 @@
#

from .services.datastore_admin import DatastoreAdminClient
from .services.datastore_admin import DatastoreAdminAsyncClient

from .types.datastore_admin import CommonMetadata
from .types.datastore_admin import CreateIndexRequest
from .types.datastore_admin import DeleteIndexRequest
from .types.datastore_admin import EntityFilter
from .types.datastore_admin import ExportEntitiesMetadata
from .types.datastore_admin import ExportEntitiesRequest
Expand All @@ -27,13 +30,16 @@
from .types.datastore_admin import IndexOperationMetadata
from .types.datastore_admin import ListIndexesRequest
from .types.datastore_admin import ListIndexesResponse
from .types.datastore_admin import OperationType
from .types.datastore_admin import Progress
from .types.datastore_admin import OperationType
from .types.index import Index


__all__ = (
"DatastoreAdminAsyncClient",
"CommonMetadata",
"CreateIndexRequest",
"DatastoreAdminClient",
"DeleteIndexRequest",
"EntityFilter",
"ExportEntitiesMetadata",
"ExportEntitiesRequest",
Expand All @@ -47,5 +53,4 @@
"ListIndexesResponse",
"OperationType",
"Progress",
"DatastoreAdminClient",
)
83 changes: 83 additions & 0 deletions google/cloud/datastore_admin_v1/gapic_metadata.json
@@ -0,0 +1,83 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.datastore_admin_v1",
"protoPackage": "google.datastore.admin.v1",
"schema": "1.0",
"services": {
"DatastoreAdmin": {
"clients": {
"grpc": {
"libraryClient": "DatastoreAdminClient",
"rpcs": {
"CreateIndex": {
"methods": [
"create_index"
]
},
"DeleteIndex": {
"methods": [
"delete_index"
]
},
"ExportEntities": {
"methods": [
"export_entities"
]
},
"GetIndex": {
"methods": [
"get_index"
]
},
"ImportEntities": {
"methods": [
"import_entities"
]
},
"ListIndexes": {
"methods": [
"list_indexes"
]
}
}
},
"grpc-async": {
"libraryClient": "DatastoreAdminAsyncClient",
"rpcs": {
"CreateIndex": {
"methods": [
"create_index"
]
},
"DeleteIndex": {
"methods": [
"delete_index"
]
},
"ExportEntities": {
"methods": [
"export_entities"
]
},
"GetIndex": {
"methods": [
"get_index"
]
},
"ImportEntities": {
"methods": [
"import_entities"
]
},
"ListIndexes": {
"methods": [
"list_indexes"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/datastore_admin_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import DatastoreAdminClient
from .async_client import DatastoreAdminAsyncClient

Expand Down