Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-metastore</artifactId>
<version>v1alpha-rev20260716-2.0.0</version>
<version>v1alpha-rev20260723-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-metastore:v1alpha-rev20260716-2.0.0'
implementation 'com.google.apis:google-api-services-metastore:v1alpha-rev20260723-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.metastore.v1alpha.model;

/**
* Backfill status for the migration execution.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Dataproc Metastore API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class BackfillStatus extends com.google.api.client.json.GenericJson {

/**
* Output only. Summary of the migration results. This is populated after the backfill or dry run
* is finished.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private MigrationSummary migrationSummary;

/**
* Output only. The Cloud Storage path where the backfill or dry run report is written. Format:
* "gs://path-to-report".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String reportPath;

/**
* Output only. The current state of the backfill (or dry run).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;

/**
* Output only. Summary of the migration results. This is populated after the backfill or dry run
* is finished.
* @return value or {@code null} for none
*/
public MigrationSummary getMigrationSummary() {
return migrationSummary;
}

/**
* Output only. Summary of the migration results. This is populated after the backfill or dry run
* is finished.
* @param migrationSummary migrationSummary or {@code null} for none
*/
public BackfillStatus setMigrationSummary(MigrationSummary migrationSummary) {
this.migrationSummary = migrationSummary;
return this;
}

/**
* Output only. The Cloud Storage path where the backfill or dry run report is written. Format:
* "gs://path-to-report".
* @return value or {@code null} for none
*/
public java.lang.String getReportPath() {
return reportPath;
}

/**
* Output only. The Cloud Storage path where the backfill or dry run report is written. Format:
* "gs://path-to-report".
* @param reportPath reportPath or {@code null} for none
*/
public BackfillStatus setReportPath(java.lang.String reportPath) {
this.reportPath = reportPath;
return this;
}

/**
* Output only. The current state of the backfill (or dry run).
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}

/**
* Output only. The current state of the backfill (or dry run).
* @param state state or {@code null} for none
*/
public BackfillStatus setState(java.lang.String state) {
this.state = state;
return this;
}

@Override
public BackfillStatus set(String fieldName, Object value) {
return (BackfillStatus) super.set(fieldName, value);
}

@Override
public BackfillStatus clone() {
return (BackfillStatus) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.metastore.v1alpha.model;

/**
* Defines the configuration required to migrate metadata from a Dataproc Metastore service to
* BigLake Metastore.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Dataproc Metastore API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class BigLakeMetastoreMigrationConfig extends com.google.api.client.json.GenericJson {

/**
* Output only.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BackfillStatus backfillStatus;

/**
* Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not
* specified.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String conflictPolicy;

/**
* Optional. If true, performs discovery of requested resources and analysis against the target
* catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata
* is actually migrated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean dryRun;

/**
* Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a
* validation error will be thrown. If only one is provided, the service only migrates tables of
* that specific type. If both are provided, both Hive and Iceberg tables will be
* migrated.Configuration for migrating Hive tables to a BigLake Hive catalog.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private HiveConfig hiveConfig;

/**
* Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private IcebergConfig icebergConfig;

/**
* Required. Defines the behavior of the migration execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String mode;

/**
* Optional. The Cloud Storage path where the backfill / dry run report should be written. If not
* provided, the report will be generated in the service's artifacts bucket. Format:
* "gs://path/to/folder"
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String reportPath;

/**
* Output only.
* @return value or {@code null} for none
*/
public BackfillStatus getBackfillStatus() {
return backfillStatus;
}

/**
* Output only.
* @param backfillStatus backfillStatus or {@code null} for none
*/
public BigLakeMetastoreMigrationConfig setBackfillStatus(BackfillStatus backfillStatus) {
this.backfillStatus = backfillStatus;
return this;
}

/**
* Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not
* specified.
* @return value or {@code null} for none
*/
public java.lang.String getConflictPolicy() {
return conflictPolicy;
}

/**
* Optional. The policy to handle conflicts when migrating resources, defaults to SKIP if not
* specified.
* @param conflictPolicy conflictPolicy or {@code null} for none
*/
public BigLakeMetastoreMigrationConfig setConflictPolicy(java.lang.String conflictPolicy) {
this.conflictPolicy = conflictPolicy;
return this;
}

/**
* Optional. If true, performs discovery of requested resources and analysis against the target
* catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata
* is actually migrated.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDryRun() {
return dryRun;
}

/**
* Optional. If true, performs discovery of requested resources and analysis against the target
* catalog to come up with a plan for each resource (e.g. Create, Update, Skip, etc.). No metadata
* is actually migrated.
* @param dryRun dryRun or {@code null} for none
*/
public BigLakeMetastoreMigrationConfig setDryRun(java.lang.Boolean dryRun) {
this.dryRun = dryRun;
return this;
}

/**
* Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a
* validation error will be thrown. If only one is provided, the service only migrates tables of
* that specific type. If both are provided, both Hive and Iceberg tables will be
* migrated.Configuration for migrating Hive tables to a BigLake Hive catalog.
* @return value or {@code null} for none
*/
public HiveConfig getHiveConfig() {
return hiveConfig;
}

/**
* Optional. At least one of hive_config or iceberg_config must be provided, otherwise, a
* validation error will be thrown. If only one is provided, the service only migrates tables of
* that specific type. If both are provided, both Hive and Iceberg tables will be
* migrated.Configuration for migrating Hive tables to a BigLake Hive catalog.
* @param hiveConfig hiveConfig or {@code null} for none
*/
public BigLakeMetastoreMigrationConfig setHiveConfig(HiveConfig hiveConfig) {
this.hiveConfig = hiveConfig;
return this;
}

/**
* Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog.
* @return value or {@code null} for none
*/
public IcebergConfig getIcebergConfig() {
return icebergConfig;
}

/**
* Optional. Configuration for migrating Iceberg tables to a BigLake Iceberg REST catalog.
* @param icebergConfig icebergConfig or {@code null} for none
*/
public BigLakeMetastoreMigrationConfig setIcebergConfig(IcebergConfig icebergConfig) {
this.icebergConfig = icebergConfig;
return this;
}

/**
* Required. Defines the behavior of the migration execution.
* @return value or {@code null} for none
*/
public java.lang.String getMode() {
return mode;
}

/**
* Required. Defines the behavior of the migration execution.
* @param mode mode or {@code null} for none
*/
public BigLakeMetastoreMigrationConfig setMode(java.lang.String mode) {
this.mode = mode;
return this;
}

/**
* Optional. The Cloud Storage path where the backfill / dry run report should be written. If not
* provided, the report will be generated in the service's artifacts bucket. Format:
* "gs://path/to/folder"
* @return value or {@code null} for none
*/
public java.lang.String getReportPath() {
return reportPath;
}

/**
* Optional. The Cloud Storage path where the backfill / dry run report should be written. If not
* provided, the report will be generated in the service's artifacts bucket. Format:
* "gs://path/to/folder"
* @param reportPath reportPath or {@code null} for none
*/
public BigLakeMetastoreMigrationConfig setReportPath(java.lang.String reportPath) {
this.reportPath = reportPath;
return this;
}

@Override
public BigLakeMetastoreMigrationConfig set(String fieldName, Object value) {
return (BigLakeMetastoreMigrationConfig) super.set(fieldName, value);
}

@Override
public BigLakeMetastoreMigrationConfig clone() {
return (BigLakeMetastoreMigrationConfig) super.clone();
}

}
Loading
Loading