diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/README.md b/clients/google-api-services-metastore/v1alpha/2.0.0/README.md index ad55d25143d..b207a14ffcd 100644 --- a/clients/google-api-services-metastore/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-metastore - v1alpha-rev20260716-2.0.0 + v1alpha-rev20260723-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/BackfillStatus.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/BackfillStatus.java new file mode 100644 index 00000000000..d845a73adbb --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/BackfillStatus.java @@ -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. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/BigLakeMetastoreMigrationConfig.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/BigLakeMetastoreMigrationConfig.java new file mode 100644 index 00000000000..04f70020347 --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/BigLakeMetastoreMigrationConfig.java @@ -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. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CatalogSummary.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CatalogSummary.java new file mode 100644 index 00000000000..a4d17c08644 --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CatalogSummary.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * Summary of results for a specific destination catalog. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CatalogSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The catalog resource name (format: projects/catalogs). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalog; + + /** + * Output only. The type of the catalog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalogType; + + /** + * Output only. Summary of results for each database in the catalog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List databaseSummaries; + + /** + * Output only. The catalog resource name (format: projects/catalogs). + * @return value or {@code null} for none + */ + public java.lang.String getCatalog() { + return catalog; + } + + /** + * Output only. The catalog resource name (format: projects/catalogs). + * @param catalog catalog or {@code null} for none + */ + public CatalogSummary setCatalog(java.lang.String catalog) { + this.catalog = catalog; + return this; + } + + /** + * Output only. The type of the catalog. + * @return value or {@code null} for none + */ + public java.lang.String getCatalogType() { + return catalogType; + } + + /** + * Output only. The type of the catalog. + * @param catalogType catalogType or {@code null} for none + */ + public CatalogSummary setCatalogType(java.lang.String catalogType) { + this.catalogType = catalogType; + return this; + } + + /** + * Output only. Summary of results for each database in the catalog. + * @return value or {@code null} for none + */ + public java.util.List getDatabaseSummaries() { + return databaseSummaries; + } + + /** + * Output only. Summary of results for each database in the catalog. + * @param databaseSummaries databaseSummaries or {@code null} for none + */ + public CatalogSummary setDatabaseSummaries(java.util.List databaseSummaries) { + this.databaseSummaries = databaseSummaries; + return this; + } + + @Override + public CatalogSummary set(String fieldName, Object value) { + return (CatalogSummary) super.set(fieldName, value); + } + + @Override + public CatalogSummary clone() { + return (CatalogSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/DatabaseSummary.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/DatabaseSummary.java new file mode 100644 index 00000000000..b8e0f7a7f38 --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/DatabaseSummary.java @@ -0,0 +1,142 @@ +/* + * 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; + +/** + * Summary of results for a specific database in a catalog. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DatabaseSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The name of the database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String database; + + /** + * Output only. The migration plan action for the database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String planAction; + + /** + * Output only. The migration result status for the database. This is only set if the migration is + * not a dry run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resultStatus; + + /** + * Output only. Aggregated summary of results for all tables in the database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TableSummary tableSummary; + + /** + * Output only. The name of the database. + * @return value or {@code null} for none + */ + public java.lang.String getDatabase() { + return database; + } + + /** + * Output only. The name of the database. + * @param database database or {@code null} for none + */ + public DatabaseSummary setDatabase(java.lang.String database) { + this.database = database; + return this; + } + + /** + * Output only. The migration plan action for the database. + * @return value or {@code null} for none + */ + public java.lang.String getPlanAction() { + return planAction; + } + + /** + * Output only. The migration plan action for the database. + * @param planAction planAction or {@code null} for none + */ + public DatabaseSummary setPlanAction(java.lang.String planAction) { + this.planAction = planAction; + return this; + } + + /** + * Output only. The migration result status for the database. This is only set if the migration is + * not a dry run. + * @return value or {@code null} for none + */ + public java.lang.String getResultStatus() { + return resultStatus; + } + + /** + * Output only. The migration result status for the database. This is only set if the migration is + * not a dry run. + * @param resultStatus resultStatus or {@code null} for none + */ + public DatabaseSummary setResultStatus(java.lang.String resultStatus) { + this.resultStatus = resultStatus; + return this; + } + + /** + * Output only. Aggregated summary of results for all tables in the database. + * @return value or {@code null} for none + */ + public TableSummary getTableSummary() { + return tableSummary; + } + + /** + * Output only. Aggregated summary of results for all tables in the database. + * @param tableSummary tableSummary or {@code null} for none + */ + public DatabaseSummary setTableSummary(TableSummary tableSummary) { + this.tableSummary = tableSummary; + return this; + } + + @Override + public DatabaseSummary set(String fieldName, Object value) { + return (DatabaseSummary) super.set(fieldName, value); + } + + @Override + public DatabaseSummary clone() { + return (DatabaseSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/HiveConfig.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/HiveConfig.java new file mode 100644 index 00000000000..59108957801 --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/HiveConfig.java @@ -0,0 +1,100 @@ +/* + * 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; + +/** + * Configuration for migrating Hive metadata. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HiveConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The target catalog for migrated databases and tables. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalog; + + /** + * Required. The list of databases to migrate to the Hive catalog. Use "*" to migrate all + * databases. Note: If Iceberg tables exist in these databases, they will only be migrated if + * iceberg_config is also specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List databases; + + /** + * Required. The target catalog for migrated databases and tables. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @return value or {@code null} for none + */ + public java.lang.String getCatalog() { + return catalog; + } + + /** + * Required. The target catalog for migrated databases and tables. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @param catalog catalog or {@code null} for none + */ + public HiveConfig setCatalog(java.lang.String catalog) { + this.catalog = catalog; + return this; + } + + /** + * Required. The list of databases to migrate to the Hive catalog. Use "*" to migrate all + * databases. Note: If Iceberg tables exist in these databases, they will only be migrated if + * iceberg_config is also specified. + * @return value or {@code null} for none + */ + public java.util.List getDatabases() { + return databases; + } + + /** + * Required. The list of databases to migrate to the Hive catalog. Use "*" to migrate all + * databases. Note: If Iceberg tables exist in these databases, they will only be migrated if + * iceberg_config is also specified. + * @param databases databases or {@code null} for none + */ + public HiveConfig setDatabases(java.util.List databases) { + this.databases = databases; + return this; + } + + @Override + public HiveConfig set(String fieldName, Object value) { + return (HiveConfig) super.set(fieldName, value); + } + + @Override + public HiveConfig clone() { + return (HiveConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/IcebergConfig.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/IcebergConfig.java new file mode 100644 index 00000000000..3fa39eee1fc --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/IcebergConfig.java @@ -0,0 +1,100 @@ +/* + * 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; + +/** + * Configuration for migrating Iceberg metadata. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class IcebergConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The target catalog for migrated Iceberg metadata. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalog; + + /** + * Required. The list of namespaces to migrate to the Iceberg REST catalog. Use "*" to migrate all + * namespaces. Note: If Hive tables exist in these namespaces, they will only be migrated if + * hive_config is also specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List namespaces; + + /** + * Required. The target catalog for migrated Iceberg metadata. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @return value or {@code null} for none + */ + public java.lang.String getCatalog() { + return catalog; + } + + /** + * Required. The target catalog for migrated Iceberg metadata. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @param catalog catalog or {@code null} for none + */ + public IcebergConfig setCatalog(java.lang.String catalog) { + this.catalog = catalog; + return this; + } + + /** + * Required. The list of namespaces to migrate to the Iceberg REST catalog. Use "*" to migrate all + * namespaces. Note: If Hive tables exist in these namespaces, they will only be migrated if + * hive_config is also specified. + * @return value or {@code null} for none + */ + public java.util.List getNamespaces() { + return namespaces; + } + + /** + * Required. The list of namespaces to migrate to the Iceberg REST catalog. Use "*" to migrate all + * namespaces. Note: If Hive tables exist in these namespaces, they will only be migrated if + * hive_config is also specified. + * @param namespaces namespaces or {@code null} for none + */ + public IcebergConfig setNamespaces(java.util.List namespaces) { + this.namespaces = namespaces; + return this; + } + + @Override + public IcebergConfig set(String fieldName, Object value) { + return (IcebergConfig) super.set(fieldName, value); + } + + @Override + public IcebergConfig clone() { + return (IcebergConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/MigrationExecution.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/MigrationExecution.java index a62ad4453ab..44eb4cbcb48 100644 --- a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/MigrationExecution.java +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/MigrationExecution.java @@ -30,6 +30,13 @@ @SuppressWarnings("javadoc") public final class MigrationExecution extends com.google.api.client.json.GenericJson { + /** + * Configuration information specific to migrating from Dataproc Metastore to BigLake Metastore. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BigLakeMetastoreMigrationConfig biglakeMetastoreMigrationConfig; + /** * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore * migration instead. Configuration information specific to migrating from self-managed hive @@ -84,6 +91,23 @@ public final class MigrationExecution extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.lang.String stateMessage; + /** + * Configuration information specific to migrating from Dataproc Metastore to BigLake Metastore. + * @return value or {@code null} for none + */ + public BigLakeMetastoreMigrationConfig getBiglakeMetastoreMigrationConfig() { + return biglakeMetastoreMigrationConfig; + } + + /** + * Configuration information specific to migrating from Dataproc Metastore to BigLake Metastore. + * @param biglakeMetastoreMigrationConfig biglakeMetastoreMigrationConfig or {@code null} for none + */ + public MigrationExecution setBiglakeMetastoreMigrationConfig(BigLakeMetastoreMigrationConfig biglakeMetastoreMigrationConfig) { + this.biglakeMetastoreMigrationConfig = biglakeMetastoreMigrationConfig; + return this; + } + /** * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore * migration instead. Configuration information specific to migrating from self-managed hive diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/MigrationSummary.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/MigrationSummary.java new file mode 100644 index 00000000000..5e1d154a180 --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/MigrationSummary.java @@ -0,0 +1,148 @@ +/* + * 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; + +/** + * Summary of the migration results. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MigrationSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. Summary of results for each catalog involved in the migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List catalogSummaries; + + static { + // hack to force ProGuard to consider CatalogSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CatalogSummary.class); + } + + /** + * Output only. The UTC time when this report was finalized. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Whether the migration was a dry run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dryRun; + + /** + * Output only. The Dataproc Metastore service name (format: projects/locations/services) on which + * the migration was executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Output only. Summary of results for each catalog involved in the migration. + * @return value or {@code null} for none + */ + public java.util.List getCatalogSummaries() { + return catalogSummaries; + } + + /** + * Output only. Summary of results for each catalog involved in the migration. + * @param catalogSummaries catalogSummaries or {@code null} for none + */ + public MigrationSummary setCatalogSummaries(java.util.List catalogSummaries) { + this.catalogSummaries = catalogSummaries; + return this; + } + + /** + * Output only. The UTC time when this report was finalized. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The UTC time when this report was finalized. + * @param createTime createTime or {@code null} for none + */ + public MigrationSummary setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Whether the migration was a dry run. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDryRun() { + return dryRun; + } + + /** + * Output only. Whether the migration was a dry run. + * @param dryRun dryRun or {@code null} for none + */ + public MigrationSummary setDryRun(java.lang.Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Output only. The Dataproc Metastore service name (format: projects/locations/services) on which + * the migration was executed. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Output only. The Dataproc Metastore service name (format: projects/locations/services) on which + * the migration was executed. + * @param service service or {@code null} for none + */ + public MigrationSummary setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public MigrationSummary set(String fieldName, Object value) { + return (MigrationSummary) super.set(fieldName, value); + } + + @Override + public MigrationSummary clone() { + return (MigrationSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/TableSummary.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/TableSummary.java new file mode 100644 index 00000000000..90a2308a7e2 --- /dev/null +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/TableSummary.java @@ -0,0 +1,175 @@ +/* + * 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; + +/** + * Aggregated summary of results for all tables in a database. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TableSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. Partition migration summary across all Hive tables in the database.The total + * number of partitions discovered at the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partitionDiscoveredCount; + + /** + * Output only. The total number of partitions that failed to migrate at the target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partitionFailedCount; + + /** + * Output only. The total number of partitions successfully migrated at the target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partitionSuccessCount; + + /** + * Output only. Number of tables with a specific migration plan action. The key is the action name + * (e.g. CREATE, UPDATE, SKIP, etc.). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.Map planCounts; + + /** + * Output only. Number of tables with a specific migration result status. The key is the status + * name (e.g. SUCCEEDED, FAILED, SKIPPED, etc.). This is only set if the migration is not a dry + * run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.Map resultCounts; + + /** + * Output only. Partition migration summary across all Hive tables in the database.The total + * number of partitions discovered at the source. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionDiscoveredCount() { + return partitionDiscoveredCount; + } + + /** + * Output only. Partition migration summary across all Hive tables in the database.The total + * number of partitions discovered at the source. + * @param partitionDiscoveredCount partitionDiscoveredCount or {@code null} for none + */ + public TableSummary setPartitionDiscoveredCount(java.lang.Long partitionDiscoveredCount) { + this.partitionDiscoveredCount = partitionDiscoveredCount; + return this; + } + + /** + * Output only. The total number of partitions that failed to migrate at the target. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionFailedCount() { + return partitionFailedCount; + } + + /** + * Output only. The total number of partitions that failed to migrate at the target. + * @param partitionFailedCount partitionFailedCount or {@code null} for none + */ + public TableSummary setPartitionFailedCount(java.lang.Long partitionFailedCount) { + this.partitionFailedCount = partitionFailedCount; + return this; + } + + /** + * Output only. The total number of partitions successfully migrated at the target. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionSuccessCount() { + return partitionSuccessCount; + } + + /** + * Output only. The total number of partitions successfully migrated at the target. + * @param partitionSuccessCount partitionSuccessCount or {@code null} for none + */ + public TableSummary setPartitionSuccessCount(java.lang.Long partitionSuccessCount) { + this.partitionSuccessCount = partitionSuccessCount; + return this; + } + + /** + * Output only. Number of tables with a specific migration plan action. The key is the action name + * (e.g. CREATE, UPDATE, SKIP, etc.). + * @return value or {@code null} for none + */ + public java.util.Map getPlanCounts() { + return planCounts; + } + + /** + * Output only. Number of tables with a specific migration plan action. The key is the action name + * (e.g. CREATE, UPDATE, SKIP, etc.). + * @param planCounts planCounts or {@code null} for none + */ + public TableSummary setPlanCounts(java.util.Map planCounts) { + this.planCounts = planCounts; + return this; + } + + /** + * Output only. Number of tables with a specific migration result status. The key is the status + * name (e.g. SUCCEEDED, FAILED, SKIPPED, etc.). This is only set if the migration is not a dry + * run. + * @return value or {@code null} for none + */ + public java.util.Map getResultCounts() { + return resultCounts; + } + + /** + * Output only. Number of tables with a specific migration result status. The key is the status + * name (e.g. SUCCEEDED, FAILED, SKIPPED, etc.). This is only set if the migration is not a dry + * run. + * @param resultCounts resultCounts or {@code null} for none + */ + public TableSummary setResultCounts(java.util.Map resultCounts) { + this.resultCounts = resultCounts; + return this; + } + + @Override + public TableSummary set(String fieldName, Object value) { + return (TableSummary) super.set(fieldName, value); + } + + @Override + public TableSummary clone() { + return (TableSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/pom.xml b/clients/google-api-services-metastore/v1alpha/2.0.0/pom.xml index d8b74ac59e9..fd1aece9135 100644 --- a/clients/google-api-services-metastore/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-metastore - v1alpha-rev20260716-2.0.0 - Dataproc Metastore API v1alpha-rev20260716-2.0.0 + v1alpha-rev20260723-2.0.0 + Dataproc Metastore API v1alpha-rev20260723-2.0.0 jar 2011 diff --git a/clients/google-api-services-metastore/v1alpha/README.md b/clients/google-api-services-metastore/v1alpha/README.md index ad55d25143d..b207a14ffcd 100644 --- a/clients/google-api-services-metastore/v1alpha/README.md +++ b/clients/google-api-services-metastore/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-metastore - v1alpha-rev20260716-2.0.0 + v1alpha-rev20260723-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/README.md b/clients/google-api-services-metastore/v1beta/2.0.0/README.md index bde1580d766..c1cdefb541d 100644 --- a/clients/google-api-services-metastore/v1beta/2.0.0/README.md +++ b/clients/google-api-services-metastore/v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-metastore - v1beta-rev20260716-2.0.0 + v1beta-rev20260723-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-metastore:v1beta-rev20260716-2.0.0' + implementation 'com.google.apis:google-api-services-metastore:v1beta-rev20260723-2.0.0' } ``` diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/BackfillStatus.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/BackfillStatus.java new file mode 100644 index 00000000000..37fd20b0220 --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/BackfillStatus.java @@ -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.v1beta.model; + +/** + * Backfill status for the migration execution. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/BigLakeMetastoreMigrationConfig.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/BigLakeMetastoreMigrationConfig.java new file mode 100644 index 00000000000..3d73342a2ba --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/BigLakeMetastoreMigrationConfig.java @@ -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.v1beta.model; + +/** + * Defines the configuration required to migrate metadata from a Dataproc Metastore service to + * BigLake Metastore. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CatalogSummary.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CatalogSummary.java new file mode 100644 index 00000000000..fe59ee71334 --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CatalogSummary.java @@ -0,0 +1,115 @@ +/* + * 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.v1beta.model; + +/** + * Summary of results for a specific destination catalog. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CatalogSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The catalog resource name (format: projects/catalogs). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalog; + + /** + * Output only. The type of the catalog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalogType; + + /** + * Output only. Summary of results for each database in the catalog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List databaseSummaries; + + /** + * Output only. The catalog resource name (format: projects/catalogs). + * @return value or {@code null} for none + */ + public java.lang.String getCatalog() { + return catalog; + } + + /** + * Output only. The catalog resource name (format: projects/catalogs). + * @param catalog catalog or {@code null} for none + */ + public CatalogSummary setCatalog(java.lang.String catalog) { + this.catalog = catalog; + return this; + } + + /** + * Output only. The type of the catalog. + * @return value or {@code null} for none + */ + public java.lang.String getCatalogType() { + return catalogType; + } + + /** + * Output only. The type of the catalog. + * @param catalogType catalogType or {@code null} for none + */ + public CatalogSummary setCatalogType(java.lang.String catalogType) { + this.catalogType = catalogType; + return this; + } + + /** + * Output only. Summary of results for each database in the catalog. + * @return value or {@code null} for none + */ + public java.util.List getDatabaseSummaries() { + return databaseSummaries; + } + + /** + * Output only. Summary of results for each database in the catalog. + * @param databaseSummaries databaseSummaries or {@code null} for none + */ + public CatalogSummary setDatabaseSummaries(java.util.List databaseSummaries) { + this.databaseSummaries = databaseSummaries; + return this; + } + + @Override + public CatalogSummary set(String fieldName, Object value) { + return (CatalogSummary) super.set(fieldName, value); + } + + @Override + public CatalogSummary clone() { + return (CatalogSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/DatabaseSummary.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/DatabaseSummary.java new file mode 100644 index 00000000000..153348b3a47 --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/DatabaseSummary.java @@ -0,0 +1,142 @@ +/* + * 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.v1beta.model; + +/** + * Summary of results for a specific database in a catalog. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DatabaseSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The name of the database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String database; + + /** + * Output only. The migration plan action for the database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String planAction; + + /** + * Output only. The migration result status for the database. This is only set if the migration is + * not a dry run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resultStatus; + + /** + * Output only. Aggregated summary of results for all tables in the database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TableSummary tableSummary; + + /** + * Output only. The name of the database. + * @return value or {@code null} for none + */ + public java.lang.String getDatabase() { + return database; + } + + /** + * Output only. The name of the database. + * @param database database or {@code null} for none + */ + public DatabaseSummary setDatabase(java.lang.String database) { + this.database = database; + return this; + } + + /** + * Output only. The migration plan action for the database. + * @return value or {@code null} for none + */ + public java.lang.String getPlanAction() { + return planAction; + } + + /** + * Output only. The migration plan action for the database. + * @param planAction planAction or {@code null} for none + */ + public DatabaseSummary setPlanAction(java.lang.String planAction) { + this.planAction = planAction; + return this; + } + + /** + * Output only. The migration result status for the database. This is only set if the migration is + * not a dry run. + * @return value or {@code null} for none + */ + public java.lang.String getResultStatus() { + return resultStatus; + } + + /** + * Output only. The migration result status for the database. This is only set if the migration is + * not a dry run. + * @param resultStatus resultStatus or {@code null} for none + */ + public DatabaseSummary setResultStatus(java.lang.String resultStatus) { + this.resultStatus = resultStatus; + return this; + } + + /** + * Output only. Aggregated summary of results for all tables in the database. + * @return value or {@code null} for none + */ + public TableSummary getTableSummary() { + return tableSummary; + } + + /** + * Output only. Aggregated summary of results for all tables in the database. + * @param tableSummary tableSummary or {@code null} for none + */ + public DatabaseSummary setTableSummary(TableSummary tableSummary) { + this.tableSummary = tableSummary; + return this; + } + + @Override + public DatabaseSummary set(String fieldName, Object value) { + return (DatabaseSummary) super.set(fieldName, value); + } + + @Override + public DatabaseSummary clone() { + return (DatabaseSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/HiveConfig.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/HiveConfig.java new file mode 100644 index 00000000000..c353de0c5a6 --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/HiveConfig.java @@ -0,0 +1,100 @@ +/* + * 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.v1beta.model; + +/** + * Configuration for migrating Hive metadata. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HiveConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The target catalog for migrated databases and tables. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalog; + + /** + * Required. The list of databases to migrate to the Hive catalog. Use "*" to migrate all + * databases. Note: If Iceberg tables exist in these databases, they will only be migrated if + * iceberg_config is also specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List databases; + + /** + * Required. The target catalog for migrated databases and tables. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @return value or {@code null} for none + */ + public java.lang.String getCatalog() { + return catalog; + } + + /** + * Required. The target catalog for migrated databases and tables. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @param catalog catalog or {@code null} for none + */ + public HiveConfig setCatalog(java.lang.String catalog) { + this.catalog = catalog; + return this; + } + + /** + * Required. The list of databases to migrate to the Hive catalog. Use "*" to migrate all + * databases. Note: If Iceberg tables exist in these databases, they will only be migrated if + * iceberg_config is also specified. + * @return value or {@code null} for none + */ + public java.util.List getDatabases() { + return databases; + } + + /** + * Required. The list of databases to migrate to the Hive catalog. Use "*" to migrate all + * databases. Note: If Iceberg tables exist in these databases, they will only be migrated if + * iceberg_config is also specified. + * @param databases databases or {@code null} for none + */ + public HiveConfig setDatabases(java.util.List databases) { + this.databases = databases; + return this; + } + + @Override + public HiveConfig set(String fieldName, Object value) { + return (HiveConfig) super.set(fieldName, value); + } + + @Override + public HiveConfig clone() { + return (HiveConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/IcebergConfig.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/IcebergConfig.java new file mode 100644 index 00000000000..6c58a85a631 --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/IcebergConfig.java @@ -0,0 +1,100 @@ +/* + * 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.v1beta.model; + +/** + * Configuration for migrating Iceberg metadata. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class IcebergConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The target catalog for migrated Iceberg metadata. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalog; + + /** + * Required. The list of namespaces to migrate to the Iceberg REST catalog. Use "*" to migrate all + * namespaces. Note: If Hive tables exist in these namespaces, they will only be migrated if + * hive_config is also specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List namespaces; + + /** + * Required. The target catalog for migrated Iceberg metadata. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @return value or {@code null} for none + */ + public java.lang.String getCatalog() { + return catalog; + } + + /** + * Required. The target catalog for migrated Iceberg metadata. Format: + * "projects/{project_id_or_number}/catalogs/{catalog_id}" + * @param catalog catalog or {@code null} for none + */ + public IcebergConfig setCatalog(java.lang.String catalog) { + this.catalog = catalog; + return this; + } + + /** + * Required. The list of namespaces to migrate to the Iceberg REST catalog. Use "*" to migrate all + * namespaces. Note: If Hive tables exist in these namespaces, they will only be migrated if + * hive_config is also specified. + * @return value or {@code null} for none + */ + public java.util.List getNamespaces() { + return namespaces; + } + + /** + * Required. The list of namespaces to migrate to the Iceberg REST catalog. Use "*" to migrate all + * namespaces. Note: If Hive tables exist in these namespaces, they will only be migrated if + * hive_config is also specified. + * @param namespaces namespaces or {@code null} for none + */ + public IcebergConfig setNamespaces(java.util.List namespaces) { + this.namespaces = namespaces; + return this; + } + + @Override + public IcebergConfig set(String fieldName, Object value) { + return (IcebergConfig) super.set(fieldName, value); + } + + @Override + public IcebergConfig clone() { + return (IcebergConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/MigrationExecution.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/MigrationExecution.java index 429f956b5a4..57536c7a910 100644 --- a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/MigrationExecution.java +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/MigrationExecution.java @@ -30,6 +30,13 @@ @SuppressWarnings("javadoc") public final class MigrationExecution extends com.google.api.client.json.GenericJson { + /** + * Configuration information specific to migrating from Dataproc Metastore to BigLake Metastore. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BigLakeMetastoreMigrationConfig biglakeMetastoreMigrationConfig; + /** * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore * migration instead. Configuration information specific to migrating from self-managed hive @@ -84,6 +91,23 @@ public final class MigrationExecution extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.lang.String stateMessage; + /** + * Configuration information specific to migrating from Dataproc Metastore to BigLake Metastore. + * @return value or {@code null} for none + */ + public BigLakeMetastoreMigrationConfig getBiglakeMetastoreMigrationConfig() { + return biglakeMetastoreMigrationConfig; + } + + /** + * Configuration information specific to migrating from Dataproc Metastore to BigLake Metastore. + * @param biglakeMetastoreMigrationConfig biglakeMetastoreMigrationConfig or {@code null} for none + */ + public MigrationExecution setBiglakeMetastoreMigrationConfig(BigLakeMetastoreMigrationConfig biglakeMetastoreMigrationConfig) { + this.biglakeMetastoreMigrationConfig = biglakeMetastoreMigrationConfig; + return this; + } + /** * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore * migration instead. Configuration information specific to migrating from self-managed hive diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/MigrationSummary.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/MigrationSummary.java new file mode 100644 index 00000000000..761bd6a2ced --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/MigrationSummary.java @@ -0,0 +1,148 @@ +/* + * 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.v1beta.model; + +/** + * Summary of the migration results. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MigrationSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. Summary of results for each catalog involved in the migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List catalogSummaries; + + static { + // hack to force ProGuard to consider CatalogSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CatalogSummary.class); + } + + /** + * Output only. The UTC time when this report was finalized. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Whether the migration was a dry run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dryRun; + + /** + * Output only. The Dataproc Metastore service name (format: projects/locations/services) on which + * the migration was executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Output only. Summary of results for each catalog involved in the migration. + * @return value or {@code null} for none + */ + public java.util.List getCatalogSummaries() { + return catalogSummaries; + } + + /** + * Output only. Summary of results for each catalog involved in the migration. + * @param catalogSummaries catalogSummaries or {@code null} for none + */ + public MigrationSummary setCatalogSummaries(java.util.List catalogSummaries) { + this.catalogSummaries = catalogSummaries; + return this; + } + + /** + * Output only. The UTC time when this report was finalized. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The UTC time when this report was finalized. + * @param createTime createTime or {@code null} for none + */ + public MigrationSummary setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Whether the migration was a dry run. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDryRun() { + return dryRun; + } + + /** + * Output only. Whether the migration was a dry run. + * @param dryRun dryRun or {@code null} for none + */ + public MigrationSummary setDryRun(java.lang.Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Output only. The Dataproc Metastore service name (format: projects/locations/services) on which + * the migration was executed. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Output only. The Dataproc Metastore service name (format: projects/locations/services) on which + * the migration was executed. + * @param service service or {@code null} for none + */ + public MigrationSummary setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public MigrationSummary set(String fieldName, Object value) { + return (MigrationSummary) super.set(fieldName, value); + } + + @Override + public MigrationSummary clone() { + return (MigrationSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/TableSummary.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/TableSummary.java new file mode 100644 index 00000000000..c4a0723f177 --- /dev/null +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/TableSummary.java @@ -0,0 +1,175 @@ +/* + * 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.v1beta.model; + +/** + * Aggregated summary of results for all tables in a database. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TableSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. Partition migration summary across all Hive tables in the database.The total + * number of partitions discovered at the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partitionDiscoveredCount; + + /** + * Output only. The total number of partitions that failed to migrate at the target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partitionFailedCount; + + /** + * Output only. The total number of partitions successfully migrated at the target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partitionSuccessCount; + + /** + * Output only. Number of tables with a specific migration plan action. The key is the action name + * (e.g. CREATE, UPDATE, SKIP, etc.). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.Map planCounts; + + /** + * Output only. Number of tables with a specific migration result status. The key is the status + * name (e.g. SUCCEEDED, FAILED, SKIPPED, etc.). This is only set if the migration is not a dry + * run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.Map resultCounts; + + /** + * Output only. Partition migration summary across all Hive tables in the database.The total + * number of partitions discovered at the source. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionDiscoveredCount() { + return partitionDiscoveredCount; + } + + /** + * Output only. Partition migration summary across all Hive tables in the database.The total + * number of partitions discovered at the source. + * @param partitionDiscoveredCount partitionDiscoveredCount or {@code null} for none + */ + public TableSummary setPartitionDiscoveredCount(java.lang.Long partitionDiscoveredCount) { + this.partitionDiscoveredCount = partitionDiscoveredCount; + return this; + } + + /** + * Output only. The total number of partitions that failed to migrate at the target. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionFailedCount() { + return partitionFailedCount; + } + + /** + * Output only. The total number of partitions that failed to migrate at the target. + * @param partitionFailedCount partitionFailedCount or {@code null} for none + */ + public TableSummary setPartitionFailedCount(java.lang.Long partitionFailedCount) { + this.partitionFailedCount = partitionFailedCount; + return this; + } + + /** + * Output only. The total number of partitions successfully migrated at the target. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionSuccessCount() { + return partitionSuccessCount; + } + + /** + * Output only. The total number of partitions successfully migrated at the target. + * @param partitionSuccessCount partitionSuccessCount or {@code null} for none + */ + public TableSummary setPartitionSuccessCount(java.lang.Long partitionSuccessCount) { + this.partitionSuccessCount = partitionSuccessCount; + return this; + } + + /** + * Output only. Number of tables with a specific migration plan action. The key is the action name + * (e.g. CREATE, UPDATE, SKIP, etc.). + * @return value or {@code null} for none + */ + public java.util.Map getPlanCounts() { + return planCounts; + } + + /** + * Output only. Number of tables with a specific migration plan action. The key is the action name + * (e.g. CREATE, UPDATE, SKIP, etc.). + * @param planCounts planCounts or {@code null} for none + */ + public TableSummary setPlanCounts(java.util.Map planCounts) { + this.planCounts = planCounts; + return this; + } + + /** + * Output only. Number of tables with a specific migration result status. The key is the status + * name (e.g. SUCCEEDED, FAILED, SKIPPED, etc.). This is only set if the migration is not a dry + * run. + * @return value or {@code null} for none + */ + public java.util.Map getResultCounts() { + return resultCounts; + } + + /** + * Output only. Number of tables with a specific migration result status. The key is the status + * name (e.g. SUCCEEDED, FAILED, SKIPPED, etc.). This is only set if the migration is not a dry + * run. + * @param resultCounts resultCounts or {@code null} for none + */ + public TableSummary setResultCounts(java.util.Map resultCounts) { + this.resultCounts = resultCounts; + return this; + } + + @Override + public TableSummary set(String fieldName, Object value) { + return (TableSummary) super.set(fieldName, value); + } + + @Override + public TableSummary clone() { + return (TableSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/pom.xml b/clients/google-api-services-metastore/v1beta/2.0.0/pom.xml index 059e2c11a12..9141bd43297 100644 --- a/clients/google-api-services-metastore/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-metastore/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-metastore - v1beta-rev20260716-2.0.0 - Dataproc Metastore API v1beta-rev20260716-2.0.0 + v1beta-rev20260723-2.0.0 + Dataproc Metastore API v1beta-rev20260723-2.0.0 jar 2011 diff --git a/clients/google-api-services-metastore/v1beta/README.md b/clients/google-api-services-metastore/v1beta/README.md index bde1580d766..c1cdefb541d 100644 --- a/clients/google-api-services-metastore/v1beta/README.md +++ b/clients/google-api-services-metastore/v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-metastore - v1beta-rev20260716-2.0.0 + v1beta-rev20260723-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-metastore:v1beta-rev20260716-2.0.0' + implementation 'com.google.apis:google-api-services-metastore:v1beta-rev20260723-2.0.0' } ```