Skip to content

Commit

Permalink
feat: [metastore] added RemoveIamPolicy API (#8922)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

feat: added QueryMetadata API
feat: added MoveTableToDatabase API
feat: added AlterMetadataResourceLocation API

PiperOrigin-RevId: 496501326

Source-Link: https://togithub.com/googleapis/googleapis/commit/eb1941a08d0cead5c4c6840eae3a59c6b3d7d371

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/a66b1956eae21e8c9402aa3bad958ca5ce227e46
Copy-Tag: eyJwIjoiamF2YS1kYXRhcHJvYy1tZXRhc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6ImE2NmIxOTU2ZWFlMjFlOGM5NDAyYWEzYmFkOTU4Y2E1Y2UyMjdlNDYifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Dec 20, 2022
1 parent a8a49a7 commit 84d9aa0
Show file tree
Hide file tree
Showing 88 changed files with 18,841 additions and 777 deletions.
6 changes: 3 additions & 3 deletions java-dataproc-metastore/README.md
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dataproc-metastore</artifactId>
<version>2.7.0</version>
<version>2.8.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.7.0'
implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.8.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.7.0"
libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.8.0"
```

## Authentication
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -213,6 +213,53 @@ public UnaryCallSettings<DeleteBackupRequest, Operation> deleteBackupSettings()
return ((DataprocMetastoreStubSettings) getStubSettings()).deleteBackupOperationSettings();
}

/** Returns the object with the settings used for calls to removeIamPolicy. */
public UnaryCallSettings<RemoveIamPolicyRequest, RemoveIamPolicyResponse>
removeIamPolicySettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).removeIamPolicySettings();
}

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

/** Returns the object with the settings used for calls to queryMetadata. */
public OperationCallSettings<QueryMetadataRequest, QueryMetadataResponse, OperationMetadata>
queryMetadataOperationSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings()).queryMetadataOperationSettings();
}

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

/** Returns the object with the settings used for calls to moveTableToDatabase. */
public OperationCallSettings<
MoveTableToDatabaseRequest, MoveTableToDatabaseResponse, OperationMetadata>
moveTableToDatabaseOperationSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings())
.moveTableToDatabaseOperationSettings();
}

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

/** Returns the object with the settings used for calls to alterMetadataResourceLocation. */
public OperationCallSettings<
AlterMetadataResourceLocationRequest,
AlterMetadataResourceLocationResponse,
OperationMetadata>
alterMetadataResourceLocationOperationSettings() {
return ((DataprocMetastoreStubSettings) getStubSettings())
.alterMetadataResourceLocationOperationSettings();
}

public static final DataprocMetastoreSettings create(DataprocMetastoreStubSettings stub)
throws IOException {
return new DataprocMetastoreSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -470,6 +517,52 @@ public UnaryCallSettings.Builder<DeleteBackupRequest, Operation> deleteBackupSet
return getStubSettingsBuilder().deleteBackupOperationSettings();
}

/** Returns the builder for the settings used for calls to removeIamPolicy. */
public UnaryCallSettings.Builder<RemoveIamPolicyRequest, RemoveIamPolicyResponse>
removeIamPolicySettings() {
return getStubSettingsBuilder().removeIamPolicySettings();
}

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

/** Returns the builder for the settings used for calls to queryMetadata. */
public OperationCallSettings.Builder<
QueryMetadataRequest, QueryMetadataResponse, OperationMetadata>
queryMetadataOperationSettings() {
return getStubSettingsBuilder().queryMetadataOperationSettings();
}

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

/** Returns the builder for the settings used for calls to moveTableToDatabase. */
public OperationCallSettings.Builder<
MoveTableToDatabaseRequest, MoveTableToDatabaseResponse, OperationMetadata>
moveTableToDatabaseOperationSettings() {
return getStubSettingsBuilder().moveTableToDatabaseOperationSettings();
}

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

/** Returns the builder for the settings used for calls to alterMetadataResourceLocation. */
public OperationCallSettings.Builder<
AlterMetadataResourceLocationRequest,
AlterMetadataResourceLocationResponse,
OperationMetadata>
alterMetadataResourceLocationOperationSettings() {
return getStubSettingsBuilder().alterMetadataResourceLocationOperationSettings();
}

@Override
public DataprocMetastoreSettings build() throws IOException {
return new DataprocMetastoreSettings(this);
Expand Down
Expand Up @@ -10,6 +10,9 @@
"grpc": {
"libraryClient": "DataprocMetastoreClient",
"rpcs": {
"AlterMetadataResourceLocation": {
"methods": ["alterMetadataResourceLocationAsync", "alterMetadataResourceLocationOperationCallable", "alterMetadataResourceLocationCallable"]
},
"CreateBackup": {
"methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"]
},
Expand Down Expand Up @@ -46,6 +49,15 @@
"ListServices": {
"methods": ["listServices", "listServices", "listServices", "listServicesPagedCallable", "listServicesCallable"]
},
"MoveTableToDatabase": {
"methods": ["moveTableToDatabaseAsync", "moveTableToDatabaseOperationCallable", "moveTableToDatabaseCallable"]
},
"QueryMetadata": {
"methods": ["queryMetadataAsync", "queryMetadataOperationCallable", "queryMetadataCallable"]
},
"RemoveIamPolicy": {
"methods": ["removeIamPolicy", "removeIamPolicyCallable"]
},
"RestoreService": {
"methods": ["restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceOperationCallable", "restoreServiceCallable"]
},
Expand Down
Expand Up @@ -24,6 +24,8 @@
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.v1alpha.AlterMetadataResourceLocationRequest;
import com.google.cloud.metastore.v1alpha.AlterMetadataResourceLocationResponse;
import com.google.cloud.metastore.v1alpha.Backup;
import com.google.cloud.metastore.v1alpha.CreateBackupRequest;
import com.google.cloud.metastore.v1alpha.CreateMetadataImportRequest;
Expand All @@ -42,7 +44,13 @@
import com.google.cloud.metastore.v1alpha.ListServicesResponse;
import com.google.cloud.metastore.v1alpha.MetadataExport;
import com.google.cloud.metastore.v1alpha.MetadataImport;
import com.google.cloud.metastore.v1alpha.MoveTableToDatabaseRequest;
import com.google.cloud.metastore.v1alpha.MoveTableToDatabaseResponse;
import com.google.cloud.metastore.v1alpha.OperationMetadata;
import com.google.cloud.metastore.v1alpha.QueryMetadataRequest;
import com.google.cloud.metastore.v1alpha.QueryMetadataResponse;
import com.google.cloud.metastore.v1alpha.RemoveIamPolicyRequest;
import com.google.cloud.metastore.v1alpha.RemoveIamPolicyResponse;
import com.google.cloud.metastore.v1alpha.Restore;
import com.google.cloud.metastore.v1alpha.RestoreServiceRequest;
import com.google.cloud.metastore.v1alpha.Service;
Expand Down Expand Up @@ -192,6 +200,45 @@ public UnaryCallable<DeleteBackupRequest, Operation> deleteBackupCallable() {
throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()");
}

public UnaryCallable<RemoveIamPolicyRequest, RemoveIamPolicyResponse> removeIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: removeIamPolicyCallable()");
}

public OperationCallable<QueryMetadataRequest, QueryMetadataResponse, OperationMetadata>
queryMetadataOperationCallable() {
throw new UnsupportedOperationException("Not implemented: queryMetadataOperationCallable()");
}

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

public OperationCallable<
MoveTableToDatabaseRequest, MoveTableToDatabaseResponse, OperationMetadata>
moveTableToDatabaseOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: moveTableToDatabaseOperationCallable()");
}

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

public OperationCallable<
AlterMetadataResourceLocationRequest,
AlterMetadataResourceLocationResponse,
OperationMetadata>
alterMetadataResourceLocationOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: alterMetadataResourceLocationOperationCallable()");
}

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

@Override
public abstract void close();
}

0 comments on commit 84d9aa0

Please sign in to comment.