Skip to content

Commit e868ca3

Browse files
committed
Update README.md
Removing duplicated description and project ID from code snippets.
1 parent 41a2a7a commit e868ca3

1 file changed

Lines changed: 12 additions & 21 deletions

File tree

README.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,14 @@ There are multiple ways to authenticate to use Google Cloud services.
5050
Google Cloud Datastore
5151
----------------------
5252

53-
[Google Cloud Datastore][cloud-datastore] is a fully managed, schemaless database for
54-
storing non-relational data. Cloud Datastore automatically scales with
55-
your users and supports ACID transactions, high availability of reads and
56-
writes, strong consistency for reads and ancestor queries, and eventual
57-
consistency for all other queries.
53+
- [API Documentation][datastore-api]
54+
- [Official Documentation][cloud-datastore-docs]
5855

59-
See the [Google Cloud Datastore docs][cloud-datastore-activation] for more details on how to activate
60-
Cloud Datastore for your project.
56+
*Follow the [activation instructions][cloud-datastore-activation] to use the Google Cloud Datastore API with your project.*
6157

62-
See the ``gcloud-java`` API [datastore documentation][datastore-api] to learn how to interact
63-
with the Cloud Datastore using this Client Library.
58+
#### Preview
6459

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.
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.
6661

6762
```java
6863
import com.google.gcloud.datastore.Datastore;
@@ -73,7 +68,7 @@ import com.google.gcloud.datastore.Entity;
7368
import com.google.gcloud.datastore.Key;
7469
import com.google.gcloud.datastore.KeyFactory;
7570

76-
DatastoreOptions options = DatastoreOptions.builder().projectId(PROJECT_ID).build();
71+
DatastoreOptions options = DatastoreOptions.builder().build();
7772
Datastore datastore = DatastoreFactory.instance().get(options);
7873
KeyFactory keyFactory = datastore.newKeyFactory().kind(KIND);
7974
Key key = keyFactory.newKey(keyName);
@@ -97,18 +92,14 @@ if (entity == null) {
9792
Google Cloud Storage
9893
----------------------
9994

100-
[Google Cloud Storage][cloud-storage] is a durable and highly available
101-
object storage service. Google Cloud Storage is almost infinitely scalable
102-
and guarantees consistency: when a write succeeds, the latest copy of the
103-
object will be returned to any GET, globally.
95+
- [API Documentation][storage-api]
96+
- [Official Documentation][cloud-storage-docs]
10497

105-
See the [Google Cloud Storage docs][cloud-storage-activation] for more details on how to activate
106-
Cloud Storage for your project.
98+
*Follow the [activation instructions][cloud-storage-activation] to use the Google Cloud Storage API with your project.*
10799

108-
See the ``gcloud-java`` API [storage documentation][storage-api] to learn how to interact
109-
with the Cloud Storage using this Client Library.
100+
#### Preview
110101

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.
102+
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.
112103

113104
```java
114105
import static java.nio.charset.StandardCharsets.UTF_8;
@@ -121,7 +112,7 @@ import com.google.gcloud.storage.StorageOptions;
121112
import java.nio.ByteBuffer;
122113
import java.nio.channels.WritableByteChannel;
123114

124-
StorageOptions options = StorageOptions.builder().projectId(PROJECT_ID).build();
115+
StorageOptions options = StorageOptions.builder().build();
125116
Storage storage = StorageFactory.instance().get(options);
126117
Blob blob = new Blob(storage, "bucket", "blob_name");
127118
if (!blob.exists()) {

0 commit comments

Comments
 (0)