Index: generated/googleapis/lib/cloudtrace/v1.dart |
diff --git a/generated/googleapis/lib/cloudtrace/v1.dart b/generated/googleapis/lib/cloudtrace/v1.dart |
index 294ac2a13d7dc25da29fdc405f34dc6fad924e87..6c88370545a3ee85b0fca6ced1dd81717ce69eb5 100644 |
--- a/generated/googleapis/lib/cloudtrace/v1.dart |
+++ b/generated/googleapis/lib/cloudtrace/v1.dart |
@@ -156,20 +156,6 @@ 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 against labels for the request. |
* |
* By default, searches use prefix matching. To specify exact match, prepend |
@@ -226,6 +212,20 @@ 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 |
@@ -234,7 +234,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 orderBy, core.String filter, core.String endTime, core.String pageToken, core.String startTime, core.int pageSize, core.String view}) { |
+ async.Future<ListTracesResponse> list(core.String projectId, {core.String filter, core.String endTime, core.String pageToken, core.String startTime, core.int pageSize, core.String view, core.String orderBy}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -245,9 +245,6 @@ 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]; |
} |
@@ -266,6 +263,9 @@ class ProjectsTracesResourceApi { |
if (view != null) { |
_queryParams["view"] = [view]; |
} |
+ if (orderBy != null) { |
+ _queryParams["orderBy"] = [orderBy]; |
+ } |
_url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/traces'; |