Skip to content

Commit db3646a

Browse files
1 parent 0a03140 commit db3646a

File tree

8 files changed

+317
-6
lines changed

8 files changed

+317
-6
lines changed

clients/google-api-services-datamigration/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-datamigration</artifactId>
25-
<version>v1-rev20250226-2.0.0</version>
25+
<version>v1-rev20250319-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-datamigration:v1-rev20250226-2.0.0'
38+
implementation 'com.google.apis:google-api-services-datamigration:v1-rev20250319-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-datamigration/v1/2.0.0/com/google/api/services/datamigration/v1/model/MachineConfig.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ public final class MachineConfig extends com.google.api.client.json.GenericJson
3737
@com.google.api.client.util.Key
3838
private java.lang.Integer cpuCount;
3939

40+
/**
41+
* Optional. Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8",
42+
* "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String machineType;
47+
4048
/**
4149
* The number of CPU's in the VM instance.
4250
* @return value or {@code null} for none
@@ -54,6 +62,25 @@ public MachineConfig setCpuCount(java.lang.Integer cpuCount) {
5462
return this;
5563
}
5664

65+
/**
66+
* Optional. Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8",
67+
* "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.lang.String getMachineType() {
71+
return machineType;
72+
}
73+
74+
/**
75+
* Optional. Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8",
76+
* "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
77+
* @param machineType machineType or {@code null} for none
78+
*/
79+
public MachineConfig setMachineType(java.lang.String machineType) {
80+
this.machineType = machineType;
81+
return this;
82+
}
83+
5784
@Override
5885
public MachineConfig set(String fieldName, Object value) {
5986
return (MachineConfig) super.set(fieldName, value);

clients/google-api-services-datamigration/v1/2.0.0/com/google/api/services/datamigration/v1/model/MigrationJob.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ public final class MigrationJob extends com.google.api.client.json.GenericJson {
221221
@com.google.api.client.util.Key
222222
private SqlServerHomogeneousMigrationJobConfig sqlserverHomogeneousMigrationJobConfig;
223223

224+
/**
225+
* Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
226+
* The value may be {@code null}.
227+
*/
228+
@com.google.api.client.util.Key
229+
private SqlServerToPostgresConfig sqlserverToPostgresConfig;
230+
224231
/**
225232
* The current migration job state.
226233
* The value may be {@code null}.
@@ -714,6 +721,23 @@ public MigrationJob setSqlserverHomogeneousMigrationJobConfig(SqlServerHomogeneo
714721
return this;
715722
}
716723

724+
/**
725+
* Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
726+
* @return value or {@code null} for none
727+
*/
728+
public SqlServerToPostgresConfig getSqlserverToPostgresConfig() {
729+
return sqlserverToPostgresConfig;
730+
}
731+
732+
/**
733+
* Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
734+
* @param sqlserverToPostgresConfig sqlserverToPostgresConfig or {@code null} for none
735+
*/
736+
public MigrationJob setSqlserverToPostgresConfig(SqlServerToPostgresConfig sqlserverToPostgresConfig) {
737+
this.sqlserverToPostgresConfig = sqlserverToPostgresConfig;
738+
return this;
739+
}
740+
717741
/**
718742
* The current migration job state.
719743
* @return value or {@code null} for none

clients/google-api-services-datamigration/v1/2.0.0/com/google/api/services/datamigration/v1/model/SqlServerConnectionProfile.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ public final class SqlServerConnectionProfile extends com.google.api.client.json
4545
@com.google.api.client.util.Key
4646
private java.lang.String cloudSqlId;
4747

48+
/**
49+
* Required. The name of the specific database within the host.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String database;
54+
4855
/**
4956
* Forward SSH tunnel connectivity.
5057
* The value may be {@code null}.
@@ -154,6 +161,23 @@ public SqlServerConnectionProfile setCloudSqlId(java.lang.String cloudSqlId) {
154161
return this;
155162
}
156163

164+
/**
165+
* Required. The name of the specific database within the host.
166+
* @return value or {@code null} for none
167+
*/
168+
public java.lang.String getDatabase() {
169+
return database;
170+
}
171+
172+
/**
173+
* Required. The name of the specific database within the host.
174+
* @param database database or {@code null} for none
175+
*/
176+
public SqlServerConnectionProfile setDatabase(java.lang.String database) {
177+
this.database = database;
178+
return this;
179+
}
180+
157181
/**
158182
* Forward SSH tunnel connectivity.
159183
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.datamigration.v1.model;
18+
19+
/**
20+
* Configuration for SQL Server as a source in a migration.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Database Migration API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class SqlServerSourceConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The log sequence number (LSN) to start CDC data migration from.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String cdcStartPosition;
39+
40+
/**
41+
* Optional. Maximum number of connections Database Migration Service will open to the source for
42+
* CDC phase.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.Integer maxConcurrentCdcConnections;
47+
48+
/**
49+
* Optional. Maximum number of connections Database Migration Service will open to the source for
50+
* full dump phase.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.Integer maxConcurrentFullDumpConnections;
55+
56+
/**
57+
* Optional. Whether to skip full dump or not.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private java.lang.Boolean skipFullDump;
62+
63+
/**
64+
* Optional. The log sequence number (LSN) to start CDC data migration from.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getCdcStartPosition() {
68+
return cdcStartPosition;
69+
}
70+
71+
/**
72+
* Optional. The log sequence number (LSN) to start CDC data migration from.
73+
* @param cdcStartPosition cdcStartPosition or {@code null} for none
74+
*/
75+
public SqlServerSourceConfig setCdcStartPosition(java.lang.String cdcStartPosition) {
76+
this.cdcStartPosition = cdcStartPosition;
77+
return this;
78+
}
79+
80+
/**
81+
* Optional. Maximum number of connections Database Migration Service will open to the source for
82+
* CDC phase.
83+
* @return value or {@code null} for none
84+
*/
85+
public java.lang.Integer getMaxConcurrentCdcConnections() {
86+
return maxConcurrentCdcConnections;
87+
}
88+
89+
/**
90+
* Optional. Maximum number of connections Database Migration Service will open to the source for
91+
* CDC phase.
92+
* @param maxConcurrentCdcConnections maxConcurrentCdcConnections or {@code null} for none
93+
*/
94+
public SqlServerSourceConfig setMaxConcurrentCdcConnections(java.lang.Integer maxConcurrentCdcConnections) {
95+
this.maxConcurrentCdcConnections = maxConcurrentCdcConnections;
96+
return this;
97+
}
98+
99+
/**
100+
* Optional. Maximum number of connections Database Migration Service will open to the source for
101+
* full dump phase.
102+
* @return value or {@code null} for none
103+
*/
104+
public java.lang.Integer getMaxConcurrentFullDumpConnections() {
105+
return maxConcurrentFullDumpConnections;
106+
}
107+
108+
/**
109+
* Optional. Maximum number of connections Database Migration Service will open to the source for
110+
* full dump phase.
111+
* @param maxConcurrentFullDumpConnections maxConcurrentFullDumpConnections or {@code null} for none
112+
*/
113+
public SqlServerSourceConfig setMaxConcurrentFullDumpConnections(java.lang.Integer maxConcurrentFullDumpConnections) {
114+
this.maxConcurrentFullDumpConnections = maxConcurrentFullDumpConnections;
115+
return this;
116+
}
117+
118+
/**
119+
* Optional. Whether to skip full dump or not.
120+
* @return value or {@code null} for none
121+
*/
122+
public java.lang.Boolean getSkipFullDump() {
123+
return skipFullDump;
124+
}
125+
126+
/**
127+
* Optional. Whether to skip full dump or not.
128+
* @param skipFullDump skipFullDump or {@code null} for none
129+
*/
130+
public SqlServerSourceConfig setSkipFullDump(java.lang.Boolean skipFullDump) {
131+
this.skipFullDump = skipFullDump;
132+
return this;
133+
}
134+
135+
@Override
136+
public SqlServerSourceConfig set(String fieldName, Object value) {
137+
return (SqlServerSourceConfig) super.set(fieldName, value);
138+
}
139+
140+
@Override
141+
public SqlServerSourceConfig clone() {
142+
return (SqlServerSourceConfig) super.clone();
143+
}
144+
145+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.datamigration.v1.model;
18+
19+
/**
20+
* Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Database Migration API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class SqlServerToPostgresConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. Configuration for Postgres destination.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private PostgresDestinationConfig postgresDestinationConfig;
39+
40+
/**
41+
* Optional. Configuration for SQL Server source.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private SqlServerSourceConfig sqlserverSourceConfig;
46+
47+
/**
48+
* Optional. Configuration for Postgres destination.
49+
* @return value or {@code null} for none
50+
*/
51+
public PostgresDestinationConfig getPostgresDestinationConfig() {
52+
return postgresDestinationConfig;
53+
}
54+
55+
/**
56+
* Optional. Configuration for Postgres destination.
57+
* @param postgresDestinationConfig postgresDestinationConfig or {@code null} for none
58+
*/
59+
public SqlServerToPostgresConfig setPostgresDestinationConfig(PostgresDestinationConfig postgresDestinationConfig) {
60+
this.postgresDestinationConfig = postgresDestinationConfig;
61+
return this;
62+
}
63+
64+
/**
65+
* Optional. Configuration for SQL Server source.
66+
* @return value or {@code null} for none
67+
*/
68+
public SqlServerSourceConfig getSqlserverSourceConfig() {
69+
return sqlserverSourceConfig;
70+
}
71+
72+
/**
73+
* Optional. Configuration for SQL Server source.
74+
* @param sqlserverSourceConfig sqlserverSourceConfig or {@code null} for none
75+
*/
76+
public SqlServerToPostgresConfig setSqlserverSourceConfig(SqlServerSourceConfig sqlserverSourceConfig) {
77+
this.sqlserverSourceConfig = sqlserverSourceConfig;
78+
return this;
79+
}
80+
81+
@Override
82+
public SqlServerToPostgresConfig set(String fieldName, Object value) {
83+
return (SqlServerToPostgresConfig) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public SqlServerToPostgresConfig clone() {
88+
return (SqlServerToPostgresConfig) super.clone();
89+
}
90+
91+
}

clients/google-api-services-datamigration/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-datamigration</artifactId>
11-
<version>v1-rev20250226-2.0.0</version>
12-
<name>Database Migration API v1-rev20250226-2.0.0</name>
11+
<version>v1-rev20250319-2.0.0</version>
12+
<name>Database Migration API v1-rev20250319-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)