Skip to content

Commit dccb357

Browse files
1 parent dc8a177 commit dccb357

24 files changed

Lines changed: 2334 additions & 12 deletions

clients/google-api-services-metastore/v1alpha/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-metastore</artifactId>
25-
<version>v1alpha-rev20260716-2.0.0</version>
25+
<version>v1alpha-rev20260723-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-metastore:v1alpha-rev20260716-2.0.0'
38+
implementation 'com.google.apis:google-api-services-metastore:v1alpha-rev20260723-2.0.0'
3939
}
4040
```
4141

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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.metastore.v1alpha.model;
18+
19+
/**
20+
* Backfill status for the migration execution.
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 Dataproc Metastore 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 BackfillStatus extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Output only. Summary of the migration results. This is populated after the backfill or dry run
35+
* is finished.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private MigrationSummary migrationSummary;
40+
41+
/**
42+
* Output only. The Cloud Storage path where the backfill or dry run report is written. Format:
43+
* "gs://path-to-report".
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String reportPath;
48+
49+
/**
50+
* Output only. The current state of the backfill (or dry run).
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String state;
55+
56+
/**
57+
* Output only. Summary of the migration results. This is populated after the backfill or dry run
58+
* is finished.
59+
* @return value or {@code null} for none
60+
*/
61+
public MigrationSummary getMigrationSummary() {
62+
return migrationSummary;
63+
}
64+
65+
/**
66+
* Output only. Summary of the migration results. This is populated after the backfill or dry run
67+
* is finished.
68+
* @param migrationSummary migrationSummary or {@code null} for none
69+
*/
70+
public BackfillStatus setMigrationSummary(MigrationSummary migrationSummary) {
71+
this.migrationSummary = migrationSummary;
72+
return this;
73+
}
74+
75+
/**
76+
* Output only. The Cloud Storage path where the backfill or dry run report is written. Format:
77+
* "gs://path-to-report".
78+
* @return value or {@code null} for none
79+
*/
80+
public java.lang.String getReportPath() {
81+
return reportPath;
82+
}
83+
84+
/**
85+
* Output only. The Cloud Storage path where the backfill or dry run report is written. Format:
86+
* "gs://path-to-report".
87+
* @param reportPath reportPath or {@code null} for none
88+
*/
89+
public BackfillStatus setReportPath(java.lang.String reportPath) {
90+
this.reportPath = reportPath;
91+
return this;
92+
}
93+
94+
/**
95+
* Output only. The current state of the backfill (or dry run).
96+
* @return value or {@code null} for none
97+
*/
98+
public java.lang.String getState() {
99+
return state;
100+
}
101+
102+
/**
103+
* Output only. The current state of the backfill (or dry run).
104+
* @param state state or {@code null} for none
105+
*/
106+
public BackfillStatus setState(java.lang.String state) {
107+
this.state = state;
108+
return this;
109+
}
110+
111+
@Override
112+
public BackfillStatus set(String fieldName, Object value) {
113+
return (BackfillStatus) super.set(fieldName, value);
114+
}
115+
116+
@Override
117+
public BackfillStatus clone() {
118+
return (BackfillStatus) super.clone();
119+
}
120+
121+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
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.metastore.v1alpha.model;
18+
19+
/**
20+
* Defines the configuration required to migrate metadata from a Dataproc Metastore service to
21+
* BigLake Metastore.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Dataproc Metastore API. For a detailed explanation
25+
* see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class BigLakeMetastoreMigrationConfig extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Output only.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private BackfillStatus backfillStatus;
40+
41+
/**
42+
* Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not
43+
* specified.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String conflictPolicy;
48+
49+
/**
50+
* Optional. If true, performs discovery of requested resources and analysis against the target
51+
* catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata
52+
* is actually migrated.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.Boolean dryRun;
57+
58+
/**
59+
* Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a
60+
* validation error will be thrown. If only one is provided, the service only migrates tables of
61+
* that specific type. If both are provided, both Hive and Iceberg tables will be
62+
* migrated.Configuration for migrating Hive tables to a BigLake Hive catalog.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private HiveConfig hiveConfig;
67+
68+
/**
69+
* Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private IcebergConfig icebergConfig;
74+
75+
/**
76+
* Required. Defines the behavior of the migration execution.
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.String mode;
81+
82+
/**
83+
* Optional. The Cloud Storage path where the backfill / dry run report should be written. If not
84+
* provided, the report will be generated in the service's artifacts bucket. Format:
85+
* "gs://path/to/folder"
86+
* The value may be {@code null}.
87+
*/
88+
@com.google.api.client.util.Key
89+
private java.lang.String reportPath;
90+
91+
/**
92+
* Output only.
93+
* @return value or {@code null} for none
94+
*/
95+
public BackfillStatus getBackfillStatus() {
96+
return backfillStatus;
97+
}
98+
99+
/**
100+
* Output only.
101+
* @param backfillStatus backfillStatus or {@code null} for none
102+
*/
103+
public BigLakeMetastoreMigrationConfig setBackfillStatus(BackfillStatus backfillStatus) {
104+
this.backfillStatus = backfillStatus;
105+
return this;
106+
}
107+
108+
/**
109+
* Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not
110+
* specified.
111+
* @return value or {@code null} for none
112+
*/
113+
public java.lang.String getConflictPolicy() {
114+
return conflictPolicy;
115+
}
116+
117+
/**
118+
* Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not
119+
* specified.
120+
* @param conflictPolicy conflictPolicy or {@code null} for none
121+
*/
122+
public BigLakeMetastoreMigrationConfig setConflictPolicy(java.lang.String conflictPolicy) {
123+
this.conflictPolicy = conflictPolicy;
124+
return this;
125+
}
126+
127+
/**
128+
* Optional. If true, performs discovery of requested resources and analysis against the target
129+
* catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata
130+
* is actually migrated.
131+
* @return value or {@code null} for none
132+
*/
133+
public java.lang.Boolean getDryRun() {
134+
return dryRun;
135+
}
136+
137+
/**
138+
* Optional. If true, performs discovery of requested resources and analysis against the target
139+
* catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata
140+
* is actually migrated.
141+
* @param dryRun dryRun or {@code null} for none
142+
*/
143+
public BigLakeMetastoreMigrationConfig setDryRun(java.lang.Boolean dryRun) {
144+
this.dryRun = dryRun;
145+
return this;
146+
}
147+
148+
/**
149+
* Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a
150+
* validation error will be thrown. If only one is provided, the service only migrates tables of
151+
* that specific type. If both are provided, both Hive and Iceberg tables will be
152+
* migrated.Configuration for migrating Hive tables to a BigLake Hive catalog.
153+
* @return value or {@code null} for none
154+
*/
155+
public HiveConfig getHiveConfig() {
156+
return hiveConfig;
157+
}
158+
159+
/**
160+
* Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a
161+
* validation error will be thrown. If only one is provided, the service only migrates tables of
162+
* that specific type. If both are provided, both Hive and Iceberg tables will be
163+
* migrated.Configuration for migrating Hive tables to a BigLake Hive catalog.
164+
* @param hiveConfig hiveConfig or {@code null} for none
165+
*/
166+
public BigLakeMetastoreMigrationConfig setHiveConfig(HiveConfig hiveConfig) {
167+
this.hiveConfig = hiveConfig;
168+
return this;
169+
}
170+
171+
/**
172+
* Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog.
173+
* @return value or {@code null} for none
174+
*/
175+
public IcebergConfig getIcebergConfig() {
176+
return icebergConfig;
177+
}
178+
179+
/**
180+
* Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog.
181+
* @param icebergConfig icebergConfig or {@code null} for none
182+
*/
183+
public BigLakeMetastoreMigrationConfig setIcebergConfig(IcebergConfig icebergConfig) {
184+
this.icebergConfig = icebergConfig;
185+
return this;
186+
}
187+
188+
/**
189+
* Required. Defines the behavior of the migration execution.
190+
* @return value or {@code null} for none
191+
*/
192+
public java.lang.String getMode() {
193+
return mode;
194+
}
195+
196+
/**
197+
* Required. Defines the behavior of the migration execution.
198+
* @param mode mode or {@code null} for none
199+
*/
200+
public BigLakeMetastoreMigrationConfig setMode(java.lang.String mode) {
201+
this.mode = mode;
202+
return this;
203+
}
204+
205+
/**
206+
* Optional. The Cloud Storage path where the backfill / dry run report should be written. If not
207+
* provided, the report will be generated in the service's artifacts bucket. Format:
208+
* "gs://path/to/folder"
209+
* @return value or {@code null} for none
210+
*/
211+
public java.lang.String getReportPath() {
212+
return reportPath;
213+
}
214+
215+
/**
216+
* Optional. The Cloud Storage path where the backfill / dry run report should be written. If not
217+
* provided, the report will be generated in the service's artifacts bucket. Format:
218+
* "gs://path/to/folder"
219+
* @param reportPath reportPath or {@code null} for none
220+
*/
221+
public BigLakeMetastoreMigrationConfig setReportPath(java.lang.String reportPath) {
222+
this.reportPath = reportPath;
223+
return this;
224+
}
225+
226+
@Override
227+
public BigLakeMetastoreMigrationConfig set(String fieldName, Object value) {
228+
return (BigLakeMetastoreMigrationConfig) super.set(fieldName, value);
229+
}
230+
231+
@Override
232+
public BigLakeMetastoreMigrationConfig clone() {
233+
return (BigLakeMetastoreMigrationConfig) super.clone();
234+
}
235+
236+
}

0 commit comments

Comments
 (0)