Skip to content

Commit 6bef7c2

Browse files
committed
Merge pull request #93 from pcostell/v1beta3
Upgrade to v1beta3.
2 parents 20d550d + b3fe4d4 commit 6bef7c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3442
-5186
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
*.p12
2-
3-
ruby/**/*/datastore.yml
4-
Gemfile.lock
2+
*.pyc

README.md

Lines changed: 18 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -9,62 +9,36 @@ The API is deliberately low-level to map to the underlying Datastore RPC model a
99

1010
This repository contains the source code of samples and developer
1111
resources related to Google Cloud Datastore:
12-
- [Service and protocol buffers messages definition][6]
13-
- [Python protocol buffers client library and samples][9]
14-
- [Java protocol buffers Java client library and samples][10]
15-
- [Node.js samples][11]
12+
13+
- [RPC API reference][6]
14+
- [Python proto client library and samples][9]
15+
- [Java proto Java client library and samples][10]
1616

1717
## Samples
1818

19-
### JSON
20-
- [Node.js][3], [todo.js][24]
21-
- [Ruby][21], [todos.rb][25]
22-
- [[Add yours here][16]]
19+
### Proto
2320

24-
### Protobuf
2521
- [Python][1]
2622
- [Java][2]
2723
- [[Add yours here][16]]
2824

2925
## Client libraries
3026

31-
### JSON
32-
33-
- [Node.js][17]:
34-
35-
```
36-
npm install googleapis
37-
```
38-
39-
- [Ruby (google-api-client)][23]
40-
41-
```
42-
gem install google-api-client
43-
```
44-
45-
- [Ruby (ActiveDatastore)][22]
46-
47-
```
48-
gem install active_datastore
49-
```
50-
51-
- [Dart][26]
52-
- [[Add yours here][16]]
27+
### Proto
5328

54-
### Protobuf
5529
- [Python][18] ([readthedocs][19]):
5630

5731
```
58-
pip install googledatastore
32+
pip install --pre googledatastore
5933
```
6034

61-
- Maven/Java ([javadoc][20]):
35+
- Maven/Java:
6236

6337
```
6438
<dependency>
65-
<groupId>com.google.apis</groupId>
66-
<artifactId>google-api-services-datastore-protobuf</artifactId>
67-
<version>v1beta2-rev1-4.0.0</version>
39+
<groupId>com.google.cloud.datastore</groupId>
40+
<artifactId>datastore-v1beta3-proto-client</artifactId>
41+
<version>1.0.0-beta</version>
6842
</dependency>
6943
```
7044

@@ -73,16 +47,16 @@ pip install googledatastore
7347
## Documentation
7448

7549
- [Getting Started][4]
76-
- [JSON API reference][5]
77-
- [Protocol Buffers API reference][6]
50+
- [JSON/REST API reference][5]
51+
- [RPC API reference][6]
7852

7953
## Filing Issues
8054

8155
1. For production issues and support, see [Google Cloud Platform Support packages][13].
8256
1. For bugs or feature requests, please first look at [existing issues][14].
8357
1. When applicable, create a new [report][15].
8458
1. For bugs, detail the steps to reproduce the problem and the affected version number.
85-
1. For feature requests, articulate the usecase you are trying solve and describe current workaround.
59+
1. For feature requests, articulate the use case you are trying solve and describe current workaround.
8660
1. Make sure to annotate the issues with the appropriate labels.
8761

8862
## Contributing changes
@@ -94,27 +68,20 @@ pip install googledatastore
9468
- See [LICENSE][8]
9569

