Reference documentation and code samples for the Google Cloud Datastream V1 Client class SpannerProfile.
Profile for connecting to a Spanner source.
Generated from protobuf message google.cloud.datastream.v1.SpannerProfile
Namespace
Google \ Cloud \ Datastream \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ database |
string
Required. Immutable. Cloud Spanner database resource. This field is immutable. Must be in the format: projects/{project}/instances/{instance}/databases/{database_id}. |
↳ host |
string
Optional. The Spanner endpoint to connect to. Defaults to the global endpoint (https://spanner.googleapis.com). Must be in the format: https://spanner.{region}.rep.googleapis.com. |
getDatabase
Required. Immutable. Cloud Spanner database resource.
This field is immutable. Must be in the format: projects/{project}/instances/{instance}/databases/{database_id}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDatabase
Required. Immutable. Cloud Spanner database resource.
This field is immutable. Must be in the format: projects/{project}/instances/{instance}/databases/{database_id}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHost
Optional. The Spanner endpoint to connect to. Defaults to the global endpoint (https://spanner.googleapis.com). Must be in the format: https://spanner.{region}.rep.googleapis.com.
| Returns | |
|---|---|
| Type | Description |
string |
|
setHost
Optional. The Spanner endpoint to connect to. Defaults to the global endpoint (https://spanner.googleapis.com). Must be in the format: https://spanner.{region}.rep.googleapis.com.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|