Skip to content

Commit 4890905

Browse files
1 parent dc38a54 commit 4890905

13 files changed

Lines changed: 765 additions & 0 deletions

src/Datastream/BackfillAllStrategy.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class BackfillAllStrategy extends \Google\Model
2929
protected $postgresqlExcludedObjectsDataType = '';
3030
protected $salesforceExcludedObjectsType = SalesforceOrg::class;
3131
protected $salesforceExcludedObjectsDataType = '';
32+
protected $spannerExcludedObjectsType = SpannerDatabase::class;
33+
protected $spannerExcludedObjectsDataType = '';
3234
protected $sqlServerExcludedObjectsType = SqlServerRdbms::class;
3335
protected $sqlServerExcludedObjectsDataType = '';
3436

@@ -112,6 +114,22 @@ public function getSalesforceExcludedObjects()
112114
{
113115
return $this->salesforceExcludedObjects;
114116
}
117+
/**
118+
* Spanner data source objects to avoid backfilling.
119+
*
120+
* @param SpannerDatabase $spannerExcludedObjects
121+
*/
122+
public function setSpannerExcludedObjects(SpannerDatabase $spannerExcludedObjects)
123+
{
124+
$this->spannerExcludedObjects = $spannerExcludedObjects;
125+
}
126+
/**
127+
* @return SpannerDatabase
128+
*/
129+
public function getSpannerExcludedObjects()
130+
{
131+
return $this->spannerExcludedObjects;
132+
}
115133
/**
116134
* SQLServer data source objects to avoid backfilling
117135
*

src/Datastream/ConnectionProfile.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ class ConnectionProfile extends \Google\Model
7373
* @var bool
7474
*/
7575
public $satisfiesPzs;
76+
protected $spannerProfileType = SpannerProfile::class;
77+
protected $spannerProfileDataType = '';
7678
protected $sqlServerProfileType = SqlServerProfile::class;
7779
protected $sqlServerProfileDataType = '';
7880
protected $staticServiceIpConnectivityType = StaticServiceIpConnectivity::class;
@@ -324,6 +326,22 @@ public function getSatisfiesPzs()
324326
{
325327
return $this->satisfiesPzs;
326328
}
329+
/**
330+
* Spanner Connection Profile configuration.
331+
*
332+
* @param SpannerProfile $spannerProfile
333+
*/
334+
public function setSpannerProfile(SpannerProfile $spannerProfile)
335+
{
336+
$this->spannerProfile = $spannerProfile;
337+
}
338+
/**
339+
* @return SpannerProfile
340+
*/
341+
public function getSpannerProfile()
342+
{
343+
return $this->spannerProfile;
344+
}
327345
/**
328346
* SQLServer Connection Profile configuration.
329347
*

src/Datastream/DiscoverConnectionProfileRequest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class DiscoverConnectionProfileRequest extends \Google\Model
5151
protected $postgresqlRdbmsDataType = '';
5252
protected $salesforceOrgType = SalesforceOrg::class;
5353
protected $salesforceOrgDataType = '';
54+
protected $spannerDatabaseType = SpannerDatabase::class;
55+
protected $spannerDatabaseDataType = '';
5456
protected $sqlServerRdbmsType = SqlServerRdbms::class;
5557
protected $sqlServerRdbmsDataType = '';
5658

@@ -201,6 +203,22 @@ public function getSalesforceOrg()
201203
{
202204
return $this->salesforceOrg;
203205
}
206+
/**
207+
* Optional. Spanner database to enrich with child data objects and metadata.
208+
*
209+
* @param SpannerDatabase $spannerDatabase
210+
*/
211+
public function setSpannerDatabase(SpannerDatabase $spannerDatabase)
212+
{
213+
$this->spannerDatabase = $spannerDatabase;
214+
}
215+
/**
216+
* @return SpannerDatabase
217+
*/
218+
public function getSpannerDatabase()
219+
{
220+
return $this->spannerDatabase;
221+
}
204222
/**
205223
* Optional. SQLServer RDBMS to enrich with child data objects and metadata.
206224
*

src/Datastream/DiscoverConnectionProfileResponse.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class DiscoverConnectionProfileResponse extends \Google\Model
2929
protected $postgresqlRdbmsDataType = '';
3030
protected $salesforceOrgType = SalesforceOrg::class;
3131
protected $salesforceOrgDataType = '';
32+
protected $spannerDatabaseType = SpannerDatabase::class;
33+
protected $spannerDatabaseDataType = '';
3234
protected $sqlServerRdbmsType = SqlServerRdbms::class;
3335
protected $sqlServerRdbmsDataType = '';
3436

@@ -112,6 +114,22 @@ public function getSalesforceOrg()
112114
{
113115
return $this->salesforceOrg;
114116
}
117+
/**
118+
* Enriched Spanner database.
119+
*
120+
* @param SpannerDatabase $spannerDatabase
121+
*/
122+
public function setSpannerDatabase(SpannerDatabase $spannerDatabase)
123+
{
124+
$this->spannerDatabase = $spannerDatabase;
125+
}
126+
/**
127+
* @return SpannerDatabase
128+
*/
129+
public function getSpannerDatabase()
130+
{
131+
return $this->spannerDatabase;
132+
}
115133
/**
116134
* Enriched SQLServer RDBMS object.
117135
*

src/Datastream/SourceConfig.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class SourceConfig extends \Google\Model
3636
* @var string
3737
*/
3838
public $sourceConnectionProfile;
39+
protected $spannerSourceConfigType = SpannerSourceConfig::class;
40+
protected $spannerSourceConfigDataType = '';
3941
protected $sqlServerSourceConfigType = SqlServerSourceConfig::class;
4042
protected $sqlServerSourceConfigDataType = '';
4143

