Google Cloud BigQuery Migration V2 Client - Class SourceTargetMapping (1.1.0)

Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class SourceTargetMapping.

Represents one mapping from a source SQL to a target SQL.

Generated from protobuf message google.cloud.bigquery.migration.v2.SourceTargetMapping

Namespace

Google \ Cloud \ BigQuery \ Migration \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_spec Google\Cloud\BigQuery\Migration\V2\SourceSpec

The source SQL or the path to it.

↳ target_spec Google\Cloud\BigQuery\Migration\V2\TargetSpec

The target SQL or the path for it.

getSourceSpec

The source SQL or the path to it.

Returns
Type Description
Google\Cloud\BigQuery\Migration\V2\SourceSpec|null

hasSourceSpec

clearSourceSpec

setSourceSpec

The source SQL or the path to it.

Parameter
Name Description
var Google\Cloud\BigQuery\Migration\V2\SourceSpec
Returns
Type Description
$this

getTargetSpec

The target SQL or the path for it.

Returns
Type Description
Google\Cloud\BigQuery\Migration\V2\TargetSpec|null

hasTargetSpec

clearTargetSpec

setTargetSpec

The target SQL or the path for it.

Parameter
Name Description
var Google\Cloud\BigQuery\Migration\V2\TargetSpec
Returns
Type Description
$this