private static void listFlavors(DcsClient dcsClient) { var listFlavorsRequest = new ListFlavorsRequest() { CacheMode = "single", Capacity = "2", CpuType = ListFlavorsRequest.CpuTypeEnum.AARCH64, Engine = "Redis", EngineVersion = "4.0" }; try { var response = dcsClient.ListFlavors(listFlavorsRequest); Console.WriteLine(response.GetHttpBody()); } catch (RequestTimeoutException requestTimeoutException) { Console.WriteLine(requestTimeoutException.ErrorMessage); } catch (ServiceResponseException clientRequestException) { Console.WriteLine(clientRequestException.HttpStatusCode); Console.WriteLine(clientRequestException.ErrorCode); Console.WriteLine(clientRequestException.ErrorMsg); } catch (ConnectionException connectionException) { Console.WriteLine(connectionException.ErrorMessage); } }