diff --git a/clients/google-api-services-metastore/v1/2.0.0/README.md b/clients/google-api-services-metastore/v1/2.0.0/README.md
index 0344e72e123..a654183c469 100644
--- a/clients/google-api-services-metastore/v1/2.0.0/README.md
+++ b/clients/google-api-services-metastore/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
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/v1/2.0.0/com/google/api/services/metastore/v1/model/BigLakeMetastoreMigrationConfig.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/BigLakeMetastoreMigrationConfig.java new file mode 100644 index 00000000000..df3f9da3e2e --- /dev/null +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/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.v1.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/v1/2.0.0/com/google/api/services/metastore/v1/model/CatalogReport.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CatalogReport.java new file mode 100644 index 00000000000..6f38aeae028 --- /dev/null +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CatalogReport.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.v1.model; + +/** + * Aggregated report at the catalog level. + * + *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 CatalogReport extends com.google.api.client.json.GenericJson { + + /** + * The name of the catalog (format: projects/catalogs). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalog; + + /** + * The type of catalog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String catalogType; + + /** + * A map of database names to their respective reports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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.ListThis 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 CdcConfig extends com.google.api.client.json.GenericJson { - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bucket; - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String password; - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reverseProxySubnet; - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rootPath; - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetIpRange; - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String username; - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vpcNetwork; - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * @return value or {@code null} for none - */ - public java.lang.String getBucket() { - return bucket; - } - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * @param bucket bucket or {@code null} for none - */ - public CdcConfig setBucket(java.lang.String bucket) { - this.bucket = bucket; - return this; - } - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * @return value or {@code null} for none - */ - public java.lang.String getPassword() { - return password; - } - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * @param password password or {@code null} for none - */ - public CdcConfig setPassword(java.lang.String password) { - this.password = password; - return this; - } - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getReverseProxySubnet() { - return reverseProxySubnet; - } - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param reverseProxySubnet reverseProxySubnet or {@code null} for none - */ - public CdcConfig setReverseProxySubnet(java.lang.String reverseProxySubnet) { - this.reverseProxySubnet = reverseProxySubnet; - return this; - } - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * @return value or {@code null} for none - */ - public java.lang.String getRootPath() { - return rootPath; - } - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * @param rootPath rootPath or {@code null} for none - */ - public CdcConfig setRootPath(java.lang.String rootPath) { - this.rootPath = rootPath; - return this; - } - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetIpRange() { - return subnetIpRange; - } - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * @param subnetIpRange subnetIpRange or {@code null} for none - */ - public CdcConfig setSubnetIpRange(java.lang.String subnetIpRange) { - this.subnetIpRange = subnetIpRange; - return this; - } - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * @return value or {@code null} for none - */ - public java.lang.String getUsername() { - return username; - } - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * @param username username or {@code null} for none - */ - public CdcConfig setUsername(java.lang.String username) { - this.username = username; - return this; - } - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * @return value or {@code null} for none - */ - public java.lang.String getVpcNetwork() { - return vpcNetwork; - } - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * @param vpcNetwork vpcNetwork or {@code null} for none - */ - public CdcConfig setVpcNetwork(java.lang.String vpcNetwork) { - this.vpcNetwork = vpcNetwork; - return this; - } - - @Override - public CdcConfig set(String fieldName, Object value) { - return (CdcConfig) super.set(fieldName, value); - } - - @Override - public CdcConfig clone() { - return (CdcConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CloudSQLConnectionConfig.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CloudSQLConnectionConfig.java deleted file mode 100644 index 98f48817177..00000000000 --- a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CloudSQLConnectionConfig.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * 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.v1.model; - -/** - * Configuration information to establish customer database connection before the cutover phase of - * migration - * - *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 CloudSQLConnectionConfig extends com.google.api.client.json.GenericJson { - - /** - * Required. The hive database name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hiveDatabaseName; - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceConnectionName; - - /** - * Required. The private IP address of the Cloud SQL instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natSubnet; - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String password; - - /** - * Required. The network port of the database. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxySubnet; - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String username; - - /** - * Required. The hive database name. - * @return value or {@code null} for none - */ - public java.lang.String getHiveDatabaseName() { - return hiveDatabaseName; - } - - /** - * Required. The hive database name. - * @param hiveDatabaseName hiveDatabaseName or {@code null} for none - */ - public CloudSQLConnectionConfig setHiveDatabaseName(java.lang.String hiveDatabaseName) { - this.hiveDatabaseName = hiveDatabaseName; - return this; - } - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * @return value or {@code null} for none - */ - public java.lang.String getInstanceConnectionName() { - return instanceConnectionName; - } - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * @param instanceConnectionName instanceConnectionName or {@code null} for none - */ - public CloudSQLConnectionConfig setInstanceConnectionName(java.lang.String instanceConnectionName) { - this.instanceConnectionName = instanceConnectionName; - return this; - } - - /** - * Required. The private IP address of the Cloud SQL instance. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * Required. The private IP address of the Cloud SQL instance. - * @param ipAddress ipAddress or {@code null} for none - */ - public CloudSQLConnectionConfig setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getNatSubnet() { - return natSubnet; - } - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param natSubnet natSubnet or {@code null} for none - */ - public CloudSQLConnectionConfig setNatSubnet(java.lang.String natSubnet) { - this.natSubnet = natSubnet; - return this; - } - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * @return value or {@code null} for none - */ - public java.lang.String getPassword() { - return password; - } - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * @param password password or {@code null} for none - */ - public CloudSQLConnectionConfig setPassword(java.lang.String password) { - this.password = password; - return this; - } - - /** - * Required. The network port of the database. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * Required. The network port of the database. - * @param port port or {@code null} for none - */ - public CloudSQLConnectionConfig setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getProxySubnet() { - return proxySubnet; - } - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param proxySubnet proxySubnet or {@code null} for none - */ - public CloudSQLConnectionConfig setProxySubnet(java.lang.String proxySubnet) { - this.proxySubnet = proxySubnet; - return this; - } - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * @return value or {@code null} for none - */ - public java.lang.String getUsername() { - return username; - } - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * @param username username or {@code null} for none - */ - public CloudSQLConnectionConfig setUsername(java.lang.String username) { - this.username = username; - return this; - } - - @Override - public CloudSQLConnectionConfig set(String fieldName, Object value) { - return (CloudSQLConnectionConfig) super.set(fieldName, value); - } - - @Override - public CloudSQLConnectionConfig clone() { - return (CloudSQLConnectionConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CloudSQLMigrationConfig.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CloudSQLMigrationConfig.java deleted file mode 100644 index 5cd09009b47..00000000000 --- a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/CloudSQLMigrationConfig.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.v1.model; - -/** - * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore - * migration instead. Configuration information for migrating from self-managed hive metastore on - * Google Cloud using Cloud SQL as the backend database to Dataproc 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 CloudSQLMigrationConfig extends com.google.api.client.json.GenericJson { - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CdcConfig cdcConfig; - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CloudSQLConnectionConfig cloudSqlConnectionConfig; - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * @return value or {@code null} for none - */ - public CdcConfig getCdcConfig() { - return cdcConfig; - } - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * @param cdcConfig cdcConfig or {@code null} for none - */ - public CloudSQLMigrationConfig setCdcConfig(CdcConfig cdcConfig) { - this.cdcConfig = cdcConfig; - return this; - } - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * @return value or {@code null} for none - */ - public CloudSQLConnectionConfig getCloudSqlConnectionConfig() { - return cloudSqlConnectionConfig; - } - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * @param cloudSqlConnectionConfig cloudSqlConnectionConfig or {@code null} for none - */ - public CloudSQLMigrationConfig setCloudSqlConnectionConfig(CloudSQLConnectionConfig cloudSqlConnectionConfig) { - this.cloudSqlConnectionConfig = cloudSqlConnectionConfig; - return this; - } - - @Override - public CloudSQLMigrationConfig set(String fieldName, Object value) { - return (CloudSQLMigrationConfig) super.set(fieldName, value); - } - - @Override - public CloudSQLMigrationConfig clone() { - return (CloudSQLMigrationConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/DatabaseReport.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/DatabaseReport.java new file mode 100644 index 00000000000..eaa3b0b19ca --- /dev/null +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/DatabaseReport.java @@ -0,0 +1,139 @@ +/* + * 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.v1.model; + +/** + * Aggregated report at the database level. + * + *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 DatabaseReport extends com.google.api.client.json.GenericJson { + + /** + * The name of the database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String database; + + /** + * The discovered intent for the database (what we found and what we planned). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExecutionPlan executionPlan; + + /** + * The actual outcome of the database migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExecutionResult executionResult; + + /** + * A map of table names to their respective reports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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/v1/2.0.0/com/google/api/services/metastore/v1/model/ExecutionPlan.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/ExecutionPlan.java new file mode 100644 index 00000000000..1c2ecc5e9fb --- /dev/null +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/ExecutionPlan.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.v1.model; + +/** + * Represents the migration plan for a specific resource (e.g. Database, Table). + * + *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 ExecutionPlan extends com.google.api.client.json.GenericJson { + + /** + * The action that will be taken for a resource during migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * A map of field names to their respective value diff. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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 ExecutionResult extends com.google.api.client.json.GenericJson { + + /** + * Description of the error if the state is FAILED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Remediation steps for the error if the state is FAILED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remediation; + + /** + * Output only. The state of the migration for a resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Description of the error if the state is FAILED. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Description of the error if the state is FAILED. + * @param errorMessage errorMessage or {@code null} for none + */ + public ExecutionResult setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Remediation steps for the error if the state is FAILED. + * @return value or {@code null} for none + */ + public java.lang.String getRemediation() { + return remediation; + } + + /** + * Remediation steps for the error if the state is FAILED. + * @param remediation remediation or {@code null} for none + */ + public ExecutionResult setRemediation(java.lang.String remediation) { + this.remediation = remediation; + return this; + } + + /** + * Output only. The state of the migration for a resource. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the migration for a resource. + * @param state state or {@code null} for none + */ + public ExecutionResult setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public ExecutionResult set(String fieldName, Object value) { + return (ExecutionResult) super.set(fieldName, value); + } + + @Override + public ExecutionResult clone() { + return (ExecutionResult) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/HiveConfig.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/HiveConfig.java new file mode 100644 index 00000000000..7a3c116f6c9 --- /dev/null +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/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.v1.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.ListThis 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.ListThis 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 MigrationReport extends com.google.api.client.json.GenericJson { + + /** + * Output only. Detailed results for each catalog involved in the migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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.ListThis 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 PartitionReport extends com.google.api.client.json.GenericJson { + + /** + * The 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; + + /** + * The 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. The state of the partition migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * The number of partitions that failed to migrate at the target. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionFailedCount() { + return partitionFailedCount; + } + + /** + * The number of partitions that failed to migrate at the target. + * @param partitionFailedCount partitionFailedCount or {@code null} for none + */ + public PartitionReport setPartitionFailedCount(java.lang.Long partitionFailedCount) { + this.partitionFailedCount = partitionFailedCount; + return this; + } + + /** + * The number of partitions successfully migrated at the target. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionSuccessCount() { + return partitionSuccessCount; + } + + /** + * The number of partitions successfully migrated at the target. + * @param partitionSuccessCount partitionSuccessCount or {@code null} for none + */ + public PartitionReport setPartitionSuccessCount(java.lang.Long partitionSuccessCount) { + this.partitionSuccessCount = partitionSuccessCount; + return this; + } + + /** + * Output only. The state of the partition migration. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the partition migration. + * @param state state or {@code null} for none + */ + public PartitionReport setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public PartitionReport set(String fieldName, Object value) { + return (PartitionReport) super.set(fieldName, value); + } + + @Override + public PartitionReport clone() { + return (PartitionReport) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/StartMigrationRequest.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/StartMigrationRequest.java index e54a89343b7..84219ab7fc8 100644 --- a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/StartMigrationRequest.java +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/StartMigrationRequest.java @@ -37,6 +37,16 @@ public final class StartMigrationRequest extends com.google.api.client.json.Gene @com.google.api.client.util.Key private MigrationExecution migrationExecution; + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String migrationExecutionId; + /** * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request * if it has completed. The server will ignore subsequent requests that provide a duplicate @@ -67,6 +77,29 @@ public StartMigrationRequest setMigrationExecution(MigrationExecution migrationE return this; } + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * @return value or {@code null} for none + */ + public java.lang.String getMigrationExecutionId() { + return migrationExecutionId; + } + + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * @param migrationExecutionId migrationExecutionId or {@code null} for none + */ + public StartMigrationRequest setMigrationExecutionId(java.lang.String migrationExecutionId) { + this.migrationExecutionId = migrationExecutionId; + return this; + } + /** * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request * if it has completed. The server will ignore subsequent requests that provide a duplicate diff --git a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/TableReport.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/TableReport.java new file mode 100644 index 00000000000..c5d7e265282 --- /dev/null +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/TableReport.java @@ -0,0 +1,169 @@ +/* + * 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.v1.model; + +/** + * Aggregated report at the table level. + * + *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 TableReport extends com.google.api.client.json.GenericJson { + + /** + * The discovered intent for the table (what we found and what we planned). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExecutionPlan executionPlan; + + /** + * The actual outcome of the table migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExecutionResult executionResult; + + /** + * The total number of partitions identified at the source during discovery. This is only relevant + * for Hive Partitioned tables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partitionDiscoveredCount; + + /** + * Report containing the results of partition migration for this table. This is only relevant for + * Hive Partitioned tables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PartitionReport partitionReport; + + /** + * The name of the table. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String table; + + /** + * The discovered intent for the table (what we found and what we planned). + * @return value or {@code null} for none + */ + public ExecutionPlan getExecutionPlan() { + return executionPlan; + } + + /** + * The discovered intent for the table (what we found and what we planned). + * @param executionPlan executionPlan or {@code null} for none + */ + public TableReport setExecutionPlan(ExecutionPlan executionPlan) { + this.executionPlan = executionPlan; + return this; + } + + /** + * The actual outcome of the table migration. + * @return value or {@code null} for none + */ + public ExecutionResult getExecutionResult() { + return executionResult; + } + + /** + * The actual outcome of the table migration. + * @param executionResult executionResult or {@code null} for none + */ + public TableReport setExecutionResult(ExecutionResult executionResult) { + this.executionResult = executionResult; + return this; + } + + /** + * The total number of partitions identified at the source during discovery. This is only relevant + * for Hive Partitioned tables. + * @return value or {@code null} for none + */ + public java.lang.Long getPartitionDiscoveredCount() { + return partitionDiscoveredCount; + } + + /** + * The total number of partitions identified at the source during discovery. This is only relevant + * for Hive Partitioned tables. + * @param partitionDiscoveredCount partitionDiscoveredCount or {@code null} for none + */ + public TableReport setPartitionDiscoveredCount(java.lang.Long partitionDiscoveredCount) { + this.partitionDiscoveredCount = partitionDiscoveredCount; + return this; + } + + /** + * Report containing the results of partition migration for this table. This is only relevant for + * Hive Partitioned tables. + * @return value or {@code null} for none + */ + public PartitionReport getPartitionReport() { + return partitionReport; + } + + /** + * Report containing the results of partition migration for this table. This is only relevant for + * Hive Partitioned tables. + * @param partitionReport partitionReport or {@code null} for none + */ + public TableReport setPartitionReport(PartitionReport partitionReport) { + this.partitionReport = partitionReport; + return this; + } + + /** + * The name of the table. + * @return value or {@code null} for none + */ + public java.lang.String getTable() { + return table; + } + + /** + * The name of the table. + * @param table table or {@code null} for none + */ + public TableReport setTable(java.lang.String table) { + this.table = table; + return this; + } + + @Override + public TableReport set(String fieldName, Object value) { + return (TableReport) super.set(fieldName, value); + } + + @Override + public TableReport clone() { + return (TableReport) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/TableSummary.java b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/model/TableSummary.java new file mode 100644 index 00000000000..f72d3e47a48 --- /dev/null +++ b/clients/google-api-services-metastore/v1/2.0.0/com/google/api/services/metastore/v1/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.v1.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.MapThis 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 ValueDiff extends com.google.api.client.json.GenericJson { + + /** + * The value of the field at the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceValue; + + /** + * The value of the field at the target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetValue; + + /** + * The value of the field at the source. + * @return value or {@code null} for none + */ + public java.lang.String getSourceValue() { + return sourceValue; + } + + /** + * The value of the field at the source. + * @param sourceValue sourceValue or {@code null} for none + */ + public ValueDiff setSourceValue(java.lang.String sourceValue) { + this.sourceValue = sourceValue; + return this; + } + + /** + * The value of the field at the target. + * @return value or {@code null} for none + */ + public java.lang.String getTargetValue() { + return targetValue; + } + + /** + * The value of the field at the target. + * @param targetValue targetValue or {@code null} for none + */ + public ValueDiff setTargetValue(java.lang.String targetValue) { + this.targetValue = targetValue; + return this; + } + + @Override + public ValueDiff set(String fieldName, Object value) { + return (ValueDiff) super.set(fieldName, value); + } + + @Override + public ValueDiff clone() { + return (ValueDiff) super.clone(); + } + +} diff --git a/clients/google-api-services-metastore/v1/2.0.0/pom.xml b/clients/google-api-services-metastore/v1/2.0.0/pom.xml index dad21039cc5..7bf0ab2da7c 100644 --- a/clients/google-api-services-metastore/v1/2.0.0/pom.xml +++ b/clients/google-api-services-metastore/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@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 CdcConfig extends com.google.api.client.json.GenericJson { - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bucket; - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String password; - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reverseProxySubnet; - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rootPath; - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetIpRange; - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String username; - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vpcNetwork; - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * @return value or {@code null} for none - */ - public java.lang.String getBucket() { - return bucket; - } - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * @param bucket bucket or {@code null} for none - */ - public CdcConfig setBucket(java.lang.String bucket) { - this.bucket = bucket; - return this; - } - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * @return value or {@code null} for none - */ - public java.lang.String getPassword() { - return password; - } - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * @param password password or {@code null} for none - */ - public CdcConfig setPassword(java.lang.String password) { - this.password = password; - return this; - } - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getReverseProxySubnet() { - return reverseProxySubnet; - } - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param reverseProxySubnet reverseProxySubnet or {@code null} for none - */ - public CdcConfig setReverseProxySubnet(java.lang.String reverseProxySubnet) { - this.reverseProxySubnet = reverseProxySubnet; - return this; - } - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * @return value or {@code null} for none - */ - public java.lang.String getRootPath() { - return rootPath; - } - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * @param rootPath rootPath or {@code null} for none - */ - public CdcConfig setRootPath(java.lang.String rootPath) { - this.rootPath = rootPath; - return this; - } - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetIpRange() { - return subnetIpRange; - } - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * @param subnetIpRange subnetIpRange or {@code null} for none - */ - public CdcConfig setSubnetIpRange(java.lang.String subnetIpRange) { - this.subnetIpRange = subnetIpRange; - return this; - } - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * @return value or {@code null} for none - */ - public java.lang.String getUsername() { - return username; - } - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * @param username username or {@code null} for none - */ - public CdcConfig setUsername(java.lang.String username) { - this.username = username; - return this; - } - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * @return value or {@code null} for none - */ - public java.lang.String getVpcNetwork() { - return vpcNetwork; - } - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * @param vpcNetwork vpcNetwork or {@code null} for none - */ - public CdcConfig setVpcNetwork(java.lang.String vpcNetwork) { - this.vpcNetwork = vpcNetwork; - return this; - } - - @Override - public CdcConfig set(String fieldName, Object value) { - return (CdcConfig) super.set(fieldName, value); - } - - @Override - public CdcConfig clone() { - return (CdcConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CloudSQLConnectionConfig.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CloudSQLConnectionConfig.java deleted file mode 100644 index 16021f2cf87..00000000000 --- a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CloudSQLConnectionConfig.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * 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 information to establish customer database connection before the cutover phase of - * migration - * - *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 CloudSQLConnectionConfig extends com.google.api.client.json.GenericJson { - - /** - * Required. The hive database name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hiveDatabaseName; - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceConnectionName; - - /** - * Required. The private IP address of the Cloud SQL instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natSubnet; - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String password; - - /** - * Required. The network port of the database. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxySubnet; - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String username; - - /** - * Required. The hive database name. - * @return value or {@code null} for none - */ - public java.lang.String getHiveDatabaseName() { - return hiveDatabaseName; - } - - /** - * Required. The hive database name. - * @param hiveDatabaseName hiveDatabaseName or {@code null} for none - */ - public CloudSQLConnectionConfig setHiveDatabaseName(java.lang.String hiveDatabaseName) { - this.hiveDatabaseName = hiveDatabaseName; - return this; - } - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * @return value or {@code null} for none - */ - public java.lang.String getInstanceConnectionName() { - return instanceConnectionName; - } - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * @param instanceConnectionName instanceConnectionName or {@code null} for none - */ - public CloudSQLConnectionConfig setInstanceConnectionName(java.lang.String instanceConnectionName) { - this.instanceConnectionName = instanceConnectionName; - return this; - } - - /** - * Required. The private IP address of the Cloud SQL instance. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * Required. The private IP address of the Cloud SQL instance. - * @param ipAddress ipAddress or {@code null} for none - */ - public CloudSQLConnectionConfig setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getNatSubnet() { - return natSubnet; - } - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param natSubnet natSubnet or {@code null} for none - */ - public CloudSQLConnectionConfig setNatSubnet(java.lang.String natSubnet) { - this.natSubnet = natSubnet; - return this; - } - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * @return value or {@code null} for none - */ - public java.lang.String getPassword() { - return password; - } - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * @param password password or {@code null} for none - */ - public CloudSQLConnectionConfig setPassword(java.lang.String password) { - this.password = password; - return this; - } - - /** - * Required. The network port of the database. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * Required. The network port of the database. - * @param port port or {@code null} for none - */ - public CloudSQLConnectionConfig setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getProxySubnet() { - return proxySubnet; - } - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param proxySubnet proxySubnet or {@code null} for none - */ - public CloudSQLConnectionConfig setProxySubnet(java.lang.String proxySubnet) { - this.proxySubnet = proxySubnet; - return this; - } - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * @return value or {@code null} for none - */ - public java.lang.String getUsername() { - return username; - } - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * @param username username or {@code null} for none - */ - public CloudSQLConnectionConfig setUsername(java.lang.String username) { - this.username = username; - return this; - } - - @Override - public CloudSQLConnectionConfig set(String fieldName, Object value) { - return (CloudSQLConnectionConfig) super.set(fieldName, value); - } - - @Override - public CloudSQLConnectionConfig clone() { - return (CloudSQLConnectionConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CloudSQLMigrationConfig.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CloudSQLMigrationConfig.java deleted file mode 100644 index d97e859dd12..00000000000 --- a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/CloudSQLMigrationConfig.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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; - -/** - * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore - * migration instead. Configuration information for migrating from self-managed hive metastore on - * Google Cloud using Cloud SQL as the backend database to Dataproc 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 CloudSQLMigrationConfig extends com.google.api.client.json.GenericJson { - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CdcConfig cdcConfig; - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CloudSQLConnectionConfig cloudSqlConnectionConfig; - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * @return value or {@code null} for none - */ - public CdcConfig getCdcConfig() { - return cdcConfig; - } - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * @param cdcConfig cdcConfig or {@code null} for none - */ - public CloudSQLMigrationConfig setCdcConfig(CdcConfig cdcConfig) { - this.cdcConfig = cdcConfig; - return this; - } - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * @return value or {@code null} for none - */ - public CloudSQLConnectionConfig getCloudSqlConnectionConfig() { - return cloudSqlConnectionConfig; - } - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * @param cloudSqlConnectionConfig cloudSqlConnectionConfig or {@code null} for none - */ - public CloudSQLMigrationConfig setCloudSqlConnectionConfig(CloudSQLConnectionConfig cloudSqlConnectionConfig) { - this.cloudSqlConnectionConfig = cloudSqlConnectionConfig; - return this; - } - - @Override - public CloudSQLMigrationConfig set(String fieldName, Object value) { - return (CloudSQLMigrationConfig) super.set(fieldName, value); - } - - @Override - public CloudSQLMigrationConfig clone() { - return (CloudSQLMigrationConfig) 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 44eb4cbcb48..52ae3031af4 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 @@ -37,15 +37,6 @@ public final class MigrationExecution extends com.google.api.client.json.Generic @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 - * metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CloudSQLMigrationConfig cloudSqlMigrationConfig; - /** * Output only. The time when the migration execution was started. * The value may be {@code null}. @@ -108,27 +99,6 @@ public MigrationExecution setBiglakeMetastoreMigrationConfig(BigLakeMetastoreMig 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 - * metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. - * @return value or {@code null} for none - */ - public CloudSQLMigrationConfig getCloudSqlMigrationConfig() { - return cloudSqlMigrationConfig; - } - - /** - * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore - * migration instead. Configuration information specific to migrating from self-managed hive - * metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. - * @param cloudSqlMigrationConfig cloudSqlMigrationConfig or {@code null} for none - */ - public MigrationExecution setCloudSqlMigrationConfig(CloudSQLMigrationConfig cloudSqlMigrationConfig) { - this.cloudSqlMigrationConfig = cloudSqlMigrationConfig; - return this; - } - /** * Output only. The time when the migration execution was started. * @return value or {@code null} for none diff --git a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/StartMigrationRequest.java b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/StartMigrationRequest.java index d8bec623a60..3261a66434f 100644 --- a/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/StartMigrationRequest.java +++ b/clients/google-api-services-metastore/v1alpha/2.0.0/com/google/api/services/metastore/v1alpha/model/StartMigrationRequest.java @@ -37,6 +37,16 @@ public final class StartMigrationRequest extends com.google.api.client.json.Gene @com.google.api.client.util.Key private MigrationExecution migrationExecution; + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String migrationExecutionId; + /** * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request * if it has completed. The server will ignore subsequent requests that provide a duplicate @@ -67,6 +77,29 @@ public StartMigrationRequest setMigrationExecution(MigrationExecution migrationE return this; } + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * @return value or {@code null} for none + */ + public java.lang.String getMigrationExecutionId() { + return migrationExecutionId; + } + + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * @param migrationExecutionId migrationExecutionId or {@code null} for none + */ + public StartMigrationRequest setMigrationExecutionId(java.lang.String migrationExecutionId) { + this.migrationExecutionId = migrationExecutionId; + return this; + } + /** * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request * if it has completed. The server will ignore subsequent requests that provide a duplicate 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 41bb1b6efce..d90e3327634 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 @@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 CdcConfig extends com.google.api.client.json.GenericJson { - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bucket; - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String password; - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reverseProxySubnet; - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rootPath; - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetIpRange; - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String username; - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vpcNetwork; - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * @return value or {@code null} for none - */ - public java.lang.String getBucket() { - return bucket; - } - - /** - * Optional. The bucket to write the intermediate stream event data in. The bucket name must be - * without any prefix like "gs://". See the bucket naming requirements - * (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the - * Artifacts Cloud Storage bucket will be used. - * @param bucket bucket or {@code null} for none - */ - public CdcConfig setBucket(java.lang.String bucket) { - this.bucket = bucket; - return this; - } - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * @return value or {@code null} for none - */ - public java.lang.String getPassword() { - return password; - } - - /** - * Required. Input only. The password for the user that Datastream service should use for the - * MySQL connection. This field is not returned on request. - * @param password password or {@code null} for none - */ - public CdcConfig setPassword(java.lang.String password) { - this.password = password; - return this; - } - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getReverseProxySubnet() { - return reverseProxySubnet; - } - - /** - * Required. The URL of the subnetwork resource to create the VM instance hosting the reverse - * proxy in. More context in https://cloud.google.com/datastream/docs/private- - * connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the - * request that Datastream will peer to and should be in the same region as Datastream, in the - * following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param reverseProxySubnet reverseProxySubnet or {@code null} for none - */ - public CdcConfig setReverseProxySubnet(java.lang.String reverseProxySubnet) { - this.reverseProxySubnet = reverseProxySubnet; - return this; - } - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * @return value or {@code null} for none - */ - public java.lang.String getRootPath() { - return rootPath; - } - - /** - * Optional. The root path inside the Cloud Storage bucket. The stream event data will be written - * to this path. The default value is /migration. - * @param rootPath rootPath or {@code null} for none - */ - public CdcConfig setRootPath(java.lang.String rootPath) { - this.rootPath = rootPath; - return this; - } - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetIpRange() { - return subnetIpRange; - } - - /** - * Required. A /29 CIDR IP range for peering with datastream. - * @param subnetIpRange subnetIpRange or {@code null} for none - */ - public CdcConfig setSubnetIpRange(java.lang.String subnetIpRange) { - this.subnetIpRange = subnetIpRange; - return this; - } - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * @return value or {@code null} for none - */ - public java.lang.String getUsername() { - return username; - } - - /** - * Required. The username that the Datastream service should use for the MySQL connection. - * @param username username or {@code null} for none - */ - public CdcConfig setUsername(java.lang.String username) { - this.username = username; - return this; - } - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * @return value or {@code null} for none - */ - public java.lang.String getVpcNetwork() { - return vpcNetwork; - } - - /** - * Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC - * network that Datastream will peer to, in the following format: - * projects/{project_id}/locations/global/networks/{network_id}. More context in - * https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity - * @param vpcNetwork vpcNetwork or {@code null} for none - */ - public CdcConfig setVpcNetwork(java.lang.String vpcNetwork) { - this.vpcNetwork = vpcNetwork; - return this; - } - - @Override - public CdcConfig set(String fieldName, Object value) { - return (CdcConfig) super.set(fieldName, value); - } - - @Override - public CdcConfig clone() { - return (CdcConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CloudSQLConnectionConfig.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CloudSQLConnectionConfig.java deleted file mode 100644 index 88347b84520..00000000000 --- a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CloudSQLConnectionConfig.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * 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 information to establish customer database connection before the cutover phase of - * migration - * - *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 CloudSQLConnectionConfig extends com.google.api.client.json.GenericJson { - - /** - * Required. The hive database name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hiveDatabaseName; - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceConnectionName; - - /** - * Required. The private IP address of the Cloud SQL instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natSubnet; - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String password; - - /** - * Required. The network port of the database. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxySubnet; - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String username; - - /** - * Required. The hive database name. - * @return value or {@code null} for none - */ - public java.lang.String getHiveDatabaseName() { - return hiveDatabaseName; - } - - /** - * Required. The hive database name. - * @param hiveDatabaseName hiveDatabaseName or {@code null} for none - */ - public CloudSQLConnectionConfig setHiveDatabaseName(java.lang.String hiveDatabaseName) { - this.hiveDatabaseName = hiveDatabaseName; - return this; - } - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * @return value or {@code null} for none - */ - public java.lang.String getInstanceConnectionName() { - return instanceConnectionName; - } - - /** - * Required. Cloud SQL database connection name (project_id:region:instance_name) - * @param instanceConnectionName instanceConnectionName or {@code null} for none - */ - public CloudSQLConnectionConfig setInstanceConnectionName(java.lang.String instanceConnectionName) { - this.instanceConnectionName = instanceConnectionName; - return this; - } - - /** - * Required. The private IP address of the Cloud SQL instance. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * Required. The private IP address of the Cloud SQL instance. - * @param ipAddress ipAddress or {@code null} for none - */ - public CloudSQLConnectionConfig setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getNatSubnet() { - return natSubnet; - } - - /** - * Required. The relative resource name of the subnetwork to be used for Private Service Connect. - * Note that this cannot be a regular subnet and is used only for NAT. - * (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used - * to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside - * in a network through which the Cloud SQL instance is accessible. The resource name should be in - * the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param natSubnet natSubnet or {@code null} for none - */ - public CloudSQLConnectionConfig setNatSubnet(java.lang.String natSubnet) { - this.natSubnet = natSubnet; - return this; - } - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * @return value or {@code null} for none - */ - public java.lang.String getPassword() { - return password; - } - - /** - * Required. Input only. The password for the user that Dataproc Metastore service will be using - * to connect to the database. This field is not returned on request. - * @param password password or {@code null} for none - */ - public CloudSQLConnectionConfig setPassword(java.lang.String password) { - this.password = password; - return this; - } - - /** - * Required. The network port of the database. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * Required. The network port of the database. - * @param port port or {@code null} for none - */ - public CloudSQLConnectionConfig setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @return value or {@code null} for none - */ - public java.lang.String getProxySubnet() { - return proxySubnet; - } - - /** - * Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. - * The subnetwork should reside in a network through which the Cloud SQL instance is accessible. - * The resource name should be in the format, - * projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} - * @param proxySubnet proxySubnet or {@code null} for none - */ - public CloudSQLConnectionConfig setProxySubnet(java.lang.String proxySubnet) { - this.proxySubnet = proxySubnet; - return this; - } - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * @return value or {@code null} for none - */ - public java.lang.String getUsername() { - return username; - } - - /** - * Required. The username that Dataproc Metastore service will use to connect to the database. - * @param username username or {@code null} for none - */ - public CloudSQLConnectionConfig setUsername(java.lang.String username) { - this.username = username; - return this; - } - - @Override - public CloudSQLConnectionConfig set(String fieldName, Object value) { - return (CloudSQLConnectionConfig) super.set(fieldName, value); - } - - @Override - public CloudSQLConnectionConfig clone() { - return (CloudSQLConnectionConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CloudSQLMigrationConfig.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CloudSQLMigrationConfig.java deleted file mode 100644 index e47d1fba637..00000000000 --- a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/CloudSQLMigrationConfig.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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; - -/** - * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore - * migration instead. Configuration information for migrating from self-managed hive metastore on - * Google Cloud using Cloud SQL as the backend database to Dataproc 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 CloudSQLMigrationConfig extends com.google.api.client.json.GenericJson { - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CdcConfig cdcConfig; - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CloudSQLConnectionConfig cloudSqlConnectionConfig; - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * @return value or {@code null} for none - */ - public CdcConfig getCdcConfig() { - return cdcConfig; - } - - /** - * Required. Configuration information to start the Change Data Capture (CDC) streams from - * customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to - * using its backend database after the cutover phase of migration. - * @param cdcConfig cdcConfig or {@code null} for none - */ - public CloudSQLMigrationConfig setCdcConfig(CdcConfig cdcConfig) { - this.cdcConfig = cdcConfig; - return this; - } - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * @return value or {@code null} for none - */ - public CloudSQLConnectionConfig getCloudSqlConnectionConfig() { - return cloudSqlConnectionConfig; - } - - /** - * Required. Configuration information to establish customer database connection before the - * cutover phase of migration - * @param cloudSqlConnectionConfig cloudSqlConnectionConfig or {@code null} for none - */ - public CloudSQLMigrationConfig setCloudSqlConnectionConfig(CloudSQLConnectionConfig cloudSqlConnectionConfig) { - this.cloudSqlConnectionConfig = cloudSqlConnectionConfig; - return this; - } - - @Override - public CloudSQLMigrationConfig set(String fieldName, Object value) { - return (CloudSQLMigrationConfig) super.set(fieldName, value); - } - - @Override - public CloudSQLMigrationConfig clone() { - return (CloudSQLMigrationConfig) 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 57536c7a910..6ba8e62efef 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 @@ -37,15 +37,6 @@ public final class MigrationExecution extends com.google.api.client.json.Generic @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 - * metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CloudSQLMigrationConfig cloudSqlMigrationConfig; - /** * Output only. The time when the migration execution was started. * The value may be {@code null}. @@ -108,27 +99,6 @@ public MigrationExecution setBiglakeMetastoreMigrationConfig(BigLakeMetastoreMig 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 - * metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. - * @return value or {@code null} for none - */ - public CloudSQLMigrationConfig getCloudSqlMigrationConfig() { - return cloudSqlMigrationConfig; - } - - /** - * Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore - * migration instead. Configuration information specific to migrating from self-managed hive - * metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. - * @param cloudSqlMigrationConfig cloudSqlMigrationConfig or {@code null} for none - */ - public MigrationExecution setCloudSqlMigrationConfig(CloudSQLMigrationConfig cloudSqlMigrationConfig) { - this.cloudSqlMigrationConfig = cloudSqlMigrationConfig; - return this; - } - /** * Output only. The time when the migration execution was started. * @return value or {@code null} for none diff --git a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/StartMigrationRequest.java b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/StartMigrationRequest.java index dcfcbf11c6d..22f8acae02a 100644 --- a/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/StartMigrationRequest.java +++ b/clients/google-api-services-metastore/v1beta/2.0.0/com/google/api/services/metastore/v1beta/model/StartMigrationRequest.java @@ -37,6 +37,16 @@ public final class StartMigrationRequest extends com.google.api.client.json.Gene @com.google.api.client.util.Key private MigrationExecution migrationExecution; + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String migrationExecutionId; + /** * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request * if it has completed. The server will ignore subsequent requests that provide a duplicate @@ -67,6 +77,29 @@ public StartMigrationRequest setMigrationExecution(MigrationExecution migrationE return this; } + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * @return value or {@code null} for none + */ + public java.lang.String getMigrationExecutionId() { + return migrationExecutionId; + } + + /** + * Optional. The ID to use for the migration execution, which will become the final component of + * the migration execution's resource name. If not specified, a UUID will be generated.This value + * must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or + * number, and valid characters are a-z0-9-. + * @param migrationExecutionId migrationExecutionId or {@code null} for none + */ + public StartMigrationRequest setMigrationExecutionId(java.lang.String migrationExecutionId) { + this.migrationExecutionId = migrationExecutionId; + return this; + } + /** * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request * if it has completed. The server will ignore subsequent requests that provide a duplicate 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 fc6a1cbae47..105ce78b4a8 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 @@