294 lines
4.9 KiB
PHP
294 lines
4.9 KiB
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\VMwareEngine;
|
|
|
|
class Upgrade extends \Google\Collection
|
|
{
|
|
protected $collection_key = 'componentUpgrades';
|
|
protected $componentUpgradesType = VmwareUpgradeComponent::class;
|
|
protected $componentUpgradesDataType = 'array';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $createTime;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $description;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $endTime;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $estimatedDuration;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $etag;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $name;
|
|
protected $scheduleType = Schedule::class;
|
|
protected $scheduleDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $startVersion;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $state;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $targetVersion;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $type;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $uid;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $updateTime;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $version;
|
|
|
|
/**
|
|
* @param VmwareUpgradeComponent[]
|
|
*/
|
|
public function setComponentUpgrades($componentUpgrades)
|
|
{
|
|
$this->componentUpgrades = $componentUpgrades;
|
|
}
|
|
/**
|
|
* @return VmwareUpgradeComponent[]
|
|
*/
|
|
public function getComponentUpgrades()
|
|
{
|
|
return $this->componentUpgrades;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setCreateTime($createTime)
|
|
{
|
|
$this->createTime = $createTime;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCreateTime()
|
|
{
|
|
return $this->createTime;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setEndTime($endTime)
|
|
{
|
|
$this->endTime = $endTime;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEndTime()
|
|
{
|
|
return $this->endTime;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setEstimatedDuration($estimatedDuration)
|
|
{
|
|
$this->estimatedDuration = $estimatedDuration;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEstimatedDuration()
|
|
{
|
|
return $this->estimatedDuration;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setEtag($etag)
|
|
{
|
|
$this->etag = $etag;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEtag()
|
|
{
|
|
return $this->etag;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
/**
|
|
* @param Schedule
|
|
*/
|
|
public function setSchedule(Schedule $schedule)
|
|
{
|
|
$this->schedule = $schedule;
|
|
}
|
|
/**
|
|
* @return Schedule
|
|
*/
|
|
public function getSchedule()
|
|
{
|
|
return $this->schedule;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setStartVersion($startVersion)
|
|
{
|
|
$this->startVersion = $startVersion;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getStartVersion()
|
|
{
|
|
return $this->startVersion;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setState($state)
|
|
{
|
|
$this->state = $state;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getState()
|
|
{
|
|
return $this->state;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setTargetVersion($targetVersion)
|
|
{
|
|
$this->targetVersion = $targetVersion;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTargetVersion()
|
|
{
|
|
return $this->targetVersion;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setType($type)
|
|
{
|
|
$this->type = $type;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setUid($uid)
|
|
{
|
|
$this->uid = $uid;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getUid()
|
|
{
|
|
return $this->uid;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setUpdateTime($updateTime)
|
|
{
|
|
$this->updateTime = $updateTime;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getUpdateTime()
|
|
{
|
|
return $this->updateTime;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setVersion($version)
|
|
{
|
|
$this->version = $version;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getVersion()
|
|
{
|
|
return $this->version;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(Upgrade::class, 'Google_Service_VMwareEngine_Upgrade');
|