📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/SQLAdmin
☀️ Light Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AclEntry.php
▶ Open 📄 View Source
🐘 AcquireSsrsLeaseContext.php
▶ Open 📄 View Source
🐘 AdvancedMachineFeatures.php
▶ Open 📄 View Source
🐘 ApiWarning.php
▶ Open 📄 View Source
🐘 AvailableDatabaseVersion.php
▶ Open 📄 View Source
🐘 Backup.php
▶ Open 📄 View Source
🐘 BackupConfiguration.php
▶ Open 📄 View Source
🐘 BackupContext.php
▶ Open 📄 View Source
🐘 BackupReencryptionConfig.php
▶ Open 📄 View Source
🐘 BackupRetentionSettings.php
▶ Open 📄 View Source
🐘 BackupRun.php
▶ Open 📄 View Source
🐘 BackupRunsListResponse.php
▶ Open 📄 View Source
🐘 BinLogCoordinates.php
▶ Open 📄 View Source
🐘 CloneContext.php
▶ Open 📄 View Source
🐘 Column.php
▶ Open 📄 View Source
🐘 ConnectPoolNodeConfig.php
▶ Open 📄 View Source
🐘 ConnectSettings.php
▶ Open 📄 View Source
🐘 ConnectionPoolConfig.php
▶ Open 📄 View Source
🐘 ConnectionPoolFlags.php
▶ Open 📄 View Source
🐘 DataCacheConfig.php
▶ Open 📄 View Source
🐘 Database.php
▶ Open 📄 View Source
🐘 DatabaseFlags.php
▶ Open 📄 View Source
🐘 DatabaseInstance.php
▶ Open 📄 View Source
🐘 DatabaseInstanceFailoverReplica.php
▶ Open 📄 View Source
🐘 DatabasesListResponse.php
▶ Open 📄 View Source
🐘 DemoteContext.php
▶ Open 📄 View Source
🐘 DemoteMasterConfiguration.php
▶ Open 📄 View Source
🐘 DemoteMasterContext.php
▶ Open 📄 View Source
🐘 DemoteMasterMySqlReplicaConfiguration.php
▶ Open 📄 View Source
🐘 DenyMaintenancePeriod.php
▶ Open 📄 View Source
🐘 DiskEncryptionConfiguration.php
▶ Open 📄 View Source
🐘 DiskEncryptionStatus.php
▶ Open 📄 View Source
🐘 DnsNameMapping.php
▶ Open 📄 View Source
🐘 ExecuteSqlPayload.php
▶ Open 📄 View Source
🐘 ExportContext.php
▶ Open 📄 View Source
🐘 ExportContextBakExportOptions.php
▶ Open 📄 View Source
🐘 ExportContextCsvExportOptions.php
▶ Open 📄 View Source
🐘 ExportContextSqlExportOptions.php
▶ Open 📄 View Source
🐘 ExportContextSqlExportOptionsMysqlExportOptions.php
▶ Open 📄 View Source
🐘 ExportContextSqlExportOptionsPostgresExportOptions.php
▶ Open 📄 View Source
🐘 ExportContextTdeExportOptions.php
▶ Open 📄 View Source
🐘 ExternalSyncSelectedObject.php
▶ Open 📄 View Source
🐘 FailoverContext.php
▶ Open 📄 View Source
🐘 FinalBackupConfig.php
▶ Open 📄 View Source
🐘 Flag.php
▶ Open 📄 View Source
🐘 FlagsListResponse.php
▶ Open 📄 View Source
🐘 GeminiInstanceConfig.php
▶ Open 📄 View Source
🐘 GenerateEphemeralCertRequest.php
▶ Open 📄 View Source
🐘 GenerateEphemeralCertResponse.php
▶ Open 📄 View Source
🐘 ImportContext.php
▶ Open 📄 View Source
🐘 ImportContextBakImportOptions.php
▶ Open 📄 View Source
🐘 ImportContextBakImportOptionsEncryptionOptions.php
▶ Open 📄 View Source
🐘 ImportContextCsvImportOptions.php
▶ Open 📄 View Source
🐘 ImportContextSqlImportOptions.php
▶ Open 📄 View Source
🐘 ImportContextSqlImportOptionsPostgresImportOptions.php
▶ Open 📄 View Source
🐘 ImportContextTdeImportOptions.php
▶ Open 📄 View Source
🐘 InsightsConfig.php
▶ Open 📄 View Source
🐘 InstanceReference.php
▶ Open 📄 View Source
🐘 InstancesAcquireSsrsLeaseRequest.php
▶ Open 📄 View Source
🐘 InstancesCloneRequest.php
▶ Open 📄 View Source
🐘 InstancesDemoteMasterRequest.php
▶ Open 📄 View Source
🐘 InstancesDemoteRequest.php
▶ Open 📄 View Source
🐘 InstancesExportRequest.php
▶ Open 📄 View Source
🐘 InstancesFailoverRequest.php
▶ Open 📄 View Source
🐘 InstancesImportRequest.php
▶ Open 📄 View Source
🐘 InstancesListEntraIdCertificatesResponse.php
▶ Open 📄 View Source
🐘 InstancesListResponse.php
▶ Open 📄 View Source
🐘 InstancesListServerCasResponse.php
▶ Open 📄 View Source
🐘 InstancesListServerCertificatesResponse.php
▶ Open 📄 View Source
🐘 InstancesPreCheckMajorVersionUpgradeRequest.php
▶ Open 📄 View Source
🐘 InstancesReencryptRequest.php
▶ Open 📄 View Source
🐘 InstancesRestoreBackupRequest.php
▶ Open 📄 View Source
🐘 InstancesRotateEntraIdCertificateRequest.php
▶ Open 📄 View Source
🐘 InstancesRotateServerCaRequest.php
▶ Open 📄 View Source
🐘 InstancesRotateServerCertificateRequest.php
▶ Open 📄 View Source
🐘 InstancesTruncateLogRequest.php
▶ Open 📄 View Source
🐘 Interval.php
▶ Open 📄 View Source
🐘 IpConfiguration.php
▶ Open 📄 View Source
🐘 IpMapping.php
▶ Open 📄 View Source
🐘 ListBackupsResponse.php
▶ Open 📄 View Source
🐘 LocationPreference.php
▶ Open 📄 View Source
🐘 MaintenanceWindow.php
▶ Open 📄 View Source
🐘 Message.php
▶ Open 📄 View Source
🐘 Metadata.php
▶ Open 📄 View Source
🐘 MySqlReplicaConfiguration.php
▶ Open 📄 View Source
🐘 MySqlSyncConfig.php
▶ Open 📄 View Source
🐘 OnPremisesConfiguration.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationError.php
▶ Open 📄 View Source
🐘 OperationErrors.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 OperationsListResponse.php
▶ Open 📄 View Source
🐘 PITRFields.php
▶ Open 📄 View Source
🐘 PasswordStatus.php
▶ Open 📄 View Source
🐘 PasswordValidationPolicy.php
▶ Open 📄 View Source
🐘 PerformDiskShrinkContext.php
▶ Open 📄 View Source
🐘 PerformanceCaptureConfig.php
▶ Open 📄 View Source
🐘 PointInTimeRestoreContext.php
▶ Open 📄 View Source
🐘 PoolNodeConfig.php
▶ Open 📄 View Source
🐘 PreCheckMajorVersionUpgradeContext.php
▶ Open 📄 View Source
🐘 PreCheckResponse.php
▶ Open 📄 View Source
🐘 PscAutoConnectionConfig.php
▶ Open 📄 View Source
🐘 PscConfig.php
▶ Open 📄 View Source
🐘 QueryResult.php
▶ Open 📄 View Source
🐘 ReadPoolAutoScaleConfig.php
▶ Open 📄 View Source
🐘 ReplicaConfiguration.php
▶ Open 📄 View Source
🐘 ReplicationCluster.php
▶ Open 📄 View Source
🐘 Reschedule.php
▶ Open 📄 View Source
🐘 RestoreBackupContext.php
▶ Open 📄 View Source
🐘 RotateEntraIdCertificateContext.php
▶ Open 📄 View Source
🐘 RotateServerCaContext.php
▶ Open 📄 View Source
🐘 RotateServerCertificateContext.php
▶ Open 📄 View Source
🐘 Row.php
▶ Open 📄 View Source
🐘 SelectedObjects.php
▶ Open 📄 View Source
🐘 Settings.php
▶ Open 📄 View Source
🐘 SqlActiveDirectoryConfig.php
▶ Open 📄 View Source
🐘 SqlExternalSyncSettingError.php
▶ Open 📄 View Source
🐘 SqlInstancesAcquireSsrsLeaseResponse.php
▶ Open 📄 View Source
🐘 SqlInstancesExecuteSqlResponse.php
▶ Open 📄 View Source
🐘 SqlInstancesGetDiskShrinkConfigResponse.php
▶ Open 📄 View Source
🐘 SqlInstancesGetLatestRecoveryTimeResponse.php
▶ Open 📄 View Source
🐘 SqlInstancesReleaseSsrsLeaseResponse.php
▶ Open 📄 View Source
🐘 SqlInstancesRescheduleMaintenanceRequestBody.php
▶ Open 📄 View Source
🐘 SqlInstancesResetReplicaSizeRequest.php
▶ Open 📄 View Source
🐘 SqlInstancesRestoreBackupMcpRequest.php
▶ Open 📄 View Source
🐘 SqlInstancesStartExternalSyncRequest.php
▶ Open 📄 View Source
🐘 SqlInstancesVerifyExternalSyncSettingsRequest.php
▶ Open 📄 View Source
🐘 SqlInstancesVerifyExternalSyncSettingsResponse.php
▶ Open 📄 View Source
🐘 SqlOutOfDiskReport.php
▶ Open 📄 View Source
🐘 SqlScheduledMaintenance.php
▶ Open 📄 View Source
🐘 SqlServerAuditConfig.php
▶ Open 📄 View Source
🐘 SqlServerDatabaseDetails.php
▶ Open 📄 View Source
🐘 SqlServerEntraIdConfig.php
▶ Open 📄 View Source
🐘 SqlServerUserDetails.php
▶ Open 📄 View Source
🐘 SqlSubOperationType.php
▶ Open 📄 View Source
🐘 SqladminEmpty.php
▶ Open 📄 View Source
🐘 SslCert.php
▶ Open 📄 View Source
🐘 SslCertDetail.php
▶ Open 📄 View Source
🐘 SslCertsCreateEphemeralRequest.php
▶ Open 📄 View Source
🐘 SslCertsInsertRequest.php
▶ Open 📄 View Source
🐘 SslCertsInsertResponse.php
▶ Open 📄 View Source
🐘 SslCertsListResponse.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 SyncFlags.php
▶ Open 📄 View Source
🐘 TargetMetric.php
▶ Open 📄 View Source
🐘 Tier.php
▶ Open 📄 View Source
🐘 TiersListResponse.php
▶ Open 📄 View Source
🐘 TruncateLogContext.php
▶ Open 📄 View Source
🐘 User.php
▶ Open 📄 View Source
🐘 UserPasswordValidationPolicy.php
▶ Open 📄 View Source
🐘 UsersListResponse.php
▶ Open 📄 View Source
🐘 Value.php
▶ Open 📄 View Source

