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,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\CloudRedis;
class AOFConfig extends \Google\Model
{
/**
* @var string
*/
public $appendFsync;
/**
* @param string
*/
public function setAppendFsync($appendFsync)
{
$this->appendFsync = $appendFsync;
}
/**
* @return string
*/
public function getAppendFsync()
{
return $this->appendFsync;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AOFConfig::class, 'Google_Service_CloudRedis_AOFConfig');

View File

@@ -0,0 +1,109 @@
<?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\CloudRedis;
class AssetLocation extends \Google\Collection
{
protected $collection_key = 'parentAsset';
/**
* @var string
*/
public $ccfeRmsPath;
protected $expectedType = IsolationExpectations::class;
protected $expectedDataType = '';
protected $extraParametersType = ExtraParameter::class;
protected $extraParametersDataType = 'array';
protected $locationDataType = LocationData::class;
protected $locationDataDataType = 'array';
protected $parentAssetType = CloudAsset::class;
protected $parentAssetDataType = 'array';
/**
* @param string
*/
public function setCcfeRmsPath($ccfeRmsPath)
{
$this->ccfeRmsPath = $ccfeRmsPath;
}
/**
* @return string
*/
public function getCcfeRmsPath()
{
return $this->ccfeRmsPath;
}
/**
* @param IsolationExpectations
*/
public function setExpected(IsolationExpectations $expected)
{
$this->expected = $expected;
}
/**
* @return IsolationExpectations
*/
public function getExpected()
{
return $this->expected;
}
/**
* @param ExtraParameter[]
*/
public function setExtraParameters($extraParameters)
{
$this->extraParameters = $extraParameters;
}
/**
* @return ExtraParameter[]
*/
public function getExtraParameters()
{
return $this->extraParameters;
}
/**
* @param LocationData[]
*/
public function setLocationData($locationData)
{
$this->locationData = $locationData;
}
/**
* @return LocationData[]
*/
public function getLocationData()
{
return $this->locationData;
}
/**
* @param CloudAsset[]
*/
public function setParentAsset($parentAsset)
{
$this->parentAsset = $parentAsset;
}
/**
* @return CloudAsset[]
*/
public function getParentAsset()
{
return $this->parentAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetLocation::class, 'Google_Service_CloudRedis_AssetLocation');

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\CloudRedis;
class AutomatedBackupConfig extends \Google\Model
{
/**
* @var string
*/
public $automatedBackupMode;
protected $fixedFrequencyScheduleType = FixedFrequencySchedule::class;
protected $fixedFrequencyScheduleDataType = '';
/**
* @var string
*/
public $retention;
/**
* @param string
*/
public function setAutomatedBackupMode($automatedBackupMode)
{
$this->automatedBackupMode = $automatedBackupMode;
}
/**
* @return string
*/
public function getAutomatedBackupMode()
{
return $this->automatedBackupMode;
}
/**
* @param FixedFrequencySchedule
*/
public function setFixedFrequencySchedule(FixedFrequencySchedule $fixedFrequencySchedule)
{
$this->fixedFrequencySchedule = $fixedFrequencySchedule;
}
/**
* @return FixedFrequencySchedule
*/
public function getFixedFrequencySchedule()
{
return $this->fixedFrequencySchedule;
}
/**
* @param string
*/
public function setRetention($retention)
{
$this->retention = $retention;
}
/**
* @return string
*/
public function getRetention()
{
return $this->retention;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomatedBackupConfig::class, 'Google_Service_CloudRedis_AutomatedBackupConfig');

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\CloudRedis;
class AvailabilityConfiguration 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(AvailabilityConfiguration::class, 'Google_Service_CloudRedis_AvailabilityConfiguration');

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\CloudRedis;
class Backup extends \Google\Collection
{
protected $collection_key = 'backupFiles';
protected $backupFilesType = BackupFile::class;
protected $backupFilesDataType = 'array';
/**
* @var string
*/
public $backupType;
/**
* @var string
*/
public $cluster;
/**
* @var string
*/
public $clusterUid;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $engineVersion;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $nodeType;
/**
* @var int
*/
public $replicaCount;
/**
* @var int
*/
public $shardCount;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $totalSizeBytes;
/**
* @var string
*/
public $uid;
/**
* @param BackupFile[]
*/
public function setBackupFiles($backupFiles)
{
$this->backupFiles = $backupFiles;
}
/**
* @return BackupFile[]
*/
public function getBackupFiles()
{
return $this->backupFiles;
}
/**
* @param string
*/
public function setBackupType($backupType)
{
$this->backupType = $backupType;
}
/**
* @return string
*/
public function getBackupType()
{
return $this->backupType;
}
/**
* @param string
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* @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 setEngineVersion($engineVersion)
{
$this->engineVersion = $engineVersion;
}
/**
* @return string
*/
public function getEngineVersion()
{
return $this->engineVersion;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNodeType($nodeType)
{
$this->nodeType = $nodeType;
}
/**
* @return string
*/
public function getNodeType()
{
return $this->nodeType;
}
/**
* @param int
*/
public function setReplicaCount($replicaCount)
{
$this->replicaCount = $replicaCount;
}
/**
* @return int
*/
public function getReplicaCount()
{
return $this->replicaCount;
}
/**
* @param int
*/
public function setShardCount($shardCount)
{
$this->shardCount = $shardCount;
}
/**
* @return int
*/
public function getShardCount()
{
return $this->shardCount;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTotalSizeBytes($totalSizeBytes)
{
$this->totalSizeBytes = $totalSizeBytes;
}
/**
* @return string
*/
public function getTotalSizeBytes()
{
return $this->totalSizeBytes;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Backup::class, 'Google_Service_CloudRedis_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\CloudRedis;
class BackupClusterRequest extends \Google\Model
{
/**
* @var string
*/
public $backupId;
/**
* @var string
*/
public $ttl;
/**
* @param string
*/
public function setBackupId($backupId)
{
$this->backupId = $backupId;
}
/**
* @return string
*/
public function getBackupId()
{
return $this->backupId;
}
/**
* @param string
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupClusterRequest::class, 'Google_Service_CloudRedis_BackupClusterRequest');

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\CloudRedis;
class BackupCollection extends \Google\Model
{
/**
* @var string
*/
public $cluster;
/**
* @var string
*/
public $clusterUid;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $uid;
/**
* @param string
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* @param string
*/
public function setClusterUid($clusterUid)
{
$this->clusterUid = $clusterUid;
}
/**
* @return string
*/
public function getClusterUid()
{
return $this->clusterUid;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupCollection::class, 'Google_Service_CloudRedis_BackupCollection');

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\CloudRedis;
class BackupConfiguration extends \Google\Model
{
/**
* @var bool
*/
public $automatedBackupEnabled;
protected $backupRetentionSettingsType = RetentionSettings::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 RetentionSettings
*/
public function setBackupRetentionSettings(RetentionSettings $backupRetentionSettings)
{
$this->backupRetentionSettings = $backupRetentionSettings;
}
/**
* @return RetentionSettings
*/
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(BackupConfiguration::class, 'Google_Service_CloudRedis_BackupConfiguration');

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\CloudRedis;
class BackupFile extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $fileName;
/**
* @var string
*/
public $sizeBytes;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setFileName($fileName)
{
$this->fileName = $fileName;
}
/**
* @return string
*/
public function getFileName()
{
return $this->fileName;
}
/**
* @param string
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupFile::class, 'Google_Service_CloudRedis_BackupFile');

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\CloudRedis;
class BackupRun extends \Google\Model
{
/**
* @var string
*/
public $endTime;
protected $errorType = OperationError::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 OperationError
*/
public function setError(OperationError $error)
{
$this->error = $error;
}
/**
* @return OperationError
*/
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(BackupRun::class, 'Google_Service_CloudRedis_BackupRun');

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\CloudRedis;
class BlobstoreLocation extends \Google\Collection
{
protected $collection_key = 'policyId';
/**
* @var string[]
*/
public $policyId;
/**
* @param string[]
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string[]
*/
public function getPolicyId()
{
return $this->policyId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlobstoreLocation::class, 'Google_Service_CloudRedis_BlobstoreLocation');

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\CloudRedis;
class CertChain extends \Google\Collection
{
protected $collection_key = 'certificates';
/**
* @var string[]
*/
public $certificates;
/**
* @param string[]
*/
public function setCertificates($certificates)
{
$this->certificates = $certificates;
}
/**
* @return string[]
*/
public function getCertificates()
{
return $this->certificates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertChain::class, 'Google_Service_CloudRedis_CertChain');

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\CloudRedis;
class CertificateAuthority extends \Google\Model
{
protected $managedServerCaType = ManagedCertificateAuthority::class;
protected $managedServerCaDataType = '';
/**
* @var string
*/
public $name;
/**
* @param ManagedCertificateAuthority
*/
public function setManagedServerCa(ManagedCertificateAuthority $managedServerCa)
{
$this->managedServerCa = $managedServerCa;
}
/**
* @return ManagedCertificateAuthority
*/
public function getManagedServerCa()
{
return $this->managedServerCa;
}
/**
* @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(CertificateAuthority::class, 'Google_Service_CloudRedis_CertificateAuthority');

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\CloudRedis;
class CloudAsset extends \Google\Model
{
/**
* @var string
*/
public $assetName;
/**
* @var string
*/
public $assetType;
/**
* @param string
*/
public function setAssetName($assetName)
{
$this->assetName = $assetName;
}
/**
* @return string
*/
public function getAssetName()
{
return $this->assetName;
}
/**
* @param string
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAsset::class, 'Google_Service_CloudRedis_CloudAsset');

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\CloudRedis;
class CloudAssetComposition extends \Google\Collection
{
protected $collection_key = 'childAsset';
protected $childAssetType = CloudAsset::class;
protected $childAssetDataType = 'array';
/**
* @param CloudAsset[]
*/
public function setChildAsset($childAsset)
{
$this->childAsset = $childAsset;
}
/**
* @return CloudAsset[]
*/
public function getChildAsset()
{
return $this->childAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAssetComposition::class, 'Google_Service_CloudRedis_CloudAssetComposition');

View File

@@ -0,0 +1,494 @@
<?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\CloudRedis;
class Cluster extends \Google\Collection
{
protected $collection_key = 'pscServiceAttachments';
/**
* @var string
*/
public $authorizationMode;
protected $automatedBackupConfigType = AutomatedBackupConfig::class;
protected $automatedBackupConfigDataType = '';
/**
* @var string
*/
public $backupCollection;
protected $clusterEndpointsType = ClusterEndpoint::class;
protected $clusterEndpointsDataType = 'array';
/**
* @var string
*/
public $createTime;
protected $crossClusterReplicationConfigType = CrossClusterReplicationConfig::class;
protected $crossClusterReplicationConfigDataType = '';
/**
* @var bool
*/
public $deletionProtectionEnabled;
protected $discoveryEndpointsType = DiscoveryEndpoint::class;
protected $discoveryEndpointsDataType = 'array';
protected $gcsSourceType = GcsBackupSource::class;
protected $gcsSourceDataType = '';
protected $maintenancePolicyType = ClusterMaintenancePolicy::class;
protected $maintenancePolicyDataType = '';
protected $maintenanceScheduleType = ClusterMaintenanceSchedule::class;
protected $maintenanceScheduleDataType = '';
protected $managedBackupSourceType = ManagedBackupSource::class;
protected $managedBackupSourceDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $nodeType;
protected $persistenceConfigType = ClusterPersistenceConfig::class;
protected $persistenceConfigDataType = '';
public $preciseSizeGb;
protected $pscConfigsType = PscConfig::class;
protected $pscConfigsDataType = 'array';
protected $pscConnectionsType = PscConnection::class;
protected $pscConnectionsDataType = 'array';
protected $pscServiceAttachmentsType = PscServiceAttachment::class;
protected $pscServiceAttachmentsDataType = 'array';
/**
* @var string[]
*/
public $redisConfigs;
/**
* @var int
*/
public $replicaCount;
/**
* @var int
*/
public $shardCount;
/**
* @var int
*/
public $sizeGb;
/**
* @var string
*/
public $state;
protected $stateInfoType = StateInfo::class;
protected $stateInfoDataType = '';
/**
* @var string
*/
public $transitEncryptionMode;
/**
* @var string
*/
public $uid;
protected $zoneDistributionConfigType = ZoneDistributionConfig::class;
protected $zoneDistributionConfigDataType = '';
/**
* @param string
*/
public function setAuthorizationMode($authorizationMode)
{
$this->authorizationMode = $authorizationMode;
}
/**
* @return string
*/
public function getAuthorizationMode()
{
return $this->authorizationMode;
}
/**
* @param AutomatedBackupConfig
*/
public function setAutomatedBackupConfig(AutomatedBackupConfig $automatedBackupConfig)
{
$this->automatedBackupConfig = $automatedBackupConfig;
}
/**
* @return AutomatedBackupConfig
*/
public function getAutomatedBackupConfig()
{
return $this->automatedBackupConfig;
}
/**
* @param string
*/
public function setBackupCollection($backupCollection)
{
$this->backupCollection = $backupCollection;
}
/**
* @return string
*/
public function getBackupCollection()
{
return $this->backupCollection;
}
/**
* @param ClusterEndpoint[]
*/
public function setClusterEndpoints($clusterEndpoints)
{
$this->clusterEndpoints = $clusterEndpoints;
}
/**
* @return ClusterEndpoint[]
*/
public function getClusterEndpoints()
{
return $this->clusterEndpoints;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param CrossClusterReplicationConfig
*/
public function setCrossClusterReplicationConfig(CrossClusterReplicationConfig $crossClusterReplicationConfig)
{
$this->crossClusterReplicationConfig = $crossClusterReplicationConfig;
}
/**
* @return CrossClusterReplicationConfig
*/
public function getCrossClusterReplicationConfig()
{
return $this->crossClusterReplicationConfig;
}
/**
* @param bool
*/
public function setDeletionProtectionEnabled($deletionProtectionEnabled)
{
$this->deletionProtectionEnabled = $deletionProtectionEnabled;
}
/**
* @return bool
*/
public function getDeletionProtectionEnabled()
{
return $this->deletionProtectionEnabled;
}
/**
* @param DiscoveryEndpoint[]
*/
public function setDiscoveryEndpoints($discoveryEndpoints)
{
$this->discoveryEndpoints = $discoveryEndpoints;
}
/**
* @return DiscoveryEndpoint[]
*/
public function getDiscoveryEndpoints()
{
return $this->discoveryEndpoints;
}
/**
* @param GcsBackupSource
*/
public function setGcsSource(GcsBackupSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return GcsBackupSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
/**
* @param ClusterMaintenancePolicy
*/
public function setMaintenancePolicy(ClusterMaintenancePolicy $maintenancePolicy)
{
$this->maintenancePolicy = $maintenancePolicy;
}
/**
* @return ClusterMaintenancePolicy
*/
public function getMaintenancePolicy()
{
return $this->maintenancePolicy;
}
/**
* @param ClusterMaintenanceSchedule
*/
public function setMaintenanceSchedule(ClusterMaintenanceSchedule $maintenanceSchedule)
{
$this->maintenanceSchedule = $maintenanceSchedule;
}
/**
* @return ClusterMaintenanceSchedule
*/
public function getMaintenanceSchedule()
{
return $this->maintenanceSchedule;
}
/**
* @param ManagedBackupSource
*/
public function setManagedBackupSource(ManagedBackupSource $managedBackupSource)
{
$this->managedBackupSource = $managedBackupSource;
}
/**
* @return ManagedBackupSource
*/
public function getManagedBackupSource()
{
return $this->managedBackupSource;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNodeType($nodeType)
{
$this->nodeType = $nodeType;
}
/**
* @return string
*/
public function getNodeType()
{
return $this->nodeType;
}
/**
* @param ClusterPersistenceConfig
*/
public function setPersistenceConfig(ClusterPersistenceConfig $persistenceConfig)
{
$this->persistenceConfig = $persistenceConfig;
}
/**
* @return ClusterPersistenceConfig
*/
public function getPersistenceConfig()
{
return $this->persistenceConfig;
}
public function setPreciseSizeGb($preciseSizeGb)
{
$this->preciseSizeGb = $preciseSizeGb;
}
public function getPreciseSizeGb()
{
return $this->preciseSizeGb;
}
/**
* @param PscConfig[]
*/
public function setPscConfigs($pscConfigs)
{
$this->pscConfigs = $pscConfigs;
}
/**
* @return PscConfig[]
*/
public function getPscConfigs()
{
return $this->pscConfigs;
}
/**
* @param PscConnection[]
*/
public function setPscConnections($pscConnections)
{
$this->pscConnections = $pscConnections;
}
/**
* @return PscConnection[]
*/
public function getPscConnections()
{
return $this->pscConnections;
}
/**
* @param PscServiceAttachment[]
*/
public function setPscServiceAttachments($pscServiceAttachments)
{
$this->pscServiceAttachments = $pscServiceAttachments;
}
/**
* @return PscServiceAttachment[]
*/
public function getPscServiceAttachments()
{
return $this->pscServiceAttachments;
}
/**
* @param string[]
*/
public function setRedisConfigs($redisConfigs)
{
$this->redisConfigs = $redisConfigs;
}
/**
* @return string[]
*/
public function getRedisConfigs()
{
return $this->redisConfigs;
}
/**
* @param int
*/
public function setReplicaCount($replicaCount)
{
$this->replicaCount = $replicaCount;
}
/**
* @return int
*/
public function getReplicaCount()
{
return $this->replicaCount;
}
/**
* @param int
*/
public function setShardCount($shardCount)
{
$this->shardCount = $shardCount;
}
/**
* @return int
*/
public function getShardCount()
{
return $this->shardCount;
}
/**
* @param int
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return int
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param StateInfo
*/
public function setStateInfo(StateInfo $stateInfo)
{
$this->stateInfo = $stateInfo;
}
/**
* @return StateInfo
*/
public function getStateInfo()
{
return $this->stateInfo;
}
/**
* @param string
*/
public function setTransitEncryptionMode($transitEncryptionMode)
{
$this->transitEncryptionMode = $transitEncryptionMode;
}
/**
* @return string
*/
public function getTransitEncryptionMode()
{
return $this->transitEncryptionMode;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param ZoneDistributionConfig
*/
public function setZoneDistributionConfig(ZoneDistributionConfig $zoneDistributionConfig)
{
$this->zoneDistributionConfig = $zoneDistributionConfig;
}
/**
* @return ZoneDistributionConfig
*/
public function getZoneDistributionConfig()
{
return $this->zoneDistributionConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cluster::class, 'Google_Service_CloudRedis_Cluster');

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\CloudRedis;
class ClusterEndpoint extends \Google\Collection
{
protected $collection_key = 'connections';
protected $connectionsType = ConnectionDetail::class;
protected $connectionsDataType = 'array';
/**
* @param ConnectionDetail[]
*/
public function setConnections($connections)
{
$this->connections = $connections;
}
/**
* @return ConnectionDetail[]
*/
public function getConnections()
{
return $this->connections;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterEndpoint::class, 'Google_Service_CloudRedis_ClusterEndpoint');

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\CloudRedis;
class ClusterMaintenancePolicy extends \Google\Collection
{
protected $collection_key = 'weeklyMaintenanceWindow';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $updateTime;
protected $weeklyMaintenanceWindowType = ClusterWeeklyMaintenanceWindow::class;
protected $weeklyMaintenanceWindowDataType = 'array';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param ClusterWeeklyMaintenanceWindow[]
*/
public function setWeeklyMaintenanceWindow($weeklyMaintenanceWindow)
{
$this->weeklyMaintenanceWindow = $weeklyMaintenanceWindow;
}
/**
* @return ClusterWeeklyMaintenanceWindow[]
*/
public function getWeeklyMaintenanceWindow()
{
return $this->weeklyMaintenanceWindow;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterMaintenancePolicy::class, 'Google_Service_CloudRedis_ClusterMaintenancePolicy');

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\CloudRedis;
class ClusterMaintenanceSchedule extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @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(ClusterMaintenanceSchedule::class, 'Google_Service_CloudRedis_ClusterMaintenanceSchedule');

View File

@@ -0,0 +1,76 @@
<?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\CloudRedis;
class ClusterPersistenceConfig extends \Google\Model
{
protected $aofConfigType = AOFConfig::class;
protected $aofConfigDataType = '';
/**
* @var string
*/
public $mode;
protected $rdbConfigType = RDBConfig::class;
protected $rdbConfigDataType = '';
/**
* @param AOFConfig
*/
public function setAofConfig(AOFConfig $aofConfig)
{
$this->aofConfig = $aofConfig;
}
/**
* @return AOFConfig
*/
public function getAofConfig()
{
return $this->aofConfig;
}
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* @param RDBConfig
*/
public function setRdbConfig(RDBConfig $rdbConfig)
{
$this->rdbConfig = $rdbConfig;
}
/**
* @return RDBConfig
*/
public function getRdbConfig()
{
return $this->rdbConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterPersistenceConfig::class, 'Google_Service_CloudRedis_ClusterPersistenceConfig');

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\CloudRedis;
class ClusterSlots extends \Google\Model
{
/**
* @var int
*/
public $endSlotsExclusive;
/**
* @var int
*/
public $memorySizeGb;
/**
* @var int
*/
public $replicaCount;
/**
* @var int
*/
public $startSlotsInclusive;
/**
* @param int
*/
public function setEndSlotsExclusive($endSlotsExclusive)
{
$this->endSlotsExclusive = $endSlotsExclusive;
}
/**
* @return int
*/
public function getEndSlotsExclusive()
{
return $this->endSlotsExclusive;
}
/**
* @param int
*/
public function setMemorySizeGb($memorySizeGb)
{
$this->memorySizeGb = $memorySizeGb;
}
/**
* @return int
*/
public function getMemorySizeGb()
{
return $this->memorySizeGb;
}
/**
* @param int
*/
public function setReplicaCount($replicaCount)
{
$this->replicaCount = $replicaCount;
}
/**
* @return int
*/
public function getReplicaCount()
{
return $this->replicaCount;
}
/**
* @param int
*/
public function setStartSlotsInclusive($startSlotsInclusive)
{
$this->startSlotsInclusive = $startSlotsInclusive;
}
/**
* @return int
*/
public function getStartSlotsInclusive()
{
return $this->startSlotsInclusive;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterSlots::class, 'Google_Service_CloudRedis_ClusterSlots');

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

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\CloudRedis;
class Compliance 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(Compliance::class, 'Google_Service_CloudRedis_Compliance');

View File

@@ -0,0 +1,58 @@
<?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\CloudRedis;
class ConnectionDetail extends \Google\Model
{
protected $pscAutoConnectionType = PscAutoConnection::class;
protected $pscAutoConnectionDataType = '';
protected $pscConnectionType = PscConnection::class;
protected $pscConnectionDataType = '';
/**
* @param PscAutoConnection
*/
public function setPscAutoConnection(PscAutoConnection $pscAutoConnection)
{
$this->pscAutoConnection = $pscAutoConnection;
}
/**
* @return PscAutoConnection
*/
public function getPscAutoConnection()
{
return $this->pscAutoConnection;
}
/**
* @param PscConnection
*/
public function setPscConnection(PscConnection $pscConnection)
{
$this->pscConnection = $pscConnection;
}
/**
* @return PscConnection
*/
public function getPscConnection()
{
return $this->pscConnection;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectionDetail::class, 'Google_Service_CloudRedis_ConnectionDetail');

View File

@@ -0,0 +1,111 @@
<?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\CloudRedis;
class CrossClusterReplicationConfig extends \Google\Collection
{
protected $collection_key = 'secondaryClusters';
/**
* @var string
*/
public $clusterRole;
protected $membershipType = Membership::class;
protected $membershipDataType = '';
protected $primaryClusterType = RemoteCluster::class;
protected $primaryClusterDataType = '';
protected $secondaryClustersType = RemoteCluster::class;
protected $secondaryClustersDataType = 'array';
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setClusterRole($clusterRole)
{
$this->clusterRole = $clusterRole;
}
/**
* @return string
*/
public function getClusterRole()
{
return $this->clusterRole;
}
/**
* @param Membership
*/
public function setMembership(Membership $membership)
{
$this->membership = $membership;
}
/**
* @return Membership
*/
public function getMembership()
{
return $this->membership;
}
/**
* @param RemoteCluster
*/
public function setPrimaryCluster(RemoteCluster $primaryCluster)
{
$this->primaryCluster = $primaryCluster;
}
/**
* @return RemoteCluster
*/
public function getPrimaryCluster()
{
return $this->primaryCluster;
}
/**
* @param RemoteCluster[]
*/
public function setSecondaryClusters($secondaryClusters)
{
$this->secondaryClusters = $secondaryClusters;
}
/**
* @return RemoteCluster[]
*/
public function getSecondaryClusters()
{
return $this->secondaryClusters;
}
/**
* @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(CrossClusterReplicationConfig::class, 'Google_Service_CloudRedis_CrossClusterReplicationConfig');

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

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\CloudRedis;
class DatabaseMetadata extends \Google\Model
{
protected $backupConfigurationType = BackupConfiguration::class;
protected $backupConfigurationDataType = '';
protected $backupRunType = BackupRun::class;
protected $backupRunDataType = '';
protected $productType = Product::class;
protected $productDataType = '';
protected $resourceIdType = DatabaseResourceId::class;
protected $resourceIdDataType = '';
/**
* @var string
*/
public $resourceName;
/**
* @param BackupConfiguration
*/
public function setBackupConfiguration(BackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return BackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* @param BackupRun
*/
public function setBackupRun(BackupRun $backupRun)
{
$this->backupRun = $backupRun;
}
/**
* @return BackupRun
*/
public function getBackupRun()
{
return $this->backupRun;
}
/**
* @param Product
*/
public function setProduct(Product $product)
{
$this->product = $product;
}
/**
* @return Product
*/
public function getProduct()
{
return $this->product;
}
/**
* @param DatabaseResourceId
*/
public function setResourceId(DatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return DatabaseResourceId
*/
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(DatabaseMetadata::class, 'Google_Service_CloudRedis_DatabaseMetadata');

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\CloudRedis;
class DatabaseResourceFeed extends \Google\Model
{
/**
* @var string
*/
public $feedTimestamp;
/**
* @var string
*/
public $feedType;
protected $observabilityMetricDataType = ObservabilityMetricData::class;
protected $observabilityMetricDataDataType = '';
protected $recommendationSignalDataType = DatabaseResourceRecommendationSignalData::class;
protected $recommendationSignalDataDataType = '';
protected $resourceHealthSignalDataType = DatabaseResourceHealthSignalData::class;
protected $resourceHealthSignalDataDataType = '';
protected $resourceIdType = DatabaseResourceId::class;
protected $resourceIdDataType = '';
protected $resourceMetadataType = DatabaseResourceMetadata::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 ObservabilityMetricData
*/
public function setObservabilityMetricData(ObservabilityMetricData $observabilityMetricData)
{
$this->observabilityMetricData = $observabilityMetricData;
}
/**
* @return ObservabilityMetricData
*/
public function getObservabilityMetricData()
{
return $this->observabilityMetricData;
}
/**
* @param DatabaseResourceRecommendationSignalData
*/
public function setRecommendationSignalData(DatabaseResourceRecommendationSignalData $recommendationSignalData)
{
$this->recommendationSignalData = $recommendationSignalData;
}
/**
* @return DatabaseResourceRecommendationSignalData
*/
public function getRecommendationSignalData()
{
return $this->recommendationSignalData;
}
/**
* @param DatabaseResourceHealthSignalData
*/
public function setResourceHealthSignalData(DatabaseResourceHealthSignalData $resourceHealthSignalData)
{
$this->resourceHealthSignalData = $resourceHealthSignalData;
}
/**
* @return DatabaseResourceHealthSignalData
*/
public function getResourceHealthSignalData()
{
return $this->resourceHealthSignalData;
}
/**
* @param DatabaseResourceId
*/
public function setResourceId(DatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return DatabaseResourceId
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param DatabaseResourceMetadata
*/
public function setResourceMetadata(DatabaseResourceMetadata $resourceMetadata)
{
$this->resourceMetadata = $resourceMetadata;
}
/**
* @return DatabaseResourceMetadata
*/
public function getResourceMetadata()
{
return $this->resourceMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseResourceFeed::class, 'Google_Service_CloudRedis_DatabaseResourceFeed');

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\CloudRedis;
class DatabaseResourceHealthSignalData extends \Google\Collection
{
protected $collection_key = 'compliance';
/**
* @var array[]
*/
public $additionalMetadata;
protected $complianceType = Compliance::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 Compliance[]
*/
public function setCompliance($compliance)
{
$this->compliance = $compliance;
}
/**
* @return Compliance[]
*/
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(DatabaseResourceHealthSignalData::class, 'Google_Service_CloudRedis_DatabaseResourceHealthSignalData');

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\CloudRedis;
class DatabaseResourceId 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(DatabaseResourceId::class, 'Google_Service_CloudRedis_DatabaseResourceId');

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\CloudRedis;
class DatabaseResourceMetadata extends \Google\Collection
{
protected $collection_key = 'entitlements';
protected $availabilityConfigurationType = AvailabilityConfiguration::class;
protected $availabilityConfigurationDataType = '';
protected $backupConfigurationType = BackupConfiguration::class;
protected $backupConfigurationDataType = '';
protected $backupRunType = BackupRun::class;
protected $backupRunDataType = '';
/**
* @var string
*/
public $creationTime;
/**
* @var string
*/
public $currentState;
protected $customMetadataType = CustomMetadataData::class;
protected $customMetadataDataType = '';
/**
* @var string
*/
public $edition;
protected $entitlementsType = Entitlement::class;
protected $entitlementsDataType = 'array';
/**
* @var string
*/
public $expectedState;
protected $idType = DatabaseResourceId::class;
protected $idDataType = '';
/**
* @var string
*/
public $instanceType;
/**
* @var string
*/
public $location;
protected $machineConfigurationType = MachineConfiguration::class;
protected $machineConfigurationDataType = '';
protected $primaryResourceIdType = DatabaseResourceId::class;
protected $primaryResourceIdDataType = '';
/**
* @var string
*/
public $primaryResourceLocation;
protected $productType = Product::class;
protected $productDataType = '';
/**
* @var string
*/
public $resourceContainer;
/**
* @var string
*/
public $resourceName;
protected $tagsSetType = Tags::class;
protected $tagsSetDataType = '';
/**
* @var string
*/
public $updationTime;
protected $userLabelSetType = UserLabels::class;
protected $userLabelSetDataType = '';
/**
* @param AvailabilityConfiguration
*/
public function setAvailabilityConfiguration(AvailabilityConfiguration $availabilityConfiguration)
{
$this->availabilityConfiguration = $availabilityConfiguration;
}
/**
* @return AvailabilityConfiguration
*/
public function getAvailabilityConfiguration()
{
return $this->availabilityConfiguration;
}
/**
* @param BackupConfiguration
*/
public function setBackupConfiguration(BackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return BackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* @param BackupRun
*/
public function setBackupRun(BackupRun $backupRun)
{
$this->backupRun = $backupRun;
}
/**
* @return BackupRun
*/
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 CustomMetadataData
*/
public function setCustomMetadata(CustomMetadataData $customMetadata)
{
$this->customMetadata = $customMetadata;
}
/**
* @return CustomMetadataData
*/
public function getCustomMetadata()
{
return $this->customMetadata;
}
/**
* @param string
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* @param Entitlement[]
*/
public function setEntitlements($entitlements)
{
$this->entitlements = $entitlements;
}
/**
* @return Entitlement[]
*/
public function getEntitlements()
{
return $this->entitlements;
}
/**
* @param string
*/
public function setExpectedState($expectedState)
{
$this->expectedState = $expectedState;
}
/**
* @return string
*/
public function getExpectedState()
{
return $this->expectedState;
}
/**
* @param DatabaseResourceId
*/
public function setId(DatabaseResourceId $id)
{
$this->id = $id;
}
/**
* @return DatabaseResourceId
*/
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 MachineConfiguration
*/
public function setMachineConfiguration(MachineConfiguration $machineConfiguration)
{
$this->machineConfiguration = $machineConfiguration;
}
/**
* @return MachineConfiguration
*/
public function getMachineConfiguration()
{
return $this->machineConfiguration;
}
/**
* @param DatabaseResourceId
*/
public function setPrimaryResourceId(DatabaseResourceId $primaryResourceId)
{
$this->primaryResourceId = $primaryResourceId;
}
/**
* @return DatabaseResourceId
*/
public function getPrimaryResourceId()
{
return $this->primaryResourceId;
}
/**
* @param string
*/
public function setPrimaryResourceLocation($primaryResourceLocation)
{
$this->primaryResourceLocation = $primaryResourceLocation;
}
/**
* @return string
*/
public function getPrimaryResourceLocation()
{
return $this->primaryResourceLocation;
}
/**
* @param Product
*/
public function setProduct(Product $product)
{
$this->product = $product;
}
/**
* @return Product
*/
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 Tags
*/
public function setTagsSet(Tags $tagsSet)
{
$this->tagsSet = $tagsSet;
}
/**
* @return Tags
*/
public function getTagsSet()
{
return $this->tagsSet;
}
/**
* @param string
*/
public function setUpdationTime($updationTime)
{
$this->updationTime = $updationTime;
}
/**
* @return string
*/
public function getUpdationTime()
{
return $this->updationTime;
}
/**
* @param UserLabels
*/
public function setUserLabelSet(UserLabels $userLabelSet)
{
$this->userLabelSet = $userLabelSet;
}
/**
* @return UserLabels
*/
public function getUserLabelSet()
{
return $this->userLabelSet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseResourceMetadata::class, 'Google_Service_CloudRedis_DatabaseResourceMetadata');

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\CloudRedis;
class DatabaseResourceRecommendationSignalData 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(DatabaseResourceRecommendationSignalData::class, 'Google_Service_CloudRedis_DatabaseResourceRecommendationSignalData');

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\CloudRedis;
class DirectLocationAssignment extends \Google\Collection
{
protected $collection_key = 'location';
protected $locationType = LocationAssignment::class;
protected $locationDataType = 'array';
/**
* @param LocationAssignment[]
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return LocationAssignment[]
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectLocationAssignment::class, 'Google_Service_CloudRedis_DirectLocationAssignment');

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\CloudRedis;
class DiscoveryEndpoint extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var int
*/
public $port;
protected $pscConfigType = PscConfig::class;
protected $pscConfigDataType = '';
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param int
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* @param PscConfig
*/
public function setPscConfig(PscConfig $pscConfig)
{
$this->pscConfig = $pscConfig;
}
/**
* @return PscConfig
*/
public function getPscConfig()
{
return $this->pscConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiscoveryEndpoint::class, 'Google_Service_CloudRedis_DiscoveryEndpoint');

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\CloudRedis;
class Endpoint extends \Google\Model
{
/**
* @var string
*/
public $host;
/**
* @var int
*/
public $port;
/**
* @param string
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* @param int
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Endpoint::class, 'Google_Service_CloudRedis_Endpoint');

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\CloudRedis;
class Entitlement 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(Entitlement::class, 'Google_Service_CloudRedis_Entitlement');

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\CloudRedis;
class ExportBackupRequest extends \Google\Model
{
/**
* @var string
*/
public $gcsBucket;
/**
* @param string
*/
public function setGcsBucket($gcsBucket)
{
$this->gcsBucket = $gcsBucket;
}
/**
* @return string
*/
public function getGcsBucket()
{
return $this->gcsBucket;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportBackupRequest::class, 'Google_Service_CloudRedis_ExportBackupRequest');

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\CloudRedis;
class ExportInstanceRequest extends \Google\Model
{
protected $outputConfigType = OutputConfig::class;
protected $outputConfigDataType = '';
/**
* @param OutputConfig
*/
public function setOutputConfig(OutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return OutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportInstanceRequest::class, 'Google_Service_CloudRedis_ExportInstanceRequest');

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\CloudRedis;
class ExtraParameter extends \Google\Model
{
protected $regionalMigDistributionPolicyType = RegionalMigDistributionPolicy::class;
protected $regionalMigDistributionPolicyDataType = '';
/**
* @param RegionalMigDistributionPolicy
*/
public function setRegionalMigDistributionPolicy(RegionalMigDistributionPolicy $regionalMigDistributionPolicy)
{
$this->regionalMigDistributionPolicy = $regionalMigDistributionPolicy;
}
/**
* @return RegionalMigDistributionPolicy
*/
public function getRegionalMigDistributionPolicy()
{
return $this->regionalMigDistributionPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtraParameter::class, 'Google_Service_CloudRedis_ExtraParameter');

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\CloudRedis;
class FailoverInstanceRequest extends \Google\Model
{
/**
* @var string
*/
public $dataProtectionMode;
/**
* @param string
*/
public function setDataProtectionMode($dataProtectionMode)
{
$this->dataProtectionMode = $dataProtectionMode;
}
/**
* @return string
*/
public function getDataProtectionMode()
{
return $this->dataProtectionMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailoverInstanceRequest::class, 'Google_Service_CloudRedis_FailoverInstanceRequest');

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\CloudRedis;
class FixedFrequencySchedule extends \Google\Model
{
protected $startTimeType = TimeOfDay::class;
protected $startTimeDataType = '';
/**
* @param TimeOfDay
*/
public function setStartTime(TimeOfDay $startTime)
{
$this->startTime = $startTime;
}
/**
* @return TimeOfDay
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FixedFrequencySchedule::class, 'Google_Service_CloudRedis_FixedFrequencySchedule');

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\CloudRedis;
class GcsBackupSource extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* @var string[]
*/
public $uris;
/**
* @param string[]
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcsBackupSource::class, 'Google_Service_CloudRedis_GcsBackupSource');

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\CloudRedis;
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_CloudRedis_GcsDestination');

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\CloudRedis;
class GcsSource 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(GcsSource::class, 'Google_Service_CloudRedis_GcsSource');

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\CloudRedis;
class GoogleCloudRedisV1LocationMetadata extends \Google\Model
{
protected $availableZonesType = GoogleCloudRedisV1ZoneMetadata::class;
protected $availableZonesDataType = 'map';
/**
* @param GoogleCloudRedisV1ZoneMetadata[]
*/
public function setAvailableZones($availableZones)
{
$this->availableZones = $availableZones;
}
/**
* @return GoogleCloudRedisV1ZoneMetadata[]
*/
public function getAvailableZones()
{
return $this->availableZones;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRedisV1LocationMetadata::class, 'Google_Service_CloudRedis_GoogleCloudRedisV1LocationMetadata');

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\CloudRedis;
class GoogleCloudRedisV1OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var bool
*/
public $cancelRequested;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $statusDetail;
/**
* @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 bool
*/
public function setCancelRequested($cancelRequested)
{
$this->cancelRequested = $cancelRequested;
}
/**
* @return bool
*/
public function getCancelRequested()
{
return $this->cancelRequested;
}
/**
* @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 string
*/
public function setStatusDetail($statusDetail)
{
$this->statusDetail = $statusDetail;
}
/**
* @return string
*/
public function getStatusDetail()
{
return $this->statusDetail;
}
/**
* @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(GoogleCloudRedisV1OperationMetadata::class, 'Google_Service_CloudRedis_GoogleCloudRedisV1OperationMetadata');

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\CloudRedis;
class GoogleCloudRedisV1ZoneMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRedisV1ZoneMetadata::class, 'Google_Service_CloudRedis_GoogleCloudRedisV1ZoneMetadata');

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\CloudRedis;
class ImportInstanceRequest extends \Google\Model
{
protected $inputConfigType = InputConfig::class;
protected $inputConfigDataType = '';
/**
* @param InputConfig
*/
public function setInputConfig(InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportInstanceRequest::class, 'Google_Service_CloudRedis_ImportInstanceRequest');

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\CloudRedis;
class InputConfig extends \Google\Model
{
protected $gcsSourceType = GcsSource::class;
protected $gcsSourceDataType = '';
/**
* @param GcsSource
*/
public function setGcsSource(GcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return GcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InputConfig::class, 'Google_Service_CloudRedis_InputConfig');

View File

@@ -0,0 +1,683 @@
<?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\CloudRedis;
class Instance extends \Google\Collection
{
protected $collection_key = 'suspensionReasons';
/**
* @var string
*/
public $alternativeLocationId;
/**
* @var bool
*/
public $authEnabled;
/**
* @var string
*/
public $authorizedNetwork;
/**
* @var string[]
*/
public $availableMaintenanceVersions;
/**
* @var string
*/
public $connectMode;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $currentLocationId;
/**
* @var string
*/
public $customerManagedKey;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $host;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
protected $maintenancePolicyType = MaintenancePolicy::class;
protected $maintenancePolicyDataType = '';
protected $maintenanceScheduleType = MaintenanceSchedule::class;
protected $maintenanceScheduleDataType = '';
/**
* @var string
*/
public $maintenanceVersion;
/**
* @var int
*/
public $memorySizeGb;
/**
* @var string
*/
public $name;
protected $nodesType = NodeInfo::class;
protected $nodesDataType = 'array';
protected $persistenceConfigType = PersistenceConfig::class;
protected $persistenceConfigDataType = '';
/**
* @var string
*/
public $persistenceIamIdentity;
/**
* @var int
*/
public $port;
/**
* @var string
*/
public $readEndpoint;
/**
* @var int
*/
public $readEndpointPort;
/**
* @var string
*/
public $readReplicasMode;
/**
* @var string[]
*/
public $redisConfigs;
/**
* @var string
*/
public $redisVersion;
/**
* @var int
*/
public $replicaCount;
/**
* @var string
*/
public $reservedIpRange;
/**
* @var bool
*/
public $satisfiesPzi;
/**
* @var bool
*/
public $satisfiesPzs;
/**
* @var string
*/
public $secondaryIpRange;
protected $serverCaCertsType = TlsCertificate::class;
protected $serverCaCertsDataType = 'array';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $statusMessage;
/**
* @var string[]
*/
public $suspensionReasons;
/**
* @var string
*/
public $tier;
/**
* @var string
*/
public $transitEncryptionMode;
/**
* @param string
*/
public function setAlternativeLocationId($alternativeLocationId)
{
$this->alternativeLocationId = $alternativeLocationId;
}
/**
* @return string
*/
public function getAlternativeLocationId()
{
return $this->alternativeLocationId;
}
/**
* @param bool
*/
public function setAuthEnabled($authEnabled)
{
$this->authEnabled = $authEnabled;
}
/**
* @return bool
*/
public function getAuthEnabled()
{
return $this->authEnabled;
}
/**
* @param string
*/
public function setAuthorizedNetwork($authorizedNetwork)
{
$this->authorizedNetwork = $authorizedNetwork;
}
/**
* @return string
*/
public function getAuthorizedNetwork()
{
return $this->authorizedNetwork;
}
/**
* @param string[]
*/
public function setAvailableMaintenanceVersions($availableMaintenanceVersions)
{
$this->availableMaintenanceVersions = $availableMaintenanceVersions;
}
/**
* @return string[]
*/
public function getAvailableMaintenanceVersions()
{
return $this->availableMaintenanceVersions;
}
/**
* @param string
*/
public function setConnectMode($connectMode)
{
$this->connectMode = $connectMode;
}
/**
* @return string
*/
public function getConnectMode()
{
return $this->connectMode;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCurrentLocationId($currentLocationId)
{
$this->currentLocationId = $currentLocationId;
}
/**
* @return string
*/
public function getCurrentLocationId()
{
return $this->currentLocationId;
}
/**
* @param string
*/
public function setCustomerManagedKey($customerManagedKey)
{
$this->customerManagedKey = $customerManagedKey;
}
/**
* @return string
*/
public function getCustomerManagedKey()
{
return $this->customerManagedKey;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* @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 MaintenancePolicy
*/
public function setMaintenancePolicy(MaintenancePolicy $maintenancePolicy)
{
$this->maintenancePolicy = $maintenancePolicy;
}
/**
* @return MaintenancePolicy
*/
public function getMaintenancePolicy()
{
return $this->maintenancePolicy;
}
/**
* @param MaintenanceSchedule
*/
public function setMaintenanceSchedule(MaintenanceSchedule $maintenanceSchedule)
{
$this->maintenanceSchedule = $maintenanceSchedule;
}
/**
* @return MaintenanceSchedule
*/
public function getMaintenanceSchedule()
{
return $this->maintenanceSchedule;
}
/**
* @param string
*/
public function setMaintenanceVersion($maintenanceVersion)
{
$this->maintenanceVersion = $maintenanceVersion;
}
/**
* @return string
*/
public function getMaintenanceVersion()
{
return $this->maintenanceVersion;
}
/**
* @param int
*/
public function setMemorySizeGb($memorySizeGb)
{
$this->memorySizeGb = $memorySizeGb;
}
/**
* @return int
*/
public function getMemorySizeGb()
{
return $this->memorySizeGb;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param NodeInfo[]
*/
public function setNodes($nodes)
{
$this->nodes = $nodes;
}
/**
* @return NodeInfo[]
*/
public function getNodes()
{
return $this->nodes;
}
/**
* @param PersistenceConfig
*/
public function setPersistenceConfig(PersistenceConfig $persistenceConfig)
{
$this->persistenceConfig = $persistenceConfig;
}
/**
* @return PersistenceConfig
*/
public function getPersistenceConfig()
{
return $this->persistenceConfig;
}
/**
* @param string
*/
public function setPersistenceIamIdentity($persistenceIamIdentity)
{
$this->persistenceIamIdentity = $persistenceIamIdentity;
}
/**
* @return string
*/
public function getPersistenceIamIdentity()
{
return $this->persistenceIamIdentity;
}
/**
* @param int
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* @param string
*/
public function setReadEndpoint($readEndpoint)
{
$this->readEndpoint = $readEndpoint;
}
/**
* @return string
*/
public function getReadEndpoint()
{
return $this->readEndpoint;
}
/**
* @param int
*/
public function setReadEndpointPort($readEndpointPort)
{
$this->readEndpointPort = $readEndpointPort;
}
/**
* @return int
*/
public function getReadEndpointPort()
{
return $this->readEndpointPort;
}
/**
* @param string
*/
public function setReadReplicasMode($readReplicasMode)
{
$this->readReplicasMode = $readReplicasMode;
}
/**
* @return string
*/
public function getReadReplicasMode()
{
return $this->readReplicasMode;
}
/**
* @param string[]
*/
public function setRedisConfigs($redisConfigs)
{
$this->redisConfigs = $redisConfigs;
}
/**
* @return string[]
*/
public function getRedisConfigs()
{
return $this->redisConfigs;
}
/**
* @param string
*/
public function setRedisVersion($redisVersion)
{
$this->redisVersion = $redisVersion;
}
/**
* @return string
*/
public function getRedisVersion()
{
return $this->redisVersion;
}
/**
* @param int
*/
public function setReplicaCount($replicaCount)
{
$this->replicaCount = $replicaCount;
}
/**
* @return int
*/
public function getReplicaCount()
{
return $this->replicaCount;
}
/**
* @param string
*/
public function setReservedIpRange($reservedIpRange)
{
$this->reservedIpRange = $reservedIpRange;
}
/**
* @return string
*/
public function getReservedIpRange()
{
return $this->reservedIpRange;
}
/**
* @param bool
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* @param bool
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* @param string
*/
public function setSecondaryIpRange($secondaryIpRange)
{
$this->secondaryIpRange = $secondaryIpRange;
}
/**
* @return string
*/
public function getSecondaryIpRange()
{
return $this->secondaryIpRange;
}
/**
* @param TlsCertificate[]
*/
public function setServerCaCerts($serverCaCerts)
{
$this->serverCaCerts = $serverCaCerts;
}
/**
* @return TlsCertificate[]
*/
public function getServerCaCerts()
{
return $this->serverCaCerts;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string[]
*/
public function setSuspensionReasons($suspensionReasons)
{
$this->suspensionReasons = $suspensionReasons;
}
/**
* @return string[]
*/
public function getSuspensionReasons()
{
return $this->suspensionReasons;
}
/**
* @param string
*/
public function setTier($tier)
{
$this->tier = $tier;
}
/**
* @return string
*/
public function getTier()
{
return $this->tier;
}
/**
* @param string
*/
public function setTransitEncryptionMode($transitEncryptionMode)
{
$this->transitEncryptionMode = $transitEncryptionMode;
}
/**
* @return string
*/
public function getTransitEncryptionMode()
{
return $this->transitEncryptionMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_CloudRedis_Instance');

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\CloudRedis;
class InstanceAuthString extends \Google\Model
{
/**
* @var string
*/
public $authString;
/**
* @param string
*/
public function setAuthString($authString)
{
$this->authString = $authString;
}
/**
* @return string
*/
public function getAuthString()
{
return $this->authString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceAuthString::class, 'Google_Service_CloudRedis_InstanceAuthString');

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\CloudRedis;
class InternalResourceMetadata extends \Google\Model
{
protected $backupConfigurationType = BackupConfiguration::class;
protected $backupConfigurationDataType = '';
protected $backupRunType = BackupRun::class;
protected $backupRunDataType = '';
protected $productType = Product::class;
protected $productDataType = '';
protected $resourceIdType = DatabaseResourceId::class;
protected $resourceIdDataType = '';
/**
* @var string
*/
public $resourceName;
/**
* @param BackupConfiguration
*/
public function setBackupConfiguration(BackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return BackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* @param BackupRun
*/
public function setBackupRun(BackupRun $backupRun)
{
$this->backupRun = $backupRun;
}
/**
* @return BackupRun
*/
public function getBackupRun()
{
return $this->backupRun;
}
/**
* @param Product
*/
public function setProduct(Product $product)
{
$this->product = $product;
}
/**
* @return Product
*/
public function getProduct()
{
return $this->product;
}
/**
* @param DatabaseResourceId
*/
public function setResourceId(DatabaseResourceId $resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return DatabaseResourceId
*/
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(InternalResourceMetadata::class, 'Google_Service_CloudRedis_InternalResourceMetadata');

View File

@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudRedis;
class IsolationExpectations extends \Google\Model
{
protected $requirementOverrideType = RequirementOverride::class;
protected $requirementOverrideDataType = '';
/**
* @var string
*/
public $ziOrgPolicy;
/**
* @var string
*/
public $ziRegionPolicy;
/**
* @var string
*/
public $ziRegionState;
/**
* @var string
*/
public $zoneIsolation;
/**
* @var string
*/
public $zoneSeparation;
/**
* @var string
*/
public $zsOrgPolicy;
/**
* @var string
*/
public $zsRegionState;
/**
* @param RequirementOverride
*/
public function setRequirementOverride(RequirementOverride $requirementOverride)
{
$this->requirementOverride = $requirementOverride;
}
/**
* @return RequirementOverride
*/
public function getRequirementOverride()
{
return $this->requirementOverride;
}
/**
* @param string
*/
public function setZiOrgPolicy($ziOrgPolicy)
{
$this->ziOrgPolicy = $ziOrgPolicy;
}
/**
* @return string
*/
public function getZiOrgPolicy()
{
return $this->ziOrgPolicy;
}
/**
* @param string
*/
public function setZiRegionPolicy($ziRegionPolicy)
{
$this->ziRegionPolicy = $ziRegionPolicy;
}
/**
* @return string
*/
public function getZiRegionPolicy()
{
return $this->ziRegionPolicy;
}
/**
* @param string
*/
public function setZiRegionState($ziRegionState)
{
$this->ziRegionState = $ziRegionState;
}
/**
* @return string
*/
public function getZiRegionState()
{
return $this->ziRegionState;
}
/**
* @param string
*/
public function setZoneIsolation($zoneIsolation)
{
$this->zoneIsolation = $zoneIsolation;
}
/**
* @return string
*/
public function getZoneIsolation()
{
return $this->zoneIsolation;
}
/**
* @param string
*/
public function setZoneSeparation($zoneSeparation)
{
$this->zoneSeparation = $zoneSeparation;
}
/**
* @return string
*/
public function getZoneSeparation()
{
return $this->zoneSeparation;
}
/**
* @param string
*/
public function setZsOrgPolicy($zsOrgPolicy)
{
$this->zsOrgPolicy = $zsOrgPolicy;
}
/**
* @return string
*/
public function getZsOrgPolicy()
{
return $this->zsOrgPolicy;
}
/**
* @param string
*/
public function setZsRegionState($zsRegionState)
{
$this->zsRegionState = $zsRegionState;
}
/**
* @return string
*/
public function getZsRegionState()
{
return $this->zsRegionState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IsolationExpectations::class, 'Google_Service_CloudRedis_IsolationExpectations');

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\CloudRedis;
class ListBackupCollectionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupCollectionsType = BackupCollection::class;
protected $backupCollectionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param BackupCollection[]
*/
public function setBackupCollections($backupCollections)
{
$this->backupCollections = $backupCollections;
}
/**
* @return BackupCollection[]
*/
public function getBackupCollections()
{
return $this->backupCollections;
}
/**
* @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(ListBackupCollectionsResponse::class, 'Google_Service_CloudRedis_ListBackupCollectionsResponse');

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

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\CloudRedis;
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_CloudRedis_ListOperationsResponse');

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\CloudRedis;
class Location 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(Location::class, 'Google_Service_CloudRedis_Location');

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\CloudRedis;
class LocationAssignment extends \Google\Model
{
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationAssignment::class, 'Google_Service_CloudRedis_LocationAssignment');

View File

@@ -0,0 +1,122 @@
<?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\CloudRedis;
class LocationData extends \Google\Model
{
protected $blobstoreLocationType = BlobstoreLocation::class;
protected $blobstoreLocationDataType = '';
protected $childAssetLocationType = CloudAssetComposition::class;
protected $childAssetLocationDataType = '';
protected $directLocationType = DirectLocationAssignment::class;
protected $directLocationDataType = '';
protected $gcpProjectProxyType = TenantProjectProxy::class;
protected $gcpProjectProxyDataType = '';
protected $placerLocationType = PlacerLocation::class;
protected $placerLocationDataType = '';
protected $spannerLocationType = SpannerLocation::class;
protected $spannerLocationDataType = '';
/**
* @param BlobstoreLocation
*/
public function setBlobstoreLocation(BlobstoreLocation $blobstoreLocation)
{
$this->blobstoreLocation = $blobstoreLocation;
}
/**
* @return BlobstoreLocation
*/
public function getBlobstoreLocation()
{
return $this->blobstoreLocation;
}
/**
* @param CloudAssetComposition
*/
public function setChildAssetLocation(CloudAssetComposition $childAssetLocation)
{
$this->childAssetLocation = $childAssetLocation;
}
/**
* @return CloudAssetComposition
*/
public function getChildAssetLocation()
{
return $this->childAssetLocation;
}
/**
* @param DirectLocationAssignment
*/
public function setDirectLocation(DirectLocationAssignment $directLocation)
{
$this->directLocation = $directLocation;
}
/**
* @return DirectLocationAssignment
*/
public function getDirectLocation()
{
return $this->directLocation;
}
/**
* @param TenantProjectProxy
*/
public function setGcpProjectProxy(TenantProjectProxy $gcpProjectProxy)
{
$this->gcpProjectProxy = $gcpProjectProxy;
}
/**
* @return TenantProjectProxy
*/
public function getGcpProjectProxy()
{
return $this->gcpProjectProxy;
}
/**
* @param PlacerLocation
*/
public function setPlacerLocation(PlacerLocation $placerLocation)
{
$this->placerLocation = $placerLocation;
}
/**
* @return PlacerLocation
*/
public function getPlacerLocation()
{
return $this->placerLocation;
}
/**
* @param SpannerLocation
*/
public function setSpannerLocation(SpannerLocation $spannerLocation)
{
$this->spannerLocation = $spannerLocation;
}
/**
* @return SpannerLocation
*/
public function getSpannerLocation()
{
return $this->spannerLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationData::class, 'Google_Service_CloudRedis_LocationData');

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\CloudRedis;
class MachineConfiguration 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(MachineConfiguration::class, 'Google_Service_CloudRedis_MachineConfiguration');

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\CloudRedis;
class MaintenancePolicy extends \Google\Collection
{
protected $collection_key = 'weeklyMaintenanceWindow';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $updateTime;
protected $weeklyMaintenanceWindowType = WeeklyMaintenanceWindow::class;
protected $weeklyMaintenanceWindowDataType = 'array';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param WeeklyMaintenanceWindow[]
*/
public function setWeeklyMaintenanceWindow($weeklyMaintenanceWindow)
{
$this->weeklyMaintenanceWindow = $weeklyMaintenanceWindow;
}
/**
* @return WeeklyMaintenanceWindow[]
*/
public function getWeeklyMaintenanceWindow()
{
return $this->weeklyMaintenanceWindow;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenancePolicy::class, 'Google_Service_CloudRedis_MaintenancePolicy');

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\CloudRedis;
class MaintenanceSchedule extends \Google\Model
{
/**
* @var bool
*/
public $canReschedule;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $scheduleDeadlineTime;
/**
* @var string
*/
public $startTime;
/**
* @param bool
*/
public function setCanReschedule($canReschedule)
{
$this->canReschedule = $canReschedule;
}
/**
* @return bool
*/
public function getCanReschedule()
{
return $this->canReschedule;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setScheduleDeadlineTime($scheduleDeadlineTime)
{
$this->scheduleDeadlineTime = $scheduleDeadlineTime;
}
/**
* @return string
*/
public function getScheduleDeadlineTime()
{
return $this->scheduleDeadlineTime;
}
/**
* @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_CloudRedis_MaintenanceSchedule');

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\CloudRedis;
class ManagedBackupSource extends \Google\Model
{
/**
* @var string
*/
public $backup;
/**
* @param string
*/
public function setBackup($backup)
{
$this->backup = $backup;
}
/**
* @return string
*/
public function getBackup()
{
return $this->backup;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedBackupSource::class, 'Google_Service_CloudRedis_ManagedBackupSource');

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\CloudRedis;
class ManagedCertificateAuthority extends \Google\Collection
{
protected $collection_key = 'caCerts';
protected $caCertsType = CertChain::class;
protected $caCertsDataType = 'array';
/**
* @param CertChain[]
*/
public function setCaCerts($caCerts)
{
$this->caCerts = $caCerts;
}
/**
* @return CertChain[]
*/
public function getCaCerts()
{
return $this->caCerts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedCertificateAuthority::class, 'Google_Service_CloudRedis_ManagedCertificateAuthority');

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\CloudRedis;
class Membership extends \Google\Collection
{
protected $collection_key = 'secondaryClusters';
protected $primaryClusterType = RemoteCluster::class;
protected $primaryClusterDataType = '';
protected $secondaryClustersType = RemoteCluster::class;
protected $secondaryClustersDataType = 'array';
/**
* @param RemoteCluster
*/
public function setPrimaryCluster(RemoteCluster $primaryCluster)
{
$this->primaryCluster = $primaryCluster;
}
/**
* @return RemoteCluster
*/
public function getPrimaryCluster()
{
return $this->primaryCluster;
}
/**
* @param RemoteCluster[]
*/
public function setSecondaryClusters($secondaryClusters)
{
$this->secondaryClusters = $secondaryClusters;
}
/**
* @return RemoteCluster[]
*/
public function getSecondaryClusters()
{
return $this->secondaryClusters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Membership::class, 'Google_Service_CloudRedis_Membership');

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\CloudRedis;
class NodeInfo extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $zone;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NodeInfo::class, 'Google_Service_CloudRedis_NodeInfo');

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\CloudRedis;
class ObservabilityMetricData extends \Google\Model
{
/**
* @var string
*/
public $aggregationType;
/**
* @var string
*/
public $metricType;
/**
* @var string
*/
public $observationTime;
/**
* @var string
*/
public $resourceName;
protected $valueType = TypedValue::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 TypedValue
*/
public function setValue(TypedValue $value)
{
$this->value = $value;
}
/**
* @return TypedValue
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObservabilityMetricData::class, 'Google_Service_CloudRedis_ObservabilityMetricData');

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\CloudRedis;
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_CloudRedis_Operation');

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\CloudRedis;
class OperationError 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(OperationError::class, 'Google_Service_CloudRedis_OperationError');

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\CloudRedis;
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_CloudRedis_OperationMetadata');

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\CloudRedis;
class OutputConfig 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(OutputConfig::class, 'Google_Service_CloudRedis_OutputConfig');

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\CloudRedis;
class PersistenceConfig extends \Google\Model
{
/**
* @var string
*/
public $persistenceMode;
/**
* @var string
*/
public $rdbNextSnapshotTime;
/**
* @var string
*/
public $rdbSnapshotPeriod;
/**
* @var string
*/
public $rdbSnapshotStartTime;
/**
* @param string
*/
public function setPersistenceMode($persistenceMode)
{
$this->persistenceMode = $persistenceMode;
}
/**
* @return string
*/
public function getPersistenceMode()
{
return $this->persistenceMode;
}
/**
* @param string
*/
public function setRdbNextSnapshotTime($rdbNextSnapshotTime)
{
$this->rdbNextSnapshotTime = $rdbNextSnapshotTime;
}
/**
* @return string
*/
public function getRdbNextSnapshotTime()
{
return $this->rdbNextSnapshotTime;
}
/**
* @param string
*/
public function setRdbSnapshotPeriod($rdbSnapshotPeriod)
{
$this->rdbSnapshotPeriod = $rdbSnapshotPeriod;
}
/**
* @return string
*/
public function getRdbSnapshotPeriod()
{
return $this->rdbSnapshotPeriod;
}
/**
* @param string
*/
public function setRdbSnapshotStartTime($rdbSnapshotStartTime)
{
$this->rdbSnapshotStartTime = $rdbSnapshotStartTime;
}
/**
* @return string
*/
public function getRdbSnapshotStartTime()
{
return $this->rdbSnapshotStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PersistenceConfig::class, 'Google_Service_CloudRedis_PersistenceConfig');

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\CloudRedis;
class PlacerLocation extends \Google\Model
{
/**
* @var string
*/
public $placerConfig;
/**
* @param string
*/
public function setPlacerConfig($placerConfig)
{
$this->placerConfig = $placerConfig;
}
/**
* @return string
*/
public function getPlacerConfig()
{
return $this->placerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlacerLocation::class, 'Google_Service_CloudRedis_PlacerLocation');

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\CloudRedis;
class PrivateServiceConnect extends \Google\Model
{
/**
* @var string
*/
public $pscService;
/**
* @var string
*/
public $pscServiceRoute;
/**
* @param string
*/
public function setPscService($pscService)
{
$this->pscService = $pscService;
}
/**
* @return string
*/
public function getPscService()
{
return $this->pscService;
}
/**
* @param string
*/
public function setPscServiceRoute($pscServiceRoute)
{
$this->pscServiceRoute = $pscServiceRoute;
}
/**
* @return string
*/
public function getPscServiceRoute()
{
return $this->pscServiceRoute;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrivateServiceConnect::class, 'Google_Service_CloudRedis_PrivateServiceConnect');

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\CloudRedis;
class Product 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(Product::class, 'Google_Service_CloudRedis_Product');

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\CloudRedis;
class PscAutoConnection extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $connectionType;
/**
* @var string
*/
public $forwardingRule;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $pscConnectionId;
/**
* @var string
*/
public $pscConnectionStatus;
/**
* @var string
*/
public $serviceAttachment;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setConnectionType($connectionType)
{
$this->connectionType = $connectionType;
}
/**
* @return string
*/
public function getConnectionType()
{
return $this->connectionType;
}
/**
* @param string
*/
public function setForwardingRule($forwardingRule)
{
$this->forwardingRule = $forwardingRule;
}
/**
* @return string
*/
public function getForwardingRule()
{
return $this->forwardingRule;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setPscConnectionId($pscConnectionId)
{
$this->pscConnectionId = $pscConnectionId;
}
/**
* @return string
*/
public function getPscConnectionId()
{
return $this->pscConnectionId;
}
/**
* @param string
*/
public function setPscConnectionStatus($pscConnectionStatus)
{
$this->pscConnectionStatus = $pscConnectionStatus;
}
/**
* @return string
*/
public function getPscConnectionStatus()
{
return $this->pscConnectionStatus;
}
/**
* @param string
*/
public function setServiceAttachment($serviceAttachment)
{
$this->serviceAttachment = $serviceAttachment;
}
/**
* @return string
*/
public function getServiceAttachment()
{
return $this->serviceAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscAutoConnection::class, 'Google_Service_CloudRedis_PscAutoConnection');

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\CloudRedis;
class PscConfig extends \Google\Model
{
/**
* @var string
*/
public $network;
/**
* @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(PscConfig::class, 'Google_Service_CloudRedis_PscConfig');

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\CloudRedis;
class PscConnection extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $connectionType;
/**
* @var string
*/
public $forwardingRule;
/**
* @var string
*/
public $network;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $pscConnectionId;
/**
* @var string
*/
public $pscConnectionStatus;
/**
* @var string
*/
public $serviceAttachment;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setConnectionType($connectionType)
{
$this->connectionType = $connectionType;
}
/**
* @return string
*/
public function getConnectionType()
{
return $this->connectionType;
}
/**
* @param string
*/
public function setForwardingRule($forwardingRule)
{
$this->forwardingRule = $forwardingRule;
}
/**
* @return string
*/
public function getForwardingRule()
{
return $this->forwardingRule;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setPscConnectionId($pscConnectionId)
{
$this->pscConnectionId = $pscConnectionId;
}
/**
* @return string
*/
public function getPscConnectionId()
{
return $this->pscConnectionId;
}
/**
* @param string
*/
public function setPscConnectionStatus($pscConnectionStatus)
{
$this->pscConnectionStatus = $pscConnectionStatus;
}
/**
* @return string
*/
public function getPscConnectionStatus()
{
return $this->pscConnectionStatus;
}
/**
* @param string
*/
public function setServiceAttachment($serviceAttachment)
{
$this->serviceAttachment = $serviceAttachment;
}
/**
* @return string
*/
public function getServiceAttachment()
{
return $this->serviceAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscConnection::class, 'Google_Service_CloudRedis_PscConnection');

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\CloudRedis;
class PscServiceAttachment extends \Google\Model
{
/**
* @var string
*/
public $connectionType;
/**
* @var string
*/
public $serviceAttachment;
/**
* @param string
*/
public function setConnectionType($connectionType)
{
$this->connectionType = $connectionType;
}
/**
* @return string
*/
public function getConnectionType()
{
return $this->connectionType;
}
/**
* @param string
*/
public function setServiceAttachment($serviceAttachment)
{
$this->serviceAttachment = $serviceAttachment;
}
/**
* @return string
*/
public function getServiceAttachment()
{
return $this->serviceAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscServiceAttachment::class, 'Google_Service_CloudRedis_PscServiceAttachment');

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\CloudRedis;
class RDBConfig extends \Google\Model
{
/**
* @var string
*/
public $rdbSnapshotPeriod;
/**
* @var string
*/
public $rdbSnapshotStartTime;
/**
* @param string
*/
public function setRdbSnapshotPeriod($rdbSnapshotPeriod)
{
$this->rdbSnapshotPeriod = $rdbSnapshotPeriod;
}
/**
* @return string
*/
public function getRdbSnapshotPeriod()
{
return $this->rdbSnapshotPeriod;
}
/**
* @param string
*/
public function setRdbSnapshotStartTime($rdbSnapshotStartTime)
{
$this->rdbSnapshotStartTime = $rdbSnapshotStartTime;
}
/**
* @return string
*/
public function getRdbSnapshotStartTime()
{
return $this->rdbSnapshotStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RDBConfig::class, 'Google_Service_CloudRedis_RDBConfig');

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\CloudRedis;
class ReconciliationOperationMetadata 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(ReconciliationOperationMetadata::class, 'Google_Service_CloudRedis_ReconciliationOperationMetadata');

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\CloudRedis;
class RedisEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RedisEmpty::class, 'Google_Service_CloudRedis_RedisEmpty');

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\CloudRedis;
class RegionalMigDistributionPolicy extends \Google\Collection
{
protected $collection_key = 'zones';
/**
* @var int
*/
public $targetShape;
protected $zonesType = ZoneConfiguration::class;
protected $zonesDataType = 'array';
/**
* @param int
*/
public function setTargetShape($targetShape)
{
$this->targetShape = $targetShape;
}
/**
* @return int
*/
public function getTargetShape()
{
return $this->targetShape;
}
/**
* @param ZoneConfiguration[]
*/
public function setZones($zones)
{
$this->zones = $zones;
}
/**
* @return ZoneConfiguration[]
*/
public function getZones()
{
return $this->zones;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegionalMigDistributionPolicy::class, 'Google_Service_CloudRedis_RegionalMigDistributionPolicy');

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

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\CloudRedis;
class RequirementOverride extends \Google\Model
{
/**
* @var string
*/
public $ziOverride;
/**
* @var string
*/
public $zsOverride;
/**
* @param string
*/
public function setZiOverride($ziOverride)
{
$this->ziOverride = $ziOverride;
}
/**
* @return string
*/
public function getZiOverride()
{
return $this->ziOverride;
}
/**
* @param string
*/
public function setZsOverride($zsOverride)
{
$this->zsOverride = $zsOverride;
}
/**
* @return string
*/
public function getZsOverride()
{
return $this->zsOverride;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequirementOverride::class, 'Google_Service_CloudRedis_RequirementOverride');

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\CloudRedis;
class RescheduleClusterMaintenanceRequest extends \Google\Model
{
/**
* @var string
*/
public $rescheduleType;
/**
* @var string
*/
public $scheduleTime;
/**
* @param string
*/
public function setRescheduleType($rescheduleType)
{
$this->rescheduleType = $rescheduleType;
}
/**
* @return string
*/
public function getRescheduleType()
{
return $this->rescheduleType;
}
/**
* @param string
*/
public function setScheduleTime($scheduleTime)
{
$this->scheduleTime = $scheduleTime;
}
/**
* @return string
*/
public function getScheduleTime()
{
return $this->scheduleTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RescheduleClusterMaintenanceRequest::class, 'Google_Service_CloudRedis_RescheduleClusterMaintenanceRequest');

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\CloudRedis;
class RescheduleMaintenanceRequest extends \Google\Model
{
/**
* @var string
*/
public $rescheduleType;
/**
* @var string
*/
public $scheduleTime;
/**
* @param string
*/
public function setRescheduleType($rescheduleType)
{
$this->rescheduleType = $rescheduleType;
}
/**
* @return string
*/
public function getRescheduleType()
{
return $this->rescheduleType;
}
/**
* @param string
*/
public function setScheduleTime($scheduleTime)
{
$this->scheduleTime = $scheduleTime;
}
/**
* @return string
*/
public function getScheduleTime()
{
return $this->scheduleTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RescheduleMaintenanceRequest::class, 'Google_Service_CloudRedis_RescheduleMaintenanceRequest');

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\CloudRedis\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $redisService = new Google\Service\CloudRedis(...);
* $projects = $redisService->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_CloudRedis_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\CloudRedis\Resource;
use Google\Service\CloudRedis\ListLocationsResponse;
use Google\Service\CloudRedis\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $redisService = new Google\Service\CloudRedis(...);
* $locations = $redisService->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 Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::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 ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudRedis_Resource_ProjectsLocations');

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\CloudRedis\Resource;
use Google\Service\CloudRedis\BackupCollection;
use Google\Service\CloudRedis\ListBackupCollectionsResponse;
/**
* The "backupCollections" collection of methods.
* Typical usage is:
* <code>
* $redisService = new Google\Service\CloudRedis(...);
* $backupCollections = $redisService->projects_locations_backupCollections;
* </code>
*/
class ProjectsLocationsBackupCollections extends \Google\Service\Resource
{
/**
* Get a backup collection. (backupCollections.get)
*
* @param string $name Required. Redis backupCollection resource name using the
* form: `projects/{project_id}/locations/{location_id}/backupCollections/{backu
* p_collection_id}` where `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
* @return BackupCollection
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BackupCollection::class);
}
/**
* Lists all backup collections owned by a consumer project in either the
* specified location (region) or all locations. If `location_id` is specified
* as `-` (wildcard), then all regions available to the project are queried, and
* the results are aggregated.
* (backupCollections.listProjectsLocationsBackupCollections)
*
* @param string $parent Required. The resource name of the backupCollection
* location using the form: `projects/{project_id}/locations/{location_id}`
* where `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of items to return. If
* not specified, a default value of 1000 will be used by the service.
* Regardless of the page_size value, the response may include a partial list
* and a caller should only rely on response's `next_page_token` to determine if
* there are more clusters left to be queried.
* @opt_param string pageToken Optional. The `next_page_token` value returned
* from a previous [ListBackupCollections] request, if any.
* @return ListBackupCollectionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupCollections($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupCollectionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupCollections::class, 'Google_Service_CloudRedis_Resource_ProjectsLocationsBackupCollections');

View File

@@ -0,0 +1,115 @@
<?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\CloudRedis\Resource;
use Google\Service\CloudRedis\Backup;
use Google\Service\CloudRedis\ExportBackupRequest;
use Google\Service\CloudRedis\ListBackupsResponse;
use Google\Service\CloudRedis\Operation;
/**
* The "backups" collection of methods.
* Typical usage is:
* <code>
* $redisService = new Google\Service\CloudRedis(...);
* $backups = $redisService->projects_locations_backupCollections_backups;
* </code>
*/
class ProjectsLocationsBackupCollectionsBackups extends \Google\Service\Resource
{
/**
* Deletes a specific backup. (backups.delete)
*
* @param string $name Required. Redis backup resource name using the form: `pro
* jects/{project_id}/locations/{location_id}/backupCollections/{backup_collecti
* on_id}/backups/{backup_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. Idempotent request UUID.
* @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 a specific backup to a customer target Cloud Storage URI.
* (backups.export)
*
* @param string $name Required. Redis backup resource name using the form: `pro
* jects/{project_id}/locations/{location_id}/backupCollections/{backup_collecti
* on_id}/backups/{backup_id}`
* @param ExportBackupRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function export($name, ExportBackupRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], Operation::class);
}
/**
* Gets the details of a specific backup. (backups.get)
*
* @param string $name Required. Redis backup resource name using the form: `pro
* jects/{project_id}/locations/{location_id}/backupCollections/{backup_collecti
* on_id}/backups/{backup_id}`
* @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 all backups owned by a backup collection.
* (backups.listProjectsLocationsBackupCollectionsBackups)
*
* @param string $parent Required. The resource name of the backupCollection
* using the form: `projects/{project_id}/locations/{location_id}/backupCollecti
* ons/{backup_collection_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of items to return. If
* not specified, a default value of 1000 will be used by the service.
* Regardless of the page_size value, the response may include a partial list
* and a caller should only rely on response's `next_page_token` to determine if
* there are more clusters left to be queried.
* @opt_param string pageToken Optional. The `next_page_token` value returned
* from a previous [ListBackupCollections] request, if any.
* @return ListBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupCollectionsBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupCollectionsBackups::class, 'Google_Service_CloudRedis_Resource_ProjectsLocationsBackupCollectionsBackups');

View File

@@ -0,0 +1,221 @@
<?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\CloudRedis\Resource;
use Google\Service\CloudRedis\BackupClusterRequest;
use Google\Service\CloudRedis\CertificateAuthority;
use Google\Service\CloudRedis\Cluster;
use Google\Service\CloudRedis\ListClustersResponse;
use Google\Service\CloudRedis\Operation;
use Google\Service\CloudRedis\RescheduleClusterMaintenanceRequest;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $redisService = new Google\Service\CloudRedis(...);
* $clusters = $redisService->projects_locations_clusters;
* </code>
*/
class ProjectsLocationsClusters extends \Google\Service\Resource
{
/**
* Backup Redis Cluster. If this is the first time a backup is being created, a
* backup collection will be created at the backend, and this backup belongs to
* this collection. Both collection and backup will have a resource name. Backup
* will be executed for each shard. A replica (primary if nonHA) will be
* selected to perform the execution. Backup call will be rejected if there is
* an ongoing backup or update operation. Be aware that during preview, if the
* cluster's internal software version is too old, critical update will be
* performed before actual backup. Once the internal software version is updated
* to the minimum version required by the backup feature, subsequent backups
* will not require critical update. After preview, there will be no critical
* update needed for backup. (clusters.backup)
*
* @param string $name Required. Redis cluster resource name using the form:
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where
* `location_id` refers to a GCP region.
* @param BackupClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function backup($name, BackupClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('backup', [$params], Operation::class);
}
/**
* Creates a Redis cluster based on the specified properties. The creation is
* executed asynchronously and callers may check the returned operation to track
* its progress. Once the operation is completed the Redis cluster will be fully
* functional. The completed longrunning.Operation will contain the new cluster
* object in the response field. The returned operation is automatically deleted
* after a few hours, so there is no need to call DeleteOperation.
* (clusters.create)
*
* @param string $parent Required. The resource name of the cluster location
* using the form: `projects/{project_id}/locations/{location_id}` where
* `location_id` refers to a GCP region.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. The logical name of the Redis cluster
* in the customer project with the following restrictions: * Must contain only
* lowercase letters, numbers, and hyphens. * Must start with a letter. * Must
* be between 1-63 characters. * Must end with a number or a letter. * Must be
* unique within the customer project / location
* @opt_param string requestId Idempotent request UUID.
* @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);
}
/**
* Deletes a specific Redis cluster. Cluster stops serving and data is deleted.
* (clusters.delete)
*
* @param string $name Required. Redis cluster resource name using the form:
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where
* `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Idempotent request UUID.
* @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 the details of a specific Redis cluster. (clusters.get)
*
* @param string $name Required. Redis cluster resource name using the form:
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where
* `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
* @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);
}
/**
* Gets the details of certificate authority information for Redis cluster.
* (clusters.getCertificateAuthority)
*
* @param string $name Required. Redis cluster certificate authority resource
* name using the form: `projects/{project_id}/locations/{location_id}/clusters/
* {cluster_id}/certificateAuthority` where `location_id` refers to a GCP
* region.
* @param array $optParams Optional parameters.
* @return CertificateAuthority
* @throws \Google\Service\Exception
*/
public function getCertificateAuthority($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getCertificateAuthority', [$params], CertificateAuthority::class);
}
/**
* Lists all Redis clusters owned by a project in either the specified location
* (region) or all locations. The location should have the following format: *
* `projects/{project_id}/locations/{location_id}` If `location_id` is specified
* as `-` (wildcard), then all regions available to the project are queried, and
* the results are aggregated. (clusters.listProjectsLocationsClusters)
*
* @param string $parent Required. The resource name of the cluster location
* using the form: `projects/{project_id}/locations/{location_id}` where
* `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return. If not
* specified, a default value of 1000 will be used by the service. Regardless of
* the page_size value, the response may include a partial list and a caller
* should only rely on response's `next_page_token` to determine if there are
* more clusters left to be queried.
* @opt_param string pageToken The `next_page_token` value returned from a
* previous ListClusters request, if any.
* @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 metadata and configuration of a specific Redis cluster. Completed
* longrunning.Operation will contain the new cluster object in the response
* field. The returned operation is automatically deleted after a few hours, so
* there is no need to call DeleteOperation. (clusters.patch)
*
* @param string $name Required. Identifier. Unique name of the resource in this
* scope including project and location using the form:
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Idempotent request UUID.
* @opt_param string updateMask Required. Mask of fields to update. At least one
* path must be supplied in this field. The elements of the repeated paths field
* may only include these fields from Cluster: * `size_gb` * `replica_count`
* @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);
}
/**
* Reschedules upcoming maintenance event.
* (clusters.rescheduleClusterMaintenance)
*
* @param string $name Required. Redis Cluster instance resource name using the
* form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
* where `location_id` refers to a GCP region.
* @param RescheduleClusterMaintenanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function rescheduleClusterMaintenance($name, RescheduleClusterMaintenanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rescheduleClusterMaintenance', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClusters::class, 'Google_Service_CloudRedis_Resource_ProjectsLocationsClusters');

View File

@@ -0,0 +1,280 @@
<?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\CloudRedis\Resource;
use Google\Service\CloudRedis\ExportInstanceRequest;
use Google\Service\CloudRedis\FailoverInstanceRequest;
use Google\Service\CloudRedis\ImportInstanceRequest;
use Google\Service\CloudRedis\Instance;
use Google\Service\CloudRedis\InstanceAuthString;
use Google\Service\CloudRedis\ListInstancesResponse;
use Google\Service\CloudRedis\Operation;
use Google\Service\CloudRedis\RescheduleMaintenanceRequest;
use Google\Service\CloudRedis\UpgradeInstanceRequest;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $redisService = new Google\Service\CloudRedis(...);
* $instances = $redisService->projects_locations_instances;
* </code>
*/
class ProjectsLocationsInstances extends \Google\Service\Resource
{
/**
* Creates a Redis instance based on the specified tier and memory size. By
* default, the instance is accessible from the project's [default
* network](https://cloud.google.com/vpc/docs/vpc). The creation is executed
* asynchronously and callers may check the returned operation to track its
* progress. Once the operation is completed the Redis instance will be fully
* functional. Completed longrunning.Operation will contain the new instance
* object in the response field. The returned operation is automatically deleted
* after a few hours, so there is no need to call DeleteOperation.
* (instances.create)
*
* @param string $parent Required. The resource name of the instance location
* using the form: `projects/{project_id}/locations/{location_id}` where
* `location_id` refers to a GCP region.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. The logical name of the Redis instance
* in the customer project with the following restrictions: * Must contain only
* lowercase letters, numbers, and hyphens. * Must start with a letter. * Must
* be between 1-40 characters. * Must end with a number or a letter. * Must be
* unique within the customer project / location
* @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);
}
/**
* Deletes a specific Redis instance. Instance stops serving and data is
* deleted. (instances.delete)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
* @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);
}
/**
* Export Redis instance data into a Redis RDB format file in Cloud Storage.
* Redis will continue serving during this operation. The returned operation is
* automatically deleted after a few hours, so there is no need to call
* DeleteOperation. (instances.export)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @param ExportInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function export($name, ExportInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], Operation::class);
}
/**
* Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
* (instances.failover)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @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 the details of a specific Redis instance. (instances.get)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
* @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);
}
/**
* Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
* instance the response will be empty. This information is not included in the
* details returned to GetInstance. (instances.getAuthString)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
* @return InstanceAuthString
* @throws \Google\Service\Exception
*/
public function getAuthString($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAuthString', [$params], InstanceAuthString::class);
}
/**
* Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
* Redis may stop serving during this operation. Instance state will be
* IMPORTING for entire operation. When complete, the instance will contain only
* data from the imported file. The returned operation is automatically deleted
* after a few hours, so there is no need to call DeleteOperation.
* (instances.import)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @param ImportInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function import($name, ImportInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
/**
* Lists all Redis instances owned by a project in either the specified location
* (region) or all locations. The location should have the following format: *
* `projects/{project_id}/locations/{location_id}` If `location_id` is specified
* as `-` (wildcard), then all regions available to the project are queried, and
* the results are aggregated. (instances.listProjectsLocationsInstances)
*
* @param string $parent Required. The resource name of the instance location
* using the form: `projects/{project_id}/locations/{location_id}` where
* `location_id` refers to a GCP region.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return. If not
* specified, a default value of 1000 will be used by the service. Regardless of
* the page_size value, the response may include a partial list and a caller
* should only rely on response's `next_page_token` to determine if there are
* more instances left to be queried.
* @opt_param string pageToken The `next_page_token` value returned from a
* previous ListInstances request, if any.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
/**
* Updates the metadata and configuration of a specific Redis instance.
* Completed longrunning.Operation will contain the new instance object in the
* response field. The returned operation is automatically deleted after a few
* hours, so there is no need to call DeleteOperation. (instances.patch)
*
* @param string $name Required. Unique name of the resource in this scope
* including project and location using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note:
* Redis instances are managed and addressed at regional level so location_id
* here refers to a GCP region; however, users may choose which specific zone
* (or collection of zones for cross-zone instances) an instance should be
* provisioned in. Refer to location_id and alternative_location_id fields for
* more details.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Mask of fields to update. At least one
* path must be supplied in this field. The elements of the repeated paths field
* may only include these fields from Instance: * `displayName` * `labels` *
* `memorySizeGb` * `redisConfig` * `replica_count`
* @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);
}
/**
* Reschedule maintenance for a given instance in a given project and location.
* (instances.rescheduleMaintenance)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @param RescheduleMaintenanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function rescheduleMaintenance($name, RescheduleMaintenanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rescheduleMaintenance', [$params], Operation::class);
}
/**
* Upgrades Redis instance to the newer Redis version specified in the request.
* (instances.upgrade)
*
* @param string $name Required. Redis instance resource name using the form:
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where
* `location_id` refers to a GCP region.
* @param UpgradeInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function upgrade($name, UpgradeInstanceRequest $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(ProjectsLocationsInstances::class, 'Google_Service_CloudRedis_Resource_ProjectsLocationsInstances');

View File

@@ -0,0 +1,112 @@
<?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\CloudRedis\Resource;
use Google\Service\CloudRedis\ListOperationsResponse;
use Google\Service\CloudRedis\Operation;
use Google\Service\CloudRedis\RedisEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $redisService = new Google\Service\CloudRedis(...);
* $operations = $redisService->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 array $optParams Optional parameters.
* @return RedisEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], RedisEmpty::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 RedisEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], RedisEmpty::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_CloudRedis_Resource_ProjectsLocationsOperations');

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\CloudRedis;
class RetentionSettings 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(RetentionSettings::class, 'Google_Service_CloudRedis_RetentionSettings');

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\CloudRedis;
class SpannerLocation extends \Google\Collection
{
protected $collection_key = 'dbName';
/**
* @var string[]
*/
public $backupName;
/**
* @var string[]
*/
public $dbName;
/**
* @param string[]
*/
public function setBackupName($backupName)
{
$this->backupName = $backupName;
}
/**
* @return string[]
*/
public function getBackupName()
{
return $this->backupName;
}
/**
* @param string[]
*/
public function setDbName($dbName)
{
$this->dbName = $dbName;
}
/**
* @return string[]
*/
public function getDbName()
{
return $this->dbName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpannerLocation::class, 'Google_Service_CloudRedis_SpannerLocation');

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\CloudRedis;
class StateInfo extends \Google\Model
{
protected $updateInfoType = UpdateInfo::class;
protected $updateInfoDataType = '';
/**
* @param UpdateInfo
*/
public function setUpdateInfo(UpdateInfo $updateInfo)
{
$this->updateInfo = $updateInfo;
}
/**
* @return UpdateInfo
*/
public function getUpdateInfo()
{
return $this->updateInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StateInfo::class, 'Google_Service_CloudRedis_StateInfo');

Some files were not shown because too many files have changed in this diff Show More