<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2522455594594723907</id><updated>2024-10-09T19:49:56.748+09:00</updated><category term="翻訳"/><category term="GAE"/><category term="Google App Engine"/><category term="API"/><category term="Datastore"/><category term="Translation"/><category term="翻訳元"/><category term="言語"/><category term="Cloud"/><category term="JUnit"/><category term="ユニットテスト"/><category term="単体テスト"/><category term="データストア"/><category term="Google Cloud SQL"/><category term="SQL"/><category term="MySQL"/><category term="JDBC"/><category term="DB-API"/><category term="サンプルコード"/><category term="HRD"/><category term="High Replication Datastore"/><category term="翻訳ツール"/><category term="テスト"/><category term="停電"/><category term="Master/slabe"/><category term="予定"/><category term="JUnit ユニットテスト"/><category term="Storage"/><category term="テスト駆動開発"/><category term="翻訳先言語"/><category term="自動判別"/><category term="Virtual Keyboard"/><category term="地震"/><category term="変更点"/><category term="新機能"/><category term="Google Cloud Storage"/><category term="リクエストパラメータ"/><category term="非同期データストア呼び出し"/><category term="Diacritize"/><category term="データベース"/><category term="ヘルプ"/><category term="訂正"/><category term="ダイアログボックス"/><category term="新年"/><category term="キー入力"/><category term="タスクキュー"/><category term="トップページ"/><category term="ドラッグアンドドロップ"/><category term="地域"/><category term="大晦日"/><title type='text'>Kaede Translation Tool(Kaede 翻訳ツール)&#39;s blog</title><subtitle type='html'>インストール不要･無料の自製翻訳ツール、Kaede翻訳ツール(Translation Tool)の使い方･変更点などをつづるブログ。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>258</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-7204003887727985122</id><published>2013-07-05T21:01:00.003+09:00</published><updated>2013-07-05T21:01:40.514+09:00</updated><title type='text'>Hello Goolge Cloud Storage - その7</title><content type='html'>Google Cloud Storageのファーストステップを紹介する、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/storage/docs/hellogooglestorage&quot;&gt;Hello Google Cloud Storage&lt;/a&gt;ページを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
このページで紹介されている機能を試すには、&lt;br /&gt;
GSUtilのセットアップとGoogle Cloud Storageサービスの認証が必要です。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/04/hello-goolge-cloud-storage-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/04/hello-goolge-cloud-storage-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/05/hello-goolge-cloud-storage-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/05/hello-goolge-cloud-storage-6.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;
ステップ4:オブジェクトの移動&lt;/h2&gt;
mvコマンドを使うと、あるバケットから他へとオブジェクトを移動することができます。mvコマンドはオブジェクトの名前変更のためにも使うことができます。dogsバケットからcatsバケットへファイルのすべてを移動するには、以下のコマンドを使用します:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil mv gs://dogs/*.jpg gs://cats/&lt;/div&gt;
catsバケット内に移動するpoodle.jpgの名前を変更するには、以下のコマンドを使用します:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil mv gs://cats/poodle.jpg gs://cats/siamese.jpg&lt;/div&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/7204003887727985122/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/07/hello-goolge-cloud-storage-7.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7204003887727985122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7204003887727985122'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/07/hello-goolge-cloud-storage-7.html' title='Hello Goolge Cloud Storage - その7'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-3233170467046438910</id><published>2013-05-31T22:36:00.004+09:00</published><updated>2013-05-31T22:36:51.521+09:00</updated><title type='text'>Hello Goolge Cloud Storage - その6</title><content type='html'>Google Cloud Storageのファーストステップを紹介する、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/storage/docs/hellogooglestorage&quot;&gt;Hello Google Cloud Storage&lt;/a&gt;ページを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
このページで紹介されている機能を試すには、&lt;br /&gt;
GSUtilのセットアップとGoogle Cloud Storageサービスの認証が必要です。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/04/hello-goolge-cloud-storage-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/04/hello-goolge-cloud-storage-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/05/hello-goolge-cloud-storage-5.html&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;
ステップ3:バケットとオブジェクトのリスト&lt;/h2&gt;
次に、生成したバケットとオブジェクトをリスト化します。これを行うには、lsコマンドを使うことができます。例として、以下のコマンドは特定のプロジェクト内のバケットをリスト化します:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil ls&lt;/div&gt;
以下のコマンドはdogsというバケットの中に格納されているオブジェクトをリスト化します。
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil ls gs://dogs&lt;/div&gt;
&lt;b&gt;-lオプションの使用&lt;/b&gt;
-lオプションを使用して、オブジェクトとバケットの長いリストを出力することができます。これは、単独でlsコマンドを使用するよりも多くの情報を提供します。例として、以下のコマンドではdogs内のすべてのオブジェクトについての情報をリスト化します:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil ls -l gs://dogs&lt;/div&gt;
コンテンツの代わりにバケットの情報を取得したい場合は、-bオプションをバケット名を後ろに続けて含めることで可能になります。例として、以下のコマンドリストはdogsバケットについての情報をリスト化します。
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil ls -l -b gs://dogs&lt;/div&gt;
バケット全体のサイズをリスト化するには、以下のコマンドのいずれかを使用できます:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;gsutil ls -l&lt;br /&gt;
バケットと全体のサイズのリストを提供します。&lt;/li&gt;
&lt;li&gt;gsutil ls -l gs://*&lt;br /&gt;
バケット内のすべてのオブジェクトと、全体のサイズの完全なリストを提供します。&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&lt;i&gt;Using the -L option - -Lオプションの使用&lt;/i&gt;&lt;/b&gt;
lsコマンドと共に-Lオプションを使用すると、プロジェクト内のバケットとオブジェクトについての利用可能な詳細な情報の多くをリスト化することができます。例として、以下のコマンドはdogsバケット内にあるオブジェクトの、サイズ、最終更新日時、キャッシュコントロールなどのような包括的な情報を提供します。
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil ls -L gs://dogs/*&lt;/div&gt;
以下のコマンドで、バケットについての詳細な情報を参照することができます。
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil ls -L&lt;/div&gt;
内容の代わりに特定のバケットについての詳細な情報を取得したい場合は、-bオプションにバケット名を続けます。例として、以下のコマンドはdogsバケットについての詳細な情報を提供します:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil ls -L -b gs://dogs&lt;/div&gt;
&lt;div style=&quot;background-color: lightgrey;&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt;このオプションはオブジェクトとバケットについての詳細な情報のほとんどを提供しますが、-Lオプションは必要とする全ての情報を取得しようとして複数のGETリクエストを使用するために、月間の帯域幅クォータを使用します。それに比較して、-lオプションは必要とする情報につき一つだけのGETリクエストを行うため、-Lオプションよりもずっと早くなります。&lt;/div&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/3233170467046438910/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/05/hello-goolge-cloud-storage-6.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/3233170467046438910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/3233170467046438910'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/05/hello-goolge-cloud-storage-6.html' title='Hello Goolge Cloud Storage - その6'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-6574040878307337422</id><published>2013-05-16T23:43:00.004+09:00</published><updated>2013-05-16T23:43:41.850+09:00</updated><title type='text'>Hello Goolge Cloud Storage - その5</title><content type='html'>Google Cloud Storageのファーストステップを紹介する、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/storage/docs/hellogooglestorage&quot;&gt;Hello Google Cloud Storage&lt;/a&gt;ページを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
このページで紹介されている機能を試すには、&lt;br /&gt;
GSUtilのセットアップとGoogle Cloud Storageサービスの認証が必要です。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/04/hello-goolge-cloud-storage-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/04/hello-goolge-cloud-storage-4.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;
ステップ2:オブジェクトをバケットにアップロードする&lt;/h2&gt;
ここまでで幾つかバケットを生成することができたので、それらの中にオブジェクト2つの組み合わせをアップロードしてみましょう。これを行うには、新しいディレクトリを生成して、ディレクトリに2つのイメージファイルを作り、ファイル名をpoodle.jpgとcollie.jpgとします。ファイルをアップロードするために、ディレクトリを今生成したものに変更して、cpコマンドを以下の様に使用します。
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil cp *.jpg gs://dogs&lt;/div&gt;
&lt;br /&gt;
cpコマンドはUNIXの再帰(-R)オプションつきでcpコマンドと同様に動作し、ディレクトリ全体やディレクトリ内のコンテンツのコピーを行います。GSUtilはワイルドカードもサポートしていて、ファイルのバッチコピー・ムーブを簡単に行えます。オブジェクトのアップロードの方法によって、GSUtilは以下の一定のガイドラインに従った名前を付けたオブジェクトを生成します。&lt;br /&gt;
・ディレクトリを再帰的にアップロードするために-Rオプションを使用する場合、GSUtilは再帰プロセスをスタートするディレクトリをベースにした名前を付けたオブジェクトを生成します。&lt;br /&gt;
例として、client1/low_priorityy/に存在するディレクトリが存在して、gsutil cp -R client1/low_priority dst_uri　というコマンドを使用して再帰的にコピーを行う場合、再帰プロセスが開始されるディレクトリ名がlow_priorityなので、GSUtilはオブジェクト名にlow_priorityを使用した新しいオブジェクトを生成します。
 &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gs://dst_uri/low_priority/my_object&lt;/div&gt;
