Skip to content
Permalink
Browse files
feat: publish new fields for CMEK support (#646)
* chore: update gapic-generator-java to 0.0.20

Committer: @miraleung
PiperOrigin-RevId: 357800868

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Feb 16 14:06:04 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: e8bc4471a88ac5f60defe3ed436f517174e59ba0
Source-Link: googleapis/googleapis@e8bc447

* chore: release gapic-generator-java v0.0.21 with gapic_metadata.json support

Committer: @miraleung
PiperOrigin-RevId: 358516065

Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri Feb 19 17:43:23 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: af8f71dae961ee036a0ac52a1965270149a6b2c9
Source-Link: googleapis/googleapis@af8f71d

* feat: Publish new fields to support Customer Managed Encryption Keys (CMEK) on the existing Cloud Bigtable service methods.

PiperOrigin-RevId: 359130387

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Feb 23 14:08:20 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: eabec5a21219401bad79e1cc7d900c1658aee5fd
Source-Link: googleapis/googleapis@eabec5a

* fix build

Co-authored-by: Kristen O'Leary <kaoleary@google.com>
  • Loading branch information
yoshi-automation and kolea2 committed Feb 26, 2021
1 parent c5049c1 commit e039386898b82f7b03f5a4064c5dcca0fdd3f330
Showing with 5,058 additions and 211 deletions.
  1. +6 −0 ...ud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java
  2. +150 −0 google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json
  3. +25 −0 ...bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableInstanceAdminStub.java
  4. +29 −0 ...ud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableTableAdminStub.java
  5. +36 −0 google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/gapic_metadata.json
  6. +6 −0 google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java
  7. +16 −0 ...igtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClientTest.java
  8. +6 −0 ...d-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java
  9. +133 −19 ...loud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableInstanceAdminImpl.java
  10. +154 −22 ...e-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableTableAdminImpl.java
  11. +15 −0 proto-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml
  12. +7 −7 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfile.java
  13. +2 −2 ...oogle-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileOrBuilder.java
  14. +302 −0 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Backup.java
  15. +41 −0 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupOrBuilder.java
  16. +1,026 −0 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Cluster.java
  17. +41 −0 ...o-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterOrBuilder.java
  18. +261 −0 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CryptoKeyName.java
  19. +298 −0 ...ogle-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CryptoKeyVersionName.java
  20. +1,313 −0 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfo.java
  21. +129 −0 ...e-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfoOrBuilder.java
  22. +46 −25 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java
  23. +7 −7 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Snapshot.java
  24. +2 −2 ...-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotOrBuilder.java
  25. +772 −26 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java
  26. +9 −9 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java
  27. +121 −81 proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java
  28. +26 −3 proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto
  29. +70 −5 proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto
  30. +9 −3 synth.metadata
@@ -1141,6 +1141,8 @@ public final UnaryCallable<ListClustersRequest, ListClustersResponse> listCluste
* .setName(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
* .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setServeNodes(-1288838783)
* .setDefaultStorageType(StorageType.forNumber(0))
* .setEncryptionConfig(Cluster.EncryptionConfig.newBuilder().build())
* .build();
* Cluster response = baseBigtableInstanceAdminClient.updateClusterAsync(request).get();
* }
@@ -1167,6 +1169,8 @@ public final OperationFuture<Cluster, UpdateClusterMetadata> updateClusterAsync(
* .setName(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
* .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setServeNodes(-1288838783)
* .setDefaultStorageType(StorageType.forNumber(0))
* .setEncryptionConfig(Cluster.EncryptionConfig.newBuilder().build())
* .build();
* OperationFuture<Cluster, UpdateClusterMetadata> future =
* baseBigtableInstanceAdminClient.updateClusterOperationCallable().futureCall(request);
@@ -1194,6 +1198,8 @@ public final OperationFuture<Cluster, UpdateClusterMetadata> updateClusterAsync(
* .setName(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
* .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setServeNodes(-1288838783)
* .setDefaultStorageType(StorageType.forNumber(0))
* .setEncryptionConfig(Cluster.EncryptionConfig.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* baseBigtableInstanceAdminClient.updateClusterCallable().futureCall(request);
@@ -0,0 +1,150 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "java",
"protoPackage": "google.bigtable.admin.v2",
"libraryPackage": "com.google.cloud.bigtable.admin.v2",
"services": {
"BigtableInstanceAdmin": {
"clients": {
"grpc": {
"libraryClient": "BaseBigtableInstanceAdminClient",
"rpcs": {
"CreateAppProfile": {
"methods": ["createAppProfile", "createAppProfile", "createAppProfile", "createAppProfileCallable"]
},
"CreateCluster": {
"methods": ["createClusterAsync", "createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"]
},
"CreateInstance": {
"methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"]
},
"DeleteAppProfile": {
"methods": ["deleteAppProfile", "deleteAppProfile", "deleteAppProfile", "deleteAppProfileCallable"]
},
"DeleteCluster": {
"methods": ["deleteCluster", "deleteCluster", "deleteCluster", "deleteClusterCallable"]
},
"DeleteInstance": {
"methods": ["deleteInstance", "deleteInstance", "deleteInstance", "deleteInstanceCallable"]
},
"GetAppProfile": {
"methods": ["getAppProfile", "getAppProfile", "getAppProfile", "getAppProfileCallable"]
},
"GetCluster": {
"methods": ["getCluster", "getCluster", "getCluster", "getClusterCallable"]
},
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
},
"GetInstance": {
"methods": ["getInstance", "getInstance", "getInstance", "getInstanceCallable"]
},
"ListAppProfiles": {
"methods": ["listAppProfiles", "listAppProfiles", "listAppProfiles", "listAppProfilesPagedCallable", "listAppProfilesCallable"]
},
"ListClusters": {
"methods": ["listClusters", "listClusters", "listClusters", "listClustersCallable"]
},
"ListInstances": {
"methods": ["listInstances", "listInstances", "listInstances", "listInstancesCallable"]
},
"PartialUpdateInstance": {
"methods": ["partialUpdateInstanceAsync", "partialUpdateInstanceAsync", "partialUpdateInstanceOperationCallable", "partialUpdateInstanceCallable"]
},
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
},
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
},
"UpdateAppProfile": {
"methods": ["updateAppProfileAsync", "updateAppProfileAsync", "updateAppProfileOperationCallable", "updateAppProfileCallable"]
},
"UpdateCluster": {
"methods": ["updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"]
},
"UpdateInstance": {
"methods": ["updateInstance", "updateInstanceCallable"]
}
}
}
}
},
"BigtableTableAdmin": {
"clients": {
"grpc": {
"libraryClient": "BaseBigtableTableAdminClient",
"rpcs": {
"CheckConsistency": {
"methods": ["checkConsistency", "checkConsistency", "checkConsistency", "checkConsistencyCallable"]
},
"CreateBackup": {
"methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"]
},
"CreateTable": {
"methods": ["createTable", "createTable", "createTable", "createTableCallable"]
},
"CreateTableFromSnapshot": {
"methods": ["createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotOperationCallable", "createTableFromSnapshotCallable"]
},
"DeleteBackup": {
"methods": ["deleteBackup", "deleteBackup", "deleteBackup", "deleteBackupCallable"]
},
"DeleteSnapshot": {
"methods": ["deleteSnapshot", "deleteSnapshot", "deleteSnapshot", "deleteSnapshotCallable"]
},
"DeleteTable": {
"methods": ["deleteTable", "deleteTable", "deleteTable", "deleteTableCallable"]
},
"DropRowRange": {
"methods": ["dropRowRange", "dropRowRangeCallable"]
},
"GenerateConsistencyToken": {
"methods": ["generateConsistencyToken", "generateConsistencyToken", "generateConsistencyToken", "generateConsistencyTokenCallable"]
},
"GetBackup": {
"methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"]
},
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
},
"GetSnapshot": {
"methods": ["getSnapshot", "getSnapshot", "getSnapshot", "getSnapshotCallable"]
},
"GetTable": {
"methods": ["getTable", "getTable", "getTable", "getTableCallable"]
},
"ListBackups": {
"methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"]
},
"ListSnapshots": {
"methods": ["listSnapshots", "listSnapshots", "listSnapshots", "listSnapshotsPagedCallable", "listSnapshotsCallable"]
},
"ListTables": {
"methods": ["listTables", "listTables", "listTables", "listTablesPagedCallable", "listTablesCallable"]
},
"ModifyColumnFamilies": {
"methods": ["modifyColumnFamilies", "modifyColumnFamilies", "modifyColumnFamilies", "modifyColumnFamiliesCallable"]
},
"RestoreTable": {
"methods": ["restoreTableAsync", "restoreTableOperationCallable", "restoreTableCallable"]
},
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
},
"SnapshotTable": {
"methods": ["snapshotTableAsync", "snapshotTableAsync", "snapshotTableAsync", "snapshotTableAsync", "snapshotTableAsync", "snapshotTableOperationCallable", "snapshotTableCallable"]
},
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
},
"UpdateBackup": {
"methods": ["updateBackup", "updateBackup", "updateBackupCallable"]
}
}
}
}
}
}
}
@@ -689,108 +689,133 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}