9670
[1]: python/demos/trivial/adams.py
97-
[2]: java/demos/src/main/java/com/google/api/services/datastore/demos/trivial/Adams.java
98-
[3]: https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/master/nodejs/demos/trivial/adams.js
99-
[4]: https://developers.google.com/datastore
100-
[5]: https://developers.google.com/datastore/docs/apis/v1beta2/
101-
[6]: https://developers.google.com/datastore/docs/apis/v1beta2/proto
71+
[2]: java/demos/src/main/java/com/google/datastore/v1beta3/demos/trivial/Adams.java
72+
[4]: https://cloud.google.com/datastore
73+
[5]: https://cloud.google.com/datastore/reference/rest
74+
[6]: https://cloud.google.com/datastore/reference/rpc
10275
[7]: CONTRIB.md
10376
[8]: LICENSE
10477
[9]: python
10578
[10]: java
106-
[11]: nodejs
10779
[13]: https://cloud.google.com/support/packages
10880
[14]: https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues
10981
[15]: https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/new
11082
[16]: https://github.com/GoogleCloudPlatform/google-cloud-datastore/fork
11183
[17]: https://npmjs.org/package/googleapis
11284
[18]: https://pypi.python.org/pypi/googledatastore
11385
[19]: http://googledatastore.readthedocs.org
114-
[20]: https://developers.google.com/datastore/docs/apis/javadoc/
115-
[21]: ruby/demos/trivial/adams.rb
11686
[22]: https://github.com/sudhirj/active_datastore
11787
[23]: https://rubygems.org/gems/google-api-client
118-
[24]: nodejs/demos/todos/todo.js
119-
[25]: ruby/demos/todos/todos.rb
120-
[26]: https://github.com/dart-google-apis/dart_datastore_v1beta1_api_client

RELEASE_NOTES.md

Lines changed: 97 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,130 @@
1-
RELEASE NOTES
2-
=============
1+
# Release Notes
32

4-
v1beta2-rev1-4.0.0
5-
------------------
6-
- Switch to version 3.0.0b1 of protocol buffer compiler.
3+
Starting with the v1beta3 release:
74

8-
v1beta2-rev1-3.0.4
9-
------------------
10-
- Make the dependency requirements in the Python client more permissive.
5+
- Release notes for the API and `gcd` tool can be found at:
6+
<https://cloud.google.com.com/datastore/docs/release-notes>
7+
- Release notes are grouped by library.
8+
9+
## Java Client
10+
11+
### java-v1beta3-1.0.0-beta
12+
13+
- Support for [Google Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials).
14+
- Fixes:
15+
https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/37
16+
- Environment variable `DATASTORE_DATASET_ID` is now `DATASTORE_PROJECT_ID`.
17+
- Environment variable `DATASTORE_HOST` is now `DATASTORE_EMULATOR_HOST` and
18+
its value no longer includes the URL scheme. For example:
19+
20+
`DATASTORE_EMULATOR_HOST=localhost:8080`
21+
22+
instead of:
23+
24+
`DATASTORE_HOST=http://localhost:8080`
25+
- `DatastoreHelper.getOptionsFromEnv()` now
26+
supports automatic detection of the project ID when running on
27+
Compute Engine.
28+
- The client and generated proto classes are now in the
29+
`com.google.datastore.v1beta3` Java package.
30+
- The Maven artifacts are now found under groupId `com.google.cloud.datastore`.
31+
The artifactIds are:
32+
- `datastore-v1beta3-proto-client-parent`
33+
- `datastore-v1beta3-proto-client`
34+
- `datastore-v1beta3-protos`
35+
- The versionIds no longer include the API version (e.g. `v1beta3`)
36+
since it is now part of the artifactId.
37+
- Updated `LocalDevelopmentDatastore` so it is in sync with the `gcd` tool.
38+
- Fixes:
39+
<https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/53>
40+
41+
## Python Client
42+
43+
### python-5.0.0-beta (v1beta3)
44+
45+
- Support for [Google Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials).
46+
- Fixes:
47+
<https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/37>
48+
- Environment variable `DATASTORE_DATASET_ID` is now `DATASTORE_PROJECT_ID`.
49+
- Environment variable `DATASTORE_HOST` is now `DATASTORE_EMULATOR_HOST` and
50+
its value no longer includes the URL scheme. For example:
51+
52+
`DATASTORE_EMULATOR_HOST=localhost:8080`
53+
54+
instead of:
55+
56+
`DATASTORE_HOST=http://localhost:8080`
57+
- `helper.set_value()` now supports `long` values.
58+
- Fixes:
59+
<https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/49>
60+
61+
## Other
62+
63+
### v1beta3
64+
65+
- Remove v1beta2-based Ruby and Node.js demos.
66+
- The protocol buffer definition of the API is now published at
67+
<https://github.com/google/googleapis>.
68+
69+
## Pre-v1beta3 Releases
70+
71+
### v1beta2-rev1-3.0.2
1172

