| 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.firebaserules.v1; | 3 library googleapis.firebaserules.v1; |
| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 * List the `Release` values for a project. This list may optionally be | 282 * List the `Release` values for a project. This list may optionally be |
| 283 * filtered by `Release` name or `Ruleset` id or both. | 283 * filtered by `Release` name or `Ruleset` id or both. |
| 284 * | 284 * |
| 285 * Request parameters: | 285 * Request parameters: |
| 286 * | 286 * |
| 287 * [name] - Resource name for the project. | 287 * [name] - Resource name for the project. |
| 288 * | 288 * |
| 289 * Format: `projects/{project_id}` | 289 * Format: `projects/{project_id}` |
| 290 * Value must have pattern "^projects/[^/]+$". | 290 * Value must have pattern "^projects/[^/]+$". |
| 291 * | 291 * |
| 292 * [pageToken] - Next page token for the next batch of `Release` instances. | |
| 293 * | |
| 294 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. | |
| 295 * Note: `page_size` is just a hint and the service may choose to load less | |
| 296 * than `page_size` due to the size of the output. To traverse all of the | |
| 297 * releases, caller should iterate until the `page_token` is empty. | |
| 298 * | |
| 299 * [filter] - `Release` filter. The list method supports filters with | 292 * [filter] - `Release` filter. The list method supports filters with |
| 300 * restrictions on the | 293 * restrictions on the |
| 301 * `Release` `name` and also on the `Ruleset` `ruleset_name`. | 294 * `Release` `name` and also on the `Ruleset` `ruleset_name`. |
| 302 * | 295 * |
| 303 * Example 1) A filter of 'name=prod*' might return `Release`s with names | 296 * Example 1) A filter of 'name=prod*' might return `Release`s with names |
| 304 * within 'projects/foo' prefixed with 'prod': | 297 * within 'projects/foo' prefixed with 'prod': |
| 305 * | 298 * |
| 306 * Name | Ruleset Name | 299 * Name | Ruleset Name |
| 307 * ------------------------------|------------- | 300 * ------------------------------|------------- |
| 308 * projects/foo/releases/prod | projects/foo/rulesets/uuid1234 | 301 * projects/foo/releases/prod | projects/foo/rulesets/uuid1234 |
| 309 * projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 | 302 * projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 |
| 310 * projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 | 303 * projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 |
| 311 * | 304 * |
| 312 * Example 2) A filter of `name=prod* ruleset_name=uuid1234` would return only | 305 * Example 2) A filter of `name=prod* ruleset_name=uuid1234` would return only |
| 313 * `Release` instances for 'projects/foo' with names prefixed with 'prod' | 306 * `Release` instances for 'projects/foo' with names prefixed with 'prod' |
| 314 * referring to the same `Ruleset` name of 'uuid1234': | 307 * referring to the same `Ruleset` name of 'uuid1234': |
| 315 * | 308 * |
| 316 * Name | Ruleset Name | 309 * Name | Ruleset Name |
| 317 * ------------------------------|------------- | 310 * ------------------------------|------------- |
| 318 * projects/foo/releases/prod | projects/foo/rulesets/1234 | 311 * projects/foo/releases/prod | projects/foo/rulesets/1234 |
| 319 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 | 312 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 |
| 320 * | 313 * |
| 321 * In the examples, the filter parameters refer to the search filters for | 314 * In the examples, the filter parameters refer to the search filters for |
| 322 * release and ruleset names are relative to the project releases and rulesets | 315 * release and ruleset names are relative to the project releases and rulesets |
| 323 * collections. Fully qualified prefixed may also be used. e.g. | 316 * collections. Fully qualified prefixed may also be used. e.g. |
| 324 * `name=projects/foo/releases/prod* ruleset_name=projects/foo/rulesets/uuid1` | 317 * `name=projects/foo/releases/prod* ruleset_name=projects/foo/rulesets/uuid1` |
| 325 * | 318 * |
| 319 * [pageToken] - Next page token for the next batch of `Release` instances. |
| 320 * |
| 321 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. |
| 322 * Note: `page_size` is just a hint and the service may choose to load less |
| 323 * than `page_size` due to the size of the output. To traverse all of the |
| 324 * releases, caller should iterate until the `page_token` is empty. |
| 325 * |
| 326 * Completes with a [ListReleasesResponse]. | 326 * Completes with a [ListReleasesResponse]. |
| 327 * | 327 * |
| 328 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 328 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 329 * error. | 329 * error. |
| 330 * | 330 * |
| 331 * If the used [http.Client] completes with an error when making a REST call, | 331 * If the used [http.Client] completes with an error when making a REST call, |
| 332 * this method will complete with the same error. | 332 * this method will complete with the same error. |
| 333 */ | 333 */ |
| 334 async.Future<ListReleasesResponse> list(core.String name, {core.String pageTok
en, core.int pageSize, core.String filter}) { | 334 async.Future<ListReleasesResponse> list(core.String name, {core.String filter,
core.String pageToken, core.int pageSize}) { |
| 335 var _url = null; | 335 var _url = null; |
| 336 var _queryParams = new core.Map(); | 336 var _queryParams = new core.Map(); |
| 337 var _uploadMedia = null; | 337 var _uploadMedia = null; |
| 338 var _uploadOptions = null; | 338 var _uploadOptions = null; |
| 339 var _downloadOptions = commons.DownloadOptions.Metadata; | 339 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 340 var _body = null; | 340 var _body = null; |
| 341 | 341 |
| 342 if (name == null) { | 342 if (name == null) { |
| 343 throw new core.ArgumentError("Parameter name is required."); | 343 throw new core.ArgumentError("Parameter name is required."); |
| 344 } | 344 } |
| 345 if (filter != null) { |
| 346 _queryParams["filter"] = [filter]; |
| 347 } |
| 345 if (pageToken != null) { | 348 if (pageToken != null) { |
| 346 _queryParams["pageToken"] = [pageToken]; | 349 _queryParams["pageToken"] = [pageToken]; |
| 347 } | 350 } |
| 348 if (pageSize != null) { | 351 if (pageSize != null) { |
| 349 _queryParams["pageSize"] = ["${pageSize}"]; | 352 _queryParams["pageSize"] = ["${pageSize}"]; |
| 350 } | 353 } |
| 351 if (filter != null) { | |
| 352 _queryParams["filter"] = [filter]; | |
| 353 } | |
| 354 | 354 |
| 355 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/releases'; | 355 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/releases'; |
| 356 | 356 |
| 357 var _response = _requester.request(_url, | 357 var _response = _requester.request(_url, |
| 358 "GET", | 358 "GET", |
| 359 body: _body, | 359 body: _body, |
| 360 queryParams: _queryParams, | 360 queryParams: _queryParams, |
| 361 uploadOptions: _uploadOptions, | 361 uploadOptions: _uploadOptions, |
| 362 uploadMedia: _uploadMedia, | 362 uploadMedia: _uploadMedia, |
| 363 downloadOptions: _downloadOptions); | 363 downloadOptions: _downloadOptions); |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 core.Map toJson() { | 1067 core.Map toJson() { |
| 1068 var _json = new core.Map(); | 1068 var _json = new core.Map(); |
| 1069 if (issues != null) { | 1069 if (issues != null) { |
| 1070 _json["issues"] = issues.map((value) => (value).toJson()).toList(); | 1070 _json["issues"] = issues.map((value) => (value).toJson()).toList(); |
| 1071 } | 1071 } |
| 1072 return _json; | 1072 return _json; |
| 1073 } | 1073 } |
| 1074 } | 1074 } |
| OLD | NEW |