| 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 * |
| 292 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. | 294 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. |
| 293 * Note: `page_size` is just a hint and the service may choose to load less | 295 * Note: `page_size` is just a hint and the service may choose to load less |
| 294 * than `page_size` due to the size of the output. To traverse all of the | 296 * than `page_size` due to the size of the output. To traverse all of the |
| 295 * releases, caller should iterate until the `page_token` is empty. | 297 * releases, caller should iterate until the `page_token` is empty. |
| 296 * | 298 * |
| 297 * [filter] - `Release` filter. The list method supports filters with | 299 * [filter] - `Release` filter. The list method supports filters with |
| 298 * restrictions on the | 300 * restrictions on the |
| 299 * `Release` `name` and also on the `Ruleset` `ruleset_name`. | 301 * `Release` `name` and also on the `Ruleset` `ruleset_name`. |
| 300 * | 302 * |
| 301 * Example 1) A filter of 'name=prod*' might return `Release`s with names | 303 * Example 1) A filter of 'name=prod*' might return `Release`s with names |
| (...skipping 12 matching lines...) Expand all Loading... |
| 314 * Name | Ruleset Name | 316 * Name | Ruleset Name |
| 315 * ------------------------------|------------- | 317 * ------------------------------|------------- |
| 316 * projects/foo/releases/prod | projects/foo/rulesets/1234 | 318 * projects/foo/releases/prod | projects/foo/rulesets/1234 |
| 317 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 | 319 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 |
| 318 * | 320 * |
| 319 * In the examples, the filter parameters refer to the search filters for | 321 * In the examples, the filter parameters refer to the search filters for |
| 320 * release and ruleset names are relative to the project releases and rulesets | 322 * release and ruleset names are relative to the project releases and rulesets |
| 321 * collections. Fully qualified prefixed may also be used. e.g. | 323 * collections. Fully qualified prefixed may also be used. e.g. |
| 322 * `name=projects/foo/releases/prod* ruleset_name=projects/foo/rulesets/uuid1` | 324 * `name=projects/foo/releases/prod* ruleset_name=projects/foo/rulesets/uuid1` |
| 323 * | 325 * |
| 324 * [pageToken] - Next page token for the next batch of `Release` instances. | |
| 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.int pageSize,
core.String filter, core.String pageToken}) { | 334 async.Future<ListReleasesResponse> list(core.String name, {core.String pageTok
en, core.int pageSize, core.String filter}) { |
| 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 (pageToken != null) { |
| 346 _queryParams["pageToken"] = [pageToken]; |
| 347 } |
| 345 if (pageSize != null) { | 348 if (pageSize != null) { |
| 346 _queryParams["pageSize"] = ["${pageSize}"]; | 349 _queryParams["pageSize"] = ["${pageSize}"]; |
| 347 } | 350 } |
| 348 if (filter != null) { | 351 if (filter != null) { |
| 349 _queryParams["filter"] = [filter]; | 352 _queryParams["filter"] = [filter]; |
| 350 } | 353 } |
| 351 if (pageToken != null) { | |
| 352 _queryParams["pageToken"] = [pageToken]; | |
| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 * The full `Source` contents of a `Ruleset` may be retrieved with | 590 * The full `Source` contents of a `Ruleset` may be retrieved with |
| 591 * GetRuleset. | 591 * GetRuleset. |
| 592 * | 592 * |
| 593 * Request parameters: | 593 * Request parameters: |
| 594 * | 594 * |
| 595 * [name] - Resource name for the project. | 595 * [name] - Resource name for the project. |
| 596 * | 596 * |
| 597 * Format: `projects/{project_id}` | 597 * Format: `projects/{project_id}` |
| 598 * Value must have pattern "^projects/[^/]+$". | 598 * Value must have pattern "^projects/[^/]+$". |
| 599 * | 599 * |
| 600 * [pageToken] - Next page token for loading the next batch of `Ruleset` |
| 601 * instances. |
| 602 * |
| 600 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. | 603 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. |
| 601 * Note: `page_size` is just a hint and the service may choose to load less | 604 * Note: `page_size` is just a hint and the service may choose to load less |
| 602 * than `page_size` due to the size of the output. To traverse all of the | 605 * than `page_size` due to the size of the output. To traverse all of the |
| 603 * releases, caller should iterate until the `page_token` is empty. | 606 * releases, caller should iterate until the `page_token` is empty. |
| 604 * | 607 * |
| 605 * [pageToken] - Next page token for loading the next batch of `Ruleset` | |
| 606 * instances. | |
| 607 * | |
| 608 * Completes with a [ListRulesetsResponse]. | 608 * Completes with a [ListRulesetsResponse]. |
| 609 * | 609 * |
| 610 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 610 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 611 * error. | 611 * error. |
| 612 * | 612 * |
| 613 * If the used [http.Client] completes with an error when making a REST call, | 613 * If the used [http.Client] completes with an error when making a REST call, |
| 614 * this method will complete with the same error. | 614 * this method will complete with the same error. |
| 615 */ | 615 */ |
| 616 async.Future<ListRulesetsResponse> list(core.String name, {core.int pageSize,
core.String pageToken}) { | 616 async.Future<ListRulesetsResponse> list(core.String name, {core.String pageTok
en, core.int pageSize}) { |
| 617 var _url = null; | 617 var _url = null; |
| 618 var _queryParams = new core.Map(); | 618 var _queryParams = new core.Map(); |
| 619 var _uploadMedia = null; | 619 var _uploadMedia = null; |
| 620 var _uploadOptions = null; | 620 var _uploadOptions = null; |
| 621 var _downloadOptions = commons.DownloadOptions.Metadata; | 621 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 622 var _body = null; | 622 var _body = null; |
| 623 | 623 |
| 624 if (name == null) { | 624 if (name == null) { |
| 625 throw new core.ArgumentError("Parameter name is required."); | 625 throw new core.ArgumentError("Parameter name is required."); |
| 626 } | 626 } |
| 627 if (pageToken != null) { |
| 628 _queryParams["pageToken"] = [pageToken]; |
| 629 } |
| 627 if (pageSize != null) { | 630 if (pageSize != null) { |
| 628 _queryParams["pageSize"] = ["${pageSize}"]; | 631 _queryParams["pageSize"] = ["${pageSize}"]; |
| 629 } | 632 } |
| 630 if (pageToken != null) { | |
| 631 _queryParams["pageToken"] = [pageToken]; | |
| 632 } | |
| 633 | 633 |
| 634 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/rulesets'; | 634 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/rulesets'; |
| 635 | 635 |
| 636 var _response = _requester.request(_url, | 636 var _response = _requester.request(_url, |
| 637 "GET", | 637 "GET", |
| 638 body: _body, | 638 body: _body, |
| 639 queryParams: _queryParams, | 639 queryParams: _queryParams, |
| 640 uploadOptions: _uploadOptions, | 640 uploadOptions: _uploadOptions, |
| 641 uploadMedia: _uploadMedia, | 641 uploadMedia: _uploadMedia, |
| 642 downloadOptions: _downloadOptions); | 642 downloadOptions: _downloadOptions); |
| (...skipping 422 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 |