Skip to content

Releases: vapor-community/google-cloud

1.4.1

07 Aug 18:20
b14c229
Compare
Choose a tag to compare

What's Changed

  • Lock google-cloud-kit dependency version at 1.0.0-rc.9 until we bump swift-tools and macOS version to 5.7 and v13 respectively by @susheel-clearcals in #32

Full Changelog: 1.4.0...1.4.1

Google Cloud 1.4.0

04 Aug 00:58
cc2b048
Compare
Choose a tag to compare

This release adds support for Cloud PubSub API

Google Cloud 1.3.0

04 May 21:38
dfdfe97
Compare
Choose a tag to compare

Adds support for the Translate API

GoogleCloud 1.2.0

29 Apr 15:37
2b8315d
Compare
Choose a tag to compare

This release adds support for Cloud Secret Manager.

GoogleCloud 1.1.0

17 Apr 19:09
bc4d436
Compare
Choose a tag to compare

This release Exposes an app.googleCloud.datastore.base property, which is useful if you want to use the local Datastore emulator, for example:

app.googleCloud.datastore.base = "http://localhost:8081"

Defaults to the live URL of https://datastore.googleapis.com

Google Cloud 1.0.0

10 Apr 21:37
9944d84
Compare
Choose a tag to compare

Official 1.0.0 release now that Vapor 4 has officially been tagged.

Google Cloud RC 2.1

13 Mar 18:10
e665242
Compare
Choose a tag to compare

Fixes a missing target when trying to import google cloud storage.

GoogleCloud 1.0.0 RC 2

13 Mar 15:48
e3c894b
Compare
Choose a tag to compare
Merge pull request #23 from vapor-community/target-update

Fixed targets and imports.

GoogleCloud RC 1

13 Mar 02:03
60fb101
Compare
Choose a tag to compare

This release supports the latest vapor release candidate which means requiring swift 5.2

GoogleCloudProvider beta 2

26 Dec 17:04
5a3685b
Compare
Choose a tag to compare
Pre-release

This release adopts the new extension API for services on Application and Request.
Now you can setup google cloud credentials globally and setup a specific API individually through Application

app.googleCloud.credentials = try GoogleCloudCredentialsConfiguration(projectId: "myprojectid-12345", credentialsFile: "~/path/to/service-account.json")

app.googleCloud.storage.configuration = .default()
func uploadImage(_ req: Request) throws {
/// req.gcs gives access to the cloud storage client.
    req.gcs.object.createSimpleUpload(bucket: "vapor-cloud-storage-demo",
                                      data: Data(...),
                                      name: "my-image",
                                      contentType: "image/jpeg").flatMap { uploadedObject in
        print(uploadedObject.mediaLink) // prints the download link for the image.
    }
}