@Override
public UnaryCallable<CreateInstanceRequest, Operation> createInstanceCallable() {
return createInstanceCallable;
}

@Override
public OperationCallable<CreateInstanceRequest, Instance, CreateInstanceMetadata>
createInstanceOperationCallable() {
return createInstanceOperationCallable;
}

@Override
public UnaryCallable<GetInstanceRequest, Instance> getInstanceCallable() {
return getInstanceCallable;
}

@Override
public UnaryCallable<ListInstancesRequest, ListInstancesResponse> listInstancesCallable() {
return listInstancesCallable;
}

@Override
public UnaryCallable<Instance, Instance> updateInstanceCallable() {
return updateInstanceCallable;
}

@Override
public UnaryCallable<PartialUpdateInstanceRequest, Operation> partialUpdateInstanceCallable() {
return partialUpdateInstanceCallable;
}

@Override
public OperationCallable<PartialUpdateInstanceRequest, Instance, UpdateInstanceMetadata>
partialUpdateInstanceOperationCallable() {
return partialUpdateInstanceOperationCallable;
}

@Override
public UnaryCallable<DeleteInstanceRequest, Empty> deleteInstanceCallable() {
return deleteInstanceCallable;
}

@Override
public UnaryCallable<CreateClusterRequest, Operation> createClusterCallable() {
return createClusterCallable;
}

