Spring Cloud GCP Reference Documentation

Authors

João André Martins, Jisha Abubaker, Ray Tsang, Mike Eltsufin, Artem Bilan, Andreas Berger, Balint Pato, Chengyuan Zhao

1.0.0.M3

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.


Table of Contents

1. Introduction
2. Dependency Management
3. Spring Cloud GCP Core
3.1. Project ID
3.2. Credentials
3.2.1. Scopes
4. Spring Cloud GCP for Pub/Sub
4.1. Pub/Sub operations abstraction
4.1.1. Publishing to a topic
4.1.2. Subscribing to a subscription
4.1.3. Pulling messages from a subscription
4.2. Pub/Sub management
4.2.1. Creating a topic
4.2.2. Deleting a topic
4.2.3. Listing topics
4.2.4. Creating a subscription
4.2.5. Deleting a subscription
4.2.6. Listing subscriptions
4.3. Configuration
5. Spring Resources
5.1. Google Cloud Storage
5.2. Configuration
6. Spring JDBC
6.1. Prerequisites
6.2. Spring Boot Starter for Google Cloud SQL
6.2.1. DataSource creation flow
7. Spring Integration
7.1. Channel Adapters for Google Cloud Pub/Sub
7.1.1. Inbound channel adapter
7.1.2. Outbound channel adapter
7.2. Channel Adapters for Google Cloud Storage
7.2.1. Inbound channel adapter
7.2.2. Inbound streaming channel adapter
7.2.3. Outbound channel adapter
8. Spring Cloud Sleuth
8.1. Spring Boot Starter for Stackdriver Trace
8.2. Integration with Logging
9. Stackdriver Logging Support
9.1. Logback Support
9.1.1. Log via API
9.1.2. Log via Console
10. Spring Cloud Config
10.1. Configuration
10.2. Quick start
10.3. Refreshing the configuration at runtime
11. Spring Data Spanner
11.1. Configuration
11.1.1. Spanner settings
11.1.2. Repository settings
11.1.3. Autoconfiguration
11.2. Object Mapping
11.2.1. Table
SpEL expressions for table names
11.2.2. Primary Keys
11.2.3. Columns
11.2.4. Relationships
11.2.5. Supported Types
11.2.6. Lists
11.2.7. Custom types
11.3. Spanner Template
11.3.1. SQL Query
11.3.2. Read
11.3.3. Advanced reads
Stale read
Read from a secondary index
Read with offsets and limits
Sorting
Partial read
Summary of options for Query vs Read
11.3.4. Write / Update
Insert
Update
Upsert
Partial Update
11.3.5. Transactions
Read/Write Transaction
Read-only Transaction
11.4. Repositories
11.4.1. CRUD Repository
11.4.2. Paging and Sorting Repository
11.4.3. Query methods by convention
11.4.4. Custom SQL query methods
Query methods with named queries properties
Query methods with annotation
11.4.5. REST Repositories
12. Cloud Foundry