| OLD | NEW |
| 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.dlp.v2beta1; | 3 library googleapis_beta.dlp.v2beta1; |
| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 313 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
| 314 * | 314 * |
| 315 * NOTE: the `name` binding below allows API services to override the binding | 315 * NOTE: the `name` binding below allows API services to override the binding |
| 316 * to use different resource name schemes, such as `users / * /operations`. | 316 * to use different resource name schemes, such as `users / * /operations`. |
| 317 * | 317 * |
| 318 * Request parameters: | 318 * Request parameters: |
| 319 * | 319 * |
| 320 * [name] - The name of the operation collection. | 320 * [name] - The name of the operation collection. |
| 321 * Value must have pattern "^inspect/operations$". | 321 * Value must have pattern "^inspect/operations$". |
| 322 * | 322 * |
| 323 * [pageSize] - The list page size. The max allowed value is 256 and default | |
| 324 * is 100. | |
| 325 * | |
| 326 * [filter] - This parameter supports filtering by done, ie done=true or | 323 * [filter] - This parameter supports filtering by done, ie done=true or |
| 327 * done=false. | 324 * done=false. |
| 328 * | 325 * |
| 329 * [pageToken] - The list page token. | 326 * [pageToken] - The list page token. |
| 330 * | 327 * |
| 328 * [pageSize] - The list page size. The max allowed value is 256 and default |
| 329 * is 100. |
| 330 * |
| 331 * Completes with a [ListOperationsResponse]. | 331 * Completes with a [ListOperationsResponse]. |
| 332 * | 332 * |
| 333 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 333 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 334 * error. | 334 * error. |
| 335 * | 335 * |
| 336 * If the used [http.Client] completes with an error when making a REST call, | 336 * If the used [http.Client] completes with an error when making a REST call, |
| 337 * this method will complete with the same error. | 337 * this method will complete with the same error. |
| 338 */ | 338 */ |
| 339 async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize
, core.String filter, core.String pageToken}) { | 339 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { |
| 340 var _url = null; | 340 var _url = null; |
| 341 var _queryParams = new core.Map(); | 341 var _queryParams = new core.Map(); |
| 342 var _uploadMedia = null; | 342 var _uploadMedia = null; |
| 343 var _uploadOptions = null; | 343 var _uploadOptions = null; |
| 344 var _downloadOptions = commons.DownloadOptions.Metadata; | 344 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 345 var _body = null; | 345 var _body = null; |
| 346 | 346 |
| 347 if (name == null) { | 347 if (name == null) { |
| 348 throw new core.ArgumentError("Parameter name is required."); | 348 throw new core.ArgumentError("Parameter name is required."); |
| 349 } | 349 } |
| 350 if (pageSize != null) { | |
| 351 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 352 } | |
| 353 if (filter != null) { | 350 if (filter != null) { |
| 354 _queryParams["filter"] = [filter]; | 351 _queryParams["filter"] = [filter]; |
| 355 } | 352 } |
| 356 if (pageToken != null) { | 353 if (pageToken != null) { |
| 357 _queryParams["pageToken"] = [pageToken]; | 354 _queryParams["pageToken"] = [pageToken]; |
| 358 } | 355 } |
| 356 if (pageSize != null) { |
| 357 _queryParams["pageSize"] = ["${pageSize}"]; |
| 358 } |
| 359 | 359 |
| 360 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 360 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 361 | 361 |
| 362 var _response = _requester.request(_url, | 362 var _response = _requester.request(_url, |
| 363 "GET", | 363 "GET", |
| 364 body: _body, | 364 body: _body, |
| 365 queryParams: _queryParams, | 365 queryParams: _queryParams, |
| 366 uploadOptions: _uploadOptions, | 366 uploadOptions: _uploadOptions, |
| 367 uploadMedia: _uploadMedia, | 367 uploadMedia: _uploadMedia, |
| 368 downloadOptions: _downloadOptions); | 368 downloadOptions: _downloadOptions); |
| (...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1959 var _json = new core.Map(); | 1959 var _json = new core.Map(); |
| 1960 if (cloudStorageOptions != null) { | 1960 if (cloudStorageOptions != null) { |
| 1961 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); | 1961 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); |
| 1962 } | 1962 } |
| 1963 if (datastoreOptions != null) { | 1963 if (datastoreOptions != null) { |
| 1964 _json["datastoreOptions"] = (datastoreOptions).toJson(); | 1964 _json["datastoreOptions"] = (datastoreOptions).toJson(); |
| 1965 } | 1965 } |
| 1966 return _json; | 1966 return _json; |
| 1967 } | 1967 } |
| 1968 } | 1968 } |
| OLD | NEW |