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
@@ -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\SQLAdmin;
class AclEntry extends \Google\Model
{
/**
* @var string
*/
public $expirationTime;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AclEntry::class, 'Google_Service_SQLAdmin_AclEntry');
@@ -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\SQLAdmin;
class AcquireSsrsLeaseContext extends \Google\Model
{
/**
* @var string
*/
public $duration;
/**
* @var string
*/
public $reportDatabase;
/**
* @var string
*/
public $serviceLogin;
/**
* @var string
*/
public $setupLogin;
/**
* @param string
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* @param string
*/
public function setReportDatabase($reportDatabase)
{
$this->reportDatabase = $reportDatabase;
}
/**
* @return string
*/
public function getReportDatabase()
{
return $this->reportDatabase;
}
/**
* @param string
*/
public function setServiceLogin($serviceLogin)
{
$this->serviceLogin = $serviceLogin;
}
/**
* @return string
*/
public function getServiceLogin()
{
return $this->serviceLogin;
}
/**
* @param string
*/
public function setSetupLogin($setupLogin)
{
$this->setupLogin = $setupLogin;
}
/**
* @return string
*/
public function getSetupLogin()
{
return $this->setupLogin;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcquireSsrsLeaseContext::class, 'Google_Service_SQLAdmin_AcquireSsrsLeaseContext');
@@ -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\SQLAdmin;
class AdvancedMachineFeatures extends \Google\Model
{
/**
* @var int
*/
public $threadsPerCore;
/**
* @param int
*/
public function setThreadsPerCore($threadsPerCore)
{
$this->threadsPerCore = $threadsPerCore;
}
/**
* @return int
*/
public function getThreadsPerCore()
{
return $this->threadsPerCore;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvancedMachineFeatures::class, 'Google_Service_SQLAdmin_AdvancedMachineFeatures');
@@ -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\SQLAdmin;
class ApiWarning extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $region;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiWarning::class, 'Google_Service_SQLAdmin_ApiWarning');
@@ -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\SQLAdmin;
class AvailableDatabaseVersion extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $majorVersion;
/**
* @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 setMajorVersion($majorVersion)
{
$this->majorVersion = $majorVersion;
}
/**
* @return string
*/
public function getMajorVersion()
{
return $this->majorVersion;
}
/**
* @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(AvailableDatabaseVersion::class, 'Google_Service_SQLAdmin_AvailableDatabaseVersion');
@@ -0,0 +1,204 @@
<?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\SQLAdmin;
class BackupConfiguration extends \Google\Model
{
protected $backupRetentionSettingsType = BackupRetentionSettings::class;
protected $backupRetentionSettingsDataType = '';
/**
* @var bool
*/
public $binaryLogEnabled;
/**
* @var bool
*/
public $enabled;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $location;
/**
* @var bool
*/
public $pointInTimeRecoveryEnabled;
/**
* @var bool
*/
public $replicationLogArchivingEnabled;
/**
* @var string
*/
public $startTime;
/**
* @var int
*/
public $transactionLogRetentionDays;
/**
* @var string
*/
public $transactionalLogStorageState;
/**
* @param BackupRetentionSettings
*/
public function setBackupRetentionSettings(BackupRetentionSettings $backupRetentionSettings)
{
$this->backupRetentionSettings = $backupRetentionSettings;
}
/**
* @return BackupRetentionSettings
*/
public function getBackupRetentionSettings()
{
return $this->backupRetentionSettings;
}
/**
* @param bool
*/
public function setBinaryLogEnabled($binaryLogEnabled)
{
$this->binaryLogEnabled = $binaryLogEnabled;
}
/**
* @return bool
*/
public function getBinaryLogEnabled()
{
return $this->binaryLogEnabled;
}
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param bool
*/
public function setPointInTimeRecoveryEnabled($pointInTimeRecoveryEnabled)
{
$this->pointInTimeRecoveryEnabled = $pointInTimeRecoveryEnabled;
}
/**
* @return bool
*/
public function getPointInTimeRecoveryEnabled()
{
return $this->pointInTimeRecoveryEnabled;
}
/**
* @param bool
*/
public function setReplicationLogArchivingEnabled($replicationLogArchivingEnabled)
{
$this->replicationLogArchivingEnabled = $replicationLogArchivingEnabled;
}
/**
* @return bool
*/
public function getReplicationLogArchivingEnabled()
{
return $this->replicationLogArchivingEnabled;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param int
*/
public function setTransactionLogRetentionDays($transactionLogRetentionDays)
{
$this->transactionLogRetentionDays = $transactionLogRetentionDays;
}
/**
* @return int
*/
public function getTransactionLogRetentionDays()
{
return $this->transactionLogRetentionDays;
}
/**
* @param string
*/
public function setTransactionalLogStorageState($transactionalLogStorageState)
{
$this->transactionalLogStorageState = $transactionalLogStorageState;
}
/**
* @return string
*/
public function getTransactionalLogStorageState()
{
return $this->transactionalLogStorageState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupConfiguration::class, 'Google_Service_SQLAdmin_BackupConfiguration');
@@ -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\SQLAdmin;
class BackupContext extends \Google\Model
{
/**
* @var string
*/
public $backupId;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setBackupId($backupId)
{
$this->backupId = $backupId;
}
/**
* @return string
*/
public function getBackupId()
{
return $this->backupId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupContext::class, 'Google_Service_SQLAdmin_BackupContext');
@@ -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\SQLAdmin;
class BackupReencryptionConfig extends \Google\Model
{
/**
* @var int
*/
public $backupLimit;
/**
* @var string
*/
public $backupType;
/**
* @param int
*/
public function setBackupLimit($backupLimit)
{
$this->backupLimit = $backupLimit;
}
/**
* @return int
*/
public function getBackupLimit()
{
return $this->backupLimit;
}
/**
* @param string
*/
public function setBackupType($backupType)
{
$this->backupType = $backupType;
}
/**
* @return string
*/
public function getBackupType()
{
return $this->backupType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupReencryptionConfig::class, 'Google_Service_SQLAdmin_BackupReencryptionConfig');
@@ -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\SQLAdmin;
class BackupRetentionSettings extends \Google\Model
{
/**
* @var int
*/
public $retainedBackups;
/**
* @var string
*/
public $retentionUnit;
/**
* @param int
*/
public function setRetainedBackups($retainedBackups)
{
$this->retainedBackups = $retainedBackups;
}
/**
* @return int
*/
public function getRetainedBackups()
{
return $this->retainedBackups;
}
/**
* @param string
*/
public function setRetentionUnit($retentionUnit)
{
$this->retentionUnit = $retentionUnit;
}
/**
* @return string
*/
public function getRetentionUnit()
{
return $this->retentionUnit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupRetentionSettings::class, 'Google_Service_SQLAdmin_BackupRetentionSettings');
@@ -0,0 +1,344 @@
<?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\SQLAdmin;
class BackupRun extends \Google\Model
{
/**
* @var string
*/
public $backupKind;
/**
* @var string
*/
public $description;
protected $diskEncryptionConfigurationType = DiskEncryptionConfiguration::class;
protected $diskEncryptionConfigurationDataType = '';
protected $diskEncryptionStatusType = DiskEncryptionStatus::class;
protected $diskEncryptionStatusDataType = '';
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $enqueuedTime;
protected $errorType = OperationError::class;
protected $errorDataType = '';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $instance;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $maxChargeableBytes;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $timeZone;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $windowStartTime;
/**
* @param string
*/
public function setBackupKind($backupKind)
{
$this->backupKind = $backupKind;
}
/**
* @return string
*/
public function getBackupKind()
{
return $this->backupKind;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param DiskEncryptionConfiguration
*/
public function setDiskEncryptionConfiguration(DiskEncryptionConfiguration $diskEncryptionConfiguration)
{
$this->diskEncryptionConfiguration = $diskEncryptionConfiguration;
}
/**
* @return DiskEncryptionConfiguration
*/
public function getDiskEncryptionConfiguration()
{
return $this->diskEncryptionConfiguration;
}
/**
* @param DiskEncryptionStatus
*/
public function setDiskEncryptionStatus(DiskEncryptionStatus $diskEncryptionStatus)
{
$this->diskEncryptionStatus = $diskEncryptionStatus;
}
/**
* @return DiskEncryptionStatus
*/
public function getDiskEncryptionStatus()
{
return $this->diskEncryptionStatus;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setEnqueuedTime($enqueuedTime)
{
$this->enqueuedTime = $enqueuedTime;
}
/**
* @return string
*/
public function getEnqueuedTime()
{
return $this->enqueuedTime;
}
/**
* @param OperationError
*/
public function setError(OperationError $error)
{
$this->error = $error;
}
/**
* @return OperationError
*/
public function getError()
{
return $this->error;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setInstance($instance)
{
$this->instance = $instance;
}
/**
* @return string
*/
public function getInstance()
{
return $this->instance;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setMaxChargeableBytes($maxChargeableBytes)
{
$this->maxChargeableBytes = $maxChargeableBytes;
}
/**
* @return string
*/
public function getMaxChargeableBytes()
{
return $this->maxChargeableBytes;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @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;
}
/**
* @param string
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setWindowStartTime($windowStartTime)
{
$this->windowStartTime = $windowStartTime;
}
/**
* @return string
*/
public function getWindowStartTime()
{
return $this->windowStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupRun::class, 'Google_Service_SQLAdmin_BackupRun');
@@ -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\SQLAdmin;
class BackupRunsListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = BackupRun::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param BackupRun[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BackupRun[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(BackupRunsListResponse::class, 'Google_Service_SQLAdmin_BackupRunsListResponse');
@@ -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\SQLAdmin;
class BinLogCoordinates extends \Google\Model
{
/**
* @var string
*/
public $binLogFileName;
/**
* @var string
*/
public $binLogPosition;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setBinLogFileName($binLogFileName)
{
$this->binLogFileName = $binLogFileName;
}
/**
* @return string
*/
public function getBinLogFileName()
{
return $this->binLogFileName;
}
/**
* @param string
*/
public function setBinLogPosition($binLogPosition)
{
$this->binLogPosition = $binLogPosition;
}
/**
* @return string
*/
public function getBinLogPosition()
{
return $this->binLogPosition;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BinLogCoordinates::class, 'Google_Service_SQLAdmin_BinLogCoordinates');
@@ -0,0 +1,187 @@
<?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\SQLAdmin;
class CloneContext extends \Google\Collection
{
protected $collection_key = 'databaseNames';
/**
* @var string
*/
public $allocatedIpRange;
protected $binLogCoordinatesType = BinLogCoordinates::class;
protected $binLogCoordinatesDataType = '';
/**
* @var string[]
*/
public $databaseNames;
/**
* @var string
*/
public $destinationInstanceName;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $pitrTimestampMs;
/**
* @var string
*/
public $pointInTime;
/**
* @var string
*/
public $preferredSecondaryZone;
/**
* @var string
*/
public $preferredZone;
/**
* @param string
*/
public function setAllocatedIpRange($allocatedIpRange)
{
$this->allocatedIpRange = $allocatedIpRange;
}
/**
* @return string
*/
public function getAllocatedIpRange()
{
return $this->allocatedIpRange;
}
/**
* @param BinLogCoordinates
*/
public function setBinLogCoordinates(BinLogCoordinates $binLogCoordinates)
{
$this->binLogCoordinates = $binLogCoordinates;
}
/**
* @return BinLogCoordinates
*/
public function getBinLogCoordinates()
{
return $this->binLogCoordinates;
}
/**
* @param string[]
*/
public function setDatabaseNames($databaseNames)
{
$this->databaseNames = $databaseNames;
}
/**
* @return string[]
*/
public function getDatabaseNames()
{
return $this->databaseNames;
}
/**
* @param string
*/
public function setDestinationInstanceName($destinationInstanceName)
{
$this->destinationInstanceName = $destinationInstanceName;
}
/**
* @return string
*/
public function getDestinationInstanceName()
{
return $this->destinationInstanceName;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPitrTimestampMs($pitrTimestampMs)
{
$this->pitrTimestampMs = $pitrTimestampMs;
}
/**
* @return string
*/
public function getPitrTimestampMs()
{
return $this->pitrTimestampMs;
}
/**
* @param string
*/
public function setPointInTime($pointInTime)
{
$this->pointInTime = $pointInTime;
}
/**
* @return string
*/
public function getPointInTime()
{
return $this->pointInTime;
}
/**
* @param string
*/
public function setPreferredSecondaryZone($preferredSecondaryZone)
{
$this->preferredSecondaryZone = $preferredSecondaryZone;
}
/**
* @return string
*/
public function getPreferredSecondaryZone()
{
return $this->preferredSecondaryZone;
}
/**
* @param string
*/
public function setPreferredZone($preferredZone)
{
$this->preferredZone = $preferredZone;
}
/**
* @return string
*/
public function getPreferredZone()
{
return $this->preferredZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloneContext::class, 'Google_Service_SQLAdmin_CloneContext');
@@ -0,0 +1,203 @@
<?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\SQLAdmin;
class ConnectSettings extends \Google\Collection
{
protected $collection_key = 'ipAddresses';
/**
* @var string
*/
public $backendType;
/**
* @var string[]
*/
public $customSubjectAlternativeNames;
/**
* @var string
*/
public $databaseVersion;
/**
* @var string
*/
public $dnsName;
protected $ipAddressesType = IpMapping::class;
protected $ipAddressesDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $pscEnabled;
/**
* @var string
*/
public $region;
protected $serverCaCertType = SslCert::class;
protected $serverCaCertDataType = '';
/**
* @var string
*/
public $serverCaMode;
/**
* @param string
*/
public function setBackendType($backendType)
{
$this->backendType = $backendType;
}
/**
* @return string
*/
public function getBackendType()
{
return $this->backendType;
}
/**
* @param string[]
*/
public function setCustomSubjectAlternativeNames($customSubjectAlternativeNames)
{
$this->customSubjectAlternativeNames = $customSubjectAlternativeNames;
}
/**
* @return string[]
*/
public function getCustomSubjectAlternativeNames()
{
return $this->customSubjectAlternativeNames;
}
/**
* @param string
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return string
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* @param string
*/
public function setDnsName($dnsName)
{
$this->dnsName = $dnsName;
}
/**
* @return string
*/
public function getDnsName()
{
return $this->dnsName;
}
/**
* @param IpMapping[]
*/
public function setIpAddresses($ipAddresses)
{
$this->ipAddresses = $ipAddresses;
}
/**
* @return IpMapping[]
*/
public function getIpAddresses()
{
return $this->ipAddresses;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setPscEnabled($pscEnabled)
{
$this->pscEnabled = $pscEnabled;
}
/**
* @return bool
*/
public function getPscEnabled()
{
return $this->pscEnabled;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* @param SslCert
*/
public function setServerCaCert(SslCert $serverCaCert)
{
$this->serverCaCert = $serverCaCert;
}
/**
* @return SslCert
*/
public function getServerCaCert()
{
return $this->serverCaCert;
}
/**
* @param string
*/
public function setServerCaMode($serverCaMode)
{
$this->serverCaMode = $serverCaMode;
}
/**
* @return string
*/
public function getServerCaMode()
{
return $this->serverCaMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectSettings::class, 'Google_Service_SQLAdmin_ConnectSettings');
@@ -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\SQLAdmin;
class DataCacheConfig extends \Google\Model
{
/**
* @var bool
*/
public $dataCacheEnabled;
/**
* @param bool
*/
public function setDataCacheEnabled($dataCacheEnabled)
{
$this->dataCacheEnabled = $dataCacheEnabled;
}
/**
* @return bool
*/
public function getDataCacheEnabled()
{
return $this->dataCacheEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataCacheConfig::class, 'Google_Service_SQLAdmin_DataCacheConfig');
@@ -0,0 +1,186 @@
<?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\SQLAdmin;
class Database extends \Google\Model
{
/**
* @var string
*/
public $charset;
/**
* @var string
*/
public $collation;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $instance;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $project;
/**
* @var string
*/
public $selfLink;
protected $sqlserverDatabaseDetailsType = SqlServerDatabaseDetails::class;
protected $sqlserverDatabaseDetailsDataType = '';
/**
* @param string
*/
public function setCharset($charset)
{
$this->charset = $charset;
}
/**
* @return string
*/
public function getCharset()
{
return $this->charset;
}
/**
* @param string
*/
public function setCollation($collation)
{
$this->collation = $collation;
}
/**
* @return string
*/
public function getCollation()
{
return $this->collation;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setInstance($instance)
{
$this->instance = $instance;
}
/**
* @return string
*/
public function getInstance()
{
return $this->instance;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param SqlServerDatabaseDetails
*/
public function setSqlserverDatabaseDetails(SqlServerDatabaseDetails $sqlserverDatabaseDetails)
{
$this->sqlserverDatabaseDetails = $sqlserverDatabaseDetails;
}
/**
* @return SqlServerDatabaseDetails
*/
public function getSqlserverDatabaseDetails()
{
return $this->sqlserverDatabaseDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Database::class, 'Google_Service_SQLAdmin_Database');
@@ -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\SQLAdmin;
class DatabaseFlags extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseFlags::class, 'Google_Service_SQLAdmin_DatabaseFlags');
@@ -0,0 +1,847 @@
<?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\SQLAdmin;
class DatabaseInstance extends \Google\Collection
{
protected $collection_key = 'upgradableDatabaseVersions';
/**
* @var string[]
*/
public $availableMaintenanceVersions;
/**
* @var string
*/
public $backendType;
/**
* @var string
*/
public $connectionName;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $currentDiskSize;
/**
* @var string
*/
public $databaseInstalledVersion;
/**
* @var string
*/
public $databaseVersion;
protected $diskEncryptionConfigurationType = DiskEncryptionConfiguration::class;
protected $diskEncryptionConfigurationDataType = '';
protected $diskEncryptionStatusType = DiskEncryptionStatus::class;
protected $diskEncryptionStatusDataType = '';
/**
* @var string
*/
public $dnsName;
/**
* @var string
*/
public $etag;
protected $failoverReplicaType = DatabaseInstanceFailoverReplica::class;
protected $failoverReplicaDataType = '';
/**
* @var string
*/
public $gceZone;
protected $geminiConfigType = GeminiInstanceConfig::class;
protected $geminiConfigDataType = '';
/**
* @var string
*/
public $instanceType;
protected $ipAddressesType = IpMapping::class;
protected $ipAddressesDataType = 'array';
/**
* @var string
*/
public $ipv6Address;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $maintenanceVersion;
/**
* @var string
*/
public $masterInstanceName;
/**
* @var string
*/
public $maxDiskSize;
/**
* @var string
*/
public $name;
protected $onPremisesConfigurationType = OnPremisesConfiguration::class;
protected $onPremisesConfigurationDataType = '';
protected $outOfDiskReportType = SqlOutOfDiskReport::class;
protected $outOfDiskReportDataType = '';
/**
* @var string
*/
public $primaryDnsName;
/**
* @var string
*/
public $project;
/**
* @var string
*/
public $pscServiceAttachmentLink;
/**
* @var string
*/
public $region;
protected $replicaConfigurationType = ReplicaConfiguration::class;
protected $replicaConfigurationDataType = '';
/**
* @var string[]
*/
public $replicaNames;
protected $replicationClusterType = ReplicationCluster::class;
protected $replicationClusterDataType = '';
/**
* @var string
*/
public $rootPassword;
/**
* @var bool
*/
public $satisfiesPzi;
/**
* @var bool
*/
public $satisfiesPzs;
protected $scheduledMaintenanceType = SqlScheduledMaintenance::class;
protected $scheduledMaintenanceDataType = '';
/**
* @var string
*/
public $secondaryGceZone;
/**
* @var string
*/
public $selfLink;
protected $serverCaCertType = SslCert::class;
protected $serverCaCertDataType = '';
/**
* @var string
*/
public $serviceAccountEmailAddress;
protected $settingsType = Settings::class;
protected $settingsDataType = '';
/**
* @var string
*/
public $sqlNetworkArchitecture;
/**
* @var string
*/
public $state;
/**
* @var string[]
*/
public $suspensionReason;
/**
* @var bool
*/
public $switchTransactionLogsToCloudStorageEnabled;
/**
* @var string[]
*/
public $tags;
protected $upgradableDatabaseVersionsType = AvailableDatabaseVersion::class;
protected $upgradableDatabaseVersionsDataType = 'array';
/**
* @var string
*/
public $writeEndpoint;
/**
* @param string[]
*/
public function setAvailableMaintenanceVersions($availableMaintenanceVersions)
{
$this->availableMaintenanceVersions = $availableMaintenanceVersions;
}
/**
* @return string[]
*/
public function getAvailableMaintenanceVersions()
{
return $this->availableMaintenanceVersions;
}
/**
* @param string
*/
public function setBackendType($backendType)
{
$this->backendType = $backendType;
}
/**
* @return string
*/
public function getBackendType()
{
return $this->backendType;
}
/**
* @param string
*/
public function setConnectionName($connectionName)
{
$this->connectionName = $connectionName;
}
/**
* @return string
*/
public function getConnectionName()
{
return $this->connectionName;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCurrentDiskSize($currentDiskSize)
{
$this->currentDiskSize = $currentDiskSize;
}
/**
* @return string
*/
public function getCurrentDiskSize()
{
return $this->currentDiskSize;
}
/**
* @param string
*/
public function setDatabaseInstalledVersion($databaseInstalledVersion)
{
$this->databaseInstalledVersion = $databaseInstalledVersion;
}
/**
* @return string
*/
public function getDatabaseInstalledVersion()
{
return $this->databaseInstalledVersion;
}
/**
* @param string
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return string
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* @param DiskEncryptionConfiguration
*/
public function setDiskEncryptionConfiguration(DiskEncryptionConfiguration $diskEncryptionConfiguration)
{
$this->diskEncryptionConfiguration = $diskEncryptionConfiguration;
}
/**
* @return DiskEncryptionConfiguration
*/
public function getDiskEncryptionConfiguration()
{
return $this->diskEncryptionConfiguration;
}
/**
* @param DiskEncryptionStatus
*/
public function setDiskEncryptionStatus(DiskEncryptionStatus $diskEncryptionStatus)
{
$this->diskEncryptionStatus = $diskEncryptionStatus;
}
/**
* @return DiskEncryptionStatus
*/
public function getDiskEncryptionStatus()
{
return $this->diskEncryptionStatus;
}
/**
* @param string
*/
public function setDnsName($dnsName)
{
$this->dnsName = $dnsName;
}
/**
* @return string
*/
public function getDnsName()
{
return $this->dnsName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param DatabaseInstanceFailoverReplica
*/
public function setFailoverReplica(DatabaseInstanceFailoverReplica $failoverReplica)
{
$this->failoverReplica = $failoverReplica;
}
/**
* @return DatabaseInstanceFailoverReplica
*/
public function getFailoverReplica()
{
return $this->failoverReplica;
}
/**
* @param string
*/
public function setGceZone($gceZone)
{
$this->gceZone = $gceZone;
}
/**
* @return string
*/
public function getGceZone()
{
return $this->gceZone;
}
/**
* @param GeminiInstanceConfig
*/
public function setGeminiConfig(GeminiInstanceConfig $geminiConfig)
{
$this->geminiConfig = $geminiConfig;
}
/**
* @return GeminiInstanceConfig
*/
public function getGeminiConfig()
{
return $this->geminiConfig;
}
/**
* @param string
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* @param IpMapping[]
*/
public function setIpAddresses($ipAddresses)
{
$this->ipAddresses = $ipAddresses;
}
/**
* @return IpMapping[]
*/
public function getIpAddresses()
{
return $this->ipAddresses;
}
/**
* @param string
*/
public function setIpv6Address($ipv6Address)
{
$this->ipv6Address = $ipv6Address;
}
/**
* @return string
*/
public function getIpv6Address()
{
return $this->ipv6Address;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setMaintenanceVersion($maintenanceVersion)
{
$this->maintenanceVersion = $maintenanceVersion;
}
/**
* @return string
*/
public function getMaintenanceVersion()
{
return $this->maintenanceVersion;
}
/**
* @param string
*/
public function setMasterInstanceName($masterInstanceName)
{
$this->masterInstanceName = $masterInstanceName;
}
/**
* @return string
*/
public function getMasterInstanceName()
{
return $this->masterInstanceName;
}
/**
* @param string
*/
public function setMaxDiskSize($maxDiskSize)
{
$this->maxDiskSize = $maxDiskSize;
}
/**
* @return string
*/
public function getMaxDiskSize()
{
return $this->maxDiskSize;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param OnPremisesConfiguration
*/
public function setOnPremisesConfiguration(OnPremisesConfiguration $onPremisesConfiguration)
{
$this->onPremisesConfiguration = $onPremisesConfiguration;
}
/**
* @return OnPremisesConfiguration
*/
public function getOnPremisesConfiguration()
{
return $this->onPremisesConfiguration;
}
/**
* @param SqlOutOfDiskReport
*/
public function setOutOfDiskReport(SqlOutOfDiskReport $outOfDiskReport)
{
$this->outOfDiskReport = $outOfDiskReport;
}
/**
* @return SqlOutOfDiskReport
*/
public function getOutOfDiskReport()
{
return $this->outOfDiskReport;
}
/**
* @param string
*/
public function setPrimaryDnsName($primaryDnsName)
{
$this->primaryDnsName = $primaryDnsName;
}
/**
* @return string
*/
public function getPrimaryDnsName()
{
return $this->primaryDnsName;
}
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* @param string
*/
public function setPscServiceAttachmentLink($pscServiceAttachmentLink)
{
$this->pscServiceAttachmentLink = $pscServiceAttachmentLink;
}
/**
* @return string
*/
public function getPscServiceAttachmentLink()
{
return $this->pscServiceAttachmentLink;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* @param ReplicaConfiguration
*/
public function setReplicaConfiguration(ReplicaConfiguration $replicaConfiguration)
{
$this->replicaConfiguration = $replicaConfiguration;
}
/**
* @return ReplicaConfiguration
*/
public function getReplicaConfiguration()
{
return $this->replicaConfiguration;
}
/**
* @param string[]
*/
public function setReplicaNames($replicaNames)
{
$this->replicaNames = $replicaNames;
}
/**
* @return string[]
*/
public function getReplicaNames()
{
return $this->replicaNames;
}
/**
* @param ReplicationCluster
*/
public function setReplicationCluster(ReplicationCluster $replicationCluster)
{
$this->replicationCluster = $replicationCluster;
}
/**
* @return ReplicationCluster
*/
public function getReplicationCluster()
{
return $this->replicationCluster;
}
/**
* @param string
*/
public function setRootPassword($rootPassword)
{
$this->rootPassword = $rootPassword;
}
/**
* @return string
*/
public function getRootPassword()
{
return $this->rootPassword;
}
/**
* @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 SqlScheduledMaintenance
*/
public function setScheduledMaintenance(SqlScheduledMaintenance $scheduledMaintenance)
{
$this->scheduledMaintenance = $scheduledMaintenance;
}
/**
* @return SqlScheduledMaintenance
*/
public function getScheduledMaintenance()
{
return $this->scheduledMaintenance;
}
/**
* @param string
*/
public function setSecondaryGceZone($secondaryGceZone)
{
$this->secondaryGceZone = $secondaryGceZone;
}
/**
* @return string
*/
public function getSecondaryGceZone()
{
return $this->secondaryGceZone;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param SslCert
*/
public function setServerCaCert(SslCert $serverCaCert)
{
$this->serverCaCert = $serverCaCert;
}
/**
* @return SslCert
*/
public function getServerCaCert()
{
return $this->serverCaCert;
}
/**
* @param string
*/
public function setServiceAccountEmailAddress($serviceAccountEmailAddress)
{
$this->serviceAccountEmailAddress = $serviceAccountEmailAddress;
}
/**
* @return string
*/
public function getServiceAccountEmailAddress()
{
return $this->serviceAccountEmailAddress;
}
/**
* @param Settings
*/
public function setSettings(Settings $settings)
{
$this->settings = $settings;
}
/**
* @return Settings
*/
public function getSettings()
{
return $this->settings;
}
/**
* @param string
*/
public function setSqlNetworkArchitecture($sqlNetworkArchitecture)
{
$this->sqlNetworkArchitecture = $sqlNetworkArchitecture;
}
/**
* @return string
*/
public function getSqlNetworkArchitecture()
{
return $this->sqlNetworkArchitecture;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string[]
*/
public function setSuspensionReason($suspensionReason)
{
$this->suspensionReason = $suspensionReason;
}
/**
* @return string[]
*/
public function getSuspensionReason()
{
return $this->suspensionReason;
}
/**
* @param bool
*/
public function setSwitchTransactionLogsToCloudStorageEnabled($switchTransactionLogsToCloudStorageEnabled)
{
$this->switchTransactionLogsToCloudStorageEnabled = $switchTransactionLogsToCloudStorageEnabled;
}
/**
* @return bool
*/
public function getSwitchTransactionLogsToCloudStorageEnabled()
{
return $this->switchTransactionLogsToCloudStorageEnabled;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @param AvailableDatabaseVersion[]
*/
public function setUpgradableDatabaseVersions($upgradableDatabaseVersions)
{
$this->upgradableDatabaseVersions = $upgradableDatabaseVersions;
}
/**
* @return AvailableDatabaseVersion[]
*/
public function getUpgradableDatabaseVersions()
{
return $this->upgradableDatabaseVersions;
}
/**
* @param string
*/
public function setWriteEndpoint($writeEndpoint)
{
$this->writeEndpoint = $writeEndpoint;
}
/**
* @return string
*/
public function getWriteEndpoint()
{
return $this->writeEndpoint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseInstance::class, 'Google_Service_SQLAdmin_DatabaseInstance');
@@ -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\SQLAdmin;
class DatabaseInstanceFailoverReplica extends \Google\Model
{
/**
* @var bool
*/
public $available;
/**
* @var string
*/
public $name;
/**
* @param bool
*/
public function setAvailable($available)
{
$this->available = $available;
}
/**
* @return bool
*/
public function getAvailable()
{
return $this->available;
}
/**
* @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(DatabaseInstanceFailoverReplica::class, 'Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica');
@@ -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\SQLAdmin;
class DatabasesListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Database::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param Database[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Database[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabasesListResponse::class, 'Google_Service_SQLAdmin_DatabasesListResponse');
@@ -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\SQLAdmin;
class DemoteContext extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $sourceRepresentativeInstanceName;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setSourceRepresentativeInstanceName($sourceRepresentativeInstanceName)
{
$this->sourceRepresentativeInstanceName = $sourceRepresentativeInstanceName;
}
/**
* @return string
*/
public function getSourceRepresentativeInstanceName()
{
return $this->sourceRepresentativeInstanceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DemoteContext::class, 'Google_Service_SQLAdmin_DemoteContext');
@@ -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\SQLAdmin;
class DemoteMasterConfiguration extends \Google\Model
{
/**
* @var string
*/
public $kind;
protected $mysqlReplicaConfigurationType = DemoteMasterMySqlReplicaConfiguration::class;
protected $mysqlReplicaConfigurationDataType = '';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param DemoteMasterMySqlReplicaConfiguration
*/
public function setMysqlReplicaConfiguration(DemoteMasterMySqlReplicaConfiguration $mysqlReplicaConfiguration)
{
$this->mysqlReplicaConfiguration = $mysqlReplicaConfiguration;
}
/**
* @return DemoteMasterMySqlReplicaConfiguration
*/
public function getMysqlReplicaConfiguration()
{
return $this->mysqlReplicaConfiguration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DemoteMasterConfiguration::class, 'Google_Service_SQLAdmin_DemoteMasterConfiguration');
@@ -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\SQLAdmin;
class DemoteMasterContext extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $masterInstanceName;
protected $replicaConfigurationType = DemoteMasterConfiguration::class;
protected $replicaConfigurationDataType = '';
/**
* @var bool
*/
public $skipReplicationSetup;
/**
* @var bool
*/
public $verifyGtidConsistency;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setMasterInstanceName($masterInstanceName)
{
$this->masterInstanceName = $masterInstanceName;
}
/**
* @return string
*/
public function getMasterInstanceName()
{
return $this->masterInstanceName;
}
/**
* @param DemoteMasterConfiguration
*/
public function setReplicaConfiguration(DemoteMasterConfiguration $replicaConfiguration)
{
$this->replicaConfiguration = $replicaConfiguration;
}
/**
* @return DemoteMasterConfiguration
*/
public function getReplicaConfiguration()
{
return $this->replicaConfiguration;
}
/**
* @param bool
*/
public function setSkipReplicationSetup($skipReplicationSetup)
{
$this->skipReplicationSetup = $skipReplicationSetup;
}
/**
* @return bool
*/
public function getSkipReplicationSetup()
{
return $this->skipReplicationSetup;
}
/**
* @param bool
*/
public function setVerifyGtidConsistency($verifyGtidConsistency)
{
$this->verifyGtidConsistency = $verifyGtidConsistency;
}
/**
* @return bool
*/
public function getVerifyGtidConsistency()
{
return $this->verifyGtidConsistency;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DemoteMasterContext::class, 'Google_Service_SQLAdmin_DemoteMasterContext');
@@ -0,0 +1,134 @@
<?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\SQLAdmin;
class DemoteMasterMySqlReplicaConfiguration extends \Google\Model
{
/**
* @var string
*/
public $caCertificate;
/**
* @var string
*/
public $clientCertificate;
/**
* @var string
*/
public $clientKey;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $password;
/**
* @var string
*/
public $username;
/**
* @param string
*/
public function setCaCertificate($caCertificate)
{
$this->caCertificate = $caCertificate;
}
/**
* @return string
*/
public function getCaCertificate()
{
return $this->caCertificate;
}
/**
* @param string
*/
public function setClientCertificate($clientCertificate)
{
$this->clientCertificate = $clientCertificate;
}
/**
* @return string
*/
public function getClientCertificate()
{
return $this->clientCertificate;
}
/**
* @param string
*/
public function setClientKey($clientKey)
{
$this->clientKey = $clientKey;
}
/**
* @return string
*/
public function getClientKey()
{
return $this->clientKey;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param string
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DemoteMasterMySqlReplicaConfiguration::class, 'Google_Service_SQLAdmin_DemoteMasterMySqlReplicaConfiguration');
@@ -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\SQLAdmin;
class DenyMaintenancePeriod extends \Google\Model
{
/**
* @var string
*/
public $endDate;
/**
* @var string
*/
public $startDate;
/**
* @var string
*/
public $time;
/**
* @param string
*/
public function setEndDate($endDate)
{
$this->endDate = $endDate;
}
/**
* @return string
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* @param string
*/
public function setStartDate($startDate)
{
$this->startDate = $startDate;
}
/**
* @return string
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* @param string
*/
public function setTime($time)
{
$this->time = $time;
}
/**
* @return string
*/
public function getTime()
{
return $this->time;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DenyMaintenancePeriod::class, 'Google_Service_SQLAdmin_DenyMaintenancePeriod');
@@ -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\SQLAdmin;
class DiskEncryptionConfiguration extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $kmsKeyName;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskEncryptionConfiguration::class, 'Google_Service_SQLAdmin_DiskEncryptionConfiguration');
@@ -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\SQLAdmin;
class DiskEncryptionStatus extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $kmsKeyVersionName;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setKmsKeyVersionName($kmsKeyVersionName)
{
$this->kmsKeyVersionName = $kmsKeyVersionName;
}
/**
* @return string
*/
public function getKmsKeyVersionName()
{
return $this->kmsKeyVersionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskEncryptionStatus::class, 'Google_Service_SQLAdmin_DiskEncryptionStatus');
@@ -0,0 +1,165 @@
<?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\SQLAdmin;
class ExportContext extends \Google\Collection
{
protected $collection_key = 'databases';
protected $bakExportOptionsType = ExportContextBakExportOptions::class;
protected $bakExportOptionsDataType = '';
protected $csvExportOptionsType = ExportContextCsvExportOptions::class;
protected $csvExportOptionsDataType = '';
/**
* @var string[]
*/
public $databases;
/**
* @var string
*/
public $fileType;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $offload;
protected $sqlExportOptionsType = ExportContextSqlExportOptions::class;
protected $sqlExportOptionsDataType = '';
/**
* @var string
*/
public $uri;
/**
* @param ExportContextBakExportOptions
*/
public function setBakExportOptions(ExportContextBakExportOptions $bakExportOptions)
{
$this->bakExportOptions = $bakExportOptions;
}
/**
* @return ExportContextBakExportOptions
*/
public function getBakExportOptions()
{
return $this->bakExportOptions;
}
/**
* @param ExportContextCsvExportOptions
*/
public function setCsvExportOptions(ExportContextCsvExportOptions $csvExportOptions)
{
$this->csvExportOptions = $csvExportOptions;
}
/**
* @return ExportContextCsvExportOptions
*/
public function getCsvExportOptions()
{
return $this->csvExportOptions;
}
/**
* @param string[]
*/
public function setDatabases($databases)
{
$this->databases = $databases;
}
/**
* @return string[]
*/
public function getDatabases()
{
return $this->databases;
}
/**
* @param string
*/
public function setFileType($fileType)
{
$this->fileType = $fileType;
}
/**
* @return string
*/
public function getFileType()
{
return $this->fileType;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setOffload($offload)
{
$this->offload = $offload;
}
/**
* @return bool
*/
public function getOffload()
{
return $this->offload;
}
/**
* @param ExportContextSqlExportOptions
*/
public function setSqlExportOptions(ExportContextSqlExportOptions $sqlExportOptions)
{
$this->sqlExportOptions = $sqlExportOptions;
}
/**
* @return ExportContextSqlExportOptions
*/
public function getSqlExportOptions()
{
return $this->sqlExportOptions;
}
/**
* @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(ExportContext::class, 'Google_Service_SQLAdmin_ExportContext');
@@ -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\SQLAdmin;
class ExportContextBakExportOptions extends \Google\Model
{
/**
* @var string
*/
public $bakType;
/**
* @var bool
*/
public $copyOnly;
/**
* @var bool
*/
public $differentialBase;
/**
* @var string
*/
public $exportLogEndTime;
/**
* @var string
*/
public $exportLogStartTime;
/**
* @var int
*/
public $stripeCount;
/**
* @var bool
*/
public $striped;
/**
* @param string
*/
public function setBakType($bakType)
{
$this->bakType = $bakType;
}
/**
* @return string
*/
public function getBakType()
{
return $this->bakType;
}
/**
* @param bool
*/
public function setCopyOnly($copyOnly)
{
$this->copyOnly = $copyOnly;
}
/**
* @return bool
*/
public function getCopyOnly()
{
return $this->copyOnly;
}
/**
* @param bool
*/
public function setDifferentialBase($differentialBase)
{
$this->differentialBase = $differentialBase;
}
/**
* @return bool
*/
public function getDifferentialBase()
{
return $this->differentialBase;
}
/**
* @param string
*/
public function setExportLogEndTime($exportLogEndTime)
{
$this->exportLogEndTime = $exportLogEndTime;
}
/**
* @return string
*/
public function getExportLogEndTime()
{
return $this->exportLogEndTime;
}
/**
* @param string
*/
public function setExportLogStartTime($exportLogStartTime)
{
$this->exportLogStartTime = $exportLogStartTime;
}
/**
* @return string
*/
public function getExportLogStartTime()
{
return $this->exportLogStartTime;
}
/**
* @param int
*/
public function setStripeCount($stripeCount)
{
$this->stripeCount = $stripeCount;
}
/**
* @return int
*/
public function getStripeCount()
{
return $this->stripeCount;
}
/**
* @param bool
*/
public function setStriped($striped)
{
$this->striped = $striped;
}
/**
* @return bool
*/
public function getStriped()
{
return $this->striped;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportContextBakExportOptions::class, 'Google_Service_SQLAdmin_ExportContextBakExportOptions');
@@ -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\SQLAdmin;
class ExportContextCsvExportOptions extends \Google\Model
{
/**
* @var string
*/
public $escapeCharacter;
/**
* @var string
*/
public $fieldsTerminatedBy;
/**
* @var string
*/
public $linesTerminatedBy;
/**
* @var string
*/
public $quoteCharacter;
/**
* @var string
*/
public $selectQuery;
/**
* @param string
*/
public function setEscapeCharacter($escapeCharacter)
{
$this->escapeCharacter = $escapeCharacter;
}
/**
* @return string
*/
public function getEscapeCharacter()
{
return $this->escapeCharacter;
}
/**
* @param string
*/
public function setFieldsTerminatedBy($fieldsTerminatedBy)
{
$this->fieldsTerminatedBy = $fieldsTerminatedBy;
}
/**
* @return string
*/
public function getFieldsTerminatedBy()
{
return $this->fieldsTerminatedBy;
}
/**
* @param string
*/
public function setLinesTerminatedBy($linesTerminatedBy)
{
$this->linesTerminatedBy = $linesTerminatedBy;
}
/**
* @return string
*/
public function getLinesTerminatedBy()
{
return $this->linesTerminatedBy;
}
/**
* @param string
*/
public function setQuoteCharacter($quoteCharacter)
{
$this->quoteCharacter = $quoteCharacter;
}
/**
* @return string
*/
public function getQuoteCharacter()
{
return $this->quoteCharacter;
}
/**
* @param string
*/
public function setSelectQuery($selectQuery)
{
$this->selectQuery = $selectQuery;
}
/**
* @return string
*/
public function getSelectQuery()
{
return $this->selectQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportContextCsvExportOptions::class, 'Google_Service_SQLAdmin_ExportContextCsvExportOptions');
@@ -0,0 +1,131 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SQLAdmin;
class ExportContextSqlExportOptions extends \Google\Collection
{
protected $collection_key = 'tables';
protected $mysqlExportOptionsType = ExportContextSqlExportOptionsMysqlExportOptions::class;
protected $mysqlExportOptionsDataType = '';
/**
* @var bool
*/
public $parallel;
protected $postgresExportOptionsType = ExportContextSqlExportOptionsPostgresExportOptions::class;
protected $postgresExportOptionsDataType = '';
/**
* @var bool
*/
public $schemaOnly;
/**
* @var string[]
*/
public $tables;
/**
* @var int
*/
public $threads;
/**
* @param ExportContextSqlExportOptionsMysqlExportOptions
*/
public function setMysqlExportOptions(ExportContextSqlExportOptionsMysqlExportOptions $mysqlExportOptions)
{
$this->mysqlExportOptions = $mysqlExportOptions;
}
/**
* @return ExportContextSqlExportOptionsMysqlExportOptions
*/
public function getMysqlExportOptions()
{
return $this->mysqlExportOptions;
}
/**
* @param bool
*/
public function setParallel($parallel)
{
$this->parallel = $parallel;
}
/**
* @return bool
*/
public function getParallel()
{
return $this->parallel;
}
/**
* @param ExportContextSqlExportOptionsPostgresExportOptions
*/
public function setPostgresExportOptions(ExportContextSqlExportOptionsPostgresExportOptions $postgresExportOptions)
{
$this->postgresExportOptions = $postgresExportOptions;
}
/**
* @return ExportContextSqlExportOptionsPostgresExportOptions
*/
public function getPostgresExportOptions()
{
return $this->postgresExportOptions;
}
/**
* @param bool
*/
public function setSchemaOnly($schemaOnly)
{
$this->schemaOnly = $schemaOnly;
}
/**
* @return bool
*/
public function getSchemaOnly()
{
return $this->schemaOnly;
}
/**
* @param string[]
*/
public function setTables($tables)
{
$this->tables = $tables;
}
/**
* @return string[]
*/
public function getTables()
{
return $this->tables;
}
/**
* @param int
*/
public function setThreads($threads)
{
$this->threads = $threads;
}
/**
* @return int
*/
public function getThreads()
{
return $this->threads;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportContextSqlExportOptions::class, 'Google_Service_SQLAdmin_ExportContextSqlExportOptions');
@@ -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\SQLAdmin;
class ExportContextSqlExportOptionsMysqlExportOptions extends \Google\Model
{
/**
* @var int
*/
public $masterData;
/**
* @param int
*/
public function setMasterData($masterData)
{
$this->masterData = $masterData;
}
/**
* @return int
*/
public function getMasterData()
{
return $this->masterData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportContextSqlExportOptionsMysqlExportOptions::class, 'Google_Service_SQLAdmin_ExportContextSqlExportOptionsMysqlExportOptions');
@@ -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\SQLAdmin;
class ExportContextSqlExportOptionsPostgresExportOptions extends \Google\Model
{
/**
* @var bool
*/
public $clean;
/**
* @var bool
*/
public $ifExists;
/**
* @param bool
*/
public function setClean($clean)
{
$this->clean = $clean;
}
/**
* @return bool
*/
public function getClean()
{
return $this->clean;
}
/**
* @param bool
*/
public function setIfExists($ifExists)
{
$this->ifExists = $ifExists;
}
/**
* @return bool
*/
public function getIfExists()
{
return $this->ifExists;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportContextSqlExportOptionsPostgresExportOptions::class, 'Google_Service_SQLAdmin_ExportContextSqlExportOptionsPostgresExportOptions');
@@ -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\SQLAdmin;
class ExternalSyncSelectedObject extends \Google\Model
{
/**
* @var string
*/
public $database;
/**
* @param string
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalSyncSelectedObject::class, 'Google_Service_SQLAdmin_ExternalSyncSelectedObject');
@@ -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\SQLAdmin;
class FailoverContext extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $settingsVersion;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setSettingsVersion($settingsVersion)
{
$this->settingsVersion = $settingsVersion;
}
/**
* @return string
*/
public function getSettingsVersion()
{
return $this->settingsVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailoverContext::class, 'Google_Service_SQLAdmin_FailoverContext');
@@ -0,0 +1,207 @@
<?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\SQLAdmin;
class Flag extends \Google\Collection
{
protected $collection_key = 'appliesTo';
/**
* @var string[]
*/
public $allowedIntValues;
/**
* @var string[]
*/
public $allowedStringValues;
/**
* @var string[]
*/
public $appliesTo;
/**
* @var bool
*/
public $inBeta;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $maxValue;
/**
* @var string
*/
public $minValue;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $requiresRestart;
/**
* @var string
*/
public $type;
/**
* @param string[]
*/
public function setAllowedIntValues($allowedIntValues)
{
$this->allowedIntValues = $allowedIntValues;
}
/**
* @return string[]
*/
public function getAllowedIntValues()
{
return $this->allowedIntValues;
}
/**
* @param string[]
*/
public function setAllowedStringValues($allowedStringValues)
{
$this->allowedStringValues = $allowedStringValues;
}
/**
* @return string[]
*/
public function getAllowedStringValues()
{
return $this->allowedStringValues;
}
/**
* @param string[]
*/
public function setAppliesTo($appliesTo)
{
$this->appliesTo = $appliesTo;
}
/**
* @return string[]
*/
public function getAppliesTo()
{
return $this->appliesTo;
}
/**
* @param bool
*/
public function setInBeta($inBeta)
{
$this->inBeta = $inBeta;
}
/**
* @return bool
*/
public function getInBeta()
{
return $this->inBeta;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setMaxValue($maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return string
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* @param string
*/
public function setMinValue($minValue)
{
$this->minValue = $minValue;
}
/**
* @return string
*/
public function getMinValue()
{
return $this->minValue;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setRequiresRestart($requiresRestart)
{
$this->requiresRestart = $requiresRestart;
}
/**
* @return bool
*/
public function getRequiresRestart()
{
return $this->requiresRestart;
}
/**
* @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(Flag::class, 'Google_Service_SQLAdmin_Flag');
@@ -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\SQLAdmin;
class FlagsListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Flag::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param Flag[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Flag[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FlagsListResponse::class, 'Google_Service_SQLAdmin_FlagsListResponse');
@@ -0,0 +1,134 @@
<?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\SQLAdmin;
class GeminiInstanceConfig extends \Google\Model
{
/**
* @var bool
*/
public $activeQueryEnabled;
/**
* @var bool
*/
public $entitled;
/**
* @var bool
*/
public $flagRecommenderEnabled;
/**
* @var bool
*/
public $googleVacuumMgmtEnabled;
/**
* @var bool
*/
public $indexAdvisorEnabled;
/**
* @var bool
*/
public $oomSessionCancelEnabled;
/**
* @param bool
*/
public function setActiveQueryEnabled($activeQueryEnabled)
{
$this->activeQueryEnabled = $activeQueryEnabled;
}
/**
* @return bool
*/
public function getActiveQueryEnabled()
{
return $this->activeQueryEnabled;
}
/**
* @param bool
*/
public function setEntitled($entitled)
{
$this->entitled = $entitled;
}
/**
* @return bool
*/
public function getEntitled()
{
return $this->entitled;
}
/**
* @param bool
*/
public function setFlagRecommenderEnabled($flagRecommenderEnabled)
{
$this->flagRecommenderEnabled = $flagRecommenderEnabled;
}
/**
* @return bool
*/
public function getFlagRecommenderEnabled()
{
return $this->flagRecommenderEnabled;
}
/**
* @param bool
*/
public function setGoogleVacuumMgmtEnabled($googleVacuumMgmtEnabled)
{
$this->googleVacuumMgmtEnabled = $googleVacuumMgmtEnabled;
}
/**
* @return bool
*/
public function getGoogleVacuumMgmtEnabled()
{
return $this->googleVacuumMgmtEnabled;
}
/**
* @param bool
*/
public function setIndexAdvisorEnabled($indexAdvisorEnabled)
{
$this->indexAdvisorEnabled = $indexAdvisorEnabled;
}
/**
* @return bool
*/
public function getIndexAdvisorEnabled()
{
return $this->indexAdvisorEnabled;
}
/**
* @param bool
*/
public function setOomSessionCancelEnabled($oomSessionCancelEnabled)
{
$this->oomSessionCancelEnabled = $oomSessionCancelEnabled;
}
/**
* @return bool
*/
public function getOomSessionCancelEnabled()
{
return $this->oomSessionCancelEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeminiInstanceConfig::class, 'Google_Service_SQLAdmin_GeminiInstanceConfig');
@@ -0,0 +1,102 @@
<?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\SQLAdmin;
class GenerateEphemeralCertRequest extends \Google\Model
{
protected $internal_gapi_mappings = [
"accessToken" => "access_token",
"publicKey" => "public_key",
];
/**
* @var string
*/
public $accessToken;
/**
* @var string
*/
public $publicKey;
/**
* @var string
*/
public $readTime;
/**
* @var string
*/
public $validDuration;
/**
* @param string
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* @param string
*/
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey()
{
return $this->publicKey;
}
/**
* @param string
*/
public function setReadTime($readTime)
{
$this->readTime = $readTime;
}
/**
* @return string
*/
public function getReadTime()
{
return $this->readTime;
}
/**
* @param string
*/
public function setValidDuration($validDuration)
{
$this->validDuration = $validDuration;
}
/**
* @return string
*/
public function getValidDuration()
{
return $this->validDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateEphemeralCertRequest::class, 'Google_Service_SQLAdmin_GenerateEphemeralCertRequest');
@@ -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\SQLAdmin;
class GenerateEphemeralCertResponse extends \Google\Model
{
protected $ephemeralCertType = SslCert::class;
protected $ephemeralCertDataType = '';
/**
* @param SslCert
*/
public function setEphemeralCert(SslCert $ephemeralCert)
{
$this->ephemeralCert = $ephemeralCert;
}
/**
* @return SslCert
*/
public function getEphemeralCert()
{
return $this->ephemeralCert;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateEphemeralCertResponse::class, 'Google_Service_SQLAdmin_GenerateEphemeralCertResponse');
@@ -0,0 +1,164 @@
<?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\SQLAdmin;
class ImportContext extends \Google\Model
{
protected $bakImportOptionsType = ImportContextBakImportOptions::class;
protected $bakImportOptionsDataType = '';
protected $csvImportOptionsType = ImportContextCsvImportOptions::class;
protected $csvImportOptionsDataType = '';
/**
* @var string
*/
public $database;
/**
* @var string
*/
public $fileType;
/**
* @var string
*/
public $importUser;
/**
* @var string
*/
public $kind;
protected $sqlImportOptionsType = ImportContextSqlImportOptions::class;
protected $sqlImportOptionsDataType = '';
/**
* @var string
*/
public $uri;
/**
* @param ImportContextBakImportOptions
*/
public function setBakImportOptions(ImportContextBakImportOptions $bakImportOptions)
{
$this->bakImportOptions = $bakImportOptions;
}
/**
* @return ImportContextBakImportOptions
*/
public function getBakImportOptions()
{
return $this->bakImportOptions;
}
/**
* @param ImportContextCsvImportOptions
*/
public function setCsvImportOptions(ImportContextCsvImportOptions $csvImportOptions)
{
$this->csvImportOptions = $csvImportOptions;
}
/**
* @return ImportContextCsvImportOptions
*/
public function getCsvImportOptions()
{
return $this->csvImportOptions;
}
/**
* @param string
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* @param string
*/
public function setFileType($fileType)
{
$this->fileType = $fileType;
}
/**
* @return string
*/
public function getFileType()
{
return $this->fileType;
}
/**
* @param string
*/
public function setImportUser($importUser)
{
$this->importUser = $importUser;
}
/**
* @return string
*/
public function getImportUser()
{
return $this->importUser;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param ImportContextSqlImportOptions
*/
public function setSqlImportOptions(ImportContextSqlImportOptions $sqlImportOptions)
{
$this->sqlImportOptions = $sqlImportOptions;
}
/**
* @return ImportContextSqlImportOptions
*/
public function getSqlImportOptions()
{
return $this->sqlImportOptions;
}
/**
* @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(ImportContext::class, 'Google_Service_SQLAdmin_ImportContext');
@@ -0,0 +1,150 @@
<?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\SQLAdmin;
class ImportContextBakImportOptions extends \Google\Model
{
/**
* @var string
*/
public $bakType;
protected $encryptionOptionsType = ImportContextBakImportOptionsEncryptionOptions::class;
protected $encryptionOptionsDataType = '';
/**
* @var bool
*/
public $noRecovery;
/**
* @var bool
*/
public $recoveryOnly;
/**
* @var string
*/
public $stopAt;
/**
* @var string
*/
public $stopAtMark;
/**
* @var bool
*/
public $striped;
/**
* @param string
*/
public function setBakType($bakType)
{
$this->bakType = $bakType;
}
/**
* @return string
*/
public function getBakType()
{
return $this->bakType;
}
/**
* @param ImportContextBakImportOptionsEncryptionOptions
*/
public function setEncryptionOptions(ImportContextBakImportOptionsEncryptionOptions $encryptionOptions)
{
$this->encryptionOptions = $encryptionOptions;
}
/**
* @return ImportContextBakImportOptionsEncryptionOptions
*/
public function getEncryptionOptions()
{
return $this->encryptionOptions;
}
/**
* @param bool
*/
public function setNoRecovery($noRecovery)
{
$this->noRecovery = $noRecovery;
}
/**
* @return bool
*/
public function getNoRecovery()
{
return $this->noRecovery;
}
/**
* @param bool
*/
public function setRecoveryOnly($recoveryOnly)
{
$this->recoveryOnly = $recoveryOnly;
}
/**
* @return bool
*/
public function getRecoveryOnly()
{
return $this->recoveryOnly;
}
/**
* @param string
*/
public function setStopAt($stopAt)
{
$this->stopAt = $stopAt;
}
/**
* @return string
*/
public function getStopAt()
{
return $this->stopAt;
}
/**
* @param string
*/
public function setStopAtMark($stopAtMark)
{
$this->stopAtMark = $stopAtMark;
}
/**
* @return string
*/
public function getStopAtMark()
{
return $this->stopAtMark;
}
/**
* @param bool
*/
public function setStriped($striped)
{
$this->striped = $striped;
}
/**
* @return bool
*/
public function getStriped()
{
return $this->striped;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportContextBakImportOptions::class, 'Google_Service_SQLAdmin_ImportContextBakImportOptions');
@@ -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\SQLAdmin;
class ImportContextBakImportOptionsEncryptionOptions extends \Google\Model
{
/**
* @var string
*/
public $certPath;
/**
* @var string
*/
public $pvkPassword;
/**
* @var string
*/
public $pvkPath;
/**
* @param string
*/
public function setCertPath($certPath)
{
$this->certPath = $certPath;
}
/**
* @return string
*/
public function getCertPath()
{
return $this->certPath;
}
/**
* @param string
*/
public function setPvkPassword($pvkPassword)
{
$this->pvkPassword = $pvkPassword;
}
/**
* @return string
*/
public function getPvkPassword()
{
return $this->pvkPassword;
}
/**
* @param string
*/
public function setPvkPath($pvkPath)
{
$this->pvkPath = $pvkPath;
}
/**
* @return string
*/
public function getPvkPath()
{
return $this->pvkPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportContextBakImportOptionsEncryptionOptions::class, 'Google_Service_SQLAdmin_ImportContextBakImportOptionsEncryptionOptions');
@@ -0,0 +1,135 @@
<?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\SQLAdmin;
class ImportContextCsvImportOptions extends \Google\Collection
{
protected $collection_key = 'columns';
/**
* @var string[]
*/
public $columns;
/**
* @var string
*/
public $escapeCharacter;
/**
* @var string
*/
public $fieldsTerminatedBy;
/**
* @var string
*/
public $linesTerminatedBy;
/**
* @var string
*/
public $quoteCharacter;
/**
* @var string
*/
public $table;
/**
* @param string[]
*/
public function setColumns($columns)
{
$this->columns = $columns;
}
/**
* @return string[]
*/
public function getColumns()
{
return $this->columns;
}
/**
* @param string
*/
public function setEscapeCharacter($escapeCharacter)
{
$this->escapeCharacter = $escapeCharacter;
}
/**
* @return string
*/
public function getEscapeCharacter()
{
return $this->escapeCharacter;
}
/**
* @param string
*/
public function setFieldsTerminatedBy($fieldsTerminatedBy)
{
$this->fieldsTerminatedBy = $fieldsTerminatedBy;
}
/**
* @return string
*/
public function getFieldsTerminatedBy()
{
return $this->fieldsTerminatedBy;
}
/**
* @param string
*/
public function setLinesTerminatedBy($linesTerminatedBy)
{
$this->linesTerminatedBy = $linesTerminatedBy;
}
/**
* @return string
*/
public function getLinesTerminatedBy()
{
return $this->linesTerminatedBy;
}
/**
* @param string
*/
public function setQuoteCharacter($quoteCharacter)
{
$this->quoteCharacter = $quoteCharacter;
}
/**
* @return string
*/
public function getQuoteCharacter()
{
return $this->quoteCharacter;
}
/**
* @param string
*/
public function setTable($table)
{
$this->table = $table;
}
/**
* @return string
*/
public function getTable()
{
return $this->table;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportContextCsvImportOptions::class, 'Google_Service_SQLAdmin_ImportContextCsvImportOptions');
@@ -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\SQLAdmin;
class ImportContextSqlImportOptions extends \Google\Model
{
/**
* @var bool
*/
public $parallel;
protected $postgresImportOptionsType = ImportContextSqlImportOptionsPostgresImportOptions::class;
protected $postgresImportOptionsDataType = '';
/**
* @var int
*/
public $threads;
/**
* @param bool
*/
public function setParallel($parallel)
{
$this->parallel = $parallel;
}
/**
* @return bool
*/
public function getParallel()
{
return $this->parallel;
}
/**
* @param ImportContextSqlImportOptionsPostgresImportOptions
*/
public function setPostgresImportOptions(ImportContextSqlImportOptionsPostgresImportOptions $postgresImportOptions)
{
$this->postgresImportOptions = $postgresImportOptions;
}
/**
* @return ImportContextSqlImportOptionsPostgresImportOptions
*/
public function getPostgresImportOptions()
{
return $this->postgresImportOptions;
}
/**
* @param int
*/
public function setThreads($threads)
{
$this->threads = $threads;
}
/**
* @return int
*/
public function getThreads()
{
return $this->threads;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportContextSqlImportOptions::class, 'Google_Service_SQLAdmin_ImportContextSqlImportOptions');
@@ -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\SQLAdmin;
class ImportContextSqlImportOptionsPostgresImportOptions extends \Google\Model
{
/**
* @var bool
*/
public $clean;
/**
* @var bool
*/
public $ifExists;
/**
* @param bool
*/
public function setClean($clean)
{
$this->clean = $clean;
}
/**
* @return bool
*/
public function getClean()
{
return $this->clean;
}
/**
* @param bool
*/
public function setIfExists($ifExists)
{
$this->ifExists = $ifExists;
}
/**
* @return bool
*/
public function getIfExists()
{
return $this->ifExists;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportContextSqlImportOptionsPostgresImportOptions::class, 'Google_Service_SQLAdmin_ImportContextSqlImportOptionsPostgresImportOptions');
@@ -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\SQLAdmin;
class InsightsConfig extends \Google\Model
{
/**
* @var bool
*/
public $queryInsightsEnabled;
/**
* @var int
*/
public $queryPlansPerMinute;
/**
* @var int
*/
public $queryStringLength;
/**
* @var bool
*/
public $recordApplicationTags;
/**
* @var bool
*/
public $recordClientAddress;
/**
* @param bool
*/
public function setQueryInsightsEnabled($queryInsightsEnabled)
{
$this->queryInsightsEnabled = $queryInsightsEnabled;
}
/**
* @return bool
*/
public function getQueryInsightsEnabled()
{
return $this->queryInsightsEnabled;
}
/**
* @param int
*/
public function setQueryPlansPerMinute($queryPlansPerMinute)
{
$this->queryPlansPerMinute = $queryPlansPerMinute;
}
/**
* @return int
*/
public function getQueryPlansPerMinute()
{
return $this->queryPlansPerMinute;
}
/**
* @param int
*/
public function setQueryStringLength($queryStringLength)
{
$this->queryStringLength = $queryStringLength;
}
/**
* @return int
*/
public function getQueryStringLength()
{
return $this->queryStringLength;
}
/**
* @param bool
*/
public function setRecordApplicationTags($recordApplicationTags)
{
$this->recordApplicationTags = $recordApplicationTags;
}
/**
* @return bool
*/
public function getRecordApplicationTags()
{
return $this->recordApplicationTags;
}
/**
* @param bool
*/
public function setRecordClientAddress($recordClientAddress)
{
$this->recordClientAddress = $recordClientAddress;
}
/**
* @return bool
*/
public function getRecordClientAddress()
{
return $this->recordClientAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InsightsConfig::class, 'Google_Service_SQLAdmin_InsightsConfig');
@@ -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\SQLAdmin;
class InstanceReference extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $project;
/**
* @var string
*/
public $region;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceReference::class, 'Google_Service_SQLAdmin_InstanceReference');
@@ -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\SQLAdmin;
class InstancesAcquireSsrsLeaseRequest extends \Google\Model
{
protected $acquireSsrsLeaseContextType = AcquireSsrsLeaseContext::class;
protected $acquireSsrsLeaseContextDataType = '';
/**
* @param AcquireSsrsLeaseContext
*/
public function setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext $acquireSsrsLeaseContext)
{
$this->acquireSsrsLeaseContext = $acquireSsrsLeaseContext;
}
/**
* @return AcquireSsrsLeaseContext
*/
public function getAcquireSsrsLeaseContext()
{
return $this->acquireSsrsLeaseContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesAcquireSsrsLeaseRequest::class, 'Google_Service_SQLAdmin_InstancesAcquireSsrsLeaseRequest');
@@ -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\SQLAdmin;
class InstancesCloneRequest extends \Google\Model
{
protected $cloneContextType = CloneContext::class;
protected $cloneContextDataType = '';
/**
* @param CloneContext
*/
public function setCloneContext(CloneContext $cloneContext)
{
$this->cloneContext = $cloneContext;
}
/**
* @return CloneContext
*/
public function getCloneContext()
{
return $this->cloneContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesCloneRequest::class, 'Google_Service_SQLAdmin_InstancesCloneRequest');
@@ -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\SQLAdmin;
class InstancesDemoteMasterRequest extends \Google\Model
{
protected $demoteMasterContextType = DemoteMasterContext::class;
protected $demoteMasterContextDataType = '';
/**
* @param DemoteMasterContext
*/
public function setDemoteMasterContext(DemoteMasterContext $demoteMasterContext)
{
$this->demoteMasterContext = $demoteMasterContext;
}
/**
* @return DemoteMasterContext
*/
public function getDemoteMasterContext()
{
return $this->demoteMasterContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesDemoteMasterRequest::class, 'Google_Service_SQLAdmin_InstancesDemoteMasterRequest');
@@ -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\SQLAdmin;
class InstancesDemoteRequest extends \Google\Model
{
protected $demoteContextType = DemoteContext::class;
protected $demoteContextDataType = '';
/**
* @param DemoteContext
*/
public function setDemoteContext(DemoteContext $demoteContext)
{
$this->demoteContext = $demoteContext;
}
/**
* @return DemoteContext
*/
public function getDemoteContext()
{
return $this->demoteContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesDemoteRequest::class, 'Google_Service_SQLAdmin_InstancesDemoteRequest');
@@ -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\SQLAdmin;
class InstancesExportRequest extends \Google\Model
{
protected $exportContextType = ExportContext::class;
protected $exportContextDataType = '';
/**
* @param ExportContext
*/
public function setExportContext(ExportContext $exportContext)
{
$this->exportContext = $exportContext;
}
/**
* @return ExportContext
*/
public function getExportContext()
{
return $this->exportContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesExportRequest::class, 'Google_Service_SQLAdmin_InstancesExportRequest');
@@ -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\SQLAdmin;
class InstancesFailoverRequest extends \Google\Model
{
protected $failoverContextType = FailoverContext::class;
protected $failoverContextDataType = '';
/**
* @param FailoverContext
*/
public function setFailoverContext(FailoverContext $failoverContext)
{
$this->failoverContext = $failoverContext;
}
/**
* @return FailoverContext
*/
public function getFailoverContext()
{
return $this->failoverContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesFailoverRequest::class, 'Google_Service_SQLAdmin_InstancesFailoverRequest');
@@ -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\SQLAdmin;
class InstancesImportRequest extends \Google\Model
{
protected $importContextType = ImportContext::class;
protected $importContextDataType = '';
/**
* @param ImportContext
*/
public function setImportContext(ImportContext $importContext)
{
$this->importContext = $importContext;
}
/**
* @return ImportContext
*/
public function getImportContext()
{
return $this->importContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesImportRequest::class, 'Google_Service_SQLAdmin_InstancesImportRequest');
@@ -0,0 +1,95 @@
<?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\SQLAdmin;
class InstancesListResponse extends \Google\Collection
{
protected $collection_key = 'warnings';
protected $itemsType = DatabaseInstance::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $warningsType = ApiWarning::class;
protected $warningsDataType = 'array';
/**
* @param DatabaseInstance[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return DatabaseInstance[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ApiWarning[]
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return ApiWarning[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesListResponse::class, 'Google_Service_SQLAdmin_InstancesListResponse');
@@ -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\SQLAdmin;
class InstancesListServerCasResponse extends \Google\Collection
{
protected $collection_key = 'certs';
/**
* @var string
*/
public $activeVersion;
protected $certsType = SslCert::class;
protected $certsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setActiveVersion($activeVersion)
{
$this->activeVersion = $activeVersion;
}
/**
* @return string
*/
public function getActiveVersion()
{
return $this->activeVersion;
}
/**
* @param SslCert[]
*/
public function setCerts($certs)
{
$this->certs = $certs;
}
/**
* @return SslCert[]
*/
public function getCerts()
{
return $this->certs;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesListServerCasResponse::class, 'Google_Service_SQLAdmin_InstancesListServerCasResponse');
@@ -0,0 +1,95 @@
<?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\SQLAdmin;
class InstancesListServerCertificatesResponse extends \Google\Collection
{
protected $collection_key = 'serverCerts';
/**
* @var string
*/
public $activeVersion;
protected $caCertsType = SslCert::class;
protected $caCertsDataType = 'array';
/**
* @var string
*/
public $kind;
protected $serverCertsType = SslCert::class;
protected $serverCertsDataType = 'array';
/**
* @param string
*/
public function setActiveVersion($activeVersion)
{
$this->activeVersion = $activeVersion;
}
/**
* @return string
*/
public function getActiveVersion()
{
return $this->activeVersion;
}
/**
* @param SslCert[]
*/
public function setCaCerts($caCerts)
{
$this->caCerts = $caCerts;
}
/**
* @return SslCert[]
*/
public function getCaCerts()
{
return $this->caCerts;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param SslCert[]
*/
public function setServerCerts($serverCerts)
{
$this->serverCerts = $serverCerts;
}
/**
* @return SslCert[]
*/
public function getServerCerts()
{
return $this->serverCerts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesListServerCertificatesResponse::class, 'Google_Service_SQLAdmin_InstancesListServerCertificatesResponse');
@@ -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\SQLAdmin;
class InstancesReencryptRequest extends \Google\Model
{
protected $backupReencryptionConfigType = BackupReencryptionConfig::class;
protected $backupReencryptionConfigDataType = '';
/**
* @param BackupReencryptionConfig
*/
public function setBackupReencryptionConfig(BackupReencryptionConfig $backupReencryptionConfig)
{
$this->backupReencryptionConfig = $backupReencryptionConfig;
}
/**
* @return BackupReencryptionConfig
*/
public function getBackupReencryptionConfig()
{
return $this->backupReencryptionConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesReencryptRequest::class, 'Google_Service_SQLAdmin_InstancesReencryptRequest');
@@ -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\SQLAdmin;
class InstancesRestoreBackupRequest extends \Google\Model
{
protected $restoreBackupContextType = RestoreBackupContext::class;
protected $restoreBackupContextDataType = '';
/**
* @param RestoreBackupContext
*/
public function setRestoreBackupContext(RestoreBackupContext $restoreBackupContext)
{
$this->restoreBackupContext = $restoreBackupContext;
}
/**
* @return RestoreBackupContext
*/
public function getRestoreBackupContext()
{
return $this->restoreBackupContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesRestoreBackupRequest::class, 'Google_Service_SQLAdmin_InstancesRestoreBackupRequest');
@@ -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\SQLAdmin;
class InstancesRotateServerCaRequest extends \Google\Model
{
protected $rotateServerCaContextType = RotateServerCaContext::class;
protected $rotateServerCaContextDataType = '';
/**
* @param RotateServerCaContext
*/
public function setRotateServerCaContext(RotateServerCaContext $rotateServerCaContext)
{
$this->rotateServerCaContext = $rotateServerCaContext;
}
/**
* @return RotateServerCaContext
*/
public function getRotateServerCaContext()
{
return $this->rotateServerCaContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesRotateServerCaRequest::class, 'Google_Service_SQLAdmin_InstancesRotateServerCaRequest');
@@ -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\SQLAdmin;
class InstancesRotateServerCertificateRequest extends \Google\Model
{
protected $rotateServerCertificateContextType = RotateServerCertificateContext::class;
protected $rotateServerCertificateContextDataType = '';
/**
* @param RotateServerCertificateContext
*/
public function setRotateServerCertificateContext(RotateServerCertificateContext $rotateServerCertificateContext)
{
$this->rotateServerCertificateContext = $rotateServerCertificateContext;
}
/**
* @return RotateServerCertificateContext
*/
public function getRotateServerCertificateContext()
{
return $this->rotateServerCertificateContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesRotateServerCertificateRequest::class, 'Google_Service_SQLAdmin_InstancesRotateServerCertificateRequest');
@@ -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\SQLAdmin;
class InstancesTruncateLogRequest extends \Google\Model
{
protected $truncateLogContextType = TruncateLogContext::class;
protected $truncateLogContextDataType = '';
/**
* @param TruncateLogContext
*/
public function setTruncateLogContext(TruncateLogContext $truncateLogContext)
{
$this->truncateLogContext = $truncateLogContext;
}
/**
* @return TruncateLogContext
*/
public function getTruncateLogContext()
{
return $this->truncateLogContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancesTruncateLogRequest::class, 'Google_Service_SQLAdmin_InstancesTruncateLogRequest');
@@ -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\SQLAdmin;
class IpConfiguration extends \Google\Collection
{
protected $collection_key = 'customSubjectAlternativeNames';
/**
* @var string
*/
public $allocatedIpRange;
protected $authorizedNetworksType = AclEntry::class;
protected $authorizedNetworksDataType = 'array';
/**
* @var string[]
*/
public $customSubjectAlternativeNames;
/**
* @var bool
*/
public $enablePrivatePathForGoogleCloudServices;
/**
* @var bool
*/
public $ipv4Enabled;
/**
* @var string
*/
public $privateNetwork;
protected $pscConfigType = PscConfig::class;
protected $pscConfigDataType = '';
/**
* @var bool
*/
public $requireSsl;
/**
* @var string
*/
public $serverCaMode;
/**
* @var string
*/
public $serverCaPool;
/**
* @var string
*/
public $sslMode;
/**
* @param string
*/
public function setAllocatedIpRange($allocatedIpRange)
{
$this->allocatedIpRange = $allocatedIpRange;
}
/**
* @return string
*/
public function getAllocatedIpRange()
{
return $this->allocatedIpRange;
}
/**
* @param AclEntry[]
*/
public function setAuthorizedNetworks($authorizedNetworks)
{
$this->authorizedNetworks = $authorizedNetworks;
}
/**
* @return AclEntry[]
*/
public function getAuthorizedNetworks()
{
return $this->authorizedNetworks;
}
/**
* @param string[]
*/
public function setCustomSubjectAlternativeNames($customSubjectAlternativeNames)
{
$this->customSubjectAlternativeNames = $customSubjectAlternativeNames;
}
/**
* @return string[]
*/
public function getCustomSubjectAlternativeNames()
{
return $this->customSubjectAlternativeNames;
}
/**
* @param bool
*/
public function setEnablePrivatePathForGoogleCloudServices($enablePrivatePathForGoogleCloudServices)
{
$this->enablePrivatePathForGoogleCloudServices = $enablePrivatePathForGoogleCloudServices;
}
/**
* @return bool
*/
public function getEnablePrivatePathForGoogleCloudServices()
{
return $this->enablePrivatePathForGoogleCloudServices;
}
/**
* @param bool
*/
public function setIpv4Enabled($ipv4Enabled)
{
$this->ipv4Enabled = $ipv4Enabled;
}
/**
* @return bool
*/
public function getIpv4Enabled()
{
return $this->ipv4Enabled;
}
/**
* @param string
*/
public function setPrivateNetwork($privateNetwork)
{
$this->privateNetwork = $privateNetwork;
}
/**
* @return string
*/
public function getPrivateNetwork()
{
return $this->privateNetwork;
}
/**
* @param PscConfig
*/
public function setPscConfig(PscConfig $pscConfig)
{
$this->pscConfig = $pscConfig;
}
/**
* @return PscConfig
*/
public function getPscConfig()
{
return $this->pscConfig;
}
/**
* @param bool
*/
public function setRequireSsl($requireSsl)
{
$this->requireSsl = $requireSsl;
}
/**
* @return bool
*/
public function getRequireSsl()
{
return $this->requireSsl;
}
/**
* @param string
*/
public function setServerCaMode($serverCaMode)
{
$this->serverCaMode = $serverCaMode;
}
/**
* @return string
*/
public function getServerCaMode()
{
return $this->serverCaMode;
}
/**
* @param string
*/
public function setServerCaPool($serverCaPool)
{
$this->serverCaPool = $serverCaPool;
}
/**
* @return string
*/
public function getServerCaPool()
{
return $this->serverCaPool;
}
/**
* @param string
*/
public function setSslMode($sslMode)
{
$this->sslMode = $sslMode;
}
/**
* @return string
*/
public function getSslMode()
{
return $this->sslMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IpConfiguration::class, 'Google_Service_SQLAdmin_IpConfiguration');
@@ -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\SQLAdmin;
class IpMapping extends \Google\Model
{
/**
* @var string
*/
public $ipAddress;
/**
* @var string
*/
public $timeToRetire;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string
*/
public function setTimeToRetire($timeToRetire)
{
$this->timeToRetire = $timeToRetire;
}
/**
* @return string
*/
public function getTimeToRetire()
{
return $this->timeToRetire;
}
/**
* @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(IpMapping::class, 'Google_Service_SQLAdmin_IpMapping');
@@ -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\SQLAdmin;
class LocationPreference extends \Google\Model
{
/**
* @var string
*/
public $followGaeApplication;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $secondaryZone;
/**
* @var string
*/
public $zone;
/**
* @param string
*/
public function setFollowGaeApplication($followGaeApplication)
{
$this->followGaeApplication = $followGaeApplication;
}
/**
* @return string
*/
public function getFollowGaeApplication()
{
return $this->followGaeApplication;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setSecondaryZone($secondaryZone)
{
$this->secondaryZone = $secondaryZone;
}
/**
* @return string
*/
public function getSecondaryZone()
{
return $this->secondaryZone;
}
/**
* @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(LocationPreference::class, 'Google_Service_SQLAdmin_LocationPreference');
@@ -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\SQLAdmin;
class MaintenanceWindow extends \Google\Model
{
/**
* @var int
*/
public $day;
/**
* @var int
*/
public $hour;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $updateTrack;
/**
* @param int
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setHour($hour)
{
$this->hour = $hour;
}
/**
* @return int
*/
public function getHour()
{
return $this->hour;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setUpdateTrack($updateTrack)
{
$this->updateTrack = $updateTrack;
}
/**
* @return string
*/
public function getUpdateTrack()
{
return $this->updateTrack;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenanceWindow::class, 'Google_Service_SQLAdmin_MaintenanceWindow');
@@ -0,0 +1,224 @@
<?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\SQLAdmin;
class MySqlReplicaConfiguration extends \Google\Model
{
/**
* @var string
*/
public $caCertificate;
/**
* @var string
*/
public $clientCertificate;
/**
* @var string
*/
public $clientKey;
/**
* @var int
*/
public $connectRetryInterval;
/**
* @var string
*/
public $dumpFilePath;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $masterHeartbeatPeriod;
/**
* @var string
*/
public $password;
/**
* @var string
*/
public $sslCipher;
/**
* @var string
*/
public $username;
/**
* @var bool
*/
public $verifyServerCertificate;
/**
* @param string
*/
public function setCaCertificate($caCertificate)
{
$this->caCertificate = $caCertificate;
}
/**
* @return string
*/
public function getCaCertificate()
{
return $this->caCertificate;
}
/**
* @param string
*/
public function setClientCertificate($clientCertificate)
{
$this->clientCertificate = $clientCertificate;
}
/**
* @return string
*/
public function getClientCertificate()
{
return $this->clientCertificate;
}
/**
* @param string
*/
public function setClientKey($clientKey)
{
$this->clientKey = $clientKey;
}
/**
* @return string
*/
public function getClientKey()
{
return $this->clientKey;
}
/**
* @param int
*/
public function setConnectRetryInterval($connectRetryInterval)
{
$this->connectRetryInterval = $connectRetryInterval;
}
/**
* @return int
*/
public function getConnectRetryInterval()
{
return $this->connectRetryInterval;
}
/**
* @param string
*/
public function setDumpFilePath($dumpFilePath)
{
$this->dumpFilePath = $dumpFilePath;
}
/**
* @return string
*/
public function getDumpFilePath()
{
return $this->dumpFilePath;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setMasterHeartbeatPeriod($masterHeartbeatPeriod)
{
$this->masterHeartbeatPeriod = $masterHeartbeatPeriod;
}
/**
* @return string
*/
public function getMasterHeartbeatPeriod()
{
return $this->masterHeartbeatPeriod;
}
/**
* @param string
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param string
*/
public function setSslCipher($sslCipher)
{
$this->sslCipher = $sslCipher;
}
/**
* @return string
*/
public function getSslCipher()
{
return $this->sslCipher;
}
/**
* @param string
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* @param bool
*/
public function setVerifyServerCertificate($verifyServerCertificate)
{
$this->verifyServerCertificate = $verifyServerCertificate;
}
/**
* @return bool
*/
public function getVerifyServerCertificate()
{
return $this->verifyServerCertificate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MySqlReplicaConfiguration::class, 'Google_Service_SQLAdmin_MySqlReplicaConfiguration');
@@ -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\SQLAdmin;
class MySqlSyncConfig extends \Google\Collection
{
protected $collection_key = 'initialSyncFlags';
protected $initialSyncFlagsType = SyncFlags::class;
protected $initialSyncFlagsDataType = 'array';
/**
* @param SyncFlags[]
*/
public function setInitialSyncFlags($initialSyncFlags)
{
$this->initialSyncFlags = $initialSyncFlags;
}
/**
* @return SyncFlags[]
*/
public function getInitialSyncFlags()
{
return $this->initialSyncFlags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MySqlSyncConfig::class, 'Google_Service_SQLAdmin_MySqlSyncConfig');
@@ -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\SQLAdmin;
class OnPremisesConfiguration extends \Google\Collection
{
protected $collection_key = 'selectedObjects';
/**
* @var string
*/
public $caCertificate;
/**
* @var string
*/
public $clientCertificate;
/**
* @var string
*/
public $clientKey;
/**
* @var string
*/
public $dumpFilePath;
/**
* @var string
*/
public $hostPort;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $password;
protected $selectedObjectsType = SelectedObjects::class;
protected $selectedObjectsDataType = 'array';
protected $sourceInstanceType = InstanceReference::class;
protected $sourceInstanceDataType = '';
/**
* @var string
*/
public $sslOption;
/**
* @var string
*/
public $username;
/**
* @param string
*/
public function setCaCertificate($caCertificate)
{
$this->caCertificate = $caCertificate;
}
/**
* @return string
*/
public function getCaCertificate()
{
return $this->caCertificate;
}
/**
* @param string
*/
public function setClientCertificate($clientCertificate)
{
$this->clientCertificate = $clientCertificate;
}
/**
* @return string
*/
public function getClientCertificate()
{
return $this->clientCertificate;
}
/**
* @param string
*/
public function setClientKey($clientKey)
{
$this->clientKey = $clientKey;
}
/**
* @return string
*/
public function getClientKey()
{
return $this->clientKey;
}
/**
* @param string
*/
public function setDumpFilePath($dumpFilePath)
{
$this->dumpFilePath = $dumpFilePath;
}
/**
* @return string
*/
public function getDumpFilePath()
{
return $this->dumpFilePath;
}
/**
* @param string
*/
public function setHostPort($hostPort)
{
$this->hostPort = $hostPort;
}
/**
* @return string
*/
public function getHostPort()
{
return $this->hostPort;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param SelectedObjects[]
*/
public function setSelectedObjects($selectedObjects)
{
$this->selectedObjects = $selectedObjects;
}
/**
* @return SelectedObjects[]
*/
public function getSelectedObjects()
{
return $this->selectedObjects;
}
/**
* @param InstanceReference
*/
public function setSourceInstance(InstanceReference $sourceInstance)
{
$this->sourceInstance = $sourceInstance;
}
/**
* @return InstanceReference
*/
public function getSourceInstance()
{
return $this->sourceInstance;
}
/**
* @param string
*/
public function setSslOption($sslOption)
{
$this->sslOption = $sslOption;
}
/**
* @return string
*/
public function getSslOption()
{
return $this->sslOption;
}
/**
* @param string
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OnPremisesConfiguration::class, 'Google_Service_SQLAdmin_OnPremisesConfiguration');
@@ -0,0 +1,354 @@
<?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\SQLAdmin;
class Operation extends \Google\Model
{
protected $acquireSsrsLeaseContextType = AcquireSsrsLeaseContext::class;
protected $acquireSsrsLeaseContextDataType = '';
protected $apiWarningType = ApiWarning::class;
protected $apiWarningDataType = '';
protected $backupContextType = BackupContext::class;
protected $backupContextDataType = '';
/**
* @var string
*/
public $endTime;
protected $errorType = OperationErrors::class;
protected $errorDataType = '';
protected $exportContextType = ExportContext::class;
protected $exportContextDataType = '';
protected $importContextType = ImportContext::class;
protected $importContextDataType = '';
/**
* @var string
*/
public $insertTime;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $operationType;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $status;
protected $subOperationTypeType = SqlSubOperationType::class;
protected $subOperationTypeDataType = '';
/**
* @var string
*/
public $targetId;
/**
* @var string
*/
public $targetLink;
/**
* @var string
*/
public $targetProject;
/**
* @var string
*/
public $user;
/**
* @param AcquireSsrsLeaseContext
*/
public function setAcquireSsrsLeaseContext(AcquireSsrsLeaseContext $acquireSsrsLeaseContext)
{
$this->acquireSsrsLeaseContext = $acquireSsrsLeaseContext;
}
/**
* @return AcquireSsrsLeaseContext
*/
public function getAcquireSsrsLeaseContext()
{
return $this->acquireSsrsLeaseContext;
}
/**
* @param ApiWarning
*/
public function setApiWarning(ApiWarning $apiWarning)
{
$this->apiWarning = $apiWarning;
}
/**
* @return ApiWarning
*/
public function getApiWarning()
{
return $this->apiWarning;
}
/**
* @param BackupContext
*/
public function setBackupContext(BackupContext $backupContext)
{
$this->backupContext = $backupContext;
}
/**
* @return BackupContext
*/
public function getBackupContext()
{
return $this->backupContext;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param OperationErrors
*/
public function setError(OperationErrors $error)
{
$this->error = $error;
}
/**
* @return OperationErrors
*/
public function getError()
{
return $this->error;
}
/**
* @param ExportContext
*/
public function setExportContext(ExportContext $exportContext)
{
$this->exportContext = $exportContext;
}
/**
* @return ExportContext
*/
public function getExportContext()
{
return $this->exportContext;
}
/**
* @param ImportContext
*/
public function setImportContext(ImportContext $importContext)
{
$this->importContext = $importContext;
}
/**
* @return ImportContext
*/
public function getImportContext()
{
return $this->importContext;
}
/**
* @param string
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return string
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @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;
}
/**
* @param SqlSubOperationType
*/
public function setSubOperationType(SqlSubOperationType $subOperationType)
{
$this->subOperationType = $subOperationType;
}
/**
* @return SqlSubOperationType
*/
public function getSubOperationType()
{
return $this->subOperationType;
}
/**
* @param string
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* @param string
*/
public function setTargetLink($targetLink)
{
$this->targetLink = $targetLink;
}
/**
* @return string
*/
public function getTargetLink()
{
return $this->targetLink;
}
/**
* @param string
*/
public function setTargetProject($targetProject)
{
$this->targetProject = $targetProject;
}
/**
* @return string
*/
public function getTargetProject()
{
return $this->targetProject;
}
/**
* @param string
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_SQLAdmin_Operation');
@@ -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\SQLAdmin;
class OperationError extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $kind;
/**
* @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 setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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_SQLAdmin_OperationError');
@@ -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\SQLAdmin;
class OperationErrors extends \Google\Collection
{
protected $collection_key = 'errors';
protected $errorsType = OperationError::class;
protected $errorsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param OperationError[]
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return OperationError[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationErrors::class, 'Google_Service_SQLAdmin_OperationErrors');
@@ -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\SQLAdmin;
class OperationMetadata 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(OperationMetadata::class, 'Google_Service_SQLAdmin_OperationMetadata');
@@ -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\SQLAdmin;
class OperationsListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Operation::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Operation[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Operation[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(OperationsListResponse::class, 'Google_Service_SQLAdmin_OperationsListResponse');
@@ -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\SQLAdmin;
class PasswordStatus extends \Google\Model
{
/**
* @var bool
*/
public $locked;
/**
* @var string
*/
public $passwordExpirationTime;
/**
* @param bool
*/
public function setLocked($locked)
{
$this->locked = $locked;
}
/**
* @return bool
*/
public function getLocked()
{
return $this->locked;
}
/**
* @param string
*/
public function setPasswordExpirationTime($passwordExpirationTime)
{
$this->passwordExpirationTime = $passwordExpirationTime;
}
/**
* @return string
*/
public function getPasswordExpirationTime()
{
return $this->passwordExpirationTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PasswordStatus::class, 'Google_Service_SQLAdmin_PasswordStatus');
@@ -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\SQLAdmin;
class PasswordValidationPolicy extends \Google\Model
{
/**
* @var string
*/
public $complexity;
/**
* @var bool
*/
public $disallowCompromisedCredentials;
/**
* @var bool
*/
public $disallowUsernameSubstring;
/**
* @var bool
*/
public $enablePasswordPolicy;
/**
* @var int
*/
public $minLength;
/**
* @var string
*/
public $passwordChangeInterval;
/**
* @var int
*/
public $reuseInterval;
/**
* @param string
*/
public function setComplexity($complexity)
{
$this->complexity = $complexity;
}
/**
* @return string
*/
public function getComplexity()
{
return $this->complexity;
}
/**
* @param bool
*/
public function setDisallowCompromisedCredentials($disallowCompromisedCredentials)
{
$this->disallowCompromisedCredentials = $disallowCompromisedCredentials;
}
/**
* @return bool
*/
public function getDisallowCompromisedCredentials()
{
return $this->disallowCompromisedCredentials;
}
/**
* @param bool
*/
public function setDisallowUsernameSubstring($disallowUsernameSubstring)
{
$this->disallowUsernameSubstring = $disallowUsernameSubstring;
}
/**
* @return bool
*/
public function getDisallowUsernameSubstring()
{
return $this->disallowUsernameSubstring;
}
/**
* @param bool
*/
public function setEnablePasswordPolicy($enablePasswordPolicy)
{
$this->enablePasswordPolicy = $enablePasswordPolicy;
}
/**
* @return bool
*/
public function getEnablePasswordPolicy()
{
return $this->enablePasswordPolicy;
}
/**
* @param int
*/
public function setMinLength($minLength)
{
$this->minLength = $minLength;
}
/**
* @return int
*/
public function getMinLength()
{
return $this->minLength;
}
/**
* @param string
*/
public function setPasswordChangeInterval($passwordChangeInterval)
{
$this->passwordChangeInterval = $passwordChangeInterval;
}
/**
* @return string
*/
public function getPasswordChangeInterval()
{
return $this->passwordChangeInterval;
}
/**
* @param int
*/
public function setReuseInterval($reuseInterval)
{
$this->reuseInterval = $reuseInterval;
}
/**
* @return int
*/
public function getReuseInterval()
{
return $this->reuseInterval;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PasswordValidationPolicy::class, 'Google_Service_SQLAdmin_PasswordValidationPolicy');
@@ -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\SQLAdmin;
class PerformDiskShrinkContext extends \Google\Model
{
/**
* @var string
*/
public $targetSizeGb;
/**
* @param string
*/
public function setTargetSizeGb($targetSizeGb)
{
$this->targetSizeGb = $targetSizeGb;
}
/**
* @return string
*/
public function getTargetSizeGb()
{
return $this->targetSizeGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PerformDiskShrinkContext::class, 'Google_Service_SQLAdmin_PerformDiskShrinkContext');
@@ -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\SQLAdmin;
class PscAutoConnectionConfig extends \Google\Model
{
/**
* @var string
*/
public $consumerNetwork;
/**
* @var string
*/
public $consumerNetworkStatus;
/**
* @var string
*/
public $consumerProject;
/**
* @var string
*/
public $ipAddress;
/**
* @var string
*/
public $status;
/**
* @param string
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* @param string
*/
public function setConsumerNetworkStatus($consumerNetworkStatus)
{
$this->consumerNetworkStatus = $consumerNetworkStatus;
}
/**
* @return string
*/
public function getConsumerNetworkStatus()
{
return $this->consumerNetworkStatus;
}
/**
* @param string
*/
public function setConsumerProject($consumerProject)
{
$this->consumerProject = $consumerProject;
}
/**
* @return string
*/
public function getConsumerProject()
{
return $this->consumerProject;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @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(PscAutoConnectionConfig::class, 'Google_Service_SQLAdmin_PscAutoConnectionConfig');
@@ -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\SQLAdmin;
class PscConfig extends \Google\Collection
{
protected $collection_key = 'pscAutoConnections';
/**
* @var string[]
*/
public $allowedConsumerProjects;
protected $pscAutoConnectionsType = PscAutoConnectionConfig::class;
protected $pscAutoConnectionsDataType = 'array';
/**
* @var bool
*/
public $pscEnabled;
/**
* @param string[]
*/
public function setAllowedConsumerProjects($allowedConsumerProjects)
{
$this->allowedConsumerProjects = $allowedConsumerProjects;
}
/**
* @return string[]
*/
public function getAllowedConsumerProjects()
{
return $this->allowedConsumerProjects;
}
/**
* @param PscAutoConnectionConfig[]
*/
public function setPscAutoConnections($pscAutoConnections)
{
$this->pscAutoConnections = $pscAutoConnections;
}
/**
* @return PscAutoConnectionConfig[]
*/
public function getPscAutoConnections()
{
return $this->pscAutoConnections;
}
/**
* @param bool
*/
public function setPscEnabled($pscEnabled)
{
$this->pscEnabled = $pscEnabled;
}
/**
* @return bool
*/
public function getPscEnabled()
{
return $this->pscEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscConfig::class, 'Google_Service_SQLAdmin_PscConfig');
@@ -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\SQLAdmin;
class ReplicaConfiguration extends \Google\Model
{
/**
* @var bool
*/
public $cascadableReplica;
/**
* @var bool
*/
public $failoverTarget;
/**
* @var string
*/
public $kind;
protected $mysqlReplicaConfigurationType = MySqlReplicaConfiguration::class;
protected $mysqlReplicaConfigurationDataType = '';
/**
* @param bool
*/
public function setCascadableReplica($cascadableReplica)
{
$this->cascadableReplica = $cascadableReplica;
}
/**
* @return bool
*/
public function getCascadableReplica()
{
return $this->cascadableReplica;
}
/**
* @param bool
*/
public function setFailoverTarget($failoverTarget)
{
$this->failoverTarget = $failoverTarget;
}
/**
* @return bool
*/
public function getFailoverTarget()
{
return $this->failoverTarget;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param MySqlReplicaConfiguration
*/
public function setMysqlReplicaConfiguration(MySqlReplicaConfiguration $mysqlReplicaConfiguration)
{
$this->mysqlReplicaConfiguration = $mysqlReplicaConfiguration;
}
/**
* @return MySqlReplicaConfiguration
*/
public function getMysqlReplicaConfiguration()
{
return $this->mysqlReplicaConfiguration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReplicaConfiguration::class, 'Google_Service_SQLAdmin_ReplicaConfiguration');
@@ -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\SQLAdmin;
class ReplicationCluster extends \Google\Model
{
/**
* @var bool
*/
public $drReplica;
/**
* @var string
*/
public $failoverDrReplicaName;
/**
* @var string
*/
public $psaWriteEndpoint;
/**
* @param bool
*/
public function setDrReplica($drReplica)
{
$this->drReplica = $drReplica;
}
/**
* @return bool
*/
public function getDrReplica()
{
return $this->drReplica;
}
/**
* @param string
*/
public function setFailoverDrReplicaName($failoverDrReplicaName)
{
$this->failoverDrReplicaName = $failoverDrReplicaName;
}
/**
* @return string
*/
public function getFailoverDrReplicaName()
{
return $this->failoverDrReplicaName;
}
/**
* @param string
*/
public function setPsaWriteEndpoint($psaWriteEndpoint)
{
$this->psaWriteEndpoint = $psaWriteEndpoint;
}
/**
* @return string
*/
public function getPsaWriteEndpoint()
{
return $this->psaWriteEndpoint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReplicationCluster::class, 'Google_Service_SQLAdmin_ReplicationCluster');
@@ -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\SQLAdmin;
class Reschedule 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(Reschedule::class, 'Google_Service_SQLAdmin_Reschedule');
@@ -0,0 +1,113 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\BackupRun;
use Google\Service\SQLAdmin\BackupRunsListResponse;
use Google\Service\SQLAdmin\Operation;
/**
* The "backupRuns" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $backupRuns = $sqladminService->backupRuns;
* </code>
*/
class BackupRuns extends \Google\Service\Resource
{
/**
* Deletes the backup taken by a backup run. (backupRuns.delete)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param string $id The ID of the backup run to delete. To find a backup run
* ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-
* api/rest/v1/backupRuns/list) method.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($project, $instance, $id, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'id' => $id];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves a resource containing information about a backup run.
* (backupRuns.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param string $id The ID of this backup run.
* @param array $optParams Optional parameters.
* @return BackupRun
* @throws \Google\Service\Exception
*/
public function get($project, $instance, $id, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'id' => $id];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BackupRun::class);
}
/**
* Creates a new backup run on demand. (backupRuns.insert)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param BackupRun $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function insert($project, $instance, BackupRun $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Operation::class);
}
/**
* Lists all backup runs associated with the project or a given instance and
* configuration in the reverse chronological order of the backup initiation
* time. (backupRuns.listBackupRuns)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID, or "-" for all instances. This
* does not include the project ID.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of backup runs per response.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @return BackupRunsListResponse
* @throws \Google\Service\Exception
*/
public function listBackupRuns($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], BackupRunsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupRuns::class, 'Google_Service_SQLAdmin_Resource_BackupRuns');
@@ -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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\ConnectSettings;
use Google\Service\SQLAdmin\GenerateEphemeralCertRequest;
use Google\Service\SQLAdmin\GenerateEphemeralCertResponse;
/**
* The "connect" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $connect = $sqladminService->connect;
* </code>
*/
class Connect extends \Google\Service\Resource
{
/**
* Generates a short-lived X509 certificate containing the provided public key
* and signed by a private key specific to the target instance. Users may use
* the certificate to authenticate as themselves when connecting to the
* database. (connect.generateEphemeralCert)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param GenerateEphemeralCertRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateEphemeralCertResponse
* @throws \Google\Service\Exception
*/
public function generateEphemeralCert($project, $instance, GenerateEphemeralCertRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateEphemeralCert', [$params], GenerateEphemeralCertResponse::class);
}
/**
* Retrieves connect settings about a Cloud SQL instance. (connect.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
*
* @opt_param string readTime Optional. Optional snapshot read timestamp to
* trade freshness for performance.
* @return ConnectSettings
* @throws \Google\Service\Exception
*/
public function get($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ConnectSettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Connect::class, 'Google_Service_SQLAdmin_Resource_Connect');
@@ -0,0 +1,146 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\Database;
use Google\Service\SQLAdmin\DatabasesListResponse;
use Google\Service\SQLAdmin\Operation;
/**
* The "databases" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $databases = $sqladminService->databases;
* </code>
*/
class Databases extends \Google\Service\Resource
{
/**
* Deletes a database from a Cloud SQL instance. (databases.delete)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param string $database Name of the database to be deleted in the instance.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($project, $instance, $database, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'database' => $database];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves a resource containing information about a database inside a Cloud
* SQL instance. (databases.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param string $database Name of the database in the instance.
* @param array $optParams Optional parameters.
* @return Database
* @throws \Google\Service\Exception
*/
public function get($project, $instance, $database, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'database' => $database];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Database::class);
}
/**
* Inserts a resource containing information about a database inside a Cloud SQL
* instance. **Note:** You can't modify the default character set and collation.
* (databases.insert)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param Database $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function insert($project, $instance, Database $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Operation::class);
}
/**
* Lists databases in the specified Cloud SQL instance.
* (databases.listDatabases)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return DatabasesListResponse
* @throws \Google\Service\Exception
*/
public function listDatabases($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], DatabasesListResponse::class);
}
/**
* Partially updates a resource containing information about a database inside a
* Cloud SQL instance. This method supports patch semantics. (databases.patch)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param string $database Name of the database to be updated in the instance.
* @param Database $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($project, $instance, $database, Database $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Updates a resource containing information about a database inside a Cloud SQL
* instance. (databases.update)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param string $database Name of the database to be updated in the instance.
* @param Database $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($project, $instance, $database, Database $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Databases::class, 'Google_Service_SQLAdmin_Resource_Databases');
@@ -0,0 +1,52 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\FlagsListResponse;
/**
* The "flags" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $flags = $sqladminService->flags;
* </code>
*/
class Flags extends \Google\Service\Resource
{
/**
* Lists all available database flags for Cloud SQL instances. (flags.listFlags)
*
* @param array $optParams Optional parameters.
*
* @opt_param string databaseVersion Database type and version you want to
* retrieve flags for. By default, this method returns flags for all database
* types and versions.
* @return FlagsListResponse
* @throws \Google\Service\Exception
*/
public function listFlags($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], FlagsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Flags::class, 'Google_Service_SQLAdmin_Resource_Flags');
@@ -0,0 +1,613 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\DatabaseInstance;
use Google\Service\SQLAdmin\InstancesAcquireSsrsLeaseRequest;
use Google\Service\SQLAdmin\InstancesCloneRequest;
use Google\Service\SQLAdmin\InstancesDemoteMasterRequest;
use Google\Service\SQLAdmin\InstancesDemoteRequest;
use Google\Service\SQLAdmin\InstancesExportRequest;
use Google\Service\SQLAdmin\InstancesFailoverRequest;
use Google\Service\SQLAdmin\InstancesImportRequest;
use Google\Service\SQLAdmin\InstancesListResponse;
use Google\Service\SQLAdmin\InstancesListServerCasResponse;
use Google\Service\SQLAdmin\InstancesListServerCertificatesResponse;
use Google\Service\SQLAdmin\InstancesReencryptRequest;
use Google\Service\SQLAdmin\InstancesRestoreBackupRequest;
use Google\Service\SQLAdmin\InstancesRotateServerCaRequest;
use Google\Service\SQLAdmin\InstancesRotateServerCertificateRequest;
use Google\Service\SQLAdmin\InstancesTruncateLogRequest;
use Google\Service\SQLAdmin\Operation;
use Google\Service\SQLAdmin\SqlInstancesAcquireSsrsLeaseResponse;
use Google\Service\SQLAdmin\SqlInstancesReleaseSsrsLeaseResponse;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $instances = $sqladminService->instances;
* </code>
*/
class Instances extends \Google\Service\Resource
{
/**
* Lists all versions of server certificates and certificate authorities (CAs)
* for the specified instance. There can be up to three sets of certs listed:
* the certificate that is currently in use, a future that has been added but
* not yet used to sign a certificate, and a certificate that has been rotated
* out. For instances not using Certificate Authority Service (CAS) server CA,
* use ListServerCas instead. (instances.ListServerCertificates)
*
* @param string $project Required. Project ID of the project that contains the
* instance.
* @param string $instance Required. Cloud SQL instance ID. This does not
* include the project ID.
* @param array $optParams Optional parameters.
* @return InstancesListServerCertificatesResponse
* @throws \Google\Service\Exception
*/
public function ListServerCertificates($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('ListServerCertificates', [$params], InstancesListServerCertificatesResponse::class);
}
/**
* Rotates the server certificate version to one previously added with the
* addServerCertificate method. For instances not using Certificate Authority
* Service (CAS) server CA, use RotateServerCa instead.
* (instances.RotateServerCertificate)
*
* @param string $project Required. Project ID of the project that contains the
* instance.
* @param string $instance Required. Cloud SQL instance ID. This does not
* include the project ID.
* @param InstancesRotateServerCertificateRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function RotateServerCertificate($project, $instance, InstancesRotateServerCertificateRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('RotateServerCertificate', [$params], Operation::class);
}
/**
* Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
* (instances.acquireSsrsLease)
*
* @param string $project Required. Project ID of the project that contains the
* instance (Example: project-id).
* @param string $instance Required. Cloud SQL instance ID. This doesn't include
* the project ID. It's composed of lowercase letters, numbers, and hyphens, and
* it must start with a letter. The total length must be 98 characters or less
* (Example: instance-id).
* @param InstancesAcquireSsrsLeaseRequest $postBody
* @param array $optParams Optional parameters.
* @return SqlInstancesAcquireSsrsLeaseResponse
* @throws \Google\Service\Exception
*/
public function acquireSsrsLease($project, $instance, InstancesAcquireSsrsLeaseRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('acquireSsrsLease', [$params], SqlInstancesAcquireSsrsLeaseResponse::class);
}
/**
* Adds a new trusted Certificate Authority (CA) version for the specified
* instance. Required to prepare for a certificate rotation. If a CA version was
* previously added but never used in a certificate rotation, this operation
* replaces that version. There cannot be more than one CA version waiting to be
* rotated in. For instances that have enabled Certificate Authority Service
* (CAS) based server CA, use AddServerCertificate to add a new server
* certificate. (instances.addServerCa)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addServerCa($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('addServerCa', [$params], Operation::class);
}
/**
* Add a new trusted server certificate version for the specified instance using
* Certificate Authority Service (CAS) server CA. Required to prepare for a
* certificate rotation. If a server certificate version was previously added
* but never used in a certificate rotation, this operation replaces that
* version. There cannot be more than one certificate version waiting to be
* rotated in. For instances not using CAS server CA, use AddServerCa instead.
* (instances.addServerCertificate)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addServerCertificate($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('addServerCertificate', [$params], Operation::class);
}
/**
* Creates a Cloud SQL instance as a clone of the source instance. Using this
* operation might cause your instance to restart. (instances.cloneInstances)
*
* @param string $project Project ID of the source as well as the clone Cloud
* SQL instance.
* @param string $instance The ID of the Cloud SQL instance to be cloned
* (source). This does not include the project ID.
* @param InstancesCloneRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function cloneInstances($project, $instance, InstancesCloneRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('clone', [$params], Operation::class);
}
/**
* Deletes a Cloud SQL instance. (instances.delete)
*
* @param string $project Project ID of the project that contains the instance
* to be deleted.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Demotes an existing standalone instance to be a Cloud SQL read replica for an
* external database server. (instances.demote)
*
* @param string $project Required. ID of the project that contains the
* instance.
* @param string $instance Required. Cloud SQL instance name.
* @param InstancesDemoteRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function demote($project, $instance, InstancesDemoteRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('demote', [$params], Operation::class);
}
/**
* Demotes the stand-alone instance to be a Cloud SQL read replica for an
* external database server. (instances.demoteMaster)
*
* @param string $project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance name.
* @param InstancesDemoteMasterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function demoteMaster($project, $instance, InstancesDemoteMasterRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('demoteMaster', [$params], Operation::class);
}
/**
* Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL
* dump or CSV file. (instances.export)
*
* @param string $project Project ID of the project that contains the instance
* to be exported.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param InstancesExportRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function export($project, $instance, InstancesExportRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], Operation::class);
}
/**
* Initiates a manual failover of a high availability (HA) primary instance to a
* standby instance, which becomes the primary instance. Users are then rerouted
* to the new primary. For more information, see the [Overview of high
* availability](https://cloud.google.com/sql/docs/mysql/high-availability) page
* in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes
* the instance to failover to its failover replica instance.
* (instances.failover)
*
* @param string $project ID of the project that contains the read replica.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param InstancesFailoverRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function failover($project, $instance, InstancesFailoverRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('failover', [$params], Operation::class);
}
/**
* Retrieves a resource containing information about a Cloud SQL instance.
* (instances.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return DatabaseInstance
* @throws \Google\Service\Exception
*/
public function get($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DatabaseInstance::class);
}
/**
* Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud
* Storage. (instances.import)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param InstancesImportRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function import($project, $instance, InstancesImportRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
/**
* Creates a new Cloud SQL instance. (instances.insert)
*
* @param string $project Project ID of the project to which the newly created
* Cloud SQL instances should belong.
* @param DatabaseInstance $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function insert($project, DatabaseInstance $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Operation::class);
}
/**
* Lists instances under a given project. (instances.listInstances)
*
* @param string $project Project ID of the project for which to list Cloud SQL
* instances.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters resources listed in
* the response. The expression is in the form of field:value. For example,
* 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per
* their JSON representation, such as 'settings.userLabels.auto_start:true'.
* Multiple filter queries are space-separated. For example. 'state:RUNNABLE
* instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND
* expression. However, you can include AND and OR expressions explicitly.
* @opt_param string maxResults The maximum number of instances to return. The
* service may return fewer than this value. If unspecified, at most 500
* instances are returned. The maximum value is 1000; values above 1000 are
* coerced to 1000.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @return InstancesListResponse
* @throws \Google\Service\Exception
*/
public function listInstances($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], InstancesListResponse::class);
}
/**
* Lists all of the trusted Certificate Authorities (CAs) for the specified
* instance. There can be up to three CAs listed: the CA that was used to sign
* the certificate that is currently in use, a CA that has been added but not
* yet used to sign a certificate, and a CA used to sign a certificate that has
* previously rotated out. (instances.listServerCas)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return InstancesListServerCasResponse
* @throws \Google\Service\Exception
*/
public function listServerCas($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('listServerCas', [$params], InstancesListServerCasResponse::class);
}
/**
* Partially updates settings of a Cloud SQL instance by merging the request
* with the current configuration. This method supports patch semantics.
* (instances.patch)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param DatabaseInstance $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($project, $instance, DatabaseInstance $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Promotes the read replica instance to be an independent Cloud SQL primary
* instance. Using this operation might cause your instance to restart.
* (instances.promoteReplica)
*
* @param string $project ID of the project that contains the read replica.
* @param string $instance Cloud SQL read replica instance name.
* @param array $optParams Optional parameters.
*
* @opt_param bool failover Set to true to invoke a replica failover to the DR
* replica. As part of replica failover, the promote operation attempts to add
* the original primary instance as a replica of the promoted DR replica when
* the original primary instance comes back online. If set to false or not
* specified, then the original primary instance becomes an independent Cloud
* SQL primary instance.
* @return Operation
* @throws \Google\Service\Exception
*/
public function promoteReplica($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('promoteReplica', [$params], Operation::class);
}
/**
* Reencrypt CMEK instance with latest key version. (instances.reencrypt)
*
* @param string $project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param InstancesReencryptRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function reencrypt($project, $instance, InstancesReencryptRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reencrypt', [$params], Operation::class);
}
/**
* Release a lease for the setup of SQL Server Reporting Services (SSRS).
* (instances.releaseSsrsLease)
*
* @param string $project Required. The project ID that contains the instance.
* @param string $instance Required. The Cloud SQL instance ID. This doesn't
* include the project ID. The instance ID contains lowercase letters, numbers,
* and hyphens, and it must start with a letter. This ID can have a maximum
* length of 98 characters.
* @param array $optParams Optional parameters.
* @return SqlInstancesReleaseSsrsLeaseResponse
* @throws \Google\Service\Exception
*/
public function releaseSsrsLease($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('releaseSsrsLease', [$params], SqlInstancesReleaseSsrsLeaseResponse::class);
}
/**
* Deletes all client certificates and generates a new server SSL certificate
* for the instance. (instances.resetSslConfig)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function resetSslConfig($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('resetSslConfig', [$params], Operation::class);
}
/**
* Restarts a Cloud SQL instance. (instances.restart)
*
* @param string $project Project ID of the project that contains the instance
* to be restarted.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restart($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('restart', [$params], Operation::class);
}
/**
* Restores a backup of a Cloud SQL instance. Using this operation might cause
* your instance to restart. (instances.restoreBackup)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param InstancesRestoreBackupRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restoreBackup($project, $instance, InstancesRestoreBackupRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restoreBackup', [$params], Operation::class);
}
/**
* Rotates the server certificate to one signed by the Certificate Authority
* (CA) version previously added with the addServerCA method. For instances that
* have enabled Certificate Authority Service (CAS) based server CA, use
* RotateServerCertificate to rotate the server certificate.
* (instances.rotateServerCa)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param InstancesRotateServerCaRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function rotateServerCa($project, $instance, InstancesRotateServerCaRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rotateServerCa', [$params], Operation::class);
}
/**
* Starts the replication in the read replica instance. (instances.startReplica)
*
* @param string $project ID of the project that contains the read replica.
* @param string $instance Cloud SQL read replica instance name.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function startReplica($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('startReplica', [$params], Operation::class);
}
/**
* Stops the replication in the read replica instance. (instances.stopReplica)
*
* @param string $project ID of the project that contains the read replica.
* @param string $instance Cloud SQL read replica instance name.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function stopReplica($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('stopReplica', [$params], Operation::class);
}
/**
* Switches over from the primary instance to the DR replica instance.
* (instances.switchover)
*
* @param string $project ID of the project that contains the replica.
* @param string $instance Cloud SQL read replica instance name.
* @param array $optParams Optional parameters.
*
* @opt_param string dbTimeout Optional. (MySQL and PostgreSQL only) Cloud SQL
* instance operations timeout, which is a sum of all database operations.
* Default value is 10 minutes and can be modified to a maximum value of 24
* hours.
* @return Operation
* @throws \Google\Service\Exception
*/
public function switchover($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('switchover', [$params], Operation::class);
}
/**
* Truncate MySQL general and slow query log tables MySQL only.
* (instances.truncateLog)
*
* @param string $project Project ID of the Cloud SQL project.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param InstancesTruncateLogRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function truncateLog($project, $instance, InstancesTruncateLogRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('truncateLog', [$params], Operation::class);
}
/**
* Updates settings of a Cloud SQL instance. Using this operation might cause
* your instance to restart. (instances.update)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param DatabaseInstance $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($project, $instance, DatabaseInstance $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instances::class, 'Google_Service_SQLAdmin_Resource_Instances');
@@ -0,0 +1,91 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\Operation;
use Google\Service\SQLAdmin\OperationsListResponse;
use Google\Service\SQLAdmin\SqladminEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $operations = $sqladminService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Cancels an instance operation that has been performed on an instance.
* (operations.cancel)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $operation Instance operation ID.
* @param array $optParams Optional parameters.
* @return SqladminEmpty
* @throws \Google\Service\Exception
*/
public function cancel($project, $operation, $optParams = [])
{
$params = ['project' => $project, 'operation' => $operation];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], SqladminEmpty::class);
}
/**
* Retrieves an instance operation that has been performed on an instance.
* (operations.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $operation Instance operation ID.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($project, $operation, $optParams = [])
{
$params = ['project' => $project, 'operation' => $operation];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists all instance operations that have been performed on the given Cloud SQL
* instance in the reverse chronological order of the start time.
* (operations.listOperations)
*
* @param string $project Project ID of the project that contains the instance.
* @param array $optParams Optional parameters.
*
* @opt_param string instance Cloud SQL instance ID. This does not include the
* project ID.
* @opt_param string maxResults Maximum number of operations per response.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @return OperationsListResponse
* @throws \Google\Service\Exception
*/
public function listOperations($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], OperationsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_SQLAdmin_Resource_Operations');
@@ -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\SQLAdmin\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $projects = $sqladminService->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_SQLAdmin_Resource_Projects');
@@ -0,0 +1,163 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\Operation;
use Google\Service\SQLAdmin\PerformDiskShrinkContext;
use Google\Service\SQLAdmin\SqlInstancesGetDiskShrinkConfigResponse;
use Google\Service\SQLAdmin\SqlInstancesGetLatestRecoveryTimeResponse;
use Google\Service\SQLAdmin\SqlInstancesRescheduleMaintenanceRequestBody;
use Google\Service\SQLAdmin\SqlInstancesResetReplicaSizeRequest;
use Google\Service\SQLAdmin\SqlInstancesStartExternalSyncRequest;
use Google\Service\SQLAdmin\SqlInstancesVerifyExternalSyncSettingsRequest;
use Google\Service\SQLAdmin\SqlInstancesVerifyExternalSyncSettingsResponse;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $instances = $sqladminService->projects_instances;
* </code>
*/
class ProjectsInstances extends \Google\Service\Resource
{
/**
* Get Disk Shrink Config for a given instance. (instances.getDiskShrinkConfig)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return SqlInstancesGetDiskShrinkConfigResponse
* @throws \Google\Service\Exception
*/
public function getDiskShrinkConfig($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('getDiskShrinkConfig', [$params], SqlInstancesGetDiskShrinkConfigResponse::class);
}
/**
* Get Latest Recovery Time for a given instance.
* (instances.getLatestRecoveryTime)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return SqlInstancesGetLatestRecoveryTimeResponse
* @throws \Google\Service\Exception
*/
public function getLatestRecoveryTime($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('getLatestRecoveryTime', [$params], SqlInstancesGetLatestRecoveryTimeResponse::class);
}
/**
* Perform Disk Shrink on primary instance. (instances.performDiskShrink)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param PerformDiskShrinkContext $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function performDiskShrink($project, $instance, PerformDiskShrinkContext $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('performDiskShrink', [$params], Operation::class);
}
/**
* Reschedules the maintenance on the given instance.
* (instances.rescheduleMaintenance)
*
* @param string $project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param SqlInstancesRescheduleMaintenanceRequestBody $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function rescheduleMaintenance($project, $instance, SqlInstancesRescheduleMaintenanceRequestBody $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rescheduleMaintenance', [$params], Operation::class);
}
/**
* Reset Replica Size to primary instance disk size.
* (instances.resetReplicaSize)
*
* @param string $project ID of the project that contains the read replica.
* @param string $instance Cloud SQL read replica instance name.
* @param SqlInstancesResetReplicaSizeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function resetReplicaSize($project, $instance, SqlInstancesResetReplicaSizeRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resetReplicaSize', [$params], Operation::class);
}
/**
* Start External primary instance migration. (instances.startExternalSync)
*
* @param string $project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param SqlInstancesStartExternalSyncRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function startExternalSync($project, $instance, SqlInstancesStartExternalSyncRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('startExternalSync', [$params], Operation::class);
}
/**
* Verify External primary instance external sync settings.
* (instances.verifyExternalSyncSettings)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param SqlInstancesVerifyExternalSyncSettingsRequest $postBody
* @param array $optParams Optional parameters.
* @return SqlInstancesVerifyExternalSyncSettingsResponse
* @throws \Google\Service\Exception
*/
public function verifyExternalSyncSettings($project, $instance, SqlInstancesVerifyExternalSyncSettingsRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('verifyExternalSyncSettings', [$params], SqlInstancesVerifyExternalSyncSettingsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstances::class, 'Google_Service_SQLAdmin_Resource_ProjectsInstances');
@@ -0,0 +1,55 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\SslCert;
use Google\Service\SQLAdmin\SslCertsCreateEphemeralRequest;
/**
* The "createEphemeral" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $createEphemeral = $sqladminService->createEphemeral;
* </code>
*/
class ProjectsInstancesCreateEphemeral extends \Google\Service\Resource
{
/**
* Generates a short-lived X509 certificate containing the provided public key
* and signed by a private key specific to the target instance. Users may use
* the certificate to authenticate as themselves when connecting to the
* database. (createEphemeral.create)
*
* @param string $project Project ID of the Cloud SQL project.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param SslCertsCreateEphemeralRequest $postBody
* @param array $optParams Optional parameters.
* @return SslCert
*/
public function create($project, $instance, SslCertsCreateEphemeralRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], SslCert::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesCreateEphemeral::class, 'Google_Service_SQLAdmin_Resource_ProjectsInstancesCreateEphemeral');
@@ -0,0 +1,133 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\Operation;
use Google\Service\SQLAdmin\SslCert;
use Google\Service\SQLAdmin\SslCertsCreateEphemeralRequest;
use Google\Service\SQLAdmin\SslCertsInsertRequest;
use Google\Service\SQLAdmin\SslCertsInsertResponse;
use Google\Service\SQLAdmin\SslCertsListResponse;
/**
* The "sslCerts" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $sslCerts = $sqladminService->sslCerts;
* </code>
*/
class SslCerts extends \Google\Service\Resource
{
/**
* Generates a short-lived X509 certificate containing the provided public key
* and signed by a private key specific to the target instance. Users may use
* the certificate to authenticate as themselves when connecting to the
* database. (sslCerts.createEphemeral)
*
* @param string $project Project ID of the Cloud SQL project.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param SslCertsCreateEphemeralRequest $postBody
* @param array $optParams Optional parameters.
* @return SslCert
* @throws \Google\Service\Exception
*/
public function createEphemeral($project, $instance, SslCertsCreateEphemeralRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createEphemeral', [$params], SslCert::class);
}
/**
* Deletes the SSL certificate. For First Generation instances, the certificate
* remains valid until the instance is restarted. (sslCerts.delete)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param string $sha1Fingerprint Sha1 FingerPrint.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($project, $instance, $sha1Fingerprint, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves a particular SSL certificate. Does not include the private key
* (required for usage). The private key must be saved from the response to
* initial creation. (sslCerts.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param string $sha1Fingerprint Sha1 FingerPrint.
* @param array $optParams Optional parameters.
* @return SslCert
* @throws \Google\Service\Exception
*/
public function get($project, $instance, $sha1Fingerprint, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SslCert::class);
}
/**
* Creates an SSL certificate and returns it along with the private key and
* server certificate authority. The new certificate will not be usable until
* the instance is restarted. (sslCerts.insert)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param SslCertsInsertRequest $postBody
* @param array $optParams Optional parameters.
* @return SslCertsInsertResponse
* @throws \Google\Service\Exception
*/
public function insert($project, $instance, SslCertsInsertRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], SslCertsInsertResponse::class);
}
/**
* Lists all of the current SSL certificates for the instance.
* (sslCerts.listSslCerts)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return SslCertsListResponse
* @throws \Google\Service\Exception
*/
public function listSslCerts($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SslCertsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SslCerts::class, 'Google_Service_SQLAdmin_Resource_SslCerts');
@@ -0,0 +1,51 @@
<?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\SQLAdmin\Resource;
use Google\Service\SQLAdmin\TiersListResponse;
/**
* The "tiers" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $tiers = $sqladminService->tiers;
* </code>
*/
class Tiers extends \Google\Service\Resource
{
/**
* Lists all available machine types (tiers) for Cloud SQL, for example, `db-
* custom-1-3840`. For more information, see
* https://cloud.google.com/sql/pricing. (tiers.listTiers)
*
* @param string $project Project ID of the project for which to list tiers.
* @param array $optParams Optional parameters.
* @return TiersListResponse
* @throws \Google\Service\Exception
*/
public function listTiers($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], TiersListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tiers::class, 'Google_Service_SQLAdmin_Resource_Tiers');
@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SQLAdmin\Resource;
use Google\Service\SQLAdmin\Operation;
use Google\Service\SQLAdmin\User;
use Google\Service\SQLAdmin\UsersListResponse;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $sqladminService = new Google\Service\SQLAdmin(...);
* $users = $sqladminService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
/**
* Deletes a user from a Cloud SQL instance. (users.delete)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
*
* @opt_param string host Host of the user in the instance.
* @opt_param string name Name of the user in the instance.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Retrieves a resource containing information about a user. (users.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param string $name User of the instance.
* @param array $optParams Optional parameters.
*
* @opt_param string host Host of a user of the instance.
* @return User
* @throws \Google\Service\Exception
*/
public function get($project, $instance, $name, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], User::class);
}
/**
* Creates a new user in a Cloud SQL instance. (users.insert)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param User $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function insert($project, $instance, User $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Operation::class);
}
/**
* Lists users in the specified Cloud SQL instance. (users.listUsers)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
* @return UsersListResponse
* @throws \Google\Service\Exception
*/
public function listUsers($project, $instance, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], UsersListResponse::class);
}
/**
* Updates an existing user in a Cloud SQL instance. (users.update)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
* project ID.
* @param User $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string host Optional. Host of the user in the instance.
* @opt_param string name Name of the user in the instance.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($project, $instance, User $postBody, $optParams = [])
{
$params = ['project' => $project, 'instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_SQLAdmin_Resource_Users');
@@ -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\SQLAdmin;
class RestoreBackupContext extends \Google\Model
{
/**
* @var string
*/
public $backupRunId;
/**
* @var string
*/
public $instanceId;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $project;
/**
* @param string
*/
public function setBackupRunId($backupRunId)
{
$this->backupRunId = $backupRunId;
}
/**
* @return string
*/
public function getBackupRunId()
{
return $this->backupRunId;
}
/**
* @param string
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreBackupContext::class, 'Google_Service_SQLAdmin_RestoreBackupContext');
@@ -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\SQLAdmin;
class RotateServerCaContext extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextVersion;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextVersion($nextVersion)
{
$this->nextVersion = $nextVersion;
}
/**
* @return string
*/
public function getNextVersion()
{
return $this->nextVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RotateServerCaContext::class, 'Google_Service_SQLAdmin_RotateServerCaContext');
@@ -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\SQLAdmin;
class RotateServerCertificateContext extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextVersion;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextVersion($nextVersion)
{
$this->nextVersion = $nextVersion;
}
/**
* @return string
*/
public function getNextVersion()
{
return $this->nextVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RotateServerCertificateContext::class, 'Google_Service_SQLAdmin_RotateServerCertificateContext');
@@ -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\SQLAdmin;
class SelectedObjects extends \Google\Model
{
/**
* @var string
*/
public $database;
/**
* @param string
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SelectedObjects::class, 'Google_Service_SQLAdmin_SelectedObjects');
@@ -0,0 +1,615 @@
<?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\SQLAdmin;
class Settings extends \Google\Collection
{
protected $collection_key = 'denyMaintenancePeriods';
/**
* @var string
*/
public $activationPolicy;
protected $activeDirectoryConfigType = SqlActiveDirectoryConfig::class;
protected $activeDirectoryConfigDataType = '';
protected $advancedMachineFeaturesType = AdvancedMachineFeatures::class;
protected $advancedMachineFeaturesDataType = '';
/**
* @var string[]
*/
public $authorizedGaeApplications;
/**
* @var string
*/
public $availabilityType;
protected $backupConfigurationType = BackupConfiguration::class;
protected $backupConfigurationDataType = '';
/**
* @var string
*/
public $collation;
/**
* @var string
*/
public $connectorEnforcement;
/**
* @var bool
*/
public $crashSafeReplicationEnabled;
protected $dataCacheConfigType = DataCacheConfig::class;
protected $dataCacheConfigDataType = '';
/**
* @var string
*/
public $dataDiskSizeGb;
/**
* @var string
*/
public $dataDiskType;
protected $databaseFlagsType = DatabaseFlags::class;
protected $databaseFlagsDataType = 'array';
/**
* @var bool
*/
public $databaseReplicationEnabled;
/**
* @var bool
*/
public $deletionProtectionEnabled;
protected $denyMaintenancePeriodsType = DenyMaintenancePeriod::class;
protected $denyMaintenancePeriodsDataType = 'array';
/**
* @var string
*/
public $edition;
/**
* @var bool
*/
public $enableDataplexIntegration;
/**
* @var bool
*/
public $enableGoogleMlIntegration;
protected $insightsConfigType = InsightsConfig::class;
protected $insightsConfigDataType = '';
protected $ipConfigurationType = IpConfiguration::class;
protected $ipConfigurationDataType = '';
/**
* @var string
*/
public $kind;
protected $locationPreferenceType = LocationPreference::class;
protected $locationPreferenceDataType = '';
protected $maintenanceWindowType = MaintenanceWindow::class;
protected $maintenanceWindowDataType = '';
protected $passwordValidationPolicyType = PasswordValidationPolicy::class;
protected $passwordValidationPolicyDataType = '';
/**
* @var string
*/
public $pricingPlan;
/**
* @var string
*/
public $replicationType;
/**
* @var string
*/
public $settingsVersion;
protected $sqlServerAuditConfigType = SqlServerAuditConfig::class;
protected $sqlServerAuditConfigDataType = '';
/**
* @var bool
*/
public $storageAutoResize;
/**
* @var string
*/
public $storageAutoResizeLimit;
/**
* @var string
*/
public $tier;
/**
* @var string
*/
public $timeZone;
/**
* @var string[]
*/
public $userLabels;
/**
* @param string
*/
public function setActivationPolicy($activationPolicy)
{
$this->activationPolicy = $activationPolicy;
}
/**
* @return string
*/
public function getActivationPolicy()
{
return $this->activationPolicy;
}
/**
* @param SqlActiveDirectoryConfig
*/
public function setActiveDirectoryConfig(SqlActiveDirectoryConfig $activeDirectoryConfig)
{
$this->activeDirectoryConfig = $activeDirectoryConfig;
}
/**
* @return SqlActiveDirectoryConfig
*/
public function getActiveDirectoryConfig()
{
return $this->activeDirectoryConfig;
}
/**
* @param AdvancedMachineFeatures
*/
public function setAdvancedMachineFeatures(AdvancedMachineFeatures $advancedMachineFeatures)
{
$this->advancedMachineFeatures = $advancedMachineFeatures;
}
/**
* @return AdvancedMachineFeatures
*/
public function getAdvancedMachineFeatures()
{
return $this->advancedMachineFeatures;
}
/**
* @param string[]
*/
public function setAuthorizedGaeApplications($authorizedGaeApplications)
{
$this->authorizedGaeApplications = $authorizedGaeApplications;
}
/**
* @return string[]
*/
public function getAuthorizedGaeApplications()
{
return $this->authorizedGaeApplications;
}
/**
* @param string
*/
public function setAvailabilityType($availabilityType)
{
$this->availabilityType = $availabilityType;
}
/**
* @return string
*/
public function getAvailabilityType()
{
return $this->availabilityType;
}
/**
* @param BackupConfiguration
*/
public function setBackupConfiguration(BackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
/**
* @return BackupConfiguration
*/
public function getBackupConfiguration()
{
return $this->backupConfiguration;
}
/**
* @param string
*/
public function setCollation($collation)
{
$this->collation = $collation;
}
/**
* @return string
*/
public function getCollation()
{
return $this->collation;
}
/**
* @param string
*/
public function setConnectorEnforcement($connectorEnforcement)
{
$this->connectorEnforcement = $connectorEnforcement;
}
/**
* @return string
*/
public function getConnectorEnforcement()
{
return $this->connectorEnforcement;
}
/**
* @param bool
*/
public function setCrashSafeReplicationEnabled($crashSafeReplicationEnabled)
{
$this->crashSafeReplicationEnabled = $crashSafeReplicationEnabled;
}
/**
* @return bool
*/
public function getCrashSafeReplicationEnabled()
{
return $this->crashSafeReplicationEnabled;
}
/**
* @param DataCacheConfig
*/
public function setDataCacheConfig(DataCacheConfig $dataCacheConfig)
{
$this->dataCacheConfig = $dataCacheConfig;
}
/**
* @return DataCacheConfig
*/
public function getDataCacheConfig()
{
return $this->dataCacheConfig;
}
/**
* @param string
*/
public function setDataDiskSizeGb($dataDiskSizeGb)
{
$this->dataDiskSizeGb = $dataDiskSizeGb;
}
/**
* @return string
*/
public function getDataDiskSizeGb()
{
return $this->dataDiskSizeGb;
}
/**
* @param string
*/
public function setDataDiskType($dataDiskType)
{
$this->dataDiskType = $dataDiskType;
}
/**
* @return string
*/
public function getDataDiskType()
{
return $this->dataDiskType;
}
/**
* @param DatabaseFlags[]
*/
public function setDatabaseFlags($databaseFlags)
{
$this->databaseFlags = $databaseFlags;
}
/**
* @return DatabaseFlags[]
*/
public function getDatabaseFlags()
{
return $this->databaseFlags;
}
/**
* @param bool
*/
public function setDatabaseReplicationEnabled($databaseReplicationEnabled)
{
$this->databaseReplicationEnabled = $databaseReplicationEnabled;
}
/**
* @return bool
*/
public function getDatabaseReplicationEnabled()
{
return $this->databaseReplicationEnabled;
}
/**
* @param bool
*/
public function setDeletionProtectionEnabled($deletionProtectionEnabled)
{
$this->deletionProtectionEnabled = $deletionProtectionEnabled;
}
/**
* @return bool
*/
public function getDeletionProtectionEnabled()
{
return $this->deletionProtectionEnabled;
}
/**
* @param DenyMaintenancePeriod[]
*/
public function setDenyMaintenancePeriods($denyMaintenancePeriods)
{
$this->denyMaintenancePeriods = $denyMaintenancePeriods;
}
/**
* @return DenyMaintenancePeriod[]
*/
public function getDenyMaintenancePeriods()
{
return $this->denyMaintenancePeriods;
}
/**
* @param string
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* @param bool
*/
public function setEnableDataplexIntegration($enableDataplexIntegration)
{
$this->enableDataplexIntegration = $enableDataplexIntegration;
}
/**
* @return bool
*/
public function getEnableDataplexIntegration()
{
return $this->enableDataplexIntegration;
}
/**
* @param bool
*/
public function setEnableGoogleMlIntegration($enableGoogleMlIntegration)
{
$this->enableGoogleMlIntegration = $enableGoogleMlIntegration;
}
/**
* @return bool
*/
public function getEnableGoogleMlIntegration()
{
return $this->enableGoogleMlIntegration;
}
/**
* @param InsightsConfig
*/
public function setInsightsConfig(InsightsConfig $insightsConfig)
{
$this->insightsConfig = $insightsConfig;
}
/**
* @return InsightsConfig
*/
public function getInsightsConfig()
{
return $this->insightsConfig;
}
/**
* @param IpConfiguration
*/
public function setIpConfiguration(IpConfiguration $ipConfiguration)
{
$this->ipConfiguration = $ipConfiguration;
}
/**
* @return IpConfiguration
*/
public function getIpConfiguration()
{
return $this->ipConfiguration;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param LocationPreference
*/
public function setLocationPreference(LocationPreference $locationPreference)
{
$this->locationPreference = $locationPreference;
}
/**
* @return LocationPreference
*/
public function getLocationPreference()
{
return $this->locationPreference;
}
/**
* @param MaintenanceWindow
*/
public function setMaintenanceWindow(MaintenanceWindow $maintenanceWindow)
{
$this->maintenanceWindow = $maintenanceWindow;
}
/**
* @return MaintenanceWindow
*/
public function getMaintenanceWindow()
{
return $this->maintenanceWindow;
}
/**
* @param PasswordValidationPolicy
*/
public function setPasswordValidationPolicy(PasswordValidationPolicy $passwordValidationPolicy)
{
$this->passwordValidationPolicy = $passwordValidationPolicy;
}
/**
* @return PasswordValidationPolicy
*/
public function getPasswordValidationPolicy()
{
return $this->passwordValidationPolicy;
}
/**
* @param string
*/
public function setPricingPlan($pricingPlan)
{
$this->pricingPlan = $pricingPlan;
}
/**
* @return string
*/
public function getPricingPlan()
{
return $this->pricingPlan;
}
/**
* @param string
*/
public function setReplicationType($replicationType)
{
$this->replicationType = $replicationType;
}
/**
* @return string
*/
public function getReplicationType()
{
return $this->replicationType;
}
/**
* @param string
*/
public function setSettingsVersion($settingsVersion)
{
$this->settingsVersion = $settingsVersion;
}
/**
* @return string
*/
public function getSettingsVersion()
{
return $this->settingsVersion;
}
/**
* @param SqlServerAuditConfig
*/
public function setSqlServerAuditConfig(SqlServerAuditConfig $sqlServerAuditConfig)
{
$this->sqlServerAuditConfig = $sqlServerAuditConfig;
}
/**
* @return SqlServerAuditConfig
*/
public function getSqlServerAuditConfig()
{
return $this->sqlServerAuditConfig;
}
/**
* @param bool
*/
public function setStorageAutoResize($storageAutoResize)
{
$this->storageAutoResize = $storageAutoResize;
}
/**
* @return bool
*/
public function getStorageAutoResize()
{
return $this->storageAutoResize;
}
/**
* @param string
*/
public function setStorageAutoResizeLimit($storageAutoResizeLimit)
{
$this->storageAutoResizeLimit = $storageAutoResizeLimit;
}
/**
* @return string
*/
public function getStorageAutoResizeLimit()
{
return $this->storageAutoResizeLimit;
}
/**
* @param string
*/
public function setTier($tier)
{
$this->tier = $tier;
}
/**
* @return string
*/
public function getTier()
{
return $this->tier;
}
/**
* @param string
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* @param string[]
*/
public function setUserLabels($userLabels)
{
$this->userLabels = $userLabels;
}
/**
* @return string[]
*/
public function getUserLabels()
{
return $this->userLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Settings::class, 'Google_Service_SQLAdmin_Settings');

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