@@ -136,6 +138,22 @@ public function getSourceConnectionProfile()
136138
{
137139
return $this->sourceConnectionProfile;
138140
}
141+
/**
142+
* Spanner data source configuration.
143+
*
144+
* @param SpannerSourceConfig $spannerSourceConfig
145+
*/
146+
public function setSpannerSourceConfig(SpannerSourceConfig $spannerSourceConfig)
147+
{
148+
$this->spannerSourceConfig = $spannerSourceConfig;
149+
}
150+
/**
151+
* @return SpannerSourceConfig
152+
*/
153+
public function getSpannerSourceConfig()
154+
{
155+
return $this->spannerSourceConfig;
156+
}
139157
/**
140158
* SQLServer data source configuration.
141159
*

src/Datastream/SourceObjectIdentifier.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class SourceObjectIdentifier extends \Google\Model
2929
protected $postgresqlIdentifierDataType = '';
3030
protected $salesforceIdentifierType = SalesforceObjectIdentifier::class;
3131
protected $salesforceIdentifierDataType = '';
32+
protected $spannerIdentifierType = SpannerObjectIdentifier::class;
33+
protected $spannerIdentifierDataType = '';
3234
protected $sqlServerIdentifierType = SqlServerObjectIdentifier::class;
3335
protected $sqlServerIdentifierDataType = '';
3436

@@ -112,6 +114,22 @@ public function getSalesforceIdentifier()
112114
{
113115
return $this->salesforceIdentifier;
114116
}
117+
/**
118+
* Spanner data source object identifier.
119+
*
120+
* @param SpannerObjectIdentifier $spannerIdentifier
121+
*/
122+
public function setSpannerIdentifier(SpannerObjectIdentifier $spannerIdentifier)
123+
{
124+
$this->spannerIdentifier = $spannerIdentifier;
125+
}
126+
/**
127+
* @return SpannerObjectIdentifier
128+
*/
129+
public function getSpannerIdentifier()
130+
{
131+
return $this->spannerIdentifier;
132+
}
115133
/**
116134
* SQLServer data source object identifier.
117135
*

src/Datastream/SpannerColumn.php

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Datastream;
19+
20+
class SpannerColumn extends \Google\Model
21+
{
22+
/**
23+
* Required. Column name.
24+
*
25+
* @var string
26+
*/
27+
public $column;
28+
/**
29+
* Optional. Spanner data type.
30+
*
31+
* @var string
32+
*/
33+
public $dataType;
34+
/**
35+
* Optional. Whether or not the column is a primary key.
36+
*
37+
* @var bool
38+
*/
39+
public $isPrimaryKey;
40+
/**
41+
* Optional. The ordinal position of the column in the table.
42+
*
43+
* @var string
44+
*/
45+
public $ordinalPosition;
46+
47+
/**
48+
* Required. Column name.
49+
*
50+
* @param string $column
51+
*/
52+
public function setColumn($column)
53+
{
54+
$this->column = $column;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getColumn()
60+
{
61+
return $this->column;
62+
}
63+
/**
64+
* Optional. Spanner data type.
65+
*
66+
* @param string $dataType
67+
*/
68+
public function setDataType($dataType)
69+
{
70+
$this->dataType = $dataType;
71+
}
72+
/**
73+
* @return string
74+
*/
75+
public function getDataType()
76+
{
77+
return $this->dataType;
78+
}
79+
/**
80+
* Optional. Whether or not the column is a primary key.
81+
*
82+
* @param bool $isPrimaryKey
83+
*/
84+
public function setIsPrimaryKey($isPrimaryKey)
85+
{
86+
$this->isPrimaryKey = $isPrimaryKey;
87+
}
88+
/**
89+
* @return bool
90+
*/
91+
public function getIsPrimaryKey()
92+
{
93+
return $this->isPrimaryKey;
94+
}
95+
/**
96+
* Optional. The ordinal position of the column in the table.
97+
*
98+
* @param string $ordinalPosition
99+
*/
100+
public function setOrdinalPosition($ordinalPosition)
101+
{
102+
$this->ordinalPosition = $ordinalPosition;
103+
}
104+
/**
105+
* @return string
106+
*/
107+
public function getOrdinalPosition()
108+
{
109+
return $this->ordinalPosition;
110+
}
111+
}
112+
113+
// Adding a class alias for backwards compatibility with the previous class name.
114+
class_alias(SpannerColumn::class, 'Google_Service_Datastream_SpannerColumn');

src/Datastream/SpannerDatabase.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Datastream;
19+
20+
class SpannerDatabase extends \Google\Collection
21+
{
22+
protected $collection_key = 'schemas';
23+
protected $schemasType = SpannerSchema::class;
24+
protected $schemasDataType = 'array';
25+
26+
/**
27+
* Optional. Spanner schemas in the database.
28+
*
29+
* @param SpannerSchema[] $schemas
30+
*/
31+
public function setSchemas($schemas)
32+
{
33+
$this->schemas = $schemas;
34+
}
35+
/**
36+
* @return SpannerSchema[]
37+
*/
38+
public function getSchemas()
39+
{
40+
return $this->schemas;
41+
}
42+
}
43+
44+
// Adding a class alias for backwards compatibility with the previous class name.
45+
class_alias(SpannerDatabase::class, 'Google_Service_Datastream_SpannerDatabase');

0 commit comments

Comments
 (0)