Skip to content

Commit 68408bf

Browse files
author
Ajay Kannan
committed
Standardize readme files
1 parent 2ffd822 commit 68408bf

5 files changed

Lines changed: 100 additions & 64 deletions

File tree

README.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ Java idiomatic client for [Google Cloud Platform][cloud-platform] services.
99

1010
- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
1111
- [API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs)
12-
- [Examples] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/examples/package-summary.html)
1312

1413
This client supports the following Google Cloud Platform services:
1514

1615
- [Google Cloud Datastore] (#google-cloud-datastore)
1716
- [Google Cloud Storage] (#google-cloud-storage)
1817

19-
<!---
20-
- [Google Cloud Storage] (https://cloud.google.com/storage/)
21-
--->
22-
2318
> Note: This client is a work-in-progress, and may occasionally
2419
> make backwards-incompatible changes.
2520
@@ -34,13 +29,23 @@ Add this to your pom.xml file
3429
</dependency>
3530
```
3631

37-
<!---
3832
Example Applications
3933
--------------------
4034

41-
- `java-datastore-sample`_ - A sample using Cloud Datastore
42-
.. _java-datastore-sample: https://github.com/GoogleCloudPlatform/java-datastore-sample
43-
--->
35+
- [`DatastoreExample`](https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-examples/src/main/java/com/google/gcloud/examples/DatastoreExample.java) - A simple command line interface for the Cloud Datastore
36+
- Read more about using this application on the [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/DatastoreExample.html).
37+
- [`StorageExample`](https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-examples/src/main/java/com/google/gcloud/examples/StorageExample.java) - A simple command line interface providing some of Cloud Storage's functionality
38+
- Read more about using this application on the [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/StorageExample.html).
39+
40+
Authentication
41+
--------------
42+
43+
There are multiple ways to authenticate to use Google Cloud services.
44+
45+
1. When using `gcloud-java` libraries from within Compute/App Engine, no additional authentication steps are necessary.
46+
2. When using `gcloud-java` libraries elsewhere, there are two options:
47+
* [Generate a JSON service account key](https://cloud.google.com/storage/docs/authentication?hl=en#service_accounts). Supply a path to the downloaded JSON credentials file when building the options supplied to datastore/storage constructor.
48+
* If running locally for development/testing, you can use use [Google Cloud SDK](https://cloud.google.com/sdk/?hl=en). To use the SDK authentication, [download the SDK](https://cloud.google.com/sdk/?hl=en) if you haven't already. Then login using the SDK (`gcloud auth login` in command line), and set your current project using `gcloud config set project PROJECT_ID`.
4449

4550
Google Cloud Datastore
4651
----------------------
@@ -57,6 +62,8 @@ Cloud Datastore for your project.
5762
See the ``gcloud-java`` API [datastore documentation][datastore-api] to learn how to interact
5863
with the Cloud Datastore using this Client Library.
5964

65+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) if running this snippet elsewhere.
66+
6067
```java
6168
import com.google.gcloud.datastore.Datastore;
6269
import com.google.gcloud.datastore.DatastoreFactory;
@@ -101,6 +108,8 @@ Cloud Storage for your project.
101108
See the ``gcloud-java`` API [storage documentation][storage-api] to learn how to interact
102109
with the Cloud Storage using this Client Library.
103110

111+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) if running this snippet elsewhere.
112+
104113
```java
105114
import static java.nio.charset.StandardCharsets.UTF_8;
106115

@@ -127,27 +136,18 @@ if (!blob.exists()) {
127136
}
128137
```
129138

139+
Java Versions
140+
-------------
141+
142+
Java 7 or above is required for using this client.
143+
130144
Testing
131145
-------
132146

133147
This library provides tools to help write tests for code that uses gcloud-java services.
134148

135149
See [TESTING] to read more about using our testing helpers.
136150

137-
Contributing
138-
------------
139-
140-
Contributions to this library are always welcome and highly encouraged.
141-
142-
See [CONTRIBUTING] for more information on how to get started.
143-
144-
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information.
145-
146-
Java Versions
147-
-------------
148-
149-
Java 7 or above is required for using this client.
150-
151151
Versioning
152152
----------
153153

@@ -157,6 +157,15 @@ It is currently in major version zero (``0.y.z``), which means that anything
157157
may change at any time and the public API should not be considered
158158
stable.
159159

160+
Contributing
161+
------------
162+
163+
Contributions to this library are always welcome and highly encouraged.
164+
165+
See [CONTRIBUTING] for more information on how to get started.
166+
167+
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information.
168+
160169
License
161170
-------
162171

gcloud-java-core/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ This module provides common functionality required by service-specific modules o
55

66
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
77
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master)
8+
[![Maven](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-core.svg)](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-core.svg)
89

910
- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
1011
- [API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/package-summary.html)
11-
- [Examples] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/examples/package-summary.html)
1212

