Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: Added the Backup resource and Backup resource GetIamPolicy/SetI…
Browse files Browse the repository at this point in the history
…amPolicy to V1 feat: Added the RestoreService method to V1

Promoted additional Dataproc Metastore metadata management methods to V1

PiperOrigin-RevId: 391108398

Source-Link: googleapis/googleapis@b6901e7

Source-Link: googleapis/googleapis-gen@020e77c
  • Loading branch information
gcf-owl-bot[bot] committed Aug 17, 2021
1 parent 7dba77d commit 6f0cf99
Show file tree
Hide file tree
Showing 271 changed files with 46,897 additions and 51,365 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.metastore.v1;

import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListBackupsPagedResponse;
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListMetadataImportsPagedResponse;
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListServicesPagedResponse;

Expand All @@ -29,6 +30,7 @@
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.metastore.v1.stub.DataprocMetastoreStubSettings;
Expand All @@ -45,9 +47,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (metastore.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (metastore.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -164,6 +166,50 @@ public UnaryCallSettings<ExportMetadataRequest, Operation> exportMetadataSetting
return ((DataprocMetastoreStubSettings) getStubSettings()).exportMetadataOperationSettings();
}

/** Returns the object with the settings used for calls to restoreService. */
public UnaryCallSettings<RestoreServiceRequest, Operation> restoreServiceSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).restoreServiceSettings();
}

/** Returns the object with the settings used for calls to restoreService. */
public OperationCallSettings<RestoreServiceRequest, Restore, OperationMetadata>
restoreServiceOperationSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).restoreServiceOperationSettings();
}

/** Returns the object with the settings used for calls to listBackups. */
public PagedCallSettings<ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
listBackupsSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).listBackupsSettings();
}

/** Returns the object with the settings used for calls to getBackup. */
public UnaryCallSettings<GetBackupRequest, Backup> getBackupSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).getBackupSettings();
}

/** Returns the object with the settings used for calls to createBackup. */
public UnaryCallSettings<CreateBackupRequest, Operation> createBackupSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).createBackupSettings();
}

/** Returns the object with the settings used for calls to createBackup. */
public OperationCallSettings<CreateBackupRequest, Backup, OperationMetadata>
createBackupOperationSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).createBackupOperationSettings();
}

/** Returns the object with the settings used for calls to deleteBackup. */
public UnaryCallSettings<DeleteBackupRequest, Operation> deleteBackupSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).deleteBackupSettings();
}

/** Returns the object with the settings used for calls to deleteBackup. */
public OperationCallSettings<DeleteBackupRequest, Empty, OperationMetadata>
deleteBackupOperationSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).deleteBackupOperationSettings();
}

