gcloud 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md DELETED
@@ -1,110 +0,0 @@
1
- # gcloud
2
-
3
- Idiomatic Ruby client for [Google Cloud Platform](https://cloud.google.com/) services.
4
-
5
- [![Travis Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-ruby.svg)](https://travis-ci.org/GoogleCloudPlatform/gcloud-ruby/)
6
- [![Coverage Status](https://img.shields.io/coveralls/GoogleCloudPlatform/gcloud-ruby.svg)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-ruby?branch=master)
7
- [![Gem Version](https://badge.fury.io/rb/gcloud.svg)](http://badge.fury.io/rb/gcloud)
8
-
9
- * [Homepage](http://googlecloudplatform.github.io/gcloud-ruby/)
10
- * [API Documentation](http://googlecloudplatform.github.io/gcloud-ruby/docs/master/)
11
-
12
- ## Ruby API Client library for Google Cloud
13
-
14
- This client supports the following Google Cloud Platform services:
15
-
16
- * [Google Cloud Datastore](https://cloud.google.com/datastore/) ([docs](https://cloud.google.com/datastore/docs))
17
- * [Google Cloud Storage](https://cloud.google.com/storage/) ([docs](https://cloud.google.com/storage/docs/json_api/))
18
-
19
- If you need support for other Google APIs, check out the [Google API Ruby Client library](https://github.com/google/google-api-ruby-client).
20
-
21
- ## Quick Start
22
-
23
- ```sh
24
- $ gem install gcloud
25
- ```
26
-
27
- ### Authentication
28
-
29
- Gcloud uses Service Account credentials to connect to Google Cloud services. When running on Compute Engine the credentials will be discovered automatically. When running on other environments the Service Account credentials can be specified by providing the path to the JSON file, or the JSON itself, in environment variables. Additionally, Cloud SDK credentials can also be discovered automatically, but this is only recommended during development.
30
-
31
- Instructions and configuration options are covered in the [Authentication guide](AUTHENTICATION.md). The examples in Quick Start will demonstrate providing the **Project ID** and **Credentials JSON file path** in code.
32
-
33
- ### Datastore
34
-
35
- [Google Cloud Datastore](https://cloud.google.com/datastore/) ([docs](https://cloud.google.com/datastore/docs)) is a fully managed, schemaless database for storing non-relational data. Cloud Datastore automatically scales with your users and supports ACID transactions, high availability of reads and writes, strong consistency for reads and ancestor queries, and eventual consistency for all other queries.
36
-
37
- Follow the [activation instructions](https://cloud.google.com/datastore/docs/activate) to use the Google Cloud Datastore API with your project.
38
-
39
- See the [gcloud-ruby Datastore API documentation](http://googlecloudplatform.github.io/gcloud-ruby/docs/master/Gcloud/Storage.html) to learn how to interact with the Cloud Datastore using this library.
40
-
41
- ```ruby
42
- require 'gcloud/datastore'
43
-
44
- dataset = Gcloud.datastore "my-todo-project-id",
45
- "/path/to/keyfile.json"
46
-
47
- # Create a new task to demo datastore
48
- demo_task = Gcloud::Datastore::Entity.new
49
- demo_task.key = Gcloud::Datastore::Key.new "Task", "datastore-demo"
50
- demo_task[:description] = "Demonstrate Datastore functionality"
51
- demo_task[:completed] = false
52
-
53
- # Save the new task
54
- dataset.save demo_task
55
-
56
- # Run a query for all completed tasks
57
- query = Gcloud::Datastore::Query.new.kind("Task").
58
- where("completed", "=", true)
59
- completed_tasks = dataset.run query
60
- ```
61
-
62
- ### Storage
63
-
64
- [Google Cloud Storage](https://cloud.google.com/storage/) ([docs](https://cloud.google.com/storage/docs/json_api/)) allows you to store data on Google infrastructure with very high reliability, performance and availability, and can be used to distribute large data objects to users via direct download.
65
-
66
- See the [gcloud-ruby Storage API documentation](http://googlecloudplatform.github.io/gcloud-ruby/docs/master/Gcloud/Storage.html) to learn how to connect to Cloud Storage using this library.
67
-
68
- ```ruby
69
- require 'gcloud/storage'
70
-
71
- storage = Gcloud.storage "my-todo-project-id",
72
- "/path/to/keyfile.json"
73
-
74
- bucket = storage.find_bucket "task-attachments"
75
-
76
- file = bucket.find_file "path/to/my-file.ext"
77
-
78
- # Download the file to the local file system
79
- file.download "/tasks/attachments/#{file.name}"
80
-
81
- # Copy the file to a backup bucket
82
- backup = storage.find_bucket "task-attachment-backups"
83
- file.copy backup, file.name
84
- ```
85
-
86
- ## Supported Ruby Versions
87
-
88
- gcloud is supported on Ruby 1.9.3+.
89
-
90
- ## Versioning
91
-
92
- This library follows [Semantic Versioning](http://semver.org/).
93
-
94
- It is currently in major version zero (0.y.z), which means that anything may change at any time and the public API should not be considered stable.
95
-
96
- ## Contributing
97
-
98
- Contributions to this library are always welcome and highly encouraged.
99
-
100
- See [CONTRIBUTING](CONTRIBUTING.md) for more information on how to get started.
101
-
102
- ## License
103
-
104
- This library is licensed under Apache 2.0. Full license text is
105
- available in [LICENSE](LICENSE).
106
-
107
- ## Support
108
-
109
- Please [report bugs at the project on Github](https://github.com/GoogleCloudPlatform/gcloud-ruby/issues).
110
- Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/gcloud-ruby) about the client or APIs on [StackOverflow](http://stackoverflow.com).