Skip to content

Commit 4c0c95a

Browse files
committed
Adding copyright and README and CONTRIBUTIONS files.
Former-commit-id: fa60bc9
1 parent f1f529c commit 4c0c95a

69 files changed

Lines changed: 1124 additions & 34 deletions

Some content is hidden

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

.gitignore

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
11
.gitignore
22

3-
*.py[cod]
4-
*.sw[op]
5-
6-
# C extensions
7-
*.so
8-
93
# Packages
10-
*.egg
11-
*.egg-info
124
dist
135
build
14-
eggs
15-
parts
166
bin
177
var
188
sdist
19-
develop-eggs
20-
.installed.cfg
21-
lib
22-
lib64
23-
__pycache__
24-
25-
# Installer logs
26-
pip-log.txt
9+
target
2710

2811
# Unit test / coverage reports
2912
.coverage
@@ -41,20 +24,10 @@ nosetests.xml
4124
.idea
4225
.settings
4326
.DS_Store
44-
target
4527

4628
# Built documentation
47-
docs/_build
48-
49-
# Virtual environment
50-
env/
51-
coverage.xml
52-
53-
# Regression test environment variables.
54-
regression/local_test_setup
29+
docs/
5530

56-
# Make sure a generated file isn't accidentally committed.
57-
pylintrc_reduced
5831

5932
# Wheel directory used in Travis builds.
60-
gcloud-python-wheels/
33+
gcloud-java-wheels/

README.md

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,63 @@
1-
git-demo
2-
========
1+
Google Cloud for Java
2+
=====================
3+
4+
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
5+
6+
Java idiomatic client for Google Cloud Platform services. Supported APIs include:
7+
8+
* Google Cloud Datastore
9+
10+
11+
> Note: This package is a work-in-progress, and may occasionally
12+
> make backwards-incompatible changes.
13+
14+
Documentation and examples are available [here](https://github.com/GoogleCloudePlatform/gcloud-java/gh-pages/docs).
15+
16+
## Google Cloud Datastore
17+
18+
[Google Cloud Datastore][cloud-datastore] ([docs][cloud-datastore-docs]) is a fully
19+
managed, schemaless database for storing non-relational data. Cloud Datastore
20+
automatically scales with your users and supports ACID transactions, high availability
21+
of reads and writes, strong consistency for reads and ancestor queries, and eventual
22+
consistency for all other queries.
23+
24+
Follow the [activation instructions][cloud-datastore-activation] to use the Google
25+
Cloud Datastore API with your project.
26+
27+
import com.google.gcloud.datastore.DatastoreService;
28+
import com.google.gcloud.datastore.DatastoreServiceFactory;
29+
import com.google.gcloud.datastore.DatastoreServiceOptions;
30+
import com.google.gcloud.datastore.Entity;
31+
import com.google.gcloud.datastore.Key;
32+
import com.google.gcloud.datastore.KeyFactory;
33+
34+
DatastoreServiceOptions options = DatastoreServiceOptions.builder().dataset("...").build();
35+
DatastoreService datastore = DatastoreServiceFactory.getDefault(options);
36+
KeyFactory keyFactory = new KeyFactory(datastore).kind("...");
37+
Key key = keyFactory.newKey(keyName);
38+
Entity entity = datastore.get(key);
39+
if (entity == null) {
40+
entity = Entity.builder(key)
41+
.set("name", "John Do")
42+
.set("age", 30)
43+
.set("updated", false)
44+
.build();
45+
datastore.put(entity);
46+
}
47+
48+
## Contributing
49+
50+
Contributions are welcome. Please, see the
51+
[CONTRIBUTING](https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/CONTRIBUTING.md)
52+
document for details.
53+
54+
[cloud-datastore]: https://cloud.google.com/datastore/
55+
[cloud-datastore-docs]: https://cloud.google.com/datastore/docs
56+
[cloud-datastore-activation]: https://cloud.google.com/datastore/docs/activate
57+
58+
[cloud-pubsub]: https://cloud.google.com/pubsub/
59+
[cloud-pubsub-docs]: https://cloud.google.com/pubsub/docs
60+
61+
[cloud-storage]: https://cloud.google.com/storage/
62+
[cloud-storage-docs]: https://cloud.google.com/storage/docs/overview
63+
[cloud-storage-create-bucket]: https://cloud.google.com/storage/docs/cloud-console#_creatingbuckets

src/main/java/com/google/gcloud/AuthConfig.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud;
218

319
import static com.google.common.base.Preconditions.checkNotNull;

src/main/java/com/google/gcloud/ExceptionHandler.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud;
218

319
import static com.google.common.base.MoreObjects.firstNonNull;

src/main/java/com/google/gcloud/RetryHelper.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud;
218

319
import static com.google.common.base.Preconditions.checkNotNull;

src/main/java/com/google/gcloud/RetryParams.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud;
218

319
import static com.google.common.base.Preconditions.checkArgument;

src/main/java/com/google/gcloud/ServiceOptions.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud;
218

319

src/main/java/com/google/gcloud/datastore/BaseEntity.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud.datastore;
218

319
import static com.google.gcloud.datastore.BlobValue.of;

src/main/java/com/google/gcloud/datastore/BaseKey.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud.datastore;
218

319
import static com.google.gcloud.datastore.Validator.validateDataset;

src/main/java/com/google/gcloud/datastore/Batch.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.google.gcloud.datastore;
218

319
/**

0 commit comments

Comments
 (0)