You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[`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`.
44
49
45
50
Google Cloud Datastore
46
51
----------------------
47
52
48
-
[Google Cloud Datastore][cloud-datastore] is a fully managed, schemaless database for
49
-
storing non-relational data. Cloud Datastore automatically scales with
50
-
your users and supports ACID transactions, high availability of reads and
51
-
writes, strong consistency for reads and ancestor queries, and eventual
52
-
consistency for all other queries.
53
+
-[API Documentation][datastore-api]
54
+
-[Official Documentation][cloud-datastore-docs]
55
+
56
+
*Follow the [activation instructions][cloud-datastore-activation] to use the Google Cloud Datastore API with your project.*
53
57
54
-
See the [Google Cloud Datastore docs][cloud-datastore-activation] for more details on how to activate
55
-
Cloud Datastore for your project.
58
+
#### Preview
56
59
57
-
See the ``gcloud-java`` API [datastore documentation][datastore-api] to learn how to interact
58
-
with the Cloud Datastore using this Client Library.
60
+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
[Google Cloud Storage][cloud-storage] is a durable and highly available
94
-
object storage service. Google Cloud Storage is almost infinitely scalable
95
-
and guarantees consistency: when a write succeeds, the latest copy of the
96
-
object will be returned to any GET, globally.
94
+
-[API Documentation][storage-api]
95
+
-[Official Documentation][cloud-storage-docs]
97
96
98
-
See the [Google Cloud Storage docs][cloud-storage-activation] for more details on how to activate
99
-
Cloud Storage for your project.
97
+
*Follow the [activation instructions][cloud-storage-activation] to use the Google Cloud Storage API with your project.*
100
98
101
-
See the ``gcloud-java`` API [storage documentation][storage-api] to learn how to interact
102
-
with the Cloud Storage using this Client Library.
99
+
#### Preview
100
+
101
+
Here is a code snippet showing a simple usage example from within Compute/App Engine. Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
Java 7 or above is required for using this client.
132
+
130
133
Testing
131
134
-------
132
135
133
136
This library provides tools to help write tests for code that uses gcloud-java services.
134
137
135
138
See [TESTING] to read more about using our testing helpers.
136
139
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
-
151
140
Versioning
152
141
----------
153
142
@@ -157,6 +146,15 @@ It is currently in major version zero (``0.y.z``), which means that anything
157
146
may change at any time and the public API should not be considered
158
147
stable.
159
148
149
+
Contributing
150
+
------------
151
+
152
+
Contributions to this library are always welcome and highly encouraged.
153
+
154
+
See [CONTRIBUTING] for more information on how to get started.
155
+
156
+
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.
> Note: This client is a work-in-progress, and may occasionally
14
14
> make backwards-incompatible changes.
@@ -24,6 +24,18 @@ Add this to your pom.xml file
24
24
</dependency>
25
25
```
26
26
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 base directory's README.
35
+
36
+
About Google Cloud Datastore
37
+
----------------------------
38
+
27
39
Google [Cloud Datastore][cloud-datastore] is a fully managed, schemaless database for
28
40
storing non-relational data. Cloud Datastore automatically scales with
29
41
your users and supports ACID transactions, high availability of reads and
@@ -36,6 +48,8 @@ Cloud Datastore for your project.
36
48
See the ``gcloud-java`` API [datastore documentation][datastore-api] to learn how to interact
37
49
with the Cloud Datastore using this Client Library.
38
50
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) and a project ID if running this snippet elsewhere.
0 commit comments