Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class Catalog extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Catalog::class, 'Google_Service_BigLakeService_Catalog');

View File

@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class Database extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $expireTime;
protected $hiveOptionsType = HiveDatabaseOptions::class;
protected $hiveOptionsDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param HiveDatabaseOptions
*/
public function setHiveOptions(HiveDatabaseOptions $hiveOptions)
{
$this->hiveOptions = $hiveOptions;
}
/**
* @return HiveDatabaseOptions
*/
public function getHiveOptions()
{
return $this->hiveOptions;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Database::class, 'Google_Service_BigLakeService_Database');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class HiveDatabaseOptions extends \Google\Model
{
/**
* @var string
*/
public $locationUri;
/**
* @var string[]
*/
public $parameters;
/**
* @param string
*/
public function setLocationUri($locationUri)
{
$this->locationUri = $locationUri;
}
/**
* @return string
*/
public function getLocationUri()
{
return $this->locationUri;
}
/**
* @param string[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HiveDatabaseOptions::class, 'Google_Service_BigLakeService_HiveDatabaseOptions');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class HiveTableOptions extends \Google\Model
{
/**
* @var string[]
*/
public $parameters;
protected $storageDescriptorType = StorageDescriptor::class;
protected $storageDescriptorDataType = '';
/**
* @var string
*/
public $tableType;
/**
* @param string[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @param StorageDescriptor
*/
public function setStorageDescriptor(StorageDescriptor $storageDescriptor)
{
$this->storageDescriptor = $storageDescriptor;
}
/**
* @return StorageDescriptor
*/
public function getStorageDescriptor()
{
return $this->storageDescriptor;
}
/**
* @param string
*/
public function setTableType($tableType)
{
$this->tableType = $tableType;
}
/**
* @return string
*/
public function getTableType()
{
return $this->tableType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HiveTableOptions::class, 'Google_Service_BigLakeService_HiveTableOptions');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class ListCatalogsResponse extends \Google\Collection
{
protected $collection_key = 'catalogs';
protected $catalogsType = Catalog::class;
protected $catalogsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Catalog[]
*/
public function setCatalogs($catalogs)
{
$this->catalogs = $catalogs;
}
/**
* @return Catalog[]
*/
public function getCatalogs()
{
return $this->catalogs;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCatalogsResponse::class, 'Google_Service_BigLakeService_ListCatalogsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class ListDatabasesResponse extends \Google\Collection
{
protected $collection_key = 'databases';
protected $databasesType = Database::class;
protected $databasesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Database[]
*/
public function setDatabases($databases)
{
$this->databases = $databases;
}
/**
* @return Database[]
*/
public function getDatabases()
{
return $this->databases;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDatabasesResponse::class, 'Google_Service_BigLakeService_ListDatabasesResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class ListTablesResponse extends \Google\Collection
{
protected $collection_key = 'tables';
/**
* @var string
*/
public $nextPageToken;
protected $tablesType = Table::class;
protected $tablesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Table[]
*/
public function setTables($tables)
{
$this->tables = $tables;
}
/**
* @return Table[]
*/
public function getTables()
{
return $this->tables;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTablesResponse::class, 'Google_Service_BigLakeService_ListTablesResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class RenameTableRequest extends \Google\Model
{
/**
* @var string
*/
public $newName;
/**
* @param string
*/
public function setNewName($newName)
{
$this->newName = $newName;
}
/**
* @return string
*/
public function getNewName()
{
return $this->newName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenameTableRequest::class, 'Google_Service_BigLakeService_RenameTableRequest');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $biglakeService = new Google\Service\BigLakeService(...);
* $projects = $biglakeService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_BigLakeService_Resource_Projects');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $biglakeService = new Google\Service\BigLakeService(...);
* $locations = $biglakeService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_BigLakeService_Resource_ProjectsLocations');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService\Resource;
use Google\Service\BigLakeService\Catalog;
use Google\Service\BigLakeService\ListCatalogsResponse;
/**
* The "catalogs" collection of methods.
* Typical usage is:
* <code>
* $biglakeService = new Google\Service\BigLakeService(...);
* $catalogs = $biglakeService->projects_locations_catalogs;
* </code>
*/
class ProjectsLocationsCatalogs extends \Google\Service\Resource
{
/**
* Creates a new catalog. (catalogs.create)
*
* @param string $parent Required. The parent resource where this catalog will
* be created. Format: projects/{project_id_or_number}/locations/{location_id}
* @param Catalog $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string catalogId Required. The ID to use for the catalog, which
* will become the final component of the catalog's resource name.
* @return Catalog
* @throws \Google\Service\Exception
*/
public function create($parent, Catalog $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Catalog::class);
}
/**
* Deletes an existing catalog specified by the catalog ID. (catalogs.delete)
*
* @param string $name Required. The name of the catalog to delete. Format:
* projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}
* @param array $optParams Optional parameters.
* @return Catalog
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Catalog::class);
}
/**
* Gets the catalog specified by the resource name. (catalogs.get)
*
* @param string $name Required. The name of the catalog to retrieve. Format:
* projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}
* @param array $optParams Optional parameters.
* @return Catalog
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Catalog::class);
}
/**
* List all catalogs in a specified project.
* (catalogs.listProjectsLocationsCatalogs)
*
* @param string $parent Required. The parent, which owns this collection of
* catalogs. Format: projects/{project_id_or_number}/locations/{location_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of catalogs to return. The service
* may return fewer than this value. If unspecified, at most 50 catalogs will be
* returned. The maximum value is 1000; values above 1000 will be coerced to
* 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListCatalogs` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListCatalogs` must match the
* call that provided the page token.
* @return ListCatalogsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCatalogsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogs::class, 'Google_Service_BigLakeService_Resource_ProjectsLocationsCatalogs');

View File

@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService\Resource;
use Google\Service\BigLakeService\Database;
use Google\Service\BigLakeService\ListDatabasesResponse;
/**
* The "databases" collection of methods.
* Typical usage is:
* <code>
* $biglakeService = new Google\Service\BigLakeService(...);
* $databases = $biglakeService->projects_locations_catalogs_databases;
* </code>
*/
class ProjectsLocationsCatalogsDatabases extends \Google\Service\Resource
{
/**
* Creates a new database. (databases.create)
*
* @param string $parent Required. The parent resource where this database will
* be created. Format:
* projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}
* @param Database $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string databaseId Required. The ID to use for the database, which
* will become the final component of the database's resource name.
* @return Database
* @throws \Google\Service\Exception
*/
public function create($parent, Database $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Database::class);
}
/**
* Deletes an existing database specified by the database ID. (databases.delete)
*
* @param string $name Required. The name of the database to delete. Format: pro
* jects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/da
* tabases/{database_id}
* @param array $optParams Optional parameters.
* @return Database
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Database::class);
}
/**
* Gets the database specified by the resource name. (databases.get)
*
* @param string $name Required. The name of the database to retrieve. Format: p
* rojects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/
* databases/{database_id}
* @param array $optParams Optional parameters.
* @return Database
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Database::class);
}
/**
* List all databases in a specified catalog.
* (databases.listProjectsLocationsCatalogsDatabases)
*
* @param string $parent Required. The parent, which owns this collection of
* databases. Format:
* projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of databases to return. The
* service may return fewer than this value. If unspecified, at most 50
* databases will be returned. The maximum value is 1000; values above 1000 will
* be coerced to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListDatabases` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListDatabases` must match the
* call that provided the page token.
* @return ListDatabasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogsDatabases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDatabasesResponse::class);
}
/**
* Updates an existing database specified by the database ID. (databases.patch)
*
* @param string $name Output only. The resource name. Format: projects/{project
* _id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{datab
* ase_id}
* @param Database $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. For the
* `FieldMask` definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all
* of the fields that are allowed to update.
* @return Database
* @throws \Google\Service\Exception
*/
public function patch($name, Database $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Database::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsDatabases::class, 'Google_Service_BigLakeService_Resource_ProjectsLocationsCatalogsDatabases');

View File

@@ -0,0 +1,155 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService\Resource;
use Google\Service\BigLakeService\ListTablesResponse;
use Google\Service\BigLakeService\RenameTableRequest;
use Google\Service\BigLakeService\Table;
/**
* The "tables" collection of methods.
* Typical usage is:
* <code>
* $biglakeService = new Google\Service\BigLakeService(...);
* $tables = $biglakeService->projects_locations_catalogs_databases_tables;
* </code>
*/
class ProjectsLocationsCatalogsDatabasesTables extends \Google\Service\Resource
{
/**
* Creates a new table. (tables.create)
*
* @param string $parent Required. The parent resource where this table will be
* created. Format: projects/{project_id_or_number}/locations/{location_id}/cata
* logs/{catalog_id}/databases/{database_id}
* @param Table $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tableId Required. The ID to use for the table, which will
* become the final component of the table's resource name.
* @return Table
* @throws \Google\Service\Exception
*/
public function create($parent, Table $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Table::class);
}
/**
* Deletes an existing table specified by the table ID. (tables.delete)
*
* @param string $name Required. The name of the table to delete. Format: projec
* ts/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/datab
* ases/{database_id}/tables/{table_id}
* @param array $optParams Optional parameters.
* @return Table
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Table::class);
}
/**
* Gets the table specified by the resource name. (tables.get)
*
* @param string $name Required. The name of the table to retrieve. Format: proj
* ects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/dat
* abases/{database_id}/tables/{table_id}
* @param array $optParams Optional parameters.
* @return Table
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Table::class);
}
/**
* List all tables in a specified database.
* (tables.listProjectsLocationsCatalogsDatabasesTables)
*
* @param string $parent Required. The parent, which owns this collection of
* tables. Format: projects/{project_id_or_number}/locations/{location_id}/catal
* ogs/{catalog_id}/databases/{database_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of tables to return. The service
* may return fewer than this value. If unspecified, at most 50 tables will be
* returned. The maximum value is 1000; values above 1000 will be coerced to
* 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListTables` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListTables` must match the call
* that provided the page token.
* @opt_param string view The view for the returned tables.
* @return ListTablesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCatalogsDatabasesTables($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTablesResponse::class);
}
/**
* Updates an existing table specified by the table ID. (tables.patch)
*
* @param string $name Output only. The resource name. Format: projects/{project
* _id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{datab
* ase_id}/tables/{table_id}
* @param Table $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. For the
* `FieldMask` definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all
* of the fields that are allowed to update.
* @return Table
* @throws \Google\Service\Exception
*/
public function patch($name, Table $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Table::class);
}
/**
* Renames an existing table specified by the table ID. (tables.rename)
*
* @param string $name Required. The table's `name` field is used to identify
* the table to rename. Format: projects/{project_id_or_number}/locations/{locat
* ion_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}
* @param RenameTableRequest $postBody
* @param array $optParams Optional parameters.
* @return Table
* @throws \Google\Service\Exception
*/
public function rename($name, RenameTableRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rename', [$params], Table::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCatalogsDatabasesTables::class, 'Google_Service_BigLakeService_Resource_ProjectsLocationsCatalogsDatabasesTables');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class SerDeInfo extends \Google\Model
{
/**
* @var string
*/
public $serializationLib;
/**
* @param string
*/
public function setSerializationLib($serializationLib)
{
$this->serializationLib = $serializationLib;
}
/**
* @return string
*/
public function getSerializationLib()
{
return $this->serializationLib;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SerDeInfo::class, 'Google_Service_BigLakeService_SerDeInfo');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class StorageDescriptor extends \Google\Model
{
/**
* @var string
*/
public $inputFormat;
/**
* @var string
*/
public $locationUri;
/**
* @var string
*/
public $outputFormat;
protected $serdeInfoType = SerDeInfo::class;
protected $serdeInfoDataType = '';
/**
* @param string
*/
public function setInputFormat($inputFormat)
{
$this->inputFormat = $inputFormat;
}
/**
* @return string
*/
public function getInputFormat()
{
return $this->inputFormat;
}
/**
* @param string
*/
public function setLocationUri($locationUri)
{
$this->locationUri = $locationUri;
}
/**
* @return string
*/
public function getLocationUri()
{
return $this->locationUri;
}
/**
* @param string
*/
public function setOutputFormat($outputFormat)
{
$this->outputFormat = $outputFormat;
}
/**
* @return string
*/
public function getOutputFormat()
{
return $this->outputFormat;
}
/**
* @param SerDeInfo
*/
public function setSerdeInfo(SerDeInfo $serdeInfo)
{
$this->serdeInfo = $serdeInfo;
}
/**
* @return SerDeInfo
*/
public function getSerdeInfo()
{
return $this->serdeInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDescriptor::class, 'Google_Service_BigLakeService_StorageDescriptor');

View File

@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigLakeService;
class Table extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $expireTime;
protected $hiveOptionsType = HiveTableOptions::class;
protected $hiveOptionsDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param HiveTableOptions
*/
public function setHiveOptions(HiveTableOptions $hiveOptions)
{
$this->hiveOptions = $hiveOptions;
}
/**
* @return HiveTableOptions
*/
public function getHiveOptions()
{
return $this->hiveOptions;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Table::class, 'Google_Service_BigLakeService_Table');