/// <summary>
        /// Gets the API request logging log files. Retrieves a list of log entries as a JSON or xml object or as a zip file containing the entries.\n\nIf the Accept header is set to application/zip, the response is a zip file containing individual text files, each representing an API request.\n\nIf the Accept header is set to `application/json` or `application/xml`, the response returns list of log entries in either JSON or XML. An example JSON response body is shown below.
        /// </summary>
 	    /// <param name="options">Options for modifying the behavior of the function.</param>
		/// <returns>7Task of ApiRequestLogsResult</returns>
        public async System.Threading.Tasks.Task<ApiRequestLogsResult> ListRequestLogsAsync (DiagnosticsApi.ListRequestLogsOptions options = null)
        {
             ApiResponse<ApiRequestLogsResult> response = await ListRequestLogsAsyncWithHttpInfo(options);
             return response.Data;

        }
        /// <summary>
        /// Gets the API request logging log files. Retrieves a list of log entries as a JSON or xml object or as a zip file containing the entries.\n\nIf the Accept header is set to application/zip, the response is a zip file containing individual text files, each representing an API request.\n\nIf the Accept header is set to `application/json` or `application/xml`, the response returns list of log entries in either JSON or XML. An example JSON response body is shown below.
        /// </summary>
	    /// <param name="options">Options for modifying the behavior of the function.</param>
		/// <returns>8Task of ApiResponse (ApiRequestLogsResult)</returns>
        public async System.Threading.Tasks.Task<ApiResponse<ApiRequestLogsResult>> ListRequestLogsAsyncWithHttpInfo (DiagnosticsApi.ListRequestLogsOptions options = null)
        {
            
    
            var path_ = "/v2/diagnostics/request_logs";
    
            var pathParams = new Dictionary<String, String>();
            var queryParams = new Dictionary<String, String>();
            var headerParams = new Dictionary<String, String>();
            var formParams = new Dictionary<String, String>();
            var fileParams = new Dictionary<String, FileParameter>();
            String postBody = null;

            // to determine the Accept header
            String[] http_header_accepts = new String[] {
                "application/json"
            };
            String http_header_accept = Configuration.ApiClient.SelectHeaderAccept(http_header_accepts);
            if (http_header_accept != null)
                headerParams.Add("Accept", Configuration.ApiClient.SelectHeaderAccept(http_header_accepts));

            // set "format" to json by default
            // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
            pathParams.Add("format", "json");
            

						
			if (options != null)
			{
				if (options.encoding != null) queryParams.Add("encoding", Configuration.ApiClient.ParameterToString(options.encoding)); // query parameter
				
			}
			

            
            
            

            

            // make the HTTP request
            IRestResponse response = (IRestResponse) await Configuration.ApiClient.CallApiAsync(path_, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, pathParams);

            int statusCode = (int) response.StatusCode;
 
            if (statusCode >= 400)
                throw new ApiException (statusCode, "Error calling ListRequestLogs: " + response.Content, response.Content);
            else if (statusCode == 0)
                throw new ApiException (statusCode, "Error calling ListRequestLogs: " + response.ErrorMessage, response.ErrorMessage);

            return new ApiResponse<ApiRequestLogsResult>(statusCode,
                response.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                (ApiRequestLogsResult) Configuration.ApiClient.Deserialize(response, typeof(ApiRequestLogsResult)));
            
        }
        /// <summary>
        /// Gets the API request logging log files. Retrieves a list of log entries as a JSON or xml object or as a zip file containing the entries.\n\nIf the Accept header is set to application/zip, the response is a zip file containing individual text files, each representing an API request.\n\nIf the Accept header is set to `application/json` or `application/xml`, the response returns list of log entries in either JSON or XML. An example JSON response body is shown below.
        /// </summary>
 	    /// <param name="options">Options for modifying the behavior of the function.</param>
		/// <returns>5ApiRequestLogsResult</returns>
        public ApiRequestLogsResult ListRequestLogs (DiagnosticsApi.ListRequestLogsOptions options = null)
        {
             ApiResponse<ApiRequestLogsResult> response = ListRequestLogsWithHttpInfo(options);
             return response.Data;
        }