&lt;br /&gt;
-Rオプションはサブディレクトリもコピーを行い、オブジェクト名にはサブディレクトリ名も含まれます。例として、client1/low_priorityがさらにdatasheetsというディレクトリを含む場合、gsutil cp -R client1/low_priority des_uriは以下の様に名前をつけてオブジェクトを生成します。
 &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gs://dst_uri/low_priority/building.cad
 gs://dst_uri/low_priority/schematics.cad
 gs://dst_uri/low_priority/datasheets/assets.txt
 gs://dst_uri/low_priority/datasheets/expenses.txt
 &lt;/div&gt;
&lt;br /&gt;
このような動作は、組織の目的別での使用やGoogle Storage Managerでの利用に役に立ちますが、注意深く行わないと、意図しないパスをファイル名の中に組み込んでしまうことにもなります(例えば、上記の例ではlow_priorityという部分をを顧客に対して付けてしまいます)。&lt;br /&gt;
・ディレクトリをそのディレクトリ名を先頭に追加しないでコピーやアップロードする必要がある場合、ワイルドカードをしようできます。&lt;br /&gt;
例として、gsutil cp client1/low_priority/* dst_uri としてファイルをコピーすると、GSUtilは先頭にディレクトリ名を追加することなくオブジェクトをディレクトリにコピーします。
 &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gs://dst_uri/my_object&lt;/div&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/6574040878307337422/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/05/hello-goolge-cloud-storage-5.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/6574040878307337422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/6574040878307337422'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/05/hello-goolge-cloud-storage-5.html' title='Hello Goolge Cloud Storage - その5'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-8508334551497300064</id><published>2013-04-25T22:40:00.003+09:00</published><updated>2013-04-25T22:42:10.429+09:00</updated><title type='text'>Hello Goolge Cloud Storage - その4</title><content type='html'>Google Cloud Storageのファーストステップを紹介する、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/storage/docs/hellogooglestorage&quot;&gt;Hello Google Cloud Storage&lt;/a&gt;ページを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
このページで紹介されている機能を試すには、&lt;br /&gt;
GSUtilのセットアップとGoogle Cloud Storageサービスの認証が必要です。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/04/hello-goolge-cloud-storage-3.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;
ステップ1:バケットの生成&lt;/h2&gt;
最初に、一意のバケット名でプロジェクトに2つのバケットを生成します。mbコマンドを使うことで可能です。例として、以下のコマンドはcatsとdogsという名前のバケットを生成します。
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
gsutil mb gs://cats gs://dogs&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: lightgrey;&quot;&gt;
ノート:GSUtilをWindowsOS上で実行している場合、Pythonインタプリタを最初に呼び出す必要があります。例として、catsとdogsという名前の2つのバケットを生成するには、
&lt;br /&gt;
&lt;pre style=&quot;background-color:white&quot;&gt;python gsutil mb gs://cats gs://dogs&lt;/pre&gt;&lt;br /&gt;
とコマンドプロンプトにタイプしなければなりません。
&lt;/div&gt;
&lt;br /&gt;
バケットを生成する時には他に存在しない名前を付けるようにしてください。catsやdogsのような名前のバケットを生成しようとすると、以下のようなエラーを受け取る可能性があるからです:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
Failure: GSCreateError: 409 Conflict
BucketNameUnavailableThe requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again..
&lt;/div&gt;
これは、catやdogというバケット名は既に使われているということを意味しています。Google Cloud Storageは単一のネームスペースを持つので、バケット名はGoogle Cloud Storageシステム全体を通して他と重複しないようにしなければなりません。他の誰かが既にcatsやdogsという名前のバケットを生成していた場合、あなたはこれらの名前でバケットを生成することは認められません。重複しないようにバケット名を変更する必要がありますが、同時に以下の&lt;a href=&quot;http://code.google.com/apis/storage/docs/bucketnaming.html&quot;&gt;バケット命名ガイドライン&lt;/a&gt;に従う必要もあります。&lt;br /&gt;
場所による制約を指定することも可能なので、-l&amp;lt;location&amp;gt;フラグを付けることで地理的な位置を指定してバケットを生成することができます。詳しくは、&lt;a href=&quot;http://code.google.com/apis/storage/docs/developer-guide.html#specifyinglocations&quot;&gt;Specifying Bucket Locations&lt;/a&gt;を参照してください。
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/8508334551497300064/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/04/hello-goolge-cloud-storage-4.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8508334551497300064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8508334551497300064'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/04/hello-goolge-cloud-storage-4.html' title='Hello Goolge Cloud Storage - その4'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-8602431595759204940</id><published>2013-04-12T00:19:00.003+09:00</published><updated>2013-04-12T00:19:31.043+09:00</updated><title type='text'>Hello Goolge Cloud Storage - その3</title><content type='html'>Google Cloud Storageのファーストステップを紹介する、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/storage/docs/hellogooglestorage&quot;&gt;Hello Google Cloud Storage&lt;/a&gt;ページを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
このページで紹介されている機能を試すには、&lt;br /&gt;
GSUtilのセットアップとGoogle Cloud Storageサービスの認証が必要です。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-2.html&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;
Hello Google Cloud Storage! Exercises - Hello Google Cloud Storage!演習&lt;/h2&gt;
以下の演習は、Google Cloud StorageをGSUtilコマンドラインツールを通しての使用を開始する手助けとなります。演習を開始する前提条件をご覧になっていない場合は、上の項目を参照してください。&lt;br /&gt;
この演習が終われば、以下のタスクが完了します。&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;バケットの生成と削除&lt;/li&gt;
&lt;li&gt;オブジェクトのアップロード、削除、移動&lt;/li&gt;
&lt;li&gt;バケットとオブジェクトのリスト&lt;/li&gt;
&lt;li&gt;オブジェクトとバケットの共有&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/8602431595759204940/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/04/hello-goolge-cloud-storage-3.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8602431595759204940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8602431595759204940'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/04/hello-goolge-cloud-storage-3.html' title='Hello Goolge Cloud Storage - その3'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-2496289949376819048</id><published>2013-03-28T21:49:00.003+09:00</published><updated>2013-03-28T21:49:46.764+09:00</updated><title type='text'>Hello Goolge Cloud Storage - その2</title><content type='html'>Google Cloud Storageのファーストステップを紹介する、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/storage/docs/hellogooglestorage&quot;&gt;Hello Google Cloud Storage&lt;/a&gt;ページを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
このページで紹介されている機能を試すには、&lt;br /&gt;
GSUtilのセットアップとGoogle Cloud Storageサービスの認証が必要です。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/03/hello-goolge-cloud-storage-1.html&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Prerequisites 前提条件&lt;/h3&gt;
演習を開始する前に、以下の前提条件を満たす必要があります。
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;この演習を完了するためにはGoogle Cloud Storageにアクセスする必要があります。
&lt;/b&gt;プロジェクトチームのメンバーとして既存のGoogle Accountによるか、直近にGoogle Cloud Storageのアカウントを作成している場合、Google Cloud Storageにアクセスできること&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Python 2.6またはPython 2.7をインストール済みであること&lt;/b&gt;
現在のバージョンのGSUtilはPython 2.6またはPython 2.7のみサポートしています。&lt;/li&gt;
&lt;li&gt;&lt;b&gt;GSUtilの最新バージョンがインストールされていること&lt;/b&gt;
GSUtilはGoogle Cloud Storageにアクセスを行うPythonアプリケーションです。&lt;/li&gt;
&lt;/ul&gt;
上記の前提条件を満たしたら、演習を続けていきましょう。
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/2496289949376819048/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/03/hello-goolge-cloud-storage-2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/2496289949376819048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/2496289949376819048'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/03/hello-goolge-cloud-storage-2.html' title='Hello Goolge Cloud Storage - その2'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-7545977949062177351</id><published>2013-03-10T20:41:00.002+09:00</published><updated>2013-03-10T20:41:30.433+09:00</updated><title type='text'>Hello Goolge Cloud Storage - その1</title><content type='html'>Google Cloud Storageのファーストステップを紹介する、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/storage/docs/hellogooglestorage&quot;&gt;Hello Google Cloud Storage&lt;/a&gt;ページを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
このページで紹介されている機能を試すには、&lt;br /&gt;
GSUtilのセットアップとGoogle Cloud Storageサービスの認証が必要です。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;
Hello Google Cloud Storage!&lt;/h2&gt;
Hello Google Cloud Storage!のページは、GSUtilツールを使ってGoogle Cloud Storageの使用を開始するための簡単で素早い方法を提供します。この演習はGoogle Cloud StorageをGSUtilと共に使用する幾つかの基本的なタスクを通して、基本的なGoogle Cloud Storageの機能を探索する手助けをします。&lt;br /&gt;
&lt;br /&gt;
この演習の最後では、より高度なGSUtilの機能について&lt;a href=&quot;http://code.google.com/apis/storage/docs/gsutil_reference_guide.html&quot;&gt;GSUtilのリファレンスガイド&lt;/a&gt;
をレビューできます。&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;ノート:&lt;/b&gt;このドキュメントの演習は、GSUtilのセットアップとGoogle Cloud Storageサービスの認証を必要としています。単にダウンロードしたり、パブリックにアクセス可能なオブジェクトにアクセスする場合、GSUtilクライアントをインストールしてからオブジェクトをダウンロードするのみで行えます。パブリックにアクセス可能なオブジェクトにアクセスするためには、Google Cloud Storageのアクティブ化、課金の設定、Google Cloud Storageサービスの認証は必要ありません。
&lt;/div&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/7545977949062177351/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/03/hello-goolge-cloud-storage-1.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7545977949062177351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7545977949062177351'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/03/hello-goolge-cloud-storage-1.html' title='Hello Goolge Cloud Storage - その1'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-3617328801157159869</id><published>2013-02-21T22:24:00.005+09:00</published><updated>2013-02-21T22:24:47.291+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その14</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-7.html&quot;&gt;こちら&lt;/a&gt;、第８回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-8.html&quot;&gt;こちら&lt;/a&gt;、第9回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-9.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第10回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-10.html&quot;&gt;こちら&lt;/a&gt;、第11回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-11.html&quot;&gt;こちら&lt;/a&gt;、第12回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/02/google-cloud-storage-java-api-12.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第13回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/02/google-cloud-storage-java-api-13.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Quotas and Limits - クォータと制限&lt;/h3&gt;
Cloud Storageは、豊富な無料試用クォータを提供する従量制有料サービスです。無料クォータを超えた場合は、&lt;a href=&quot;https://developers.google.com/storage/docs/pricingandterms#pricing&quot;&gt;Cloud Storage料金表&lt;/a&gt;に基づいて課金されます。
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/3617328801157159869/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/02/google-cloud-storage-java-api-14.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/3617328801157159869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/3617328801157159869'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/02/google-cloud-storage-java-api-14.html' title='Google Cloud Storageのドキュメント - Java API概要 その14'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-812427745751455309</id><published>2013-02-08T00:01:00.004+09:00</published><updated>2013-02-08T00:01:54.381+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その13</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-7.html&quot;&gt;こちら&lt;/a&gt;、第８回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-8.html&quot;&gt;こちら&lt;/a&gt;、第9回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-9.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第10回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-10.html&quot;&gt;こちら&lt;/a&gt;、第11回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-11.html&quot;&gt;こちら&lt;/a&gt;、第12回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/02/google-cloud-storage-java-api-12.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;ul&gt;
&lt;li&gt;アプリケーションをデプロイします。&lt;br /&gt;
&lt;b&gt;Eclipseから&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;EclipseのツールバーにあるGoogleアイコンをクリックします。&lt;/li&gt;
&lt;li&gt;ドロップダウンメニューの&lt;b&gt;Deploy to App Engine&lt;/b&gt;をクリックします。&lt;/li&gt;
&lt;li&gt;&lt;b&gt;App Engine project settings...&lt;/b&gt;をクリックします。&lt;/li&gt;
&lt;li&gt;Application IDをダイアログの&lt;b&gt;Deployment&lt;/b&gt;セクションに入力して、&lt;b&gt;OK&lt;/b&gt;ボタンをクリックします。&lt;/li&gt;
&lt;li&gt;メールアドレスとパスワードを入力して、&lt;b&gt;Deploy&lt;/b&gt;をクリックします。&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;コマンドラインから:&lt;/b&gt;
アプリケーションのコードとファイルをappcfg.cmd(Windows)またはappcfg.sh(Mac OS X,Linux)という名前のSDKに含まれているコマンドを使ってアップロードすることができます。
AppCfgは、App Engineのアプリケーション用の対話型多目的ツールです。コマンドは、アクション名、アプリケーションのwar/ディレクトリへのパス、その他のオプションを引数とします。App Engineにアプリケーションのコードをアップロードするには、アップデートアクションを使用します。
Windowsでアップロードを行うには:
&lt;pre style=&quot;background-color: white;&quot;&gt;..\appengine-java-sdk\bin\appcfg.cmd update war
&lt;/pre&gt;
Mac OS XまたはLinuxでアップロードを行うには:
&lt;pre style=&quot;background-color: white;&quot;&gt;../appengine-java-sdk/bin/appcfg.sh update war
&lt;/pre&gt;
Googleアカウントのユーザー名とパスワードをプロンプトに入力してください。&lt;/li&gt;
&lt;li&gt;http://application-id.appspot.comでアプリケーションを参照してください。&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/812427745751455309/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/02/google-cloud-storage-java-api-13.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/812427745751455309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/812427745751455309'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/02/google-cloud-storage-java-api-13.html' title='Google Cloud Storageのドキュメント - Java API概要 その13'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-8136007491030984673</id><published>2013-02-01T00:08:00.000+09:00</published><updated>2013-02-01T00:08:13.600+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その12</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-7.html&quot;&gt;こちら&lt;/a&gt;、第８回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-8.html&quot;&gt;こちら&lt;/a&gt;、第9回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-9.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第10回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-10.html&quot;&gt;こちら&lt;/a&gt;、第11回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-11.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;ul&gt;
&lt;li&gt;以下のコードでGuestbookServlet.javaのdoGet()メソッドを上書きして、BACKETNAMEとFILENAMEをあなたのバケット及びファイル名に書き換えます。
&lt;pre style=&quot;background-color: white;&quot;&gt;/**
 * Copyright 2011 Google Inc. All Rights Reserved.
 * Create, Write, Read, and Finalize Cloud Storage objects.
 * Access your app at: http://myapp.appspot.com/
**/

