private static IDictionary <string, string> ConvertListMetrics(ListMetricsRequest request)
        {
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Action"] = "ListMetrics";
            if (request.IsSetNextToken())
            {
                dictionary["NextToken"] = request.NextToken;
            }
            return(dictionary);
        }
Exemplo n.º 2
0
        /**
         * Convert ListMetricsRequest to name value pairs
         */
        private static IDictionary <string, string> ConvertListMetrics(ListMetricsRequest request)
        {
            IDictionary <string, string> parameters = new Dictionary <string, string>();

            parameters["Action"] = "ListMetrics";
            if (request.IsSetNextToken())
            {
                parameters["NextToken"] = request.NextToken;
            }

            return(parameters);
        }