8000 feat: Added methods for creating and deleting composite indexes (#248) · googleapis/python-datastore@d6c8868 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6c8868

Browse files
authored
feat: Added methods for creating and deleting composite indexes (#248)
This PR fixes an issue with the `owlbot.py` file which prevented [google/cloud/datastore_v1](https://github.com/googleapis/python-datastore/commits/main/google/cloud/datastore_v1) from being updated. This PR also brings the client up to date with the generated client in googleapis-gen [here](https://github.com/googleapis/googleapis-gen/tree/master/google/datastore). chore: update owlbot.py to properly copy folders from googleapis-gen fix(deps): require google-api-core >= 1.28.0 docs: list oneofs in docstring feat: add context manager support in client fix: add 'dict' annotation type to 'request' fix: add async client to %name_%version/init.py feat: support self-signed JWT flow for service accounts feat: Added methods for creating and deleting composite indexes
1 parent 2658174 commit d6c8868

40 files changed

+3119
-1677
lines changed

google/cloud/datastore_admin_v1/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,7 +15,11 @@
1615
#
1716

1817
from .services.datastore_admin import DatastoreAdminClient
18+
from .services.datastore_admin import DatastoreAdminAsyncClient
19+
1920
from .types.datastore_admin import CommonMetadata
21+
from .types.datastore_admin import CreateIndexRequest
22+
from .types.datastore_admin import DeleteIndexRequest
2023
from .types.datastore_admin import EntityFilter
2124
from .types.datastore_admin import ExportEntitiesMetadata
2225
from .types.datastore_admin import ExportEntitiesRequest
@@ -27,13 +30,16 @@
2730
from .types.datastore_admin import IndexOperationMetadata
2831
from .types.datastore_admin import ListIndexesRequest
2932
from .types.datastore_admin import ListIndexesResponse
30-
from .types.datastore_admin import OperationType
3133
from .types.datastore_admin import Progress
34+
from .types.datastore_admin import OperationType
3235
from .types.index import Index
3336

34-
3537
__all__ = (
38+
"DatastoreAdminAsyncClient",
3639
"CommonMetadata",
40+
"CreateIndexRequest",
41+
"DatastoreAdminClient",
42+
"DeleteIndexRequest",
3743
"EntityFilter",
3844
"ExportEntitiesMetadata",
3945
"ExportEntitiesRequest",
@@ -47,5 +53,4 @@
4753
"ListIndexesResponse",
4854
"OperationType",
4955
"Progress",
50-
"DatastoreAdminClient",
5156
)
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.datastore_admin_v1",
5+
"protoPackage": "google.datastore.admin.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"DatastoreAdmin": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "DatastoreAdminClient",
12+
"rpcs": {
13+
"CreateIndex": {
14+
"methods": [
15+
"create_index"
16+
]
17+
},
18+
"DeleteIndex": {
19+
"methods": [
20+
"delete_index"
21+
]
22+
},
23+
"ExportEntities": {
24+
"methods": [
25+
"export_entities"
26+
]
27+
},
28+
"GetIndex": {
29+
"methods": [
30+
"get_index"
31+
]
32+
},
33+
"ImportEntities": {
34+
"methods": [
35+
"import_entities"
36+
]
37+
},
38+
"ListIndexes": {
39+
"methods": [
40+
"list_indexes"
41+
]
42+
}
43+
}
44+
},
45+
"grpc-async": {
46+
"libraryClient": "DatastoreAdminAsyncClient",
47+
"rpcs": {
48+
"CreateIndex": {
49+
"methods": [
50+
"create_index"
51+
]
52+
},
53+
"DeleteIndex": {
54+
"methods": [
55+
"delete_index"
56+
]
57+
},
58+
"ExportEntities": {
59+
"methods": [
60+
"export_entities"
61+
]
62+
},
63+
"GetIndex": {
64+
"methods": [
65+
"get_index"
66+
]
67+
},
68+
"ImportEntities": {
69+
"methods": [
70+
"import_entities"
71+
]
72+
},
73+
"ListIndexes": {
74+
"methods": [
75+
"list_indexes"
76+
]
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
83+
}

google/cloud/datastore_admin_v1/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

google/cloud/datastore_admin_v1/services/datastore_admin/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import DatastoreAdminClient
1917
from .async_client import DatastoreAdminAsyncClient
2018

0 commit comments

Comments
 (0)
0