@@ -8,39 +8,13 @@ Getting started with Cloud Datastore
88Creating a project
99------------------
1010
11- * ** Create a project**
11+ .. include :: _components/creating-a- project.rst
1212
13- Start off by visiting https://cloud.google.com/console
14- and click on the big red button
15- that says "Create Project".
16-
17- * **Choose a name **
18-
19- In the box that says "name",
20- choose something friendly.
21- This is going to be the *human-readable * name
22- for your project.
23-
24- * **Choose an ID **
25-
26- In the box that says "ID",
27- choose something unique
28- (hyphens are OK).
29- I typically choose a project name
30- that starts with my initials,
31- then a hyphen,
32- then a unique identifier for the work I'm doing.
33- For this example,
34- you might choose ``<initials>-quickstart ``.
35-
36- Then click OK
37- (give it a second to create your project).
38-
39- Enable the Cloud Datastore API
40- ------------------------------
13+ Enabling the API
14+ ----------------
4115
4216Now that you created a project,
43- you need to *turn on * the Cloud Datastore API.
17+ you need to ** turn on * * the Cloud Datastore API.
4418This is sort of like telling Google
4519which services you intend to use for this project.
4620
@@ -53,54 +27,10 @@ which services you intend to use for this project.
5327 on the right side
5428 to turn it into an "On" button.
5529
56- Enable a "Service Account"
30+ Enabling a service account
5731--------------------------
5832
59- Now that you have a project
60- that has access to the Cloud Datastore API,
61- we need to make sure we are able to access our data.
62- There are many ways to authenticate,
63- but we're going to use a Service Account for today.
64-
65- A *Service Account * is sort of like a username and password
66- (like when you're connecting to your MySQL database),
67- except the username is automatically generated
68- (and is an e-mail address)
69- and the password is actually a private key file.
70-
71- To create a Service Account:
72-
73- * **Click on Credentials **
74- under the "APIs & Auth" section.
75-
76- * **Click the big red button **
77- that says "Create New Client ID"
78- under the OAuth section
79- (the first one).
80-
81- * **Choose "Service Account" **
82- and click the blue button
83- that says "Create Client ID".
84-
85- * **This will automatically **
86- download a private key file.
87- **Do not lost this. **
88-
89- * **Rename your key ** something shorter.
90- I like to name the key ``<project name>.key ``.
91-
92- This is like your password for the account.
93-
94- * **Copy the long weird e-mail address **
95- labeled "E-mail address"
96- in the information section
97- for the Service Account
98- you just created.
99-
100- This is like your username for the account.
101-
102- OK. That's it!
103- Time to start doing things with your Cloud Datastore project.
33+ .. include :: _components/enabling-a-service-account.rst
10434
10535Add some data to your dataset
10636-----------------------------
0 commit comments