📄 Source: CloneContext.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\SQLAdmin;

class CloneContext extends \Google\Collection
{
  protected $collection_key = 'databaseNames';
  /**
   * The name of the allocated ip range for the private ip Cloud SQL instance.
   * For example: "google-managed-services-default". If set, the cloned instance
   * ip will be created in the allocated range. The range name must comply with
   * [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name
   * must be 1-63 characters long and match the regular expression
   * [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
   *
   * @var string
   */
  public $allocatedIpRange;
  protected $binLogCoordinatesType = BinLogCoordinates::class;
  protected $binLogCoordinatesDataType = '';
  /**
   * (SQL Server only) Clone only the specified databases from the source
   * instance. Clone all databases if empty.
   *
   * @var string[]
   */
  public $databaseNames;
  /**
   * Required. Name of the Cloud SQL instance to be created as a clone.
   *
   * @var string
   */
  public $destinationInstanceName;
  /**
   * Optional. The fully qualified URI of the VPC network to which the cloned
   * instance will be connected via Private Services Access for private IP. For
   * example:`projects/my-network-project/global/networks/my-network`. This
   * field is only required for cross-project cloning.
   *
   * @var string
   */
  public $destinationNetwork;
  /**
   * Optional. The project ID of the destination project where the cloned
   * instance will be created. To perform a cross-project clone, this field is
   * required. If not specified, the clone is created in the same project as the
   * source instance.
   *
   * @var string
   */
  public $destinationProject;
  /**
   * This is always `sql#cloneContext`.
   *
   * @var string
   */
  public $kind;
  /**
   * Reserved for future use.
   *
   * @var string
   */
  public $pitrTimestampMs;
  /**
   * Timestamp, if specified, identifies the time to which the source instance
   * is cloned.
   *
   * @var string
   */
  public $pointInTime;
  /**
   * Optional. Copy clone and point-in-time recovery clone of a regional
   * instance in the specified zones. If not specified, clone to the same
   * secondary zone as the source instance. This value cannot be the same as the
   * preferred_zone field. This field applies to all DB types.
   *
   * @var string
   */
  public $preferredSecondaryZone;
  /**
   * Optional. Copy clone and point-in-time recovery clone of an instance to the
   * specified zone. If no zone is specified, clone to the same primary zone as
   * the source instance. This field applies to all DB types.
   *
   * @var string
   */
  public $preferredZone;
  /**
   * The timestamp used to identify the time when the source instance is
   * deleted. If this instance is deleted, then you must set the timestamp.
   *
   * @var string
   */
  public $sourceInstanceDeletionTime;

