diff --git a/src/WorkloadManager/SapDiscoveryComponent.php b/src/WorkloadManager/SapDiscoveryComponent.php index d9c73efdbd..4b69c1604a 100644 --- a/src/WorkloadManager/SapDiscoveryComponent.php +++ b/src/WorkloadManager/SapDiscoveryComponent.php @@ -32,7 +32,11 @@ class SapDiscoveryComponent extends \Google\Collection * @var string */ public $hostProject; - protected $replicationSitesType = SapDiscoveryComponent::class; + /** + * @var string + */ + public $region; + protected $replicationSitesType = SapDiscoveryComponentReplicationSite::class; protected $replicationSitesDataType = 'array'; protected $resourcesType = SapDiscoveryResource::class; protected $resourcesDataType = 'array'; @@ -102,14 +106,28 @@ public function getHostProject() return $this->hostProject; } /** - * @param SapDiscoveryComponent[] + * @param string + */ + public function setRegion($region) + { + $this->region = $region; + } + /** + * @return string + */ + public function getRegion() + { + return $this->region; + } + /** + * @param SapDiscoveryComponentReplicationSite[] */ public function setReplicationSites($replicationSites) { $this->replicationSites = $replicationSites; } /** - * @return SapDiscoveryComponent[] + * @return SapDiscoveryComponentReplicationSite[] */ public function getReplicationSites() { diff --git a/src/WorkloadManager/SapDiscoveryComponentReplicationSite.php b/src/WorkloadManager/SapDiscoveryComponentReplicationSite.php new file mode 100644 index 0000000000..3ab21af0b1 --- /dev/null +++ b/src/WorkloadManager/SapDiscoveryComponentReplicationSite.php @@ -0,0 +1,60 @@ +component = $component; + } + /** + * @return SapDiscoveryComponent + */ + public function getComponent() + { + return $this->component; + } + /** + * @param string + */ + public function setSourceSite($sourceSite) + { + $this->sourceSite = $sourceSite; + } + /** + * @return string + */ + public function getSourceSite() + { + return $this->sourceSite; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SapDiscoveryComponentReplicationSite::class, 'Google_Service_WorkloadManager_SapDiscoveryComponentReplicationSite');