public static final DataprocMetastoreSettings create(DataprocMetastoreStubSettings stub)
throws IOException {
return new DataprocMetastoreSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -308,8 +354,7 @@ public UnaryCallSettings.Builder<DeleteServiceRequest, Operation> deleteServiceS

/** Returns the builder for the settings used for calls to listMetadataImports. */
public PagedCallSettings.Builder<
ListMetadataImportsRequest,
ListMetadataImportsResponse,
ListMetadataImportsRequest, ListMetadataImportsResponse,
ListMetadataImportsPagedResponse>
listMetadataImportsSettings() {
return getStubSettingsBuilder().listMetadataImportsSettings();
Expand Down Expand Up @@ -358,6 +403,51 @@ public UnaryCallSettings.Builder<ExportMetadataRequest, Operation> exportMetadat
return getStubSettingsBuilder().exportMetadataOperationSettings();
}

/** Returns the builder for the settings used for calls to restoreService. */
public UnaryCallSettings.Builder<RestoreServiceRequest, Operation> restoreServiceSettings() {
return getStubSettingsBuilder().restoreServiceSettings();
}

/** Returns the builder for the settings used for calls to restoreService. */
public OperationCallSettings.Builder<RestoreServiceRequest, Restore, OperationMetadata>
restoreServiceOperationSettings() {
return getStubSettingsBuilder().restoreServiceOperationSettings();
}

/** Returns the builder for the settings used for calls to listBackups. */
public PagedCallSettings.Builder<
ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
listBackupsSettings() {
return getStubSettingsBuilder().listBackupsSettings();
}

/** Returns the builder for the settings used for calls to getBackup. */
public UnaryCallSettings.Builder<GetBackupRequest, Backup> getBackupSettings() {
return getStubSettingsBuilder().getBackupSettings();
}

/** Returns the builder for the settings used for calls to createBackup. */
public UnaryCallSettings.Builder<CreateBackupRequest, Operation> createBackupSettings() {
return getStubSettingsBuilder().createBackupSettings();
}

/** Returns the builder for the settings used for calls to createBackup. */
public OperationCallSettings.Builder<CreateBackupRequest, Backup, OperationMetadata>
createBackupOperationSettings() {
return getStubSettingsBuilder().createBackupOperationSettings();
}

/** Returns the builder for the settings used for calls to deleteBackup. */
public UnaryCallSettings.Builder<DeleteBackupRequest, Operation> deleteBackupSettings() {
return getStubSettingsBuilder().deleteBackupSettings();
}

/** Returns the builder for the settings used for calls to deleteBackup. */
public OperationCallSettings.Builder<DeleteBackupRequest, Empty, OperationMetadata>
deleteBackupOperationSettings() {
return getStubSettingsBuilder().deleteBackupOperationSettings();
}

@Override
public DataprocMetastoreSettings build() throws IOException {
return new DataprocMetastoreSettings(this);
Expand Down
Expand Up @@ -10,30 +10,45 @@
"grpc": {
"libraryClient": "DataprocMetastoreClient",
"rpcs": {
"CreateBackup": {
"methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"]
},
"CreateMetadataImport": {
"methods": ["createMetadataImportAsync", "createMetadataImportAsync", "createMetadataImportAsync", "createMetadataImportOperationCallable", "createMetadataImportCallable"]
},
"CreateService": {
"methods": ["createServiceAsync", "createServiceAsync", "createServiceAsync", "createServiceOperationCallable", "createServiceCallable"]
},
"DeleteBackup": {
"methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"]
},
"DeleteService": {
"methods": ["deleteServiceAsync", "deleteServiceAsync", "deleteServiceAsync", "deleteServiceOperationCallable", "deleteServiceCallable"]
},
"ExportMetadata": {
"methods": ["exportMetadataAsync", "exportMetadataOperationCallable", "exportMetadataCallable"]
},
"GetBackup": {
"methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"]
},
"GetMetadataImport": {
"methods": ["getMetadataImport", "getMetadataImport", "getMetadataImport", "getMetadataImportCallable"]
},
"GetService": {
"methods": ["getService", "getService", "getService", "getServiceCallable"]
},
"ListBackups": {
"methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"]
},
"ListMetadataImports": {
"methods": ["listMetadataImports", "listMetadataImports", "listMetadataImports", "listMetadataImportsPagedCallable", "listMetadataImportsCallable"]
},
"ListServices": {
"methods": ["listServices", "listServices", "listServices", "listServicesPagedCallable", "listServicesCallable"]
},
"RestoreService": {
"methods": ["restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceOperationCallable", "restoreServiceCallable"]
},
"UpdateMetadataImport": {
"methods": ["updateMetadataImportAsync", "updateMetadataImportAsync", "updateMetadataImportOperationCallable", "updateMetadataImportCallable"]
},
Expand Down
Expand Up @@ -20,19 +20,19 @@
* <p>======================= DataprocMetastoreClient =======================
*
* <p>Service Description: Configures and manages metastore services. Metastore services are fully
* managed, highly available, auto-scaled, auto-healing, OSS-native deployments of technical
* metadata management software. Each metastore service exposes a network endpoint through which
* metadata queries are served. Metadata queries can originate from a variety of sources, including
* Apache Hive, Apache Presto, and Apache Spark.
* managed, highly available, autoscaled, autohealing, OSS-native deployments of technical metadata
* management software. Each metastore service exposes a network endpoint through which metadata
* queries are served. Metadata queries can originate from a variety of sources, including Apache
* Hive, Apache Presto, and Apache Spark.
*
* <p>The Dataproc Metastore API defines the following resource model:
*
* <ul>
* <li>The service works with a collection of Google Cloud projects, named: `/projects/&#42;`
* <li>Each project has a collection of available locations, named: `/locations/&#42;` (a location
* must refer to a Google Cloud `region`)
* <li>Each location has a collection of services, named: `/services/&#42;`
* <li>Dataproc Metastore services are resources with names of the form:
* <li> The service works with a collection of Google Cloud projects, named: `/projects/&#42;`
* <li> Each project has a collection of available locations, named: `/locations/&#42;` (a
* location must refer to a Google Cloud `region`)
* <li> Each location has a collection of services, named: `/services/&#42;`
* <li> Dataproc Metastore services are resources with names of the form:
* </ul>
*
* <p>`/projects/{project_number}/locations/{location_id}/services/{service_id}`.
Expand Down
Expand Up @@ -16,25 +16,34 @@

