Skip to content

Commit 3d3ed76

Browse files
committed
fixes titles to be sentence case
1 parent fa6d68e commit 3d3ed76

File tree

2 files changed

+78
-23
lines changed

2 files changed

+78
-23
lines changed

notebooks/tutorials/storage/Cloud Storage Client Library.ipynb

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Cloud Storage Client Library\n",
7+
"# Cloud Storage client library\n",
88
"\n",
99
"This tutorial shows how to get started with the [Cloud Storage Python client library](https://googleapis.github.io/google-cloud-python/latest/storage/index.html)."
1010
]
@@ -47,6 +47,7 @@
4747
"outputs": [],
4848
"source": [
4949
"client = storage.Client()\n",
50+
"\n",
5051
"print(\"Client created using default project: {}\".format(client.project))"
5152
]
5253
},
@@ -82,12 +83,12 @@
8283
"outputs": [],
8384
"source": [
8485
"# Replace the string below with a unique name for the new bucket\n",
85-
"bucket_name = 'your-new-bucket'\n",
86+
"bucket_name = \"your-new-bucket\"\n",
8687
"\n",
8788
"# Creates the new bucket\n",
8889
"bucket = client.create_bucket(bucket_name)\n",
8990
"\n",
90-
"print('Bucket {} created.'.format(bucket.name))"
91+
"print(\"Bucket {} created.\".format(bucket.name))"
9192
]
9293
},
9394
{
@@ -129,9 +130,9 @@
129130
"source": [
130131
"bucket = client.get_bucket(bucket_name)\n",
131132
"\n",
132-
"print('Bucket name: {}'.format(bucket.name))\n",
133-
"print('Bucket location: {}'.format(bucket.location))\n",
134-
"print('Bucket storage class: {}'.format(bucket.storage_class))"
133+
"print(\"Bucket name: {}\".format(bucket.name))\n",
134+
"print(\"Bucket location: {}\".format(bucket.location))\n",
135+
"print(\"Bucket storage class: {}\".format(bucket.storage_class))"
135136
]
136137
},
137138
{
@@ -155,13 +156,13 @@
155156
},
156157
"outputs": [],
157158
"source": [
158-
"blob_name = 'us-states.txt'\n",
159+
"blob_name = \"us-states.txt\"\n",
159160
"blob = bucket.blob(blob_name)\n",
160161
"\n",
161-
"source_file_name = 'resources/us-states.txt'\n",
162+
"source_file_name = \"resources/us-states.txt\"\n",
162163
"blob.upload_from_filename(source_file_name)\n",
163164
"\n",
164-
"print('File uploaded to {}.'.format(bucket.name))"
165+
"print(\"File uploaded to {}.\".format(bucket.name))"
165166
]
166167
},
167168
{
@@ -203,10 +204,10 @@
203204
"source": [
204205
"blob = bucket.get_blob(blob_name)\n",
205206
"\n",
206-
"print('Name: {}'.format(blob.id))\n",
207-
"print('Size: {} bytes'.format(blob.size))\n",
208-
"print('Content type: {}'.format(blob.content_type))\n",
209-
"print('Public URL: {}'.format(blob.public_url))"
207+
"print(\"Name: {}\".format(blob.id))\n",
208+
"print(\"Size: {} bytes\".format(blob.size))\n",
209+
"print(\"Content type: {}\".format(blob.content_type))\n",
210+
"print(\"Public URL: {}\".format(blob.public_url))"
210211
]
211212
},
212213
{
@@ -224,10 +225,10 @@
224225
},
225226
"outputs": [],
226227
"source": [
227-
"output_file_name = 'resources/downloaded-us-states.txt'\n",
228+
"output_file_name = \"resources/downloaded-us-states.txt\"\n",
228229
"blob.download_to_filename(output_file_name)\n",
229230
"\n",
230-
"print('Downloaded blob {} to {}.'.format(blob.name, output_file_name))"
231+
"print(\"Downloaded blob {} to {}.\".format(blob.name, output_file_name))"
231232
]
232233
},
233234
{
@@ -253,7 +254,7 @@
253254
"blob = client.get_bucket(bucket_name).get_blob(blob_name)\n",
254255
"blob.delete()\n",
255256
"\n",
256-
"print('Blob {} deleted.'.format(blob.name))"
257+
"print(\"Blob {} deleted.\".format(blob.name))"
257258
]
258259
},
259260
{
@@ -274,7 +275,7 @@
274275
"bucket = client.get_bucket(bucket_name)\n",
275276
"bucket.delete()\n",
276277
"\n",
277-
"print('Bucket {} deleted.'.format(bucket.name))"
278+
"print(\"Bucket {} deleted.\".format(bucket.name))"
278279
]
279280
},
280281
{

notebooks/tutorials/storage/Storage Commands.ipynb renamed to notebooks/tutorials/storage/Storage command-line tool.ipynb

Lines changed: 60 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Storage Commands\n",
7+
"# Storage command-line tool\n",
88
"\n",
99
"The [Google Cloud SDK](https://cloud-dot-devsite.googleplex.com/sdk/docs/) provides a set of commands for working with data stored in Cloud Storage. This notebook introduces several `gsutil` commands for interacting with Cloud Storage. Note that shell commands in a notebook must be prepended with a `!`."
1010
]
@@ -49,7 +49,7 @@
4949
"outputs": [],
5050
"source": [
5151
"# Replace the string below with a unique name for the new bucket\n",
52-
"bucket_name = 'your-new-bucket'"
52+
"bucket_name = \"your-new-bucket\""
5353
]
5454
},
5555
{
@@ -86,7 +86,7 @@
8686
"outputs": [],
8787
"source": [
8888
"# Replace the string below with your project ID\n",
89-
"project_id = 'your-project-id'"
89+
"project_id = \"your-project-id\""
9090
]
9191
},
9292
{
@@ -98,6 +98,17 @@
9898
"!gsutil ls -p $project_id"
9999
]
100100
},
101+
{
102+
"cell_type": "markdown",
103+
"metadata": {},
104+
"source": [
105+
"The response should look like the following:\n",
106+
"\n",
107+
"```\n",
108+
"gs://your-new-bucket/\n",
109+
"```"
110+
]
111+
},
101112
{
102113
"cell_type": "markdown",
103114
"metadata": {},
@@ -106,18 +117,33 @@
106117
"\n",
107118
"The next cell shows how to get information on metadata of your Cloud Storage buckets.\n",
108119
"\n",
109-
"To learn more about specific bucket properties, see [Bucket Locations](https://cloud.google.com/storage/docs/locations) and [Storage Classes](https://cloud.google.com/storage/docs/storage-classes)."
120+
"To learn more about specific bucket properties, see [Bucket locations](https://cloud.google.com/storage/docs/locations) and [Storage classes](https://cloud.google.com/storage/docs/storage-classes)."
110121
]
111122
},
112123
{
113124
"cell_type": "code",
114125
"execution_count": null,
115-
"metadata": {},
126+
"metadata": {
127+
"scrolled": true
128+
},
116129
"outputs": [],
117130
"source": [
118131
"!gsutil ls -L -b gs://{bucket_name}/"
119132
]
120133
},
134+
{
135+
"cell_type": "markdown",
136+
"metadata": {},
137+
"source": [
138+
"The response should look like the following:\n",
139+
"```\n",
140+
"gs://your-new-bucket/ :\n",
141+
" Storage class: MULTI_REGIONAL\n",
142+
" Location constraint: US\n",
143+
" ...\n",
144+
"```"
145+
]
146+
},
121147
{
122148
"cell_type": "markdown",
123149
"metadata": {},
@@ -158,13 +184,23 @@
158184
"!gsutil ls -r gs://{bucket_name}/**"
159185
]
160186
},
187+
{
188+
"cell_type": "markdown",
189+
"metadata": {},
190+
"source": [
191+
"The response should look like the following:\n",
192+
"```\n",
193+
"gs://your-new-bucket/us-states.txt\n",
194+
"```"
195+
]
196+
},
161197
{
162198
"cell_type": "markdown",
163199
"metadata": {},
164200
"source": [
165201
"## Get a blob and display metadata\n",
166202
"\n",
167-
"See [documentation](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information about object metadata."
203+
"See [Viewing and editing object metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) for more information about object metadata."
168204
]
169205
},
170206
{
@@ -176,6 +212,24 @@
176212
"!gsutil ls -L gs://{bucket_name}/us-states.txt"
177213
]
178214
},
215+
{
216+
"cell_type": "markdown",
217+
"metadata": {},
218+
"source": [
219+
"The response should look like the following:\n",
220+
"\n",
221+
"```\n",
222+
"gs://your-new-bucket/us-states.txt:\n",
223+
" Creation time: Fri, 08 Feb 2019 05:23:28 GMT\n",
224+
" Update time: Fri, 08 Feb 2019 05:23:28 GMT\n",
225+
" Storage class: STANDARD\n",
226+
" Content-Language: en\n",
227+
" Content-Length: 637\n",
228+
" Content-Type: text/plain\n",
229+
"...\n",
230+
"```"
231+
]
232+
},
179233
{
180234
"cell_type": "markdown",
181235
"metadata": {},

0 commit comments

Comments
 (0)