- Datastore
- Change
Datastore#next?
to useNOT_FINISHED
(timanovsky)
- Change
- Pub/Sub
- Fix bug in pull timeout (mpcm)
- Minor code cleanup and acceptance testing changes
In addition to upgrading the google-api-client
dependency to the latest version (a significant change in the HTTP stack), this release makes a number of small, breaking changes in anticipation of gcloud-ruby 1.0
.
- Core
- Upgrade Google API Client dependency to
0.9
- Upgrade gRPC dependency to
1.0.0.pre1
- Add optional arguments
retries
andtimeout
to service factories - Remove
Gcloud::Error#inner
, use#cause
instead - Remove
Gcloud::Backoff
- Remove
Gcloud::Upload
- Upgrade Google API Client dependency to
- BigQuery
- Replace
Bigquery::Error
andBigquery::ApiError
classes withGcloud::Error
classes - Update
Dataset#access
to return a frozenDataset::Access
object (was array of hashes) - Remove
Dataset#access=
, useDataset#access
with a block to make changes - Update
Dataset#create_table
method- Remove
schema
optional argument - Add
fields
optional argument - Yield
Table::Updater
instead ofTable::Schema
- Remove
- Remove erroneous
Dataset::Access
methodsDataset::Access#add_owner_view
Dataset::Access#add_writer_view
Dataset::Access#remove_writer_view
Dataset::Access#remove_owner_view
Dataset::Access#writer_view?
Dataset::Access#owner_view?
- Remove erroneous
Job::List#total
accessor - Remove erroneous
Project#access
method - Move
Table::Schema
toSchema
- Update
Table#schema
to return a frozenSchema
object (was hash) - Remove
Table#schema=
, useTable#schema
with a block to make changes - Add
Schema::Field
- Add
View#id
and#query_id
methods, to matchTable
- Add
Dataset::Updater
class - Add
Table::Updater
class - Remove
Table#load
optional argumentchunk_size
- Replace
- Datastore
- Replace
Datastore::Error
andDatastore::KeyfileError
classes withGcloud::Error
classes - Add
KeyError
class - Remove
TransactionError#commit_error
and#transaction_error
methods, use#cause
instead - Add
Entity#serialized_size
method - Add
Key#serialized_size
method - Update documentation for emulator (pcostell)
- Replace
- DNS
- Replace
Dns::Error
andDns::ApiError
classes withGcloud::Error
classes
- Replace
- Logging
- Update
Project#entry
with convenient optional arguments - Add
Entry#resource=
method - Add
Entry
severity convenience methodsEntry#default!
Entry#debug!
Entry#info!
Entry#notice!
Entry#warning!
Entry#error!
Entry#critical!
Entry#alert!
Entry#emergency!
- Update
- Pub/Sub
- Add
Policy
class - Update
Topic#policy
to yield aPolicy
object to be updated - Update
Topic#policy
/#policy=
to return/receivePolicy
object (was hash) - Update
Subscription#policy
to yield aPolicy
object to be updated - Update
Subscription#policy
/#policy=
to return/receivePolicy
object (was hash) - Rename
Topic::Batch
toTopic::Publisher
- Add
- Resource Manager
- Upgrade to
V1
API - Add
Policy
class - Update
Project#policy
to yield aPolicy
object to be updated - Update
Project#policy
/#policy=
to return/receivePolicy
object (was hash)
- Upgrade to
- Storage
- Replace
Storage::Error
andStorage::ApiError
classes withGcloud::Error
classes - Update
Project#create_bucket
- Yield
Bucket::Updater
object instead of aBucket::Cors
object - Remove
cors
optional argument
- Yield
- Remove
Bucket#create_file
optional argumentchunk_size
- Remove
Bucket#cors=
, useBucket#cors
with a block to make changes - Add
Bucket::Cors::Rule
class - Remove erroneous
Bucket::DefaultAcl
methodsBucket::DefaultAcl#writers
Bucket::DefaultAcl#add_writer
- Remove erroneous
File::Acl
methodsFile::Acl#writers
File::Acl#add_writer
- Replace
- Translate
- Replace
Translate::Error
andTranslate::ApiError
classes withGcloud::Error
classes
- Replace
- Vision
- Replace
Vision::Error
andVision::ApiError
classes withGcloud::Error
classes
- Replace
- Add backoff to all requests (dolzenko)
- BigQuery
- Add
#all
toData
- Add
#all
,#next
and#next?
toDataset::List
,Job::List
,QueryData
,Table::List
andDataset::LookupResults
#all
methods now return lazy enumerator withrequest_limit
- Add
- Datastore
- Add
#cursor_for
,#each_with_cursor
and#all_with_cursor
toDataset::QueryResults
#all
and#all_with_cursor
methods now return lazy enumerator withrequest_limit
- Add
- DNS
- Add
#all
toChange::List
andZone::List
#all
methods now return lazy enumerator withrequest_limit
- Add
- Logging
#all
methods now return lazy enumerator withrequest_limit
- Pub/Sub
- Fix bug when publishing multi-byte strings
- Add support for IO-ish objects
- Add
#all
,#next
and#next?
toSubscription::List
andTopic::List
#all
methods now return lazy enumerator withrequest_limit
- Resource Manager
#all
methods now return lazy enumerator withrequest_limit
- Storage
- Breaking Change: Remove
retries
option fromBucket#delete
andProject#create_bucket
(configure inBackoff
instead) - Add support for customer-supplied encryption keys
- Fix issue verifying large files (Aguasvivas22)
#all
methods now return lazy enumerator withrequest_limit
- Breaking Change: Remove
- Vision
- Add support for IO-ish objects
- Add Vision service implementation
- BigQuery
- Restore chunk_size argument on Gcloud::Bigquery::Table#load (gramos74)
- Storage
- Gcloud::Storage::Bucket#create_file now uses default chunk_size
- Datastore
- Fixed documentation (bmclean)
- Add Gcloud::Upload.default_chunk_size
- Pegged dependency to google-protobuf version 3.0.0.alpha.5.0.5.1
- Datastore
- Upgrade Datastore to v1beta3 using gRPC
- Add GQL query support
- Breaking Changes:
QueryResults#more_results
is now a symbol, was a stringApiError
is removed, top-level Gcloud errors returned nowDATASTORE_HOST
environment variable removed, useDATASTORE_EMULATOR_HOST
now
- Datastore
- Add insert and update methods to specify persistence behavior
- Allow different updates (upsert/insert/update/delete) in a single commit outside of a transaction
- Entity can now have Location property values
QueryResults#more_after_cursor?
was addedQueryResults#next?
,#next
,#all
were added- Allow array of objects as well as splat arguments
- Translate
- Allow array of strings as well as splat arguments
- Datastore
- Fix issue with blob values being stored in base64 (bmclean)
- Datastore
- Add support for blob values (bmclean)
- Add support for Date and DateTime values
- Add support for setting read consistency
- Add support for batch operations outside of a transaction (timanovsky)
- Fix handling of rollback errors (timanovsky)
- Remove setting of project/dataset_id in query partition (toots)
- Add support for Translate API
- Drop support for Search service
- Pub/Sub
- Add support for emulator (dlorenc)
- Datastore
- Fix bug where entities were not properly marked persisted after being saved
- Fix bug in transaction delete accepting keys (timanovsky)
- Update access token logic to avoid expired credentials (timanovsky)
- Pub/Sub
- Fixed issue with unnecessary acknowledge requests in autoack (maxstudener)
- Pub/Sub
- Fixed issue with unnecessary base-64 encoding of message data (ptinsley)
- Add support for Logging service
- gRPC
- Add dependency on gRPC gem
- Pub/Sub transport layer now uses gRPC
- New Logging transport layer uses gRPC
- Future releases will migrate more services to gRPC
- BigQuery
- Fix error accessing a job's data before the job is complete (yhirano55)
- Fix undefined local variable in Dataset's access rules (yhirano55)
- Optionally specify location when creating a Dataset (gramos74)
- Datastore
- Fix bug in calculating an Entity's
exclude_from_indexes
(bmclean)
- Fix bug in calculating an Entity's
- Pub/Sub
- Correctly raise error when accessing a policy without permissions
- Update policy permissions documentation
- Add delimiter parameter for listing Storage files
- Add support for Ruby 2.3
- Add support for Search service
- Drop support for Ruby 1.9.3
- Replace options hash parameter with named parameters
- Add support for Release Manager service
- Pub/Sub Additions
- Fix issue getting and setting policies (jeffmendoza)
- Modified
autocreate
default value and behavior - Add
skip_lookup
option on resource lookup methods - Add
Project#publish
method - Add
Project#subscribe
method
- Datastore Additions
- Add
namespace
option on running queries (jondot) - Add
query
,entity
, andkey
helpers to Dataset
- Add
- Add support for Bucket attributes, including:
- CORS
- logging
- versioning
- location
- website
- storage class
- Add support for File attributes, including:
- cache_control
- content_dispostion
- content_encoding
- content_language
- content_type
- Add support for File upload validation with MD5 or CRC32c
- Add File#public_url
- Improve stability and error reporting of Storage ACL helpers
- Add DNS Service
- Improved BigQuery table recognition from a string (vitaliel)
- Add missing options from BigQuery
Table#load
(gramos74) - Add missing options from BigQuery
Table#extract
- Auto-discovery of project-id on Google Compute Engine
- Support getting project id from GCE auth compute
- New dataset access DSL for BigQuery
- New table schema DSL for BigQuery
- Add Code of Conduct
- Load data to BigQuery from Datastore backup
- Add
Job#wait_until_complete
convenience method to BigQuery - Add String representation of tables in BigQuery
- Add
refresh!
methods to Storage and BigQuery - Support
DATASTORE_DATASET
environment variable - Update Storage and BigQuery documentation for possible errors during large file uploads
- Fix missing Pathname require
- Truncate object representation in interactive output
Add BigQuery service
- Improve error messaging when uploading files to Storage
- Add
GCLOUD_PROJECT
andGCLOUD_KEYFILE
environment variables - Specify OAuth 2.0 scopes when connecting to services
Add Pub/Sub service
- Add top-level
Gcloud
object with instance methods to initialize connections with individual services (e.g.Gcloud#storage
) - Add credential options to
Gcloud::Storage::File#signed_url
- Add method aliases to improve usability of Storage API
- Improve documentation
- Storage downloads files in binary mode (premist).
- Updated documentation.
Initial release supporting Datastore and Storage services.