package com.google.cloud.metastore.v1.stub;

import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListBackupsPagedResponse;
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListMetadataImportsPagedResponse;
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListServicesPagedResponse;

import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.metastore.v1.Backup;
import com.google.cloud.metastore.v1.CreateBackupRequest;
import com.google.cloud.metastore.v1.CreateMetadataImportRequest;
import com.google.cloud.metastore.v1.CreateServiceRequest;
import com.google.cloud.metastore.v1.DeleteBackupRequest;
import com.google.cloud.metastore.v1.DeleteServiceRequest;
import com.google.cloud.metastore.v1.ExportMetadataRequest;
import com.google.cloud.metastore.v1.GetBackupRequest;
import com.google.cloud.metastore.v1.GetMetadataImportRequest;
import com.google.cloud.metastore.v1.GetServiceRequest;
import com.google.cloud.metastore.v1.ListBackupsRequest;
import com.google.cloud.metastore.v1.ListBackupsResponse;
import com.google.cloud.metastore.v1.ListMetadataImportsRequest;
import com.google.cloud.metastore.v1.ListMetadataImportsResponse;
import com.google.cloud.metastore.v1.ListServicesRequest;
import com.google.cloud.metastore.v1.ListServicesResponse;
import com.google.cloud.metastore.v1.MetadataExport;
import com.google.cloud.metastore.v1.MetadataImport;
import com.google.cloud.metastore.v1.OperationMetadata;
import com.google.cloud.metastore.v1.Restore;
import com.google.cloud.metastore.v1.RestoreServiceRequest;
import com.google.cloud.metastore.v1.Service;
import com.google.cloud.metastore.v1.UpdateMetadataImportRequest;
import com.google.cloud.metastore.v1.UpdateServiceRequest;
Expand Down Expand Up @@ -138,6 +147,45 @@ public UnaryCallable<ExportMetadataRequest, Operation> exportMetadataCallable()
throw new UnsupportedOperationException("Not implemented: exportMetadataCallable()");
}

public OperationCallable<RestoreServiceRequest, Restore, OperationMetadata>
restoreServiceOperationCallable() {
throw new UnsupportedOperationException("Not implemented: restoreServiceOperationCallable()");
}

public UnaryCallable<RestoreServiceRequest, Operation> restoreServiceCallable() {
throw new UnsupportedOperationException("Not implemented: restoreServiceCallable()");
}

public UnaryCallable<ListBackupsRequest, ListBackupsPagedResponse> listBackupsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()");
}

public UnaryCallable<ListBackupsRequest, ListBackupsResponse> listBackupsCallable() {
throw new UnsupportedOperationException("Not implemented: listBackupsCallable()");
}

public UnaryCallable<GetBackupRequest, Backup> getBackupCallable() {
throw new UnsupportedOperationException("Not implemented: getBackupCallable()");
}

public OperationCallable<CreateBackupRequest, Backup, OperationMetadata>
createBackupOperationCallable() {
throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()");
}

public UnaryCallable<CreateBackupRequest, Operation> createBackupCallable() {
throw new UnsupportedOperationException("Not implemented: createBackupCallable()");
}

public OperationCallable<DeleteBackupRequest, Empty, OperationMetadata>
deleteBackupOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteBackupOperationCallable()");
}

public UnaryCallable<DeleteBackupRequest, Operation> deleteBackupCallable() {
throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()");
}

@Override
public abstract void close();
}

0 comments on commit 6f0cf99

Please sign in to comment.