Skip to content

Commit 723ca22

Browse files
1 parent 4e6de73 commit 723ca22

5 files changed

Lines changed: 299 additions & 0 deletions

src/DataCatalog/GoogleCloudDatacatalogV1Entry.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ class GoogleCloudDatacatalogV1Entry extends \Google\Model
248248
protected $serviceSpecDataType = '';
249249
protected $sourceSystemTimestampsType = GoogleCloudDatacatalogV1SystemTimestamps::class;
250250
protected $sourceSystemTimestampsDataType = '';
251+
protected $spannerTableSpecType = GoogleCloudDatacatalogV1SpannerTableSpec::class;
252+
protected $spannerTableSpecDataType = '';
251253
protected $sqlDatabaseSystemSpecType = GoogleCloudDatacatalogV1SqlDatabaseSystemSpec::class;
252254
protected $sqlDatabaseSystemSpecDataType = '';
253255
/**
@@ -741,6 +743,22 @@ public function getSourceSystemTimestamps()
741743
{
742744
return $this->sourceSystemTimestamps;
743745
}
746+
/**
747+
* Specification of a Spanner table.
748+
*
749+
* @param GoogleCloudDatacatalogV1SpannerTableSpec $spannerTableSpec
750+
*/
751+
public function setSpannerTableSpec(GoogleCloudDatacatalogV1SpannerTableSpec $spannerTableSpec)
752+
{
753+
$this->spannerTableSpec = $spannerTableSpec;
754+
}
755+
/**
756+
* @return GoogleCloudDatacatalogV1SpannerTableSpec
757+
*/
758+
public function getSpannerTableSpec()
759+
{
760+
return $this->spannerTableSpec;
761+
}
744762
/**
745763
* Specification that applies to a relational database system. Only settable
746764
* when `user_specified_system` is equal to `SQL_DATABASE`
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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\DataCatalog;
19+
20+
class GoogleCloudDatacatalogV1SpannerTableSpec extends \Google\Collection
21+
{
22+
protected $collection_key = 'foreignKeys';
23+
protected $foreignKeysType = GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKey::class;
24+
protected $foreignKeysDataType = 'array';
25+
protected $primaryKeyType = GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey::class;
26+
protected $primaryKeyDataType = '';
27+
28+
/**
29+
* Output only. The foreign keys of the table.
30+
*
31+
* @param GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKey[] $foreignKeys
32+
*/
33+
public function setForeignKeys($foreignKeys)
34+
{
35+
$this->foreignKeys = $foreignKeys;
36+
}
37+
/**
38+
* @return GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKey[]
39+
*/
40+
public function getForeignKeys()
41+
{
42+
return $this->foreignKeys;
43+
}
44+
/**
45+
* Output only. The primary key of the table.
46+
*
47+
* @param GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey $primaryKey
48+
*/
49+
public function setPrimaryKey(GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey $primaryKey)
50+
{
51+
$this->primaryKey = $primaryKey;
52+
}
53+
/**
54+
* @return GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey
55+
*/
56+
public function getPrimaryKey()
57+
{
58+
return $this->primaryKey;
59+
}
60+
}
61+
62+
// Adding a class alias for backwards compatibility with the previous class name.
63+
class_alias(GoogleCloudDatacatalogV1SpannerTableSpec::class, 'Google_Service_DataCatalog_GoogleCloudDatacatalogV1SpannerTableSpec');
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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\DataCatalog;
19+
20+
class GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKey extends \Google\Collection
21+
{
22+
protected $collection_key = 'columnMappings';
23+
protected $columnMappingsType = GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKeyForeignKeyColumnMapping::class;
24+
protected $columnMappingsDataType = 'array';
25+
/**
26+
* Output only. The table name this foreign key referenced to. Format: `projec
27+
* ts/{PROJECT_ID}/locations/{LOCATION}/entryGroups/{ENTRY_GROUP_ID}/entries/{
28+
* ENTRY_ID}`
29+
*
30+
* @var string
31+
*/
32+
public $entry;
33+
/**
34+
* Output only. The constraint_name of the foreign key, for example,
35+
* FK_CustomerOrder.
36+
*
37+
* @var string
38+
*/
39+
public $name;
40+
41+
/**
42+
* Output only. The ordered list of column mappings for this foreign key.
43+
*
44+
* @param GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKeyForeignKeyColumnMapping[] $columnMappings
45+
*/
46+
public function setColumnMappings($columnMappings)
47+
{
48+
$this->columnMappings = $columnMappings;
49+
}
50+
/**
51+
* @return GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKeyForeignKeyColumnMapping[]
52+
*/
53+
public function getColumnMappings()
54+
{
55+
return $this->columnMappings;
56+
}
57+
/**
58+
* Output only. The table name this foreign key referenced to. Format: `projec
59+
* ts/{PROJECT_ID}/locations/{LOCATION}/entryGroups/{ENTRY_GROUP_ID}/entries/{
60+
* ENTRY_ID}`
61+
*
62+
* @param string $entry
63+
*/
64+
public function setEntry($entry)
65+
{
66+
$this->entry = $entry;
67+
}
68+
/**
69+
* @return string
70+
*/
71+
public function getEntry()
72+
{
73+
return $this->entry;
74+
}
75+
/**
76+
* Output only. The constraint_name of the foreign key, for example,
77+
* FK_CustomerOrder.
78+
*
79+
* @param string $name
80+
*/
81+
public function setName($name)
82+
{
83+
$this->name = $name;
84+
}
85+
/**
86+
* @return string
87+
*/
88+
public function getName()
89+
{
90+
return $this->name;
91+
}
92+
}
93+
94+
// Adding a class alias for backwards compatibility with the previous class name.
95+
class_alias(GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKey::class, 'Google_Service_DataCatalog_GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKey');
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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\DataCatalog;
19+
20+
class GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKeyForeignKeyColumnMapping extends \Google\Model
21+
{
22+
/**
23+
* Output only. The column in the current table that is part of the foreign
24+
* key.
25+
*
26+
* @var string
27+
*/
28+
public $column;
29+
/**
30+
* Output only. The column in the referenced table that is part of the foreign
31+
* key.
32+
*
33+
* @var string
34+
*/
35+
public $referenceColumn;
36+
37+
/**
38+
* Output only. The column in the current table that is part of the foreign
39+
* key.
40+
*
41+
* @param string $column
42+
*/
43+
public function setColumn($column)
44+
{
45+
$this->column = $column;
46+
}
47+
/**
48+
* @return string
49+
*/
50+
public function getColumn()
51+
{
52+
return $this->column;
53+
}
54+
/**
55+
* Output only. The column in the referenced table that is part of the foreign
56+
* key.
57+
*
58+
* @param string $referenceColumn
59+
*/
60+
public function setReferenceColumn($referenceColumn)
61+
{
62+
$this->referenceColumn = $referenceColumn;
63+
}
64+
/**
65+
* @return string
66+
*/
67+
public function getReferenceColumn()
68+
{
69+
return $this->referenceColumn;
70+
}
71+
}
72+
73+
// Adding a class alias for backwards compatibility with the previous class name.
74+
class_alias(GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKeyForeignKeyColumnMapping::class, 'Google_Service_DataCatalog_GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKeyForeignKeyColumnMapping');
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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\DataCatalog;
19+
20+
class GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey extends \Google\Collection
21+
{
22+
protected $collection_key = 'columns';
23+
/**
24+
* Output only. Column names of the primary key.
25+
*
26+
* @var string[]
27+
*/
28+
public $columns;
29+
30+
/**
31+
* Output only. Column names of the primary key.
32+
*
33+
* @param string[] $columns
34+
*/
35+
public function setColumns($columns)
36+
{
37+
$this->columns = $columns;
38+
}
39+
/**
40+
* @return string[]
41+
*/
42+
public function getColumns()
43+
{
44+
return $this->columns;
45+
}
46+
}
47+
48+
// Adding a class alias for backwards compatibility with the previous class name.
49+
class_alias(GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey::class, 'Google_Service_DataCatalog_GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey');

0 commit comments

Comments
 (0)