12-
v1beta2-rev1-3.0.2
13-
------------------
1473
- Fix QuerySplitter to support small queries that do not need to be split.
1574

16-
v1beta2-rev1-3.0.0
17-
------------------
75+
### v1beta2-rev1-3.0.0
76+
1877
- Change to QuerySplitter interface.
1978
- This will not affect users of the interface, however is a breaking change for
20-
any implements of the interface. This adds a method that allows specifying
21-
the PartitionId so that namespace queries can be split.
79+
any implementers of the interface. This adds a method that allows
80+
specifying the PartitionId so that namespace queries can be split.
2281
- Modify helper functions in the Python client library to support long integers.
23-
- Fixes: https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/49.
82+
- Fixes:
83+
<https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/49>.
2484
- Check environment variables before creating a Compute Engine credential in Python and Java client libraries.
25-
- Fixes: https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/37.
85+
- Fixes:
86+
<https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/37>.
2687
- Bring LocalDevelopmentDatastore into sync with the current `gcd` command line tool options.
2788
- Renamed `DatastoreHelper.getOptionsfromEnv()` to `DatastoreHelper.getOptionsFromEnv()`.
2889
- Assign a PEP 440-compatible identifier to the Python client library package.
2990

30-
v1beta2-rev1-2.1.1
31-
------------------
91+
### v1beta2-rev1-2.1.1
3292
- Update to latest App Engine SDK version.
33-
- Fixes: https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/35.
93+
- Fixes:
94+
<https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/35>.
95+
96+
### v1beta2-rev1-2.1.0
3497

35-
v1beta2-rev1-2.1.0
36-
------------------
3798
- Make Python client library thread-safe.
3899
- Fix propagation of `indexed` param to list values in Python helper.
39100
- Accept an optional HttpRequestInitializer in DatastoreOptions (Java).
40101
- Demonstrate JWT service account support in Node.js demo app.
41102

42-
v1beta2-rev1-2.0.0
43-
------------------
103+
### v1beta2-rev1-2.0.0
104+
44105
- API changes:
45106
- `BlindWrite` method merged into `Commit`.
46107
- Added `list_value` to `Value` and changed `value` to a non-repeated field in `Property`.
47-
- In JSON API, string constants are now uppercase and underscore-separated instead of camel-cased (e.g. `LESS_THAN_OR_EQUAL` instead of `lessThanOrEqual`).
108+
- In JSON API, string constants are now uppercase and underscore-separated
109+
instead of camel-cased (e.g. `LESS_THAN_OR_EQUAL` instead of
110+
`lessThanOrEqual`).
48111
- GQL changes:
49112
- New synthetic literals: `BLOB`, `BLOBKEY`, `DATETIME`, `KEY`.
50113
- Support for `IS NULL`.
51114
- Fixed partition ID handling for binding arguments.
52115
- Documentation changes:
53116
- All documentation has been updated to the v1beta2 API.
54-
- Getting started guide for Node.js now uses v0.4.5 of google-api-nodejs-client.
55-
- Fixed partition ID handling for query requests that include an explicit partition ID.
117+
- Getting started guide for Node.js now uses v0.4.5 of
118+
google-api-nodejs-client.
119+
- Fixed partition ID handling for query requests that include an explicit
120+
partition ID.
56121
- Fixed scopes in discovery document.
57-
- https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/9
122+
- <https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/9>
58123
- Fixed an issue where command line tool didn't work for some locales.
59-
- https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/12
124+
- <https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/12>
125+
126+
### v1beta1-rev2-1.0.1
60127

61-
v1beta1-rev2-1.0.1
62-
------------------
63128
- GQL support.
64129
- Metadata query support.
65130
- Command line tool improvements.
@@ -71,6 +136,6 @@ v1beta1-rev2-1.0.1
71136
- Ruby samples.
72137
- Java helper for query splitting.
73138

74-
v1beta1-rev1-1.0.0
75-
------------------
139+
### v1beta1-rev1-1.0.0
140+
76141
- Initial release.

java/datastore-shade/pom.xml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)