📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/SQLAdmin
🌙 Dark 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: ExportContext.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 ExportContext extends \Google\Collection
{
  /**
   * Unknown file type.
   */
  public const FILE_TYPE_SQL_FILE_TYPE_UNSPECIFIED = 'SQL_FILE_TYPE_UNSPECIFIED';
  /**
   * File containing SQL statements.
   */
  public const FILE_TYPE_SQL = 'SQL';
  /**
   * File in CSV format.
   */
  public const FILE_TYPE_CSV = 'CSV';
  public const FILE_TYPE_BAK = 'BAK';
  /**
   * TDE certificate.
   */
  public const FILE_TYPE_TDE = 'TDE';
  protected $collection_key = 'databases';
  protected $bakExportOptionsType = ExportContextBakExportOptions::class;
  protected $bakExportOptionsDataType = '';
  protected $csvExportOptionsType = ExportContextCsvExportOptions::class;
  protected $csvExportOptionsDataType = '';
  /**
   * Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no
   * database is specified, all databases are exported, except for the `mysql`
   * system database. If `fileType` is `CSV`, you can specify one database,
   * either by using this property or by using the
   * `csvExportOptions.selectQuery` property, which takes precedence over this
   * property. `PostgreSQL instances:` If you don't specify a database by name,
   * all user databases in the instance are exported. This excludes system
   * databases and Cloud SQL databases used to manage internal operations.
   * Exporting all user databases is only available for directory-formatted
   * parallel export. If `fileType` is `CSV`, this database must match the one
   * specified in the `csvExportOptions.selectQuery` property. `SQL Server
   * instances:` You must specify one database to be exported, and the
   * `fileType` must be `BAK`.
   *
   * @var string[]
   */
  public $databases;
  /**
   * The file type for the specified uri.
   *
   * @var string
   */
  public $fileType;
  /**
   * This is always `sql#exportContext`.
   *
   * @var string
   */
  public $kind;
  /**
   * Whether to perform a serverless export.
   *
   * @var bool
   */
  public $offload;
  protected $sqlExportOptionsType = ExportContextSqlExportOptions::class;
  protected $sqlExportOptionsDataType = '';
  protected $tdeExportOptionsType = ExportContextTdeExportOptions::class;
  protected $tdeExportOptionsDataType = '';
  /**
   * The path to the file in Google Cloud Storage where the export will be
   * stored. The URI is in the form `gs://bucketName/fileName`. If the file
   * already exists, the request succeeds, but the operation fails. If
   * `fileType` is `SQL` and the filename ends with .gz, the contents are
   * compressed.
   *
   * @var string
   */
  public $uri;

  /**
   * Options for exporting BAK files (SQL Server-only)
   *
   * @param ExportContextBakExportOptions $bakExportOptions
   */
  public function setBakExportOptions(ExportContextBakExportOptions $bakExportOptions)
  {
    $this->bakExportOptions = $bakExportOptions;
  }
  /**
   * @return ExportContextBakExportOptions
   */
  public function getBakExportOptions()
  {
    return $this->bakExportOptions;
  }
  /**
   * Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
   *
   * @param ExportContextCsvExportOptions $csvExportOptions
   */
  public function setCsvExportOptions(ExportContextCsvExportOptions $csvExportOptions)
  {
    $this->csvExportOptions = $csvExportOptions;
  }
  /**
   * @return ExportContextCsvExportOptions
   */
  public function getCsvExportOptions()
  {
    return $this->csvExportOptions;
  }
  /**
   * Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no
   * database is specified, all databases are exported, except for the `mysql`
   * system database. If `fileType` is `CSV`, you can specify one database,
   * either by using this property or by using the
   * `csvExportOptions.selectQuery` property, which takes precedence over this
   * property. `PostgreSQL instances:` If you don't specify a database by name,
   * all user databases in the instance are exported. This excludes system
   * databases and Cloud SQL databases used to manage internal operations.
   * Exporting all user databases is only available for directory-formatted
   * parallel export. If `fileType` is `CSV`, this database must match the one
   * specified in the `csvExportOptions.selectQuery` property. `SQL Server
   * instances:` You must specify one database to be exported, and the
   * `fileType` must be `BAK`.
   *
   * @param string[] $databases
   */
  public function setDatabases($databases)
  {
    $this->databases = $databases;
  }
  /**
   * @return string[]
   */
  public function getDatabases()
  {
    return $this->databases;
  }
  /**
   * The file type for the specified uri.
   *
   * Accepted values: SQL_FILE_TYPE_UNSPECIFIED, SQL, CSV, BAK, TDE
   *
   * @param self::FILE_TYPE_* $fileType
   */
  public function setFileType($fileType)
  {
    $this->fileType = $fileType;
  }
  /**
   * @return self::FILE_TYPE_*
   */
  public function getFileType()
  {
    return $this->fileType;
  }
  /**
   * This is always `sql#exportContext`.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Whether to perform a serverless export.
   *
   * @param bool $offload
   */
  public function setOffload($offload)
  {
    $this->offload = $offload;
  }
  /**
   * @return bool
   */
  public function getOffload()
  {
    return $this->offload;
  }
  /**
   * Options for exporting data as SQL statements.
   *
   * @param ExportContextSqlExportOptions $sqlExportOptions
   */
  public function setSqlExportOptions(ExportContextSqlExportOptions $sqlExportOptions)
  {
    $this->sqlExportOptions = $sqlExportOptions;
  }
  /**
   * @return ExportContextSqlExportOptions
   */
  public function getSqlExportOptions()
  {
    return $this->sqlExportOptions;
  }
  /**
   * Optional. Export parameters specific to SQL Server TDE certificates
   *
   * @param ExportContextTdeExportOptions $tdeExportOptions
   */
  public function setTdeExportOptions(ExportContextTdeExportOptions $tdeExportOptions)
  {
    $this->tdeExportOptions = $tdeExportOptions;
  }
  /**
   * @return ExportContextTdeExportOptions
   */
  public function getTdeExportOptions()
  {
    return $this->tdeExportOptions;
  }
  /**
   * The path to the file in Google Cloud Storage where the export will be
   * stored. The URI is in the form `gs://bucketName/fileName`. If the file
   * already exists, the request succeeds, but the operation fails. If
   * `fileType` is `SQL` and the filename ends with .gz, the contents are
   * compressed.
   *
   * @param string $uri
   */
  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');
← Back