harbor run -t openthoughts/tasktrove-mix-h2-language-proportional-mix-h2-lang-proportional-1819harbor download openthoughts/tasktrove-mix-h2-language-proportional-mix-h2-lang-proportional-1819Implement the functionality for a Bigtable Instance Administration service in C++ that interacts with Google Cloud Bigtable. The implementation must allow the following operations related to instances, clusters, app profiles, and IAM policies using the provided test cases as a guide. Your implementation will be placed in the /app/ directory.
Instance Administration:
ListInstances method that retrieves a list of all instances in the project.CreateInstance method that creates a new instance with the specified configuration, including display name and type.GetInstance method to fetch details of a specific instance.PartialUpdateInstance method to modify properties of an existing instance (e.g., update the display name).DeleteInstance method to remove an instance.Cluster Management:
ListClusters method for retrieving a list of clusters under a specific instance.CreateCluster method to add new clusters to an instance.GetCluster method to retrieve cluster details.UpdateCluster method to modify cluster attributes (like the number of serve nodes).DeleteCluster method to remove a cluster from an instance.App Profile CRUD Operations:
ListAppProfiles method to fetch a list of app profiles for an instance.CreateAppProfile method for creating new app profiles.GetAppProfile method to retrieve details of a specific app profile.UpdateAppProfile method to modify existing app profiles.DeleteAppProfile method to remove an app profile from an instance.IAM Policies:
SetIamPolicy method to set IAM policies for an instance.GetIamPolicy method to retrieve the current IAM policy.TestIamPermissions method to check a set of permissions against an IAM policy.Ensure that your code is designed to pass the provided test cases which verify the correct functionality of the instance, cluster, app profile, and IAM operations as described in the test code.
Handle any potential errors gracefully using the appropriate Google Cloud status codes and error reporting methods.
Follow best practices for asynchronous programming and ensure that operations that can take time are handled with appropriate futures or callbacks, as outlined in the tests.
Your solution should be contained within the /app/ directory and must adhere to the provided integration tests to ensure all functionalities are verified correctly.