トップ 差分 一覧 ping ソース 検索 ヘルプ PDF RSS ログイン

Google Cloud Platform


RSS 無料英単語

目次



記事一覧

キーワード

Google Cloud Platform

Angular][Flask][TypeScript]


 Google Cloud SDK


コマンド 概要
gcloud init gcloud を初期化(再初期化)する。
gcloud app deploy ローカルのコードおよび設定をAppEngineにデプロイ

 管理

プロジェクトの作成

カスタムドメイン

Python環境


スタンダード環境

サンプル
git clone https://github.com/GoogleCloudPlatform/python-docs-samples
cd python-docs-samples/appengine/standard/hello_world
  • 起動
py -2 "C:\Programs\Google\Cloud SDK\google-cloud-sdk\bin\dev_appserver.py" app.yaml

 Flask


 Google Cloud Datastore


API リファレンス


 モデル


allocate_ids
allocate_ids_async
get_by_id
get_by_id_async
get_or_insert
get_or_insert_async
gql
has_complete_key
populate
put
put_async
query
to_dict

エンティティのKEY


クエリ

User.get_by_id('xxxx')
user = User.query().filter(User.sns_id == sns_id).get()

プロパティ

プロパティ 説明
StringProperty a short text string, limited to 500 bytes
TextProperty an unlimited text string; unindexed
BlobProperty an unlimited byte string; unindexed
IntegerProperty a 64-bit signed integer
FloatProperty a double precision floating point number
BooleanProperty a bool value
DateTimeProperty a datetime object. Note,
DateProperty a date object
TimeProperty a time object
GeoPtProperty a geographical location, i.e. (latitude, longitude)
KeyProperty Cloud Datastore KEY値、オプションで特定のKind参照に拘束
UserProperty a User object (for backwards compatibility only)
StructuredProperty a field that is itself structured like an entity; see below for more details
LocalStructuredProperty like StructuredProperty but the on-disk representation is an opaque blob; unindexed
ComputedProperty a property whose value is computed from other properties by a user-defined function. The property value is written to Cloud Datastore so that it can be used in queries, but the value from Cloud Datastore is not used when the entity is read back
GenericProperty a property whose type is not constrained; mostly used by the Expando class (see below) but also usable explicitly
JsonProperty a property whose value is any object that can be serialized using JSON; the value written to Cloud Datastore is a JSON representation of that object
PickleProperty " a property whose value is any object that can be serialized using Python’s pickle protocol; the value written to the Cloud Datastore is the pickled representation of that object using the highest available pickle protocol

 Tips



YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto

Copyright© 矢木 浩人 All Rights Reserved.