@SuppressWarnings(&quot;serial&quot;)
/**
 * Copyright 2011 Google Inc. All Rights Reserved.
 * Create, Write, Read, and Finalize Cloud Storage objects.
 * Access your app at: http://myapp.appspot.com/
**/

@SuppressWarnings(&quot;serial&quot;)
public class GuestbookServlet extends HttpServlet {
   public static final String BUCKETNAME = &quot;YOUR_BUCKET_NAME&quot;;
   public static final String FILENAME = &quot;YOUR_FILE_NAME&quot;;

  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    resp.setContentType(&quot;text/plain&quot;);
    resp.getWriter().println(&quot;Hello, world from java&quot;);
    FileService fileService = FileServiceFactory.getFileService();
    GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder()
       .setBucket(BUCKETNAME)
       .setKey(FILENAME)
       .setMimeType(&quot;text/html&quot;)
       .setAcl(&quot;public_read&quot;)
       .addUserMetadata(&quot;myfield1&quot;, &quot;my field value&quot;);
    AppEngineFile writableFile =
         fileService.createNewGSFile(optionsBuilder.build());
    // Open a channel to write to it
     boolean lock = false;
     FileWriteChannel writeChannel =
         fileService.openWriteChannel(writableFile, lock);
     // Different standard Java ways of writing to the channel
     // are possible. Here we use a PrintWriter:
     PrintWriter out = new PrintWriter(Channels.newWriter(writeChannel, &quot;UTF8&quot;));
     out.println(&quot;The woods are lovely dark and deep.&quot;);
     out.println(&quot;But I have promises to keep.&quot;);
     // Close without finalizing and save the file path for writing later
     out.close();
     String path = writableFile.getFullPath();
     // Write more to the file in a separate request:
     writableFile = new AppEngineFile(path);
     // Lock the file because we intend to finalize it and
     // no one else should be able to edit it
     lock = true;
     writeChannel = fileService.openWriteChannel(writableFile, lock);
     // This time we write to the channel directly
     writeChannel.write(ByteBuffer.wrap
               (&quot;And miles to go before I sleep.&quot;.getBytes()));

