Skip to content

Commit

Permalink
feat: publish new fields for CMEK support (#646)
Browse files Browse the repository at this point in the history
* 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 e039386
Show file tree
Hide file tree
Showing 30 changed files with 5,058 additions and 211 deletions.
Expand Up @@ -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();
* }
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
@@ -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"]
}
}
}
}
}
}
}
Expand Up @@ -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;
Expand Down

0 comments on commit e039386

Please sign in to comment.