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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 * } | 71 * } |
72 * } | 72 * } |
73 * | 73 * |
74 * [request] - The metadata request object. | 74 * [request] - The metadata request object. |
75 * | 75 * |
76 * Request parameters: | 76 * Request parameters: |
77 * | 77 * |
78 * [name] - Name of the project. | 78 * [name] - Name of the project. |
79 * | 79 * |
80 * Format: `projects/{project_id}` | 80 * Format: `projects/{project_id}` |
81 * Value must have pattern "^projects/.*$". | 81 * Value must have pattern "^projects/.+$". |
82 * | 82 * |
83 * Completes with a [TestRulesetResponse]. | 83 * Completes with a [TestRulesetResponse]. |
84 * | 84 * |
85 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 85 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
86 * error. | 86 * error. |
87 * | 87 * |
88 * If the used [http.Client] completes with an error when making a REST call, | 88 * If the used [http.Client] completes with an error when making a REST call, |
89 * this method will complete with the same error. | 89 * this method will complete with the same error. |
90 */ | 90 */ |
91 async.Future<TestRulesetResponse> test(TestRulesetRequest request, core.String
name) { | 91 async.Future<TestRulesetResponse> test(TestRulesetRequest request, core.String
name) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 * updated using the UpdateRelease method, and the custom `Release` name | 149 * updated using the UpdateRelease method, and the custom `Release` name |
150 * may be referenced by specifying the `X-Firebase-Rules-Release-Name` header. | 150 * may be referenced by specifying the `X-Firebase-Rules-Release-Name` header. |
151 * | 151 * |
152 * [request] - The metadata request object. | 152 * [request] - The metadata request object. |
153 * | 153 * |
154 * Request parameters: | 154 * Request parameters: |
155 * | 155 * |
156 * [name] - Resource name for the project which owns this `Release`. | 156 * [name] - Resource name for the project which owns this `Release`. |
157 * | 157 * |
158 * Format: `projects/{project_id}` | 158 * Format: `projects/{project_id}` |
159 * Value must have pattern "^projects/[^/]*$". | 159 * Value must have pattern "^projects/[^/]+$". |
160 * | 160 * |
161 * Completes with a [Release]. | 161 * Completes with a [Release]. |
162 * | 162 * |
163 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 163 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
164 * error. | 164 * error. |
165 * | 165 * |
166 * If the used [http.Client] completes with an error when making a REST call, | 166 * If the used [http.Client] completes with an error when making a REST call, |
167 * this method will complete with the same error. | 167 * this method will complete with the same error. |
168 */ | 168 */ |
169 async.Future<Release> create(Release request, core.String name) { | 169 async.Future<Release> create(Release request, core.String name) { |
(...skipping 24 matching lines...) Expand all Loading... |
194 } | 194 } |
195 | 195 |
196 /** | 196 /** |
197 * Delete a `Release` by resource name. | 197 * Delete a `Release` by resource name. |
198 * | 198 * |
199 * Request parameters: | 199 * Request parameters: |
200 * | 200 * |
201 * [name] - Resource name for the `Release` to delete. | 201 * [name] - Resource name for the `Release` to delete. |
202 * | 202 * |
203 * Format: `projects/{project_id}/releases/{release_id}` | 203 * Format: `projects/{project_id}/releases/{release_id}` |
204 * Value must have pattern "^projects/[^/] * / releases/.*$". | 204 * Value must have pattern "^projects/[^/]+/releases/.+$". |
205 * | 205 * |
206 * Completes with a [Empty]. | 206 * Completes with a [Empty]. |
207 * | 207 * |
208 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 208 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
209 * error. | 209 * error. |
210 * | 210 * |
211 * If the used [http.Client] completes with an error when making a REST call, | 211 * If the used [http.Client] completes with an error when making a REST call, |
212 * this method will complete with the same error. | 212 * this method will complete with the same error. |
213 */ | 213 */ |
214 async.Future<Empty> delete(core.String name) { | 214 async.Future<Empty> delete(core.String name) { |
(...skipping 22 matching lines...) Expand all Loading... |
237 | 237 |
238 /** | 238 /** |
239 * Get a `Release` by name. | 239 * Get a `Release` by name. |
240 * | 240 * |
241 * Request parameters: | 241 * Request parameters: |
242 * | 242 * |
243 * [name] - Resource name of the `Release`. | 243 * [name] - Resource name of the `Release`. |
244 * | 244 * |
245 * | 245 * |
246 * Format: `projects/{project_id}/releases/{release_id}` | 246 * Format: `projects/{project_id}/releases/{release_id}` |
247 * Value must have pattern "^projects/[^/] * / releases/.*$". | 247 * Value must have pattern "^projects/[^/]+/releases/.+$". |
248 * | 248 * |
249 * Completes with a [Release]. | 249 * Completes with a [Release]. |
250 * | 250 * |
251 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 251 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
252 * error. | 252 * error. |
253 * | 253 * |
254 * If the used [http.Client] completes with an error when making a REST call, | 254 * If the used [http.Client] completes with an error when making a REST call, |
255 * this method will complete with the same error. | 255 * this method will complete with the same error. |
256 */ | 256 */ |
257 async.Future<Release> get(core.String name) { | 257 async.Future<Release> get(core.String name) { |
(...skipping 22 matching lines...) Expand all Loading... |
280 | 280 |
281 /** | 281 /** |
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 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. | 292 * [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 | 293 * 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 | 294 * 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. | 295 * releases, caller should iterate until the `page_token` is empty. |
296 * | 296 * |
297 * [filter] - `Release` filter. The list method supports filters with | 297 * [filter] - `Release` filter. The list method supports filters with |
298 * restrictions on the | 298 * restrictions on the |
299 * `Release` `name` and also on the `Ruleset` `ruleset_name`. | 299 * `Release` `name` and also on the `Ruleset` `ruleset_name`. |
300 * | 300 * |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 * Environments | releases/qa | releases/qa | 392 * Environments | releases/qa | releases/qa |
393 * Apps | releases/app1_qa | releases/app1/qa | 393 * Apps | releases/app1_qa | releases/app1/qa |
394 * Versions | releases/app1_v2_qa | releases/app1/v2/qa | 394 * Versions | releases/app1_v2_qa | releases/app1/v2/qa |
395 * | 395 * |
396 * The delimiter between the release name path elements can be almost anything | 396 * The delimiter between the release name path elements can be almost anything |
397 * and it should work equally well with the release name list filter, but in | 397 * and it should work equally well with the release name list filter, but in |
398 * many ways the structured paths provide a clearer picture of the | 398 * many ways the structured paths provide a clearer picture of the |
399 * relationship between `Release` instances. | 399 * relationship between `Release` instances. |
400 * | 400 * |
401 * Format: `projects/{project_id}/releases/{release_id}` | 401 * Format: `projects/{project_id}/releases/{release_id}` |
402 * Value must have pattern "^projects/[^/] * / releases/.*$". | 402 * Value must have pattern "^projects/[^/]+/releases/.+$". |
403 * | 403 * |
404 * Completes with a [Release]. | 404 * Completes with a [Release]. |
405 * | 405 * |
406 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 406 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
407 * error. | 407 * error. |
408 * | 408 * |
409 * If the used [http.Client] completes with an error when making a REST call, | 409 * If the used [http.Client] completes with an error when making a REST call, |
410 * this method will complete with the same error. | 410 * this method will complete with the same error. |
411 */ | 411 */ |
412 async.Future<Release> update(Release request, core.String name) { | 412 async.Future<Release> update(Release request, core.String name) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 * error response indicating the first error encountered. For a detailed view | 453 * error response indicating the first error encountered. For a detailed view |
454 * of `Source` issues, use TestRuleset. | 454 * of `Source` issues, use TestRuleset. |
455 * | 455 * |
456 * [request] - The metadata request object. | 456 * [request] - The metadata request object. |
457 * | 457 * |
458 * Request parameters: | 458 * Request parameters: |
459 * | 459 * |
460 * [name] - Resource name for Project which owns this `Ruleset`. | 460 * [name] - Resource name for Project which owns this `Ruleset`. |
461 * | 461 * |
462 * Format: `projects/{project_id}` | 462 * Format: `projects/{project_id}` |
463 * Value must have pattern "^projects/[^/]*$". | 463 * Value must have pattern "^projects/[^/]+$". |
464 * | 464 * |
465 * Completes with a [Ruleset]. | 465 * Completes with a [Ruleset]. |
466 * | 466 * |
467 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 467 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
468 * error. | 468 * error. |
469 * | 469 * |
470 * If the used [http.Client] completes with an error when making a REST call, | 470 * If the used [http.Client] completes with an error when making a REST call, |
471 * this method will complete with the same error. | 471 * this method will complete with the same error. |
472 */ | 472 */ |
473 async.Future<Ruleset> create(Ruleset request, core.String name) { | 473 async.Future<Ruleset> create(Ruleset request, core.String name) { |
(...skipping 26 matching lines...) Expand all Loading... |
500 /** | 500 /** |
501 * Delete a `Ruleset` by resource name. | 501 * Delete a `Ruleset` by resource name. |
502 * | 502 * |
503 * If the `Ruleset` is referenced by a `Release` the operation will fail. | 503 * If the `Ruleset` is referenced by a `Release` the operation will fail. |
504 * | 504 * |
505 * Request parameters: | 505 * Request parameters: |
506 * | 506 * |
507 * [name] - Resource name for the ruleset to delete. | 507 * [name] - Resource name for the ruleset to delete. |
508 * | 508 * |
509 * Format: `projects/{project_id}/rulesets/{ruleset_id}` | 509 * Format: `projects/{project_id}/rulesets/{ruleset_id}` |
510 * Value must have pattern "^projects/[^/] * / rulesets/[^/]*$". | 510 * Value must have pattern "^projects/[^/]+/rulesets/[^/]+$". |
511 * | 511 * |
512 * Completes with a [Empty]. | 512 * Completes with a [Empty]. |
513 * | 513 * |
514 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 514 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
515 * error. | 515 * error. |
516 * | 516 * |
517 * If the used [http.Client] completes with an error when making a REST call, | 517 * If the used [http.Client] completes with an error when making a REST call, |
518 * this method will complete with the same error. | 518 * this method will complete with the same error. |
519 */ | 519 */ |
520 async.Future<Empty> delete(core.String name) { | 520 async.Future<Empty> delete(core.String name) { |
(...skipping 21 matching lines...) Expand all Loading... |
542 } | 542 } |
543 | 543 |
544 /** | 544 /** |
545 * Get a `Ruleset` by name including the full `Source` contents. | 545 * Get a `Ruleset` by name including the full `Source` contents. |
546 * | 546 * |
547 * Request parameters: | 547 * Request parameters: |
548 * | 548 * |
549 * [name] - Resource name for the ruleset to get. | 549 * [name] - Resource name for the ruleset to get. |
550 * | 550 * |
551 * Format: `projects/{project_id}/rulesets/{ruleset_id}` | 551 * Format: `projects/{project_id}/rulesets/{ruleset_id}` |
552 * Value must have pattern "^projects/[^/] * / rulesets/[^/]*$". | 552 * Value must have pattern "^projects/[^/]+/rulesets/[^/]+$". |
553 * | 553 * |
554 * Completes with a [Ruleset]. | 554 * Completes with a [Ruleset]. |
555 * | 555 * |
556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
557 * error. | 557 * error. |
558 * | 558 * |
559 * If the used [http.Client] completes with an error when making a REST call, | 559 * If the used [http.Client] completes with an error when making a REST call, |
560 * this method will complete with the same error. | 560 * this method will complete with the same error. |
561 */ | 561 */ |
562 async.Future<Ruleset> get(core.String name) { | 562 async.Future<Ruleset> get(core.String name) { |
(...skipping 25 matching lines...) Expand all Loading... |
588 * name. | 588 * name. |
589 * | 589 * |
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 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. | 600 * [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 | 601 * 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 | 602 * 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. | 603 * releases, caller should iterate until the `page_token` is empty. |
604 * | 604 * |
605 * [pageToken] - Next page token for loading the next batch of `Ruleset` | 605 * [pageToken] - Next page token for loading the next batch of `Ruleset` |
606 * instances. | 606 * instances. |
607 * | 607 * |
608 * Completes with a [ListRulesetsResponse]. | 608 * Completes with a [ListRulesetsResponse]. |
(...skipping 456 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 |