@Override
public OperationCallable<CreateClusterRequest, Cluster, CreateClusterMetadata>
createClusterOperationCallable() {
return createClusterOperationCallable;
}

@Override
public UnaryCallable<GetClusterRequest, Cluster> getClusterCallable() {
return getClusterCallable;
}

@Override
public UnaryCallable<ListClustersRequest, ListClustersResponse> listClustersCallable() {
return listClustersCallable;
}

@Override
public UnaryCallable<Cluster, Operation> updateClusterCallable() {
return updateClusterCallable;
}

@Override
public OperationCallable<Cluster, Cluster, UpdateClusterMetadata>
updateClusterOperationCallable() {
return updateClusterOperationCallable;
}

@Override
public UnaryCallable<DeleteClusterRequest, Empty> deleteClusterCallable() {
return deleteClusterCallable;
}

@Override
public UnaryCallable<CreateAppProfileRequest, AppProfile> createAppProfileCallable() {
return createAppProfileCallable;
}

@Override
public UnaryCallable<GetAppProfileRequest, AppProfile> getAppProfileCallable() {
return getAppProfileCallable;
}

@Override
public UnaryCallable<ListAppProfilesRequest, ListAppProfilesResponse> listAppProfilesCallable() {
return listAppProfilesCallable;
}

@Override
public UnaryCallable<ListAppProfilesRequest, ListAppProfilesPagedResponse>
listAppProfilesPagedCallable() {
return listAppProfilesPagedCallable;
}

@Override
public UnaryCallable<UpdateAppProfileRequest, Operation> updateAppProfileCallable() {
return updateAppProfileCallable;
}

@Override
public OperationCallable<UpdateAppProfileRequest, AppProfile, UpdateAppProfileMetadata>
updateAppProfileOperationCallable() {
return updateAppProfileOperationCallable;
}

@Override
public UnaryCallable<DeleteAppProfileRequest, Empty> deleteAppProfileCallable() {
return deleteAppProfileCallable;
}

@Override
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
return getIamPolicyCallable;
}

@Override
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
return setIamPolicyCallable;
}

@Override
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable() {
return testIamPermissionsCallable;

0 comments on commit e039386

Please sign in to comment.