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

Side by Side Diff: generated/googleapis/lib/firebaserules/v1.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months 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
« no previous file with comments | « generated/googleapis/lib/drive/v3.dart ('k') | generated/googleapis/lib/fusiontables/v2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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:crypto/crypto.dart' as crypto;
11 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
12 11
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
15 14
16 const core.String USER_AGENT = 'dart-api-client firebaserules/v1'; 15 const core.String USER_AGENT = 'dart-api-client firebaserules/v1';
17 16
18 /** 17 /**
19 * Creates and manages rules that determine when a Firebase Rules-enabled 18 * Creates and manages rules that determine when a Firebase Rules-enabled
20 * service should permit a request. 19 * service should permit a request.
21 */ 20 */
22 class FirebaserulesApi { 21 class FirebaserulesApi {
23 /** View and manage your data across Google Cloud Platform services */ 22 /** View and manage your data across Google Cloud Platform services */
24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
25 24
25 /** View and administer all your Firebase data and settings */
26 static const FirebaseScope = "https://www.googleapis.com/auth/firebase";
27
28 /** View all your Firebase data and settings */
29 static const FirebaseReadonlyScope = "https://www.googleapis.com/auth/firebase .readonly";
30
26 31
27 final commons.ApiRequester _requester; 32 final commons.ApiRequester _requester;
28 33
29 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 34 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
30 35
31 FirebaserulesApi(http.Client client, {core.String rootUrl: "https://firebaseru les.googleapis.com/", core.String servicePath: ""}) : 36 FirebaserulesApi(http.Client client, {core.String rootUrl: "https://firebaseru les.googleapis.com/", core.String servicePath: ""}) :
32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
33 } 38 }
34 39
35 40
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 } 672 }
668 } 673 }
669 674
670 /** `File` containing source content. */ 675 /** `File` containing source content. */
671 class File { 676 class File {
672 /** Textual Content. */ 677 /** Textual Content. */
673 core.String content; 678 core.String content;
674 /** Fingerprint (e.g. github sha) associated with the `File`. */ 679 /** Fingerprint (e.g. github sha) associated with the `File`. */
675 core.String fingerprint; 680 core.String fingerprint;
676 core.List<core.int> get fingerprintAsBytes { 681 core.List<core.int> get fingerprintAsBytes {
677 return crypto.CryptoUtils.base64StringToBytes(fingerprint); 682 return convert.BASE64.decode(fingerprint);
678 } 683 }
679 684
680 void set fingerprintAsBytes(core.List<core.int> _bytes) { 685 void set fingerprintAsBytes(core.List<core.int> _bytes) {
681 fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); 686 fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
682 } 687 }
683 /** File name. */ 688 /** File name. */
684 core.String name; 689 core.String name;
685 690
686 File(); 691 File();
687 692
688 File.fromJson(core.Map _json) { 693 File.fromJson(core.Map _json) {
689 if (_json.containsKey("content")) { 694 if (_json.containsKey("content")) {
690 content = _json["content"]; 695 content = _json["content"];
691 } 696 }
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 } 1066 }
1062 1067
1063 core.Map toJson() { 1068 core.Map toJson() {
1064 var _json = new core.Map(); 1069 var _json = new core.Map();
1065 if (issues != null) { 1070 if (issues != null) {
1066 _json["issues"] = issues.map((value) => (value).toJson()).toList(); 1071 _json["issues"] = issues.map((value) => (value).toJson()).toList();
1067 } 1072 }
1068 return _json; 1073 return _json;
1069 } 1074 }
1070 } 1075 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/drive/v3.dart ('k') | generated/googleapis/lib/fusiontables/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698