gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class AlloyDbConnectionProfile extends \Google\Model
{
/**
* Required. The AlloyDB cluster ID that this connection profile is associated
* with.
*
* @var string
*/
public $clusterId;
protected $settingsType = AlloyDbSettings::class;
protected $settingsDataType = '';
/**
* Required. The AlloyDB cluster ID that this connection profile is associated
* with.
*
* @param string $clusterId
*/
public function setClusterId($clusterId)
{
$this->clusterId = $clusterId;
}
/**
* @return string
*/
public function getClusterId()
{
return $this->clusterId;
}
/**
* Immutable. Metadata used to create the destination AlloyDB cluster.
*
* @param AlloyDbSettings $settings
*/
public function setSettings(AlloyDbSettings $settings)
{
$this->settings = $settings;
}
/**
* @return AlloyDbSettings
*/
public function getSettings()
{
return $this->settings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlloyDbConnectionProfile::class, 'Google_Service_DatabaseMigrationService_AlloyDbConnectionProfile');
@@ -0,0 +1,191 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class AlloyDbSettings extends \Google\Model
{
/**
* This is an unknown database version.
*/
public const DATABASE_VERSION_DATABASE_VERSION_UNSPECIFIED = 'DATABASE_VERSION_UNSPECIFIED';
/**
* The database version is Postgres 14.
*/
public const DATABASE_VERSION_POSTGRES_14 = 'POSTGRES_14';
/**
* The database version is Postgres 15.
*/
public const DATABASE_VERSION_POSTGRES_15 = 'POSTGRES_15';
/**
* The database version is Postgres 16.
*/
public const DATABASE_VERSION_POSTGRES_16 = 'POSTGRES_16';
/**
* The database version is Postgres 17.
*/
public const DATABASE_VERSION_POSTGRES_17 = 'POSTGRES_17';
/**
* The database version is Postgres 18.
*/
public const DATABASE_VERSION_POSTGRES_18 = 'POSTGRES_18';
/**
* Optional. The database engine major version. This is an optional field. If
* a database version is not supplied at cluster creation time, then a default
* database version will be used.
*
* @var string
*/
public $databaseVersion;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $initialUserType = UserPassword::class;
protected $initialUserDataType = '';
/**
* Labels for the AlloyDB cluster created by DMS. An object containing a list
* of 'key', 'value' pairs.
*
* @var string[]
*/
public $labels;
protected $primaryInstanceSettingsType = PrimaryInstanceSettings::class;
protected $primaryInstanceSettingsDataType = '';
/**
* Required. The resource link for the VPC network in which cluster resources
* are created and from which they are accessible via Private IP. The network
* must belong to the same project as the cluster. It is specified in the
* form: "projects/{project_number}/global/networks/{network_id}". This is
* required to create a cluster.
*
* @var string
*/
public $vpcNetwork;
/**
* Optional. The database engine major version. This is an optional field. If
* a database version is not supplied at cluster creation time, then a default
* database version will be used.
*
* Accepted values: DATABASE_VERSION_UNSPECIFIED, POSTGRES_14, POSTGRES_15,
* POSTGRES_16, POSTGRES_17, POSTGRES_18
*
* @param self::DATABASE_VERSION_* $databaseVersion
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return self::DATABASE_VERSION_*
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* Optional. The encryption config can be specified to encrypt the data disks
* and other persistent data resources of a cluster with a customer-managed
* encryption key (CMEK). When this field is not specified, the cluster will
* then use default encryption scheme to protect the user data.
*
* @param EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Required. Input only. Initial user to setup during cluster creation.
* Required.
*
* @param UserPassword $initialUser
*/
public function setInitialUser(UserPassword $initialUser)
{
$this->initialUser = $initialUser;
}
/**
* @return UserPassword
*/
public function getInitialUser()
{
return $this->initialUser;
}
/**
* Labels for the AlloyDB cluster created by DMS. An object containing a list
* of 'key', 'value' pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Settings for the cluster's primary instance
*
* @param PrimaryInstanceSettings $primaryInstanceSettings
*/
public function setPrimaryInstanceSettings(PrimaryInstanceSettings $primaryInstanceSettings)
{
$this->primaryInstanceSettings = $primaryInstanceSettings;
}
/**
* @return PrimaryInstanceSettings
*/
public function getPrimaryInstanceSettings()
{
return $this->primaryInstanceSettings;
}
/**
* Required. The resource link for the VPC network in which cluster resources
* are created and from which they are accessible via Private IP. The network
* must belong to the same project as the cluster. It is specified in the
* form: "projects/{project_number}/global/networks/{network_id}". This is
* required to create a cluster.
*
* @param string $vpcNetwork
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlloyDbSettings::class, 'Google_Service_DatabaseMigrationService_AlloyDbSettings');
@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ApplyConversionWorkspaceRequest extends \Google\Model
{
/**
* Optional. Specifies whether the conversion workspace is to be committed
* automatically after the apply.
*
* @var bool
*/
public $autoCommit;
/**
* Optional. Fully qualified (Uri) name of the destination connection profile.
*
* @var string
*/
public $connectionProfile;
/**
* Optional. Only validates the apply process, but doesn't change the
* destination database. Only works for PostgreSQL destination connection
* profile.
*
* @var bool
*/
public $dryRun;
/**
* Optional. Filter which entities to apply. Leaving this field empty will
* apply all of the entities. Supports Google AIP 160 based filtering.
*
* @var string
*/
public $filter;
/**
* Optional. Specifies whether the conversion workspace is to be committed
* automatically after the apply.
*
* @param bool $autoCommit
*/
public function setAutoCommit($autoCommit)
{
$this->autoCommit = $autoCommit;
}
/**
* @return bool
*/
public function getAutoCommit()
{
return $this->autoCommit;
}
/**
* Optional. Fully qualified (Uri) name of the destination connection profile.
*
* @param string $connectionProfile
*/
public function setConnectionProfile($connectionProfile)
{
$this->connectionProfile = $connectionProfile;
}
/**
* @return string
*/
public function getConnectionProfile()
{
return $this->connectionProfile;
}
/**
* Optional. Only validates the apply process, but doesn't change the
* destination database. Only works for PostgreSQL destination connection
* profile.
*
* @param bool $dryRun
*/
public function setDryRun($dryRun)
{
$this->dryRun = $dryRun;
}
/**
* @return bool
*/
public function getDryRun()
{
return $this->dryRun;
}
/**
* Optional. Filter which entities to apply. Leaving this field empty will
* apply all of the entities. Supports Google AIP 160 based filtering.
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplyConversionWorkspaceRequest::class, 'Google_Service_DatabaseMigrationService_ApplyConversionWorkspaceRequest');
@@ -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\DatabaseMigrationService;
class ApplyHash extends \Google\Model
{
protected $uuidFromBytesType = DatamigrationEmpty::class;
protected $uuidFromBytesDataType = '';
/**
* Optional. Generate UUID from the data's byte array
*
* @param DatamigrationEmpty $uuidFromBytes
*/
public function setUuidFromBytes(DatamigrationEmpty $uuidFromBytes)
{
$this->uuidFromBytes = $uuidFromBytes;
}
/**
* @return DatamigrationEmpty
*/
public function getUuidFromBytes()
{
return $this->uuidFromBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplyHash::class, 'Google_Service_DatabaseMigrationService_ApplyHash');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ApplyJobDetails extends \Google\Model
{
/**
* Output only. The connection profile which was used for the apply job.
*
* @var string
*/
public $connectionProfile;
/**
* Output only. AIP-160 based filter used to specify the entities to apply
*
* @var string
*/
public $filter;
/**
* Output only. The connection profile which was used for the apply job.
*
* @param string $connectionProfile
*/
public function setConnectionProfile($connectionProfile)
{
$this->connectionProfile = $connectionProfile;
}
/**
* @return string
*/
public function getConnectionProfile()
{
return $this->connectionProfile;
}
/**
* Output only. AIP-160 based filter used to specify the entities to apply
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplyJobDetails::class, 'Google_Service_DatabaseMigrationService_ApplyJobDetails');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class AssignSpecificValue extends \Google\Model
{
/**
* Required. Specific value to be assigned
*
* @var string
*/
public $value;
/**
* Required. Specific value to be assigned
*
* @param string $value
*/
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(AssignSpecificValue::class, 'Google_Service_DatabaseMigrationService_AssignSpecificValue');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_DatabaseMigrationService_AuditConfig');
@@ -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\DatabaseMigrationService;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_DatabaseMigrationService_AuditLogConfig');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class AuthorizedNetwork extends \Google\Model
{
/**
* Optional. CIDR range for one authorzied network of the instance.
*
* @var string
*/
public $cidrRange;
/**
* Optional. CIDR range for one authorzied network of the instance.
*
* @param string $cidrRange
*/
public function setCidrRange($cidrRange)
{
$this->cidrRange = $cidrRange;
}
/**
* @return string
*/
public function getCidrRange()
{
return $this->cidrRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizedNetwork::class, 'Google_Service_DatabaseMigrationService_AuthorizedNetwork');
@@ -0,0 +1,300 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class BackgroundJobLogEntry extends \Google\Model
{
/**
* The status is not specified. This state is used when job is not yet
* finished.
*/
public const COMPLETION_STATE_JOB_COMPLETION_STATE_UNSPECIFIED = 'JOB_COMPLETION_STATE_UNSPECIFIED';
/**
* Success.
*/
public const COMPLETION_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* Error.
*/
public const COMPLETION_STATE_FAILED = 'FAILED';
/**
* Unspecified background job type.
*/
public const JOB_TYPE_BACKGROUND_JOB_TYPE_UNSPECIFIED = 'BACKGROUND_JOB_TYPE_UNSPECIFIED';
/**
* Job to seed from the source database.
*/
public const JOB_TYPE_BACKGROUND_JOB_TYPE_SOURCE_SEED = 'BACKGROUND_JOB_TYPE_SOURCE_SEED';
/**
* Job to convert the source database into a draft of the destination
* database.
*/
public const JOB_TYPE_BACKGROUND_JOB_TYPE_CONVERT = 'BACKGROUND_JOB_TYPE_CONVERT';
/**
* Job to apply the draft tree onto the destination.
*/
public const JOB_TYPE_BACKGROUND_JOB_TYPE_APPLY_DESTINATION = 'BACKGROUND_JOB_TYPE_APPLY_DESTINATION';
/**
* Job to import and convert mapping rules from an external source such as an
* ora2pg config file.
*/
public const JOB_TYPE_BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE = 'BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE';
protected $applyJobDetailsType = ApplyJobDetails::class;
protected $applyJobDetailsDataType = '';
/**
* Output only. Job completion comment, such as how many entities were seeded,
* how many warnings were found during conversion, and similar information.
*
* @var string
*/
public $completionComment;
/**
* Output only. Job completion state, i.e. the final state after the job
* completed.
*
* @var string
*/
public $completionState;
protected $convertJobDetailsType = ConvertJobDetails::class;
protected $convertJobDetailsDataType = '';
/**
* The timestamp when the background job was finished.
*
* @var string
*/
public $finishTime;
/**
* The background job log entry ID.
*
* @var string
*/
public $id;
protected $importRulesJobDetailsType = ImportRulesJobDetails::class;
protected $importRulesJobDetailsDataType = '';
/**
* The type of job that was executed.
*
* @var string
*/
public $jobType;
/**
* Output only. Whether the client requested the conversion workspace to be
* committed after a successful completion of the job.
*
* @var bool
*/
public $requestAutocommit;
protected $seedJobDetailsType = SeedJobDetails::class;
protected $seedJobDetailsDataType = '';
/**
* The timestamp when the background job was started.
*
* @var string
*/
public $startTime;
/**
* Output only. Apply job details.
*
* @param ApplyJobDetails $applyJobDetails
*/
public function setApplyJobDetails(ApplyJobDetails $applyJobDetails)
{
$this->applyJobDetails = $applyJobDetails;
}
/**
* @return ApplyJobDetails
*/
public function getApplyJobDetails()
{
return $this->applyJobDetails;
}
/**
* Output only. Job completion comment, such as how many entities were seeded,
* how many warnings were found during conversion, and similar information.
*
* @param string $completionComment
*/
public function setCompletionComment($completionComment)
{
$this->completionComment = $completionComment;
}
/**
* @return string
*/
public function getCompletionComment()
{
return $this->completionComment;
}
/**
* Output only. Job completion state, i.e. the final state after the job
* completed.
*
* Accepted values: JOB_COMPLETION_STATE_UNSPECIFIED, SUCCEEDED, FAILED
*
* @param self::COMPLETION_STATE_* $completionState
*/
public function setCompletionState($completionState)
{
$this->completionState = $completionState;
}
/**
* @return self::COMPLETION_STATE_*
*/
public function getCompletionState()
{
return $this->completionState;
}
/**
* Output only. Convert job details.
*
* @param ConvertJobDetails $convertJobDetails
*/
public function setConvertJobDetails(ConvertJobDetails $convertJobDetails)
{
$this->convertJobDetails = $convertJobDetails;
}
/**
* @return ConvertJobDetails
*/
public function getConvertJobDetails()
{
return $this->convertJobDetails;
}
/**
* The timestamp when the background job was finished.
*
* @param string $finishTime
*/
public function setFinishTime($finishTime)
{
$this->finishTime = $finishTime;
}
/**
* @return string
*/
public function getFinishTime()
{
return $this->finishTime;
}
/**
* The background job log entry ID.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Import rules job details.
*
* @param ImportRulesJobDetails $importRulesJobDetails
*/
public function setImportRulesJobDetails(ImportRulesJobDetails $importRulesJobDetails)
{
$this->importRulesJobDetails = $importRulesJobDetails;
}
/**
* @return ImportRulesJobDetails
*/
public function getImportRulesJobDetails()
{
return $this->importRulesJobDetails;
}
/**
* The type of job that was executed.
*
* Accepted values: BACKGROUND_JOB_TYPE_UNSPECIFIED,
* BACKGROUND_JOB_TYPE_SOURCE_SEED, BACKGROUND_JOB_TYPE_CONVERT,
* BACKGROUND_JOB_TYPE_APPLY_DESTINATION,
* BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE
*
* @param self::JOB_TYPE_* $jobType
*/
public function setJobType($jobType)
{
$this->jobType = $jobType;
}
/**
* @return self::JOB_TYPE_*
*/
public function getJobType()
{
return $this->jobType;
}
/**
* Output only. Whether the client requested the conversion workspace to be
* committed after a successful completion of the job.
*
* @param bool $requestAutocommit
*/
public function setRequestAutocommit($requestAutocommit)
{
$this->requestAutocommit = $requestAutocommit;
}
/**
* @return bool
*/
public function getRequestAutocommit()
{
return $this->requestAutocommit;
}
/**
* Output only. Seed job details.
*
* @param SeedJobDetails $seedJobDetails
*/
public function setSeedJobDetails(SeedJobDetails $seedJobDetails)
{
$this->seedJobDetails = $seedJobDetails;
}
/**
* @return SeedJobDetails
*/
public function getSeedJobDetails()
{
return $this->seedJobDetails;
}
/**
* The timestamp when the background job was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackgroundJobLogEntry::class, 'Google_Service_DatabaseMigrationService_BackgroundJobLogEntry');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class BadRequest extends \Google\Collection
{
protected $collection_key = 'fieldViolations';
protected $fieldViolationsType = FieldViolation::class;
protected $fieldViolationsDataType = 'array';
/**
* Describes all violations in a client request.
*
* @param FieldViolation[] $fieldViolations
*/
public function setFieldViolations($fieldViolations)
{
$this->fieldViolations = $fieldViolations;
}
/**
* @return FieldViolation[]
*/
public function getFieldViolations()
{
return $this->fieldViolations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BadRequest::class, 'Google_Service_DatabaseMigrationService_BadRequest');
@@ -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\DatabaseMigrationService;
class BinaryLogParser extends \Google\Model
{
protected $logFileDirectoriesType = LogFileDirectories::class;
protected $logFileDirectoriesDataType = '';
protected $oracleAsmLogFileAccessType = OracleAsmLogFileAccess::class;
protected $oracleAsmLogFileAccessDataType = '';
/**
* Use Oracle directories.
*
* @param LogFileDirectories $logFileDirectories
*/
public function setLogFileDirectories(LogFileDirectories $logFileDirectories)
{
$this->logFileDirectories = $logFileDirectories;
}
/**
* @return LogFileDirectories
*/
public function getLogFileDirectories()
{
return $this->logFileDirectories;
}
/**
* Use Oracle ASM.
*
* @param OracleAsmLogFileAccess $oracleAsmLogFileAccess
*/
public function setOracleAsmLogFileAccess(OracleAsmLogFileAccess $oracleAsmLogFileAccess)
{
$this->oracleAsmLogFileAccess = $oracleAsmLogFileAccess;
}
/**
* @return OracleAsmLogFileAccess
*/
public function getOracleAsmLogFileAccess()
{
return $this->oracleAsmLogFileAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BinaryLogParser::class, 'Google_Service_DatabaseMigrationService_BinaryLogParser');
@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_DatabaseMigrationService_Binding');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_DatabaseMigrationService_CancelOperationRequest');
@@ -0,0 +1,138 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class CloudSqlConnectionProfile extends \Google\Model
{
/**
* Output only. The Cloud SQL database instance's additional (outgoing) public
* IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
* multiple zones / highly available).
*
* @var string
*/
public $additionalPublicIp;
/**
* Output only. The Cloud SQL instance ID that this connection profile is
* associated with.
*
* @var string
*/
public $cloudSqlId;
/**
* Output only. The Cloud SQL database instance's private IP.
*
* @var string
*/
public $privateIp;
/**
* Output only. The Cloud SQL database instance's public IP.
*
* @var string
*/
public $publicIp;
protected $settingsType = CloudSqlSettings::class;
protected $settingsDataType = '';
/**
* Output only. The Cloud SQL database instance's additional (outgoing) public
* IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
* multiple zones / highly available).
*
* @param string $additionalPublicIp
*/
public function setAdditionalPublicIp($additionalPublicIp)
{
$this->additionalPublicIp = $additionalPublicIp;
}
/**
* @return string
*/
public function getAdditionalPublicIp()
{
return $this->additionalPublicIp;
}
/**
* Output only. The Cloud SQL instance ID that this connection profile is
* associated with.
*
* @param string $cloudSqlId
*/
public function setCloudSqlId($cloudSqlId)
{
$this->cloudSqlId = $cloudSqlId;
}
/**
* @return string
*/
public function getCloudSqlId()
{
return $this->cloudSqlId;
}
/**
* Output only. The Cloud SQL database instance's private IP.
*
* @param string $privateIp
*/
public function setPrivateIp($privateIp)
{
$this->privateIp = $privateIp;
}
/**
* @return string
*/
public function getPrivateIp()
{
return $this->privateIp;
}
/**
* Output only. The Cloud SQL database instance's public IP.
*
* @param string $publicIp
*/
public function setPublicIp($publicIp)
{
$this->publicIp = $publicIp;
}
/**
* @return string
*/
public function getPublicIp()
{
return $this->publicIp;
}
/**
* Immutable. Metadata used to create the destination Cloud SQL database.
*
* @param CloudSqlSettings $settings
*/
public function setSettings(CloudSqlSettings $settings)
{
$this->settings = $settings;
}
/**
* @return CloudSqlSettings
*/
public function getSettings()
{
return $this->settings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSqlConnectionProfile::class, 'Google_Service_DatabaseMigrationService_CloudSqlConnectionProfile');
@@ -0,0 +1,757 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class CloudSqlSettings extends \Google\Model
{
/**
* unspecified policy.
*/
public const ACTIVATION_POLICY_SQL_ACTIVATION_POLICY_UNSPECIFIED = 'SQL_ACTIVATION_POLICY_UNSPECIFIED';
/**
* The instance is always up and running.
*/
public const ACTIVATION_POLICY_ALWAYS = 'ALWAYS';
/**
* The instance should never spin up.
*/
public const ACTIVATION_POLICY_NEVER = 'NEVER';
/**
* This is an unknown Availability type.
*/
public const AVAILABILITY_TYPE_SQL_AVAILABILITY_TYPE_UNSPECIFIED = 'SQL_AVAILABILITY_TYPE_UNSPECIFIED';
/**
* Zonal availablility instance.
*/
public const AVAILABILITY_TYPE_ZONAL = 'ZONAL';
/**
* Regional availability instance.
*/
public const AVAILABILITY_TYPE_REGIONAL = 'REGIONAL';
/**
* Unspecified.
*/
public const DATA_DISK_TYPE_SQL_DATA_DISK_TYPE_UNSPECIFIED = 'SQL_DATA_DISK_TYPE_UNSPECIFIED';
/**
* SSD disk.
*/
public const DATA_DISK_TYPE_PD_SSD = 'PD_SSD';
/**
* HDD disk.
*/
public const DATA_DISK_TYPE_PD_HDD = 'PD_HDD';
/**
* A Hyperdisk Balanced data disk.
*/
public const DATA_DISK_TYPE_HYPERDISK_BALANCED = 'HYPERDISK_BALANCED';
/**
* Unspecified version.
*/
public const DATABASE_VERSION_SQL_DATABASE_VERSION_UNSPECIFIED = 'SQL_DATABASE_VERSION_UNSPECIFIED';
/**
* MySQL 5.6.
*/
public const DATABASE_VERSION_MYSQL_5_6 = 'MYSQL_5_6';
/**
* MySQL 5.7.
*/
public const DATABASE_VERSION_MYSQL_5_7 = 'MYSQL_5_7';
/**
* MySQL 8.0.
*/
public const DATABASE_VERSION_MYSQL_8_0 = 'MYSQL_8_0';
/**
* The database major version is MySQL 8.0 and the minor version is 18.
*/
public const DATABASE_VERSION_MYSQL_8_0_18 = 'MYSQL_8_0_18';
/**
* The database major version is MySQL 8.0 and the minor version is 26.
*/
public const DATABASE_VERSION_MYSQL_8_0_26 = 'MYSQL_8_0_26';
/**
* The database major version is MySQL 8.0 and the minor version is 27.
*/
public const DATABASE_VERSION_MYSQL_8_0_27 = 'MYSQL_8_0_27';
/**
* The database major version is MySQL 8.0 and the minor version is 28.
*/
public const DATABASE_VERSION_MYSQL_8_0_28 = 'MYSQL_8_0_28';
/**
* The database major version is MySQL 8.0 and the minor version is 30.
*/
public const DATABASE_VERSION_MYSQL_8_0_30 = 'MYSQL_8_0_30';
/**
* The database major version is MySQL 8.0 and the minor version is 31.
*/
public const DATABASE_VERSION_MYSQL_8_0_31 = 'MYSQL_8_0_31';
/**
* The database major version is MySQL 8.0 and the minor version is 32.
*/
public const DATABASE_VERSION_MYSQL_8_0_32 = 'MYSQL_8_0_32';
/**
* The database major version is MySQL 8.0 and the minor version is 33.
*/
public const DATABASE_VERSION_MYSQL_8_0_33 = 'MYSQL_8_0_33';
/**
* The database major version is MySQL 8.0 and the minor version is 34.
*/
public const DATABASE_VERSION_MYSQL_8_0_34 = 'MYSQL_8_0_34';
/**
* The database major version is MySQL 8.0 and the minor version is 35.
*/
public const DATABASE_VERSION_MYSQL_8_0_35 = 'MYSQL_8_0_35';
/**
* The database major version is MySQL 8.0 and the minor version is 36.
*/
public const DATABASE_VERSION_MYSQL_8_0_36 = 'MYSQL_8_0_36';
/**
* The database major version is MySQL 8.0 and the minor version is 37.
*/
public const DATABASE_VERSION_MYSQL_8_0_37 = 'MYSQL_8_0_37';
/**
* MySQL 8.4.
*/
public const DATABASE_VERSION_MYSQL_8_4 = 'MYSQL_8_4';
/**
* PostgreSQL 9.6.
*/
public const DATABASE_VERSION_POSTGRES_9_6 = 'POSTGRES_9_6';
/**
* PostgreSQL 11.
*/
public const DATABASE_VERSION_POSTGRES_11 = 'POSTGRES_11';
/**
* PostgreSQL 10.
*/
public const DATABASE_VERSION_POSTGRES_10 = 'POSTGRES_10';
/**
* PostgreSQL 12.
*/
public const DATABASE_VERSION_POSTGRES_12 = 'POSTGRES_12';
/**
* PostgreSQL 13.
*/
public const DATABASE_VERSION_POSTGRES_13 = 'POSTGRES_13';
/**
* PostgreSQL 14.
*/
public const DATABASE_VERSION_POSTGRES_14 = 'POSTGRES_14';
/**
* PostgreSQL 15.
*/
public const DATABASE_VERSION_POSTGRES_15 = 'POSTGRES_15';
/**
* PostgreSQL 16.
*/
public const DATABASE_VERSION_POSTGRES_16 = 'POSTGRES_16';
/**
* The instance did not specify the edition.
*/
public const EDITION_EDITION_UNSPECIFIED = 'EDITION_UNSPECIFIED';
/**
* The instance is an enterprise edition.
*/
public const EDITION_ENTERPRISE = 'ENTERPRISE';
/**
* The instance is an enterprise plus edition.
*/
public const EDITION_ENTERPRISE_PLUS = 'ENTERPRISE_PLUS';
/**
* The activation policy specifies when the instance is activated; it is
* applicable only when the instance state is 'RUNNABLE'. Valid values:
* 'ALWAYS': The instance is on, and remains so even in the absence of
* connection requests. `NEVER`: The instance is off; it is not activated,
* even if a connection request arrives.
*
* @var string
*/
public $activationPolicy;
/**
* [default: ON] If you enable this setting, Cloud SQL checks your available
* storage every 30 seconds. If the available storage falls below a threshold
* size, Cloud SQL automatically adds additional storage capacity. If the
* available storage repeatedly falls below the threshold size, Cloud SQL
* continues to add storage until it reaches the maximum of 30 TB.
*
* @var bool
*/
public $autoStorageIncrease;
/**
* Optional. Availability type. Potential values: * `ZONAL`: The instance
* serves data from only one zone. Outages in that zone affect data
* availability. * `REGIONAL`: The instance can serve data from more than one
* zone in a region (it is highly available).
*
* @var string
*/
public $availabilityType;
/**
* The KMS key name used for the csql instance.
*
* @var string
*/
public $cmekKeyName;
/**
* The Cloud SQL default instance level collation.
*
* @var string
*/
public $collation;
protected $dataCacheConfigType = DataCacheConfig::class;
protected $dataCacheConfigDataType = '';
/**
* Optional. Provisioned number of I/O operations per second for the data
* disk. This field is only used for hyperdisk-balanced disk types.
*
* @var string
*/
public $dataDiskProvisionedIops;
/**
* Optional. Provisioned throughput measured in MiB per second for the data
* disk. This field is only used for hyperdisk-balanced disk types.
*
* @var string
*/
public $dataDiskProvisionedThroughput;
/**
* The storage capacity available to the database, in GB. The minimum (and
* default) size is 10GB.
*
* @var string
*/
public $dataDiskSizeGb;
/**
* The type of storage: `PD_SSD` (default) or `PD_HDD` or
* `HYPERDISK_BALANCED`.
*
* @var string
*/
public $dataDiskType;
/**
* The database flags passed to the Cloud SQL instance at startup. An object
* containing a list of "key": value pairs. Example: { "name": "wrench",
* "mass": "1.3kg", "count": "3" }.
*
* @var string[]
*/
public $databaseFlags;
/**
* The database engine type and version. Deprecated. Use database_version_name
* instead.
*
* @var string
*/
public $databaseVersion;
/**
* Optional. The database engine type and version name.
*
* @var string
*/
public $databaseVersionName;
/**
* Optional. The edition of the given Cloud SQL instance.
*
* @var string
*/
public $edition;
protected $ipConfigType = SqlIpConfig::class;
protected $ipConfigDataType = '';
/**
* Input only. Initial root password.
*
* @var string
*/
public $rootPassword;
/**
* Output only. Indicates If this connection profile root password is stored.
*
* @var bool
*/
public $rootPasswordSet;
/**
* Optional. The Google Cloud Platform zone where the failover Cloud SQL
* database instance is located. Used when the Cloud SQL database availability
* type is REGIONAL (i.e. multiple zones / highly available).
*
* @var string
*/
public $secondaryZone;
/**
* The Database Migration Service source connection profile ID, in the format:
* `projects/my_project_name/locations/us-
* central1/connectionProfiles/connection_profile_ID`
*
* @var string
*/
public $sourceId;
/**
* The maximum size to which storage capacity can be automatically increased.
* The default value is 0, which specifies that there is no limit.
*
* @var string
*/
public $storageAutoResizeLimit;
/**
* The tier (or machine type) for this instance, for example:
* `db-n1-standard-1` (MySQL instances) or `db-custom-1-3840` (PostgreSQL
* instances). For more information, see [Cloud SQL Instance
* Settings](https://cloud.google.com/sql/docs/mysql/instance-settings).
*
* @var string
*/
public $tier;
/**
* The resource labels for a Cloud SQL instance to use to annotate any related
* underlying resources such as Compute Engine VMs. An object containing a
* list of "key": "value" pairs. Example: `{ "name": "wrench", "mass": "18kg",
* "count": "3" }`.
*
* @var string[]
*/
public $userLabels;
/**
* The Google Cloud Platform zone where your Cloud SQL database instance is
* located.
*
* @var string
*/
public $zone;
/**
* The activation policy specifies when the instance is activated; it is
* applicable only when the instance state is 'RUNNABLE'. Valid values:
* 'ALWAYS': The instance is on, and remains so even in the absence of
* connection requests. `NEVER`: The instance is off; it is not activated,
* even if a connection request arrives.
*
* Accepted values: SQL_ACTIVATION_POLICY_UNSPECIFIED, ALWAYS, NEVER
*
* @param self::ACTIVATION_POLICY_* $activationPolicy
*/
public function setActivationPolicy($activationPolicy)
{
$this->activationPolicy = $activationPolicy;
}
/**
* @return self::ACTIVATION_POLICY_*
*/
public function getActivationPolicy()
{
return $this->activationPolicy;
}
/**
* [default: ON] If you enable this setting, Cloud SQL checks your available
* storage every 30 seconds. If the available storage falls below a threshold
* size, Cloud SQL automatically adds additional storage capacity. If the
* available storage repeatedly falls below the threshold size, Cloud SQL
* continues to add storage until it reaches the maximum of 30 TB.
*
* @param bool $autoStorageIncrease
*/
public function setAutoStorageIncrease($autoStorageIncrease)
{
$this->autoStorageIncrease = $autoStorageIncrease;
}
/**
* @return bool
*/
public function getAutoStorageIncrease()
{
return $this->autoStorageIncrease;
}
/**
* Optional. Availability type. Potential values: * `ZONAL`: The instance
* serves data from only one zone. Outages in that zone affect data
* availability. * `REGIONAL`: The instance can serve data from more than one
* zone in a region (it is highly available).
*
* Accepted values: SQL_AVAILABILITY_TYPE_UNSPECIFIED, ZONAL, REGIONAL
*
* @param self::AVAILABILITY_TYPE_* $availabilityType
*/
public function setAvailabilityType($availabilityType)
{
$this->availabilityType = $availabilityType;
}
/**
* @return self::AVAILABILITY_TYPE_*
*/
public function getAvailabilityType()
{
return $this->availabilityType;
}
/**
* The KMS key name used for the csql instance.
*
* @param string $cmekKeyName
*/
public function setCmekKeyName($cmekKeyName)
{
$this->cmekKeyName = $cmekKeyName;
}
/**
* @return string
*/
public function getCmekKeyName()
{
return $this->cmekKeyName;
}
/**
* The Cloud SQL default instance level collation.
*
* @param string $collation
*/
public function setCollation($collation)
{
$this->collation = $collation;
}
/**
* @return string
*/
public function getCollation()
{
return $this->collation;
}
/**
* Optional. Data cache is an optional feature available for Cloud SQL for
* MySQL Enterprise Plus edition only. For more information on data cache, see
* [Data cache overview](https://cloud.google.com/sql/help/mysql-data-cache)
* in Cloud SQL documentation.
*
* @param DataCacheConfig $dataCacheConfig
*/
public function setDataCacheConfig(DataCacheConfig $dataCacheConfig)
{
$this->dataCacheConfig = $dataCacheConfig;
}
/**
* @return DataCacheConfig
*/
public function getDataCacheConfig()
{
return $this->dataCacheConfig;
}
/**
* Optional. Provisioned number of I/O operations per second for the data
* disk. This field is only used for hyperdisk-balanced disk types.
*
* @param string $dataDiskProvisionedIops
*/
public function setDataDiskProvisionedIops($dataDiskProvisionedIops)
{
$this->dataDiskProvisionedIops = $dataDiskProvisionedIops;
}
/**
* @return string
*/
public function getDataDiskProvisionedIops()
{
return $this->dataDiskProvisionedIops;
}
/**
* Optional. Provisioned throughput measured in MiB per second for the data
* disk. This field is only used for hyperdisk-balanced disk types.
*
* @param string $dataDiskProvisionedThroughput
*/
public function setDataDiskProvisionedThroughput($dataDiskProvisionedThroughput)
{
$this->dataDiskProvisionedThroughput = $dataDiskProvisionedThroughput;
}
/**
* @return string
*/
public function getDataDiskProvisionedThroughput()
{
return $this->dataDiskProvisionedThroughput;
}
/**
* The storage capacity available to the database, in GB. The minimum (and
* default) size is 10GB.
*
* @param string $dataDiskSizeGb
*/
public function setDataDiskSizeGb($dataDiskSizeGb)
{
$this->dataDiskSizeGb = $dataDiskSizeGb;
}
/**
* @return string
*/
public function getDataDiskSizeGb()
{
return $this->dataDiskSizeGb;
}
/**
* The type of storage: `PD_SSD` (default) or `PD_HDD` or
* `HYPERDISK_BALANCED`.
*
* Accepted values: SQL_DATA_DISK_TYPE_UNSPECIFIED, PD_SSD, PD_HDD,
* HYPERDISK_BALANCED
*
* @param self::DATA_DISK_TYPE_* $dataDiskType
*/
public function setDataDiskType($dataDiskType)
{
$this->dataDiskType = $dataDiskType;
}
/**
* @return self::DATA_DISK_TYPE_*
*/
public function getDataDiskType()
{
return $this->dataDiskType;
}
/**
* The database flags passed to the Cloud SQL instance at startup. An object
* containing a list of "key": value pairs. Example: { "name": "wrench",
* "mass": "1.3kg", "count": "3" }.
*
* @param string[] $databaseFlags
*/
public function setDatabaseFlags($databaseFlags)
{
$this->databaseFlags = $databaseFlags;
}
/**
* @return string[]
*/
public function getDatabaseFlags()
{
return $this->databaseFlags;
}
/**
* The database engine type and version. Deprecated. Use database_version_name
* instead.
*
* Accepted values: SQL_DATABASE_VERSION_UNSPECIFIED, MYSQL_5_6, MYSQL_5_7,
* MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_8_0_27, MYSQL_8_0_28,
* MYSQL_8_0_30, MYSQL_8_0_31, MYSQL_8_0_32, MYSQL_8_0_33, MYSQL_8_0_34,
* MYSQL_8_0_35, MYSQL_8_0_36, MYSQL_8_0_37, MYSQL_8_4, POSTGRES_9_6,
* POSTGRES_11, POSTGRES_10, POSTGRES_12, POSTGRES_13, POSTGRES_14,
* POSTGRES_15, POSTGRES_16
*
* @param self::DATABASE_VERSION_* $databaseVersion
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return self::DATABASE_VERSION_*
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* Optional. The database engine type and version name.
*
* @param string $databaseVersionName
*/
public function setDatabaseVersionName($databaseVersionName)
{
$this->databaseVersionName = $databaseVersionName;
}
/**
* @return string
*/
public function getDatabaseVersionName()
{
return $this->databaseVersionName;
}
/**
* Optional. The edition of the given Cloud SQL instance.
*
* Accepted values: EDITION_UNSPECIFIED, ENTERPRISE, ENTERPRISE_PLUS
*
* @param self::EDITION_* $edition
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return self::EDITION_*
*/
public function getEdition()
{
return $this->edition;
}
/**
* The settings for IP Management. This allows to enable or disable the
* instance IP and manage which external networks can connect to the instance.
* The IPv4 address cannot be disabled.
*
* @param SqlIpConfig $ipConfig
*/
public function setIpConfig(SqlIpConfig $ipConfig)
{
$this->ipConfig = $ipConfig;
}
/**
* @return SqlIpConfig
*/
public function getIpConfig()
{
return $this->ipConfig;
}
/**
* Input only. Initial root password.
*
* @param string $rootPassword
*/
public function setRootPassword($rootPassword)
{
$this->rootPassword = $rootPassword;
}
/**
* @return string
*/
public function getRootPassword()
{
return $this->rootPassword;
}
/**
* Output only. Indicates If this connection profile root password is stored.
*
* @param bool $rootPasswordSet
*/
public function setRootPasswordSet($rootPasswordSet)
{
$this->rootPasswordSet = $rootPasswordSet;
}
/**
* @return bool
*/
public function getRootPasswordSet()
{
return $this->rootPasswordSet;
}
/**
* Optional. The Google Cloud Platform zone where the failover Cloud SQL
* database instance is located. Used when the Cloud SQL database availability
* type is REGIONAL (i.e. multiple zones / highly available).
*
* @param string $secondaryZone
*/
public function setSecondaryZone($secondaryZone)
{
$this->secondaryZone = $secondaryZone;
}
/**
* @return string
*/
public function getSecondaryZone()
{
return $this->secondaryZone;
}
/**
* The Database Migration Service source connection profile ID, in the format:
* `projects/my_project_name/locations/us-
* central1/connectionProfiles/connection_profile_ID`
*
* @param string $sourceId
*/
public function setSourceId($sourceId)
{
$this->sourceId = $sourceId;
}
/**
* @return string
*/
public function getSourceId()
{
return $this->sourceId;
}
/**
* The maximum size to which storage capacity can be automatically increased.
* The default value is 0, which specifies that there is no limit.
*
* @param string $storageAutoResizeLimit
*/
public function setStorageAutoResizeLimit($storageAutoResizeLimit)
{
$this->storageAutoResizeLimit = $storageAutoResizeLimit;
}
/**
* @return string
*/
public function getStorageAutoResizeLimit()
{
return $this->storageAutoResizeLimit;
}
/**
* The tier (or machine type) for this instance, for example:
* `db-n1-standard-1` (MySQL instances) or `db-custom-1-3840` (PostgreSQL
* instances). For more information, see [Cloud SQL Instance
* Settings](https://cloud.google.com/sql/docs/mysql/instance-settings).
*
* @param string $tier
*/
public function setTier($tier)
{
$this->tier = $tier;
}
/**
* @return string
*/
public function getTier()
{
return $this->tier;
}
/**
* The resource labels for a Cloud SQL instance to use to annotate any related
* underlying resources such as Compute Engine VMs. An object containing a
* list of "key": "value" pairs. Example: `{ "name": "wrench", "mass": "18kg",
* "count": "3" }`.
*
* @param string[] $userLabels
*/
public function setUserLabels($userLabels)
{
$this->userLabels = $userLabels;
}
/**
* @return string[]
*/
public function getUserLabels()
{
return $this->userLabels;
}
/**
* The Google Cloud Platform zone where your Cloud SQL database instance is
* located.
*
* @param string $zone
*/
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(CloudSqlSettings::class, 'Google_Service_DatabaseMigrationService_CloudSqlSettings');
@@ -0,0 +1,447 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ColumnEntity extends \Google\Collection
{
protected $collection_key = 'setValues';
/**
* Is the column of array type.
*
* @var bool
*/
public $array;
/**
* If the column is array, of which length.
*
* @var int
*/
public $arrayLength;
/**
* Is the column auto-generated/identity.
*
* @var bool
*/
public $autoGenerated;
/**
* Charset override - instead of table level charset.
*
* @var string
*/
public $charset;
/**
* Collation override - instead of table level collation.
*
* @var string
*/
public $collation;
/**
* Comment associated with the column.
*
* @var string
*/
public $comment;
/**
* Is the column a computed column.
*
* @var bool
*/
public $computed;
/**
* Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
/**
* Column data type.
*
* @var string
*/
public $dataType;
/**
* Default value of the column.
*
* @var string
*/
public $defaultValue;
/**
* Column fractional second precision - used for timestamp based datatypes.
*
* @var int
*/
public $fractionalSecondsPrecision;
/**
* Column length - e.g. varchar (50).
*
* @var string
*/
public $length;
/**
* Column name.
*
* @var string
*/
public $name;
/**
* Is the column nullable.
*
* @var bool
*/
public $nullable;
/**
* Column order in the table.
*
* @var int
*/
public $ordinalPosition;
/**
* Column precision - when relevant.
*
* @var int
*/
public $precision;
/**
* Column scale - when relevant.
*
* @var int
*/
public $scale;
/**
* Specifies the list of values allowed in the column. Only used for set data
* type.
*
* @var string[]
*/
public $setValues;
/**
* Is the column a UDT.
*
* @var bool
*/
public $udt;
/**
* Is the column of array type.
*
* @param bool $array
*/
public function setArray($array)
{
$this->array = $array;
}
/**
* @return bool
*/
public function getArray()
{
return $this->array;
}
/**
* If the column is array, of which length.
*
* @param int $arrayLength
*/
public function setArrayLength($arrayLength)
{
$this->arrayLength = $arrayLength;
}
/**
* @return int
*/
public function getArrayLength()
{
return $this->arrayLength;
}
/**
* Is the column auto-generated/identity.
*
* @param bool $autoGenerated
*/
public function setAutoGenerated($autoGenerated)
{
$this->autoGenerated = $autoGenerated;
}
/**
* @return bool
*/
public function getAutoGenerated()
{
return $this->autoGenerated;
}
/**
* Charset override - instead of table level charset.
*
* @param string $charset
*/
public function setCharset($charset)
{
$this->charset = $charset;
}
/**
* @return string
*/
public function getCharset()
{
return $this->charset;
}
/**
* Collation override - instead of table level collation.
*
* @param string $collation
*/
public function setCollation($collation)
{
$this->collation = $collation;
}
/**
* @return string
*/
public function getCollation()
{
return $this->collation;
}
/**
* Comment associated with the column.
*
* @param string $comment
*/
public function setComment($comment)
{
$this->comment = $comment;
}
/**
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Is the column a computed column.
*
* @param bool $computed
*/
public function setComputed($computed)
{
$this->computed = $computed;
}
/**
* @return bool
*/
public function getComputed()
{
return $this->computed;
}
/**
* Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* Column data type.
*
* @param string $dataType
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return string
*/
public function getDataType()
{
return $this->dataType;
}
/**
* Default value of the column.
*
* @param string $defaultValue
*/
public function setDefaultValue($defaultValue)
{
$this->defaultValue = $defaultValue;
}
/**
* @return string
*/
public function getDefaultValue()
{
return $this->defaultValue;
}
/**
* Column fractional second precision - used for timestamp based datatypes.
*
* @param int $fractionalSecondsPrecision
*/
public function setFractionalSecondsPrecision($fractionalSecondsPrecision)
{
$this->fractionalSecondsPrecision = $fractionalSecondsPrecision;
}
/**
* @return int
*/
public function getFractionalSecondsPrecision()
{
return $this->fractionalSecondsPrecision;
}
/**
* Column length - e.g. varchar (50).
*
* @param string $length
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* Column name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Is the column nullable.
*
* @param bool $nullable
*/
public function setNullable($nullable)
{
$this->nullable = $nullable;
}
/**
* @return bool
*/
public function getNullable()
{
return $this->nullable;
}
/**
* Column order in the table.
*
* @param int $ordinalPosition
*/
public function setOrdinalPosition($ordinalPosition)
{
$this->ordinalPosition = $ordinalPosition;
}
/**
* @return int
*/
public function getOrdinalPosition()
{
return $this->ordinalPosition;
}
/**
* Column precision - when relevant.
*
* @param int $precision
*/
public function setPrecision($precision)
{
$this->precision = $precision;
}
/**
* @return int
*/
public function getPrecision()
{
return $this->precision;
}
/**
* Column scale - when relevant.
*
* @param int $scale
*/
public function setScale($scale)
{
$this->scale = $scale;
}
/**
* @return int
*/
public function getScale()
{
return $this->scale;
}
/**
* Specifies the list of values allowed in the column. Only used for set data
* type.
*
* @param string[] $setValues
*/
public function setSetValues($setValues)
{
$this->setValues = $setValues;
}
/**
* @return string[]
*/
public function getSetValues()
{
return $this->setValues;
}
/**
* Is the column a UDT.
*
* @param bool $udt
*/
public function setUdt($udt)
{
$this->udt = $udt;
}
/**
* @return bool
*/
public function getUdt()
{
return $this->udt;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ColumnEntity::class, 'Google_Service_DatabaseMigrationService_ColumnEntity');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class CommitConversionWorkspaceRequest extends \Google\Model
{
/**
* Optional. Optional name of the commit.
*
* @var string
*/
public $commitName;
/**
* Optional. Optional name of the commit.
*
* @param string $commitName
*/
public function setCommitName($commitName)
{
$this->commitName = $commitName;
}
/**
* @return string
*/
public function getCommitName()
{
return $this->commitName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitConversionWorkspaceRequest::class, 'Google_Service_DatabaseMigrationService_CommitConversionWorkspaceRequest');
@@ -0,0 +1,104 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConditionalColumnSetValue extends \Google\Model
{
/**
* Optional. Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
protected $sourceNumericFilterType = SourceNumericFilter::class;
protected $sourceNumericFilterDataType = '';
protected $sourceTextFilterType = SourceTextFilter::class;
protected $sourceTextFilterDataType = '';
protected $valueTransformationType = ValueTransformation::class;
protected $valueTransformationDataType = '';
/**
* Optional. Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* Optional. Optional filter on source column precision and scale. Used for
* fixed point numbers such as NUMERIC/NUMBER data types.
*
* @param SourceNumericFilter $sourceNumericFilter
*/
public function setSourceNumericFilter(SourceNumericFilter $sourceNumericFilter)
{
$this->sourceNumericFilter = $sourceNumericFilter;
}
/**
* @return SourceNumericFilter
*/
public function getSourceNumericFilter()
{
return $this->sourceNumericFilter;
}
/**
* Optional. Optional filter on source column length. Used for text based data
* types like varchar.
*
* @param SourceTextFilter $sourceTextFilter
*/
public function setSourceTextFilter(SourceTextFilter $sourceTextFilter)
{
$this->sourceTextFilter = $sourceTextFilter;
}
/**
* @return SourceTextFilter
*/
public function getSourceTextFilter()
{
return $this->sourceTextFilter;
}
/**
* Required. Description of data transformation during migration.
*
* @param ValueTransformation $valueTransformation
*/
public function setValueTransformation(ValueTransformation $valueTransformation)
{
$this->valueTransformation = $valueTransformation;
}
/**
* @return ValueTransformation
*/
public function getValueTransformation()
{
return $this->valueTransformation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConditionalColumnSetValue::class, 'Google_Service_DatabaseMigrationService_ConditionalColumnSetValue');
@@ -0,0 +1,464 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConnectionProfile extends \Google\Model
{
/**
* Use this value for on-premise source database instances and ORACLE.
*/
public const PROVIDER_DATABASE_PROVIDER_UNSPECIFIED = 'DATABASE_PROVIDER_UNSPECIFIED';
/**
* Cloud SQL is the source instance provider.
*/
public const PROVIDER_CLOUDSQL = 'CLOUDSQL';
/**
* Amazon RDS is the source instance provider.
*/
public const PROVIDER_RDS = 'RDS';
/**
* Amazon Aurora is the source instance provider.
*/
public const PROVIDER_AURORA = 'AURORA';
/**
* AlloyDB for PostgreSQL is the source instance provider.
*/
public const PROVIDER_ALLOYDB = 'ALLOYDB';
/**
* Microsoft Azure Database for MySQL/PostgreSQL.
*/
public const PROVIDER_AZURE_DATABASE = 'AZURE_DATABASE';
/**
* The role is unspecified.
*/
public const ROLE_ROLE_UNSPECIFIED = 'ROLE_UNSPECIFIED';
/**
* The role is source.
*/
public const ROLE_SOURCE = 'SOURCE';
/**
* The role is destination.
*/
public const ROLE_DESTINATION = 'DESTINATION';
/**
* The state of the connection profile is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The connection profile is in draft mode and fully editable.
*/
public const STATE_DRAFT = 'DRAFT';
/**
* The connection profile is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The connection profile is ready.
*/
public const STATE_READY = 'READY';
/**
* The connection profile is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The connection profile is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The connection profile has been deleted.
*/
public const STATE_DELETED = 'DELETED';
/**
* The last action on the connection profile failed.
*/
public const STATE_FAILED = 'FAILED';
protected $alloydbType = AlloyDbConnectionProfile::class;
protected $alloydbDataType = '';
protected $cloudsqlType = CloudSqlConnectionProfile::class;
protected $cloudsqlDataType = '';
/**
* Output only. The timestamp when the resource was created. A timestamp in
* RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example:
* "2014-10-02T15:01:23.045123456Z".
*
* @var string
*/
public $createTime;
/**
* The connection profile display name.
*
* @var string
*/
public $displayName;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* The resource labels for connection profile to use to annotate any related
* underlying resources such as Compute Engine VMs. An object containing a
* list of "key": "value" pairs. Example: `{ "name": "wrench", "mass":
* "1.3kg", "count": "3" }`.
*
* @var string[]
*/
public $labels;
protected $mysqlType = MySqlConnectionProfile::class;
protected $mysqlDataType = '';
/**
* The name of this connection profile resource in the form of projects/{proje
* ct}/locations/{location}/connectionProfiles/{connectionProfile}.
*
* @var string
*/
public $name;
protected $oracleType = OracleConnectionProfile::class;
protected $oracleDataType = '';
protected $postgresqlType = PostgreSqlConnectionProfile::class;
protected $postgresqlDataType = '';
/**
* The database provider.
*
* @var string
*/
public $provider;
/**
* Optional. The connection profile role.
*
* @var string
*/
public $role;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
protected $sqlserverType = SqlServerConnectionProfile::class;
protected $sqlserverDataType = '';
/**
* The current connection profile state (e.g. DRAFT, READY, or FAILED).
*
* @var string
*/
public $state;
/**
* Output only. The timestamp when the resource was last updated. A timestamp
* in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example:
* "2014-10-02T15:01:23.045123456Z".
*
* @var string
*/
public $updateTime;
/**
* An AlloyDB cluster connection profile.
*
* @param AlloyDbConnectionProfile $alloydb
*/
public function setAlloydb(AlloyDbConnectionProfile $alloydb)
{
$this->alloydb = $alloydb;
}
/**
* @return AlloyDbConnectionProfile
*/
public function getAlloydb()
{
return $this->alloydb;
}
/**
* A CloudSQL database connection profile.
*
* @param CloudSqlConnectionProfile $cloudsql
*/
public function setCloudsql(CloudSqlConnectionProfile $cloudsql)
{
$this->cloudsql = $cloudsql;
}
/**
* @return CloudSqlConnectionProfile
*/
public function getCloudsql()
{
return $this->cloudsql;
}
/**
* Output only. The timestamp when the resource was created. A timestamp in
* RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example:
* "2014-10-02T15:01:23.045123456Z".
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The connection profile display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. The error details in case of state FAILED.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* The resource labels for connection profile to use to annotate any related
* underlying resources such as Compute Engine VMs. An object containing a
* list of "key": "value" pairs. Example: `{ "name": "wrench", "mass":
* "1.3kg", "count": "3" }`.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* A MySQL database connection profile.
*
* @param MySqlConnectionProfile $mysql
*/
public function setMysql(MySqlConnectionProfile $mysql)
{
$this->mysql = $mysql;
}
/**
* @return MySqlConnectionProfile
*/
public function getMysql()
{
return $this->mysql;
}
/**
* The name of this connection profile resource in the form of projects/{proje
* ct}/locations/{location}/connectionProfiles/{connectionProfile}.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* An Oracle database connection profile.
*
* @param OracleConnectionProfile $oracle
*/
public function setOracle(OracleConnectionProfile $oracle)
{
$this->oracle = $oracle;
}
/**
* @return OracleConnectionProfile
*/
public function getOracle()
{
return $this->oracle;
}
/**
* A PostgreSQL database connection profile.
*
* @param PostgreSqlConnectionProfile $postgresql
*/
public function setPostgresql(PostgreSqlConnectionProfile $postgresql)
{
$this->postgresql = $postgresql;
}
/**
* @return PostgreSqlConnectionProfile
*/
public function getPostgresql()
{
return $this->postgresql;
}
/**
* The database provider.
*
* Accepted values: DATABASE_PROVIDER_UNSPECIFIED, CLOUDSQL, RDS, AURORA,
* ALLOYDB, AZURE_DATABASE
*
* @param self::PROVIDER_* $provider
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return self::PROVIDER_*
*/
public function getProvider()
{
return $this->provider;
}
/**
* Optional. The connection profile role.
*
* Accepted values: ROLE_UNSPECIFIED, SOURCE, DESTINATION
*
* @param self::ROLE_* $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return self::ROLE_*
*/
public function getRole()
{
return $this->role;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Connection profile for a SQL Server data source.
*
* @param SqlServerConnectionProfile $sqlserver
*/
public function setSqlserver(SqlServerConnectionProfile $sqlserver)
{
$this->sqlserver = $sqlserver;
}
/**
* @return SqlServerConnectionProfile
*/
public function getSqlserver()
{
return $this->sqlserver;
}
/**
* The current connection profile state (e.g. DRAFT, READY, or FAILED).
*
* Accepted values: STATE_UNSPECIFIED, DRAFT, CREATING, READY, UPDATING,
* DELETING, DELETED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The timestamp when the resource was last updated. A timestamp
* in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example:
* "2014-10-02T15:01:23.045123456Z".
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectionProfile::class, 'Google_Service_DatabaseMigrationService_ConnectionProfile');
@@ -0,0 +1,199 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConstraintEntity extends \Google\Collection
{
protected $collection_key = 'tableColumns';
/**
* Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
/**
* The name of the table constraint.
*
* @var string
*/
public $name;
/**
* Reference columns which may be associated with the constraint. For example,
* if the constraint is a FOREIGN_KEY, this represents the list of full names
* of referenced columns by the foreign key.
*
* @var string[]
*/
public $referenceColumns;
/**
* Reference table which may be associated with the constraint. For example,
* if the constraint is a FOREIGN_KEY, this represents the list of full name
* of the referenced table by the foreign key.
*
* @var string
*/
public $referenceTable;
/**
* Table columns used as part of the Constraint, for example primary key
* constraint should list the columns which constitutes the key.
*
* @var string[]
*/
public $tableColumns;
/**
* Table which is associated with the constraint. In case the constraint is
* defined on a table, this field is left empty as this information is stored
* in parent_name. However, if constraint is defined on a view, this field
* stores the table name on which the view is defined.
*
* @var string
*/
public $tableName;
/**
* Type of constraint, for example unique, primary key, foreign key (currently
* only primary key is supported).
*
* @var string
*/
public $type;
/**
* Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* The name of the table constraint.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Reference columns which may be associated with the constraint. For example,
* if the constraint is a FOREIGN_KEY, this represents the list of full names
* of referenced columns by the foreign key.
*
* @param string[] $referenceColumns
*/
public function setReferenceColumns($referenceColumns)
{
$this->referenceColumns = $referenceColumns;
}
/**
* @return string[]
*/
public function getReferenceColumns()
{
return $this->referenceColumns;
}
/**
* Reference table which may be associated with the constraint. For example,
* if the constraint is a FOREIGN_KEY, this represents the list of full name
* of the referenced table by the foreign key.
*
* @param string $referenceTable
*/
public function setReferenceTable($referenceTable)
{
$this->referenceTable = $referenceTable;
}
/**
* @return string
*/
public function getReferenceTable()
{
return $this->referenceTable;
}
/**
* Table columns used as part of the Constraint, for example primary key
* constraint should list the columns which constitutes the key.
*
* @param string[] $tableColumns
*/
public function setTableColumns($tableColumns)
{
$this->tableColumns = $tableColumns;
}
/**
* @return string[]
*/
public function getTableColumns()
{
return $this->tableColumns;
}
/**
* Table which is associated with the constraint. In case the constraint is
* defined on a table, this field is left empty as this information is stored
* in parent_name. However, if constraint is defined on a view, this field
* stores the table name on which the view is defined.
*
* @param string $tableName
*/
public function setTableName($tableName)
{
$this->tableName = $tableName;
}
/**
* @return string
*/
public function getTableName()
{
return $this->tableName;
}
/**
* Type of constraint, for example unique, primary key, foreign key (currently
* only primary key is supported).
*
* @param string $type
*/
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(ConstraintEntity::class, 'Google_Service_DatabaseMigrationService_ConstraintEntity');
@@ -0,0 +1,348 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConversionWorkspace extends \Google\Model
{
/**
* Use this value for on-premise source database instances and ORACLE.
*/
public const DESTINATION_PROVIDER_DATABASE_PROVIDER_UNSPECIFIED = 'DATABASE_PROVIDER_UNSPECIFIED';
/**
* Cloud SQL is the source instance provider.
*/
public const DESTINATION_PROVIDER_CLOUDSQL = 'CLOUDSQL';
/**
* Amazon RDS is the source instance provider.
*/
public const DESTINATION_PROVIDER_RDS = 'RDS';
/**
* Amazon Aurora is the source instance provider.
*/
public const DESTINATION_PROVIDER_AURORA = 'AURORA';
/**
* AlloyDB for PostgreSQL is the source instance provider.
*/
public const DESTINATION_PROVIDER_ALLOYDB = 'ALLOYDB';
/**
* Microsoft Azure Database for MySQL/PostgreSQL.
*/
public const DESTINATION_PROVIDER_AZURE_DATABASE = 'AZURE_DATABASE';
/**
* Use this value for on-premise source database instances and ORACLE.
*/
public const SOURCE_PROVIDER_DATABASE_PROVIDER_UNSPECIFIED = 'DATABASE_PROVIDER_UNSPECIFIED';
/**
* Cloud SQL is the source instance provider.
*/
public const SOURCE_PROVIDER_CLOUDSQL = 'CLOUDSQL';
/**
* Amazon RDS is the source instance provider.
*/
public const SOURCE_PROVIDER_RDS = 'RDS';
/**
* Amazon Aurora is the source instance provider.
*/
public const SOURCE_PROVIDER_AURORA = 'AURORA';
/**
* AlloyDB for PostgreSQL is the source instance provider.
*/
public const SOURCE_PROVIDER_ALLOYDB = 'ALLOYDB';
/**
* Microsoft Azure Database for MySQL/PostgreSQL.
*/
public const SOURCE_PROVIDER_AZURE_DATABASE = 'AZURE_DATABASE';
/**
* Output only. The timestamp when the workspace resource was created.
*
* @var string
*/
public $createTime;
protected $destinationType = DatabaseEngineInfo::class;
protected $destinationDataType = '';
/**
* Optional. The provider for the destination database.
*
* @var string
*/
public $destinationProvider;
/**
* Optional. The display name for the workspace.
*
* @var string
*/
public $displayName;
/**
* Optional. A generic list of settings for the workspace. The settings are
* database pair dependant and can indicate default behavior for the mapping
* rules engine or turn on or off specific features. Such examples can be:
* convert_foreign_key_to_interleave=true, skip_triggers=false,
* ignore_non_table_synonyms=true
*
* @var string[]
*/
public $globalSettings;
/**
* Output only. Whether the workspace has uncommitted changes (changes which
* were made after the workspace was committed).
*
* @var bool
*/
public $hasUncommittedChanges;
/**
* Output only. The latest commit ID.
*
* @var string
*/
public $latestCommitId;
/**
* Output only. The timestamp when the workspace was committed.
*
* @var string
*/
public $latestCommitTime;
/**
* Full name of the workspace resource, in the form of: projects/{project}/loc
* ations/{location}/conversionWorkspaces/{conversion_workspace}.
*
* @var string
*/
public $name;
protected $sourceType = DatabaseEngineInfo::class;
protected $sourceDataType = '';
/**
* Optional. The provider for the source database.
*
* @var string
*/
public $sourceProvider;
/**
* Output only. The timestamp when the workspace resource was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when the workspace resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Required. The destination engine details.
*
* @param DatabaseEngineInfo $destination
*/
public function setDestination(DatabaseEngineInfo $destination)
{
$this->destination = $destination;
}
/**
* @return DatabaseEngineInfo
*/
public function getDestination()
{
return $this->destination;
}
/**
* Optional. The provider for the destination database.
*
* Accepted values: DATABASE_PROVIDER_UNSPECIFIED, CLOUDSQL, RDS, AURORA,
* ALLOYDB, AZURE_DATABASE
*
* @param self::DESTINATION_PROVIDER_* $destinationProvider
*/
public function setDestinationProvider($destinationProvider)
{
$this->destinationProvider = $destinationProvider;
}
/**
* @return self::DESTINATION_PROVIDER_*
*/
public function getDestinationProvider()
{
return $this->destinationProvider;
}
/**
* Optional. The display name for the workspace.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Optional. A generic list of settings for the workspace. The settings are
* database pair dependant and can indicate default behavior for the mapping
* rules engine or turn on or off specific features. Such examples can be:
* convert_foreign_key_to_interleave=true, skip_triggers=false,
* ignore_non_table_synonyms=true
*
* @param string[] $globalSettings
*/
public function setGlobalSettings($globalSettings)
{
$this->globalSettings = $globalSettings;
}
/**
* @return string[]
*/
public function getGlobalSettings()
{
return $this->globalSettings;
}
/**
* Output only. Whether the workspace has uncommitted changes (changes which
* were made after the workspace was committed).
*
* @param bool $hasUncommittedChanges
*/
public function setHasUncommittedChanges($hasUncommittedChanges)
{
$this->hasUncommittedChanges = $hasUncommittedChanges;
}
/**
* @return bool
*/
public function getHasUncommittedChanges()
{
return $this->hasUncommittedChanges;
}
/**
* Output only. The latest commit ID.
*
* @param string $latestCommitId
*/
public function setLatestCommitId($latestCommitId)
{
$this->latestCommitId = $latestCommitId;
}
/**
* @return string
*/
public function getLatestCommitId()
{
return $this->latestCommitId;
}
/**
* Output only. The timestamp when the workspace was committed.
*
* @param string $latestCommitTime
*/
public function setLatestCommitTime($latestCommitTime)
{
$this->latestCommitTime = $latestCommitTime;
}
/**
* @return string
*/
public function getLatestCommitTime()
{
return $this->latestCommitTime;
}
/**
* Full name of the workspace resource, in the form of: projects/{project}/loc
* ations/{location}/conversionWorkspaces/{conversion_workspace}.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The source engine details.
*
* @param DatabaseEngineInfo $source
*/
public function setSource(DatabaseEngineInfo $source)
{
$this->source = $source;
}
/**
* @return DatabaseEngineInfo
*/
public function getSource()
{
return $this->source;
}
/**
* Optional. The provider for the source database.
*
* Accepted values: DATABASE_PROVIDER_UNSPECIFIED, CLOUDSQL, RDS, AURORA,
* ALLOYDB, AZURE_DATABASE
*
* @param self::SOURCE_PROVIDER_* $sourceProvider
*/
public function setSourceProvider($sourceProvider)
{
$this->sourceProvider = $sourceProvider;
}
/**
* @return self::SOURCE_PROVIDER_*
*/
public function getSourceProvider()
{
return $this->sourceProvider;
}
/**
* Output only. The timestamp when the workspace resource was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConversionWorkspace::class, 'Google_Service_DatabaseMigrationService_ConversionWorkspace');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConversionWorkspaceInfo extends \Google\Model
{
/**
* The commit ID of the conversion workspace.
*
* @var string
*/
public $commitId;
/**
* The resource name (URI) of the conversion workspace.
*
* @var string
*/
public $name;
/**
* The commit ID of the conversion workspace.
*
* @param string $commitId
*/
public function setCommitId($commitId)
{
$this->commitId = $commitId;
}
/**
* @return string
*/
public function getCommitId()
{
return $this->commitId;
}
/**
* The resource name (URI) of the conversion workspace.
*
* @param string $name
*/
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(ConversionWorkspaceInfo::class, 'Google_Service_DatabaseMigrationService_ConversionWorkspaceInfo');
@@ -0,0 +1,100 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConvertConversionWorkspaceRequest extends \Google\Model
{
/**
* Optional. Specifies whether the conversion workspace is to be committed
* automatically after the conversion.
*
* @var bool
*/
public $autoCommit;
/**
* Optional. Automatically convert the full entity path for each entity
* specified by the filter. For example, if the filter specifies a table, that
* table schema (and database if there is one) will also be converted.
*
* @var bool
*/
public $convertFullPath;
/**
* Optional. Filter the entities to convert. Leaving this field empty will
* convert all of the entities. Supports Google AIP-160 style filtering.
*
* @var string
*/
public $filter;
/**
* Optional. Specifies whether the conversion workspace is to be committed
* automatically after the conversion.
*
* @param bool $autoCommit
*/
public function setAutoCommit($autoCommit)
{
$this->autoCommit = $autoCommit;
}
/**
* @return bool
*/
public function getAutoCommit()
{
return $this->autoCommit;
}
/**
* Optional. Automatically convert the full entity path for each entity
* specified by the filter. For example, if the filter specifies a table, that
* table schema (and database if there is one) will also be converted.
*
* @param bool $convertFullPath
*/
public function setConvertFullPath($convertFullPath)
{
$this->convertFullPath = $convertFullPath;
}
/**
* @return bool
*/
public function getConvertFullPath()
{
return $this->convertFullPath;
}
/**
* Optional. Filter the entities to convert. Leaving this field empty will
* convert all of the entities. Supports Google AIP-160 style filtering.
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConvertConversionWorkspaceRequest::class, 'Google_Service_DatabaseMigrationService_ConvertConversionWorkspaceRequest');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConvertJobDetails extends \Google\Model
{
/**
* Output only. AIP-160 based filter used to specify the entities to convert
*
* @var string
*/
public $filter;
/**
* Output only. AIP-160 based filter used to specify the entities to convert
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConvertJobDetails::class, 'Google_Service_DatabaseMigrationService_ConvertJobDetails');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ConvertRowIdToColumn extends \Google\Model
{
/**
* Required. Only work on tables without primary key defined
*
* @var bool
*/
public $onlyIfNoPrimaryKey;
/**
* Required. Only work on tables without primary key defined
*
* @param bool $onlyIfNoPrimaryKey
*/
public function setOnlyIfNoPrimaryKey($onlyIfNoPrimaryKey)
{
$this->onlyIfNoPrimaryKey = $onlyIfNoPrimaryKey;
}
/**
* @return bool
*/
public function getOnlyIfNoPrimaryKey()
{
return $this->onlyIfNoPrimaryKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConvertRowIdToColumn::class, 'Google_Service_DatabaseMigrationService_ConvertRowIdToColumn');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DataCacheConfig extends \Google\Model
{
/**
* Optional. Whether data cache is enabled for the instance.
*
* @var bool
*/
public $dataCacheEnabled;
/**
* Optional. Whether data cache is enabled for the instance.
*
* @param bool $dataCacheEnabled
*/
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_DatabaseMigrationService_DataCacheConfig');
@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DatabaseEngineInfo extends \Google\Model
{
/**
* The source database engine of the migration job is unknown.
*/
public const ENGINE_DATABASE_ENGINE_UNSPECIFIED = 'DATABASE_ENGINE_UNSPECIFIED';
/**
* The source engine is MySQL.
*/
public const ENGINE_MYSQL = 'MYSQL';
/**
* The source engine is PostgreSQL.
*/
public const ENGINE_POSTGRESQL = 'POSTGRESQL';
/**
* The source engine is SQL Server.
*/
public const ENGINE_SQLSERVER = 'SQLSERVER';
/**
* The source engine is Oracle.
*/
public const ENGINE_ORACLE = 'ORACLE';
/**
* Required. Engine type.
*
* @var string
*/
public $engine;
/**
* Required. Engine version, for example "12.c.1".
*
* @var string
*/
public $version;
/**
* Required. Engine type.
*
* Accepted values: DATABASE_ENGINE_UNSPECIFIED, MYSQL, POSTGRESQL, SQLSERVER,
* ORACLE
*
* @param self::ENGINE_* $engine
*/
public function setEngine($engine)
{
$this->engine = $engine;
}
/**
* @return self::ENGINE_*
*/
public function getEngine()
{
return $this->engine;
}
/**
* Required. Engine version, for example "12.c.1".
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseEngineInfo::class, 'Google_Service_DatabaseMigrationService_DatabaseEngineInfo');
@@ -0,0 +1,464 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DatabaseEntity extends \Google\Collection
{
/**
* Unspecified database entity type.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_UNSPECIFIED = 'DATABASE_ENTITY_TYPE_UNSPECIFIED';
/**
* Schema.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SCHEMA = 'DATABASE_ENTITY_TYPE_SCHEMA';
/**
* Table.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_TABLE = 'DATABASE_ENTITY_TYPE_TABLE';
/**
* Column.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_COLUMN = 'DATABASE_ENTITY_TYPE_COLUMN';
/**
* Constraint.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_CONSTRAINT = 'DATABASE_ENTITY_TYPE_CONSTRAINT';
/**
* Index.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_INDEX = 'DATABASE_ENTITY_TYPE_INDEX';
/**
* Trigger.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_TRIGGER = 'DATABASE_ENTITY_TYPE_TRIGGER';
/**
* View.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_VIEW = 'DATABASE_ENTITY_TYPE_VIEW';
/**
* Sequence.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SEQUENCE = 'DATABASE_ENTITY_TYPE_SEQUENCE';
/**
* Stored Procedure.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 'DATABASE_ENTITY_TYPE_STORED_PROCEDURE';
/**
* Function.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_FUNCTION = 'DATABASE_ENTITY_TYPE_FUNCTION';
/**
* Synonym.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SYNONYM = 'DATABASE_ENTITY_TYPE_SYNONYM';
/**
* Package.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 'DATABASE_ENTITY_TYPE_DATABASE_PACKAGE';
/**
* UDT.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_UDT = 'DATABASE_ENTITY_TYPE_UDT';
/**
* Materialized View.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 'DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW';
/**
* Database.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_DATABASE = 'DATABASE_ENTITY_TYPE_DATABASE';
/**
* Tree type unspecified.
*/
public const TREE_TREE_TYPE_UNSPECIFIED = 'TREE_TYPE_UNSPECIFIED';
/**
* Tree of entities loaded from a source database.
*/
public const TREE_SOURCE = 'SOURCE';
/**
* Tree of entities converted from the source tree using the mapping rules.
*/
public const TREE_DRAFT = 'DRAFT';
/**
* Tree of entities observed on the destination database.
*/
public const TREE_DESTINATION = 'DESTINATION';
protected $collection_key = 'mappings';
protected $databaseType = DatabaseInstanceEntity::class;
protected $databaseDataType = '';
protected $databaseFunctionType = FunctionEntity::class;
protected $databaseFunctionDataType = '';
protected $databasePackageType = PackageEntity::class;
protected $databasePackageDataType = '';
protected $entityDdlType = EntityDdl::class;
protected $entityDdlDataType = 'array';
/**
* The type of the database entity (table, view, index, ...).
*
* @var string
*/
public $entityType;
protected $issuesType = EntityIssue::class;
protected $issuesDataType = 'array';
protected $mappingsType = EntityMapping::class;
protected $mappingsDataType = 'array';
protected $materializedViewType = MaterializedViewEntity::class;
protected $materializedViewDataType = '';
/**
* The full name of the parent entity (e.g. schema name).
*
* @var string
*/
public $parentEntity;
protected $schemaType = SchemaEntity::class;
protected $schemaDataType = '';
protected $sequenceType = SequenceEntity::class;
protected $sequenceDataType = '';
/**
* The short name (e.g. table name) of the entity.
*
* @var string
*/
public $shortName;
protected $storedProcedureType = StoredProcedureEntity::class;
protected $storedProcedureDataType = '';
protected $synonymType = SynonymEntity::class;
protected $synonymDataType = '';
protected $tableType = TableEntity::class;
protected $tableDataType = '';
/**
* The type of tree the entity belongs to.
*
* @var string
*/
public $tree;
protected $udtType = UDTEntity::class;
protected $udtDataType = '';
protected $viewType = ViewEntity::class;
protected $viewDataType = '';
/**
* Database.
*
* @param DatabaseInstanceEntity $database
*/
public function setDatabase(DatabaseInstanceEntity $database)
{
$this->database = $database;
}
/**
* @return DatabaseInstanceEntity
*/
public function getDatabase()
{
return $this->database;
}
/**
* Function.
*
* @param FunctionEntity $databaseFunction
*/
public function setDatabaseFunction(FunctionEntity $databaseFunction)
{
$this->databaseFunction = $databaseFunction;
}
/**
* @return FunctionEntity
*/
public function getDatabaseFunction()
{
return $this->databaseFunction;
}
/**
* Package.
*
* @param PackageEntity $databasePackage
*/
public function setDatabasePackage(PackageEntity $databasePackage)
{
$this->databasePackage = $databasePackage;
}
/**
* @return PackageEntity
*/
public function getDatabasePackage()
{
return $this->databasePackage;
}
/**
* Details about the entity DDL script. Multiple DDL scripts are provided for
* child entities such as a table entity will have one DDL for the table with
* additional DDLs for each index, constraint and such.
*
* @param EntityDdl[] $entityDdl
*/
public function setEntityDdl($entityDdl)
{
$this->entityDdl = $entityDdl;
}
/**
* @return EntityDdl[]
*/
public function getEntityDdl()
{
return $this->entityDdl;
}
/**
* The type of the database entity (table, view, index, ...).
*
* Accepted values: DATABASE_ENTITY_TYPE_UNSPECIFIED,
* DATABASE_ENTITY_TYPE_SCHEMA, DATABASE_ENTITY_TYPE_TABLE,
* DATABASE_ENTITY_TYPE_COLUMN, DATABASE_ENTITY_TYPE_CONSTRAINT,
* DATABASE_ENTITY_TYPE_INDEX, DATABASE_ENTITY_TYPE_TRIGGER,
* DATABASE_ENTITY_TYPE_VIEW, DATABASE_ENTITY_TYPE_SEQUENCE,
* DATABASE_ENTITY_TYPE_STORED_PROCEDURE, DATABASE_ENTITY_TYPE_FUNCTION,
* DATABASE_ENTITY_TYPE_SYNONYM, DATABASE_ENTITY_TYPE_DATABASE_PACKAGE,
* DATABASE_ENTITY_TYPE_UDT, DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW,
* DATABASE_ENTITY_TYPE_DATABASE
*
* @param self::ENTITY_TYPE_* $entityType
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return self::ENTITY_TYPE_*
*/
public function getEntityType()
{
return $this->entityType;
}
/**
* Details about the various issues found for the entity.
*
* @param EntityIssue[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return EntityIssue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* Details about entity mappings. For source tree entities, this holds the
* draft entities which were generated by the mapping rules. For draft tree
* entities, this holds the source entities which were converted to form the
* draft entity. Destination entities will have no mapping details.
*
* @param EntityMapping[] $mappings
*/
public function setMappings($mappings)
{
$this->mappings = $mappings;
}
/**
* @return EntityMapping[]
*/
public function getMappings()
{
return $this->mappings;
}
/**
* Materialized view.
*
* @param MaterializedViewEntity $materializedView
*/
public function setMaterializedView(MaterializedViewEntity $materializedView)
{
$this->materializedView = $materializedView;
}
/**
* @return MaterializedViewEntity
*/
public function getMaterializedView()
{
return $this->materializedView;
}
/**
* The full name of the parent entity (e.g. schema name).
*
* @param string $parentEntity
*/
public function setParentEntity($parentEntity)
{
$this->parentEntity = $parentEntity;
}
/**
* @return string
*/
public function getParentEntity()
{
return $this->parentEntity;
}
/**
* Schema.
*
* @param SchemaEntity $schema
*/
public function setSchema(SchemaEntity $schema)
{
$this->schema = $schema;
}
/**
* @return SchemaEntity
*/
public function getSchema()
{
return $this->schema;
}
/**
* Sequence.
*
* @param SequenceEntity $sequence
*/
public function setSequence(SequenceEntity $sequence)
{
$this->sequence = $sequence;
}
/**
* @return SequenceEntity
*/
public function getSequence()
{
return $this->sequence;
}
/**
* The short name (e.g. table name) of the entity.
*
* @param string $shortName
*/
public function setShortName($shortName)
{
$this->shortName = $shortName;
}
/**
* @return string
*/
public function getShortName()
{
return $this->shortName;
}
/**
* Stored procedure.
*
* @param StoredProcedureEntity $storedProcedure
*/
public function setStoredProcedure(StoredProcedureEntity $storedProcedure)
{
$this->storedProcedure = $storedProcedure;
}
/**
* @return StoredProcedureEntity
*/
public function getStoredProcedure()
{
return $this->storedProcedure;
}
/**
* Synonym.
*
* @param SynonymEntity $synonym
*/
public function setSynonym(SynonymEntity $synonym)
{
$this->synonym = $synonym;
}
/**
* @return SynonymEntity
*/
public function getSynonym()
{
return $this->synonym;
}
/**
* Table.
*
* @param TableEntity $table
*/
public function setTable(TableEntity $table)
{
$this->table = $table;
}
/**
* @return TableEntity
*/
public function getTable()
{
return $this->table;
}
/**
* The type of tree the entity belongs to.
*
* Accepted values: TREE_TYPE_UNSPECIFIED, SOURCE, DRAFT, DESTINATION
*
* @param self::TREE_* $tree
*/
public function setTree($tree)
{
$this->tree = $tree;
}
/**
* @return self::TREE_*
*/
public function getTree()
{
return $this->tree;
}
/**
* UDT.
*
* @param UDTEntity $udt
*/
public function setUdt(UDTEntity $udt)
{
$this->udt = $udt;
}
/**
* @return UDTEntity
*/
public function getUdt()
{
return $this->udt;
}
/**
* View.
*
* @param ViewEntity $view
*/
public function setView(ViewEntity $view)
{
$this->view = $view;
}
/**
* @return ViewEntity
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseEntity::class, 'Google_Service_DatabaseMigrationService_DatabaseEntity');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DatabaseInstanceEntity extends \Google\Model
{
/**
* Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
/**
* Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseInstanceEntity::class, 'Google_Service_DatabaseMigrationService_DatabaseInstanceEntity');
@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DatabaseType extends \Google\Model
{
/**
* The source database engine of the migration job is unknown.
*/
public const ENGINE_DATABASE_ENGINE_UNSPECIFIED = 'DATABASE_ENGINE_UNSPECIFIED';
/**
* The source engine is MySQL.
*/
public const ENGINE_MYSQL = 'MYSQL';
/**
* The source engine is PostgreSQL.
*/
public const ENGINE_POSTGRESQL = 'POSTGRESQL';
/**
* The source engine is SQL Server.
*/
public const ENGINE_SQLSERVER = 'SQLSERVER';
/**
* The source engine is Oracle.
*/
public const ENGINE_ORACLE = 'ORACLE';
/**
* Use this value for on-premise source database instances and ORACLE.
*/
public const PROVIDER_DATABASE_PROVIDER_UNSPECIFIED = 'DATABASE_PROVIDER_UNSPECIFIED';
/**
* Cloud SQL is the source instance provider.
*/
public const PROVIDER_CLOUDSQL = 'CLOUDSQL';
/**
* Amazon RDS is the source instance provider.
*/
public const PROVIDER_RDS = 'RDS';
/**
* Amazon Aurora is the source instance provider.
*/
public const PROVIDER_AURORA = 'AURORA';
/**
* AlloyDB for PostgreSQL is the source instance provider.
*/
public const PROVIDER_ALLOYDB = 'ALLOYDB';
/**
* Microsoft Azure Database for MySQL/PostgreSQL.
*/
public const PROVIDER_AZURE_DATABASE = 'AZURE_DATABASE';
/**
* The database engine.
*
* @var string
*/
public $engine;
/**
* The database provider.
*
* @var string
*/
public $provider;
/**
* The database engine.
*
* Accepted values: DATABASE_ENGINE_UNSPECIFIED, MYSQL, POSTGRESQL, SQLSERVER,
* ORACLE
*
* @param self::ENGINE_* $engine
*/
public function setEngine($engine)
{
$this->engine = $engine;
}
/**
* @return self::ENGINE_*
*/
public function getEngine()
{
return $this->engine;
}
/**
* The database provider.
*
* Accepted values: DATABASE_PROVIDER_UNSPECIFIED, CLOUDSQL, RDS, AURORA,
* ALLOYDB, AZURE_DATABASE
*
* @param self::PROVIDER_* $provider
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return self::PROVIDER_*
*/
public function getProvider()
{
return $this->provider;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseType::class, 'Google_Service_DatabaseMigrationService_DatabaseType');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DatamigrationEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatamigrationEmpty::class, 'Google_Service_DatabaseMigrationService_DatamigrationEmpty');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DebugInfo extends \Google\Collection
{
protected $collection_key = 'stackEntries';
/**
* Additional debugging information provided by the server.
*
* @var string
*/
public $detail;
/**
* The stack trace entries indicating where the error occurred.
*
* @var string[]
*/
public $stackEntries;
/**
* Additional debugging information provided by the server.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* The stack trace entries indicating where the error occurred.
*
* @param string[] $stackEntries
*/
public function setStackEntries($stackEntries)
{
$this->stackEntries = $stackEntries;
}
/**
* @return string[]
*/
public function getStackEntries()
{
return $this->stackEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugInfo::class, 'Google_Service_DatabaseMigrationService_DebugInfo');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DemoteDestinationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DemoteDestinationRequest::class, 'Google_Service_DatabaseMigrationService_DemoteDestinationRequest');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DescribeConversionWorkspaceRevisionsResponse extends \Google\Collection
{
protected $collection_key = 'revisions';
protected $revisionsType = ConversionWorkspace::class;
protected $revisionsDataType = 'array';
/**
* The list of conversion workspace revisions.
*
* @param ConversionWorkspace[] $revisions
*/
public function setRevisions($revisions)
{
$this->revisions = $revisions;
}
/**
* @return ConversionWorkspace[]
*/
public function getRevisions()
{
return $this->revisions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DescribeConversionWorkspaceRevisionsResponse::class, 'Google_Service_DatabaseMigrationService_DescribeConversionWorkspaceRevisionsResponse');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DescribeDatabaseEntitiesResponse extends \Google\Collection
{
protected $collection_key = 'databaseEntities';
protected $databaseEntitiesType = DatabaseEntity::class;
protected $databaseEntitiesDataType = 'array';
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The list of database entities for the conversion workspace.
*
* @param DatabaseEntity[] $databaseEntities
*/
public function setDatabaseEntities($databaseEntities)
{
$this->databaseEntities = $databaseEntities;
}
/**
* @return DatabaseEntity[]
*/
public function getDatabaseEntities()
{
return $this->databaseEntities;
}
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
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(DescribeDatabaseEntitiesResponse::class, 'Google_Service_DatabaseMigrationService_DescribeDatabaseEntitiesResponse');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DoubleComparisonFilter extends \Google\Model
{
/**
* Value comparison unspecified.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_UNSPECIFIED = 'VALUE_COMPARISON_UNSPECIFIED';
/**
* Value is smaller than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_SMALLER_THAN = 'VALUE_COMPARISON_IF_VALUE_SMALLER_THAN';
/**
* Value is smaller or equal than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN = 'VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN';
/**
* Value is larger than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_LARGER_THAN = 'VALUE_COMPARISON_IF_VALUE_LARGER_THAN';
/**
* Value is larger or equal than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN = 'VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN';
/**
* Required. Double compare value to be used
*
* @var
*/
public $value;
/**
* Required. Relation between source value and compare value
*
* @var string
*/
public $valueComparison;
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
/**
* Required. Relation between source value and compare value
*
* Accepted values: VALUE_COMPARISON_UNSPECIFIED,
* VALUE_COMPARISON_IF_VALUE_SMALLER_THAN,
* VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN,
* VALUE_COMPARISON_IF_VALUE_LARGER_THAN,
* VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN
*
* @param self::VALUE_COMPARISON_* $valueComparison
*/
public function setValueComparison($valueComparison)
{
$this->valueComparison = $valueComparison;
}
/**
* @return self::VALUE_COMPARISON_*
*/
public function getValueComparison()
{
return $this->valueComparison;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DoubleComparisonFilter::class, 'Google_Service_DatabaseMigrationService_DoubleComparisonFilter');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DumpFlag extends \Google\Model
{
/**
* The name of the flag
*
* @var string
*/
public $name;
/**
* The value of the flag.
*
* @var string
*/
public $value;
/**
* The name of the flag
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The value of the flag.
*
* @param string $value
*/
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(DumpFlag::class, 'Google_Service_DatabaseMigrationService_DumpFlag');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class DumpFlags extends \Google\Collection
{
protected $collection_key = 'dumpFlags';
protected $dumpFlagsType = DumpFlag::class;
protected $dumpFlagsDataType = 'array';
/**
* The flags for the initial dump.
*
* @param DumpFlag[] $dumpFlags
*/
public function setDumpFlags($dumpFlags)
{
$this->dumpFlags = $dumpFlags;
}
/**
* @return DumpFlag[]
*/
public function getDumpFlags()
{
return $this->dumpFlags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DumpFlags::class, 'Google_Service_DatabaseMigrationService_DumpFlags');
@@ -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\DatabaseMigrationService;
class EncryptionConfig extends \Google\Model
{
/**
* The fully-qualified resource name of the KMS key. Each Cloud KMS key is
* regionalized and has the following format:
* projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
*
* @var string
*/
public $kmsKeyName;
/**
* The fully-qualified resource name of the KMS key. Each Cloud KMS key is
* regionalized and has the following format:
* projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfig::class, 'Google_Service_DatabaseMigrationService_EncryptionConfig');
@@ -0,0 +1,303 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class EntityDdl extends \Google\Collection
{
/**
* The kind of the DDL is unknown.
*/
public const DDL_KIND_DDL_KIND_UNSPECIFIED = 'DDL_KIND_UNSPECIFIED';
/**
* DDL of the source entity
*/
public const DDL_KIND_SOURCE = 'SOURCE';
/**
* Deterministic converted DDL
*/
public const DDL_KIND_DETERMINISTIC = 'DETERMINISTIC';
/**
* Gemini AI converted DDL
*/
public const DDL_KIND_AI = 'AI';
/**
* User edited DDL
*/
public const DDL_KIND_USER_EDIT = 'USER_EDIT';
/**
* The kind of the DDL is unknown.
*/
public const EDITED_DDL_KIND_DDL_KIND_UNSPECIFIED = 'DDL_KIND_UNSPECIFIED';
/**
* DDL of the source entity
*/
public const EDITED_DDL_KIND_SOURCE = 'SOURCE';
/**
* Deterministic converted DDL
*/
public const EDITED_DDL_KIND_DETERMINISTIC = 'DETERMINISTIC';
/**
* Gemini AI converted DDL
*/
public const EDITED_DDL_KIND_AI = 'AI';
/**
* User edited DDL
*/
public const EDITED_DDL_KIND_USER_EDIT = 'USER_EDIT';
/**
* Unspecified database entity type.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_UNSPECIFIED = 'DATABASE_ENTITY_TYPE_UNSPECIFIED';
/**
* Schema.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SCHEMA = 'DATABASE_ENTITY_TYPE_SCHEMA';
/**
* Table.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_TABLE = 'DATABASE_ENTITY_TYPE_TABLE';
/**
* Column.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_COLUMN = 'DATABASE_ENTITY_TYPE_COLUMN';
/**
* Constraint.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_CONSTRAINT = 'DATABASE_ENTITY_TYPE_CONSTRAINT';
/**
* Index.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_INDEX = 'DATABASE_ENTITY_TYPE_INDEX';
/**
* Trigger.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_TRIGGER = 'DATABASE_ENTITY_TYPE_TRIGGER';
/**
* View.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_VIEW = 'DATABASE_ENTITY_TYPE_VIEW';
/**
* Sequence.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SEQUENCE = 'DATABASE_ENTITY_TYPE_SEQUENCE';
/**
* Stored Procedure.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 'DATABASE_ENTITY_TYPE_STORED_PROCEDURE';
/**
* Function.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_FUNCTION = 'DATABASE_ENTITY_TYPE_FUNCTION';
/**
* Synonym.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SYNONYM = 'DATABASE_ENTITY_TYPE_SYNONYM';
/**
* Package.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 'DATABASE_ENTITY_TYPE_DATABASE_PACKAGE';
/**
* UDT.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_UDT = 'DATABASE_ENTITY_TYPE_UDT';
/**
* Materialized View.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 'DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW';
/**
* Database.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_DATABASE = 'DATABASE_ENTITY_TYPE_DATABASE';
protected $collection_key = 'issueId';
/**
* The actual ddl code.
*
* @var string
*/
public $ddl;
/**
* The DDL Kind selected for apply, or UNSPECIFIED if the entity wasn't
* converted yet.
*
* @var string
*/
public $ddlKind;
/**
* Type of DDL (Create, Alter).
*
* @var string
*/
public $ddlType;
/**
* If ddl_kind is USER_EDIT, this holds the DDL kind of the original content -
* DETERMINISTIC or AI. Otherwise, this is DDL_KIND_UNSPECIFIED.
*
* @var string
*/
public $editedDdlKind;
/**
* The name of the database entity the ddl refers to.
*
* @var string
*/
public $entity;
/**
* The entity type (if the DDL is for a sub entity).
*
* @var string
*/
public $entityType;
/**
* EntityIssues found for this ddl.
*
* @var string[]
*/
public $issueId;
/**
* The actual ddl code.
*
* @param string $ddl
*/
public function setDdl($ddl)
{
$this->ddl = $ddl;
}
/**
* @return string
*/
public function getDdl()
{
return $this->ddl;
}
/**
* The DDL Kind selected for apply, or UNSPECIFIED if the entity wasn't
* converted yet.
*
* Accepted values: DDL_KIND_UNSPECIFIED, SOURCE, DETERMINISTIC, AI, USER_EDIT
*
* @param self::DDL_KIND_* $ddlKind
*/
public function setDdlKind($ddlKind)
{
$this->ddlKind = $ddlKind;
}
/**
* @return self::DDL_KIND_*
*/
public function getDdlKind()
{
return $this->ddlKind;
}
/**
* Type of DDL (Create, Alter).
*
* @param string $ddlType
*/
public function setDdlType($ddlType)
{
$this->ddlType = $ddlType;
}
/**
* @return string
*/
public function getDdlType()
{
return $this->ddlType;
}
/**
* If ddl_kind is USER_EDIT, this holds the DDL kind of the original content -
* DETERMINISTIC or AI. Otherwise, this is DDL_KIND_UNSPECIFIED.
*
* Accepted values: DDL_KIND_UNSPECIFIED, SOURCE, DETERMINISTIC, AI, USER_EDIT
*
* @param self::EDITED_DDL_KIND_* $editedDdlKind
*/
public function setEditedDdlKind($editedDdlKind)
{
$this->editedDdlKind = $editedDdlKind;
}
/**
* @return self::EDITED_DDL_KIND_*
*/
public function getEditedDdlKind()
{
return $this->editedDdlKind;
}
/**
* The name of the database entity the ddl refers to.
*
* @param string $entity
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* The entity type (if the DDL is for a sub entity).
*
* Accepted values: DATABASE_ENTITY_TYPE_UNSPECIFIED,
* DATABASE_ENTITY_TYPE_SCHEMA, DATABASE_ENTITY_TYPE_TABLE,
* DATABASE_ENTITY_TYPE_COLUMN, DATABASE_ENTITY_TYPE_CONSTRAINT,
* DATABASE_ENTITY_TYPE_INDEX, DATABASE_ENTITY_TYPE_TRIGGER,
* DATABASE_ENTITY_TYPE_VIEW, DATABASE_ENTITY_TYPE_SEQUENCE,
* DATABASE_ENTITY_TYPE_STORED_PROCEDURE, DATABASE_ENTITY_TYPE_FUNCTION,
* DATABASE_ENTITY_TYPE_SYNONYM, DATABASE_ENTITY_TYPE_DATABASE_PACKAGE,
* DATABASE_ENTITY_TYPE_UDT, DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW,
* DATABASE_ENTITY_TYPE_DATABASE
*
* @param self::ENTITY_TYPE_* $entityType
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return self::ENTITY_TYPE_*
*/
public function getEntityType()
{
return $this->entityType;
}
/**
* EntityIssues found for this ddl.
*
* @param string[] $issueId
*/
public function setIssueId($issueId)
{
$this->issueId = $issueId;
}
/**
* @return string[]
*/
public function getIssueId()
{
return $this->issueId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityDdl::class, 'Google_Service_DatabaseMigrationService_EntityDdl');
@@ -0,0 +1,314 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class EntityIssue extends \Google\Model
{
/**
* Unspecified database entity type.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_UNSPECIFIED = 'DATABASE_ENTITY_TYPE_UNSPECIFIED';
/**
* Schema.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SCHEMA = 'DATABASE_ENTITY_TYPE_SCHEMA';
/**
* Table.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_TABLE = 'DATABASE_ENTITY_TYPE_TABLE';
/**
* Column.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_COLUMN = 'DATABASE_ENTITY_TYPE_COLUMN';
/**
* Constraint.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_CONSTRAINT = 'DATABASE_ENTITY_TYPE_CONSTRAINT';
/**
* Index.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_INDEX = 'DATABASE_ENTITY_TYPE_INDEX';
/**
* Trigger.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_TRIGGER = 'DATABASE_ENTITY_TYPE_TRIGGER';
/**
* View.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_VIEW = 'DATABASE_ENTITY_TYPE_VIEW';
/**
* Sequence.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SEQUENCE = 'DATABASE_ENTITY_TYPE_SEQUENCE';
/**
* Stored Procedure.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 'DATABASE_ENTITY_TYPE_STORED_PROCEDURE';
/**
* Function.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_FUNCTION = 'DATABASE_ENTITY_TYPE_FUNCTION';
/**
* Synonym.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_SYNONYM = 'DATABASE_ENTITY_TYPE_SYNONYM';
/**
* Package.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 'DATABASE_ENTITY_TYPE_DATABASE_PACKAGE';
/**
* UDT.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_UDT = 'DATABASE_ENTITY_TYPE_UDT';
/**
* Materialized View.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 'DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW';
/**
* Database.
*/
public const ENTITY_TYPE_DATABASE_ENTITY_TYPE_DATABASE = 'DATABASE_ENTITY_TYPE_DATABASE';
/**
* Unspecified issue severity
*/
public const SEVERITY_ISSUE_SEVERITY_UNSPECIFIED = 'ISSUE_SEVERITY_UNSPECIFIED';
/**
* Info
*/
public const SEVERITY_ISSUE_SEVERITY_INFO = 'ISSUE_SEVERITY_INFO';
/**
* Warning
*/
public const SEVERITY_ISSUE_SEVERITY_WARNING = 'ISSUE_SEVERITY_WARNING';
/**
* Error
*/
public const SEVERITY_ISSUE_SEVERITY_ERROR = 'ISSUE_SEVERITY_ERROR';
/**
* Unspecified issue type.
*/
public const TYPE_ISSUE_TYPE_UNSPECIFIED = 'ISSUE_TYPE_UNSPECIFIED';
/**
* Issue originated from the DDL
*/
public const TYPE_ISSUE_TYPE_DDL = 'ISSUE_TYPE_DDL';
/**
* Issue originated during the apply process
*/
public const TYPE_ISSUE_TYPE_APPLY = 'ISSUE_TYPE_APPLY';
/**
* Issue originated during the convert process
*/
public const TYPE_ISSUE_TYPE_CONVERT = 'ISSUE_TYPE_CONVERT';
/**
* Issue originated during the pull schema process
*/
public const TYPE_ISSUE_TYPE_PULL_SCHEMA = 'ISSUE_TYPE_PULL_SCHEMA';
/**
* Error/Warning code
*
* @var string
*/
public $code;
/**
* The ddl which caused the issue, if relevant.
*
* @var string
*/
public $ddl;
/**
* The entity type (if the DDL is for a sub entity).
*
* @var string
*/
public $entityType;
/**
* Unique Issue ID.
*
* @var string
*/
public $id;
/**
* Issue detailed message
*
* @var string
*/
public $message;
protected $positionType = Position::class;
protected $positionDataType = '';
/**
* Severity of the issue
*
* @var string
*/
public $severity;
/**
* The type of the issue.
*
* @var string
*/
public $type;
/**
* Error/Warning code
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* The ddl which caused the issue, if relevant.
*
* @param string $ddl
*/
public function setDdl($ddl)
{
$this->ddl = $ddl;
}
/**
* @return string
*/
public function getDdl()
{
return $this->ddl;
}
/**
* The entity type (if the DDL is for a sub entity).
*
* Accepted values: DATABASE_ENTITY_TYPE_UNSPECIFIED,
* DATABASE_ENTITY_TYPE_SCHEMA, DATABASE_ENTITY_TYPE_TABLE,
* DATABASE_ENTITY_TYPE_COLUMN, DATABASE_ENTITY_TYPE_CONSTRAINT,
* DATABASE_ENTITY_TYPE_INDEX, DATABASE_ENTITY_TYPE_TRIGGER,
* DATABASE_ENTITY_TYPE_VIEW, DATABASE_ENTITY_TYPE_SEQUENCE,
* DATABASE_ENTITY_TYPE_STORED_PROCEDURE, DATABASE_ENTITY_TYPE_FUNCTION,
* DATABASE_ENTITY_TYPE_SYNONYM, DATABASE_ENTITY_TYPE_DATABASE_PACKAGE,
* DATABASE_ENTITY_TYPE_UDT, DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW,
* DATABASE_ENTITY_TYPE_DATABASE
*
* @param self::ENTITY_TYPE_* $entityType
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return self::ENTITY_TYPE_*
*/
public function getEntityType()
{
return $this->entityType;
}
/**
* Unique Issue ID.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Issue detailed message
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* The position of the issue found, if relevant.
*
* @param Position $position
*/
public function setPosition(Position $position)
{
$this->position = $position;
}
/**
* @return Position
*/
public function getPosition()
{
return $this->position;
}
/**
* Severity of the issue
*
* Accepted values: ISSUE_SEVERITY_UNSPECIFIED, ISSUE_SEVERITY_INFO,
* ISSUE_SEVERITY_WARNING, ISSUE_SEVERITY_ERROR
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
/**
* The type of the issue.
*
* Accepted values: ISSUE_TYPE_UNSPECIFIED, ISSUE_TYPE_DDL, ISSUE_TYPE_APPLY,
* ISSUE_TYPE_CONVERT, ISSUE_TYPE_PULL_SCHEMA
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityIssue::class, 'Google_Service_DatabaseMigrationService_EntityIssue');
@@ -0,0 +1,289 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class EntityMapping extends \Google\Collection
{
/**
* Unspecified database entity type.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_UNSPECIFIED = 'DATABASE_ENTITY_TYPE_UNSPECIFIED';
/**
* Schema.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_SCHEMA = 'DATABASE_ENTITY_TYPE_SCHEMA';
/**
* Table.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_TABLE = 'DATABASE_ENTITY_TYPE_TABLE';
/**
* Column.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_COLUMN = 'DATABASE_ENTITY_TYPE_COLUMN';
/**
* Constraint.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_CONSTRAINT = 'DATABASE_ENTITY_TYPE_CONSTRAINT';
/**
* Index.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_INDEX = 'DATABASE_ENTITY_TYPE_INDEX';
/**
* Trigger.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_TRIGGER = 'DATABASE_ENTITY_TYPE_TRIGGER';
/**
* View.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_VIEW = 'DATABASE_ENTITY_TYPE_VIEW';
/**
* Sequence.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_SEQUENCE = 'DATABASE_ENTITY_TYPE_SEQUENCE';
/**
* Stored Procedure.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 'DATABASE_ENTITY_TYPE_STORED_PROCEDURE';
/**
* Function.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_FUNCTION = 'DATABASE_ENTITY_TYPE_FUNCTION';
/**
* Synonym.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_SYNONYM = 'DATABASE_ENTITY_TYPE_SYNONYM';
/**
* Package.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 'DATABASE_ENTITY_TYPE_DATABASE_PACKAGE';
/**
* UDT.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_UDT = 'DATABASE_ENTITY_TYPE_UDT';
/**
* Materialized View.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 'DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW';
/**
* Database.
*/
public const DRAFT_TYPE_DATABASE_ENTITY_TYPE_DATABASE = 'DATABASE_ENTITY_TYPE_DATABASE';
/**
* Unspecified database entity type.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_UNSPECIFIED = 'DATABASE_ENTITY_TYPE_UNSPECIFIED';
/**
* Schema.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_SCHEMA = 'DATABASE_ENTITY_TYPE_SCHEMA';
/**
* Table.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_TABLE = 'DATABASE_ENTITY_TYPE_TABLE';
/**
* Column.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_COLUMN = 'DATABASE_ENTITY_TYPE_COLUMN';
/**
* Constraint.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_CONSTRAINT = 'DATABASE_ENTITY_TYPE_CONSTRAINT';
/**
* Index.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_INDEX = 'DATABASE_ENTITY_TYPE_INDEX';
/**
* Trigger.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_TRIGGER = 'DATABASE_ENTITY_TYPE_TRIGGER';
/**
* View.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_VIEW = 'DATABASE_ENTITY_TYPE_VIEW';
/**
* Sequence.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_SEQUENCE = 'DATABASE_ENTITY_TYPE_SEQUENCE';
/**
* Stored Procedure.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 'DATABASE_ENTITY_TYPE_STORED_PROCEDURE';
/**
* Function.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_FUNCTION = 'DATABASE_ENTITY_TYPE_FUNCTION';
/**
* Synonym.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_SYNONYM = 'DATABASE_ENTITY_TYPE_SYNONYM';
/**
* Package.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 'DATABASE_ENTITY_TYPE_DATABASE_PACKAGE';
/**
* UDT.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_UDT = 'DATABASE_ENTITY_TYPE_UDT';
/**
* Materialized View.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 'DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW';
/**
* Database.
*/
public const SOURCE_TYPE_DATABASE_ENTITY_TYPE_DATABASE = 'DATABASE_ENTITY_TYPE_DATABASE';
protected $collection_key = 'mappingLog';
/**
* Target entity full name. The draft entity can also include a column, index
* or constraint using the same naming notation schema.table.column.
*
* @var string
*/
public $draftEntity;
/**
* Type of draft entity.
*
* @var string
*/
public $draftType;
protected $mappingLogType = EntityMappingLogEntry::class;
protected $mappingLogDataType = 'array';
/**
* Source entity full name. The source entity can also be a column, index or
* constraint using the same naming notation schema.table.column.
*
* @var string
*/
public $sourceEntity;
/**
* Type of source entity.
*
* @var string
*/
public $sourceType;
/**
* Target entity full name. The draft entity can also include a column, index
* or constraint using the same naming notation schema.table.column.
*
* @param string $draftEntity
*/
public function setDraftEntity($draftEntity)
{
$this->draftEntity = $draftEntity;
}
/**
* @return string
*/
public function getDraftEntity()
{
return $this->draftEntity;
}
/**
* Type of draft entity.
*
* Accepted values: DATABASE_ENTITY_TYPE_UNSPECIFIED,
* DATABASE_ENTITY_TYPE_SCHEMA, DATABASE_ENTITY_TYPE_TABLE,
* DATABASE_ENTITY_TYPE_COLUMN, DATABASE_ENTITY_TYPE_CONSTRAINT,
* DATABASE_ENTITY_TYPE_INDEX, DATABASE_ENTITY_TYPE_TRIGGER,
* DATABASE_ENTITY_TYPE_VIEW, DATABASE_ENTITY_TYPE_SEQUENCE,
* DATABASE_ENTITY_TYPE_STORED_PROCEDURE, DATABASE_ENTITY_TYPE_FUNCTION,
* DATABASE_ENTITY_TYPE_SYNONYM, DATABASE_ENTITY_TYPE_DATABASE_PACKAGE,
* DATABASE_ENTITY_TYPE_UDT, DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW,
* DATABASE_ENTITY_TYPE_DATABASE
*
* @param self::DRAFT_TYPE_* $draftType
*/
public function setDraftType($draftType)
{
$this->draftType = $draftType;
}
/**
* @return self::DRAFT_TYPE_*
*/
public function getDraftType()
{
return $this->draftType;
}
/**
* Entity mapping log entries. Multiple rules can be effective and contribute
* changes to a converted entity, such as a rule can handle the entity name,
* another rule can handle an entity type. In addition, rules which did not
* change the entity are also logged along with the reason preventing them to
* do so.
*
* @param EntityMappingLogEntry[] $mappingLog
*/
public function setMappingLog($mappingLog)
{
$this->mappingLog = $mappingLog;
}
/**
* @return EntityMappingLogEntry[]
*/
public function getMappingLog()
{
return $this->mappingLog;
}
/**
* Source entity full name. The source entity can also be a column, index or
* constraint using the same naming notation schema.table.column.
*
* @param string $sourceEntity
*/
public function setSourceEntity($sourceEntity)
{
$this->sourceEntity = $sourceEntity;
}
/**
* @return string
*/
public function getSourceEntity()
{
return $this->sourceEntity;
}
/**
* Type of source entity.
*
* Accepted values: DATABASE_ENTITY_TYPE_UNSPECIFIED,
* DATABASE_ENTITY_TYPE_SCHEMA, DATABASE_ENTITY_TYPE_TABLE,
* DATABASE_ENTITY_TYPE_COLUMN, DATABASE_ENTITY_TYPE_CONSTRAINT,
* DATABASE_ENTITY_TYPE_INDEX, DATABASE_ENTITY_TYPE_TRIGGER,
* DATABASE_ENTITY_TYPE_VIEW, DATABASE_ENTITY_TYPE_SEQUENCE,
* DATABASE_ENTITY_TYPE_STORED_PROCEDURE, DATABASE_ENTITY_TYPE_FUNCTION,
* DATABASE_ENTITY_TYPE_SYNONYM, DATABASE_ENTITY_TYPE_DATABASE_PACKAGE,
* DATABASE_ENTITY_TYPE_UDT, DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW,
* DATABASE_ENTITY_TYPE_DATABASE
*
* @param self::SOURCE_TYPE_* $sourceType
*/
public function setSourceType($sourceType)
{
$this->sourceType = $sourceType;
}
/**
* @return self::SOURCE_TYPE_*
*/
public function getSourceType()
{
return $this->sourceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityMapping::class, 'Google_Service_DatabaseMigrationService_EntityMapping');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class EntityMappingLogEntry extends \Google\Model
{
/**
* Comment.
*
* @var string
*/
public $mappingComment;
/**
* Which rule caused this log entry.
*
* @var string
*/
public $ruleId;
/**
* Rule revision ID.
*
* @var string
*/
public $ruleRevisionId;
/**
* Comment.
*
* @param string $mappingComment
*/
public function setMappingComment($mappingComment)
{
$this->mappingComment = $mappingComment;
}
/**
* @return string
*/
public function getMappingComment()
{
return $this->mappingComment;
}
/**
* Which rule caused this log entry.
*
* @param string $ruleId
*/
public function setRuleId($ruleId)
{
$this->ruleId = $ruleId;
}
/**
* @return string
*/
public function getRuleId()
{
return $this->ruleId;
}
/**
* Rule revision ID.
*
* @param string $ruleRevisionId
*/
public function setRuleRevisionId($ruleRevisionId)
{
$this->ruleRevisionId = $ruleRevisionId;
}
/**
* @return string
*/
public function getRuleRevisionId()
{
return $this->ruleRevisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityMappingLogEntry::class, 'Google_Service_DatabaseMigrationService_EntityMappingLogEntry');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class EntityMove extends \Google\Model
{
/**
* Required. The new schema
*
* @var string
*/
public $newSchema;
/**
* Required. The new schema
*
* @param string $newSchema
*/
public function setNewSchema($newSchema)
{
$this->newSchema = $newSchema;
}
/**
* @return string
*/
public function getNewSchema()
{
return $this->newSchema;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityMove::class, 'Google_Service_DatabaseMigrationService_EntityMove');
@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ErrorInfo extends \Google\Model
{
/**
* The logical grouping to which the "reason" belongs. The error domain is
* typically the registered service name of the tool or product that generates
* the error. Example: "pubsub.googleapis.com". If the error is generated by
* some common infrastructure, the error domain must be a globally unique
* value that identifies the infrastructure. For Google API infrastructure,
* the error domain is "googleapis.com".
*
* @var string
*/
public $domain;
/**
* Additional structured details about this error. Keys must match a regular
* expression of `a-z+` but should ideally be lowerCamelCase. Also, they must
* be limited to 64 characters in length. When identifying the current value
* of an exceeded limit, the units should be contained in the key, not the
* value. For example, rather than `{"instanceLimit": "100/request"}`, should
* be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds
* the number of instances that can be created in a single (batch) request.
*
* @var string[]
*/
public $metadata;
/**
* The reason of the error. This is a constant value that identifies the
* proximate cause of the error. Error reasons are unique within a particular
* domain of errors. This should be at most 63 characters and match a regular
* expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @var string
*/
public $reason;
/**
* The logical grouping to which the "reason" belongs. The error domain is
* typically the registered service name of the tool or product that generates
* the error. Example: "pubsub.googleapis.com". If the error is generated by
* some common infrastructure, the error domain must be a globally unique
* value that identifies the infrastructure. For Google API infrastructure,
* the error domain is "googleapis.com".
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Additional structured details about this error. Keys must match a regular
* expression of `a-z+` but should ideally be lowerCamelCase. Also, they must
* be limited to 64 characters in length. When identifying the current value
* of an exceeded limit, the units should be contained in the key, not the
* value. For example, rather than `{"instanceLimit": "100/request"}`, should
* be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds
* the number of instances that can be created in a single (batch) request.
*
* @param string[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The reason of the error. This is a constant value that identifies the
* proximate cause of the error. Error reasons are unique within a particular
* domain of errors. This should be at most 63 characters and match a regular
* expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorInfo::class, 'Google_Service_DatabaseMigrationService_ErrorInfo');
@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_DatabaseMigrationService_Expr');
@@ -0,0 +1,73 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class FetchStaticIpsResponse extends \Google\Collection
{
protected $collection_key = 'staticIps';
/**
* A token that can be sent as `page_token` to retrieve the next page. If this
* field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* List of static IPs.
*
* @var string[]
*/
public $staticIps;
/**
* A token that can be sent as `page_token` to retrieve the next page. If this
* field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of static IPs.
*
* @param string[] $staticIps
*/
public function setStaticIps($staticIps)
{
$this->staticIps = $staticIps;
}
/**
* @return string[]
*/
public function getStaticIps()
{
return $this->staticIps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchStaticIpsResponse::class, 'Google_Service_DatabaseMigrationService_FetchStaticIpsResponse');
@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class FieldViolation extends \Google\Model
{
/**
* A description of why the request element is bad.
*
* @var string
*/
public $description;
/**
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field. Consider the following: message CreateContactRequest { message
* EmailAddress { enum Type { TYPE_UNSPECIFIED = 0; HOME = 1; WORK = 2; }
* optional string email = 1; repeated EmailType type = 2; } string full_name
* = 1; repeated EmailAddress email_addresses = 2; } In this example, in proto
* `field` could take one of the following values: * `full_name` for a
* violation in the `full_name` value * `email_addresses[0].email` for a
* violation in the `email` field of the first `email_addresses` message *
* `email_addresses[2].type[1]` for a violation in the second `type` value in
* the third `email_addresses` message. In JSON, the same values are
* represented as: * `fullName` for a violation in the `fullName` value *
* `emailAddresses[0].email` for a violation in the `email` field of the first
* `emailAddresses` message * `emailAddresses[2].type[1]` for a violation in
* the second `type` value in the third `emailAddresses` message.
*
* @var string
*/
public $field;
protected $localizedMessageType = LocalizedMessage::class;
protected $localizedMessageDataType = '';
/**
* The reason of the field-level error. This is a constant value that
* identifies the proximate cause of the field-level error. It should uniquely
* identify the type of the FieldViolation within the scope of the
* google.rpc.ErrorInfo.domain. This should be at most 63 characters and match
* a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @var string
*/
public $reason;
/**
* A description of why the request element is bad.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field. Consider the following: message CreateContactRequest { message
* EmailAddress { enum Type { TYPE_UNSPECIFIED = 0; HOME = 1; WORK = 2; }
* optional string email = 1; repeated EmailType type = 2; } string full_name
* = 1; repeated EmailAddress email_addresses = 2; } In this example, in proto
* `field` could take one of the following values: * `full_name` for a
* violation in the `full_name` value * `email_addresses[0].email` for a
* violation in the `email` field of the first `email_addresses` message *
* `email_addresses[2].type[1]` for a violation in the second `type` value in
* the third `email_addresses` message. In JSON, the same values are
* represented as: * `fullName` for a violation in the `fullName` value *
* `emailAddresses[0].email` for a violation in the `email` field of the first
* `emailAddresses` message * `emailAddresses[2].type[1]` for a violation in
* the second `type` value in the third `emailAddresses` message.
*
* @param string $field
*/
public function setField($field)
{
$this->field = $field;
}
/**
* @return string
*/
public function getField()
{
return $this->field;
}
/**
* Provides a localized error message for field-level errors that is safe to
* return to the API consumer.
*
* @param LocalizedMessage $localizedMessage
*/
public function setLocalizedMessage(LocalizedMessage $localizedMessage)
{
$this->localizedMessage = $localizedMessage;
}
/**
* @return LocalizedMessage
*/
public function getLocalizedMessage()
{
return $this->localizedMessage;
}
/**
* The reason of the field-level error. This is a constant value that
* identifies the proximate cause of the field-level error. It should uniquely
* identify the type of the FieldViolation within the scope of the
* google.rpc.ErrorInfo.domain. This should be at most 63 characters and match
* a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FieldViolation::class, 'Google_Service_DatabaseMigrationService_FieldViolation');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class FilterTableColumns extends \Google\Collection
{
protected $collection_key = 'includeColumns';
/**
* Optional. List of columns to be excluded for a particular table.
*
* @var string[]
*/
public $excludeColumns;
/**
* Optional. List of columns to be included for a particular table.
*
* @var string[]
*/
public $includeColumns;
/**
* Optional. List of columns to be excluded for a particular table.
*
* @param string[] $excludeColumns
*/
public function setExcludeColumns($excludeColumns)
{
$this->excludeColumns = $excludeColumns;
}
/**
* @return string[]
*/
public function getExcludeColumns()
{
return $this->excludeColumns;
}
/**
* Optional. List of columns to be included for a particular table.
*
* @param string[] $includeColumns
*/
public function setIncludeColumns($includeColumns)
{
$this->includeColumns = $includeColumns;
}
/**
* @return string[]
*/
public function getIncludeColumns()
{
return $this->includeColumns;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FilterTableColumns::class, 'Google_Service_DatabaseMigrationService_FilterTableColumns');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ForwardSshTunnelConnectivity extends \Google\Model
{
/**
* Required. Hostname for the SSH tunnel.
*
* @var string
*/
public $hostname;
/**
* Input only. SSH password.
*
* @var string
*/
public $password;
/**
* Port for the SSH tunnel, default value is 22.
*
* @var int
*/
public $port;
/**
* Input only. SSH private key.
*
* @var string
*/
public $privateKey;
/**
* Required. Username for the SSH tunnel.
*
* @var string
*/
public $username;
/**
* Required. Hostname for the SSH tunnel.
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* Input only. SSH password.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Port for the SSH tunnel, default value is 22.
*
* @param int $port
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* Input only. SSH private key.
*
* @param string $privateKey
*/
public function setPrivateKey($privateKey)
{
$this->privateKey = $privateKey;
}
/**
* @return string
*/
public function getPrivateKey()
{
return $this->privateKey;
}
/**
* Required. Username for the SSH tunnel.
*
* @param string $username
*/
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(ForwardSshTunnelConnectivity::class, 'Google_Service_DatabaseMigrationService_ForwardSshTunnelConnectivity');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class FunctionEntity extends \Google\Model
{
/**
* Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
/**
* The SQL code which creates the function.
*
* @var string
*/
public $sqlCode;
/**
* Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* The SQL code which creates the function.
*
* @param string $sqlCode
*/
public function setSqlCode($sqlCode)
{
$this->sqlCode = $sqlCode;
}
/**
* @return string
*/
public function getSqlCode()
{
return $this->sqlCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FunctionEntity::class, 'Google_Service_DatabaseMigrationService_FunctionEntity');
@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class GenerateSshScriptRequest extends \Google\Model
{
/**
* Required. Bastion VM Instance name to use or to create.
*
* @var string
*/
public $vm;
protected $vmCreationConfigType = VmCreationConfig::class;
protected $vmCreationConfigDataType = '';
/**
* The port that will be open on the bastion host.
*
* @var int
*/
public $vmPort;
protected $vmSelectionConfigType = VmSelectionConfig::class;
protected $vmSelectionConfigDataType = '';
/**
* Required. Bastion VM Instance name to use or to create.
*
* @param string $vm
*/
public function setVm($vm)
{
$this->vm = $vm;
}
/**
* @return string
*/
public function getVm()
{
return $this->vm;
}
/**
* The VM creation configuration
*
* @param VmCreationConfig $vmCreationConfig
*/
public function setVmCreationConfig(VmCreationConfig $vmCreationConfig)
{
$this->vmCreationConfig = $vmCreationConfig;
}
/**
* @return VmCreationConfig
*/
public function getVmCreationConfig()
{
return $this->vmCreationConfig;
}
/**
* The port that will be open on the bastion host.
*
* @param int $vmPort
*/
public function setVmPort($vmPort)
{
$this->vmPort = $vmPort;
}
/**
* @return int
*/
public function getVmPort()
{
return $this->vmPort;
}
/**
* The VM selection configuration
*
* @param VmSelectionConfig $vmSelectionConfig
*/
public function setVmSelectionConfig(VmSelectionConfig $vmSelectionConfig)
{
$this->vmSelectionConfig = $vmSelectionConfig;
}
/**
* @return VmSelectionConfig
*/
public function getVmSelectionConfig()
{
return $this->vmSelectionConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateSshScriptRequest::class, 'Google_Service_DatabaseMigrationService_GenerateSshScriptRequest');
@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class GenerateTcpProxyScriptRequest extends \Google\Model
{
/**
* Required. The type of the Compute instance that will host the proxy.
*
* @var string
*/
public $vmMachineType;
/**
* Required. The name of the Compute instance that will host the proxy.
*
* @var string
*/
public $vmName;
/**
* Required. The name of the subnet the Compute instance will use for private
* connectivity. Must be supplied in the form of
* projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the
* region for the subnet must match the Compute instance region.
*
* @var string
*/
public $vmSubnet;
/**
* Optional. The Google Cloud Platform zone to create the VM in. The fully
* qualified name of the zone must be specified, including the region name,
* for example "us-central1-b". If not specified, uses the "-b" zone of the
* destination Connection Profile's region.
*
* @var string
*/
public $vmZone;
/**
* Required. The type of the Compute instance that will host the proxy.
*
* @param string $vmMachineType
*/
public function setVmMachineType($vmMachineType)
{
$this->vmMachineType = $vmMachineType;
}
/**
* @return string
*/
public function getVmMachineType()
{
return $this->vmMachineType;
}
/**
* Required. The name of the Compute instance that will host the proxy.
*
* @param string $vmName
*/
public function setVmName($vmName)
{
$this->vmName = $vmName;
}
/**
* @return string
*/
public function getVmName()
{
return $this->vmName;
}
/**
* Required. The name of the subnet the Compute instance will use for private
* connectivity. Must be supplied in the form of
* projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the
* region for the subnet must match the Compute instance region.
*
* @param string $vmSubnet
*/
public function setVmSubnet($vmSubnet)
{
$this->vmSubnet = $vmSubnet;
}
/**
* @return string
*/
public function getVmSubnet()
{
return $this->vmSubnet;
}
/**
* Optional. The Google Cloud Platform zone to create the VM in. The fully
* qualified name of the zone must be specified, including the region name,
* for example "us-central1-b". If not specified, uses the "-b" zone of the
* destination Connection Profile's region.
*
* @param string $vmZone
*/
public function setVmZone($vmZone)
{
$this->vmZone = $vmZone;
}
/**
* @return string
*/
public function getVmZone()
{
return $this->vmZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateTcpProxyScriptRequest::class, 'Google_Service_DatabaseMigrationService_GenerateTcpProxyScriptRequest');
@@ -0,0 +1,210 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class GoogleCloudClouddmsV1OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Additional metadata that is returned by the backend for the
* operation.
*
* @var string[]
*/
public $metadata;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Additional metadata that is returned by the backend for the
* operation.
*
* @param string[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
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(GoogleCloudClouddmsV1OperationMetadata::class, 'Google_Service_DatabaseMigrationService_GoogleCloudClouddmsV1OperationMetadata');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class Help extends \Google\Collection
{
protected $collection_key = 'links';
protected $linksType = Link::class;
protected $linksDataType = 'array';
/**
* URL(s) pointing to additional information on handling the current error.
*
* @param Link[] $links
*/
public function setLinks($links)
{
$this->links = $links;
}
/**
* @return Link[]
*/
public function getLinks()
{
return $this->links;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Help::class, 'Google_Service_DatabaseMigrationService_Help');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class HeterogeneousMetadata extends \Google\Model
{
/**
* The number of unsupported events.
*
* @var string
*/
public $unsupportedEventsCount;
/**
* The number of unsupported events.
*
* @param string $unsupportedEventsCount
*/
public function setUnsupportedEventsCount($unsupportedEventsCount)
{
$this->unsupportedEventsCount = $unsupportedEventsCount;
}
/**
* @return string
*/
public function getUnsupportedEventsCount()
{
return $this->unsupportedEventsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HeterogeneousMetadata::class, 'Google_Service_DatabaseMigrationService_HeterogeneousMetadata');
@@ -0,0 +1,107 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ImportMappingRulesRequest extends \Google\Collection
{
/**
* Unspecified rules format.
*/
public const RULES_FORMAT_IMPORT_RULES_FILE_FORMAT_UNSPECIFIED = 'IMPORT_RULES_FILE_FORMAT_UNSPECIFIED';
/**
* HarbourBridge session file.
*/
public const RULES_FORMAT_IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE = 'IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE';
/**
* Ora2Pg configuration file.
*/
public const RULES_FORMAT_IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE = 'IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE';
protected $collection_key = 'rulesFiles';
/**
* Required. Should the conversion workspace be committed automatically after
* the import operation.
*
* @var bool
*/
public $autoCommit;
protected $rulesFilesType = RulesFile::class;
protected $rulesFilesDataType = 'array';
/**
* Required. The format of the rules content file.
*
* @var string
*/
public $rulesFormat;
/**
* Required. Should the conversion workspace be committed automatically after
* the import operation.
*
* @param bool $autoCommit
*/
public function setAutoCommit($autoCommit)
{
$this->autoCommit = $autoCommit;
}
/**
* @return bool
*/
public function getAutoCommit()
{
return $this->autoCommit;
}
/**
* Required. One or more rules files.
*
* @param RulesFile[] $rulesFiles
*/
public function setRulesFiles($rulesFiles)
{
$this->rulesFiles = $rulesFiles;
}
/**
* @return RulesFile[]
*/
public function getRulesFiles()
{
return $this->rulesFiles;
}
/**
* Required. The format of the rules content file.
*
* Accepted values: IMPORT_RULES_FILE_FORMAT_UNSPECIFIED,
* IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE,
* IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE
*
* @param self::RULES_FORMAT_* $rulesFormat
*/
public function setRulesFormat($rulesFormat)
{
$this->rulesFormat = $rulesFormat;
}
/**
* @return self::RULES_FORMAT_*
*/
public function getRulesFormat()
{
return $this->rulesFormat;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportMappingRulesRequest::class, 'Google_Service_DatabaseMigrationService_ImportMappingRulesRequest');
@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ImportRulesJobDetails extends \Google\Collection
{
/**
* Unspecified rules format.
*/
public const FILE_FORMAT_IMPORT_RULES_FILE_FORMAT_UNSPECIFIED = 'IMPORT_RULES_FILE_FORMAT_UNSPECIFIED';
/**
* HarbourBridge session file.
*/
public const FILE_FORMAT_IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE = 'IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE';
/**
* Ora2Pg configuration file.
*/
public const FILE_FORMAT_IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE = 'IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE';
protected $collection_key = 'files';
/**
* Output only. The requested file format.
*
* @var string
*/
public $fileFormat;
/**
* Output only. File names used for the import rules job.
*
* @var string[]
*/
public $files;
/**
* Output only. The requested file format.
*
* Accepted values: IMPORT_RULES_FILE_FORMAT_UNSPECIFIED,
* IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE,
* IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE
*
* @param self::FILE_FORMAT_* $fileFormat
*/
public function setFileFormat($fileFormat)
{
$this->fileFormat = $fileFormat;
}
/**
* @return self::FILE_FORMAT_*
*/
public function getFileFormat()
{
return $this->fileFormat;
}
/**
* Output only. File names used for the import rules job.
*
* @param string[] $files
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return string[]
*/
public function getFiles()
{
return $this->files;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportRulesJobDetails::class, 'Google_Service_DatabaseMigrationService_ImportRulesJobDetails');
@@ -0,0 +1,169 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class IndexEntity extends \Google\Collection
{
protected $collection_key = 'tableColumnsDescending';
/**
* Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
/**
* The name of the index.
*
* @var string
*/
public $name;
/**
* Table columns used as part of the Index, for example B-TREE index should
* list the columns which constitutes the index.
*
* @var string[]
*/
public $tableColumns;
/**
* For each table_column, mark whether it's sorting order is ascending (false)
* or descending (true). If no value is defined, assume all columns are sorted
* in ascending order. Otherwise, the number of items must match that of
* table_columns with each value specifying the direction of the matched
* column by its index.
*
* @var bool[]
*/
public $tableColumnsDescending;
/**
* Type of index, for example B-TREE.
*
* @var string
*/
public $type;
/**
* Boolean value indicating whether the index is unique.
*
* @var bool
*/
public $unique;
/**
* Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* The name of the index.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Table columns used as part of the Index, for example B-TREE index should
* list the columns which constitutes the index.
*
* @param string[] $tableColumns
*/
public function setTableColumns($tableColumns)
{
$this->tableColumns = $tableColumns;
}
/**
* @return string[]
*/
public function getTableColumns()
{
return $this->tableColumns;
}
/**
* For each table_column, mark whether it's sorting order is ascending (false)
* or descending (true). If no value is defined, assume all columns are sorted
* in ascending order. Otherwise, the number of items must match that of
* table_columns with each value specifying the direction of the matched
* column by its index.
*
* @param bool[] $tableColumnsDescending
*/
public function setTableColumnsDescending($tableColumnsDescending)
{
$this->tableColumnsDescending = $tableColumnsDescending;
}
/**
* @return bool[]
*/
public function getTableColumnsDescending()
{
return $this->tableColumnsDescending;
}
/**
* Type of index, for example B-TREE.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Boolean value indicating whether the index is unique.
*
* @param bool $unique
*/
public function setUnique($unique)
{
$this->unique = $unique;
}
/**
* @return bool
*/
public function getUnique()
{
return $this->unique;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexEntity::class, 'Google_Service_DatabaseMigrationService_IndexEntity');
@@ -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\DatabaseMigrationService;
class InstanceNetworkConfig extends \Google\Collection
{
protected $collection_key = 'authorizedExternalNetworks';
protected $authorizedExternalNetworksType = AuthorizedNetwork::class;
protected $authorizedExternalNetworksDataType = 'array';
/**
* Optional. Enabling an outbound public IP address to support a database
* server sending requests out into the internet.
*
* @var bool
*/
public $enableOutboundPublicIp;
/**
* Optional. Enabling public ip for the instance.
*
* @var bool
*/
public $enablePublicIp;
/**
* Optional. A list of external network authorized to access this instance.
*
* @param AuthorizedNetwork[] $authorizedExternalNetworks
*/
public function setAuthorizedExternalNetworks($authorizedExternalNetworks)
{
$this->authorizedExternalNetworks = $authorizedExternalNetworks;
}
/**
* @return AuthorizedNetwork[]
*/
public function getAuthorizedExternalNetworks()
{
return $this->authorizedExternalNetworks;
}
/**
* Optional. Enabling an outbound public IP address to support a database
* server sending requests out into the internet.
*
* @param bool $enableOutboundPublicIp
*/
public function setEnableOutboundPublicIp($enableOutboundPublicIp)
{
$this->enableOutboundPublicIp = $enableOutboundPublicIp;
}
/**
* @return bool
*/
public function getEnableOutboundPublicIp()
{
return $this->enableOutboundPublicIp;
}
/**
* Optional. Enabling public ip for the instance.
*
* @param bool $enablePublicIp
*/
public function setEnablePublicIp($enablePublicIp)
{
$this->enablePublicIp = $enablePublicIp;
}
/**
* @return bool
*/
public function getEnablePublicIp()
{
return $this->enablePublicIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceNetworkConfig::class, 'Google_Service_DatabaseMigrationService_InstanceNetworkConfig');
@@ -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\DatabaseMigrationService;
class IntComparisonFilter extends \Google\Model
{
/**
* Value comparison unspecified.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_UNSPECIFIED = 'VALUE_COMPARISON_UNSPECIFIED';
/**
* Value is smaller than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_SMALLER_THAN = 'VALUE_COMPARISON_IF_VALUE_SMALLER_THAN';
/**
* Value is smaller or equal than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN = 'VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN';
/**
* Value is larger than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_LARGER_THAN = 'VALUE_COMPARISON_IF_VALUE_LARGER_THAN';
/**
* Value is larger or equal than the Compare value.
*/
public const VALUE_COMPARISON_VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN = 'VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN';
/**
* Required. Integer compare value to be used
*
* @var string
*/
public $value;
/**
* Required. Relation between source value and compare value
*
* @var string
*/
public $valueComparison;
/**
* Required. Integer compare value to be used
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Required. Relation between source value and compare value
*
* Accepted values: VALUE_COMPARISON_UNSPECIFIED,
* VALUE_COMPARISON_IF_VALUE_SMALLER_THAN,
* VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN,
* VALUE_COMPARISON_IF_VALUE_LARGER_THAN,
* VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN
*
* @param self::VALUE_COMPARISON_* $valueComparison
*/
public function setValueComparison($valueComparison)
{
$this->valueComparison = $valueComparison;
}
/**
* @return self::VALUE_COMPARISON_*
*/
public function getValueComparison()
{
return $this->valueComparison;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IntComparisonFilter::class, 'Google_Service_DatabaseMigrationService_IntComparisonFilter');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class Link extends \Google\Model
{
/**
* Describes what the link offers.
*
* @var string
*/
public $description;
/**
* The URL of the link.
*
* @var string
*/
public $url;
/**
* Describes what the link offers.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The URL of the link.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Link::class, 'Google_Service_DatabaseMigrationService_Link');
@@ -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\DatabaseMigrationService;
class ListConnectionProfilesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $connectionProfilesType = ConnectionProfile::class;
protected $connectionProfilesDataType = 'array';
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The response list of connection profiles.
*
* @param ConnectionProfile[] $connectionProfiles
*/
public function setConnectionProfiles($connectionProfiles)
{
$this->connectionProfiles = $connectionProfiles;
}
/**
* @return ConnectionProfile[]
*/
public function getConnectionProfiles()
{
return $this->connectionProfiles;
}
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListConnectionProfilesResponse::class, 'Google_Service_DatabaseMigrationService_ListConnectionProfilesResponse');
@@ -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\DatabaseMigrationService;
class ListConversionWorkspacesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $conversionWorkspacesType = ConversionWorkspace::class;
protected $conversionWorkspacesDataType = 'array';
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of conversion workspace objects.
*
* @param ConversionWorkspace[] $conversionWorkspaces
*/
public function setConversionWorkspaces($conversionWorkspaces)
{
$this->conversionWorkspaces = $conversionWorkspaces;
}
/**
* @return ConversionWorkspace[]
*/
public function getConversionWorkspaces()
{
return $this->conversionWorkspaces;
}
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListConversionWorkspacesResponse::class, 'Google_Service_DatabaseMigrationService_ListConversionWorkspacesResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_DatabaseMigrationService_ListLocationsResponse');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ListMappingRulesResponse extends \Google\Collection
{
protected $collection_key = 'mappingRules';
protected $mappingRulesType = MappingRule::class;
protected $mappingRulesDataType = 'array';
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The list of conversion workspace mapping rules.
*
* @param MappingRule[] $mappingRules
*/
public function setMappingRules($mappingRules)
{
$this->mappingRules = $mappingRules;
}
/**
* @return MappingRule[]
*/
public function getMappingRules()
{
return $this->mappingRules;
}
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
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(ListMappingRulesResponse::class, 'Google_Service_DatabaseMigrationService_ListMappingRulesResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class ListMigrationJobObjectsResponse extends \Google\Collection
{
protected $collection_key = 'migrationJobObjects';
protected $migrationJobObjectsType = MigrationJobObject::class;
protected $migrationJobObjectsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page.
*
* @var string
*/
public $nextPageToken;
/**
* List of migration job objects.
*
* @param MigrationJobObject[] $migrationJobObjects
*/
public function setMigrationJobObjects($migrationJobObjects)
{
$this->migrationJobObjects = $migrationJobObjects;
}
/**
* @return MigrationJobObject[]
*/
public function getMigrationJobObjects()
{
return $this->migrationJobObjects;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page.
*
* @param string $nextPageToken
*/
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(ListMigrationJobObjectsResponse::class, 'Google_Service_DatabaseMigrationService_ListMigrationJobObjectsResponse');
@@ -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\DatabaseMigrationService;
class ListMigrationJobsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $migrationJobsType = MigrationJob::class;
protected $migrationJobsDataType = 'array';
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of migration jobs objects.
*
* @param MigrationJob[] $migrationJobs
*/
public function setMigrationJobs($migrationJobs)
{
$this->migrationJobs = $migrationJobs;
}
/**
* @return MigrationJob[]
*/
public function getMigrationJobs()
{
return $this->migrationJobs;
}
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListMigrationJobsResponse::class, 'Google_Service_DatabaseMigrationService_ListMigrationJobsResponse');
@@ -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\DatabaseMigrationService;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_DatabaseMigrationService_ListOperationsResponse');
@@ -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\DatabaseMigrationService;
class ListPrivateConnectionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $privateConnectionsType = PrivateConnection::class;
protected $privateConnectionsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of private connections.
*
* @param PrivateConnection[] $privateConnections
*/
public function setPrivateConnections($privateConnections)
{
$this->privateConnections = $privateConnections;
}
/**
* @return PrivateConnection[]
*/
public function getPrivateConnections()
{
return $this->privateConnections;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPrivateConnectionsResponse::class, 'Google_Service_DatabaseMigrationService_ListPrivateConnectionsResponse');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class LocalizedMessage extends \Google\Model
{
/**
* The locale used following the specification defined at https://www.rfc-
* editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
*
* @var string
*/
public $locale;
/**
* The localized error message in the above locale.
*
* @var string
*/
public $message;
/**
* The locale used following the specification defined at https://www.rfc-
* editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* The localized error message in the above locale.
*
* @param string $message
*/
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(LocalizedMessage::class, 'Google_Service_DatabaseMigrationService_LocalizedMessage');
@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_DatabaseMigrationService_Location');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class LogFileDirectories extends \Google\Model
{
/**
* Required. Oracle directory for archived logs.
*
* @var string
*/
public $archivedLogDirectory;
/**
* Required. Oracle directory for online logs.
*
* @var string
*/
public $onlineLogDirectory;
/**
* Required. Oracle directory for archived logs.
*
* @param string $archivedLogDirectory
*/
public function setArchivedLogDirectory($archivedLogDirectory)
{
$this->archivedLogDirectory = $archivedLogDirectory;
}
/**
* @return string
*/
public function getArchivedLogDirectory()
{
return $this->archivedLogDirectory;
}
/**
* Required. Oracle directory for online logs.
*
* @param string $onlineLogDirectory
*/
public function setOnlineLogDirectory($onlineLogDirectory)
{
$this->onlineLogDirectory = $onlineLogDirectory;
}
/**
* @return string
*/
public function getOnlineLogDirectory()
{
return $this->onlineLogDirectory;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogFileDirectories::class, 'Google_Service_DatabaseMigrationService_LogFileDirectories');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class LogMiner extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogMiner::class, 'Google_Service_DatabaseMigrationService_LogMiner');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class LookupMigrationJobObjectRequest extends \Google\Model
{
protected $sourceObjectIdentifierType = SourceObjectIdentifier::class;
protected $sourceObjectIdentifierDataType = '';
/**
* Required. The source object identifier which maps to the migration job
* object.
*
* @param SourceObjectIdentifier $sourceObjectIdentifier
*/
public function setSourceObjectIdentifier(SourceObjectIdentifier $sourceObjectIdentifier)
{
$this->sourceObjectIdentifier = $sourceObjectIdentifier;
}
/**
* @return SourceObjectIdentifier
*/
public function getSourceObjectIdentifier()
{
return $this->sourceObjectIdentifier;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupMigrationJobObjectRequest::class, 'Google_Service_DatabaseMigrationService_LookupMigrationJobObjectRequest');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MachineConfig extends \Google\Model
{
/**
* The number of CPU's in the VM instance.
*
* @var int
*/
public $cpuCount;
/**
* Optional. Machine type of the VM instance. E.g. "n2-highmem-4",
* "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of
* vCPUs in the machine type.
*
* @var string
*/
public $machineType;
/**
* The number of CPU's in the VM instance.
*
* @param int $cpuCount
*/
public function setCpuCount($cpuCount)
{
$this->cpuCount = $cpuCount;
}
/**
* @return int
*/
public function getCpuCount()
{
return $this->cpuCount;
}
/**
* Optional. Machine type of the VM instance. E.g. "n2-highmem-4",
* "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of
* vCPUs in the machine type.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MachineConfig::class, 'Google_Service_DatabaseMigrationService_MachineConfig');
@@ -0,0 +1,503 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MappingRule extends \Google\Model
{
/**
* Unspecified database entity type.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_UNSPECIFIED = 'DATABASE_ENTITY_TYPE_UNSPECIFIED';
/**
* Schema.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_SCHEMA = 'DATABASE_ENTITY_TYPE_SCHEMA';
/**
* Table.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_TABLE = 'DATABASE_ENTITY_TYPE_TABLE';
/**
* Column.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_COLUMN = 'DATABASE_ENTITY_TYPE_COLUMN';
/**
* Constraint.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_CONSTRAINT = 'DATABASE_ENTITY_TYPE_CONSTRAINT';
/**
* Index.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_INDEX = 'DATABASE_ENTITY_TYPE_INDEX';
/**
* Trigger.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_TRIGGER = 'DATABASE_ENTITY_TYPE_TRIGGER';
/**
* View.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_VIEW = 'DATABASE_ENTITY_TYPE_VIEW';
/**
* Sequence.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_SEQUENCE = 'DATABASE_ENTITY_TYPE_SEQUENCE';
/**
* Stored Procedure.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 'DATABASE_ENTITY_TYPE_STORED_PROCEDURE';
/**
* Function.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_FUNCTION = 'DATABASE_ENTITY_TYPE_FUNCTION';
/**
* Synonym.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_SYNONYM = 'DATABASE_ENTITY_TYPE_SYNONYM';
/**
* Package.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 'DATABASE_ENTITY_TYPE_DATABASE_PACKAGE';
/**
* UDT.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_UDT = 'DATABASE_ENTITY_TYPE_UDT';
/**
* Materialized View.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 'DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW';
/**
* Database.
*/
public const RULE_SCOPE_DATABASE_ENTITY_TYPE_DATABASE = 'DATABASE_ENTITY_TYPE_DATABASE';
/**
* The state of the mapping rule is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The rule is enabled.
*/
public const STATE_ENABLED = 'ENABLED';
/**
* The rule is disabled.
*/
public const STATE_DISABLED = 'DISABLED';
/**
* The rule is logically deleted.
*/
public const STATE_DELETED = 'DELETED';
protected $conditionalColumnSetValueType = ConditionalColumnSetValue::class;
protected $conditionalColumnSetValueDataType = '';
protected $convertRowidColumnType = ConvertRowIdToColumn::class;
protected $convertRowidColumnDataType = '';
/**
* Optional. A human readable name
*
* @var string
*/
public $displayName;
protected $entityMoveType = EntityMove::class;
protected $entityMoveDataType = '';
protected $filterType = MappingRuleFilter::class;
protected $filterDataType = '';
protected $filterTableColumnsType = FilterTableColumns::class;
protected $filterTableColumnsDataType = '';
protected $multiColumnDataTypeChangeType = MultiColumnDatatypeChange::class;
protected $multiColumnDataTypeChangeDataType = '';
protected $multiEntityRenameType = MultiEntityRename::class;
protected $multiEntityRenameDataType = '';
/**
* Full name of the mapping rule resource, in the form of: projects/{project}/
* locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
*
* @var string
*/
public $name;
/**
* Output only. The timestamp that the revision was created.
*
* @var string
*/
public $revisionCreateTime;
/**
* Output only. The revision ID of the mapping rule. A new revision is
* committed whenever the mapping rule is changed in any way. The format is an
* 8-character hexadecimal string.
*
* @var string
*/
public $revisionId;
/**
* Required. The order in which the rule is applied. Lower order rules are
* applied before higher value rules so they may end up being overridden.
*
* @var string
*/
public $ruleOrder;
/**
* Required. The rule scope
*
* @var string
*/
public $ruleScope;
protected $setTablePrimaryKeyType = SetTablePrimaryKey::class;
protected $setTablePrimaryKeyDataType = '';
protected $singleColumnChangeType = SingleColumnChange::class;
protected $singleColumnChangeDataType = '';
protected $singleEntityRenameType = SingleEntityRename::class;
protected $singleEntityRenameDataType = '';
protected $singlePackageChangeType = SinglePackageChange::class;
protected $singlePackageChangeDataType = '';
protected $sourceSqlChangeType = SourceSqlChange::class;
protected $sourceSqlChangeDataType = '';
/**
* Optional. The mapping rule state
*
* @var string
*/
public $state;
/**
* Optional. Rule to specify how the data contained in a column should be
* transformed (such as trimmed, rounded, etc) provided that the data meets
* certain criteria.
*
* @param ConditionalColumnSetValue $conditionalColumnSetValue
*/
public function setConditionalColumnSetValue(ConditionalColumnSetValue $conditionalColumnSetValue)
{
$this->conditionalColumnSetValue = $conditionalColumnSetValue;
}
/**
* @return ConditionalColumnSetValue
*/
public function getConditionalColumnSetValue()
{
return $this->conditionalColumnSetValue;
}
/**
* Optional. Rule to specify how multiple tables should be converted with an
* additional rowid column.
*
* @param ConvertRowIdToColumn $convertRowidColumn
*/
public function setConvertRowidColumn(ConvertRowIdToColumn $convertRowidColumn)
{
$this->convertRowidColumn = $convertRowidColumn;
}
/**
* @return ConvertRowIdToColumn
*/
public function getConvertRowidColumn()
{
return $this->convertRowidColumn;
}
/**
* Optional. A human readable name
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Optional. Rule to specify how multiple entities should be relocated into a
* different schema.
*
* @param EntityMove $entityMove
*/
public function setEntityMove(EntityMove $entityMove)
{
$this->entityMove = $entityMove;
}
/**
* @return EntityMove
*/
public function getEntityMove()
{
return $this->entityMove;
}
/**
* Required. The rule filter
*
* @param MappingRuleFilter $filter
*/
public function setFilter(MappingRuleFilter $filter)
{
$this->filter = $filter;
}
/**
* @return MappingRuleFilter
*/
public function getFilter()
{
return $this->filter;
}
/**
* Optional. Rule to specify the list of columns to include or exclude from a
* table.
*
* @param FilterTableColumns $filterTableColumns
*/
public function setFilterTableColumns(FilterTableColumns $filterTableColumns)
{
$this->filterTableColumns = $filterTableColumns;
}
/**
* @return FilterTableColumns
*/
public function getFilterTableColumns()
{
return $this->filterTableColumns;
}
/**
* Optional. Rule to specify how multiple columns should be converted to a
* different data type.
*
* @param MultiColumnDatatypeChange $multiColumnDataTypeChange
*/
public function setMultiColumnDataTypeChange(MultiColumnDatatypeChange $multiColumnDataTypeChange)
{
$this->multiColumnDataTypeChange = $multiColumnDataTypeChange;
}
/**
* @return MultiColumnDatatypeChange
*/
public function getMultiColumnDataTypeChange()
{
return $this->multiColumnDataTypeChange;
}
/**
* Optional. Rule to specify how multiple entities should be renamed.
*
* @param MultiEntityRename $multiEntityRename
*/
public function setMultiEntityRename(MultiEntityRename $multiEntityRename)
{
$this->multiEntityRename = $multiEntityRename;
}
/**
* @return MultiEntityRename
*/
public function getMultiEntityRename()
{
return $this->multiEntityRename;
}
/**
* Full name of the mapping rule resource, in the form of: projects/{project}/
* locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The timestamp that the revision was created.
*
* @param string $revisionCreateTime
*/
public function setRevisionCreateTime($revisionCreateTime)
{
$this->revisionCreateTime = $revisionCreateTime;
}
/**
* @return string
*/
public function getRevisionCreateTime()
{
return $this->revisionCreateTime;
}
/**
* Output only. The revision ID of the mapping rule. A new revision is
* committed whenever the mapping rule is changed in any way. The format is an
* 8-character hexadecimal string.
*
* @param string $revisionId
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* Required. The order in which the rule is applied. Lower order rules are
* applied before higher value rules so they may end up being overridden.
*
* @param string $ruleOrder
*/
public function setRuleOrder($ruleOrder)
{
$this->ruleOrder = $ruleOrder;
}
/**
* @return string
*/
public function getRuleOrder()
{
return $this->ruleOrder;
}
/**
* Required. The rule scope
*
* Accepted values: DATABASE_ENTITY_TYPE_UNSPECIFIED,
* DATABASE_ENTITY_TYPE_SCHEMA, DATABASE_ENTITY_TYPE_TABLE,
* DATABASE_ENTITY_TYPE_COLUMN, DATABASE_ENTITY_TYPE_CONSTRAINT,
* DATABASE_ENTITY_TYPE_INDEX, DATABASE_ENTITY_TYPE_TRIGGER,
* DATABASE_ENTITY_TYPE_VIEW, DATABASE_ENTITY_TYPE_SEQUENCE,
* DATABASE_ENTITY_TYPE_STORED_PROCEDURE, DATABASE_ENTITY_TYPE_FUNCTION,
* DATABASE_ENTITY_TYPE_SYNONYM, DATABASE_ENTITY_TYPE_DATABASE_PACKAGE,
* DATABASE_ENTITY_TYPE_UDT, DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW,
* DATABASE_ENTITY_TYPE_DATABASE
*
* @param self::RULE_SCOPE_* $ruleScope
*/
public function setRuleScope($ruleScope)
{
$this->ruleScope = $ruleScope;
}
/**
* @return self::RULE_SCOPE_*
*/
public function getRuleScope()
{
return $this->ruleScope;
}
/**
* Optional. Rule to specify the primary key for a table
*
* @param SetTablePrimaryKey $setTablePrimaryKey
*/
public function setSetTablePrimaryKey(SetTablePrimaryKey $setTablePrimaryKey)
{
$this->setTablePrimaryKey = $setTablePrimaryKey;
}
/**
* @return SetTablePrimaryKey
*/
public function getSetTablePrimaryKey()
{
return $this->setTablePrimaryKey;
}
/**
* Optional. Rule to specify how a single column is converted.
*
* @param SingleColumnChange $singleColumnChange
*/
public function setSingleColumnChange(SingleColumnChange $singleColumnChange)
{
$this->singleColumnChange = $singleColumnChange;
}
/**
* @return SingleColumnChange
*/
public function getSingleColumnChange()
{
return $this->singleColumnChange;
}
/**
* Optional. Rule to specify how a single entity should be renamed.
*
* @param SingleEntityRename $singleEntityRename
*/
public function setSingleEntityRename(SingleEntityRename $singleEntityRename)
{
$this->singleEntityRename = $singleEntityRename;
}
/**
* @return SingleEntityRename
*/
public function getSingleEntityRename()
{
return $this->singleEntityRename;
}
/**
* Optional. Rule to specify how a single package is converted.
*
* @param SinglePackageChange $singlePackageChange
*/
public function setSinglePackageChange(SinglePackageChange $singlePackageChange)
{
$this->singlePackageChange = $singlePackageChange;
}
/**
* @return SinglePackageChange
*/
public function getSinglePackageChange()
{
return $this->singlePackageChange;
}
/**
* Optional. Rule to change the sql code for an entity, for example, function,
* procedure.
*
* @param SourceSqlChange $sourceSqlChange
*/
public function setSourceSqlChange(SourceSqlChange $sourceSqlChange)
{
$this->sourceSqlChange = $sourceSqlChange;
}
/**
* @return SourceSqlChange
*/
public function getSourceSqlChange()
{
return $this->sourceSqlChange;
}
/**
* Optional. The mapping rule state
*
* Accepted values: STATE_UNSPECIFIED, ENABLED, DISABLED, DELETED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MappingRule::class, 'Google_Service_DatabaseMigrationService_MappingRule');
@@ -0,0 +1,153 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MappingRuleFilter extends \Google\Collection
{
protected $collection_key = 'entities';
/**
* Optional. The rule should be applied to specific entities defined by their
* fully qualified names.
*
* @var string[]
*/
public $entities;
/**
* Optional. The rule should be applied to entities whose non-qualified name
* contains the given string.
*
* @var string
*/
public $entityNameContains;
/**
* Optional. The rule should be applied to entities whose non-qualified name
* starts with the given prefix.
*
* @var string
*/
public $entityNamePrefix;
/**
* Optional. The rule should be applied to entities whose non-qualified name
* ends with the given suffix.
*
* @var string
*/
public $entityNameSuffix;
/**
* Optional. The rule should be applied to entities whose parent entity (fully
* qualified name) matches the given value. For example, if the rule applies
* to a table entity, the expected value should be a schema (schema). If the
* rule applies to a column or index entity, the expected value can be either
* a schema (schema) or a table (schema.table)
*
* @var string
*/
public $parentEntity;
/**
* Optional. The rule should be applied to specific entities defined by their
* fully qualified names.
*
* @param string[] $entities
*/
public function setEntities($entities)
{
$this->entities = $entities;
}
/**
* @return string[]
*/
public function getEntities()
{
return $this->entities;
}
/**
* Optional. The rule should be applied to entities whose non-qualified name
* contains the given string.
*
* @param string $entityNameContains
*/
public function setEntityNameContains($entityNameContains)
{
$this->entityNameContains = $entityNameContains;
}
/**
* @return string
*/
public function getEntityNameContains()
{
return $this->entityNameContains;
}
/**
* Optional. The rule should be applied to entities whose non-qualified name
* starts with the given prefix.
*
* @param string $entityNamePrefix
*/
public function setEntityNamePrefix($entityNamePrefix)
{
$this->entityNamePrefix = $entityNamePrefix;
}
/**
* @return string
*/
public function getEntityNamePrefix()
{
return $this->entityNamePrefix;
}
/**
* Optional. The rule should be applied to entities whose non-qualified name
* ends with the given suffix.
*
* @param string $entityNameSuffix
*/
public function setEntityNameSuffix($entityNameSuffix)
{
$this->entityNameSuffix = $entityNameSuffix;
}
/**
* @return string
*/
public function getEntityNameSuffix()
{
return $this->entityNameSuffix;
}
/**
* Optional. The rule should be applied to entities whose parent entity (fully
* qualified name) matches the given value. For example, if the rule applies
* to a table entity, the expected value should be a schema (schema). If the
* rule applies to a column or index entity, the expected value can be either
* a schema (schema) or a table (schema.table)
*
* @param string $parentEntity
*/
public function setParentEntity($parentEntity)
{
$this->parentEntity = $parentEntity;
}
/**
* @return string
*/
public function getParentEntity()
{
return $this->parentEntity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MappingRuleFilter::class, 'Google_Service_DatabaseMigrationService_MappingRuleFilter');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MaterializedViewEntity extends \Google\Collection
{
protected $collection_key = 'indices';
/**
* Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
protected $indicesType = IndexEntity::class;
protected $indicesDataType = 'array';
/**
* The SQL code which creates the view.
*
* @var string
*/
public $sqlCode;
/**
* Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* View indices.
*
* @param IndexEntity[] $indices
*/
public function setIndices($indices)
{
$this->indices = $indices;
}
/**
* @return IndexEntity[]
*/
public function getIndices()
{
return $this->indices;
}
/**
* The SQL code which creates the view.
*
* @param string $sqlCode
*/
public function setSqlCode($sqlCode)
{
$this->sqlCode = $sqlCode;
}
/**
* @return string
*/
public function getSqlCode()
{
return $this->sqlCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaterializedViewEntity::class, 'Google_Service_DatabaseMigrationService_MaterializedViewEntity');
@@ -0,0 +1,935 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MigrationJob extends \Google\Model
{
/**
* If not specified, defaults to LOGICAL
*/
public const DUMP_TYPE_DUMP_TYPE_UNSPECIFIED = 'DUMP_TYPE_UNSPECIFIED';
/**
* Logical dump.
*/
public const DUMP_TYPE_LOGICAL = 'LOGICAL';
/**
* Physical file-based dump. Supported for MySQL to CloudSQL for MySQL
* migrations only.
*/
public const DUMP_TYPE_PHYSICAL = 'PHYSICAL';
/**
* The phase of the migration job is unknown.
*/
public const PHASE_PHASE_UNSPECIFIED = 'PHASE_UNSPECIFIED';
/**
* The migration job is in the full dump phase.
*/
public const PHASE_FULL_DUMP = 'FULL_DUMP';
/**
* The migration job is CDC phase.
*/
public const PHASE_CDC = 'CDC';
/**
* The migration job is running the promote phase.
*/
public const PHASE_PROMOTE_IN_PROGRESS = 'PROMOTE_IN_PROGRESS';
/**
* Only RDS flow - waiting for source writes to stop
*/
public const PHASE_WAITING_FOR_SOURCE_WRITES_TO_STOP = 'WAITING_FOR_SOURCE_WRITES_TO_STOP';
/**
* Only RDS flow - the sources writes stopped, waiting for dump to begin
*/
public const PHASE_PREPARING_THE_DUMP = 'PREPARING_THE_DUMP';
/**
* The migration job is ready to be promoted.
*/
public const PHASE_READY_FOR_PROMOTE = 'READY_FOR_PROMOTE';
/**
* Unknown purpose. Will be defaulted to MIGRATE.
*/
public const PURPOSE_PURPOSE_UNSPECIFIED = 'PURPOSE_UNSPECIFIED';
/**
* Standard migration job.
*/
public const PURPOSE_MIGRATE = 'MIGRATE';
/**
* Failback replication job.
*/
public const PURPOSE_FAILBACK = 'FAILBACK';
/**
* The state of the migration job is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The migration job is down for maintenance.
*/
public const STATE_MAINTENANCE = 'MAINTENANCE';
/**
* The migration job is in draft mode and no resources are created.
*/
public const STATE_DRAFT = 'DRAFT';
/**
* The migration job is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The migration job is created and not started.
*/
public const STATE_NOT_STARTED = 'NOT_STARTED';
/**
* The migration job is running.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The migration job failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The migration job has been completed.
*/
public const STATE_COMPLETED = 'COMPLETED';
/**
* The migration job is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The migration job is being stopped.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* The migration job is currently stopped.
*/
public const STATE_STOPPED = 'STOPPED';
/**
* The migration job has been deleted.
*/
public const STATE_DELETED = 'DELETED';
/**
* The migration job is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The migration job is starting.
*/
public const STATE_STARTING = 'STARTING';
/**
* The migration job is restarting.
*/
public const STATE_RESTARTING = 'RESTARTING';
/**
* The migration job is resuming.
*/
public const STATE_RESUMING = 'RESUMING';
/**
* The type of the migration job is unknown.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* The migration job is a one time migration.
*/
public const TYPE_ONE_TIME = 'ONE_TIME';
/**
* The migration job is a continuous migration.
*/
public const TYPE_CONTINUOUS = 'CONTINUOUS';
/**
* The CMEK (customer-managed encryption key) fully qualified key name used
* for the migration job. This field supports all migration jobs types except
* for: * Mysql to Mysql (use the cmek field in the cloudsql connection
* profile instead). * PostrgeSQL to PostgreSQL (use the cmek field in the
* cloudsql connection profile instead). * PostgreSQL to AlloyDB (use the
* kms_key_name field in the alloydb connection profile instead). Each Cloud
* CMEK key has the following format:
* projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
*
* @var string
*/
public $cmekKeyName;
protected $conversionWorkspaceType = ConversionWorkspaceInfo::class;
protected $conversionWorkspaceDataType = '';
/**
* Output only. The timestamp when the migration job resource was created. A
* timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example:
* "2014-10-02T15:01:23.045123456Z".
*
* @var string
*/
public $createTime;
/**
* Required. The resource name (URI) of the destination connection profile.
*
* @var string
*/
public $destination;
protected $destinationDatabaseType = DatabaseType::class;
protected $destinationDatabaseDataType = '';
/**
* The migration job display name.
*
* @var string
*/
public $displayName;
protected $dumpFlagsType = DumpFlags::class;
protected $dumpFlagsDataType = '';
/**
* The path to the dump file in Google Cloud Storage, in the format:
* (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field
* are mutually exclusive.
*
* @var string
*/
public $dumpPath;
/**
* Optional. The type of the data dump. Supported for MySQL to CloudSQL for
* MySQL migrations only.
*
* @var string
*/
public $dumpType;
/**
* Output only. The duration of the migration job (in seconds). A duration in
* seconds with up to nine fractional digits, terminated by 's'. Example:
* "3.5s".
*
* @var string
*/
public $duration;
/**
* Output only. If the migration job is completed, the time when it was
* completed.
*
* @var string
*/
public $endTime;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* This field can be used to select the entities to migrate as part of the
* migration job. It uses AIP-160 notation to select a subset of the entities
* configured on the associated conversion-workspace. This field should not be
* set on migration-jobs that are not associated with a conversion workspace.
*
* @var string
*/
public $filter;
/**
* The resource labels for migration job to use to annotate any related
* underlying resources such as Compute Engine VMs. An object containing a
* list of "key": "value" pairs. Example: `{ "name": "wrench", "mass":
* "1.3kg", "count": "3" }`.
*
* @var string[]
*/
public $labels;
/**
* The name (URI) of this migration job resource, in the form of:
* projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
*
* @var string
*/
public $name;
protected $objectsConfigType = MigrationJobObjectsConfig::class;
protected $objectsConfigDataType = '';
protected $oracleToPostgresConfigType = OracleToPostgresConfig::class;
protected $oracleToPostgresConfigDataType = '';
/**
* Optional. A failback replication pointer to the resource name (URI) of the
* original migration job.
*
* @var string
*/
public $originalMigrationName;
protected $performanceConfigType = PerformanceConfig::class;
protected $performanceConfigDataType = '';
/**
* Output only. The current migration job phase.
*
* @var string
*/
public $phase;
protected $postgresHomogeneousConfigType = PostgresHomogeneousConfig::class;
protected $postgresHomogeneousConfigDataType = '';
protected $postgresToSqlserverConfigType = PostgresToSqlServerConfig::class;
protected $postgresToSqlserverConfigDataType = '';
/**
* Output only. Migration job mode. Migration jobs can be standard forward
* jobs or failback migration jobs.
*
* @var string
*/
public $purpose;
protected $reverseSshConnectivityType = ReverseSshConnectivity::class;
protected $reverseSshConnectivityDataType = '';
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* Required. The resource name (URI) of the source connection profile.
*
* @var string
*/
public $source;
protected $sourceDatabaseType = DatabaseType::class;
protected $sourceDatabaseDataType = '';
protected $sqlserverHomogeneousMigrationJobConfigType = SqlServerHomogeneousMigrationJobConfig::class;
protected $sqlserverHomogeneousMigrationJobConfigDataType = '';
protected $sqlserverToPostgresConfigType = SqlServerToPostgresConfig::class;
protected $sqlserverToPostgresConfigDataType = '';
/**
* The current migration job state.
*
* @var string
*/
public $state;
protected $staticIpConnectivityType = StaticIpConnectivity::class;
protected $staticIpConnectivityDataType = '';
/**
* Required. The migration job type.
*
* @var string
*/
public $type;
/**
* Output only. The timestamp when the migration job resource was last
* updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
* Example: "2014-10-02T15:01:23.045123456Z".
*
* @var string
*/
public $updateTime;
protected $vpcPeeringConnectivityType = VpcPeeringConnectivity::class;
protected $vpcPeeringConnectivityDataType = '';
/**
* The CMEK (customer-managed encryption key) fully qualified key name used
* for the migration job. This field supports all migration jobs types except
* for: * Mysql to Mysql (use the cmek field in the cloudsql connection
* profile instead). * PostrgeSQL to PostgreSQL (use the cmek field in the
* cloudsql connection profile instead). * PostgreSQL to AlloyDB (use the
* kms_key_name field in the alloydb connection profile instead). Each Cloud
* CMEK key has the following format:
* projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
*
* @param string $cmekKeyName
*/
public function setCmekKeyName($cmekKeyName)
{
$this->cmekKeyName = $cmekKeyName;
}
/**
* @return string
*/
public function getCmekKeyName()
{
return $this->cmekKeyName;
}
/**
* The conversion workspace used by the migration.
*
* @param ConversionWorkspaceInfo $conversionWorkspace
*/
public function setConversionWorkspace(ConversionWorkspaceInfo $conversionWorkspace)
{
$this->conversionWorkspace = $conversionWorkspace;
}
/**
* @return ConversionWorkspaceInfo
*/
public function getConversionWorkspace()
{
return $this->conversionWorkspace;
}
/**
* Output only. The timestamp when the migration job resource was created. A
* timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example:
* "2014-10-02T15:01:23.045123456Z".
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Required. The resource name (URI) of the destination connection profile.
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* The database engine type and provider of the destination.
*
* @param DatabaseType $destinationDatabase
*/
public function setDestinationDatabase(DatabaseType $destinationDatabase)
{
$this->destinationDatabase = $destinationDatabase;
}
/**
* @return DatabaseType
*/
public function getDestinationDatabase()
{
return $this->destinationDatabase;
}
/**
* The migration job display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The initial dump flags. This field and the "dump_path" field are mutually
* exclusive.
*
* @param DumpFlags $dumpFlags
*/
public function setDumpFlags(DumpFlags $dumpFlags)
{
$this->dumpFlags = $dumpFlags;
}
/**
* @return DumpFlags
*/
public function getDumpFlags()
{
return $this->dumpFlags;
}
/**
* The path to the dump file in Google Cloud Storage, in the format:
* (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field
* are mutually exclusive.
*
* @param string $dumpPath
*/
public function setDumpPath($dumpPath)
{
$this->dumpPath = $dumpPath;
}
/**
* @return string
*/
public function getDumpPath()
{
return $this->dumpPath;
}
/**
* Optional. The type of the data dump. Supported for MySQL to CloudSQL for
* MySQL migrations only.
*
* Accepted values: DUMP_TYPE_UNSPECIFIED, LOGICAL, PHYSICAL
*
* @param self::DUMP_TYPE_* $dumpType
*/
public function setDumpType($dumpType)
{
$this->dumpType = $dumpType;
}
/**
* @return self::DUMP_TYPE_*
*/
public function getDumpType()
{
return $this->dumpType;
}
/**
* Output only. The duration of the migration job (in seconds). A duration in
* seconds with up to nine fractional digits, terminated by 's'. Example:
* "3.5s".
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* Output only. If the migration job is completed, the time when it was
* completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. The error details in case of state FAILED.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* This field can be used to select the entities to migrate as part of the
* migration job. It uses AIP-160 notation to select a subset of the entities
* configured on the associated conversion-workspace. This field should not be
* set on migration-jobs that are not associated with a conversion workspace.
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* The resource labels for migration job to use to annotate any related
* underlying resources such as Compute Engine VMs. An object containing a
* list of "key": "value" pairs. Example: `{ "name": "wrench", "mass":
* "1.3kg", "count": "3" }`.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The name (URI) of this migration job resource, in the form of:
* projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The objects that need to be migrated.
*
* @param MigrationJobObjectsConfig $objectsConfig
*/
public function setObjectsConfig(MigrationJobObjectsConfig $objectsConfig)
{
$this->objectsConfig = $objectsConfig;
}
/**
* @return MigrationJobObjectsConfig
*/
public function getObjectsConfig()
{
return $this->objectsConfig;
}
/**
* Configuration for heterogeneous **Oracle to Cloud SQL for PostgreSQL** and
* **Oracle to AlloyDB for PostgreSQL** migrations.
*
* @param OracleToPostgresConfig $oracleToPostgresConfig
*/
public function setOracleToPostgresConfig(OracleToPostgresConfig $oracleToPostgresConfig)
{
$this->oracleToPostgresConfig = $oracleToPostgresConfig;
}
/**
* @return OracleToPostgresConfig
*/
public function getOracleToPostgresConfig()
{
return $this->oracleToPostgresConfig;
}
/**
* Optional. A failback replication pointer to the resource name (URI) of the
* original migration job.
*
* @param string $originalMigrationName
*/
public function setOriginalMigrationName($originalMigrationName)
{
$this->originalMigrationName = $originalMigrationName;
}
/**
* @return string
*/
public function getOriginalMigrationName()
{
return $this->originalMigrationName;
}
/**
* Optional. Data dump parallelism settings used by the migration.
*
* @param PerformanceConfig $performanceConfig
*/
public function setPerformanceConfig(PerformanceConfig $performanceConfig)
{
$this->performanceConfig = $performanceConfig;
}
/**
* @return PerformanceConfig
*/
public function getPerformanceConfig()
{
return $this->performanceConfig;
}
/**
* Output only. The current migration job phase.
*
* Accepted values: PHASE_UNSPECIFIED, FULL_DUMP, CDC, PROMOTE_IN_PROGRESS,
* WAITING_FOR_SOURCE_WRITES_TO_STOP, PREPARING_THE_DUMP, READY_FOR_PROMOTE
*
* @param self::PHASE_* $phase
*/
public function setPhase($phase)
{
$this->phase = $phase;
}
/**
* @return self::PHASE_*
*/
public function getPhase()
{
return $this->phase;
}
/**
* Optional. Configuration for PostgreSQL homogeneous migration.
*
* @param PostgresHomogeneousConfig $postgresHomogeneousConfig
*/
public function setPostgresHomogeneousConfig(PostgresHomogeneousConfig $postgresHomogeneousConfig)
{
$this->postgresHomogeneousConfig = $postgresHomogeneousConfig;
}
/**
* @return PostgresHomogeneousConfig
*/
public function getPostgresHomogeneousConfig()
{
return $this->postgresHomogeneousConfig;
}
/**
* Configuration for heterogeneous failback migrations from **PostgreSQL to
* SQL Server**.
*
* @param PostgresToSqlServerConfig $postgresToSqlserverConfig
*/
public function setPostgresToSqlserverConfig(PostgresToSqlServerConfig $postgresToSqlserverConfig)
{
$this->postgresToSqlserverConfig = $postgresToSqlserverConfig;
}
/**
* @return PostgresToSqlServerConfig
*/
public function getPostgresToSqlserverConfig()
{
return $this->postgresToSqlserverConfig;
}
/**
* Output only. Migration job mode. Migration jobs can be standard forward
* jobs or failback migration jobs.
*
* Accepted values: PURPOSE_UNSPECIFIED, MIGRATE, FAILBACK
*
* @param self::PURPOSE_* $purpose
*/
public function setPurpose($purpose)
{
$this->purpose = $purpose;
}
/**
* @return self::PURPOSE_*
*/
public function getPurpose()
{
return $this->purpose;
}
/**
* The details needed to communicate to the source over Reverse SSH tunnel
* connectivity.
*
* @param ReverseSshConnectivity $reverseSshConnectivity
*/
public function setReverseSshConnectivity(ReverseSshConnectivity $reverseSshConnectivity)
{
$this->reverseSshConnectivity = $reverseSshConnectivity;
}
/**
* @return ReverseSshConnectivity
*/
public function getReverseSshConnectivity()
{
return $this->reverseSshConnectivity;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Required. The resource name (URI) of the source connection profile.
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* The database engine type and provider of the source.
*
* @param DatabaseType $sourceDatabase
*/
public function setSourceDatabase(DatabaseType $sourceDatabase)
{
$this->sourceDatabase = $sourceDatabase;
}
/**
* @return DatabaseType
*/
public function getSourceDatabase()
{
return $this->sourceDatabase;
}
/**
* Optional. Configuration for SQL Server homogeneous migration.
*
* @param SqlServerHomogeneousMigrationJobConfig $sqlserverHomogeneousMigrationJobConfig
*/
public function setSqlserverHomogeneousMigrationJobConfig(SqlServerHomogeneousMigrationJobConfig $sqlserverHomogeneousMigrationJobConfig)
{
$this->sqlserverHomogeneousMigrationJobConfig = $sqlserverHomogeneousMigrationJobConfig;
}
/**
* @return SqlServerHomogeneousMigrationJobConfig
*/
public function getSqlserverHomogeneousMigrationJobConfig()
{
return $this->sqlserverHomogeneousMigrationJobConfig;
}
/**
* Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL**
* migrations.
*
* @param SqlServerToPostgresConfig $sqlserverToPostgresConfig
*/
public function setSqlserverToPostgresConfig(SqlServerToPostgresConfig $sqlserverToPostgresConfig)
{
$this->sqlserverToPostgresConfig = $sqlserverToPostgresConfig;
}
/**
* @return SqlServerToPostgresConfig
*/
public function getSqlserverToPostgresConfig()
{
return $this->sqlserverToPostgresConfig;
}
/**
* The current migration job state.
*
* Accepted values: STATE_UNSPECIFIED, MAINTENANCE, DRAFT, CREATING,
* NOT_STARTED, RUNNING, FAILED, COMPLETED, DELETING, STOPPING, STOPPED,
* DELETED, UPDATING, STARTING, RESTARTING, RESUMING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* static ip connectivity data (default, no additional details needed).
*
* @param StaticIpConnectivity $staticIpConnectivity
*/
public function setStaticIpConnectivity(StaticIpConnectivity $staticIpConnectivity)
{
$this->staticIpConnectivity = $staticIpConnectivity;
}
/**
* @return StaticIpConnectivity
*/
public function getStaticIpConnectivity()
{
return $this->staticIpConnectivity;
}
/**
* Required. The migration job type.
*
* Accepted values: TYPE_UNSPECIFIED, ONE_TIME, CONTINUOUS
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The timestamp when the migration job resource was last
* updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
* Example: "2014-10-02T15:01:23.045123456Z".
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The details of the VPC network that the source database is located in.
*
* @param VpcPeeringConnectivity $vpcPeeringConnectivity
*/
public function setVpcPeeringConnectivity(VpcPeeringConnectivity $vpcPeeringConnectivity)
{
$this->vpcPeeringConnectivity = $vpcPeeringConnectivity;
}
/**
* @return VpcPeeringConnectivity
*/
public function getVpcPeeringConnectivity()
{
return $this->vpcPeeringConnectivity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MigrationJob::class, 'Google_Service_DatabaseMigrationService_MigrationJob');
@@ -0,0 +1,264 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MigrationJobObject extends \Google\Model
{
/**
* The phase of the migration job is unknown.
*/
public const PHASE_PHASE_UNSPECIFIED = 'PHASE_UNSPECIFIED';
/**
* The migration job object is in the full dump phase.
*/
public const PHASE_FULL_DUMP = 'FULL_DUMP';
/**
* The migration job object is in CDC phase.
*/
public const PHASE_CDC = 'CDC';
/**
* The migration job object is ready to be promoted.
*/
public const PHASE_READY_FOR_PROMOTE = 'READY_FOR_PROMOTE';
/**
* The migration job object is in running the promote phase.
*/
public const PHASE_PROMOTE_IN_PROGRESS = 'PROMOTE_IN_PROGRESS';
/**
* The migration job is promoted.
*/
public const PHASE_PROMOTED = 'PROMOTED';
/**
* The migration job object is in the differential backup phase.
*/
public const PHASE_DIFF_BACKUP = 'DIFF_BACKUP';
/**
* The state of the migration job object is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The migration job object is not started.
*/
public const STATE_NOT_STARTED = 'NOT_STARTED';
/**
* The migration job object is running.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The migration job object is being stopped.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* The migration job object is currently stopped.
*/
public const STATE_STOPPED = 'STOPPED';
/**
* The migration job object is restarting.
*/
public const STATE_RESTARTING = 'RESTARTING';
/**
* The migration job object failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The migration job object is deleting.
*/
public const STATE_REMOVING = 'REMOVING';
/**
* The migration job object is not selected for migration.
*/
public const STATE_NOT_SELECTED = 'NOT_SELECTED';
/**
* The migration job object is completed.
*/
public const STATE_COMPLETED = 'COMPLETED';
/**
* Output only. The creation time of the migration job object.
*
* @var string
*/
public $createTime;
protected $errorType = Status::class;
protected $errorDataType = '';
protected $heterogeneousMetadataType = HeterogeneousMetadata::class;
protected $heterogeneousMetadataDataType = '';
/**
* The object's name.
*
* @var string
*/
public $name;
/**
* Output only. The phase of the migration job object.
*
* @var string
*/
public $phase;
protected $sourceObjectType = SourceObjectIdentifier::class;
protected $sourceObjectDataType = '';
/**
* The state of the migration job object.
*
* @var string
*/
public $state;
/**
* Output only. The last update time of the migration job object.
*
* @var string
*/
public $updateTime;
/**
* Output only. The creation time of the migration job object.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The error details in case of failure.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Output only. Metadata for heterogeneous migration jobs objects.
*
* @param HeterogeneousMetadata $heterogeneousMetadata
*/
public function setHeterogeneousMetadata(HeterogeneousMetadata $heterogeneousMetadata)
{
$this->heterogeneousMetadata = $heterogeneousMetadata;
}
/**
* @return HeterogeneousMetadata
*/
public function getHeterogeneousMetadata()
{
return $this->heterogeneousMetadata;
}
/**
* The object's name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The phase of the migration job object.
*
* Accepted values: PHASE_UNSPECIFIED, FULL_DUMP, CDC, READY_FOR_PROMOTE,
* PROMOTE_IN_PROGRESS, PROMOTED, DIFF_BACKUP
*
* @param self::PHASE_* $phase
*/
public function setPhase($phase)
{
$this->phase = $phase;
}
/**
* @return self::PHASE_*
*/
public function getPhase()
{
return $this->phase;
}
/**
* The object identifier in the data source.
*
* @param SourceObjectIdentifier $sourceObject
*/
public function setSourceObject(SourceObjectIdentifier $sourceObject)
{
$this->sourceObject = $sourceObject;
}
/**
* @return SourceObjectIdentifier
*/
public function getSourceObject()
{
return $this->sourceObject;
}
/**
* The state of the migration job object.
*
* Accepted values: STATE_UNSPECIFIED, NOT_STARTED, RUNNING, STOPPING,
* STOPPED, RESTARTING, FAILED, REMOVING, NOT_SELECTED, COMPLETED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The last update time of the migration job object.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MigrationJobObject::class, 'Google_Service_DatabaseMigrationService_MigrationJobObject');
@@ -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\DatabaseMigrationService;
class MigrationJobObjectsConfig extends \Google\Model
{
protected $sourceObjectsConfigType = SourceObjectsConfig::class;
protected $sourceObjectsConfigDataType = '';
/**
* The list of the migration job objects.
*
* @param SourceObjectsConfig $sourceObjectsConfig
*/
public function setSourceObjectsConfig(SourceObjectsConfig $sourceObjectsConfig)
{
$this->sourceObjectsConfig = $sourceObjectsConfig;
}
/**
* @return SourceObjectsConfig
*/
public function getSourceObjectsConfig()
{
return $this->sourceObjectsConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MigrationJobObjectsConfig::class, 'Google_Service_DatabaseMigrationService_MigrationJobObjectsConfig');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MigrationJobVerificationError extends \Google\Model
{
/**
* An unknown error occurred
*/
public const ERROR_CODE_ERROR_CODE_UNSPECIFIED = 'ERROR_CODE_UNSPECIFIED';
/**
* We failed to connect to one of the connection profile.
*/
public const ERROR_CODE_CONNECTION_FAILURE = 'CONNECTION_FAILURE';
/**
* We failed to authenticate to one of the connection profile.
*/
public const ERROR_CODE_AUTHENTICATION_FAILURE = 'AUTHENTICATION_FAILURE';
/**
* One of the involved connection profiles has an invalid configuration.
*/
public const ERROR_CODE_INVALID_CONNECTION_PROFILE_CONFIG = 'INVALID_CONNECTION_PROFILE_CONFIG';
/**
* The versions of the source and the destination are incompatible.
*/
public const ERROR_CODE_VERSION_INCOMPATIBILITY = 'VERSION_INCOMPATIBILITY';
/**
* The types of the source and the destination are incompatible.
*/
public const ERROR_CODE_CONNECTION_PROFILE_TYPES_INCOMPATIBILITY = 'CONNECTION_PROFILE_TYPES_INCOMPATIBILITY';
/**
* No pglogical extension installed on databases, applicable for postgres.
*/
public const ERROR_CODE_NO_PGLOGICAL_INSTALLED = 'NO_PGLOGICAL_INSTALLED';
/**
* pglogical node already exists on databases, applicable for postgres.
*/
public const ERROR_CODE_PGLOGICAL_NODE_ALREADY_EXISTS = 'PGLOGICAL_NODE_ALREADY_EXISTS';
/**
* The value of parameter wal_level is not set to logical.
*/
public const ERROR_CODE_INVALID_WAL_LEVEL = 'INVALID_WAL_LEVEL';
/**
* The value of parameter shared_preload_libraries does not include pglogical.
*/
public const ERROR_CODE_INVALID_SHARED_PRELOAD_LIBRARY = 'INVALID_SHARED_PRELOAD_LIBRARY';
/**
* The value of parameter max_replication_slots is not sufficient.
*/
public const ERROR_CODE_INSUFFICIENT_MAX_REPLICATION_SLOTS = 'INSUFFICIENT_MAX_REPLICATION_SLOTS';
/**
* The value of parameter max_wal_senders is not sufficient.
*/
public const ERROR_CODE_INSUFFICIENT_MAX_WAL_SENDERS = 'INSUFFICIENT_MAX_WAL_SENDERS';
/**
* The value of parameter max_worker_processes is not sufficient.
*/
public const ERROR_CODE_INSUFFICIENT_MAX_WORKER_PROCESSES = 'INSUFFICIENT_MAX_WORKER_PROCESSES';
/**
* Extensions installed are either not supported or having unsupported
* versions.
*/
public const ERROR_CODE_UNSUPPORTED_EXTENSIONS = 'UNSUPPORTED_EXTENSIONS';
/**
* Unsupported migration type.
*/
public const ERROR_CODE_UNSUPPORTED_MIGRATION_TYPE = 'UNSUPPORTED_MIGRATION_TYPE';
/**
* Invalid RDS logical replication.
*/
public const ERROR_CODE_INVALID_RDS_LOGICAL_REPLICATION = 'INVALID_RDS_LOGICAL_REPLICATION';
/**
* The gtid_mode is not supported, applicable for MySQL.
*/
public const ERROR_CODE_UNSUPPORTED_GTID_MODE = 'UNSUPPORTED_GTID_MODE';
/**
* The table definition is not support due to missing primary key or replica
* identity.
*/
public const ERROR_CODE_UNSUPPORTED_TABLE_DEFINITION = 'UNSUPPORTED_TABLE_DEFINITION';
/**
* The definer is not supported.
*/
public const ERROR_CODE_UNSUPPORTED_DEFINER = 'UNSUPPORTED_DEFINER';
/**
* Migration is already running at the time of restart request.
*/
public const ERROR_CODE_CANT_RESTART_RUNNING_MIGRATION = 'CANT_RESTART_RUNNING_MIGRATION';
/**
* The source already has a replication setup.
*/
public const ERROR_CODE_SOURCE_ALREADY_SETUP = 'SOURCE_ALREADY_SETUP';
/**
* The source has tables with limited support. E.g. PostgreSQL tables without
* primary keys.
*/
public const ERROR_CODE_TABLES_WITH_LIMITED_SUPPORT = 'TABLES_WITH_LIMITED_SUPPORT';
/**
* The source uses an unsupported locale.
*/
public const ERROR_CODE_UNSUPPORTED_DATABASE_LOCALE = 'UNSUPPORTED_DATABASE_LOCALE';
/**
* The source uses an unsupported Foreign Data Wrapper configuration.
*/
public const ERROR_CODE_UNSUPPORTED_DATABASE_FDW_CONFIG = 'UNSUPPORTED_DATABASE_FDW_CONFIG';
/**
* There was an underlying RDBMS error.
*/
public const ERROR_CODE_ERROR_RDBMS = 'ERROR_RDBMS';
/**
* The source DB size in Bytes exceeds a certain threshold. The migration
* might require an increase of quota, or might not be supported.
*/
public const ERROR_CODE_SOURCE_SIZE_EXCEEDS_THRESHOLD = 'SOURCE_SIZE_EXCEEDS_THRESHOLD';
/**
* The destination DB contains existing databases that are conflicting with
* those in the source DB.
*/
public const ERROR_CODE_EXISTING_CONFLICTING_DATABASES = 'EXISTING_CONFLICTING_DATABASES';
/**
* Insufficient privilege to enable the parallelism configuration.
*/
public const ERROR_CODE_PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE = 'PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE';
/**
* The destination instance contains existing data or user defined entities
* (for example databases, tables, or functions). You can only migrate to
* empty instances. Clear your destination instance and retry the migration
* job.
*/
public const ERROR_CODE_EXISTING_DATA = 'EXISTING_DATA';
/**
* The migration job is configured to use max number of subscriptions to
* migrate data from the source to the destination.
*/
public const ERROR_CODE_SOURCE_MAX_SUBSCRIPTIONS = 'SOURCE_MAX_SUBSCRIPTIONS';
/**
* Output only. An instance of ErrorCode specifying the error that occurred.
*
* @var string
*/
public $errorCode;
/**
* Output only. A specific detailed error message, if supplied by the engine.
*
* @var string
*/
public $errorDetailMessage;
/**
* Output only. A formatted message with further details about the error and a
* CTA.
*
* @var string
*/
public $errorMessage;
/**
* Output only. An instance of ErrorCode specifying the error that occurred.
*
* Accepted values: ERROR_CODE_UNSPECIFIED, CONNECTION_FAILURE,
* AUTHENTICATION_FAILURE, INVALID_CONNECTION_PROFILE_CONFIG,
* VERSION_INCOMPATIBILITY, CONNECTION_PROFILE_TYPES_INCOMPATIBILITY,
* NO_PGLOGICAL_INSTALLED, PGLOGICAL_NODE_ALREADY_EXISTS, INVALID_WAL_LEVEL,
* INVALID_SHARED_PRELOAD_LIBRARY, INSUFFICIENT_MAX_REPLICATION_SLOTS,
* INSUFFICIENT_MAX_WAL_SENDERS, INSUFFICIENT_MAX_WORKER_PROCESSES,
* UNSUPPORTED_EXTENSIONS, UNSUPPORTED_MIGRATION_TYPE,
* INVALID_RDS_LOGICAL_REPLICATION, UNSUPPORTED_GTID_MODE,
* UNSUPPORTED_TABLE_DEFINITION, UNSUPPORTED_DEFINER,
* CANT_RESTART_RUNNING_MIGRATION, SOURCE_ALREADY_SETUP,
* TABLES_WITH_LIMITED_SUPPORT, UNSUPPORTED_DATABASE_LOCALE,
* UNSUPPORTED_DATABASE_FDW_CONFIG, ERROR_RDBMS,
* SOURCE_SIZE_EXCEEDS_THRESHOLD, EXISTING_CONFLICTING_DATABASES,
* PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE, EXISTING_DATA,
* SOURCE_MAX_SUBSCRIPTIONS
*
* @param self::ERROR_CODE_* $errorCode
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return self::ERROR_CODE_*
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* Output only. A specific detailed error message, if supplied by the engine.
*
* @param string $errorDetailMessage
*/
public function setErrorDetailMessage($errorDetailMessage)
{
$this->errorDetailMessage = $errorDetailMessage;
}
/**
* @return string
*/
public function getErrorDetailMessage()
{
return $this->errorDetailMessage;
}
/**
* Output only. A formatted message with further details about the error and a
* CTA.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MigrationJobVerificationError::class, 'Google_Service_DatabaseMigrationService_MigrationJobVerificationError');
@@ -0,0 +1,226 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MultiColumnDatatypeChange extends \Google\Model
{
/**
* Optional. Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
/**
* Required. New data type.
*
* @var string
*/
public $newDataType;
/**
* Optional. Column fractional seconds precision - used only for timestamp
* based datatypes - if not specified and relevant uses the source column
* fractional seconds precision.
*
* @var int
*/
public $overrideFractionalSecondsPrecision;
/**
* Optional. Column length - e.g. varchar (50) - if not specified and relevant
* uses the source column length.
*
* @var string
*/
public $overrideLength;
/**
* Optional. Column precision - when relevant - if not specified and relevant
* uses the source column precision.
*
* @var int
*/
public $overridePrecision;
/**
* Optional. Column scale - when relevant - if not specified and relevant uses
* the source column scale.
*
* @var int
*/
public $overrideScale;
/**
* Required. Filter on source data type.
*
* @var string
*/
public $sourceDataTypeFilter;
protected $sourceNumericFilterType = SourceNumericFilter::class;
protected $sourceNumericFilterDataType = '';
protected $sourceTextFilterType = SourceTextFilter::class;
protected $sourceTextFilterDataType = '';
/**
* Optional. Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* Required. New data type.
*
* @param string $newDataType
*/
public function setNewDataType($newDataType)
{
$this->newDataType = $newDataType;
}
/**
* @return string
*/
public function getNewDataType()
{
return $this->newDataType;
}
/**
* Optional. Column fractional seconds precision - used only for timestamp
* based datatypes - if not specified and relevant uses the source column
* fractional seconds precision.
*
* @param int $overrideFractionalSecondsPrecision
*/
public function setOverrideFractionalSecondsPrecision($overrideFractionalSecondsPrecision)
{
$this->overrideFractionalSecondsPrecision = $overrideFractionalSecondsPrecision;
}
/**
* @return int
*/
public function getOverrideFractionalSecondsPrecision()
{
return $this->overrideFractionalSecondsPrecision;
}
/**
* Optional. Column length - e.g. varchar (50) - if not specified and relevant
* uses the source column length.
*
* @param string $overrideLength
*/
public function setOverrideLength($overrideLength)
{
$this->overrideLength = $overrideLength;
}
/**
* @return string
*/
public function getOverrideLength()
{
return $this->overrideLength;
}
/**
* Optional. Column precision - when relevant - if not specified and relevant
* uses the source column precision.
*
* @param int $overridePrecision
*/
public function setOverridePrecision($overridePrecision)
{
$this->overridePrecision = $overridePrecision;
}
/**
* @return int
*/
public function getOverridePrecision()
{
return $this->overridePrecision;
}
/**
* Optional. Column scale - when relevant - if not specified and relevant uses
* the source column scale.
*
* @param int $overrideScale
*/
public function setOverrideScale($overrideScale)
{
$this->overrideScale = $overrideScale;
}
/**
* @return int
*/
public function getOverrideScale()
{
return $this->overrideScale;
}
/**
* Required. Filter on source data type.
*
* @param string $sourceDataTypeFilter
*/
public function setSourceDataTypeFilter($sourceDataTypeFilter)
{
$this->sourceDataTypeFilter = $sourceDataTypeFilter;
}
/**
* @return string
*/
public function getSourceDataTypeFilter()
{
return $this->sourceDataTypeFilter;
}
/**
* Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.
*
* @param SourceNumericFilter $sourceNumericFilter
*/
public function setSourceNumericFilter(SourceNumericFilter $sourceNumericFilter)
{
$this->sourceNumericFilter = $sourceNumericFilter;
}
/**
* @return SourceNumericFilter
*/
public function getSourceNumericFilter()
{
return $this->sourceNumericFilter;
}
/**
* Optional. Filter for text-based data types like varchar.
*
* @param SourceTextFilter $sourceTextFilter
*/
public function setSourceTextFilter(SourceTextFilter $sourceTextFilter)
{
$this->sourceTextFilter = $sourceTextFilter;
}
/**
* @return SourceTextFilter
*/
public function getSourceTextFilter()
{
return $this->sourceTextFilter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MultiColumnDatatypeChange::class, 'Google_Service_DatabaseMigrationService_MultiColumnDatatypeChange');
@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MultiEntityRename extends \Google\Model
{
/**
* Entity name transformation unspecified.
*/
public const SOURCE_NAME_TRANSFORMATION_ENTITY_NAME_TRANSFORMATION_UNSPECIFIED = 'ENTITY_NAME_TRANSFORMATION_UNSPECIFIED';
/**
* No transformation.
*/
public const SOURCE_NAME_TRANSFORMATION_ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION = 'ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION';
/**
* Transform to lower case.
*/
public const SOURCE_NAME_TRANSFORMATION_ENTITY_NAME_TRANSFORMATION_LOWER_CASE = 'ENTITY_NAME_TRANSFORMATION_LOWER_CASE';
/**
* Transform to upper case.
*/
public const SOURCE_NAME_TRANSFORMATION_ENTITY_NAME_TRANSFORMATION_UPPER_CASE = 'ENTITY_NAME_TRANSFORMATION_UPPER_CASE';
/**
* Transform to capitalized case.
*/
public const SOURCE_NAME_TRANSFORMATION_ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE = 'ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE';
/**
* Optional. The pattern used to generate the new entity's name. This pattern
* must include the characters '{name}', which will be replaced with the name
* of the original entity. For example, the pattern 't_{name}' for an entity
* name jobs would be converted to 't_jobs'. If unspecified, the default value
* for this field is '{name}'
*
* @var string
*/
public $newNamePattern;
/**
* Optional. Additional transformation that can be done on the source entity
* name before it is being used by the new_name_pattern, for example lower
* case. If no transformation is desired, use NO_TRANSFORMATION
*
* @var string
*/
public $sourceNameTransformation;
/**
* Optional. The pattern used to generate the new entity's name. This pattern
* must include the characters '{name}', which will be replaced with the name
* of the original entity. For example, the pattern 't_{name}' for an entity
* name jobs would be converted to 't_jobs'. If unspecified, the default value
* for this field is '{name}'
*
* @param string $newNamePattern
*/
public function setNewNamePattern($newNamePattern)
{
$this->newNamePattern = $newNamePattern;
}
/**
* @return string
*/
public function getNewNamePattern()
{
return $this->newNamePattern;
}
/**
* Optional. Additional transformation that can be done on the source entity
* name before it is being used by the new_name_pattern, for example lower
* case. If no transformation is desired, use NO_TRANSFORMATION
*
* Accepted values: ENTITY_NAME_TRANSFORMATION_UNSPECIFIED,
* ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION,
* ENTITY_NAME_TRANSFORMATION_LOWER_CASE,
* ENTITY_NAME_TRANSFORMATION_UPPER_CASE,
* ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE
*
* @param self::SOURCE_NAME_TRANSFORMATION_* $sourceNameTransformation
*/
public function setSourceNameTransformation($sourceNameTransformation)
{
$this->sourceNameTransformation = $sourceNameTransformation;
}
/**
* @return self::SOURCE_NAME_TRANSFORMATION_*
*/
public function getSourceNameTransformation()
{
return $this->sourceNameTransformation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MultiEntityRename::class, 'Google_Service_DatabaseMigrationService_MultiEntityRename');
@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class MySqlConnectionProfile extends \Google\Model
{
/**
* If the source is a Cloud SQL database, use this field to provide the Cloud
* SQL instance ID of the source.
*
* @var string
*/
public $cloudSqlId;
/**
* Required. The IP or hostname of the source MySQL database.
*
* @var string
*/
public $host;
/**
* Required. Input only. The password for the user that Database Migration
* Service will be using to connect to the database. This field is not
* returned on request, and the value is encrypted when stored in Database
* Migration Service.
*
* @var string
*/
public $password;
/**
* Output only. Indicates If this connection profile password is stored.
*
* @var bool
*/
public $passwordSet;
/**
* Required. The network port of the source MySQL database.
*
* @var int
*/
public $port;
protected $sslType = SslConfig::class;
protected $sslDataType = '';
/**
* Required. The username that Database Migration Service will use to connect
* to the database. The value is encrypted when stored in Database Migration
* Service.
*
* @var string
*/
public $username;
/**
* If the source is a Cloud SQL database, use this field to provide the Cloud
* SQL instance ID of the source.
*
* @param string $cloudSqlId
*/
public function setCloudSqlId($cloudSqlId)
{
$this->cloudSqlId = $cloudSqlId;
}
/**
* @return string
*/
public function getCloudSqlId()
{
return $this->cloudSqlId;
}
/**
* Required. The IP or hostname of the source MySQL database.
*
* @param string $host
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* Required. Input only. The password for the user that Database Migration
* Service will be using to connect to the database. This field is not
* returned on request, and the value is encrypted when stored in Database
* Migration Service.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Output only. Indicates If this connection profile password is stored.
*
* @param bool $passwordSet
*/
public function setPasswordSet($passwordSet)
{
$this->passwordSet = $passwordSet;
}
/**
* @return bool
*/
public function getPasswordSet()
{
return $this->passwordSet;
}
/**
* Required. The network port of the source MySQL database.
*
* @param int $port
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* SSL configuration for the destination to connect to the source database.
*
* @param SslConfig $ssl
*/
public function setSsl(SslConfig $ssl)
{
$this->ssl = $ssl;
}
/**
* @return SslConfig
*/
public function getSsl()
{
return $this->ssl;
}
/**
* Required. The username that Database Migration Service will use to connect
* to the database. The value is encrypted when stored in Database Migration
* Service.
*
* @param string $username
*/
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(MySqlConnectionProfile::class, 'Google_Service_DatabaseMigrationService_MySqlConnectionProfile');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_DatabaseMigrationService_Operation');
@@ -0,0 +1,176 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class OracleAsmConfig extends \Google\Model
{
/**
* Required. ASM service name for the Oracle ASM connection.
*
* @var string
*/
public $asmService;
/**
* Required. Hostname for the Oracle ASM connection.
*
* @var string
*/
public $hostname;
/**
* Required. Input only. Password for the Oracle ASM connection.
*
* @var string
*/
public $password;
/**
* Output only. Indicates whether a new password is included in the request.
*
* @var bool
*/
public $passwordSet;
/**
* Required. Port for the Oracle ASM connection.
*
* @var int
*/
public $port;
protected $sslType = SslConfig::class;
protected $sslDataType = '';
/**
* Required. Username for the Oracle ASM connection.
*
* @var string
*/
public $username;
/**
* Required. ASM service name for the Oracle ASM connection.
*
* @param string $asmService
*/
public function setAsmService($asmService)
{
$this->asmService = $asmService;
}
/**
* @return string
*/
public function getAsmService()
{
return $this->asmService;
}
/**
* Required. Hostname for the Oracle ASM connection.
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* Required. Input only. Password for the Oracle ASM connection.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Output only. Indicates whether a new password is included in the request.
*
* @param bool $passwordSet
*/
public function setPasswordSet($passwordSet)
{
$this->passwordSet = $passwordSet;
}
/**
* @return bool
*/
public function getPasswordSet()
{
return $this->passwordSet;
}
/**
* Required. Port for the Oracle ASM connection.
*
* @param int $port
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* Optional. SSL configuration for the Oracle connection.
*
* @param SslConfig $ssl
*/
public function setSsl(SslConfig $ssl)
{
$this->ssl = $ssl;
}
/**
* @return SslConfig
*/
public function getSsl()
{
return $this->ssl;
}
/**
* Required. Username for the Oracle ASM connection.
*
* @param string $username
*/
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(OracleAsmConfig::class, 'Google_Service_DatabaseMigrationService_OracleAsmConfig');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class OracleAsmLogFileAccess extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OracleAsmLogFileAccess::class, 'Google_Service_DatabaseMigrationService_OracleAsmLogFileAccess');
@@ -0,0 +1,260 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class OracleConnectionProfile extends \Google\Model
{
/**
* Required. Database service for the Oracle connection.
*
* @var string
*/
public $databaseService;
protected $forwardSshConnectivityType = ForwardSshTunnelConnectivity::class;
protected $forwardSshConnectivityDataType = '';
/**
* Required. The IP or hostname of the source Oracle database.
*
* @var string
*/
public $host;
protected $oracleAsmConfigType = OracleAsmConfig::class;
protected $oracleAsmConfigDataType = '';
/**
* Required. Input only. The password for the user that Database Migration
* Service will be using to connect to the database. This field is not
* returned on request, and the value is encrypted when stored in Database
* Migration Service.
*
* @var string
*/
public $password;
/**
* Output only. Indicates whether a new password is included in the request.
*
* @var bool
*/
public $passwordSet;
/**
* Required. The network port of the source Oracle database.
*
* @var int
*/
public $port;
protected $privateConnectivityType = PrivateConnectivity::class;
protected $privateConnectivityDataType = '';
protected $sslType = SslConfig::class;
protected $sslDataType = '';
protected $staticServiceIpConnectivityType = StaticServiceIpConnectivity::class;
protected $staticServiceIpConnectivityDataType = '';
/**
* Required. The username that Database Migration Service will use to connect
* to the database. The value is encrypted when stored in Database Migration
* Service.
*
* @var string
*/
public $username;
/**
* Required. Database service for the Oracle connection.
*
* @param string $databaseService
*/
public function setDatabaseService($databaseService)
{
$this->databaseService = $databaseService;
}
/**
* @return string
*/
public function getDatabaseService()
{
return $this->databaseService;
}
/**
* Forward SSH tunnel connectivity.
*
* @param ForwardSshTunnelConnectivity $forwardSshConnectivity
*/
public function setForwardSshConnectivity(ForwardSshTunnelConnectivity $forwardSshConnectivity)
{
$this->forwardSshConnectivity = $forwardSshConnectivity;
}
/**
* @return ForwardSshTunnelConnectivity
*/
public function getForwardSshConnectivity()
{
return $this->forwardSshConnectivity;
}
/**
* Required. The IP or hostname of the source Oracle database.
*
* @param string $host
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* Optional. Configuration for Oracle ASM connection.
*
* @param OracleAsmConfig $oracleAsmConfig
*/
public function setOracleAsmConfig(OracleAsmConfig $oracleAsmConfig)
{
$this->oracleAsmConfig = $oracleAsmConfig;
}
/**
* @return OracleAsmConfig
*/
public function getOracleAsmConfig()
{
return $this->oracleAsmConfig;
}
/**
* Required. Input only. The password for the user that Database Migration
* Service will be using to connect to the database. This field is not
* returned on request, and the value is encrypted when stored in Database
* Migration Service.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Output only. Indicates whether a new password is included in the request.
*
* @param bool $passwordSet
*/
public function setPasswordSet($passwordSet)
{
$this->passwordSet = $passwordSet;
}
/**
* @return bool
*/
public function getPasswordSet()
{
return $this->passwordSet;
}
/**
* Required. The network port of the source Oracle database.
*
* @param int $port
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* Private connectivity.
*
* @param PrivateConnectivity $privateConnectivity
*/
public function setPrivateConnectivity(PrivateConnectivity $privateConnectivity)
{
$this->privateConnectivity = $privateConnectivity;
}
/**
* @return PrivateConnectivity
*/
public function getPrivateConnectivity()
{
return $this->privateConnectivity;
}
/**
* SSL configuration for the connection to the source Oracle database. * Only
* `SERVER_ONLY` configuration is supported for Oracle SSL. * SSL is supported
* for Oracle versions 12 and above.
*
* @param SslConfig $ssl
*/
public function setSsl(SslConfig $ssl)
{
$this->ssl = $ssl;
}
/**
* @return SslConfig
*/
public function getSsl()
{
return $this->ssl;
}
/**
* Static Service IP connectivity.
*
* @param StaticServiceIpConnectivity $staticServiceIpConnectivity
*/
public function setStaticServiceIpConnectivity(StaticServiceIpConnectivity $staticServiceIpConnectivity)
{
$this->staticServiceIpConnectivity = $staticServiceIpConnectivity;
}
/**
* @return StaticServiceIpConnectivity
*/
public function getStaticServiceIpConnectivity()
{
return $this->staticServiceIpConnectivity;
}
/**
* Required. The username that Database Migration Service will use to connect
* to the database. The value is encrypted when stored in Database Migration
* Service.
*
* @param string $username
*/
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(OracleConnectionProfile::class, 'Google_Service_DatabaseMigrationService_OracleConnectionProfile');
@@ -0,0 +1,154 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class OracleSourceConfig extends \Google\Model
{
protected $binaryLogParserType = BinaryLogParser::class;
protected $binaryLogParserDataType = '';
/**
* Optional. The schema change number (SCN) to start CDC data migration from.
*
* @var string
*/
public $cdcStartPosition;
protected $logMinerType = LogMiner::class;
protected $logMinerDataType = '';
/**
* Optional. Maximum number of connections Database Migration Service will
* open to the source for CDC phase.
*
* @var int
*/
public $maxConcurrentCdcConnections;
/**
* Optional. Maximum number of connections Database Migration Service will
* open to the source for full dump phase.
*
* @var int
*/
public $maxConcurrentFullDumpConnections;
/**
* Optional. Whether to skip full dump or not.
*
* @var bool
*/
public $skipFullDump;
/**
* Use Binary Log Parser.
*
* @param BinaryLogParser $binaryLogParser
*/
public function setBinaryLogParser(BinaryLogParser $binaryLogParser)
{
$this->binaryLogParser = $binaryLogParser;
}
/**
* @return BinaryLogParser
*/
public function getBinaryLogParser()
{
return $this->binaryLogParser;
}
/**
* Optional. The schema change number (SCN) to start CDC data migration from.
*
* @param string $cdcStartPosition
*/
public function setCdcStartPosition($cdcStartPosition)
{
$this->cdcStartPosition = $cdcStartPosition;
}
/**
* @return string
*/
public function getCdcStartPosition()
{
return $this->cdcStartPosition;
}
/**
* Use LogMiner.
*
* @param LogMiner $logMiner
*/
public function setLogMiner(LogMiner $logMiner)
{
$this->logMiner = $logMiner;
}
/**
* @return LogMiner
*/
public function getLogMiner()
{
return $this->logMiner;
}
/**
* Optional. Maximum number of connections Database Migration Service will
* open to the source for CDC phase.
*
* @param int $maxConcurrentCdcConnections
*/
public function setMaxConcurrentCdcConnections($maxConcurrentCdcConnections)
{
$this->maxConcurrentCdcConnections = $maxConcurrentCdcConnections;
}
/**
* @return int
*/
public function getMaxConcurrentCdcConnections()
{
return $this->maxConcurrentCdcConnections;
}
/**
* Optional. Maximum number of connections Database Migration Service will
* open to the source for full dump phase.
*
* @param int $maxConcurrentFullDumpConnections
*/
public function setMaxConcurrentFullDumpConnections($maxConcurrentFullDumpConnections)
{
$this->maxConcurrentFullDumpConnections = $maxConcurrentFullDumpConnections;
}
/**
* @return int
*/
public function getMaxConcurrentFullDumpConnections()
{
return $this->maxConcurrentFullDumpConnections;
}
/**
* Optional. Whether to skip full dump or not.
*
* @param bool $skipFullDump
*/
public function setSkipFullDump($skipFullDump)
{
$this->skipFullDump = $skipFullDump;
}
/**
* @return bool
*/
public function getSkipFullDump()
{
return $this->skipFullDump;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OracleSourceConfig::class, 'Google_Service_DatabaseMigrationService_OracleSourceConfig');
@@ -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\DatabaseMigrationService;
class OracleToPostgresConfig extends \Google\Model
{
protected $oracleSourceConfigType = OracleSourceConfig::class;
protected $oracleSourceConfigDataType = '';
protected $postgresDestinationConfigType = PostgresDestinationConfig::class;
protected $postgresDestinationConfigDataType = '';
/**
* Optional. Configuration for Oracle source.
*
* @param OracleSourceConfig $oracleSourceConfig
*/
public function setOracleSourceConfig(OracleSourceConfig $oracleSourceConfig)
{
$this->oracleSourceConfig = $oracleSourceConfig;
}
/**
* @return OracleSourceConfig
*/
public function getOracleSourceConfig()
{
return $this->oracleSourceConfig;
}
/**
* Optional. Configuration for Postgres destination.
*
* @param PostgresDestinationConfig $postgresDestinationConfig
*/
public function setPostgresDestinationConfig(PostgresDestinationConfig $postgresDestinationConfig)
{
$this->postgresDestinationConfig = $postgresDestinationConfig;
}
/**
* @return PostgresDestinationConfig
*/
public function getPostgresDestinationConfig()
{
return $this->postgresDestinationConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OracleToPostgresConfig::class, 'Google_Service_DatabaseMigrationService_OracleToPostgresConfig');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class PackageEntity extends \Google\Model
{
/**
* Custom engine specific features.
*
* @var array[]
*/
public $customFeatures;
/**
* The SQL code which creates the package body. If the package specification
* has cursors or subprograms, then the package body is mandatory.
*
* @var string
*/
public $packageBody;
/**
* The SQL code which creates the package.
*
* @var string
*/
public $packageSqlCode;
/**
* Custom engine specific features.
*
* @param array[] $customFeatures
*/
public function setCustomFeatures($customFeatures)
{
$this->customFeatures = $customFeatures;
}
/**
* @return array[]
*/
public function getCustomFeatures()
{
return $this->customFeatures;
}
/**
* The SQL code which creates the package body. If the package specification
* has cursors or subprograms, then the package body is mandatory.
*
* @param string $packageBody
*/
public function setPackageBody($packageBody)
{
$this->packageBody = $packageBody;
}
/**
* @return string
*/
public function getPackageBody()
{
return $this->packageBody;
}
/**
* The SQL code which creates the package.
*
* @param string $packageSqlCode
*/
public function setPackageSqlCode($packageSqlCode)
{
$this->packageSqlCode = $packageSqlCode;
}
/**
* @return string
*/
public function getPackageSqlCode()
{
return $this->packageSqlCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PackageEntity::class, 'Google_Service_DatabaseMigrationService_PackageEntity');
@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class PerformanceConfig extends \Google\Model
{
/**
* Unknown dump parallel level. Will be defaulted to OPTIMAL.
*/
public const DUMP_PARALLEL_LEVEL_DUMP_PARALLEL_LEVEL_UNSPECIFIED = 'DUMP_PARALLEL_LEVEL_UNSPECIFIED';
/**
* Minimal parallel level.
*/
public const DUMP_PARALLEL_LEVEL_MIN = 'MIN';
/**
* Optimal parallel level.
*/
public const DUMP_PARALLEL_LEVEL_OPTIMAL = 'OPTIMAL';
/**
* Maximum parallel level.
*/
public const DUMP_PARALLEL_LEVEL_MAX = 'MAX';
/**
* Initial dump parallelism level.
*
* @var string
*/
public $dumpParallelLevel;
/**
* Initial dump parallelism level.
*
* Accepted values: DUMP_PARALLEL_LEVEL_UNSPECIFIED, MIN, OPTIMAL, MAX
*
* @param self::DUMP_PARALLEL_LEVEL_* $dumpParallelLevel
*/
public function setDumpParallelLevel($dumpParallelLevel)
{
$this->dumpParallelLevel = $dumpParallelLevel;
}
/**
* @return self::DUMP_PARALLEL_LEVEL_*
*/
public function getDumpParallelLevel()
{
return $this->dumpParallelLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PerformanceConfig::class, 'Google_Service_DatabaseMigrationService_PerformanceConfig');
@@ -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\DatabaseMigrationService;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_DatabaseMigrationService_Policy');
@@ -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\DatabaseMigrationService;
class Position extends \Google\Model
{
/**
* Issue column number
*
* @var int
*/
public $column;
/**
* Issue length
*
* @var int
*/
public $length;
/**
* Issue line number
*
* @var int
*/
public $line;
/**
* Issue offset
*
* @var int
*/
public $offset;
/**
* Issue column number
*
* @param int $column
*/
public function setColumn($column)
{
$this->column = $column;
}
/**
* @return int
*/
public function getColumn()
{
return $this->column;
}
/**
* Issue length
*
* @param int $length
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return int
*/
public function getLength()
{
return $this->length;
}
/**
* Issue line number
*
* @param int $line
*/
public function setLine($line)
{
$this->line = $line;
}
/**
* @return int
*/
public function getLine()
{
return $this->line;
}
/**
* Issue offset
*
* @param int $offset
*/
public function setOffset($offset)
{
$this->offset = $offset;
}
/**
* @return int
*/
public function getOffset()
{
return $this->offset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Position::class, 'Google_Service_DatabaseMigrationService_Position');
@@ -0,0 +1,367 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class PostgreSqlConnectionProfile extends \Google\Model
{
public const NETWORK_ARCHITECTURE_NETWORK_ARCHITECTURE_UNSPECIFIED = 'NETWORK_ARCHITECTURE_UNSPECIFIED';
/**
* Instance is in Cloud SQL's old producer network architecture.
*/
public const NETWORK_ARCHITECTURE_NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER = 'NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER';
/**
* Instance is in Cloud SQL's new producer network architecture.
*/
public const NETWORK_ARCHITECTURE_NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER = 'NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER';
/**
* Optional. If the destination is an AlloyDB database, use this field to
* provide the AlloyDB cluster ID.
*
* @var string
*/
public $alloydbClusterId;
/**
* If the source is a Cloud SQL database, use this field to provide the Cloud
* SQL instance ID of the source.
*
* @var string
*/
public $cloudSqlId;
/**
* Optional. The name of the specific database within the host.
*
* @var string
*/
public $database;
/**
* Optional. If true, Database Migration Service will use IAM database
* authentication to connect to the database.
*
* @var bool
*/
public $enableIamAuthentication;
protected $forwardSshConnectivityType = ForwardSshTunnelConnectivity::class;
protected $forwardSshConnectivityDataType = '';
/**
* Required. The IP or hostname of the source PostgreSQL database.
*
* @var string
*/
public $host;
/**
* Output only. If the source is a Cloud SQL database, this field indicates
* the network architecture it's associated with.
*
* @var string
*/
public $networkArchitecture;
/**
* Required. Input only. The password for the user that Database Migration
* Service will be using to connect to the database. This field is not
* returned on request, and the value is encrypted when stored in Database
* Migration Service.
*
* @var string
*/
public $password;
/**
* Output only. Indicates If this connection profile password is stored.
*
* @var bool
*/
public $passwordSet;
/**
* Required. The network port of the source PostgreSQL database.
*
* @var int
*/
public $port;
protected $privateConnectivityType = PrivateConnectivity::class;
protected $privateConnectivityDataType = '';
protected $privateServiceConnectConnectivityType = PrivateServiceConnectConnectivity::class;
protected $privateServiceConnectConnectivityDataType = '';
protected $sslType = SslConfig::class;
protected $sslDataType = '';
protected $staticIpConnectivityType = StaticIpConnectivity::class;
protected $staticIpConnectivityDataType = '';
/**
* Required. The username that Database Migration Service will use to connect
* to the database. The value is encrypted when stored in Database Migration
* Service.
*
* @var string
*/
public $username;
/**
* Optional. If the destination is an AlloyDB database, use this field to
* provide the AlloyDB cluster ID.
*
* @param string $alloydbClusterId
*/
public function setAlloydbClusterId($alloydbClusterId)
{
$this->alloydbClusterId = $alloydbClusterId;
}
/**
* @return string
*/
public function getAlloydbClusterId()
{
return $this->alloydbClusterId;
}
/**
* If the source is a Cloud SQL database, use this field to provide the Cloud
* SQL instance ID of the source.
*
* @param string $cloudSqlId
*/
public function setCloudSqlId($cloudSqlId)
{
$this->cloudSqlId = $cloudSqlId;
}
/**
* @return string
*/
public function getCloudSqlId()
{
return $this->cloudSqlId;
}
/**
* Optional. The name of the specific database within the host.
*
* @param string $database
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* Optional. If true, Database Migration Service will use IAM database
* authentication to connect to the database.
*
* @param bool $enableIamAuthentication
*/
public function setEnableIamAuthentication($enableIamAuthentication)
{
$this->enableIamAuthentication = $enableIamAuthentication;
}
/**
* @return bool
*/
public function getEnableIamAuthentication()
{
return $this->enableIamAuthentication;
}
/**
* Forward SSH tunnel connectivity.
*
* @param ForwardSshTunnelConnectivity $forwardSshConnectivity
*/
public function setForwardSshConnectivity(ForwardSshTunnelConnectivity $forwardSshConnectivity)
{
$this->forwardSshConnectivity = $forwardSshConnectivity;
}
/**
* @return ForwardSshTunnelConnectivity
*/
public function getForwardSshConnectivity()
{
return $this->forwardSshConnectivity;
}
/**
* Required. The IP or hostname of the source PostgreSQL database.
*
* @param string $host
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* Output only. If the source is a Cloud SQL database, this field indicates
* the network architecture it's associated with.
*
* Accepted values: NETWORK_ARCHITECTURE_UNSPECIFIED,
* NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER,
* NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER
*
* @param self::NETWORK_ARCHITECTURE_* $networkArchitecture
*/
public function setNetworkArchitecture($networkArchitecture)
{
$this->networkArchitecture = $networkArchitecture;
}
/**
* @return self::NETWORK_ARCHITECTURE_*
*/
public function getNetworkArchitecture()
{
return $this->networkArchitecture;
}
/**
* Required. Input only. The password for the user that Database Migration
* Service will be using to connect to the database. This field is not
* returned on request, and the value is encrypted when stored in Database
* Migration Service.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Output only. Indicates If this connection profile password is stored.
*
* @param bool $passwordSet
*/
public function setPasswordSet($passwordSet)
{
$this->passwordSet = $passwordSet;
}
/**
* @return bool
*/
public function getPasswordSet()
{
return $this->passwordSet;
}
/**
* Required. The network port of the source PostgreSQL database.
*
* @param int $port
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* Private connectivity.
*
* @param PrivateConnectivity $privateConnectivity
*/
public function setPrivateConnectivity(PrivateConnectivity $privateConnectivity)
{
$this->privateConnectivity = $privateConnectivity;
}
/**
* @return PrivateConnectivity
*/
public function getPrivateConnectivity()
{
return $this->privateConnectivity;
}
/**
* Private service connect connectivity.
*
* @param PrivateServiceConnectConnectivity $privateServiceConnectConnectivity
*/
public function setPrivateServiceConnectConnectivity(PrivateServiceConnectConnectivity $privateServiceConnectConnectivity)
{
$this->privateServiceConnectConnectivity = $privateServiceConnectConnectivity;
}
/**
* @return PrivateServiceConnectConnectivity
*/
public function getPrivateServiceConnectConnectivity()
{
return $this->privateServiceConnectConnectivity;
}
/**
* SSL configuration for the destination to connect to the source database.
*
* @param SslConfig $ssl
*/
public function setSsl(SslConfig $ssl)
{
$this->ssl = $ssl;
}
/**
* @return SslConfig
*/
public function getSsl()
{
return $this->ssl;
}
/**
* Static ip connectivity data (default, no additional details needed).
*
* @param StaticIpConnectivity $staticIpConnectivity
*/
public function setStaticIpConnectivity(StaticIpConnectivity $staticIpConnectivity)
{
$this->staticIpConnectivity = $staticIpConnectivity;
}
/**
* @return StaticIpConnectivity
*/
public function getStaticIpConnectivity()
{
return $this->staticIpConnectivity;
}
/**
* Required. The username that Database Migration Service will use to connect
* to the database. The value is encrypted when stored in Database Migration
* Service.
*
* @param string $username
*/
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(PostgreSqlConnectionProfile::class, 'Google_Service_DatabaseMigrationService_PostgreSqlConnectionProfile');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class PostgresDestinationConfig extends \Google\Model
{
/**
* Optional. Maximum number of connections Database Migration Service will
* open to the destination for data migration.
*
* @var int
*/
public $maxConcurrentConnections;
/**
* Optional. Timeout for data migration transactions.
*
* @var string
*/
public $transactionTimeout;
/**
* Optional. Maximum number of connections Database Migration Service will
* open to the destination for data migration.
*
* @param int $maxConcurrentConnections
*/
public function setMaxConcurrentConnections($maxConcurrentConnections)
{
$this->maxConcurrentConnections = $maxConcurrentConnections;
}
/**
* @return int
*/
public function getMaxConcurrentConnections()
{
return $this->maxConcurrentConnections;
}
/**
* Optional. Timeout for data migration transactions.
*
* @param string $transactionTimeout
*/
public function setTransactionTimeout($transactionTimeout)
{
$this->transactionTimeout = $transactionTimeout;
}
/**
* @return string
*/
public function getTransactionTimeout()
{
return $this->transactionTimeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostgresDestinationConfig::class, 'Google_Service_DatabaseMigrationService_PostgresDestinationConfig');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DatabaseMigrationService;
class PostgresHomogeneousConfig extends \Google\Model
{
/**
* Required. Whether the migration is native logical.
*
* @var bool
*/
public $isNativeLogical;
/**
* Optional. Maximum number of additional subscriptions to use for the
* migration job.
*
* @var int
*/
public $maxAdditionalSubscriptions;
/**
* Required. Whether the migration is native logical.
*
* @param bool $isNativeLogical
*/
public function setIsNativeLogical($isNativeLogical)
{
$this->isNativeLogical = $isNativeLogical;
}
/**
* @return bool
*/
public function getIsNativeLogical()
{
return $this->isNativeLogical;
}
/**
* Optional. Maximum number of additional subscriptions to use for the
* migration job.
*
* @param int $maxAdditionalSubscriptions
*/
public function setMaxAdditionalSubscriptions($maxAdditionalSubscriptions)
{
$this->maxAdditionalSubscriptions = $maxAdditionalSubscriptions;
}
/**
* @return int
*/
public function getMaxAdditionalSubscriptions()
{
return $this->maxAdditionalSubscriptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostgresHomogeneousConfig::class, 'Google_Service_DatabaseMigrationService_PostgresHomogeneousConfig');

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