Index: generated/googleapis/lib/cloudtrace/v1.dart |
diff --git a/generated/googleapis/lib/cloudtrace/v1.dart b/generated/googleapis/lib/cloudtrace/v1.dart |
index ac2d1d3b4c6ebae8f1b62dad561d63dd204aceb7..92c16c1d5d9670b04a208ad29fd02de4da1e2cf0 100644 |
--- a/generated/googleapis/lib/cloudtrace/v1.dart |
+++ b/generated/googleapis/lib/cloudtrace/v1.dart |
@@ -156,6 +156,20 @@ class ProjectsTracesResourceApi { |
* |
* [projectId] - ID of the Cloud project where the trace data is stored. |
* |
+ * [orderBy] - Field used to sort the returned traces. Optional. |
+ * Can be one of the following: |
+ * |
+ * * `trace_id` |
+ * * `name` (`name` field of root span in the trace) |
+ * * `duration` (difference between `end_time` and `start_time` fields of |
+ * the root span) |
+ * * `start` (`start_time` field of the root span) |
+ * |
+ * Descending order can be specified by appending `desc` to the sort field |
+ * (for example, `name desc`). |
+ * |
+ * Only one sort field is permitted. |
+ * |
* [filter] - An optional filter for the request. |
* |
* [endTime] - Start of the time interval (inclusive) during which the trace |
@@ -183,20 +197,6 @@ class ProjectsTracesResourceApi { |
* - "ROOTSPAN" : A ROOTSPAN. |
* - "COMPLETE" : A COMPLETE. |
* |
- * [orderBy] - Field used to sort the returned traces. Optional. |
- * Can be one of the following: |
- * |
- * * `trace_id` |
- * * `name` (`name` field of root span in the trace) |
- * * `duration` (difference between `end_time` and `start_time` fields of |
- * the root span) |
- * * `start` (`start_time` field of the root span) |
- * |
- * Descending order can be specified by appending `desc` to the sort field |
- * (for example, `name desc`). |
- * |
- * Only one sort field is permitted. |
- * |
* Completes with a [ListTracesResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -205,7 +205,7 @@ class ProjectsTracesResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListTracesResponse> list(core.String projectId, {core.String filter, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String view, core.String orderBy}) { |
+ async.Future<ListTracesResponse> list(core.String projectId, {core.String orderBy, core.String filter, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String view}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -216,6 +216,9 @@ class ProjectsTracesResourceApi { |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
+ if (orderBy != null) { |
+ _queryParams["orderBy"] = [orderBy]; |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
@@ -234,9 +237,6 @@ class ProjectsTracesResourceApi { |
if (view != null) { |
_queryParams["view"] = [view]; |
} |
- if (orderBy != null) { |
- _queryParams["orderBy"] = [orderBy]; |
- } |
_url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/traces'; |