Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: generated/googleapis/lib/cloudtrace/v2.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/cloudtrace/v1.dart ('k') | generated/googleapis/lib/compute/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.cloudtrace.v2; 3 library googleapis.cloudtrace.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 /** 112 /**
113 * Returns of a list of traces that match the specified filter conditions. 113 * Returns of a list of traces that match the specified filter conditions.
114 * 114 *
115 * Request parameters: 115 * Request parameters:
116 * 116 *
117 * [parent] - Required. The project where the trace data is stored. The format 117 * [parent] - Required. The project where the trace data is stored. The format
118 * is `projects/PROJECT_ID`. 118 * is `projects/PROJECT_ID`.
119 * Value must have pattern "^projects/[^/]+$". 119 * Value must have pattern "^projects/[^/]+$".
120 * 120 *
121 * [pageSize] - Optional. The maximum number of results to return from this
122 * request.
123 * Non-positive values are ignored. The presence of `next_page_token` in the
124 * response indicates that more results might be available, even if fewer than
125 * the maximum number of results is returned by this request.
126 *
127 * [orderBy] - Optional. A single field used to sort the returned traces. 121 * [orderBy] - Optional. A single field used to sort the returned traces.
128 * Only the following field names can be used: 122 * Only the following field names can be used:
129 * 123 *
130 * * `trace_id`: the trace's ID field 124 * * `trace_id`: the trace's ID field
131 * * `name`: the root span's resource name 125 * * `name`: the root span's resource name
132 * * `duration`: the difference between the root span's start time and end 126 * * `duration`: the difference between the root span's start time and end
133 * time 127 * time
134 * * `start`: the start time of the root span 128 * * `start`: the start time of the root span
135 * 129 *
136 * Sorting is in ascending order unless `desc` is appended to the sort field 130 * Sorting is in ascending order unless `desc` is appended to the sort field
137 * name. 131 * name.
138 * Example: `"name desc"`). 132 * Example: `"name desc"`).
139 * 133 *
140 * [filter] - Opional. Return only traces that match this 134 * [filter] - Opional. Return only traces that match this
141 * [trace filter](/trace/docs/trace-filters). Example: 135 * [trace filter](/trace/docs/trace-filters). Example:
142 * 136 *
143 * "label:/http/url root:/_ah/background my_label:17" 137 * "label:/http/url root:/_ah/background my_label:17"
144 * 138 *
145 * [endTime] - Optional. Do not return traces whose start time is later than 139 * [endTime] - Optional. Do not return traces whose start time is later than
146 * this time. 140 * this time.
147 * 141 *
142 * [startTime] - Optional. Do not return traces whose end time is earlier than
143 * this time.
144 *
148 * [pageToken] - Optional. If present, then retrieve the next batch of results 145 * [pageToken] - Optional. If present, then retrieve the next batch of results
149 * from the 146 * from the
150 * preceding call to this method. `page_token` must be the value of 147 * preceding call to this method. `page_token` must be the value of
151 * `next_page_token` from the previous response. The values of other method 148 * `next_page_token` from the previous response. The values of other method
152 * parameters should be identical to those in the previous call. 149 * parameters should be identical to those in the previous call.
153 * 150 *
154 * [startTime] - Optional. Do not return traces whose end time is earlier than 151 * [pageSize] - Optional. The maximum number of results to return from this
155 * this time. 152 * request.
153 * Non-positive values are ignored. The presence of `next_page_token` in the
154 * response indicates that more results might be available, even if fewer than
155 * the maximum number of results is returned by this request.
156 * 156 *
157 * Completes with a [ListTracesResponse]. 157 * Completes with a [ListTracesResponse].
158 * 158 *
159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
160 * error. 160 * error.
161 * 161 *
162 * If the used [http.Client] completes with an error when making a REST call, 162 * If the used [http.Client] completes with an error when making a REST call,
163 * this method will complete with the same error. 163 * this method will complete with the same error.
164 */ 164 */
165 async.Future<ListTracesResponse> list(core.String parent, {core.int pageSize, core.String orderBy, core.String filter, core.String endTime, core.String pageTo ken, core.String startTime}) { 165 async.Future<ListTracesResponse> list(core.String parent, {core.String orderBy , core.String filter, core.String endTime, core.String startTime, core.String pa geToken, core.int pageSize}) {
166 var _url = null; 166 var _url = null;
167 var _queryParams = new core.Map(); 167 var _queryParams = new core.Map();
168 var _uploadMedia = null; 168 var _uploadMedia = null;
169 var _uploadOptions = null; 169 var _uploadOptions = null;
170 var _downloadOptions = commons.DownloadOptions.Metadata; 170 var _downloadOptions = commons.DownloadOptions.Metadata;
171 var _body = null; 171 var _body = null;
172 172
173 if (parent == null) { 173 if (parent == null) {
174 throw new core.ArgumentError("Parameter parent is required."); 174 throw new core.ArgumentError("Parameter parent is required.");
175 } 175 }
176 if (pageSize != null) {
177 _queryParams["pageSize"] = ["${pageSize}"];
178 }
179 if (orderBy != null) { 176 if (orderBy != null) {
180 _queryParams["orderBy"] = [orderBy]; 177 _queryParams["orderBy"] = [orderBy];
181 } 178 }
182 if (filter != null) { 179 if (filter != null) {
183 _queryParams["filter"] = [filter]; 180 _queryParams["filter"] = [filter];
184 } 181 }
185 if (endTime != null) { 182 if (endTime != null) {
186 _queryParams["endTime"] = [endTime]; 183 _queryParams["endTime"] = [endTime];
187 } 184 }
185 if (startTime != null) {
186 _queryParams["startTime"] = [startTime];
187 }
188 if (pageToken != null) { 188 if (pageToken != null) {
189 _queryParams["pageToken"] = [pageToken]; 189 _queryParams["pageToken"] = [pageToken];
190 } 190 }
191 if (startTime != null) { 191 if (pageSize != null) {
192 _queryParams["startTime"] = [startTime]; 192 _queryParams["pageSize"] = ["${pageSize}"];
193 } 193 }
194 194
195 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/traces'; 195 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/traces';
196 196
197 var _response = _requester.request(_url, 197 var _response = _requester.request(_url,
198 "GET", 198 "GET",
199 body: _body, 199 body: _body,
200 queryParams: _queryParams, 200 queryParams: _queryParams,
201 uploadOptions: _uploadOptions, 201 uploadOptions: _uploadOptions,
202 uploadMedia: _uploadMedia, 202 uploadMedia: _uploadMedia,
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 * results in its response, the status of those operations should be 1112 * results in its response, the status of those operations should be
1113 * represented directly using the `Status` message. 1113 * represented directly using the `Status` message.
1114 * 1114 *
1115 * - Logging. If some API errors are stored in logs, the message `Status` could 1115 * - Logging. If some API errors are stored in logs, the message `Status` could
1116 * be used directly after any stripping needed for security/privacy reasons. 1116 * be used directly after any stripping needed for security/privacy reasons.
1117 */ 1117 */
1118 class Status { 1118 class Status {
1119 /** The status code, which should be an enum value of google.rpc.Code. */ 1119 /** The status code, which should be an enum value of google.rpc.Code. */
1120 core.int code; 1120 core.int code;
1121 /** 1121 /**
1122 * A list of messages that carry the error details. There will be a 1122 * A list of messages that carry the error details. There is a common set of
1123 * common set of message types for APIs to use. 1123 * message types for APIs to use.
1124 * 1124 *
1125 * The values for Object must be JSON objects. It can consist of `num`, 1125 * The values for Object must be JSON objects. It can consist of `num`,
1126 * `String`, `bool` and `null` as well as `Map` and `List` values. 1126 * `String`, `bool` and `null` as well as `Map` and `List` values.
1127 */ 1127 */
1128 core.List<core.Map<core.String, core.Object>> details; 1128 core.List<core.Map<core.String, core.Object>> details;
1129 /** 1129 /**
1130 * A developer-facing error message, which should be in English. Any 1130 * A developer-facing error message, which should be in English. Any
1131 * user-facing error message should be localized and sent in the 1131 * user-facing error message should be localized and sent in the
1132 * google.rpc.Status.details field, or localized by the client. 1132 * google.rpc.Status.details field, or localized by the client.
1133 */ 1133 */
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1313 if (truncatedByteCount != null) { 1313 if (truncatedByteCount != null) {
1314 _json["truncatedByteCount"] = truncatedByteCount; 1314 _json["truncatedByteCount"] = truncatedByteCount;
1315 } 1315 }
1316 if (value != null) { 1316 if (value != null) {
1317 _json["value"] = value; 1317 _json["value"] = value;
1318 } 1318 }
1319 return _json; 1319 return _json;
1320 } 1320 }
1321 } 1321 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/cloudtrace/v1.dart ('k') | generated/googleapis/lib/compute/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698