📄 Source: Database.php
<?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
{
/**
* The type is not specified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Represents a database storing tables compatible with Hive Metastore tables.
*/
public const TYPE_HIVE = 'HIVE';
/**
* Output only. The creation time of the database.
*
* @var string
*/
public $createTime;
/**
* Output only. The deletion time of the database. Only set after the database
* is deleted.
*
* @var string
*/
public $deleteTime;
/**
* Output only. The time when this database is considered expired. Only set
* after the database is deleted.
*
* @var string
*/
public $expireTime;
protected $hiveOptionsType = HiveDatabaseOptions::class;
protected $hiveOptionsDataType = '';
/**
* Output only. The resource name. Format: projects/{project_id_or_number}/loc
* ations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
*
* @var string
*/
public $name;
/**
* The database type.
*
* @var string
*/
public $type;
/**
* Output only. The last modification time of the database.
*
* @var string
*/
public $updateTime;
/**
* Output only. The creation time of the database.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The deletion time of the database. Only set after the database
* is deleted.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Output only. The time when this database is considered expired. Only set
* after the database is deleted.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Options of a Hive database.
*
* @param HiveDatabaseOptions $hiveOptions
*/
public function setHiveOptions(HiveDatabaseOptions $hiveOptions)
{
$this->hiveOptions = $hiveOptions;
}
/**
* @return HiveDatabaseOptions
*/
public function getHiveOptions()
{
return $this->hiveOptions;
}
/**
* Output only. The resource name. Format: projects/{project_id_or_number}/loc
* ations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The database type.
*
* Accepted values: TYPE_UNSPECIFIED, HIVE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The last modification time of the database.
*
* @param string $updateTime
*/
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');
← Back