     // Now finalize
     writeChannel.closeFinally();
     resp.getWriter().println(&quot;Done writing...&quot;);

     // At this point, the file is visible in App Engine as:
     // &quot;/gs/BUCKETNAME/FILENAME&quot;
     // and to anybody on the Internet through Cloud Storage as:
     // (http://storage.googleapis.com/BUCKETNAME/FILENAME)
     // We can now read the file through the API:
     String filename = &quot;/gs/&quot; + BUCKETNAME + &quot;/&quot; + FILENAME;
     AppEngineFile readableFile = new AppEngineFile(filename);
     FileReadChannel readChannel =
         fileService.openReadChannel(readableFile, false);
     // Again, different standard Java ways of reading from the channel.
     BufferedReader reader =
             new BufferedReader(Channels.newReader(readChannel, &quot;UTF8&quot;));
     String line = reader.readLine();
     resp.getWriter().println(&quot;READ:&quot; + line);

    // line = &quot;The woods are lovely, dark, and deep.&quot;
     readChannel.close();
  }
}
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/8136007491030984673/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/02/google-cloud-storage-java-api-12.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8136007491030984673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8136007491030984673'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/02/google-cloud-storage-java-api-12.html' title='Google Cloud Storageのドキュメント - Java API概要 その12'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-7806140109359646305</id><published>2013-01-27T00:14:00.004+09:00</published><updated>2013-01-27T00:14:59.931+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その11</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-7.html&quot;&gt;こちら&lt;/a&gt;、第８回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-8.html&quot;&gt;こちら&lt;/a&gt;、第9回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-9.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第10回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-10.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Complete Sample App - サンプルアプリケーション&lt;/h3&gt;
以下は、App EngineアプリケーションでCloud Storage APIを使用するデモンストレーションであるサンプルアプリケーションです。アプリケーションを実行するには、バケットに対してWRITEアクセスを持つか、オーナーでなければなりません。

このアプリケーションをセットアップするには:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Google Plugin for Eclipseページの&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot;&gt;Creating a project&lt;/a&gt;セクション以下の指示に従って、プラグインのインストールとセットアップを行います。&lt;/li&gt;
&lt;li&gt;あなたのGuestbookServlet.javaファイルの先頭に以下のインポートをコピーします。
&lt;pre style=&quot;background-color: white;&quot;&gt;import com.google.appengine.api.files.AppEngineFile;
import com.google.appengine.api.files.FileReadChannel;
import com.google.appengine.api.files.FileService;
import com.google.appengine.api.files.FileServiceFactory;
import com.google.appengine.api.files.FileWriteChannel;
import com.google.appengine.api.files.GSFileOptions.GSFileOptionsBuilder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;

import javax.servlet.http.*;
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/7806140109359646305/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-11.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7806140109359646305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7806140109359646305'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-11.html' title='Google Cloud Storageのドキュメント - Java API概要 その11'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-7048568386041203185</id><published>2013-01-18T22:25:00.003+09:00</published><updated>2013-01-18T22:25:49.258+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その10</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-7.html&quot;&gt;こちら&lt;/a&gt;、第８回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-8.html&quot;&gt;こちら&lt;/a&gt;、第9回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-9.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Reading the Object - オブジェクトの読み出し&lt;/h3&gt;
オブジェクトを読み出す前に、オブジェクトのファイナライズを行わなければなりません。
オブジェクトを読み出すには:
&lt;br /&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;boolean lockForRead = false;
String filename = &quot;/gs/my_bucket/my_object&quot;;
AppEngineFile readableFile = new AppEngineFile(filename);
FileReadChannel readChannel = fileService.openReadChannel(readableFile, lockForRead);

// Read the file in whichever way you&#39;d like
BufferedReader reader = new BufferedReader(Channels.newReader(readChannel, &quot;UTF8&quot;));
String line = reader.readLine();
resp.getWriter().println(&quot;READ:&quot; + line);

readChannel.close();
&lt;/pre&gt;
一つのAPIコールでアプリケーションによって読み出されるオブジェクトの最大サイズは、32メガバイトです。
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/7048568386041203185/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-10.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7048568386041203185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7048568386041203185'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-10.html' title='Google Cloud Storageのドキュメント - Java API概要 その10'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-8349306195790374009</id><published>2013-01-10T23:08:00.005+09:00</published><updated>2013-01-10T23:08:58.185+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その9</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-7.html&quot;&gt;こちら&lt;/a&gt;、第８回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2013/01/google-cloud-storage-java-api-8.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Finalizing the Object - オブジェクトのファイナライズ&lt;/h3&gt;
オブジェクトへの書き込みが終了した後、読み出しを行う前にファイナライズを行う必要があります:
&lt;br /&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;// Finalize the object
writeChannel.closeFinally();
&lt;/pre&gt;
ここまでで、/gs/my_bucket/my_objectのファイル名でApp Engineからオブジェクトが可視状態となります。パブリックアクセス可でオブジェクトを設定している場合、http://storage.googleapis.com/my_bucket/my_objectのURLを使ってアクセスすることができます。
一度オブジェクトをファイナライズすると、後から書き込みを行うことはできなくなります。ファイルの内容の変更を行いたい場合は、上書きするために、同じ名前で新しいオブジェクトの生成を行う必要があるでしょう。
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/8349306195790374009/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-9.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8349306195790374009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8349306195790374009'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-9.html' title='Google Cloud Storageのドキュメント - Java API概要 その9'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-6700896849153426176</id><published>2013-01-04T00:23:00.003+09:00</published><updated>2013-01-04T00:23:30.006+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その8</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-7.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Opening and Writing to the Object - オブジェクトのオープン及び書き込み&lt;/h3&gt;
オブジェクトに書き込むためには、書き込みチャネルをオープンしなければなりません:
&lt;br /&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;// Open a channel for writing
boolean lockForWrite = false; // Do you want to exclusively lock this object?
FileWriteChannel writeChannel = fileService.openWriteChannel(writableFile, lockForWrite);
&lt;/pre&gt;
&lt;br /&gt;
次に、標準的なJavaの方法を使ってオブジェクトに書き込むことができます:
&lt;br /&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;// For this example, we write to the object using the PrintWriter
PrintWriter out = new PrintWriter(Channels.newWriter(writeChannel, &quot;UTF8&quot;));
out.println(&quot;The woods are lovely and deep.&quot;);
out.println(&quot;But I have promises too keep.&quot;);

// Close the object without finalizing.
out.close();

/**
 * You can write to this file again, later, by saving the file path.
 * It is not possible to read the file until you finalize it.
 * Once you finalize a file, it is not possible to write to it.
 */

