Skip to content

0.1.0

Compare
Choose a tag to compare
@ajkannan ajkannan released this 02 Dec 01:23

Features

Core

  • The project ID set in the Google Cloud SDK now supersedes the project ID set by Compute Engine (#337).

    Before

    The project ID is determined by iterating through the following list in order, stopping when a valid project ID is found:

    1. Project ID supplied when building the service options
    2. Project ID specified by the environment variable GCLOUD_PROJECT
    3. App Engine project ID
    4. Compute Engine project ID
    5. Google Cloud SDK project ID
    After
    1. Project ID supplied when building the service options
    2. Project ID specified by the environment variable GCLOUD_PROJECT
    3. App Engine project ID
    4. Google Cloud SDK project ID
    5. Compute Engine project ID
  • The explicit AuthCredentials.noCredentials option was removed.

Storage

  • The testing helper class RemoteGCSHelper now uses GOOGLE_APPLICATION_CREDENTIALS and GCLOUD_PROJECT environment variables to set credentials and project (#335, #339).

    Before
    export GCLOUD_TESTS_PROJECT_ID="MY_PROJECT_ID"
    export GCLOUD_TESTS_KEY=/path/to/my/key.json
    
    After
    export GCLOUD_PROJECT="MY_PROJECT_ID"
    export GOOGLE_APPLICATION_CREDENTIALS=/path/to/my/key.json
    
  • BlobReadChannel throws a StorageException if a blob is updated during a read (#359, #390)

  • generation is moved from BlobInfo to BlobId, and generationMatch and generationNotMatch methods are added to BlobSourceOption and BlobGetOption (#363, #366).

    Before
    BlobInfo myBlobInfo = someAlreadyExistingBlobInfo.toBuilder().generation(1L);
    After
    BlobId myBlobId = BlobId.of("bucketName", "idName", 1L);
  • The Blob's batch delete method now returns false for blobs that were not found (#380).

Fixes

Core

  • An exception is no longer thrown when reading the default project ID in the App Engine environment (#378).
  • SocketTimeoutExceptions are now retried (#410, #414).

Datastore

  • A SocketException exception is no longer thrown when creating the Datastore service object from within the App Engine production environment (#411).

Storage

  • The toBuilder methods in BlobInfo and BucketInfo are fixed so that info.equals(info.toBuilder().build()) is true (#415, #416).