  /**
   * The name of the allocated ip range for the private ip Cloud SQL instance.
   * For example: "google-managed-services-default". If set, the cloned instance
   * ip will be created in the allocated range. The range name must comply with
   * [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name
   * must be 1-63 characters long and match the regular expression
   * [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
   *
   * @param string $allocatedIpRange
   */
  public function setAllocatedIpRange($allocatedIpRange)
  {
    $this->allocatedIpRange = $allocatedIpRange;
  }
  /**
   * @return string
   */
  public function getAllocatedIpRange()
  {
    return $this->allocatedIpRange;
  }
  /**
   * Binary log coordinates, if specified, identify the position up to which the
   * source instance is cloned. If not specified, the source instance is cloned
   * up to the most recent binary log coordinates.
   *
   * @param BinLogCoordinates $binLogCoordinates
   */
  public function setBinLogCoordinates(BinLogCoordinates $binLogCoordinates)
  {
    $this->binLogCoordinates = $binLogCoordinates;
  }
  /**
   * @return BinLogCoordinates
   */
  public function getBinLogCoordinates()
  {
    return $this->binLogCoordinates;
  }
  /**
   * (SQL Server only) Clone only the specified databases from the source
   * instance. Clone all databases if empty.
   *
   * @param string[] $databaseNames
   */
  public function setDatabaseNames($databaseNames)
  {
    $this->databaseNames = $databaseNames;
  }
  /**
   * @return string[]
   */
  public function getDatabaseNames()
  {
    return $this->databaseNames;
  }
  /**
   * Required. Name of the Cloud SQL instance to be created as a clone.
   *
   * @param string $destinationInstanceName
   */
  public function setDestinationInstanceName($destinationInstanceName)
  {
    $this->destinationInstanceName = $destinationInstanceName;
  }
  /**
   * @return string
   */
  public function getDestinationInstanceName()
  {
    return $this->destinationInstanceName;
  }
  /**
   * Optional. The fully qualified URI of the VPC network to which the cloned
   * instance will be connected via Private Services Access for private IP. For
   * example:`projects/my-network-project/global/networks/my-network`. This
   * field is only required for cross-project cloning.
   *
   * @param string $destinationNetwork
   */
  public function setDestinationNetwork($destinationNetwork)
  {
    $this->destinationNetwork = $destinationNetwork;
  }
  /**
   * @return string
   */
  public function getDestinationNetwork()
  {
    return $this->destinationNetwork;
  }
  /**
   * Optional. The project ID of the destination project where the cloned
   * instance will be created. To perform a cross-project clone, this field is
   * required. If not specified, the clone is created in the same project as the
   * source instance.
   *
   * @param string $destinationProject
   */
  public function setDestinationProject($destinationProject)
  {
    $this->destinationProject = $destinationProject;
  }
  /**
   * @return string
   */
  public function getDestinationProject()
  {
    return $this->destinationProject;
  }
  /**
   * This is always `sql#cloneContext`.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Reserved for future use.
   *
   * @param string $pitrTimestampMs
   */
  public function setPitrTimestampMs($pitrTimestampMs)
  {
    $this->pitrTimestampMs = $pitrTimestampMs;
  }
  /**
   * @return string
   */
  public function getPitrTimestampMs()
  {
    return $this->pitrTimestampMs;
  }
  /**
   * Timestamp, if specified, identifies the time to which the source instance
   * is cloned.
   *
   * @param string $pointInTime
   */
  public function setPointInTime($pointInTime)
  {
    $this->pointInTime = $pointInTime;
  }
  /**
   * @return string
   */
  public function getPointInTime()
  {
    return $this->pointInTime;
  }
  /**
   * Optional. Copy clone and point-in-time recovery clone of a regional
   * instance in the specified zones. If not specified, clone to the same
   * secondary zone as the source instance. This value cannot be the same as the
   * preferred_zone field. This field applies to all DB types.
   *
   * @param string $preferredSecondaryZone
   */
  public function setPreferredSecondaryZone($preferredSecondaryZone)
  {
    $this->preferredSecondaryZone = $preferredSecondaryZone;
  }
  /**
   * @return string
   */
  public function getPreferredSecondaryZone()
  {
    return $this->preferredSecondaryZone;
  }
  /**
   * Optional. Copy clone and point-in-time recovery clone of an instance to the
   * specified zone. If no zone is specified, clone to the same primary zone as
   * the source instance. This field applies to all DB types.
   *
   * @param string $preferredZone
   */
  public function setPreferredZone($preferredZone)
  {
    $this->preferredZone = $preferredZone;
  }
  /**
   * @return string
   */
  public function getPreferredZone()
  {
    return $this->preferredZone;
  }
  /**
   * The timestamp used to identify the time when the source instance is
   * deleted. If this instance is deleted, then you must set the timestamp.
   *
   * @param string $sourceInstanceDeletionTime
   */
  public function setSourceInstanceDeletionTime($sourceInstanceDeletionTime)
  {
    $this->sourceInstanceDeletionTime = $sourceInstanceDeletionTime;
  }
  /**
   * @return string
   */
  public function getSourceInstanceDeletionTime()
  {
    return $this->sourceInstanceDeletionTime;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloneContext::class, 'Google_Service_SQLAdmin_CloneContext');
← Back