// Save the file path
String path = writableFile.getFullPath();

// Lock the file so no one else can access it at the same time
lockForWrite = true;

// Write to the unfinalized file again in a separate request
writableFile = new AppEngineFile(path);
writeChannel = fileService.openWriteChannel(writableFile, lockForWrite);
writeChannel.write(ByteBuffer.wrap(&quot;And miles to go before I sleep.&quot;.getBytes()));
&lt;/pre&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/6700896849153426176/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-8.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/6700896849153426176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/6700896849153426176'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2013/01/google-cloud-storage-java-api-8.html' title='Google Cloud Storageのドキュメント - Java API概要 その8'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-5301376084504822799</id><published>2012-12-23T00:28:00.001+09:00</published><updated>2012-12-23T00:29:22.469+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その7</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-6.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
オブジェクトには、以下のACL及びHTTPヘッダをセットするオプションのメソッドを使用することができます:
&lt;br /&gt;
&lt;table border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;メソッド&lt;/th&gt;
&lt;th&gt;説明&lt;/th&gt;
&lt;th&gt;利用方法&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setAcl&lt;/td&gt;
&lt;td&gt;オブジェクトに対して&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol#extension&quot;&gt;既定のACL&lt;/a&gt;を設定する&lt;/td&gt;
&lt;td&gt;setAcl(&quot;public-read&quot;)&lt;br /&gt;
このパラメータをセットしない場合、Cloud Storageはこのパラメータをnullに設定して、バケットに対して&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol#defaultobjects&quot;&gt;デフォルトのオブジェクトACL&lt;/a&gt;を使用します(デフォルトでは、project-private)。&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setMimeType()&lt;/td&gt;
&lt;td&gt;オブジェクトに対して&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9&quot;&gt;Content-Type&lt;/a&gt;ヘッダをセットします。&lt;/td&gt;
&lt;td&gt;setMimeType(&quot;text/html&quot;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setCacheControl()&lt;/td&gt;
&lt;td&gt;オブジェクトに対して&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17&quot;&gt;Cache-Control&lt;/a&gt;ヘッダをセットします。&lt;/td&gt;
&lt;td&gt;setCacheControl(&quot;no-cache&quot;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setContentEncoding()&lt;/td&gt;
&lt;td&gt;オブジェクトが圧縮されている場合に、&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11&quot;&gt;Content-Encoding&lt;/a&gt;ヘッダを使って圧縮方法を特定します。&lt;/td&gt;
&lt;td&gt;setContentEncoding(&quot;gzip&quot;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setContentDisposition()&lt;/td&gt;
&lt;td&gt;オブジェクトに対して&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#19.5.1&quot;&gt;Content-Disposition&lt;/a&gt;ヘッダを設定します。&lt;/td&gt;
&lt;td&gt;setContentDisposition(&quot;attachment;filename=filename.ext&quot;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;addUserMetadata()&lt;/td&gt;
&lt;td&gt;カスタムヘッダ及び値の&lt;a href=&quot;http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html&quot;&gt;Map&lt;/a&gt;を生成・設定します。&lt;/td&gt;
&lt;td&gt;addUserMetadata(&#39;header1&#39;,&#39;value1&#39;,&#39;header2&#39;,&#39;value2&#39;)&lt;br /&gt;
これらのカスタムヘッダは以下の形式でhttp://storage.googleapis.comを通してオブジェクトにアクセスする時に提供されます:&lt;br /&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;x-goog-meta-custom_heder: custom_value&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
以下の部分コードは、オプションのメソッドの一部の使用例です:
&lt;br /&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder()
  .setBucket(&quot;my_bucket&quot;)
  .setKey(&quot;my_object&quot;)
  .setAcl(&quot;public-read&quot;)
  .setMimeType(&quot;text/html&quot;)
  .setUserMetadata(&quot;date-created&quot;, &quot;092011&quot;, &quot;owner&quot;, &quot;Jon&quot;);

AppEngineFile writableFile = fileService.createNewGSFile(optionsBuilder.build());
&lt;/pre&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/5301376084504822799/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-7.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5301376084504822799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5301376084504822799'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-7.html' title='Google Cloud Storageのドキュメント - Java API概要 その7'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-7574399969697026193</id><published>2012-12-13T21:26:00.002+09:00</published><updated>2012-12-13T21:26:30.560+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その6</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-5.html&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Creating an Object - オブジェクトの生成&lt;/h3&gt;
オブジェクトを生成するには:
&lt;br /&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;// Get the file service
FileService fileService = FileServiceFactory.getFileService();

/**
 * Set up properties of your new object
 * After finalizing objects, they are accessible
 * through Cloud Storage with the URL:
 * http://storage.googleapis.com/my_bucket/my_object
 */
GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder()
  .setBucket(&quot;my_bucket&quot;)
  .setKey(&quot;my_object&quot;)
  .setAcl(&quot;public-read&quot;);

// Create your object
AppEngineFile writableFile = fileService.createNewGSFile(optionsBuilder.build());
&lt;/pre&gt;
この例では、setAcl()メソッド内のpublic-readをパラメータにセットしています。これは、オブジェクトの読み出しを全員に許可します。このパラメータをセットしない場合、Cloud Storageは、このパラメータをnullとして、バケットに対して&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol#defaultobjects&quot;&gt;デフォルトのオブジェクトACL&lt;/a&gt;を使用します(デフォルトでは、project-privateとなります)。
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/7574399969697026193/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-6.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7574399969697026193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/7574399969697026193'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-6.html' title='Google Cloud Storageのドキュメント - Java API概要 その6'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-2420348338806519100</id><published>2012-12-09T01:08:00.002+09:00</published><updated>2012-12-09T01:09:10.592+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その5</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/12/google-cloud-storage-java-api-4.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;Before You Begin - 始める前に&lt;/h3&gt;
App EngineアプリケーションからCloud Storageへのデータの読み書きのために、Cloud Storage APIを利用することができます。Cloud Storage Java APIを利用するには、以下のimport文をコードの最初に含まなければなりません:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;pre&gt;import com.google.appengine.api.files.AppEngineFile;
import com.google.appengine.api.files.FileReadChannel;
import com.google.appengine.api.files.FileService;
import com.google.appengine.api.files.FileServiceFactory;
import com.google.appengine.api.files.FileWriteChannel;
import com.google.appengine.api.files.GSFileOptions.GSFileOptionsBuilder;&lt;/pre&gt;
&lt;/div&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/2420348338806519100/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-5.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/2420348338806519100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/2420348338806519100'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-5.html' title='Google Cloud Storageのドキュメント - Java API概要 その5'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-4889315150476152206</id><published>2012-12-01T23:16:00.004+09:00</published><updated>2012-12-01T23:16:48.849+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その4</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-3.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Using the Cloud Storage API - Cloud Storage APIの使用&lt;/h3&gt;
アプリケーションは、どのような種類の大きいファイルでも読み込み・書き込み、アップロード、保存、ユーザーへの大ファイルの提供を行うことができます。ファイルは、Google Cloud Storageにアップロードされると、オブジェクトと呼ばれます。
&lt;br /&gt;
&lt;h3&gt;
Before You Begin - 始める前に&lt;/h3&gt;
App EngineアプリケーションからCloud Storageへのデータの読み書きのために、Cloud Storage APIを利用することができます。Cloud Storage Java APIを利用するには、以下のimport文をコードの最初に含まなければなりません:
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;pre&gt;import com.google.appengine.api.files.AppEngineFile;
import com.google.appengine.api.files.FileReadChannel;
import com.google.appengine.api.files.FileService;
import com.google.appengine.api.files.FileServiceFactory;
import com.google.appengine.api.files.FileWriteChannel;
import com.google.appengine.api.files.GSFileOptions.GSFileOptionsBuilder;&lt;/pre&gt;
&lt;/div&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/4889315150476152206/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-4.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/4889315150476152206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/4889315150476152206'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/12/google-cloud-storage-java-api-4.html' title='Google Cloud Storageのドキュメント - Java API概要 その4'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-1385949129337029257</id><published>2012-11-23T00:06:00.001+09:00</published><updated>2012-11-23T00:09:35.429+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その3</title><content type='html'>Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-2.html&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Prerequisites - 前提条件&lt;/h3&gt;
Google Cloud Storage APIを利用するには、以下の前提条件を満たさなければなりません:
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;Google Cloud Storage API for Javaは、App Engihe SDKs 1.6.0以降で使用できます。また、このページに記述されているサンプルのいくつかは、Google Plugin For Eclipseが必要です。&lt;/b&gt;Google Plugin for EclipseとApp Enging SDKのアップデート・ダウンロードについては、&lt;a href=&quot;https://developers.google.com/eclipse/docs/download&quot;&gt;Google Plugin for Eclipseのダウンロードページ&lt;/a&gt;を参照してください。&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Cloud Storageのアクティブ化&lt;/b&gt;。Google APIsコンソールで、&lt;a href=&quot;https://developers.google.com/storage/docs/signup&quot;&gt;Cloud Storageサービスのアクティブ化&lt;/a&gt;を行ってください。&lt;/li&gt;
&lt;li&gt;&lt;b&gt;課金のセットアップ&lt;/b&gt;。Google Cloud Storageは、課金情報の提供が必要です。指定の状況では、&lt;a href=&quot;https://developers.google.com/storage/docs/pricingandterms#pricing&quot;&gt;無料の試用クォータ&lt;/a&gt;が提供されています。&lt;/li&gt;
&lt;li&gt;&lt;b&gt;バケットの生成&lt;/b&gt;。Cloud Storageでは、データを保持する基本的なコンテナであるバケットが存在します。バケットは、Google Cloud Storageにアップロードしたデータの各部分を、オブジェクトという形で全てのデータを保持します。Google Cloud Storage APIを使用できるようになるには、データを保存するためのバケットを生成する必要があります。そのための最も簡単な方法は、&lt;a href=&quot;https://developers.google.com/storage/docs/gsutil&quot;&gt;qsutilツール&lt;/a&gt;またはGoogle APIsコンソールを通してアクセスできる&lt;a href=&quot;https://developers.google.com/storage/docs/gsmanager&quot;&gt;オンラインGoogle Storageブラウザ&lt;/a&gt;を利用することです。&lt;/li&gt;
&lt;li&gt;&lt;b&gt;バケットまたはオブジェクトに認証を与える&lt;/b&gt;。バケットに新しいオブジェクトを生成できるようにするためには、以下を行うことが必要です:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://appengine.google.com/&quot;&gt;App Engine Adminコンソール&lt;/a&gt;にログイン&lt;/li&gt;
&lt;li&gt;Cloud Storageのバケットを認証するアプリケーションをクリック&lt;/li&gt;
&lt;li&gt;左側にある&lt;b&gt;Administration&lt;/b&gt;セクションの下の&lt;b&gt;Application Settings&lt;/b&gt;をクリック&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Service Account Name&lt;/b&gt;の下の値をコピーします。これは、アプリケーションのサービスアカウント名で、application-id@appspot.gserviceaccount.comの形式です。&lt;a href=&quot;https://developers.google.com/appengine/docs/premier&quot;&gt;App Engineプレミアアカウント&lt;/a&gt;を使用している場合、アプリケーションのアカウント名は、application-id.example.com@appspot.gserviceaccount.comの形式となります。&lt;/li&gt;
&lt;li&gt;以下のメソッドの内の一つを用いて、アクセス権を与えます:
&lt;ul&gt;
&lt;li&gt;バケットにアプリケーションのアクセスを認める最も簡単な方法は、&lt;a href=&quot;https://code.google.com/apis/console&quot;&gt;Google APIsコンソール&lt;/a&gt;を使ってバケットを含むプロジェクトにチームメンバーとしてアプリケーションの&lt;a href=&quot;https://developers.google.com/console/help/#DifferentRoles&quot;&gt;サービスアカウント名&lt;/a&gt;を加えることです。(アプリケーションはバケットに書き込みを行う必要がある場合、editパーミッションを持つことが必要です) Cloud Storage内のパーミッションについての情報は、&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol#scopes&quot;&gt;Scopes and Permissions&lt;/a&gt;を参照してください。必要ならば、プロジェクトに他のアプリケーションも加えてください。&lt;/li&gt;
&lt;li&gt;アプリケーションにバケットへのアクセス権を与える他の手段として、&lt;a href=&quot;https://developers.google.com/storage/docs/gsutil&quot;&gt;qsutilユーティリティ&lt;/a&gt;を使って、バケットのACLや既定のオブジェクトのACLの設定を手動で編集する方法があります:
&lt;ol&gt;
&lt;li&gt;バケットのACLを取得して、編集用にファイルに保存します。&lt;pre&gt;gsutil getacl gs://mybacket &amp;gt; myAcl.txt&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;取得したACLのファイルに以下の内容を加えます。&lt;pre style=&quot;background-color: white;&quot;&gt; &amp;lt;entry&amp;gt;
   &amp;lt;scope type=&quot;UserByEmail&quot;&amp;gt;
      &amp;lt;emailaddress&amp;gt;
         your-application-id@appspot.gserviceaccount.com
      &amp;lt;/emailaddress&amp;gt;
   &amp;lt;/scope&amp;gt;
   &amp;lt;permission&amp;gt;
      WRITE
   &amp;lt;/permission&amp;gt;
 &amp;lt;/entry&amp;gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;ACLに複数のアプリケーションを加えたい場合は、それぞれのアプリケーションについて上記の内容を繰り返し、それぞれのアプリケーションのサービス名を反映したemailアドレスのみを変更します。&lt;/li&gt;
&lt;li&gt;変更したACLをバケットにセットします。&lt;pre style=&quot;background-color: white;&quot;&gt;gsutil setacl myAcl.txt gs://mybucket&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;複数のアプリケーション、または&lt;b&gt;Datastore Admin&lt;/b&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/adminconsole/datastoreadmin#Backup_And_Restore&quot;&gt;backup and restore&lt;/a&gt;機能にバケットへのアクセス権を与えている場合、バケットにデフォルトのオブジェクトACLをセットする必要があります。
&lt;ol&gt;
&lt;li&gt;バケットへのデフォルトのオブジェクトACLを取得して、編集用のファイルに保存します。&lt;pre style=&quot;background-color: white;&quot;&gt;gsutil getdefacl gs://mybucket &amp;gt; myDefAcl.txt&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;上記のバケットのACLと同じ内容を追加して、必要ならばWRITEをFULL_CONTROLまたはREADに変更します。&lt;/li&gt;
&lt;li&gt;変更したデフォルトのオブジェクトACLをバケットにセットします。&lt;pre style=&quot;background-color: white;&quot;&gt;gsutil setdefacl myDefAcl.txt gs://mybucket&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;認証されていないアプリケーションが特定のオブジェクトの読み取りを行うことを防ぐ必要がある場合は、以下のことを行えます:
&lt;ul&gt;
&lt;li&gt;オブジェクト上の定義済みの&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot;&gt;project-private&lt;/a&gt;ACLを手動でセットする&lt;/li&gt;
&lt;li&gt;バケット内に&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol#defaultobjects&quot;&gt;default project-private object ACL&lt;/a&gt;付きでオブジェクトを保存する&lt;/li&gt;
&lt;li&gt;その後、Google APIsコンソールでサービスアカウントをproject viewerとして追加し、オブジェクトにREAD-ONLYアクセスをApp Engineアプリケーションに与えます。定義済みの&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol#extension&quot;&gt;public-read&lt;/a&gt;ACLをセットして、認証されている・されていないに関わらずに全てのユーザーにオブジェクトへのアクセスを許可することもできます。project viewerのアプリケーションのサービスアカウント名を追加する必要はありませんが、パブリックなアクセスを望まないデータがある場合は、オブジェクトにpublic-readのACLを設定しないで下さい。&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt;バケットにREADパーミッションのみをセットすると、バケット内のどのオブジェクトにもREADパーミッションは提供されません。オブジェクトに対して個別にREADパーミッションをセットするか、バケット内にオブジェクトを生成する前に&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol&quot;&gt;default ACL&lt;/a&gt;をセットしなければなりません。&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/1385949129337029257/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/11/google-cloud-storage-java-api-3.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/1385949129337029257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/1385949129337029257'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/11/google-cloud-storage-java-api-3.html' title='Google Cloud Storageのドキュメント - Java API概要 その3'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-5075232527275645945</id><published>2012-11-15T21:46:00.000+09:00</published><updated>2012-11-15T21:46:16.895+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その2</title><content type='html'>前回から、Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳しています。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/11/google-cloud-storage-java-api-1.html&quot;&gt;こちら&lt;/a&gt;です。 
&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;
Introducing Google Cloud Storage - Google Cloud Storageの紹介&lt;/h2&gt;
Google App Engineは、アプリケーションにデータオブジェクトの生成・提供を可能とする、Google Cloud Storageオブジェクトへの簡単な読み書きの手段を提供しています。これらのオブジェクトはCloud Storageのバケットに保存されますが、加えてGoogle App EngineアプリケーションからGoogle Cloud Storage APIを通してアクセスすることもできます。Google Cloud Storage APIを&lt;a href=&quot;https://developers.google.com/storage/docs/developer-guide#overview&quot;&gt;RESTfulなAPI&lt;/a&gt;を使う、もしくは、このドキュメントで述べられているようにGoogle Cloud Storage Java API for Google App Engine applicationsを通して使うことができます。&lt;br /&gt;
&amp;nbsp;Cloud Storageは、オブジェクトの大きさの制限が無いために、大きいファイルの保存・提供に利用できます。それに加えて、Cloud Storageはアクセスコントロールリスト(ACLs)、割り込みが発生した場合のアップロード中断・再開機能、POST&lt;a href=&quot;https://developers.google.com/storage/docs/reference-methods#policydocument&quot;&gt;ポリシードキュメント&lt;/a&gt;の使用のほか、多くの機能を提供します。&lt;br /&gt;
&amp;nbsp;オブジェクトを一度生成すると、編集することはできません。既存のオブジェクトを編集するためには、必要な変更を済ませた新しいオブジェクトで、上書きを行う必要があります。&lt;br /&gt;
&amp;nbsp;より詳しくは、&lt;a href=&quot;https://developers.google.com/storage/docs/pricingandterms&quot;&gt;Google Cloud Storage pricing&lt;/a&gt;を参照してください。
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/5075232527275645945/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/11/google-cloud-storage-java-api-2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5075232527275645945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5075232527275645945'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/11/google-cloud-storage-java-api-2.html' title='Google Cloud Storageのドキュメント - Java API概要 その2'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-5100745944926941350</id><published>2012-11-02T20:51:00.001+09:00</published><updated>2012-11-02T20:51:11.699+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - Java API概要 その1</title><content type='html'>今回から、Google Cloud StorageのJava APIの概要についての&lt;br /&gt;
ドキュメントを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
翻訳元は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
このドキュメントは、Google App Engineアプリケーションから&lt;br /&gt;
Google Cloud Storageの機能を呼び出す方法について&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;br /&gt;
現在は試験的運用中なので、今後変更があるかもしれません。&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h1&gt;
Google Cloud Storage Java API Overview - Google Cloud Storage Java API概要&lt;/h1&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;Experimental! 試験的運用!&lt;/b&gt;
Google App Engine向けGoogle Cloud Storage APIは、試験的運用中で、革新的であり、速やかな改善を行っています。そのような新しい機能であるため、Google Cloud StorageのApp Engineへのサポートは、ユーザーからの製品への要望とフィードバックに基づいて時間と共に変更されていきます。試験的運用が終了する時期は、コミュニティに説明を行います。&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt;このAPIは、Google Cloud Storageに対してファイルの読み書きを可能とします。Google Cloud Storage内に保存されているファイルを提供したい場合は、&lt;a href=&quot;https://developers.google.com/appengine/docs/java/blobstore/&quot;&gt;Blogstore API&lt;/a&gt;で提供されている&lt;a href=&quot;https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/blobstore/BlobstoreService#createGsBlobKey(java.lang.String)&quot;&gt;createGsBlogKey()&lt;/a&gt;メソッドを使用することができます。&lt;/div&gt;
Google Cloud Storage APIは、Google Cloud Storageサービスからのアプリケーションへのデータの保存・提供を行うメソッドを扱えます。Cloud Storege APIは&lt;a href=&quot;https://developers.google.com/storage/docs/developer-guide#overview&quot;&gt;RESTful API&lt;/a&gt;ですが、このドキュメントではApp Engine上でCloud Storage APIを使用する方法を記述しています。

Google Cloud Storage APIは、アプリケーションにobjectsとして認識される、不定形なデータの保存・提供を可能とします。Cloud Storage APIは&lt;a href=&quot;https://developers.google.com/storage/docs/developer-guide#overview&quot;&gt;RESTfulなAPI&lt;/a&gt;を提供しており、このドキュメントではApp Engine上でCloud Storageを使用する方法について記述しています。
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview#Introducing_Google_Storage&quot;&gt;Introducing Google Cloud Storage - Google Cloud Storageの紹介&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview#Prerequisites&quot;&gt;Prerequisites - 前提条件&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview#Using_Google_Storage&quot;&gt;Using Google Cloud Storage - Google Cloud Storageの使用&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview#Complete_Sample_App&quot;&gt;Complete Sample App - サンプルアプリケーションの完成&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview#Quotas_and_Limits&quot;&gt;Quotas and Limits - 利用制限&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/5100745944926941350/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/11/google-cloud-storage-java-api-1.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5100745944926941350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5100745944926941350'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/11/google-cloud-storage-java-api-1.html' title='Google Cloud Storageのドキュメント - Java API概要 その1'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-5277644258232651022</id><published>2012-10-26T22:23:00.004+09:00</published><updated>2012-10-26T22:23:52.110+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - 紹介 その2</title><content type='html'>前回から、Google Cloud Storage APIのドキュメントの&lt;br /&gt;
翻訳をしています。&lt;br /&gt;
&lt;br /&gt;
原文は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/10/google-cloud-storage-1.html&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;hr /&gt;
このドキュメントでは、Google App Engine向けのCloud Storage Java APIを解説しています。以下の項目に分かれています:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/overview&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/files/package-summary&quot;&gt;APIリファレンス&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/5277644258232651022/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/10/google-cloud-storage-2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5277644258232651022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/5277644258232651022'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/10/google-cloud-storage-2.html' title='Google Cloud Storageのドキュメント - 紹介 その2'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-1386288706931639329</id><published>2012-10-20T23:06:00.002+09:00</published><updated>2012-10-20T23:06:42.188+09:00</updated><title type='text'>Google Cloud Storageのドキュメント - 紹介 その1</title><content type='html'>今回から、Google Cloud Storage APIのドキュメントの&lt;br /&gt;
翻訳をして見ます。&lt;br /&gt;
&lt;br /&gt;
原文は&lt;a href=&quot;https://developers.google.com/appengine/docs/java/googlestorage/&quot;&gt;こちら&lt;/a&gt;です。&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h1&gt;
The Google Cloud Storage API&lt;/h1&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;Experimental! 試験的運用!&lt;/b&gt;
Google App Engine向けGoogle Cloud Storage APIは、試験的運用中で、革新的であり、速やかな改善を行っています。そのような新しい機能であるため、Google Cloud StorageのApp Engineへのサポートは、ユーザーからの製品への要望とフィードバックに基づいて時間と共に変更されていきます。試験的運用が終了する時期は、コミュニティに説明を行います。&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt;このAPIは、Google Cloud Storageに対してファイルの読み書きを可能とします。Google Cloud Storage内に保存されているファイルを提供したい場合は、&lt;a href=&quot;https://developers.google.com/appengine/docs/java/blobstore/&quot;&gt;Blogstore API&lt;/a&gt;で提供されている&lt;a href=&quot;https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/blobstore/BlobstoreService#createGsBlobKey(java.lang.String)&quot;&gt;createGsBlogKey()&lt;/a&gt;メソッドを使用することができます。&lt;/div&gt;
Google Cloud Storage APIは、Google Cloud Storageサービスからのアプリケーションへのデータの保存・提供を行うメソッドを扱えます。Cloud Storege APIは&lt;a href=&quot;https://developers.google.com/storage/docs/developer-guide#overview&quot;&gt;RESTful API&lt;/a&gt;ですが、このドキュメントではApp Engine上でCloud Storage APIを使用する方法を記述しています。

Cloud Storage APIは、App EngineのデータストアやBlobstoreでは利用できない機能をいくつか提供しています:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;データへのアクセス管理を行う&lt;a href=&quot;https://developers.google.com/storage/docs/accesscontrol&quot;&gt;Access Control Lists(ACLs)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;POST&lt;a href=&quot;https://developers.google.com/storage/docs/reference-methods#policydocument&quot;&gt;ポリシー&lt;/a&gt;のサポート&lt;/li&gt;
&lt;li&gt;OAuth 2.0認証と承認&lt;/li&gt;
&lt;li&gt;RESTful API&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/1386288706931639329/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/10/google-cloud-storage-1.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/1386288706931639329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/1386288706931639329'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/10/google-cloud-storage-1.html' title='Google Cloud Storageのドキュメント - 紹介 その1'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-3649632683683296692</id><published>2012-10-13T23:02:00.002+09:00</published><updated>2012-10-13T23:02:53.284+09:00</updated><title type='text'>Google Cloud SQLのドキュメント - Importing and Exporting Data - その9</title><content type='html'>クラウド上でMySQLインスタンスを利用できる、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/cloud-sql/&quot;&gt;Google Cloud SQL&lt;/a&gt;のドキュメントを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/cloud-sql/docs/basic_tasks&quot;&gt;Basic Tasks&lt;/a&gt;では、Google Cloud SQLのインスタンス管理のためのタスクについて&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/goog_1140966009&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://developers.google.com/cloud-sql/docs/import_export&quot;&gt;Importing and Exporting Data&lt;/a&gt;のページでは、&lt;br /&gt;
データのインポート・エクスポートを行う方法について説明しています。&lt;br /&gt;
&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/07/google-cloud-sql-importing-and.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and_20.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and_24.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and_31.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/09/google-cloud-sql-importing-and.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/09/google-cloud-sql-importing-and_18.html&quot;&gt;こちら&lt;/a&gt;、第8回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/09/google-cloud-sql-importing-and_23.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Checking operation progress - 操作の進行状況のチェック&lt;/h3&gt;
インポートまたはエクスポート操作の進行状況は、それぞれのインスタンスのダッシュボード内の&lt;b&gt;Operations&lt;/b&gt;セクションに表示されます。
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;操作が正常に完了した場合、緑のチェックマークが表示されます。&lt;/li&gt;
&lt;li&gt;操作が失敗した場合、黄色で警告を表す三角形が表示されます。&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:
&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/3649632683683296692/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/10/google-cloud-sql-importing-and.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/3649632683683296692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/3649632683683296692'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/10/google-cloud-sql-importing-and.html' title='Google Cloud SQLのドキュメント - Importing and Exporting Data - その9'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2522455594594723907.post-8035029185860769059</id><published>2012-09-23T00:36:00.002+09:00</published><updated>2012-09-23T00:36:44.182+09:00</updated><title type='text'>Google Cloud SQLのドキュメント - Importing and Exporting Data - その8</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
クラウド上でMySQLインスタンスを利用できる、&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/cloud-sql/&quot;&gt;Google Cloud SQL&lt;/a&gt;のドキュメントを翻訳してみます。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://developers.google.com/cloud-sql/docs/basic_tasks&quot;&gt;Basic Tasks&lt;/a&gt;では、Google Cloud SQLのインスタンス管理のためのタスクについて&lt;br /&gt;
説明しています。&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/goog_1140966009&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://developers.google.com/cloud-sql/docs/import_export&quot;&gt;Importing and Exporting Data&lt;/a&gt;のページでは、&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;データのインポート・エクスポートを行う方法について説明しています。&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
第1回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/07/google-cloud-sql-importing-and.html&quot;&gt;こちら&lt;/a&gt;、第2回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and.html&quot;&gt;こちら&lt;/a&gt;、第3回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and_20.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第4回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and_24.html&quot;&gt;こちら&lt;/a&gt;、第5回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/08/google-cloud-sql-importing-and_31.html&quot;&gt;こちら&lt;/a&gt;、第6回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/09/google-cloud-sql-importing-and.html&quot;&gt;こちら&lt;/a&gt;、&lt;br /&gt;
第7回は&lt;a href=&quot;http://kaedetrans.blogspot.jp/2012/09/google-cloud-sql-importing-and_18.html&quot;&gt;こちら&lt;/a&gt;です。
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;
Export your Google Cloud SQL instance - Google Cloud SQLインスタンスのエクスポート&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2522455594594723907&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;
&lt;li&gt;Google APIs Consoleの&lt;b&gt;Overview&lt;/b&gt;パネルまたはメニューから、Google Cloud SQLインスタンスを選択します。&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Dashboard&lt;/b&gt;パネル上の&lt;b&gt;Actions&lt;/b&gt;ボタンをクリックします。&lt;/li&gt;
&lt;li&gt;ドロップダウンメニュー内の&lt;b&gt;Import Data&lt;/b&gt;をクリックします。&lt;/li&gt;
&lt;li&gt;ダイアログボックスが現れるので、バケット名とエクスポート後のファイル名を入力します。&lt;/li&gt;
&lt;li&gt;gzip圧縮を使ってエクスポートされたインスタンスを圧縮したい場合は、&lt;b&gt;Compress output file&lt;/b&gt;チェックボックスをクリックします(下の図)。出力ファイルの圧縮は、Google Cloud Storage上のストレージスペースを大幅に空け、ストレージコストを削減します。大きいインスタンスをエクスポートする場合に特に有効です。出力ファイルを圧縮する場合は、出力ファイルに拡張子.gzが加えられます。&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt;Google Cloud Storageネームスペースで既に使用されているファイル名を使うと、エクスポート操作は失敗します。必ず、その時点でGoogle Cloud Storage内で使用されていないユニークなファイル名を使用してください。&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Export&lt;/b&gt;をクリックします。&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHA5xuUOOoQu3s1rIDMbhbTWSt_dSc7QVtFXI6Om-oRxoZyXQfAlEZLoFyq0TEpZESX4DjxX-KihZWIZJyJJvbmPDl2PwwOacUJ9TwNSi74sdQf9KR25AzggUK2Wnjt3KTy6TIezdZYdKZ/s1600/back_up_dialog.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;124&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHA5xuUOOoQu3s1rIDMbhbTWSt_dSc7QVtFXI6Om-oRxoZyXQfAlEZLoFyq0TEpZESX4DjxX-KihZWIZJyJJvbmPDl2PwwOacUJ9TwNSi74sdQf9KR25AzggUK2Wnjt3KTy6TIezdZYdKZ/s320/back_up_dialog.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;hr /&gt;
インストール不要･無料のKaede翻訳ツール:&lt;br /&gt;
&lt;a href=&quot;http://kaedetrans-hrd.appspot.com/&quot;&gt;http://kaedetrans-hrd.appspot.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaedetrans.blogspot.com/feeds/8035029185860769059/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://kaedetrans.blogspot.com/2012/09/google-cloud-sql-importing-and_23.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8035029185860769059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2522455594594723907/posts/default/8035029185860769059'/><link rel='alternate' type='text/html' href='http://kaedetrans.blogspot.com/2012/09/google-cloud-sql-importing-and_23.html' title='Google Cloud SQLのドキュメント - Importing and Exporting Data - その8'/><author><name>kaedetrans</name><uri>http://www.blogger.com/profile/16030499428971095787</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHA5xuUOOoQu3s1rIDMbhbTWSt_dSc7QVtFXI6Om-oRxoZyXQfAlEZLoFyq0TEpZESX4DjxX-KihZWIZJyJJvbmPDl2PwwOacUJ9TwNSi74sdQf9KR25AzggUK2Wnjt3KTy6TIezdZYdKZ/s72-c/back_up_dialog.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>