Skip to content

Commit

Permalink
feat: publish proto definitions for SUM/AVG in Datastore (#456)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Aug 9, 2023
1 parent 61d46f1 commit cfcd0c2
Show file tree
Hide file tree
Showing 11 changed files with 317 additions and 254 deletions.
2 changes: 1 addition & 1 deletion google/cloud/datastore_admin/py.typed
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-datastore-admin package uses inline types.
# The google-cloud-datastore package uses inline types.
2 changes: 1 addition & 1 deletion google/cloud/datastore_admin_v1/py.typed
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-datastore-admin package uses inline types.
# The google-cloud-datastore package uses inline types.
Original file line number Diff line number Diff line change
Expand Up @@ -58,61 +58,54 @@ class DatastoreAdminAsyncClient:
"""Google Cloud Datastore Admin API
The Datastore Admin API provides several admin services for
Cloud Datastore.
-----------------------------------------------------------------------------
## Concepts
Project, namespace, kind, and entity as defined in the Google
Cloud Datastore API.
Concepts: Project, namespace, kind, and entity as defined in the
Google Cloud Datastore API.
Operation: An Operation represents work being performed in the
background.
EntityFilter: Allows specifying a subset of entities in a
project. This is specified as a combination of kinds and
namespaces (either or both of which may be all).
-----------------------------------------------------------------------------
## Services
# Export/Import
The Export/Import service provides the ability to copy all or a
subset of entities to/from Google Cloud Storage.
Exported data may be imported into Cloud Datastore for any
Google Cloud Platform project. It is not restricted to the
export source project. It is possible to export from one project
and then import into another.
Exported data can also be loaded into Google BigQuery for
analysis.
Exports and imports are performed asynchronously. An Operation
resource is created for each export/import. The state (including
any errors encountered) of the export/import may be queried via
the Operation resource.
# Index
The index service manages Cloud Datastore composite indexes.
Index creation and deletion are performed asynchronously. An
Operation resource is created for each such asynchronous
operation. The state of the operation (including any errors
encountered) may be queried via the Operation resource.
# Operation
The Operations collection provides a record of actions performed
for the specified project (including any operations in
progress). Operations are not created directly but through calls
on other collections or resources.
An operation that is not yet done may be cancelled. The request
to cancel is asynchronous and the operation may continue to run
for some time after the request to cancel is made.
An operation that is done may be deleted so that it is no longer
listed as part of the Operation collection.
ListOperations returns all pending operations, but not completed
operations.
Operations are created by service DatastoreAdmin,
but are accessed via service google.longrunning.Operations.
Export/Import Service:
- The Export/Import service provides the ability to copy all or
a subset of entities to/from Google Cloud Storage.
- Exported data may be imported into Cloud Datastore for any
Google Cloud Platform project. It is not restricted to the
export source project. It is possible to export from one
project and then import into another.
- Exported data can also be loaded into Google BigQuery for
analysis.
- Exports and imports are performed asynchronously. An Operation
resource is created for each export/import. The state
(including any errors encountered) of the export/import may be
queried via the Operation resource.
Index Service:
- The index service manages Cloud Datastore composite indexes.
- Index creation and deletion are performed asynchronously. An
Operation resource is created for each such asynchronous
operation. The state of the operation (including any errors
encountered) may be queried via the Operation resource.
Operation Service:
- The Operations collection provides a record of actions
performed for the specified project (including any operations
in progress). Operations are not created directly but through
calls on other collections or resources.
- An operation that is not yet done may be cancelled. The
request to cancel is asynchronous and the operation may
continue to run for some time after the request to cancel is
made.
- An operation that is done may be deleted so that it is no
longer listed as part of the Operation collection.
- ListOperations returns all pending operations, but not
completed operations.
- Operations are created by service DatastoreAdmin, but are
accessed via service google.longrunning.Operations.
"""

_client: DatastoreAdminClient
Expand Down
88 changes: 42 additions & 46 deletions google/cloud/datastore_admin_v1/services/datastore_admin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,58 +100,54 @@ class DatastoreAdminClient(metaclass=DatastoreAdminClientMeta):
"""Google Cloud Datastore Admin API
The Datastore Admin API provides several admin services for
Cloud Datastore.
## Concepts
Project, namespace, kind, and entity as defined in the Google
Cloud Datastore API.
Concepts: Project, namespace, kind, and entity as defined in the
Google Cloud Datastore API.
Operation: An Operation represents work being performed in the
background.
EntityFilter: Allows specifying a subset of entities in a
project. This is specified as a combination of kinds and
namespaces (either or both of which may be all).
## Services
# Export/Import
The Export/Import service provides the ability to copy all or a
subset of entities to/from Google Cloud Storage.
Exported data may be imported into Cloud Datastore for any
Google Cloud Platform project. It is not restricted to the
export source project. It is possible to export from one project
and then import into another.
Exported data can also be loaded into Google BigQuery for
analysis.
Exports and imports are performed asynchronously. An Operation
resource is created for each export/import. The state (including
any errors encountered) of the export/import may be queried via
the Operation resource.
# Index
The index service manages Cloud Datastore composite indexes.
Index creation and deletion are performed asynchronously. An
Operation resource is created for each such asynchronous
operation. The state of the operation (including any errors
encountered) may be queried via the Operation resource.
# Operation
The Operations collection provides a record of actions performed
for the specified project (including any operations in
progress). Operations are not created directly but through calls
on other collections or resources.
An operation that is not yet done may be cancelled. The request
to cancel is asynchronous and the operation may continue to run
for some time after the request to cancel is made.
An operation that is done may be deleted so that it is no longer
listed as part of the Operation collection.
ListOperations returns all pending operations, but not completed
operations.
Operations are created by service DatastoreAdmin,
but are accessed via service google.longrunning.Operations.
Export/Import Service:
- The Export/Import service provides the ability to copy all or
a subset of entities to/from Google Cloud Storage.
- Exported data may be imported into Cloud Datastore for any
Google Cloud Platform project. It is not restricted to the
export source project. It is possible to export from one
project and then import into another.
- Exported data can also be loaded into Google BigQuery for
analysis.
- Exports and imports are performed asynchronously. An Operation
resource is created for each export/import. The state
(including any errors encountered) of the export/import may be
queried via the Operation resource.
Index Service:
- The index service manages Cloud Datastore composite indexes.
- Index creation and deletion are performed asynchronously. An
Operation resource is created for each such asynchronous
operation. The state of the operation (including any errors
encountered) may be queried via the Operation resource.
Operation Service:
- The Operations collection provides a record of actions
performed for the specified project (including any operations
in progress). Operations are not created directly but through
calls on other collections or resources.
- An operation that is not yet done may be cancelled. The
request to cancel is asynchronous and the operation may
continue to run for some time after the request to cancel is
made.
- An operation that is done may be deleted so that it is no
longer listed as part of the Operation collection.
- ListOperations returns all pending operations, but not
completed operations.
- Operations are created by service DatastoreAdmin, but are
accessed via service google.longrunning.Operations.
"""

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,61 +38,54 @@ class DatastoreAdminGrpcTransport(DatastoreAdminTransport):
Google Cloud Datastore Admin API
The Datastore Admin API provides several admin services for
Cloud Datastore.
-----------------------------------------------------------------------------
## Concepts
Project, namespace, kind, and entity as defined in the Google
Cloud Datastore API.
Concepts: Project, namespace, kind, and entity as defined in the
Google Cloud Datastore API.
Operation: An Operation represents work being performed in the
background.
EntityFilter: Allows specifying a subset of entities in a
project. This is specified as a combination of kinds and
namespaces (either or both of which may be all).
-----------------------------------------------------------------------------
## Services
# Export/Import
The Export/Import service provides the ability to copy all or a
subset of entities to/from Google Cloud Storage.
Exported data may be imported into Cloud Datastore for any
Google Cloud Platform project. It is not restricted to the
export source project. It is possible to export from one project
and then import into another.
Exported data can also be loaded into Google BigQuery for
analysis.
Exports and imports are performed asynchronously. An Operation
resource is created for each export/import. The state (including
any errors encountered) of the export/import may be queried via
the Operation resource.
# Index
The index service manages Cloud Datastore composite indexes.
Index creation and deletion are performed asynchronously. An
Operation resource is created for each such asynchronous
operation. The state of the operation (including any errors
encountered) may be queried via the Operation resource.
# Operation
The Operations collection provides a record of actions performed
for the specified project (including any operations in
progress). Operations are not created directly but through calls
on other collections or resources.
An operation that is not yet done may be cancelled. The request
to cancel is asynchronous and the operation may continue to run
for some time after the request to cancel is made.
An operation that is done may be deleted so that it is no longer
listed as part of the Operation collection.
ListOperations returns all pending operations, but not completed
operations.
Operations are created by service DatastoreAdmin,
but are accessed via service google.longrunning.Operations.
Export/Import Service:
- The Export/Import service provides the ability to copy all or
a subset of entities to/from Google Cloud Storage.
- Exported data may be imported into Cloud Datastore for any
Google Cloud Platform project. It is not restricted to the
export source project. It is possible to export from one
project and then import into another.
- Exported data can also be loaded into Google BigQuery for
analysis.
- Exports and imports are performed asynchronously. An Operation
resource is created for each export/import. The state
(including any errors encountered) of the export/import may be
queried via the Operation resource.
Index Service:
- The index service manages Cloud Datastore composite indexes.
- Index creation and deletion are performed asynchronously. An
Operation resource is created for each such asynchronous
operation. The state of the operation (including any errors
encountered) may be queried via the Operation resource.
Operation Service:
- The Operations collection provides a record of actions
performed for the specified project (including any operations
in progress). Operations are not created directly but through
calls on other collections or resources.
- An operation that is not yet done may be cancelled. The
request to cancel is asynchronous and the operation may
continue to run for some time after the request to cancel is
made.
- An operation that is done may be deleted so that it is no
longer listed as part of the Operation collection.
- ListOperations returns all pending operations, but not
completed operations.
- Operations are created by service DatastoreAdmin, but are
accessed via service google.longrunning.Operations.
This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Expand Down
Loading

0 comments on commit cfcd0c2

Please sign in to comment.