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,25 @@
<?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\CloudAlloyDBAdmin;
class AlloydbEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlloydbEmpty::class, 'Google_Service_CloudAlloyDBAdmin_AlloydbEmpty');

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\CloudAlloyDBAdmin;
class AuthorizedNetwork extends \Google\Model
{
/**
* @var string
*/
public $cidrRange;
/**
* @param string
*/
public function setCidrRange($cidrRange)
{
$this->cidrRange = $cidrRange;
}
/**
* @return string
*/
public function getCidrRange()
{
return $this->cidrRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizedNetwork::class, 'Google_Service_CloudAlloyDBAdmin_AuthorizedNetwork');

View File

@@ -0,0 +1,162 @@
<?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\CloudAlloyDBAdmin;
class AutomatedBackupPolicy extends \Google\Model
{
/**
* @var string
*/
public $backupWindow;
/**
* @var bool
*/
public $enabled;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $location;
protected $quantityBasedRetentionType = QuantityBasedRetention::class;
protected $quantityBasedRetentionDataType = '';
protected $timeBasedRetentionType = TimeBasedRetention::class;
protected $timeBasedRetentionDataType = '';
protected $weeklyScheduleType = WeeklySchedule::class;
protected $weeklyScheduleDataType = '';
/**
* @param string
*/
public function setBackupWindow($backupWindow)
{
$this->backupWindow = $backupWindow;
}
/**
* @return string
*/
public function getBackupWindow()
{
return $this->backupWindow;
}
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param EncryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param QuantityBasedRetention
*/
public function setQuantityBasedRetention(QuantityBasedRetention $quantityBasedRetention)
{
$this->quantityBasedRetention = $quantityBasedRetention;
}
/**
* @return QuantityBasedRetention
*/
public function getQuantityBasedRetention()
{
return $this->quantityBasedRetention;
}
/**
* @param TimeBasedRetention
*/
public function setTimeBasedRetention(TimeBasedRetention $timeBasedRetention)
{
$this->timeBasedRetention = $timeBasedRetention;
}
/**
* @return TimeBasedRetention
*/
public function getTimeBasedRetention()
{
return $this->timeBasedRetention;
}
/**
* @param WeeklySchedule
*/
public function setWeeklySchedule(WeeklySchedule $weeklySchedule)
{
$this->weeklySchedule = $weeklySchedule;
}
/**
* @return WeeklySchedule
*/
public function getWeeklySchedule()
{
return $this->weeklySchedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomatedBackupPolicy::class, 'Google_Service_CloudAlloyDBAdmin_AutomatedBackupPolicy');

View File

@@ -0,0 +1,434 @@
<?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\CloudAlloyDBAdmin;
class Backup extends \Google\Model
{
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $clusterName;
/**
* @var string
*/
public $clusterUid;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $databaseVersion;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = '';
/**
* @var string
*/
public $etag;
protected $expiryQuantityType = QuantityBasedExpiry::class;
protected $expiryQuantityDataType = '';
/**
* @var string
*/
public $expiryTime;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $reconciling;
/**
* @var bool
*/
public $satisfiesPzs;
/**
* @var string
*/
public $sizeBytes;
/**
* @var string
*/
public $state;
/**
* @var string[]
*/
public $tags;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setClusterName($clusterName)
{
$this->clusterName = $clusterName;
}
/**
* @return string
*/
public function getClusterName()
{
return $this->clusterName;
}
/**
* @param string
*/
public function setClusterUid($clusterUid)
{
$this->clusterUid = $clusterUid;
}
/**
* @return string
*/
public function getClusterUid()
{
return $this->clusterUid;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return string
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param EncryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param EncryptionInfo
*/
public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param QuantityBasedExpiry
*/
public function setExpiryQuantity(QuantityBasedExpiry $expiryQuantity)
{
$this->expiryQuantity = $expiryQuantity;
}
/**
* @return QuantityBasedExpiry
*/
public function getExpiryQuantity()
{
return $this->expiryQuantity;
}
/**
* @param string
*/
public function setExpiryTime($expiryTime)
{
$this->expiryTime = $expiryTime;
}
/**
* @return string
*/
public function getExpiryTime()
{
return $this->expiryTime;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param bool
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* @param string
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Backup::class, 'Google_Service_CloudAlloyDBAdmin_Backup');

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\CloudAlloyDBAdmin;
class BackupSource extends \Google\Model
{
/**
* @var string
*/
public $backupName;
/**
* @var string
*/
public $backupUid;
/**
* @param string
*/
public function setBackupName($backupName)
{
$this->backupName = $backupName;
}
/**
* @return string
*/
public function getBackupName()
{
return $this->backupName;
}
/**
* @param string
*/
public function setBackupUid($backupUid)
{
$this->backupUid = $backupUid;
}
/**
* @return string
*/
public function getBackupUid()
{
return $this->backupUid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupSource::class, 'Google_Service_CloudAlloyDBAdmin_BackupSource');

View File

@@ -0,0 +1,25 @@
<?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\CloudAlloyDBAdmin;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_CloudAlloyDBAdmin_CancelOperationRequest');

View File

@@ -0,0 +1,60 @@
<?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\CloudAlloyDBAdmin;
class ClientConnectionConfig extends \Google\Model
{
/**
* @var bool
*/
public $requireConnectors;
protected $sslConfigType = SslConfig::class;
protected $sslConfigDataType = '';
/**
* @param bool
*/
public function setRequireConnectors($requireConnectors)
{
$this->requireConnectors = $requireConnectors;
}
/**
* @return bool
*/
public function getRequireConnectors()
{
return $this->requireConnectors;
}
/**
* @param SslConfig
*/
public function setSslConfig(SslConfig $sslConfig)
{
$this->sslConfig = $sslConfig;
}
/**
* @return SslConfig
*/
public function getSslConfig()
{
return $this->sslConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientConnectionConfig::class, 'Google_Service_CloudAlloyDBAdmin_ClientConnectionConfig');

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\CloudAlloyDBAdmin;
class CloudControl2SharedOperationsReconciliationOperationMetadata extends \Google\Model
{
/**
* @var bool
*/
public $deleteResource;
/**
* @var string
*/
public $exclusiveAction;
/**
* @param bool
*/
public function setDeleteResource($deleteResource)
{
$this->deleteResource = $deleteResource;
}
/**
* @return bool
*/
public function getDeleteResource()
{
return $this->deleteResource;
}
/**
* @param string
*/
public function setExclusiveAction($exclusiveAction)
{
$this->exclusiveAction = $exclusiveAction;
}
/**
* @return string
*/
public function getExclusiveAction()
{
return $this->exclusiveAction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudControl2SharedOperationsReconciliationOperationMetadata::class, 'Google_Service_CloudAlloyDBAdmin_CloudControl2SharedOperationsReconciliationOperationMetadata');

View File

@@ -0,0 +1,588 @@
<?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\CloudAlloyDBAdmin;
class Cluster extends \Google\Model
{
/**
* @var string[]
*/
public $annotations;
protected $automatedBackupPolicyType = AutomatedBackupPolicy::class;
protected $automatedBackupPolicyDataType = '';
protected $backupSourceType = BackupSource::class;
protected $backupSourceDataType = '';
/**
* @var string
*/
public $clusterType;
protected $continuousBackupConfigType = ContinuousBackupConfig::class;
protected $continuousBackupConfigDataType = '';
protected $continuousBackupInfoType = ContinuousBackupInfo::class;
protected $continuousBackupInfoDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $databaseVersion;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $displayName;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = '';
/**
* @var string
*/
public $etag;
protected $initialUserType = UserPassword::class;
protected $initialUserDataType = '';
/**
* @var string[]
*/
public $labels;
protected $maintenanceScheduleType = MaintenanceSchedule::class;
protected $maintenanceScheduleDataType = '';
protected $maintenanceUpdatePolicyType = MaintenanceUpdatePolicy::class;
protected $maintenanceUpdatePolicyDataType = '';
protected $migrationSourceType = MigrationSource::class;
protected $migrationSourceDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
protected $networkConfigType = NetworkConfig::class;
protected $networkConfigDataType = '';
protected $primaryConfigType = PrimaryConfig::class;
protected $primaryConfigDataType = '';
protected $pscConfigType = PscConfig::class;
protected $pscConfigDataType = '';
/**
* @var bool
*/
public $reconciling;
/**
* @var bool
*/
public $satisfiesPzs;
protected $secondaryConfigType = SecondaryConfig::class;
protected $secondaryConfigDataType = '';
protected $sslConfigType = SslConfig::class;
protected $sslConfigDataType = '';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $subscriptionType;
/**
* @var string[]
*/
public $tags;
protected $trialMetadataType = TrialMetadata::class;
protected $trialMetadataDataType = '';
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param AutomatedBackupPolicy
*/
public function setAutomatedBackupPolicy(AutomatedBackupPolicy $automatedBackupPolicy)
{
$this->automatedBackupPolicy = $automatedBackupPolicy;
}
/**
* @return AutomatedBackupPolicy
*/
public function getAutomatedBackupPolicy()
{
return $this->automatedBackupPolicy;
}
/**
* @param BackupSource
*/
public function setBackupSource(BackupSource $backupSource)
{
$this->backupSource = $backupSource;
}
/**
* @return BackupSource
*/
public function getBackupSource()
{
return $this->backupSource;
}
/**
* @param string
*/
public function setClusterType($clusterType)
{
$this->clusterType = $clusterType;
}
/**
* @return string
*/
public function getClusterType()
{
return $this->clusterType;
}
/**
* @param ContinuousBackupConfig
*/
public function setContinuousBackupConfig(ContinuousBackupConfig $continuousBackupConfig)
{
$this->continuousBackupConfig = $continuousBackupConfig;
}
/**
* @return ContinuousBackupConfig
*/
public function getContinuousBackupConfig()
{
return $this->continuousBackupConfig;
}
/**
* @param ContinuousBackupInfo
*/
public function setContinuousBackupInfo(ContinuousBackupInfo $continuousBackupInfo)
{
$this->continuousBackupInfo = $continuousBackupInfo;
}
/**
* @return ContinuousBackupInfo
*/
public function getContinuousBackupInfo()
{
return $this->continuousBackupInfo;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return string
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param EncryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param EncryptionInfo
*/
public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param UserPassword
*/
public function setInitialUser(UserPassword $initialUser)
{
$this->initialUser = $initialUser;
}
/**
* @return UserPassword
*/
public function getInitialUser()
{
return $this->initialUser;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param MaintenanceSchedule
*/
public function setMaintenanceSchedule(MaintenanceSchedule $maintenanceSchedule)
{
$this->maintenanceSchedule = $maintenanceSchedule;
}
/**
* @return MaintenanceSchedule
*/
public function getMaintenanceSchedule()
{
return $this->maintenanceSchedule;
}
/**
* @param MaintenanceUpdatePolicy
*/
public function setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy $maintenanceUpdatePolicy)
{
$this->maintenanceUpdatePolicy = $maintenanceUpdatePolicy;
}
/**
* @return MaintenanceUpdatePolicy
*/
public function getMaintenanceUpdatePolicy()
{
return $this->maintenanceUpdatePolicy;
}
/**
* @param MigrationSource
*/
public function setMigrationSource(MigrationSource $migrationSource)
{
$this->migrationSource = $migrationSource;
}
/**
* @return MigrationSource
*/
public function getMigrationSource()
{
return $this->migrationSource;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param NetworkConfig
*/
public function setNetworkConfig(NetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return NetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* @param PrimaryConfig
*/
public function setPrimaryConfig(PrimaryConfig $primaryConfig)
{
$this->primaryConfig = $primaryConfig;
}
/**
* @return PrimaryConfig
*/
public function getPrimaryConfig()
{
return $this->primaryConfig;
}
/**
* @param PscConfig
*/
public function setPscConfig(PscConfig $pscConfig)
{
$this->pscConfig = $pscConfig;
}
/**
* @return PscConfig
*/
public function getPscConfig()
{
return $this->pscConfig;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param bool
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* @param SecondaryConfig
*/
public function setSecondaryConfig(SecondaryConfig $secondaryConfig)
{
$this->secondaryConfig = $secondaryConfig;
}
/**
* @return SecondaryConfig
*/
public function getSecondaryConfig()
{
return $this->secondaryConfig;
}
/**
* @param SslConfig
*/
public function setSslConfig(SslConfig $sslConfig)
{
$this->sslConfig = $sslConfig;
}
/**
* @return SslConfig
*/
public function getSslConfig()
{
return $this->sslConfig;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setSubscriptionType($subscriptionType)
{
$this->subscriptionType = $subscriptionType;
}
/**
* @return string
*/
public function getSubscriptionType()
{
return $this->subscriptionType;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @param TrialMetadata
*/
public function setTrialMetadata(TrialMetadata $trialMetadata)
{
$this->trialMetadata = $trialMetadata;
}
/**
* @return TrialMetadata
*/
public function getTrialMetadata()
{
return $this->trialMetadata;
}
/**
* @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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cluster::class, 'Google_Service_CloudAlloyDBAdmin_Cluster');

View File

@@ -0,0 +1,131 @@
<?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\CloudAlloyDBAdmin;
class ClusterUpgradeDetails extends \Google\Collection
{
protected $collection_key = 'stageInfo';
/**
* @var string
*/
public $clusterType;
/**
* @var string
*/
public $databaseVersion;
protected $instanceUpgradeDetailsType = InstanceUpgradeDetails::class;
protected $instanceUpgradeDetailsDataType = 'array';
/**
* @var string
*/
public $name;
protected $stageInfoType = StageInfo::class;
protected $stageInfoDataType = 'array';
/**
* @var string
*/
public $upgradeStatus;
/**
* @param string
*/
public function setClusterType($clusterType)
{
$this->clusterType = $clusterType;
}
/**
* @return string
*/
public function getClusterType()
{
return $this->clusterType;
}
/**
* @param string
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return string
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* @param InstanceUpgradeDetails[]
*/
public function setInstanceUpgradeDetails($instanceUpgradeDetails)
{
$this->instanceUpgradeDetails = $instanceUpgradeDetails;
}
/**
* @return InstanceUpgradeDetails[]
*/
public function getInstanceUpgradeDetails()
{
return $this->instanceUpgradeDetails;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param StageInfo[]
*/
public function setStageInfo($stageInfo)
{
$this->stageInfo = $stageInfo;
}
/**
* @return StageInfo[]
*/
public function getStageInfo()
{
return $this->stageInfo;
}
/**
* @param string
*/
public function setUpgradeStatus($upgradeStatus)
{
$this->upgradeStatus = $upgradeStatus;
}
/**
* @return string
*/
public function getUpgradeStatus()
{
return $this->upgradeStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterUpgradeDetails::class, 'Google_Service_CloudAlloyDBAdmin_ClusterUpgradeDetails');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class ConnectionInfo extends \Google\Model
{
/**
* @var string
*/
public $instanceUid;
/**
* @var string
*/
public $ipAddress;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $publicIpAddress;
/**
* @param string
*/
public function setInstanceUid($instanceUid)
{
$this->instanceUid = $instanceUid;
}
/**
* @return string
*/
public function getInstanceUid()
{
return $this->instanceUid;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPublicIpAddress($publicIpAddress)
{
$this->publicIpAddress = $publicIpAddress;
}
/**
* @return string
*/
public function getPublicIpAddress()
{
return $this->publicIpAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectionInfo::class, 'Google_Service_CloudAlloyDBAdmin_ConnectionInfo');

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\CloudAlloyDBAdmin;
class ContinuousBackupConfig extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* @var int
*/
public $recoveryWindowDays;
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param EncryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param int
*/
public function setRecoveryWindowDays($recoveryWindowDays)
{
$this->recoveryWindowDays = $recoveryWindowDays;
}
/**
* @return int
*/
public function getRecoveryWindowDays()
{
return $this->recoveryWindowDays;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContinuousBackupConfig::class, 'Google_Service_CloudAlloyDBAdmin_ContinuousBackupConfig');

View File

@@ -0,0 +1,97 @@
<?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\CloudAlloyDBAdmin;
class ContinuousBackupInfo extends \Google\Collection
{
protected $collection_key = 'schedule';
/**
* @var string
*/
public $earliestRestorableTime;
/**
* @var string
*/
public $enabledTime;
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = '';
/**
* @var string[]
*/
public $schedule;
/**
* @param string
*/
public function setEarliestRestorableTime($earliestRestorableTime)
{
$this->earliestRestorableTime = $earliestRestorableTime;
}
/**
* @return string
*/
public function getEarliestRestorableTime()
{
return $this->earliestRestorableTime;
}
/**
* @param string
*/
public function setEnabledTime($enabledTime)
{
$this->enabledTime = $enabledTime;
}
/**
* @return string
*/
public function getEnabledTime()
{
return $this->enabledTime;
}
/**
* @param EncryptionInfo
*/
public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* @param string[]
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string[]
*/
public function getSchedule()
{
return $this->schedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContinuousBackupInfo::class, 'Google_Service_CloudAlloyDBAdmin_ContinuousBackupInfo');

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\CloudAlloyDBAdmin;
class ContinuousBackupSource extends \Google\Model
{
/**
* @var string
*/
public $cluster;
/**
* @var string
*/
public $pointInTime;
/**
* @param string
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* @param string
*/
public function setPointInTime($pointInTime)
{
$this->pointInTime = $pointInTime;
}
/**
* @return string
*/
public function getPointInTime()
{
return $this->pointInTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContinuousBackupSource::class, 'Google_Service_CloudAlloyDBAdmin_ContinuousBackupSource');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class CsvExportOptions extends \Google\Model
{
/**
* @var string
*/
public $escapeCharacter;
/**
* @var string
*/
public $fieldDelimiter;
/**
* @var string
*/
public $quoteCharacter;
/**
* @var string
*/
public $selectQuery;
/**
* @param string
*/
public function setEscapeCharacter($escapeCharacter)
{
$this->escapeCharacter = $escapeCharacter;
}
/**
* @return string
*/
public function getEscapeCharacter()
{
return $this->escapeCharacter;
}
/**
* @param string
*/
public function setFieldDelimiter($fieldDelimiter)
{
$this->fieldDelimiter = $fieldDelimiter;
}
/**
* @return string
*/
public function getFieldDelimiter()
{
return $this->fieldDelimiter;
}
/**
* @param string
*/
public function setQuoteCharacter($quoteCharacter)
{
$this->quoteCharacter = $quoteCharacter;
}
/**
* @return string
*/
public function getQuoteCharacter()
{
return $this->quoteCharacter;
}
/**
* @param string
*/
public function setSelectQuery($selectQuery)
{
$this->selectQuery = $selectQuery;
}
/**
* @return string
*/
public function getSelectQuery()
{
return $this->selectQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CsvExportOptions::class, 'Google_Service_CloudAlloyDBAdmin_CsvExportOptions');

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\CloudAlloyDBAdmin;
class EncryptionConfig extends \Google\Model
{
/**
* @var string
*/
public $kmsKeyName;
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfig::class, 'Google_Service_CloudAlloyDBAdmin_EncryptionConfig');

View File

@@ -0,0 +1,63 @@
<?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\CloudAlloyDBAdmin;
class EncryptionInfo extends \Google\Collection
{
protected $collection_key = 'kmsKeyVersions';
/**
* @var string
*/
public $encryptionType;
/**
* @var string[]
*/
public $kmsKeyVersions;
/**
* @param string
*/
public function setEncryptionType($encryptionType)
{
$this->encryptionType = $encryptionType;
}
/**
* @return string
*/
public function getEncryptionType()
{
return $this->encryptionType;
}
/**
* @param string[]
*/
public function setKmsKeyVersions($kmsKeyVersions)
{
$this->kmsKeyVersions = $kmsKeyVersions;
}
/**
* @return string[]
*/
public function getKmsKeyVersions()
{
return $this->kmsKeyVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionInfo::class, 'Google_Service_CloudAlloyDBAdmin_EncryptionInfo');

View File

@@ -0,0 +1,92 @@
<?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\CloudAlloyDBAdmin;
class ExportClusterRequest extends \Google\Model
{
protected $csvExportOptionsType = CsvExportOptions::class;
protected $csvExportOptionsDataType = '';
/**
* @var string
*/
public $database;
protected $gcsDestinationType = GcsDestination::class;
protected $gcsDestinationDataType = '';
protected $sqlExportOptionsType = SqlExportOptions::class;
protected $sqlExportOptionsDataType = '';
/**
* @param CsvExportOptions
*/
public function setCsvExportOptions(CsvExportOptions $csvExportOptions)
{
$this->csvExportOptions = $csvExportOptions;
}
/**
* @return CsvExportOptions
*/
public function getCsvExportOptions()
{
return $this->csvExportOptions;
}
/**
* @param string
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* @param GcsDestination
*/
public function setGcsDestination(GcsDestination $gcsDestination)
{
$this->gcsDestination = $gcsDestination;
}
/**
* @return GcsDestination
*/
public function getGcsDestination()
{
return $this->gcsDestination;
}
/**
* @param SqlExportOptions
*/
public function setSqlExportOptions(SqlExportOptions $sqlExportOptions)
{
$this->sqlExportOptions = $sqlExportOptions;
}
/**
* @return SqlExportOptions
*/
public function getSqlExportOptions()
{
return $this->sqlExportOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_ExportClusterRequest');

View File

@@ -0,0 +1,42 @@
<?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\CloudAlloyDBAdmin;
class ExportClusterResponse extends \Google\Model
{
protected $gcsDestinationType = GcsDestination::class;
protected $gcsDestinationDataType = '';
/**
* @param GcsDestination
*/
public function setGcsDestination(GcsDestination $gcsDestination)
{
$this->gcsDestination = $gcsDestination;
}
/**
* @return GcsDestination
*/
public function getGcsDestination()
{
return $this->gcsDestination;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportClusterResponse::class, 'Google_Service_CloudAlloyDBAdmin_ExportClusterResponse');

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\CloudAlloyDBAdmin;
class FailoverInstanceRequest extends \Google\Model
{
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailoverInstanceRequest::class, 'Google_Service_CloudAlloyDBAdmin_FailoverInstanceRequest');

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\CloudAlloyDBAdmin;
class GcsDestination extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcsDestination::class, 'Google_Service_CloudAlloyDBAdmin_GcsDestination');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class GenerateClientCertificateRequest extends \Google\Model
{
/**
* @var string
*/
public $certDuration;
/**
* @var string
*/
public $publicKey;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $useMetadataExchange;
/**
* @param string
*/
public function setCertDuration($certDuration)
{
$this->certDuration = $certDuration;
}
/**
* @return string
*/
public function getCertDuration()
{
return $this->certDuration;
}
/**
* @param string
*/
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey()
{
return $this->publicKey;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setUseMetadataExchange($useMetadataExchange)
{
$this->useMetadataExchange = $useMetadataExchange;
}
/**
* @return bool
*/
public function getUseMetadataExchange()
{
return $this->useMetadataExchange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateClientCertificateRequest::class, 'Google_Service_CloudAlloyDBAdmin_GenerateClientCertificateRequest');

View File

@@ -0,0 +1,63 @@
<?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\CloudAlloyDBAdmin;
class GenerateClientCertificateResponse extends \Google\Collection
{
protected $collection_key = 'pemCertificateChain';
/**
* @var string
*/
public $caCert;
/**
* @var string[]
*/
public $pemCertificateChain;
/**
* @param string
*/
public function setCaCert($caCert)
{
$this->caCert = $caCert;
}
/**
* @return string
*/
public function getCaCert()
{
return $this->caCert;
}
/**
* @param string[]
*/
public function setPemCertificateChain($pemCertificateChain)
{
$this->pemCertificateChain = $pemCertificateChain;
}
/**
* @return string[]
*/
public function getPemCertificateChain()
{
return $this->pemCertificateChain;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateClientCertificateResponse::class, 'Google_Service_CloudAlloyDBAdmin_GenerateClientCertificateResponse');

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\CloudAlloyDBAdmin;
class GoogleCloudLocationListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = GoogleCloudLocationLocation::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudLocationLocation[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return GoogleCloudLocationLocation[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @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(GoogleCloudLocationListLocationsResponse::class, 'Google_Service_CloudAlloyDBAdmin_GoogleCloudLocationListLocationsResponse');

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\CloudAlloyDBAdmin;
class GoogleCloudLocationLocation extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudLocationLocation::class, 'Google_Service_CloudAlloyDBAdmin_GoogleCloudLocationLocation');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class GoogleTypeTimeOfDay extends \Google\Model
{
/**
* @var int
*/
public $hours;
/**
* @var int
*/
public $minutes;
/**
* @var int
*/
public $nanos;
/**
* @var int
*/
public $seconds;
/**
* @param int
*/
public function setHours($hours)
{
$this->hours = $hours;
}
/**
* @return int
*/
public function getHours()
{
return $this->hours;
}
/**
* @param int
*/
public function setMinutes($minutes)
{
$this->minutes = $minutes;
}
/**
* @return int
*/
public function getMinutes()
{
return $this->minutes;
}
/**
* @param int
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* @param int
*/
public function setSeconds($seconds)
{
$this->seconds = $seconds;
}
/**
* @return int
*/
public function getSeconds()
{
return $this->seconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeTimeOfDay::class, 'Google_Service_CloudAlloyDBAdmin_GoogleTypeTimeOfDay');

View File

@@ -0,0 +1,80 @@
<?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\CloudAlloyDBAdmin;
class InjectFaultRequest extends \Google\Model
{
/**
* @var string
*/
public $faultType;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string
*/
public function setFaultType($faultType)
{
$this->faultType = $faultType;
}
/**
* @return string
*/
public function getFaultType()
{
return $this->faultType;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InjectFaultRequest::class, 'Google_Service_CloudAlloyDBAdmin_InjectFaultRequest');

View File

@@ -0,0 +1,497 @@
<?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\CloudAlloyDBAdmin;
class Instance extends \Google\Collection
{
protected $collection_key = 'outboundPublicIpAddresses';
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $availabilityType;
protected $clientConnectionConfigType = ClientConnectionConfig::class;
protected $clientConnectionConfigDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string[]
*/
public $databaseFlags;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $gceZone;
/**
* @var string
*/
public $instanceType;
/**
* @var string
*/
public $ipAddress;
/**
* @var string[]
*/
public $labels;
protected $machineConfigType = MachineConfig::class;
protected $machineConfigDataType = '';
/**
* @var string
*/
public $name;
protected $networkConfigType = InstanceNetworkConfig::class;
protected $networkConfigDataType = '';
protected $nodesType = Node::class;
protected $nodesDataType = 'array';
/**
* @var string[]
*/
public $outboundPublicIpAddresses;
protected $pscInstanceConfigType = PscInstanceConfig::class;
protected $pscInstanceConfigDataType = '';
/**
* @var string
*/
public $publicIpAddress;
protected $queryInsightsConfigType = QueryInsightsInstanceConfig::class;
protected $queryInsightsConfigDataType = '';
protected $readPoolConfigType = ReadPoolConfig::class;
protected $readPoolConfigDataType = '';
/**
* @var bool
*/
public $reconciling;
/**
* @var bool
*/
public $satisfiesPzs;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
protected $writableNodeType = Node::class;
protected $writableNodeDataType = '';
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setAvailabilityType($availabilityType)
{
$this->availabilityType = $availabilityType;
}
/**
* @return string
*/
public function getAvailabilityType()
{
return $this->availabilityType;
}
/**
* @param ClientConnectionConfig
*/
public function setClientConnectionConfig(ClientConnectionConfig $clientConnectionConfig)
{
$this->clientConnectionConfig = $clientConnectionConfig;
}
/**
* @return ClientConnectionConfig
*/
public function getClientConnectionConfig()
{
return $this->clientConnectionConfig;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string[]
*/
public function setDatabaseFlags($databaseFlags)
{
$this->databaseFlags = $databaseFlags;
}
/**
* @return string[]
*/
public function getDatabaseFlags()
{
return $this->databaseFlags;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setGceZone($gceZone)
{
$this->gceZone = $gceZone;
}
/**
* @return string
*/
public function getGceZone()
{
return $this->gceZone;
}
/**
* @param string
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param MachineConfig
*/
public function setMachineConfig(MachineConfig $machineConfig)
{
$this->machineConfig = $machineConfig;
}
/**
* @return MachineConfig
*/
public function getMachineConfig()
{
return $this->machineConfig;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param InstanceNetworkConfig
*/
public function setNetworkConfig(InstanceNetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return InstanceNetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* @param Node[]
*/
public function setNodes($nodes)
{
$this->nodes = $nodes;
}
/**
* @return Node[]
*/
public function getNodes()
{
return $this->nodes;
}
/**
* @param string[]
*/
public function setOutboundPublicIpAddresses($outboundPublicIpAddresses)
{
$this->outboundPublicIpAddresses = $outboundPublicIpAddresses;
}
/**
* @return string[]
*/
public function getOutboundPublicIpAddresses()
{
return $this->outboundPublicIpAddresses;
}
/**
* @param PscInstanceConfig
*/
public function setPscInstanceConfig(PscInstanceConfig $pscInstanceConfig)
{
$this->pscInstanceConfig = $pscInstanceConfig;
}
/**
* @return PscInstanceConfig
*/
public function getPscInstanceConfig()
{
return $this->pscInstanceConfig;
}
/**
* @param string
*/
public function setPublicIpAddress($publicIpAddress)
{
$this->publicIpAddress = $publicIpAddress;
}
/**
* @return string
*/
public function getPublicIpAddress()
{
return $this->publicIpAddress;
}
/**
* @param QueryInsightsInstanceConfig
*/
public function setQueryInsightsConfig(QueryInsightsInstanceConfig $queryInsightsConfig)
{
$this->queryInsightsConfig = $queryInsightsConfig;
}
/**
* @return QueryInsightsInstanceConfig
*/
public function getQueryInsightsConfig()
{
return $this->queryInsightsConfig;
}
/**
* @param ReadPoolConfig
*/
public function setReadPoolConfig(ReadPoolConfig $readPoolConfig)
{
$this->readPoolConfig = $readPoolConfig;
}
/**
* @return ReadPoolConfig
*/
public function getReadPoolConfig()
{
return $this->readPoolConfig;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param bool
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @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 Node
*/
public function setWritableNode(Node $writableNode)
{
$this->writableNode = $writableNode;
}
/**
* @return Node
*/
public function getWritableNode()
{
return $this->writableNode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_CloudAlloyDBAdmin_Instance');

View File

@@ -0,0 +1,79 @@
<?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\CloudAlloyDBAdmin;
class InstanceNetworkConfig extends \Google\Collection
{
protected $collection_key = 'authorizedExternalNetworks';
protected $authorizedExternalNetworksType = AuthorizedNetwork::class;
protected $authorizedExternalNetworksDataType = 'array';
/**
* @var bool
*/
public $enableOutboundPublicIp;
/**
* @var bool
*/
public $enablePublicIp;
/**
* @param AuthorizedNetwork[]
*/
public function setAuthorizedExternalNetworks($authorizedExternalNetworks)
{
$this->authorizedExternalNetworks = $authorizedExternalNetworks;
}
/**
* @return AuthorizedNetwork[]
*/
public function getAuthorizedExternalNetworks()
{
return $this->authorizedExternalNetworks;
}
/**
* @param bool
*/
public function setEnableOutboundPublicIp($enableOutboundPublicIp)
{
$this->enableOutboundPublicIp = $enableOutboundPublicIp;
}
/**
* @return bool
*/
public function getEnableOutboundPublicIp()
{
return $this->enableOutboundPublicIp;
}
/**
* @param bool
*/
public function setEnablePublicIp($enablePublicIp)
{
$this->enablePublicIp = $enablePublicIp;
}
/**
* @return bool
*/
public function getEnablePublicIp()
{
return $this->enablePublicIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceNetworkConfig::class, 'Google_Service_CloudAlloyDBAdmin_InstanceNetworkConfig');

View File

@@ -0,0 +1,80 @@
<?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\CloudAlloyDBAdmin;
class InstanceUpgradeDetails extends \Google\Model
{
/**
* @var string
*/
public $instanceType;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $upgradeStatus;
/**
* @param string
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUpgradeStatus($upgradeStatus)
{
$this->upgradeStatus = $upgradeStatus;
}
/**
* @return string
*/
public function getUpgradeStatus()
{
return $this->upgradeStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceUpgradeDetails::class, 'Google_Service_CloudAlloyDBAdmin_InstanceUpgradeDetails');

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\CloudAlloyDBAdmin;
class IntegerRestrictions extends \Google\Model
{
/**
* @var string
*/
public $maxValue;
/**
* @var string
*/
public $minValue;
/**
* @param string
*/
public function setMaxValue($maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return string
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* @param string
*/
public function setMinValue($minValue)
{
$this->minValue = $minValue;
}
/**
* @return string
*/
public function getMinValue()
{
return $this->minValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IntegerRestrictions::class, 'Google_Service_CloudAlloyDBAdmin_IntegerRestrictions');

View File

@@ -0,0 +1,79 @@
<?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\CloudAlloyDBAdmin;
class ListBackupsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupsType = Backup::class;
protected $backupsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Backup[]
*/
public function setBackups($backups)
{
$this->backups = $backups;
}
/**
* @return Backup[]
*/
public function getBackups()
{
return $this->backups;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBackupsResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListBackupsResponse');

View File

@@ -0,0 +1,79 @@
<?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\CloudAlloyDBAdmin;
class ListClustersResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $clustersType = Cluster::class;
protected $clustersDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Cluster[]
*/
public function setClusters($clusters)
{
$this->clusters = $clusters;
}
/**
* @return Cluster[]
*/
public function getClusters()
{
return $this->clusters;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListClustersResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListClustersResponse');

View File

@@ -0,0 +1,79 @@
<?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\CloudAlloyDBAdmin;
class ListInstancesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $instancesType = Instance::class;
protected $instancesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Instance[]
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListInstancesResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListInstancesResponse');

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\CloudAlloyDBAdmin;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListOperationsResponse');

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\CloudAlloyDBAdmin;
class ListSupportedDatabaseFlagsResponse extends \Google\Collection
{
protected $collection_key = 'supportedDatabaseFlags';
/**
* @var string
*/
public $nextPageToken;
protected $supportedDatabaseFlagsType = SupportedDatabaseFlag::class;
protected $supportedDatabaseFlagsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param SupportedDatabaseFlag[]
*/
public function setSupportedDatabaseFlags($supportedDatabaseFlags)
{
$this->supportedDatabaseFlags = $supportedDatabaseFlags;
}
/**
* @return SupportedDatabaseFlag[]
*/
public function getSupportedDatabaseFlags()
{
return $this->supportedDatabaseFlags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSupportedDatabaseFlagsResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListSupportedDatabaseFlagsResponse');

View File

@@ -0,0 +1,79 @@
<?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\CloudAlloyDBAdmin;
class ListUsersResponse extends \Google\Collection
{
protected $collection_key = 'users';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $usersType = User::class;
protected $usersDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* @param User[]
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return User[]
*/
public function getUsers()
{
return $this->users;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUsersResponse::class, 'Google_Service_CloudAlloyDBAdmin_ListUsersResponse');

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\CloudAlloyDBAdmin;
class MachineConfig extends \Google\Model
{
/**
* @var int
*/
public $cpuCount;
/**
* @param int
*/
public function setCpuCount($cpuCount)
{
$this->cpuCount = $cpuCount;
}
/**
* @return int
*/
public function getCpuCount()
{
return $this->cpuCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MachineConfig::class, 'Google_Service_CloudAlloyDBAdmin_MachineConfig');

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\CloudAlloyDBAdmin;
class MaintenanceSchedule extends \Google\Model
{
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceSchedule::class, 'Google_Service_CloudAlloyDBAdmin_MaintenanceSchedule');

View File

@@ -0,0 +1,43 @@
<?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\CloudAlloyDBAdmin;
class MaintenanceUpdatePolicy extends \Google\Collection
{
protected $collection_key = 'maintenanceWindows';
protected $maintenanceWindowsType = MaintenanceWindow::class;
protected $maintenanceWindowsDataType = 'array';
/**
* @param MaintenanceWindow[]
*/
public function setMaintenanceWindows($maintenanceWindows)
{
$this->maintenanceWindows = $maintenanceWindows;
}
/**
* @return MaintenanceWindow[]
*/
public function getMaintenanceWindows()
{
return $this->maintenanceWindows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceUpdatePolicy::class, 'Google_Service_CloudAlloyDBAdmin_MaintenanceUpdatePolicy');

View File

@@ -0,0 +1,60 @@
<?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\CloudAlloyDBAdmin;
class MaintenanceWindow extends \Google\Model
{
/**
* @var string
*/
public $day;
protected $startTimeType = GoogleTypeTimeOfDay::class;
protected $startTimeDataType = '';
/**
* @param string
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return string
*/
public function getDay()
{
return $this->day;
}
/**
* @param GoogleTypeTimeOfDay
*/
public function setStartTime(GoogleTypeTimeOfDay $startTime)
{
$this->startTime = $startTime;
}
/**
* @return GoogleTypeTimeOfDay
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceWindow::class, 'Google_Service_CloudAlloyDBAdmin_MaintenanceWindow');

View File

@@ -0,0 +1,80 @@
<?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\CloudAlloyDBAdmin;
class MigrationSource extends \Google\Model
{
/**
* @var string
*/
public $hostPort;
/**
* @var string
*/
public $referenceId;
/**
* @var string
*/
public $sourceType;
/**
* @param string
*/
public function setHostPort($hostPort)
{
$this->hostPort = $hostPort;
}
/**
* @return string
*/
public function getHostPort()
{
return $this->hostPort;
}
/**
* @param string
*/
public function setReferenceId($referenceId)
{
$this->referenceId = $referenceId;
}
/**
* @return string
*/
public function getReferenceId()
{
return $this->referenceId;
}
/**
* @param string
*/
public function setSourceType($sourceType)
{
$this->sourceType = $sourceType;
}
/**
* @return string
*/
public function getSourceType()
{
return $this->sourceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MigrationSource::class, 'Google_Service_CloudAlloyDBAdmin_MigrationSource');

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\CloudAlloyDBAdmin;
class NetworkConfig extends \Google\Model
{
/**
* @var string
*/
public $allocatedIpRange;
/**
* @var string
*/
public $network;
/**
* @param string
*/
public function setAllocatedIpRange($allocatedIpRange)
{
$this->allocatedIpRange = $allocatedIpRange;
}
/**
* @return string
*/
public function getAllocatedIpRange()
{
return $this->allocatedIpRange;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkConfig::class, 'Google_Service_CloudAlloyDBAdmin_NetworkConfig');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class Node extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $ip;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $zoneId;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setIp($ip)
{
$this->ip = $ip;
}
/**
* @return string
*/
public function getIp()
{
return $this->ip;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setZoneId($zoneId)
{
$this->zoneId = $zoneId;
}
/**
* @return string
*/
public function getZoneId()
{
return $this->zoneId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Node::class, 'Google_Service_CloudAlloyDBAdmin_Node');

View File

@@ -0,0 +1,114 @@
<?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\CloudAlloyDBAdmin;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_CloudAlloyDBAdmin_Operation');

View File

@@ -0,0 +1,152 @@
<?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\CloudAlloyDBAdmin;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_CloudAlloyDBAdmin_OperationMetadata');

View File

@@ -0,0 +1,45 @@
<?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\CloudAlloyDBAdmin;
class PrimaryConfig extends \Google\Collection
{
protected $collection_key = 'secondaryClusterNames';
/**
* @var string[]
*/
public $secondaryClusterNames;
/**
* @param string[]
*/
public function setSecondaryClusterNames($secondaryClusterNames)
{
$this->secondaryClusterNames = $secondaryClusterNames;
}
/**
* @return string[]
*/
public function getSecondaryClusterNames()
{
return $this->secondaryClusterNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrimaryConfig::class, 'Google_Service_CloudAlloyDBAdmin_PrimaryConfig');

View File

@@ -0,0 +1,80 @@
<?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\CloudAlloyDBAdmin;
class PromoteClusterRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PromoteClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_PromoteClusterRequest');

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\CloudAlloyDBAdmin;
class PscConfig extends \Google\Model
{
/**
* @var bool
*/
public $pscEnabled;
/**
* @param bool
*/
public function setPscEnabled($pscEnabled)
{
$this->pscEnabled = $pscEnabled;
}
/**
* @return bool
*/
public function getPscEnabled()
{
return $this->pscEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscConfig::class, 'Google_Service_CloudAlloyDBAdmin_PscConfig');

View File

@@ -0,0 +1,81 @@
<?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\CloudAlloyDBAdmin;
class PscInstanceConfig extends \Google\Collection
{
protected $collection_key = 'allowedConsumerProjects';
/**
* @var string[]
*/
public $allowedConsumerProjects;
/**
* @var string
*/
public $pscDnsName;
/**
* @var string
*/
public $serviceAttachmentLink;
/**
* @param string[]
*/
public function setAllowedConsumerProjects($allowedConsumerProjects)
{
$this->allowedConsumerProjects = $allowedConsumerProjects;
}
/**
* @return string[]
*/
public function getAllowedConsumerProjects()
{
return $this->allowedConsumerProjects;
}
/**
* @param string
*/
public function setPscDnsName($pscDnsName)
{
$this->pscDnsName = $pscDnsName;
}
/**
* @return string
*/
public function getPscDnsName()
{
return $this->pscDnsName;
}
/**
* @param string
*/
public function setServiceAttachmentLink($serviceAttachmentLink)
{
$this->serviceAttachmentLink = $serviceAttachmentLink;
}
/**
* @return string
*/
public function getServiceAttachmentLink()
{
return $this->serviceAttachmentLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscInstanceConfig::class, 'Google_Service_CloudAlloyDBAdmin_PscInstanceConfig');

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\CloudAlloyDBAdmin;
class QuantityBasedExpiry extends \Google\Model
{
/**
* @var int
*/
public $retentionCount;
/**
* @var int
*/
public $totalRetentionCount;
/**
* @param int
*/
public function setRetentionCount($retentionCount)
{
$this->retentionCount = $retentionCount;
}
/**
* @return int
*/
public function getRetentionCount()
{
return $this->retentionCount;
}
/**
* @param int
*/
public function setTotalRetentionCount($totalRetentionCount)
{
$this->totalRetentionCount = $totalRetentionCount;
}
/**
* @return int
*/
public function getTotalRetentionCount()
{
return $this->totalRetentionCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuantityBasedExpiry::class, 'Google_Service_CloudAlloyDBAdmin_QuantityBasedExpiry');

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\CloudAlloyDBAdmin;
class QuantityBasedRetention extends \Google\Model
{
/**
* @var int
*/
public $count;
/**
* @param int
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuantityBasedRetention::class, 'Google_Service_CloudAlloyDBAdmin_QuantityBasedRetention');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class QueryInsightsInstanceConfig extends \Google\Model
{
/**
* @var string
*/
public $queryPlansPerMinute;
/**
* @var string
*/
public $queryStringLength;
/**
* @var bool
*/
public $recordApplicationTags;
/**
* @var bool
*/
public $recordClientAddress;
/**
* @param string
*/
public function setQueryPlansPerMinute($queryPlansPerMinute)
{
$this->queryPlansPerMinute = $queryPlansPerMinute;
}
/**
* @return string
*/
public function getQueryPlansPerMinute()
{
return $this->queryPlansPerMinute;
}
/**
* @param string
*/
public function setQueryStringLength($queryStringLength)
{
$this->queryStringLength = $queryStringLength;
}
/**
* @return string
*/
public function getQueryStringLength()
{
return $this->queryStringLength;
}
/**
* @param bool
*/
public function setRecordApplicationTags($recordApplicationTags)
{
$this->recordApplicationTags = $recordApplicationTags;
}
/**
* @return bool
*/
public function getRecordApplicationTags()
{
return $this->recordApplicationTags;
}
/**
* @param bool
*/
public function setRecordClientAddress($recordClientAddress)
{
$this->recordClientAddress = $recordClientAddress;
}
/**
* @return bool
*/
public function getRecordClientAddress()
{
return $this->recordClientAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryInsightsInstanceConfig::class, 'Google_Service_CloudAlloyDBAdmin_QueryInsightsInstanceConfig');

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\CloudAlloyDBAdmin;
class ReadPoolConfig extends \Google\Model
{
/**
* @var int
*/
public $nodeCount;
/**
* @param int
*/
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
/**
* @return int
*/
public function getNodeCount()
{
return $this->nodeCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadPoolConfig::class, 'Google_Service_CloudAlloyDBAdmin_ReadPoolConfig');

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\CloudAlloyDBAdmin\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $projects = $alloydbService->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_CloudAlloyDBAdmin_Resource_Projects');

View File

@@ -0,0 +1,74 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\GoogleCloudLocationListLocationsResponse;
use Google\Service\CloudAlloyDBAdmin\GoogleCloudLocationLocation;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $locations = $alloydbService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return GoogleCloudLocationLocation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudLocationLocation::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return GoogleCloudLocationListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudLocationListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocations');

View File

@@ -0,0 +1,179 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\Backup;
use Google\Service\CloudAlloyDBAdmin\ListBackupsResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
/**
* The "backups" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $backups = $alloydbService->projects_locations_backups;
* </code>
*/
class ProjectsLocationsBackups extends \Google\Service\Resource
{
/**
* Creates a new Backup in a given project and location. (backups.create)
*
* @param string $parent Required. Value for parent.
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Backup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Backup. (backups.delete)
*
* @param string $name Required. Name of the resource. For the required format,
* see the comment on the Backup.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Backup. If an etag
* is provided and does not match the current etag of the Backup, deletion will
* be blocked and an ABORTED error will be returned.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Backup. (backups.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return Backup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Backup::class);
}
/**
* Lists Backups in a given project and location.
* (backups.listProjectsLocationsBackups)
*
* @param string $parent Required. Parent value for ListBackupsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering results
* @opt_param string orderBy Hint for how to order the results
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupsResponse::class);
}
/**
* Updates the parameters of a single Backup. (backups.patch)
*
* @param string $name Output only. The name of the backup resource with the
* format: * projects/{project}/locations/{region}/backups/{backup_id} where the
* cluster and backup ID segments should satisfy the regex expression
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters,
* numbers, and dashes, starting with a letter, and ending with a letter or
* number. For more details see https://google.aip.dev/122. The prefix of the
* backup resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if instance is not found. In that case, a new backup is created and
* `update_mask` is ignored.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Backup resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Backup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackups::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsBackups');

View File

@@ -0,0 +1,315 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\Cluster;
use Google\Service\CloudAlloyDBAdmin\ExportClusterRequest;
use Google\Service\CloudAlloyDBAdmin\ListClustersResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
use Google\Service\CloudAlloyDBAdmin\PromoteClusterRequest;
use Google\Service\CloudAlloyDBAdmin\RestoreClusterRequest;
use Google\Service\CloudAlloyDBAdmin\SwitchoverClusterRequest;
use Google\Service\CloudAlloyDBAdmin\UpgradeClusterRequest;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $clusters = $alloydbService->projects_locations_clusters;
* </code>
*/
class ProjectsLocationsClusters extends \Google\Service\Resource
{
/**
* Creates a new Cluster in a given project and location. (clusters.create)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on the Cluster.name field.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Cluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Creates a cluster of type SECONDARY in the given location using the primary
* cluster as the source. (clusters.createsecondary)
*
* @param string $parent Required. The location of the new cluster. For the
* required format, see the comment on the Cluster.name field.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. ID of the requesting object (the
* secondary cluster).
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createsecondary($parent, Cluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createsecondary', [$params], Operation::class);
}
/**
* Deletes a single Cluster. (clusters.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Cluster. If an etag
* is provided and does not match the current etag of the Cluster, deletion will
* be blocked and an ABORTED error will be returned.
* @opt_param bool force Optional. Whether to cascade delete child instances for
* given cluster.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Exports data from the cluster. Imperative only. (clusters.export)
*
* @param string $name Required. The resource name of the cluster.
* @param ExportClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function export($name, ExportClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], Operation::class);
}
/**
* Gets details of a single Cluster. (clusters.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. The view of the cluster to return. Returns
* all default fields if not set.
* @return Cluster
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Cluster::class);
}
/**
* Lists Clusters in a given project and location.
* (clusters.listProjectsLocationsClusters)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Cluster.name field. Additionally, you
* can perform an aggregated list operation by specifying a value with the
* following format: * projects/{project}/locations/-
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListClustersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClusters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClustersResponse::class);
}
/**
* Updates the parameters of a single Cluster. (clusters.patch)
*
* @param string $name Output only. The name of the cluster resource with the
* format: * projects/{project}/locations/{region}/clusters/{cluster_id} where
* the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For
* more details see https://google.aip.dev/122. The prefix of the cluster
* resource name is the name of the parent resource: *
* projects/{project}/locations/{region}
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if cluster is not found. In that case, a new cluster is created and
* `update_mask` is ignored.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Cluster resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Cluster $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Promotes a SECONDARY cluster. This turns down replication from the PRIMARY
* cluster and promotes a secondary cluster into its own standalone cluster.
* Imperative only. (clusters.promote)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field
* @param PromoteClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function promote($name, PromoteClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('promote', [$params], Operation::class);
}
/**
* Creates a new Cluster in a given project and location, with a volume restored
* from the provided source, either a backup ID or a point-in-time and a source
* cluster. (clusters.restore)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Cluster.name field.
* @param RestoreClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restore($parent, RestoreClusterRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], Operation::class);
}
/**
* Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
* This promotes the SECONDARY cluster to PRIMARY and sets up the original
* PRIMARY cluster to replicate from this newly promoted cluster.
* (clusters.switchover)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Cluster.name field
* @param SwitchoverClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function switchover($name, SwitchoverClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('switchover', [$params], Operation::class);
}
/**
* Upgrades a single Cluster. Imperative only. (clusters.upgrade)
*
* @param string $name Required. The resource name of the cluster.
* @param UpgradeClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function upgrade($name, UpgradeClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upgrade', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClusters::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClusters');

View File

@@ -0,0 +1,305 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\ConnectionInfo;
use Google\Service\CloudAlloyDBAdmin\FailoverInstanceRequest;
use Google\Service\CloudAlloyDBAdmin\InjectFaultRequest;
use Google\Service\CloudAlloyDBAdmin\Instance;
use Google\Service\CloudAlloyDBAdmin\ListInstancesResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
use Google\Service\CloudAlloyDBAdmin\RestartInstanceRequest;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $instances = $alloydbService->projects_locations_clusters_instances;
* </code>
*/
class ProjectsLocationsClustersInstances extends \Google\Service\Resource
{
/**
* Creates a new Instance in a given project and location. (instances.create)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Instance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Creates a new SECONDARY Instance in a given project and location.
* (instances.createsecondary)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. ID of the requesting object.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createsecondary($parent, Instance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createsecondary', [$params], Operation::class);
}
/**
* Deletes a single Instance. (instances.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Instance. If an etag
* is provided and does not match the current etag of the Instance, deletion
* will be blocked and an ABORTED error will be returned.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Forces a Failover for a highly available instance. Failover promotes the HA
* standby instance as the new primary. Imperative only. (instances.failover)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param FailoverInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function failover($name, FailoverInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('failover', [$params], Operation::class);
}
/**
* Gets details of a single Instance. (instances.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string view The view of the instance to return.
* @return Instance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Instance::class);
}
/**
* Get instance metadata used for a connection. (instances.getConnectionInfo)
*
* @param string $parent Required. The name of the parent resource. The required
* format is: projects/{project}/locations/{location}/clusters/{cluster}/instanc
* es/{instance}
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return ConnectionInfo
* @throws \Google\Service\Exception
*/
public function getConnectionInfo($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getConnectionInfo', [$params], ConnectionInfo::class);
}
/**
* Injects fault in an instance. Imperative only. (instances.injectFault)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param InjectFaultRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function injectFault($name, InjectFaultRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('injectFault', [$params], Operation::class);
}
/**
* Lists Instances in a given project and location.
* (instances.listProjectsLocationsClustersInstances)
*
* @param string $parent Required. The name of the parent resource. For the
* required format, see the comment on the Instance.name field. Additionally,
* you can perform an aggregated list operation by specifying a value with one
* of the following formats: * projects/{project}/locations/-/clusters/- *
* projects/{project}/locations/{region}/clusters/-
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClustersInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
/**
* Updates the parameters of a single Instance. (instances.patch)
*
* @param string $name Output only. The name of the instance resource with the
* format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instanc
* es/{instance_id} where the cluster and instance ID segments should satisfy
* the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters
* of lowercase letters, numbers, and dashes, starting with a letter, and ending
* with a letter or number. For more details see https://google.aip.dev/122. The
* prefix of the instance resource name is the name of the parent resource: *
* projects/{project}/locations/{region}/clusters/{cluster_id}
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, update succeeds even
* if instance is not found. In that case, a new instance is created and
* `update_mask` is ignored.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Instance resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, performs request validation,
* for example, permission checks and any other type of validation, but does not
* actually execute the create request.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Instance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Restart an Instance in a cluster. Imperative only. (instances.restart)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the Instance.name field.
* @param RestartInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restart($name, RestartInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restart', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersInstances::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClustersInstances');

View File

@@ -0,0 +1,171 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\AlloydbEmpty;
use Google\Service\CloudAlloyDBAdmin\ListUsersResponse;
use Google\Service\CloudAlloyDBAdmin\User;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $users = $alloydbService->projects_locations_clusters_users;
* </code>
*/
class ProjectsLocationsClustersUsers extends \Google\Service\Resource
{
/**
* Creates a new User in a given project, location, and cluster. (users.create)
*
* @param string $parent Required. Value for parent.
* @param User $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string userId Required. ID of the requesting object.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return User
* @throws \Google\Service\Exception
*/
public function create($parent, User $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], User::class);
}
/**
* Deletes a single User. (users.delete)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the User.name field.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return AlloydbEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AlloydbEmpty::class);
}
/**
* Gets details of a single User. (users.get)
*
* @param string $name Required. The name of the resource. For the required
* format, see the comment on the User.name field.
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], User::class);
}
/**
* Lists Users in a given project and location.
* (users.listProjectsLocationsClustersUsers)
*
* @param string $parent Required. Parent value for ListUsersRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListUsersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClustersUsers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUsersResponse::class);
}
/**
* Updates the parameters of a single User. (users.patch)
*
* @param string $name Output only. Name of the resource in the form of
* projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
* @param User $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. Allow missing fields in the update
* mask.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server ignores the request if it has already been completed. The server
* guarantees that for at least 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server can
* check if the original operation with the same request ID was received, and if
* so, ignores the second request. This prevents clients from accidentally
* creating duplicate commitments. The request ID must be a valid UUID with the
* exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the User resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, the backend validates the
* request, but doesn't actually execute it.
* @return User
* @throws \Google\Service\Exception
*/
public function patch($name, User $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], User::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersUsers::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsClustersUsers');

View File

@@ -0,0 +1,114 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\AlloydbEmpty;
use Google\Service\CloudAlloyDBAdmin\CancelOperationRequest;
use Google\Service\CloudAlloyDBAdmin\ListOperationsResponse;
use Google\Service\CloudAlloyDBAdmin\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $operations = $alloydbService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return AlloydbEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], AlloydbEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return AlloydbEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AlloydbEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,59 @@
<?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\CloudAlloyDBAdmin\Resource;
use Google\Service\CloudAlloyDBAdmin\ListSupportedDatabaseFlagsResponse;
/**
* The "supportedDatabaseFlags" collection of methods.
* Typical usage is:
* <code>
* $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
* $supportedDatabaseFlags = $alloydbService->projects_locations_supportedDatabaseFlags;
* </code>
*/
class ProjectsLocationsSupportedDatabaseFlags extends \Google\Service\Resource
{
/**
* Lists SupportedDatabaseFlags for a given project and location.
* (supportedDatabaseFlags.listProjectsLocationsSupportedDatabaseFlags)
*
* @param string $parent Required. The name of the parent resource. The required
* format is: * projects/{project}/locations/{location} Regardless of the parent
* specified here, as long it is contains a valid project and location, the
* service will return a static list of supported flags resources. Note that we
* do not yet support region-specific flags.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListSupportedDatabaseFlagsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSupportedDatabaseFlags($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSupportedDatabaseFlagsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSupportedDatabaseFlags::class, 'Google_Service_CloudAlloyDBAdmin_Resource_ProjectsLocationsSupportedDatabaseFlags');

View File

@@ -0,0 +1,81 @@
<?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\CloudAlloyDBAdmin;
class RestartInstanceRequest extends \Google\Collection
{
protected $collection_key = 'nodeIds';
/**
* @var string[]
*/
public $nodeIds;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string[]
*/
public function setNodeIds($nodeIds)
{
$this->nodeIds = $nodeIds;
}
/**
* @return string[]
*/
public function getNodeIds()
{
return $this->nodeIds;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestartInstanceRequest::class, 'Google_Service_CloudAlloyDBAdmin_RestartInstanceRequest');

View File

@@ -0,0 +1,128 @@
<?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\CloudAlloyDBAdmin;
class RestoreClusterRequest extends \Google\Model
{
protected $backupSourceType = BackupSource::class;
protected $backupSourceDataType = '';
protected $clusterType = Cluster::class;
protected $clusterDataType = '';
/**
* @var string
*/
public $clusterId;
protected $continuousBackupSourceType = ContinuousBackupSource::class;
protected $continuousBackupSourceDataType = '';
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param BackupSource
*/
public function setBackupSource(BackupSource $backupSource)
{
$this->backupSource = $backupSource;
}
/**
* @return BackupSource
*/
public function getBackupSource()
{
return $this->backupSource;
}
/**
* @param Cluster
*/
public function setCluster(Cluster $cluster)
{
$this->cluster = $cluster;
}
/**
* @return Cluster
*/
public function getCluster()
{
return $this->cluster;
}
/**
* @param string
*/
public function setClusterId($clusterId)
{
$this->clusterId = $clusterId;
}
/**
* @return string
*/
public function getClusterId()
{
return $this->clusterId;
}
/**
* @param ContinuousBackupSource
*/
public function setContinuousBackupSource(ContinuousBackupSource $continuousBackupSource)
{
$this->continuousBackupSource = $continuousBackupSource;
}
/**
* @return ContinuousBackupSource
*/
public function getContinuousBackupSource()
{
return $this->continuousBackupSource;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_RestoreClusterRequest');

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\CloudAlloyDBAdmin;
class SecondaryConfig extends \Google\Model
{
/**
* @var string
*/
public $primaryClusterName;
/**
* @param string
*/
public function setPrimaryClusterName($primaryClusterName)
{
$this->primaryClusterName = $primaryClusterName;
}
/**
* @return string
*/
public function getPrimaryClusterName()
{
return $this->primaryClusterName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecondaryConfig::class, 'Google_Service_CloudAlloyDBAdmin_SecondaryConfig');

View File

@@ -0,0 +1,99 @@
<?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\CloudAlloyDBAdmin;
class SqlExportOptions extends \Google\Collection
{
protected $collection_key = 'tables';
/**
* @var bool
*/
public $cleanTargetObjects;
/**
* @var bool
*/
public $ifExistTargetObjects;
/**
* @var bool
*/
public $schemaOnly;
/**
* @var string[]
*/
public $tables;
/**
* @param bool
*/
public function setCleanTargetObjects($cleanTargetObjects)
{
$this->cleanTargetObjects = $cleanTargetObjects;
}
/**
* @return bool
*/
public function getCleanTargetObjects()
{
return $this->cleanTargetObjects;
}
/**
* @param bool
*/
public function setIfExistTargetObjects($ifExistTargetObjects)
{
$this->ifExistTargetObjects = $ifExistTargetObjects;
}
/**
* @return bool
*/
public function getIfExistTargetObjects()
{
return $this->ifExistTargetObjects;
}
/**
* @param bool
*/
public function setSchemaOnly($schemaOnly)
{
$this->schemaOnly = $schemaOnly;
}
/**
* @return bool
*/
public function getSchemaOnly()
{
return $this->schemaOnly;
}
/**
* @param string[]
*/
public function setTables($tables)
{
$this->tables = $tables;
}
/**
* @return string[]
*/
public function getTables()
{
return $this->tables;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SqlExportOptions::class, 'Google_Service_CloudAlloyDBAdmin_SqlExportOptions');

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\CloudAlloyDBAdmin;
class SslConfig extends \Google\Model
{
/**
* @var string
*/
public $caSource;
/**
* @var string
*/
public $sslMode;
/**
* @param string
*/
public function setCaSource($caSource)
{
$this->caSource = $caSource;
}
/**
* @return string
*/
public function getCaSource()
{
return $this->caSource;
}
/**
* @param string
*/
public function setSslMode($sslMode)
{
$this->sslMode = $sslMode;
}
/**
* @return string
*/
public function getSslMode()
{
return $this->sslMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SslConfig::class, 'Google_Service_CloudAlloyDBAdmin_SslConfig');

View File

@@ -0,0 +1,80 @@
<?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\CloudAlloyDBAdmin;
class StageInfo extends \Google\Model
{
/**
* @var string
*/
public $logsUrl;
/**
* @var string
*/
public $stage;
/**
* @var string
*/
public $status;
/**
* @param string
*/
public function setLogsUrl($logsUrl)
{
$this->logsUrl = $logsUrl;
}
/**
* @return string
*/
public function getLogsUrl()
{
return $this->logsUrl;
}
/**
* @param string
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return string
*/
public function getStage()
{
return $this->stage;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StageInfo::class, 'Google_Service_CloudAlloyDBAdmin_StageInfo');

View File

@@ -0,0 +1,81 @@
<?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\CloudAlloyDBAdmin;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_CloudAlloyDBAdmin_Status');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration extends \Google\Model
{
/**
* @var bool
*/
public $automaticFailoverRoutingConfigured;
/**
* @var string
*/
public $availabilityType;
/**
* @var bool
*/
public $crossRegionReplicaConfigured;
/**
* @var bool
*/
public $externalReplicaConfigured;
/**
* @var bool
*/
public $promotableReplicaConfigured;
/**
* @param bool
*/
public function setAutomaticFailoverRoutingConfigured($automaticFailoverRoutingConfigured)
{
$this->automaticFailoverRoutingConfigured = $automaticFailoverRoutingConfigured;
}
/**
* @return bool
*/
public function getAutomaticFailoverRoutingConfigured()
{
return $this->automaticFailoverRoutingConfigured;
}
/**
* @param string
*/
public function setAvailabilityType($availabilityType)
{
$this->availabilityType = $availabilityType;
}
/**
* @return string
*/
public function getAvailabilityType()
{
return $this->availabilityType;
}
/**
* @param bool
*/
public function setCrossRegionReplicaConfigured($crossRegionReplicaConfigured)
{
$this->crossRegionReplicaConfigured = $crossRegionReplicaConfigured;
}
/**
* @return bool
*/
public function getCrossRegionReplicaConfigured()
{
return $this->crossRegionReplicaConfigured;
}
/**
* @param bool
*/
public function setExternalReplicaConfigured($externalReplicaConfigured)
{
$this->externalReplicaConfigured = $externalReplicaConfigured;
}
/**
* @return bool
*/
public function getExternalReplicaConfigured()
{
return $this->externalReplicaConfigured;
}
/**
* @param bool
*/
public function setPromotableReplicaConfigured($promotableReplicaConfigured)
{
$this->promotableReplicaConfigured = $promotableReplicaConfigured;
}
/**
* @return bool
*/
public function getPromotableReplicaConfigured()
{
return $this->promotableReplicaConfigured;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainBackupConfiguration extends \Google\Model
{
/**
* @var bool
*/
public $automatedBackupEnabled;
protected $backupRetentionSettingsType = StorageDatabasecenterPartnerapiV1mainRetentionSettings::class;
protected $backupRetentionSettingsDataType = '';
/**
* @var bool
*/
public $pointInTimeRecoveryEnabled;
/**
* @param bool
*/
public function setAutomatedBackupEnabled($automatedBackupEnabled)
{
$this->automatedBackupEnabled = $automatedBackupEnabled;
}
/**
* @return bool
*/
public function getAutomatedBackupEnabled()
{
return $this->automatedBackupEnabled;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainRetentionSettings
*/
public function setBackupRetentionSettings(StorageDatabasecenterPartnerapiV1mainRetentionSettings $backupRetentionSettings)
{
$this->backupRetentionSettings = $backupRetentionSettings;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainRetentionSettings
*/
public function getBackupRetentionSettings()
{
return $this->backupRetentionSettings;
}
/**
* @param bool
*/
public function setPointInTimeRecoveryEnabled($pointInTimeRecoveryEnabled)
{
$this->pointInTimeRecoveryEnabled = $pointInTimeRecoveryEnabled;
}
/**
* @return bool
*/
public function getPointInTimeRecoveryEnabled()
{
return $this->pointInTimeRecoveryEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainBackupConfiguration::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBackupConfiguration');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainBackupRun extends \Google\Model
{
/**
* @var string
*/
public $endTime;
protected $errorType = StorageDatabasecenterPartnerapiV1mainOperationError::class;
protected $errorDataType = '';
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $status;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainOperationError
*/
public function setError(StorageDatabasecenterPartnerapiV1mainOperationError $error)
{
$this->error = $error;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainOperationError
*/
public function getError()
{
return $this->error;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainBackupRun::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBackupRun');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainCompliance extends \Google\Model
{
/**
* @var string
*/
public $standard;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setStandard($standard)
{
$this->standard = $standard;
}
/**
* @return string
*/
public function getStandard()
{
return $this->standard;
}
/**
* @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(StorageDatabasecenterPartnerapiV1mainCompliance::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainCompliance');

View File

@@ -0,0 +1,43 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainCustomMetadataData extends \Google\Collection
{
protected $collection_key = 'internalResourceMetadata';
protected $internalResourceMetadataType = StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata::class;
protected $internalResourceMetadataDataType = 'array';
/**
* @param StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata[]
*/
public function setInternalResourceMetadata($internalResourceMetadata)
{
$this->internalResourceMetadata = $internalResourceMetadata;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata[]
*/
public function getInternalResourceMetadata()
{
return $this->internalResourceMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainCustomMetadataData::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainCustomMetadataData');

View File

@@ -0,0 +1,108 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainDatabaseMetadata extends \Google\Model
{
protected $backupConfigurationType = StorageDatabasecenterPartnerapiV1mainBackupConfiguration::class;
protected $backupConfigurationDataType = '';
protected $backupRunType = StorageDatabasecenterPartnerapiV1mainBackupRun::class;
protected $backupRunDataType = '';
protected $productType = StorageDatabasecenterProtoCommonProduct::class;
protected $productDataType = '';
protected $resourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
protected $resourceIdDataType = '';
/**
* @var string
*/
public $resourceName;
/**
* @param StorageDatabasecenterPartnerapiV1mainBackupConfiguration
*/
public function setBackupConfiguration(StorageDatabasecenterPartnerapiV1mainBackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainBackupRun
*/
public function setBackupRun(StorageDatabasecenterPartnerapiV1mainBackupRun $backupRun)
{
$this->backupRun = $backupRun;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupRun
*/
public function getBackupRun()
{
return $this->backupRun;
}
/**
* @param StorageDatabasecenterProtoCommonProduct
*/
public function setProduct(StorageDatabasecenterProtoCommonProduct $product)
{
$this->product = $product;
}
/**
* @return StorageDatabasecenterProtoCommonProduct
*/
public function getProduct()
{
return $this->product;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function setResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainDatabaseMetadata::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainDatabaseMetadata');

View File

@@ -0,0 +1,142 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed extends \Google\Model
{
/**
* @var string
*/
public $feedTimestamp;
/**
* @var string
*/
public $feedType;
protected $observabilityMetricDataType = StorageDatabasecenterPartnerapiV1mainObservabilityMetricData::class;
protected $observabilityMetricDataDataType = '';
protected $recommendationSignalDataType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData::class;
protected $recommendationSignalDataDataType = '';
protected $resourceHealthSignalDataType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData::class;
protected $resourceHealthSignalDataDataType = '';
protected $resourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
protected $resourceIdDataType = '';
protected $resourceMetadataType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata::class;
protected $resourceMetadataDataType = '';
/**
* @param string
*/
public function setFeedTimestamp($feedTimestamp)
{
$this->feedTimestamp = $feedTimestamp;
}
/**
* @return string
*/
public function getFeedTimestamp()
{
return $this->feedTimestamp;
}
/**
* @param string
*/
public function setFeedType($feedType)
{
$this->feedType = $feedType;
}
/**
* @return string
*/
public function getFeedType()
{
return $this->feedType;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainObservabilityMetricData
*/
public function setObservabilityMetricData(StorageDatabasecenterPartnerapiV1mainObservabilityMetricData $observabilityMetricData)
{
$this->observabilityMetricData = $observabilityMetricData;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainObservabilityMetricData
*/
public function getObservabilityMetricData()
{
return $this->observabilityMetricData;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
*/
public function setRecommendationSignalData(StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData $recommendationSignalData)
{
$this->recommendationSignalData = $recommendationSignalData;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
*/
public function getRecommendationSignalData()
{
return $this->recommendationSignalData;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData
*/
public function setResourceHealthSignalData(StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData $resourceHealthSignalData)
{
$this->resourceHealthSignalData = $resourceHealthSignalData;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData
*/
public function getResourceHealthSignalData()
{
return $this->resourceHealthSignalData;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function setResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
*/
public function setResourceMetadata(StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata $resourceMetadata)
{
$this->resourceMetadata = $resourceMetadata;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
*/
public function getResourceMetadata()
{
return $this->resourceMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed');

View File

@@ -0,0 +1,277 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData extends \Google\Collection
{
protected $collection_key = 'compliance';
/**
* @var array[]
*/
public $additionalMetadata;
protected $complianceType = StorageDatabasecenterPartnerapiV1mainCompliance::class;
protected $complianceDataType = 'array';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $eventTime;
/**
* @var string
*/
public $externalUri;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $provider;
/**
* @var string
*/
public $resourceContainer;
/**
* @var string
*/
public $resourceName;
/**
* @var string
*/
public $signalClass;
/**
* @var string
*/
public $signalId;
/**
* @var string
*/
public $signalSeverity;
/**
* @var string
*/
public $signalType;
/**
* @var string
*/
public $state;
/**
* @param array[]
*/
public function setAdditionalMetadata($additionalMetadata)
{
$this->additionalMetadata = $additionalMetadata;
}
/**
* @return array[]
*/
public function getAdditionalMetadata()
{
return $this->additionalMetadata;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainCompliance[]
*/
public function setCompliance($compliance)
{
$this->compliance = $compliance;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainCompliance[]
*/
public function getCompliance()
{
return $this->compliance;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param string
*/
public function setExternalUri($externalUri)
{
$this->externalUri = $externalUri;
}
/**
* @return string
*/
public function getExternalUri()
{
return $this->externalUri;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return string
*/
public function getProvider()
{
return $this->provider;
}
/**
* @param string
*/
public function setResourceContainer($resourceContainer)
{
$this->resourceContainer = $resourceContainer;
}
/**
* @return string
*/
public function getResourceContainer()
{
return $this->resourceContainer;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param string
*/
public function setSignalClass($signalClass)
{
$this->signalClass = $signalClass;
}
/**
* @return string
*/
public function getSignalClass()
{
return $this->signalClass;
}
/**
* @param string
*/
public function setSignalId($signalId)
{
$this->signalId = $signalId;
}
/**
* @return string
*/
public function getSignalId()
{
return $this->signalId;
}
/**
* @param string
*/
public function setSignalSeverity($signalSeverity)
{
$this->signalSeverity = $signalSeverity;
}
/**
* @return string
*/
public function getSignalSeverity()
{
return $this->signalSeverity;
}
/**
* @param string
*/
public function setSignalType($signalType)
{
$this->signalType = $signalType;
}
/**
* @return string
*/
public function getSignalType()
{
return $this->signalType;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainDatabaseResourceId extends \Google\Model
{
/**
* @var string
*/
public $provider;
/**
* @var string
*/
public $providerDescription;
/**
* @var string
*/
public $resourceType;
/**
* @var string
*/
public $uniqueId;
/**
* @param string
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return string
*/
public function getProvider()
{
return $this->provider;
}
/**
* @param string
*/
public function setProviderDescription($providerDescription)
{
$this->providerDescription = $providerDescription;
}
/**
* @return string
*/
public function getProviderDescription()
{
return $this->providerDescription;
}
/**
* @param string
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* @param string
*/
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
}
/**
* @return string
*/
public function getUniqueId()
{
return $this->uniqueId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainDatabaseResourceId');

View File

@@ -0,0 +1,383 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata extends \Google\Collection
{
protected $collection_key = 'entitlements';
protected $availabilityConfigurationType = StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration::class;
protected $availabilityConfigurationDataType = '';
protected $backupConfigurationType = StorageDatabasecenterPartnerapiV1mainBackupConfiguration::class;
protected $backupConfigurationDataType = '';
protected $backupRunType = StorageDatabasecenterPartnerapiV1mainBackupRun::class;
protected $backupRunDataType = '';
/**
* @var string
*/
public $creationTime;
/**
* @var string
*/
public $currentState;
protected $customMetadataType = StorageDatabasecenterPartnerapiV1mainCustomMetadataData::class;
protected $customMetadataDataType = '';
/**
* @var string
*/
public $edition;
protected $entitlementsType = StorageDatabasecenterPartnerapiV1mainEntitlement::class;
protected $entitlementsDataType = 'array';
/**
* @var string
*/
public $expectedState;
protected $idType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
protected $idDataType = '';
/**
* @var string
*/
public $instanceType;
/**
* @var string
*/
public $location;
protected $machineConfigurationType = StorageDatabasecenterPartnerapiV1mainMachineConfiguration::class;
protected $machineConfigurationDataType = '';
protected $primaryResourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
protected $primaryResourceIdDataType = '';
/**
* @var string
*/
public $primaryResourceLocation;
protected $productType = StorageDatabasecenterProtoCommonProduct::class;
protected $productDataType = '';
/**
* @var string
*/
public $resourceContainer;
/**
* @var string
*/
public $resourceName;
protected $tagsSetType = StorageDatabasecenterPartnerapiV1mainTags::class;
protected $tagsSetDataType = '';
/**
* @var string
*/
public $updationTime;
protected $userLabelSetType = StorageDatabasecenterPartnerapiV1mainUserLabels::class;
protected $userLabelSetDataType = '';
/**
* @param StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
*/
public function setAvailabilityConfiguration(StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration $availabilityConfiguration)
{
$this->availabilityConfiguration = $availabilityConfiguration;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
*/
public function getAvailabilityConfiguration()
{
return $this->availabilityConfiguration;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainBackupConfiguration
*/
public function setBackupConfiguration(StorageDatabasecenterPartnerapiV1mainBackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainBackupRun
*/
public function setBackupRun(StorageDatabasecenterPartnerapiV1mainBackupRun $backupRun)
{
$this->backupRun = $backupRun;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupRun
*/
public function getBackupRun()
{
return $this->backupRun;
}
/**
* @param string
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* @param string
*/
public function setCurrentState($currentState)
{
$this->currentState = $currentState;
}
/**
* @return string
*/
public function getCurrentState()
{
return $this->currentState;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainCustomMetadataData
*/
public function setCustomMetadata(StorageDatabasecenterPartnerapiV1mainCustomMetadataData $customMetadata)
{
$this->customMetadata = $customMetadata;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainCustomMetadataData
*/
public function getCustomMetadata()
{
return $this->customMetadata;
}
/**
* @param string
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainEntitlement[]
*/
public function setEntitlements($entitlements)
{
$this->entitlements = $entitlements;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainEntitlement[]
*/
public function getEntitlements()
{
return $this->entitlements;
}
/**
* @param string
*/
public function setExpectedState($expectedState)
{
$this->expectedState = $expectedState;
}
/**
* @return string
*/
public function getExpectedState()
{
return $this->expectedState;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function setId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $id)
{
$this->id = $id;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainMachineConfiguration
*/
public function setMachineConfiguration(StorageDatabasecenterPartnerapiV1mainMachineConfiguration $machineConfiguration)
{
$this->machineConfiguration = $machineConfiguration;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainMachineConfiguration
*/
public function getMachineConfiguration()
{
return $this->machineConfiguration;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function setPrimaryResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $primaryResourceId)
{
$this->primaryResourceId = $primaryResourceId;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function getPrimaryResourceId()
{
return $this->primaryResourceId;
}
/**
* @param string
*/
public function setPrimaryResourceLocation($primaryResourceLocation)
{
$this->primaryResourceLocation = $primaryResourceLocation;
}
/**
* @return string
*/
public function getPrimaryResourceLocation()
{
return $this->primaryResourceLocation;
}
/**
* @param StorageDatabasecenterProtoCommonProduct
*/
public function setProduct(StorageDatabasecenterProtoCommonProduct $product)
{
$this->product = $product;
}
/**
* @return StorageDatabasecenterProtoCommonProduct
*/
public function getProduct()
{
return $this->product;
}
/**
* @param string
*/
public function setResourceContainer($resourceContainer)
{
$this->resourceContainer = $resourceContainer;
}
/**
* @return string
*/
public function getResourceContainer()
{
return $this->resourceContainer;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainTags
*/
public function setTagsSet(StorageDatabasecenterPartnerapiV1mainTags $tagsSet)
{
$this->tagsSet = $tagsSet;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainTags
*/
public function getTagsSet()
{
return $this->tagsSet;
}
/**
* @param string
*/
public function setUpdationTime($updationTime)
{
$this->updationTime = $updationTime;
}
/**
* @return string
*/
public function getUpdationTime()
{
return $this->updationTime;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainUserLabels
*/
public function setUserLabelSet(StorageDatabasecenterPartnerapiV1mainUserLabels $userLabelSet)
{
$this->userLabelSet = $userLabelSet;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainUserLabels
*/
public function getUserLabelSet()
{
return $this->userLabelSet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata');

View File

@@ -0,0 +1,170 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData extends \Google\Model
{
/**
* @var array[]
*/
public $additionalMetadata;
/**
* @var string
*/
public $lastRefreshTime;
/**
* @var string
*/
public $recommendationState;
/**
* @var string
*/
public $recommender;
/**
* @var string
*/
public $recommenderId;
/**
* @var string
*/
public $recommenderSubtype;
/**
* @var string
*/
public $resourceName;
/**
* @var string
*/
public $signalType;
/**
* @param array[]
*/
public function setAdditionalMetadata($additionalMetadata)
{
$this->additionalMetadata = $additionalMetadata;
}
/**
* @return array[]
*/
public function getAdditionalMetadata()
{
return $this->additionalMetadata;
}
/**
* @param string
*/
public function setLastRefreshTime($lastRefreshTime)
{
$this->lastRefreshTime = $lastRefreshTime;
}
/**
* @return string
*/
public function getLastRefreshTime()
{
return $this->lastRefreshTime;
}
/**
* @param string
*/
public function setRecommendationState($recommendationState)
{
$this->recommendationState = $recommendationState;
}
/**
* @return string
*/
public function getRecommendationState()
{
return $this->recommendationState;
}
/**
* @param string
*/
public function setRecommender($recommender)
{
$this->recommender = $recommender;
}
/**
* @return string
*/
public function getRecommender()
{
return $this->recommender;
}
/**
* @param string
*/
public function setRecommenderId($recommenderId)
{
$this->recommenderId = $recommenderId;
}
/**
* @return string
*/
public function getRecommenderId()
{
return $this->recommenderId;
}
/**
* @param string
*/
public function setRecommenderSubtype($recommenderSubtype)
{
$this->recommenderSubtype = $recommenderSubtype;
}
/**
* @return string
*/
public function getRecommenderSubtype()
{
return $this->recommenderSubtype;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param string
*/
public function setSignalType($signalType)
{
$this->signalType = $signalType;
}
/**
* @return string
*/
public function getSignalType()
{
return $this->signalType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainEntitlement extends \Google\Model
{
/**
* @var string
*/
public $entitlementState;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setEntitlementState($entitlementState)
{
$this->entitlementState = $entitlementState;
}
/**
* @return string
*/
public function getEntitlementState()
{
return $this->entitlementState;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainEntitlement::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainEntitlement');

View File

@@ -0,0 +1,108 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata extends \Google\Model
{
protected $backupConfigurationType = StorageDatabasecenterPartnerapiV1mainBackupConfiguration::class;
protected $backupConfigurationDataType = '';
protected $backupRunType = StorageDatabasecenterPartnerapiV1mainBackupRun::class;
protected $backupRunDataType = '';
protected $productType = StorageDatabasecenterProtoCommonProduct::class;
protected $productDataType = '';
protected $resourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
protected $resourceIdDataType = '';
/**
* @var string
*/
public $resourceName;
/**
* @param StorageDatabasecenterPartnerapiV1mainBackupConfiguration
*/
public function setBackupConfiguration(StorageDatabasecenterPartnerapiV1mainBackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainBackupRun
*/
public function setBackupRun(StorageDatabasecenterPartnerapiV1mainBackupRun $backupRun)
{
$this->backupRun = $backupRun;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainBackupRun
*/
public function getBackupRun()
{
return $this->backupRun;
}
/**
* @param StorageDatabasecenterProtoCommonProduct
*/
public function setProduct(StorageDatabasecenterProtoCommonProduct $product)
{
$this->product = $product;
}
/**
* @return StorageDatabasecenterProtoCommonProduct
*/
public function getProduct()
{
return $this->product;
}
/**
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function setResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata');

View File

@@ -0,0 +1,89 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainMachineConfiguration extends \Google\Model
{
/**
* @var int
*/
public $cpuCount;
/**
* @var string
*/
public $memorySizeInBytes;
/**
* @var int
*/
public $shardCount;
public $vcpuCount;
/**
* @param int
*/
public function setCpuCount($cpuCount)
{
$this->cpuCount = $cpuCount;
}
/**
* @return int
*/
public function getCpuCount()
{
return $this->cpuCount;
}
/**
* @param string
*/
public function setMemorySizeInBytes($memorySizeInBytes)
{
$this->memorySizeInBytes = $memorySizeInBytes;
}
/**
* @return string
*/
public function getMemorySizeInBytes()
{
return $this->memorySizeInBytes;
}
/**
* @param int
*/
public function setShardCount($shardCount)
{
$this->shardCount = $shardCount;
}
/**
* @return int
*/
public function getShardCount()
{
return $this->shardCount;
}
public function setVcpuCount($vcpuCount)
{
$this->vcpuCount = $vcpuCount;
}
public function getVcpuCount()
{
return $this->vcpuCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainMachineConfiguration::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainMachineConfiguration');

View File

@@ -0,0 +1,114 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData extends \Google\Model
{
/**
* @var string
*/
public $aggregationType;
/**
* @var string
*/
public $metricType;
/**
* @var string
*/
public $observationTime;
/**
* @var string
*/
public $resourceName;
protected $valueType = StorageDatabasecenterProtoCommonTypedValue::class;
protected $valueDataType = '';
/**
* @param string
*/
public function setAggregationType($aggregationType)
{
$this->aggregationType = $aggregationType;
}
/**
* @return string
*/
public function getAggregationType()
{
return $this->aggregationType;
}
/**
* @param string
*/
public function setMetricType($metricType)
{
$this->metricType = $metricType;
}
/**
* @return string
*/
public function getMetricType()
{
return $this->metricType;
}
/**
* @param string
*/
public function setObservationTime($observationTime)
{
$this->observationTime = $observationTime;
}
/**
* @return string
*/
public function getObservationTime()
{
return $this->observationTime;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param StorageDatabasecenterProtoCommonTypedValue
*/
public function setValue(StorageDatabasecenterProtoCommonTypedValue $value)
{
$this->value = $value;
}
/**
* @return StorageDatabasecenterProtoCommonTypedValue
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainObservabilityMetricData::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainObservabilityMetricData');

View File

@@ -0,0 +1,80 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainOperationError extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $errorType;
/**
* @var string
*/
public $message;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @return string
*/
public function getErrorType()
{
return $this->errorType;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainOperationError::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainOperationError');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainRetentionSettings extends \Google\Model
{
/**
* @var string
*/
public $durationBasedRetention;
/**
* @var int
*/
public $quantityBasedRetention;
/**
* @var string
*/
public $retentionUnit;
/**
* @var string
*/
public $timeBasedRetention;
/**
* @var string
*/
public $timestampBasedRetentionTime;
/**
* @param string
*/
public function setDurationBasedRetention($durationBasedRetention)
{
$this->durationBasedRetention = $durationBasedRetention;
}
/**
* @return string
*/
public function getDurationBasedRetention()
{
return $this->durationBasedRetention;
}
/**
* @param int
*/
public function setQuantityBasedRetention($quantityBasedRetention)
{
$this->quantityBasedRetention = $quantityBasedRetention;
}
/**
* @return int
*/
public function getQuantityBasedRetention()
{
return $this->quantityBasedRetention;
}
/**
* @param string
*/
public function setRetentionUnit($retentionUnit)
{
$this->retentionUnit = $retentionUnit;
}
/**
* @return string
*/
public function getRetentionUnit()
{
return $this->retentionUnit;
}
/**
* @param string
*/
public function setTimeBasedRetention($timeBasedRetention)
{
$this->timeBasedRetention = $timeBasedRetention;
}
/**
* @return string
*/
public function getTimeBasedRetention()
{
return $this->timeBasedRetention;
}
/**
* @param string
*/
public function setTimestampBasedRetentionTime($timestampBasedRetentionTime)
{
$this->timestampBasedRetentionTime = $timestampBasedRetentionTime;
}
/**
* @return string
*/
public function getTimestampBasedRetentionTime()
{
return $this->timestampBasedRetentionTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainRetentionSettings::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainRetentionSettings');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainTags extends \Google\Model
{
/**
* @var string[]
*/
public $tags;
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainTags::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainTags');

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\CloudAlloyDBAdmin;
class StorageDatabasecenterPartnerapiV1mainUserLabels extends \Google\Model
{
/**
* @var string[]
*/
public $labels;
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterPartnerapiV1mainUserLabels::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainUserLabels');

View File

@@ -0,0 +1,80 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterProtoCommonProduct extends \Google\Model
{
/**
* @var string
*/
public $engine;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setEngine($engine)
{
$this->engine = $engine;
}
/**
* @return string
*/
public function getEngine()
{
return $this->engine;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @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(StorageDatabasecenterProtoCommonProduct::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterProtoCommonProduct');

View File

@@ -0,0 +1,89 @@
<?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\CloudAlloyDBAdmin;
class StorageDatabasecenterProtoCommonTypedValue extends \Google\Model
{
/**
* @var bool
*/
public $boolValue;
public $doubleValue;
/**
* @var string
*/
public $int64Value;
/**
* @var string
*/
public $stringValue;
/**
* @param bool
*/
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
/**
* @return bool
*/
public function getBoolValue()
{
return $this->boolValue;
}
public function setDoubleValue($doubleValue)
{
$this->doubleValue = $doubleValue;
}
public function getDoubleValue()
{
return $this->doubleValue;
}
/**
* @param string
*/
public function setInt64Value($int64Value)
{
$this->int64Value = $int64Value;
}
/**
* @return string
*/
public function getInt64Value()
{
return $this->int64Value;
}
/**
* @param string
*/
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return string
*/
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageDatabasecenterProtoCommonTypedValue::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterProtoCommonTypedValue');

View File

@@ -0,0 +1,45 @@
<?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\CloudAlloyDBAdmin;
class StringRestrictions extends \Google\Collection
{
protected $collection_key = 'allowedValues';
/**
* @var string[]
*/
public $allowedValues;
/**
* @param string[]
*/
public function setAllowedValues($allowedValues)
{
$this->allowedValues = $allowedValues;
}
/**
* @return string[]
*/
public function getAllowedValues()
{
return $this->allowedValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StringRestrictions::class, 'Google_Service_CloudAlloyDBAdmin_StringRestrictions');

View File

@@ -0,0 +1,167 @@
<?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\CloudAlloyDBAdmin;
class SupportedDatabaseFlag extends \Google\Collection
{
protected $collection_key = 'supportedDbVersions';
/**
* @var bool
*/
public $acceptsMultipleValues;
/**
* @var string
*/
public $flagName;
protected $integerRestrictionsType = IntegerRestrictions::class;
protected $integerRestrictionsDataType = '';
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $requiresDbRestart;
protected $stringRestrictionsType = StringRestrictions::class;
protected $stringRestrictionsDataType = '';
/**
* @var string[]
*/
public $supportedDbVersions;
/**
* @var string
*/
public $valueType;
/**
* @param bool
*/
public function setAcceptsMultipleValues($acceptsMultipleValues)
{
$this->acceptsMultipleValues = $acceptsMultipleValues;
}
/**
* @return bool
*/
public function getAcceptsMultipleValues()
{
return $this->acceptsMultipleValues;
}
/**
* @param string
*/
public function setFlagName($flagName)
{
$this->flagName = $flagName;
}
/**
* @return string
*/
public function getFlagName()
{
return $this->flagName;
}
/**
* @param IntegerRestrictions
*/
public function setIntegerRestrictions(IntegerRestrictions $integerRestrictions)
{
$this->integerRestrictions = $integerRestrictions;
}
/**
* @return IntegerRestrictions
*/
public function getIntegerRestrictions()
{
return $this->integerRestrictions;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setRequiresDbRestart($requiresDbRestart)
{
$this->requiresDbRestart = $requiresDbRestart;
}
/**
* @return bool
*/
public function getRequiresDbRestart()
{
return $this->requiresDbRestart;
}
/**
* @param StringRestrictions
*/
public function setStringRestrictions(StringRestrictions $stringRestrictions)
{
$this->stringRestrictions = $stringRestrictions;
}
/**
* @return StringRestrictions
*/
public function getStringRestrictions()
{
return $this->stringRestrictions;
}
/**
* @param string[]
*/
public function setSupportedDbVersions($supportedDbVersions)
{
$this->supportedDbVersions = $supportedDbVersions;
}
/**
* @return string[]
*/
public function getSupportedDbVersions()
{
return $this->supportedDbVersions;
}
/**
* @param string
*/
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
/**
* @return string
*/
public function getValueType()
{
return $this->valueType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SupportedDatabaseFlag::class, 'Google_Service_CloudAlloyDBAdmin_SupportedDatabaseFlag');

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\CloudAlloyDBAdmin;
class SwitchoverClusterRequest extends \Google\Model
{
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SwitchoverClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_SwitchoverClusterRequest');

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\CloudAlloyDBAdmin;
class TimeBasedRetention extends \Google\Model
{
/**
* @var string
*/
public $retentionPeriod;
/**
* @param string
*/
public function setRetentionPeriod($retentionPeriod)
{
$this->retentionPeriod = $retentionPeriod;
}
/**
* @return string
*/
public function getRetentionPeriod()
{
return $this->retentionPeriod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeBasedRetention::class, 'Google_Service_CloudAlloyDBAdmin_TimeBasedRetention');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class TrialMetadata extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $graceEndTime;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $upgradeTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setGraceEndTime($graceEndTime)
{
$this->graceEndTime = $graceEndTime;
}
/**
* @return string
*/
public function getGraceEndTime()
{
return $this->graceEndTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setUpgradeTime($upgradeTime)
{
$this->upgradeTime = $upgradeTime;
}
/**
* @return string
*/
public function getUpgradeTime()
{
return $this->upgradeTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrialMetadata::class, 'Google_Service_CloudAlloyDBAdmin_TrialMetadata');

View File

@@ -0,0 +1,98 @@
<?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\CloudAlloyDBAdmin;
class UpgradeClusterRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $validateOnly;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
/**
* @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(UpgradeClusterRequest::class, 'Google_Service_CloudAlloyDBAdmin_UpgradeClusterRequest');

View File

@@ -0,0 +1,79 @@
<?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\CloudAlloyDBAdmin;
class UpgradeClusterResponse extends \Google\Collection
{
protected $collection_key = 'clusterUpgradeDetails';
protected $clusterUpgradeDetailsType = ClusterUpgradeDetails::class;
protected $clusterUpgradeDetailsDataType = 'array';
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $status;
/**
* @param ClusterUpgradeDetails[]
*/
public function setClusterUpgradeDetails($clusterUpgradeDetails)
{
$this->clusterUpgradeDetails = $clusterUpgradeDetails;
}
/**
* @return ClusterUpgradeDetails[]
*/
public function getClusterUpgradeDetails()
{
return $this->clusterUpgradeDetails;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpgradeClusterResponse::class, 'Google_Service_CloudAlloyDBAdmin_UpgradeClusterResponse');

View File

@@ -0,0 +1,117 @@
<?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\CloudAlloyDBAdmin;
class User extends \Google\Collection
{
protected $collection_key = 'databaseRoles';
/**
* @var string[]
*/
public $databaseRoles;
/**
* @var bool
*/
public $keepExtraRoles;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $password;
/**
* @var string
*/
public $userType;
/**
* @param string[]
*/
public function setDatabaseRoles($databaseRoles)
{
$this->databaseRoles = $databaseRoles;
}
/**
* @return string[]
*/
public function getDatabaseRoles()
{
return $this->databaseRoles;
}
/**
* @param bool
*/
public function setKeepExtraRoles($keepExtraRoles)
{
$this->keepExtraRoles = $keepExtraRoles;
}
/**
* @return bool
*/
public function getKeepExtraRoles()
{
return $this->keepExtraRoles;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param string
*/
public function setUserType($userType)
{
$this->userType = $userType;
}
/**
* @return string
*/
public function getUserType()
{
return $this->userType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(User::class, 'Google_Service_CloudAlloyDBAdmin_User');

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\CloudAlloyDBAdmin;
class UserPassword extends \Google\Model
{
/**
* @var string
*/
public $password;
/**
* @var string
*/
public $user;
/**
* @param string
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param string
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserPassword::class, 'Google_Service_CloudAlloyDBAdmin_UserPassword');

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\CloudAlloyDBAdmin;
class WeeklySchedule extends \Google\Collection
{
protected $collection_key = 'startTimes';
/**
* @var string[]
*/
public $daysOfWeek;
protected $startTimesType = GoogleTypeTimeOfDay::class;
protected $startTimesDataType = 'array';
/**
* @param string[]
*/
public function setDaysOfWeek($daysOfWeek)
{
$this->daysOfWeek = $daysOfWeek;
}
/**
* @return string[]
*/
public function getDaysOfWeek()
{
return $this->daysOfWeek;
}
/**
* @param GoogleTypeTimeOfDay[]
*/
public function setStartTimes($startTimes)
{
$this->startTimes = $startTimes;
}
/**
* @return GoogleTypeTimeOfDay[]
*/
public function getStartTimes()
{
return $this->startTimes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WeeklySchedule::class, 'Google_Service_CloudAlloyDBAdmin_WeeklySchedule');