Skip to content

Commit cfcd0c2

Browse files
feat: publish proto definitions for SUM/AVG in Datastore (#456)
* chore: Update gapic-generator-python to v1.11.3 PiperOrigin-RevId: 546899192 Source-Link: googleapis/googleapis@e6b1691 Source-Link: googleapis/googleapis-gen@0b3917c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIzOTE3YzQyMWNiZGE3ZmNiNjcwOTJlMTZjMzNmM2VhNDZmNGJjNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(python): Add `warehouse-package-name` for google/datastore/admin/v1 PiperOrigin-RevId: 551158666 Source-Link: googleapis/googleapis@5096eae Source-Link: googleapis/googleapis-gen@a0e6a6c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTBlNmE2Y2EzNjJjODUyMWFiMzAxNDA4ZGIzODlkZDgyMzVjYTA3MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: Specify limit for `properties` in `Index` message in Datastore Admin API docs: Minor formatting in Datastore Admin API PiperOrigin-RevId: 551819875 Source-Link: googleapis/googleapis@3db8b01 Source-Link: googleapis/googleapis-gen@7ebf113 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2ViZjExMzc2MzliOTM2MTNlNmE2MjA2NjU0YTViYThmMjFlOTMyMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: publish proto definitions for SUM/AVG in Datastore PiperOrigin-RevId: 552847139 Source-Link: googleapis/googleapis@6148e5b Source-Link: googleapis/googleapis-gen@96be51b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTZiZTUxYjk5NTA0N2JmZGVmNDgyNTE3ODUzOWUyMzg1ODMxMDFhOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * apply docs fix from googleapis/gapic-generator-python#1721 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 61d46f1 commit cfcd0c2

File tree

11 files changed

+317
-254
lines changed

11 files changed

+317
-254
lines changed

google/cloud/datastore_admin/py.typed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Marker file for PEP 561.
2-
# The google-cloud-datastore-admin package uses inline types.
2+
# The google-cloud-datastore package uses inline types.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Marker file for PEP 561.
2-
# The google-cloud-datastore-admin package uses inline types.
2+
# The google-cloud-datastore package uses inline types.

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

Lines changed: 41 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -58,61 +58,54 @@ class DatastoreAdminAsyncClient:
5858
"""Google Cloud Datastore Admin API
5959
The Datastore Admin API provides several admin services for
6060
Cloud Datastore.
61-
-----------------------------------------------------------------------------
62-
## Concepts
63-
64-
Project, namespace, kind, and entity as defined in the Google
65-
Cloud Datastore API.
61+
Concepts: Project, namespace, kind, and entity as defined in the
62+
Google Cloud Datastore API.
6663
6764
Operation: An Operation represents work being performed in the
6865
background.
6966
EntityFilter: Allows specifying a subset of entities in a
7067
project. This is specified as a combination of kinds and
7168
namespaces (either or both of which may be all).
7269
73-
-----------------------------------------------------------------------------
74-
## Services
75-
76-
# Export/Import
77-
78-
The Export/Import service provides the ability to copy all or a
79-
subset of entities to/from Google Cloud Storage.
80-
81-
Exported data may be imported into Cloud Datastore for any
82-
Google Cloud Platform project. It is not restricted to the
83-
export source project. It is possible to export from one project
84-
and then import into another.
85-
Exported data can also be loaded into Google BigQuery for
86-
analysis.
87-
Exports and imports are performed asynchronously. An Operation
88-
resource is created for each export/import. The state (including
89-
any errors encountered) of the export/import may be queried via
90-
the Operation resource.
91-
# Index
92-
93-
The index service manages Cloud Datastore composite indexes.
94-
Index creation and deletion are performed asynchronously. An
95-
Operation resource is created for each such asynchronous
96-
operation. The state of the operation (including any errors
97-
encountered) may be queried via the Operation resource.
98-
99-
# Operation
100-
101-
The Operations collection provides a record of actions performed
102-
for the specified project (including any operations in
103-
progress). Operations are not created directly but through calls
104-
on other collections or resources.
105-
An operation that is not yet done may be cancelled. The request
106-
to cancel is asynchronous and the operation may continue to run
107-
for some time after the request to cancel is made.
108-
109-
An operation that is done may be deleted so that it is no longer
110-
listed as part of the Operation collection.
111-
112-
ListOperations returns all pending operations, but not completed
113-
operations.
114-
Operations are created by service DatastoreAdmin,
115-
but are accessed via service google.longrunning.Operations.
70+
Export/Import Service:
71+
72+
- The Export/Import service provides the ability to copy all or
73+
a subset of entities to/from Google Cloud Storage.
74+
- Exported data may be imported into Cloud Datastore for any
75+
Google Cloud Platform project. It is not restricted to the
76+
export source project. It is possible to export from one
77+
project and then import into another.
78+
- Exported data can also be loaded into Google BigQuery for
79+
analysis.
80+
- Exports and imports are performed asynchronously. An Operation
81+
resource is created for each export/import. The state
82+
(including any errors encountered) of the export/import may be
83+
queried via the Operation resource.
84+
85+
Index Service:
86+
87+
- The index service manages Cloud Datastore composite indexes.
88+
- Index creation and deletion are performed asynchronously. An
89+
Operation resource is created for each such asynchronous
90+
operation. The state of the operation (including any errors
91+
encountered) may be queried via the Operation resource.
92+
93+
Operation Service:
94+
95+
- The Operations collection provides a record of actions
96+
performed for the specified project (including any operations
97+
in progress). Operations are not created directly but through
98+
calls on other collections or resources.
99+
- An operation that is not yet done may be cancelled. The
100+
request to cancel is asynchronous and the operation may
101+
continue to run for some time after the request to cancel is
102+
made.
103+
- An operation that is done may be deleted so that it is no
104+
longer listed as part of the Operation collection.
105+
- ListOperations returns all pending operations, but not
106+
completed operations.
107+
- Operations are created by service DatastoreAdmin, but are
108+
accessed via service google.longrunning.Operations.
116109
"""
117110

118111
_client: DatastoreAdminClient

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

Lines changed: 42 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -100,58 +100,54 @@ class DatastoreAdminClient(metaclass=DatastoreAdminClientMeta):
100100
"""Google Cloud Datastore Admin API
101101
The Datastore Admin API provides several admin services for
102102
Cloud Datastore.
103-
## Concepts
104-
105-
Project, namespace, kind, and entity as defined in the Google
106-
Cloud Datastore API.
103+
Concepts: Project, namespace, kind, and entity as defined in the
104+
Google Cloud Datastore API.
107105
108106
Operation: An Operation represents work being performed in the
109107
background.
110108
EntityFilter: Allows specifying a subset of entities in a
111109
project. This is specified as a combination of kinds and
112110
namespaces (either or both of which may be all).
113-
## Services
114-
115-
# Export/Import
116-
117-
The Export/Import service provides the ability to copy all or a
118-
subset of entities to/from Google Cloud Storage.
119-
120-
Exported data may be imported into Cloud Datastore for any
121-
Google Cloud Platform project. It is not restricted to the
122-
export source project. It is possible to export from one project
123-
and then import into another.
124-
Exported data can also be loaded into Google BigQuery for
125-
analysis.
126-
Exports and imports are performed asynchronously. An Operation
127-
resource is created for each export/import. The state (including
128-
any errors encountered) of the export/import may be queried via
129-
the Operation resource.
130-
# Index
131-
132-
The index service manages Cloud Datastore composite indexes.
133-
Index creation and deletion are performed asynchronously. An
134-
Operation resource is created for each such asynchronous
135-
operation. The state of the operation (including any errors
136-
encountered) may be queried via the Operation resource.
137-
138-
# Operation
139-
140-
The Operations collection provides a record of actions performed
141-
for the specified project (including any operations in
142-
progress). Operations are not created directly but through calls
143-
on other collections or resources.
144-
An operation that is not yet done may be cancelled. The request
145-
to cancel is asynchronous and the operation may continue to run
146-
for some time after the request to cancel is made.
147-
148-
An operation that is done may be deleted so that it is no longer
149-
listed as part of the Operation collection.
150-
151-
ListOperations returns all pending operations, but not completed
152-
operations.
153-
Operations are created by service DatastoreAdmin,
154-
but are accessed via service google.longrunning.Operations.
111+
112+
Export/Import Service:
113+
114+
- The Export/Import service provides the ability to copy all or
115+
a subset of entities to/from Google Cloud Storage.
116+
- Exported data may be imported into Cloud Datastore for any
117+
Google Cloud Platform project. It is not restricted to the
118+
export source project. It is possible to export from one
119+
project and then import into another.
120+
- Exported data can also be loaded into Google BigQuery for
121+
analysis.
122+
- Exports and imports are performed asynchronously. An Operation
123+
resource is created for each export/import. The state
124+
(including any errors encountered) of the export/import may be
125+
queried via the Operation resource.
126+
127+
Index Service:
128+
129+
- The index service manages Cloud Datastore composite indexes.
130+
- Index creation and deletion are performed asynchronously. An
131+
Operation resource is created for each such asynchronous
132+
operation. The state of the operation (including any errors
133+
encountered) may be queried via the Operation resource.
134+
135+
Operation Service:
136+
137+
- The Operations collection provides a record of actions
138+
performed for the specified project (including any operations
139+
in progress). Operations are not created directly but through
140+
calls on other collections or resources.
141+
- An operation that is not yet done may be cancelled. The
142+
request to cancel is asynchronous and the operation may
143+
continue to run for some time after the request to cancel is
144+
made.
145+
- An operation that is done may be deleted so that it is no
146+
longer listed as part of the Operation collection.
147+
- ListOperations returns all pending operations, but not
148+
completed operations.
149+
- Operations are created by service DatastoreAdmin, but are
150+
accessed via service google.longrunning.Operations.
155151
"""
156152

157153
@staticmethod

google/cloud/datastore_admin_v1/services/datastore_admin/transports/grpc.py

Lines changed: 41 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -38,61 +38,54 @@ class DatastoreAdminGrpcTransport(DatastoreAdminTransport):
3838
Google Cloud Datastore Admin API
3939
The Datastore Admin API provides several admin services for
4040
Cloud Datastore.
41-
-----------------------------------------------------------------------------
42-
## Concepts
43-
44-
Project, namespace, kind, and entity as defined in the Google
45-
Cloud Datastore API.
41+
Concepts: Project, namespace, kind, and entity as defined in the
42+
Google Cloud Datastore API.
4643
4744
Operation: An Operation represents work being performed in the
4845
background.
4946
EntityFilter: Allows specifying a subset of entities in a
5047
project. This is specified as a combination of kinds and
5148
namespaces (either or both of which may be all).
5249
53-
-----------------------------------------------------------------------------
54-
## Services
55-
56-
# Export/Import
57-
58-
The Export/Import service provides the ability to copy all or a
59-
subset of entities to/from Google Cloud Storage.
60-
61-
Exported data may be imported into Cloud Datastore for any
62-
Google Cloud Platform project. It is not restricted to the
63-
export source project. It is possible to export from one project
64-
and then import into another.
65-
Exported data can also be loaded into Google BigQuery for
66-
analysis.
67-
Exports and imports are performed asynchronously. An Operation
68-
resource is created for each export/import. The state (including
69-
any errors encountered) of the export/import may be queried via
70-
the Operation resource.
71-
# Index
72-
73-
The index service manages Cloud Datastore composite indexes.
74-
Index creation and deletion are performed asynchronously. An
75-
Operation resource is created for each such asynchronous
76-
operation. The state of the operation (including any errors
77-
encountered) may be queried via the Operation resource.
78-
79-
# Operation
80-
81-
The Operations collection provides a record of actions performed
82-
for the specified project (including any operations in
83-
progress). Operations are not created directly but through calls
84-
on other collections or resources.
85-
An operation that is not yet done may be cancelled. The request
86-
to cancel is asynchronous and the operation may continue to run
87-
for some time after the request to cancel is made.
88-
89-
An operation that is done may be deleted so that it is no longer
90-
listed as part of the Operation collection.
91-
92-
ListOperations returns all pending operations, but not completed
93-
operations.
94-
Operations are created by service DatastoreAdmin,
95-
but are accessed via service google.longrunning.Operations.
50+
Export/Import Service:
51+
52+
- The Export/Import service provides the ability to copy all or
53+
a subset of entities to/from Google Cloud Storage.
54+
- Exported data may be imported into Cloud Datastore for any
55+
Google Cloud Platform project. It is not restricted to the
56+
export source project. It is possible to export from one
57+
project and then import into another.
58+
- Exported data can also be loaded into Google BigQuery for
59+
analysis.
60+
- Exports and imports are performed asynchronously. An Operation
61+
resource is created for each export/import. The state
62+
(including any errors encountered) of the export/import may be
63+
queried via the Operation resource.
64+
65+
Index Service:
66+
67+
- The index service manages Cloud Datastore composite indexes.
68+
- Index creation and deletion are performed asynchronously. An
69+
Operation resource is created for each such asynchronous
70+
operation. The state of the operation (including any errors
71+
encountered) may be queried via the Operation resource.
72+
73+
Operation Service:
74+
75+
- The Operations collection provides a record of actions
76+
performed for the specified project (including any operations
77+
in progress). Operations are not created directly but through
78+
calls on other collections or resources.
79+
- An operation that is not yet done may be cancelled. The
80+
request to cancel is asynchronous and the operation may
81+
continue to run for some time after the request to cancel is
82+
made.
83+
- An operation that is done may be deleted so that it is no
84+
longer listed as part of the Operation collection.
85+
- ListOperations returns all pending operations, but not
86+
completed operations.
87+
- Operations are created by service DatastoreAdmin, but are
88+
accessed via service google.longrunning.Operations.
9689
9790
This class defines the same methods as the primary client, so the
9891
primary client can load the underlying transport implementation

0 commit comments

Comments
 (0)