Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: publish new fields for CMEK support #646

Merged
merged 4 commits into from Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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