1313
Quickstart
1414
----------
@@ -21,18 +21,18 @@ Add this to your pom.xml file
2121
</dependency>
2222
```
2323

24+
Java Versions
25+
-------------
26+
27+
Java 7 or above is required for using this client.
28+
2429
Contributing
2530
------------
2631

2732
Contributions to this library are always welcome and highly encouraged.
2833

2934
See [CONTRIBUTING] for more information on how to get started.
3035

31-
Java Versions
32-
-------------
33-
34-
Java 7 or above is required for using this client.
35-
3636
Versioning
3737
----------
3838

gcloud-java-datastore/README.md

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Java idiomatic client for [Google Cloud Datastore] (https://cloud.google.com/dat
55

66
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
77
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master)
8+
[![Maven](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-datastore.svg)]( https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-datastore.svg)
89

910
- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
1011
- [API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/datastore/package-summary.html)
11-
- [Examples] (http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/DatastoreExample.html)
1212

1313
> Note: This client is a work-in-progress, and may occasionally
1414
> make backwards-incompatible changes.
@@ -24,6 +24,18 @@ Add this to your pom.xml file
2424
</dependency>
2525
```
2626

27+
Example Application
28+
--------------------
29+
[`DatastoreExample`](https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-examples/src/main/java/com/google/gcloud/examples/DatastoreExample.java) is a simple command line interface for the Cloud Datastore. Read more about using the application on the [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/DatastoreExample.html).
30+
31+
Authentication
32+
--------------
33+
34+
See the [Authentication](https://github.com/GoogleCloudPlatform/gcloud-java#authentication) section in the main repository's README.
35+
36+
About Google Cloud Datastore
37+
----------------------------
38+
2739
Google [Cloud Datastore][cloud-datastore] is a fully managed, schemaless database for
2840
storing non-relational data. Cloud Datastore automatically scales with
2941
your users and supports ACID transactions, high availability of reads and
@@ -36,6 +48,8 @@ Cloud Datastore for your project.
3648
See the ``gcloud-java`` API [datastore documentation][datastore-api] to learn how to interact
3749
with the Cloud Datastore using this Client Library.
3850

51+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](https://github.com/GoogleCloudPlatform/gcloud-java#authentication) if running this snippet elsewhere.
52+
3953
```java
4054
import com.google.gcloud.datastore.Datastore;
4155
import com.google.gcloud.datastore.DatastoreFactory;
@@ -66,25 +80,18 @@ if (entity == null) {
6680
}
6781
```
6882

83+
Java Versions
84+
-------------
85+
86+
Java 7 or above is required for using this client.
87+
6988
Testing
7089
-------
7190

7291
This library has tools to help write tests for code that uses the Datastore.
7392

7493
See [TESTING] to read more about testing.
7594

76-
Contributing
77-
------------
78-
79-
Contributions to this library are always welcome and highly encouraged.
80-
81-
See [CONTRIBUTING] for more information on how to get started.
82-
83-
Java Versions
84-
-------------
85-
86-
Java 7 or above is required for using this client.
87-
8895
Versioning
8996
----------
9097

@@ -94,6 +101,13 @@ It is currently in major version zero (``0.y.z``), which means that anything
94101
may change at any time and the public API should not be considered
95102
stable.
96103

104+
Contributing
105+
------------
106+
107+
Contributions to this library are always welcome and highly encouraged.
108+
109+
See [CONTRIBUTING] for more information on how to get started.
110+
97111
License
98112
-------
99113

gcloud-java-examples/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Examples for gcloud-java (Java idiomatic client for [Google Cloud Platform][clou
55

66
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
77
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master)
8+
[![Maven](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-examples.svg)]( https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-examples.svg)
89

910
- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
1011
- [Examples] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/examples/package-summary.html)
@@ -49,13 +50,6 @@ To run examples from your command line:
4950
$mvn exec:java -Dexec.mainClass="com.google.gcloud.examples.StorageExample" -Dexec.args="delete <bucket_name> test.txt"
5051
```
5152

52-
Contributing
53-
------------
54-
55-
Contributions to this library are always welcome and highly encouraged.
56-
57-
See [CONTRIBUTING] for more information on how to get started.
58-
5953
Java Versions
6054
-------------
6155

@@ -70,6 +64,13 @@ It is currently in major version zero (``0.y.z``), which means that anything
7064
may change at any time and the public API should not be considered
7165
stable.
7266

67+
Contributing
68+
------------
69+
70+
Contributions to this library are always welcome and highly encouraged.
71+
72+
See [CONTRIBUTING] for more information on how to get started.
73+
7374
License
7475
-------
7576

gcloud-java-storage/README.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Java idiomatic client for [Google Cloud Storage] (https://cloud.google.com/stora
55

66
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
77
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master)
8+
[![Maven](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-storage.svg)]( https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-storage.svg)
89

910
- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
1011
- [API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/storage/package-summary.html)
11-
- [Examples] (http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/StorageExample.html)
1212

1313
> Note: This client is a work-in-progress, and may occasionally
1414
> make backwards-incompatible changes.
@@ -24,8 +24,18 @@ Add this to your pom.xml file
2424
</dependency>
2525
```
2626

27-
Google Cloud Storage
28-
----------------------
27+
Example Application
28+
-------------------
29+
30+
[`StorageExample`](https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-examples/src/main/java/com/google/gcloud/examples/StorageExample.java) is a simple command line interface that provides some of Cloud Storage's functionality. Read more about using the application on the [`gcloud-java-examples` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/StorageExample.html).
31+
32+
Authentication
33+
--------------
34+
35+
See the [Authentication](https://github.com/GoogleCloudPlatform/gcloud-java#authentication) section in the main repository's README.
36+
37+
About Google Cloud Storage
38+
--------------------------
2939

3040
[Google Cloud Storage][cloud-storage] is a durable and highly available
3141
object storage service. Google Cloud Storage is almost infinitely scalable
@@ -38,6 +48,8 @@ Cloud Storage for your project.
3848
See the ``gcloud-java`` API [storage documentation][storage-api] to learn how to interact
3949
with the Cloud Storage using this Client Library.
4050

51+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](https://github.com/GoogleCloudPlatform/gcloud-java#authentication) if running this snippet elsewhere.
52+
4153
```java
4254
import static java.nio.charset.StandardCharsets.UTF_8;
4355

@@ -64,25 +76,18 @@ if (!blob.exists()) {
6476
}
6577
```
6678

79+
Java Versions
80+
-------------
81+
82+
Java 7 or above is required for using this client.
83+
6784
Testing
6885
-------
6986

7087
This library has tools to help make tests for code using Cloud Storage.
7188

7289
See [TESTING] to read more about testing.
7390

74-
Contributing
75-
------------
76-
77-
Contributions to this library are always welcome and highly encouraged.
78-
79-
See [CONTRIBUTING] for more information on how to get started.
80-
81-
Java Versions
82-
-------------
83-
84-
Java 7 or above is required for using this client.
85-
8691
Versioning
8792
----------
8893

@@ -92,6 +97,13 @@ It is currently in major version zero (``0.y.z``), which means that anything
9297
may change at any time and the public API should not be considered
9398
stable.
9499

100+
Contributing
101+
------------
102+
103+
Contributions to this library are always welcome and highly encouraged.
104+
105+
See [CONTRIBUTING] for more information on how to get started.
106+
95107
License
96108
-------
97109

0 commit comments

Comments
 (0)