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

Side by Side Diff: generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years 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
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_beta.clouderrorreporting.v1beta1; 3 library googleapis_beta.clouderrorreporting.v1beta1;
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 * 112 *
113 * [timeRange_period] - Restricts the query to the specified time range. 113 * [timeRange_period] - Restricts the query to the specified time range.
114 * Possible string values are: 114 * Possible string values are:
115 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. 115 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED.
116 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. 116 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR.
117 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. 117 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS.
118 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. 118 * - "PERIOD_1_DAY" : A PERIOD_1_DAY.
119 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. 119 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK.
120 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. 120 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS.
121 * 121 *
122 * [serviceFilter_resourceType] - [Optional] The exact value to match against
123 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se rviceContext#FIELDS.resource_type).
124 *
122 * [serviceFilter_service] - [Optional] The exact value to match against 125 * [serviceFilter_service] - [Optional] The exact value to match against
123 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.service). 126 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.service).
124 * 127 *
125 * [groupId] - [Required] The group for which events shall be returned. 128 * [groupId] - [Required] The group for which events shall be returned.
126 * 129 *
127 * [serviceFilter_version] - [Optional] The exact value to match against 130 * [serviceFilter_version] - [Optional] The exact value to match against
128 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.version). 131 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.version).
129 * 132 *
130 * [pageSize] - [Optional] The maximum number of results to return per 133 * [pageSize] - [Optional] The maximum number of results to return per
131 * response. 134 * response.
132 * 135 *
133 * [pageToken] - [Optional] A `next_page_token` provided by a previous 136 * [pageToken] - [Optional] A `next_page_token` provided by a previous
134 * response. 137 * response.
135 * 138 *
136 * Completes with a [ListEventsResponse]. 139 * Completes with a [ListEventsResponse].
137 * 140 *
138 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
139 * error. 142 * error.
140 * 143 *
141 * If the used [http.Client] completes with an error when making a REST call, 144 * If the used [http.Client] completes with an error when making a REST call,
142 * this method will complete with the same error. 145 * this method will complete with the same error.
143 */ 146 */
144 async.Future<ListEventsResponse> list(core.String projectName, {core.String ti meRange_period, core.String serviceFilter_service, core.String groupId, core.Str ing serviceFilter_version, core.int pageSize, core.String pageToken}) { 147 async.Future<ListEventsResponse> list(core.String projectName, {core.String ti meRange_period, core.String serviceFilter_resourceType, core.String serviceFilte r_service, core.String groupId, core.String serviceFilter_version, core.int page Size, core.String pageToken}) {
145 var _url = null; 148 var _url = null;
146 var _queryParams = new core.Map(); 149 var _queryParams = new core.Map();
147 var _uploadMedia = null; 150 var _uploadMedia = null;
148 var _uploadOptions = null; 151 var _uploadOptions = null;
149 var _downloadOptions = commons.DownloadOptions.Metadata; 152 var _downloadOptions = commons.DownloadOptions.Metadata;
150 var _body = null; 153 var _body = null;
151 154
152 if (projectName == null) { 155 if (projectName == null) {
153 throw new core.ArgumentError("Parameter projectName is required."); 156 throw new core.ArgumentError("Parameter projectName is required.");
154 } 157 }
155 if (timeRange_period != null) { 158 if (timeRange_period != null) {
156 _queryParams["timeRange.period"] = [timeRange_period]; 159 _queryParams["timeRange.period"] = [timeRange_period];
157 } 160 }
161 if (serviceFilter_resourceType != null) {
162 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType];
163 }
158 if (serviceFilter_service != null) { 164 if (serviceFilter_service != null) {
159 _queryParams["serviceFilter.service"] = [serviceFilter_service]; 165 _queryParams["serviceFilter.service"] = [serviceFilter_service];
160 } 166 }
161 if (groupId != null) { 167 if (groupId != null) {
162 _queryParams["groupId"] = [groupId]; 168 _queryParams["groupId"] = [groupId];
163 } 169 }
164 if (serviceFilter_version != null) { 170 if (serviceFilter_version != null) {
165 _queryParams["serviceFilter.version"] = [serviceFilter_version]; 171 _queryParams["serviceFilter.version"] = [serviceFilter_version];
166 } 172 }
167 if (pageSize != null) { 173 if (pageSize != null) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 * 280 *
275 * [timeRange_period] - Restricts the query to the specified time range. 281 * [timeRange_period] - Restricts the query to the specified time range.
276 * Possible string values are: 282 * Possible string values are:
277 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. 283 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED.
278 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. 284 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR.
279 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. 285 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS.
280 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. 286 * - "PERIOD_1_DAY" : A PERIOD_1_DAY.
281 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. 287 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK.
282 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. 288 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS.
283 * 289 *
290 * [serviceFilter_resourceType] - [Optional] The exact value to match against
291 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se rviceContext#FIELDS.resource_type).
292 *
284 * [order] - [Optional] The sort order in which the results are returned. 293 * [order] - [Optional] The sort order in which the results are returned.
285 * Default is `COUNT_DESC`. 294 * Default is `COUNT_DESC`.
286 * Possible string values are: 295 * Possible string values are:
287 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. 296 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED.
288 * - "COUNT_DESC" : A COUNT_DESC. 297 * - "COUNT_DESC" : A COUNT_DESC.
289 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. 298 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC.
290 * - "CREATED_DESC" : A CREATED_DESC. 299 * - "CREATED_DESC" : A CREATED_DESC.
291 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. 300 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC.
292 * 301 *
293 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these 302 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these
(...skipping 23 matching lines...) Expand all
317 * parameters as the first request. 326 * parameters as the first request.
318 * 327 *
319 * Completes with a [ListGroupStatsResponse]. 328 * Completes with a [ListGroupStatsResponse].
320 * 329 *
321 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
322 * error. 331 * error.
323 * 332 *
324 * If the used [http.Client] completes with an error when making a REST call, 333 * If the used [http.Client] completes with an error when making a REST call,
325 * this method will complete with the same error. 334 * this method will complete with the same error.
326 */ 335 */
327 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin g alignment, core.String timeRange_period, core.String order, core.List<core.Str ing> groupId, core.String serviceFilter_service, core.String alignmentTime, core .String serviceFilter_version, core.int pageSize, core.String timedCountDuration , core.String pageToken}) { 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin g alignment, core.String timeRange_period, core.String serviceFilter_resourceTyp e, core.String order, core.List<core.String> groupId, core.String serviceFilter_ service, core.String alignmentTime, core.String serviceFilter_version, core.int pageSize, core.String timedCountDuration, core.String pageToken}) {
328 var _url = null; 337 var _url = null;
329 var _queryParams = new core.Map(); 338 var _queryParams = new core.Map();
330 var _uploadMedia = null; 339 var _uploadMedia = null;
331 var _uploadOptions = null; 340 var _uploadOptions = null;
332 var _downloadOptions = commons.DownloadOptions.Metadata; 341 var _downloadOptions = commons.DownloadOptions.Metadata;
333 var _body = null; 342 var _body = null;
334 343
335 if (projectName == null) { 344 if (projectName == null) {
336 throw new core.ArgumentError("Parameter projectName is required."); 345 throw new core.ArgumentError("Parameter projectName is required.");
337 } 346 }
338 if (alignment != null) { 347 if (alignment != null) {
339 _queryParams["alignment"] = [alignment]; 348 _queryParams["alignment"] = [alignment];
340 } 349 }
341 if (timeRange_period != null) { 350 if (timeRange_period != null) {
342 _queryParams["timeRange.period"] = [timeRange_period]; 351 _queryParams["timeRange.period"] = [timeRange_period];
343 } 352 }
353 if (serviceFilter_resourceType != null) {
354 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType];
355 }
344 if (order != null) { 356 if (order != null) {
345 _queryParams["order"] = [order]; 357 _queryParams["order"] = [order];
346 } 358 }
347 if (groupId != null) { 359 if (groupId != null) {
348 _queryParams["groupId"] = groupId; 360 _queryParams["groupId"] = groupId;
349 } 361 }
350 if (serviceFilter_service != null) { 362 if (serviceFilter_service != null) {
351 _queryParams["serviceFilter.service"] = [serviceFilter_service]; 363 _queryParams["serviceFilter.service"] = [serviceFilter_service];
352 } 364 }
353 if (alignmentTime != null) { 365 if (alignmentTime != null) {
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 return _json; 1034 return _json;
1023 } 1035 }
1024 } 1036 }
1025 1037
1026 /** 1038 /**
1027 * Describes a running service that sends errors. 1039 * Describes a running service that sends errors.
1028 * Its version changes over time and multiple versions can run in parallel. 1040 * Its version changes over time and multiple versions can run in parallel.
1029 */ 1041 */
1030 class ServiceContext { 1042 class ServiceContext {
1031 /** 1043 /**
1044 * Type of the MonitoredResource. List of possible values:
1045 * https://cloud.google.com/monitoring/api/resources
1046 *
1047 * Value is set automatically for incoming errors and must not be set when
1048 * reporting errors.
1049 */
1050 core.String resourceType;
1051 /**
1032 * An identifier of the service, such as the name of the 1052 * An identifier of the service, such as the name of the
1033 * executable, job, or Google App Engine service name. This field is expected 1053 * executable, job, or Google App Engine service name. This field is expected
1034 * to have a low number of values that are relatively stable over time, as 1054 * to have a low number of values that are relatively stable over time, as
1035 * opposed to `version`, which can be changed whenever new code is deployed. 1055 * opposed to `version`, which can be changed whenever new code is deployed.
1036 * 1056 *
1037 * Contains the service name for error reports extracted from Google 1057 * Contains the service name for error reports extracted from Google
1038 * App Engine logs or `default` if the App Engine default service is used. 1058 * App Engine logs or `default` if the App Engine default service is used.
1039 */ 1059 */
1040 core.String service; 1060 core.String service;
1041 /** 1061 /**
1042 * Represents the source code version that the developer provided, 1062 * Represents the source code version that the developer provided,
1043 * which could represent a version label or a Git SHA-1 hash, for example. 1063 * which could represent a version label or a Git SHA-1 hash, for example.
1044 */ 1064 */
1045 core.String version; 1065 core.String version;
1046 1066
1047 ServiceContext(); 1067 ServiceContext();
1048 1068
1049 ServiceContext.fromJson(core.Map _json) { 1069 ServiceContext.fromJson(core.Map _json) {
1070 if (_json.containsKey("resourceType")) {
1071 resourceType = _json["resourceType"];
1072 }
1050 if (_json.containsKey("service")) { 1073 if (_json.containsKey("service")) {
1051 service = _json["service"]; 1074 service = _json["service"];
1052 } 1075 }
1053 if (_json.containsKey("version")) { 1076 if (_json.containsKey("version")) {
1054 version = _json["version"]; 1077 version = _json["version"];
1055 } 1078 }
1056 } 1079 }
1057 1080
1058 core.Map toJson() { 1081 core.Map toJson() {
1059 var _json = new core.Map(); 1082 var _json = new core.Map();
1083 if (resourceType != null) {
1084 _json["resourceType"] = resourceType;
1085 }
1060 if (service != null) { 1086 if (service != null) {
1061 _json["service"] = service; 1087 _json["service"] = service;
1062 } 1088 }
1063 if (version != null) { 1089 if (version != null) {
1064 _json["version"] = version; 1090 _json["version"] = version;
1065 } 1091 }
1066 return _json; 1092 return _json;
1067 } 1093 }
1068 } 1094 }
1069 1095
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 } 1203 }
1178 1204
1179 core.Map toJson() { 1205 core.Map toJson() {
1180 var _json = new core.Map(); 1206 var _json = new core.Map();
1181 if (url != null) { 1207 if (url != null) {
1182 _json["url"] = url; 1208 _json["url"] = url;
1183 } 1209 }
1184 return _json; 1210 return _json;
1185 } 1211 }
1186 } 1212 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/appengine/v1beta5.dart ('k') | generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698