Skip to content

Commit f1961b6

Browse files
1 parent 20c6357 commit f1961b6

13 files changed

Lines changed: 401 additions & 100 deletions

src/DatabaseMigrationService/ApplyConversionWorkspaceRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class ApplyConversionWorkspaceRequest extends \Google\Model
4141
*/
4242
public $dryRun;
4343
/**
44-
* Filter which entities to apply. Leaving this field empty will apply all of
45-
* the entities. Supports Google AIP 160 based filtering.
44+
* Optional. Filter which entities to apply. Leaving this field empty will
45+
* apply all of the entities. Supports Google AIP 160 based filtering.
4646
*
4747
* @var string
4848
*/
@@ -100,8 +100,8 @@ public function getDryRun()
100100
return $this->dryRun;
101101
}
102102
/**
103-
* Filter which entities to apply. Leaving this field empty will apply all of
104-
* the entities. Supports Google AIP 160 based filtering.
103+
* Optional. Filter which entities to apply. Leaving this field empty will
104+
* apply all of the entities. Supports Google AIP 160 based filtering.
105105
*
106106
* @param string $filter
107107
*/

src/DatabaseMigrationService/MigrationJob.php

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ class MigrationJob extends \Google\Model
6060
* The migration job is ready to be promoted.
6161
*/
6262
public const PHASE_READY_FOR_PROMOTE = 'READY_FOR_PROMOTE';
63+
/**
64+
* Unknown purpose. Will be defaulted to MIGRATE.
65+
*/
66+
public const PURPOSE_PURPOSE_UNSPECIFIED = 'PURPOSE_UNSPECIFIED';
67+
/**
68+
* Standard migration job.
69+
*/
70+
public const PURPOSE_MIGRATE = 'MIGRATE';
71+
/**
72+
* Failback replication job.
73+
*/
74+
public const PURPOSE_FAILBACK = 'FAILBACK';
6375
/**
6476
* The state of the migration job is unknown.
6577
*/
@@ -236,6 +248,13 @@ class MigrationJob extends \Google\Model
236248
protected $objectsConfigDataType = '';
237249
protected $oracleToPostgresConfigType = OracleToPostgresConfig::class;
238250
protected $oracleToPostgresConfigDataType = '';
251+
/**
252+
* Optional. A failback replication pointer to the resource name (URI) of the
253+
* original migration job.
254+
*
255+
* @var string
256+
*/
257+
public $originalMigrationName;
239258
protected $performanceConfigType = PerformanceConfig::class;
240259
protected $performanceConfigDataType = '';
241260
/**
@@ -244,6 +263,15 @@ class MigrationJob extends \Google\Model
244263
* @var string
245264
*/
246265
public $phase;
266+
protected $postgresToSqlserverConfigType = PostgresToSqlServerConfig::class;
267+
protected $postgresToSqlserverConfigDataType = '';
268+
/**
269+
* Output only. Migration job mode. Migration jobs can be standard forward
270+
* jobs or failback migration jobs.
271+
*
272+
* @var string
273+
*/
274+
public $purpose;
247275
protected $reverseSshConnectivityType = ReverseSshConnectivity::class;
248276
protected $reverseSshConnectivityDataType = '';
249277
/**
@@ -593,6 +621,23 @@ public function getOracleToPostgresConfig()
593621
{
594622
return $this->oracleToPostgresConfig;
595623
}
624+
/**
625+
* Optional. A failback replication pointer to the resource name (URI) of the
626+
* original migration job.
627+
*
628+
* @param string $originalMigrationName
629+
*/
630+
public function setOriginalMigrationName($originalMigrationName)
631+
{
632+
$this->originalMigrationName = $originalMigrationName;
633+
}
634+
/**
635+
* @return string
636+
*/
637+
public function getOriginalMigrationName()
638+
{
639+
return $this->originalMigrationName;
640+
}
596641
/**
597642
* Optional. Data dump parallelism settings used by the migration.
598643
*
@@ -628,6 +673,42 @@ public function getPhase()
628673
{
629674
return $this->phase;
630675
}
676+
/**
677+
* Configuration for heterogeneous failback migrations from **PostgreSQL to
678+
* SQL Server**.
679+
*
680+
* @param PostgresToSqlServerConfig $postgresToSqlserverConfig
681+
*/
682+
public function setPostgresToSqlserverConfig(PostgresToSqlServerConfig $postgresToSqlserverConfig)
683+
{
684+
$this->postgresToSqlserverConfig = $postgresToSqlserverConfig;
685+
}
686+
/**
687+
* @return PostgresToSqlServerConfig
688+
*/
689+
public function getPostgresToSqlserverConfig()
690+
{
691+
return $this->postgresToSqlserverConfig;
692+
}
693+
/**
694+
* Output only. Migration job mode. Migration jobs can be standard forward
695+
* jobs or failback migration jobs.
696+
*
697+
* Accepted values: PURPOSE_UNSPECIFIED, MIGRATE, FAILBACK
698+
*
699+
* @param self::PURPOSE_* $purpose
700+
*/
701+
public function setPurpose($purpose)
702+
{
703+
$this->purpose = $purpose;
704+
}
705+
/**
706+
* @return self::PURPOSE_*
707+
*/
708+
public function getPurpose()
709+
{
710+
return $this->purpose;
711+
}
631712
/**
632713
* The details needed to communicate to the source over Reverse SSH tunnel
633714
* connectivity.

src/DatabaseMigrationService/PostgreSqlConnectionProfile.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ class PostgreSqlConnectionProfile extends \Google\Model
4848
* @var string
4949
*/
5050
public $database;
51+
protected $forwardSshConnectivityType = ForwardSshTunnelConnectivity::class;
52+
protected $forwardSshConnectivityDataType = '';
5153
/**
5254
* Required. The IP or hostname of the source PostgreSQL database.
5355
*
@@ -82,6 +84,8 @@ class PostgreSqlConnectionProfile extends \Google\Model
8284
* @var int
8385
*/
8486
public $port;
87+
protected $privateConnectivityType = PrivateConnectivity::class;
88+
protected $privateConnectivityDataType = '';
8589
protected $privateServiceConnectConnectivityType = PrivateServiceConnectConnectivity::class;
8690
protected $privateServiceConnectConnectivityDataType = '';
8791
protected $sslType = SslConfig::class;
@@ -147,6 +151,22 @@ public function getDatabase()
147151
{
148152
return $this->database;
149153
}
154+
/**
155+
* Forward SSH tunnel connectivity.
156+
*
157+
* @param ForwardSshTunnelConnectivity $forwardSshConnectivity
158+
*/
159+
public function setForwardSshConnectivity(ForwardSshTunnelConnectivity $forwardSshConnectivity)
160+
{
161+
$this->forwardSshConnectivity = $forwardSshConnectivity;
162+
}
163+
/**
164+
* @return ForwardSshTunnelConnectivity
165+
*/
166+
public function getForwardSshConnectivity()
167+
{
168+
return $this->forwardSshConnectivity;
169+
}
150170
/**
151171
* Required. The IP or hostname of the source PostgreSQL database.
152172
*
@@ -235,6 +255,22 @@ public function getPort()
235255
{
236256
return $this->port;
237257
}
258+
/**
259+
* Private connectivity.
260+
*
261+
* @param PrivateConnectivity $privateConnectivity
262+
*/
263+
public function setPrivateConnectivity(PrivateConnectivity $privateConnectivity)
264+
{
265+
$this->privateConnectivity = $privateConnectivity;
266+
}
267+
/**
268+
* @return PrivateConnectivity
269+
*/
270+
public function getPrivateConnectivity()
271+
{
272+
return $this->privateConnectivity;
273+
}
238274
/**
239275
* Private service connect connectivity.
240276
*
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\DatabaseMigrationService;
19+
20+
class PostgresSourceConfig extends \Google\Model
21+
{
22+
/**
23+
* Optional. Whether to skip full dump or not.
24+
*
25+
* @var bool
26+
*/
27+
public $skipFullDump;
28+
29+
/**
30+
* Optional. Whether to skip full dump or not.
31+
*
32+
* @param bool $skipFullDump
33+
*/
34+
public function setSkipFullDump($skipFullDump)
35+
{
36+
$this->skipFullDump = $skipFullDump;
37+
}
38+
/**
39+
* @return bool
40+
*/
41+
public function getSkipFullDump()
42+
{
43+
return $this->skipFullDump;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(PostgresSourceConfig::class, 'Google_Service_DatabaseMigrationService_PostgresSourceConfig');
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\DatabaseMigrationService;
19+
20+
class PostgresToSqlServerConfig extends \Google\Model
21+
{
22+
protected $postgresSourceConfigType = PostgresSourceConfig::class;
23+
protected $postgresSourceConfigDataType = '';
24+
protected $sqlserverDestinationConfigType = SqlServerDestinationConfig::class;
25+
protected $sqlserverDestinationConfigDataType = '';
26+
27+
/**
28+
* Optional. Configuration for PostgreSQL source.
29+
*
30+
* @param PostgresSourceConfig $postgresSourceConfig
31+
*/
32+
public function setPostgresSourceConfig(PostgresSourceConfig $postgresSourceConfig)
33+
{
34+
$this->postgresSourceConfig = $postgresSourceConfig;
35+
}
36+
/**
37+
* @return PostgresSourceConfig
38+
*/
39+
public function getPostgresSourceConfig()
40+
{
41+
return $this->postgresSourceConfig;
42+
}
43+
/**
44+
* Optional. Configuration for SQL Server destination.
45+
*
46+
* @param SqlServerDestinationConfig $sqlserverDestinationConfig
47+
*/
48+
public function setSqlserverDestinationConfig(SqlServerDestinationConfig $sqlserverDestinationConfig)
49+
{
50+
$this->sqlserverDestinationConfig = $sqlserverDestinationConfig;
51+
}
52+
/**
53+
* @return SqlServerDestinationConfig
54+
*/
55+
public function getSqlserverDestinationConfig()
56+
{
57+
return $this->sqlserverDestinationConfig;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(PostgresToSqlServerConfig::class, 'Google_Service_DatabaseMigrationService_PostgresToSqlServerConfig');

src/DatabaseMigrationService/Resource/ProjectsLocations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class ProjectsLocations extends \Google\Service\Resource
4040
* static IPs should be returned. Must be in the format `projects/locations`.
4141
* @param array $optParams Optional parameters.
4242
*
43-
* @opt_param int pageSize Maximum number of IPs to return.
44-
* @opt_param string pageToken A page token, received from a previous
43+
* @opt_param int pageSize Optional. Maximum number of IPs to return.
44+
* @opt_param string pageToken Optional. A page token, received from a previous
4545
* `FetchStaticIps` call.
4646
* @return FetchStaticIpsResponse
4747
* @throws \Google\Service\Exception

src/DatabaseMigrationService/Resource/ProjectsLocationsConnectionProfiles.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,22 +145,22 @@ public function getIamPolicy($resource, $optParams = [])
145145
* connection profiles.
146146
* @param array $optParams Optional parameters.
147147
*
148-
* @opt_param string filter A filter expression that filters connection profiles
149-
* listed in the response. The expression must specify the field name, a
150-
* comparison operator, and the value that you want to use for filtering. The
151-
* value must be a string, a number, or a boolean. The comparison operator must
152-
* be either =, !=, >, or <. For example, list connection profiles created this
153-
* year by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You
154-
* can also filter nested fields. For example, you could specify
155-
* **mySql.username = %lt;my_username%gt;** to list all connection profiles
156-
* configured to connect with a specific username.
157-
* @opt_param string orderBy A comma-separated list of fields to order results
158-
* according to.
148+
* @opt_param string filter Optional. A filter expression that filters
149+
* connection profiles listed in the response. The expression must specify the
150+
* field name, a comparison operator, and the value that you want to use for
151+
* filtering. The value must be a string, a number, or a boolean. The comparison
152+
* operator must be either =, !=, >, or <. For example, list connection profiles
153+
* created this year by specifying **createTime %gt;
154+
* 2020-01-01T00:00:00.000000000Z**. You can also filter nested fields. For
155+
* example, you could specify **mySql.username = %lt;my_username%gt;** to list
156+
* all connection profiles configured to connect with a specific username.
157+
* @opt_param string orderBy Optional. A comma-separated list of fields to order
158+
* results according to.
159159
* @opt_param int pageSize The maximum number of connection profiles to return.
160160
* The service may return fewer than this value. If unspecified, at most 50
161161
* connection profiles will be returned. The maximum value is 1000; values above
162162
* 1000 are coerced to 1000.
163-
* @opt_param string pageToken A page token, received from a previous
163+
* @opt_param string pageToken Optional. A page token, received from a previous
164164
* `ListConnectionProfiles` call. Provide this to retrieve the subsequent page.
165165
* When paginating, all other parameters provided to `ListConnectionProfiles`
166166
* must match the call that provided the page token.

0 commit comments

Comments
 (0)