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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 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
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.iam.v1; 3 library googleapis.iam.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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 /** 234 /**
235 * Lists ServiceAccounts for a project. 235 * Lists ServiceAccounts for a project.
236 * 236 *
237 * Request parameters: 237 * Request parameters:
238 * 238 *
239 * [name] - Required. The resource name of the project associated with the 239 * [name] - Required. The resource name of the project associated with the
240 * service 240 * service
241 * accounts, such as `projects/my-project-123`. 241 * accounts, such as `projects/my-project-123`.
242 * Value must have pattern "^projects/[^/]+$". 242 * Value must have pattern "^projects/[^/]+$".
243 * 243 *
244 * [pageToken] - Optional pagination token returned in an earlier
245 * ListServiceAccountsResponse.next_page_token.
246 *
244 * [pageSize] - Optional limit on the number of service accounts to include in 247 * [pageSize] - Optional limit on the number of service accounts to include in
245 * the 248 * the
246 * response. Further accounts can subsequently be obtained by including the 249 * response. Further accounts can subsequently be obtained by including the
247 * ListServiceAccountsResponse.next_page_token 250 * ListServiceAccountsResponse.next_page_token
248 * in a subsequent request. 251 * in a subsequent request.
249 * 252 *
250 * [pageToken] - Optional pagination token returned in an earlier
251 * ListServiceAccountsResponse.next_page_token.
252 *
253 * Completes with a [ListServiceAccountsResponse]. 253 * Completes with a [ListServiceAccountsResponse].
254 * 254 *
255 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 255 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
256 * error. 256 * error.
257 * 257 *
258 * If the used [http.Client] completes with an error when making a REST call, 258 * If the used [http.Client] completes with an error when making a REST call,
259 * this method will complete with the same error. 259 * this method will complete with the same error.
260 */ 260 */
261 async.Future<ListServiceAccountsResponse> list(core.String name, {core.int pag eSize, core.String pageToken}) { 261 async.Future<ListServiceAccountsResponse> list(core.String name, {core.String pageToken, core.int pageSize}) {
262 var _url = null; 262 var _url = null;
263 var _queryParams = new core.Map(); 263 var _queryParams = new core.Map();
264 var _uploadMedia = null; 264 var _uploadMedia = null;
265 var _uploadOptions = null; 265 var _uploadOptions = null;
266 var _downloadOptions = commons.DownloadOptions.Metadata; 266 var _downloadOptions = commons.DownloadOptions.Metadata;
267 var _body = null; 267 var _body = null;
268 268
269 if (name == null) { 269 if (name == null) {
270 throw new core.ArgumentError("Parameter name is required."); 270 throw new core.ArgumentError("Parameter name is required.");
271 } 271 }
272 if (pageToken != null) {
273 _queryParams["pageToken"] = [pageToken];
274 }
272 if (pageSize != null) { 275 if (pageSize != null) {
273 _queryParams["pageSize"] = ["${pageSize}"]; 276 _queryParams["pageSize"] = ["${pageSize}"];
274 } 277 }
275 if (pageToken != null) {
276 _queryParams["pageToken"] = [pageToken];
277 }
278 278
279 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/serviceAcc ounts'; 279 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/serviceAcc ounts';
280 280
281 var _response = _requester.request(_url, 281 var _response = _requester.request(_url,
282 "GET", 282 "GET",
283 body: _body, 283 body: _body,
284 queryParams: _queryParams, 284 queryParams: _queryParams,
285 uploadOptions: _uploadOptions, 285 uploadOptions: _uploadOptions,
286 uploadMedia: _uploadMedia, 286 uploadMedia: _uploadMedia,
287 downloadOptions: _downloadOptions); 287 downloadOptions: _downloadOptions);
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 PolicyDelta policyDelta; 823 PolicyDelta policyDelta;
824 824
825 AuditData(); 825 AuditData();
826 826
827 AuditData.fromJson(core.Map _json) { 827 AuditData.fromJson(core.Map _json) {
828 if (_json.containsKey("policyDelta")) { 828 if (_json.containsKey("policyDelta")) {
829 policyDelta = new PolicyDelta.fromJson(_json["policyDelta"]); 829 policyDelta = new PolicyDelta.fromJson(_json["policyDelta"]);
830 } 830 }
831 } 831 }
832 832
833 core.Map toJson() { 833 core.Map<core.String, core.Object> toJson() {
834 var _json = new core.Map(); 834 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
835 if (policyDelta != null) { 835 if (policyDelta != null) {
836 _json["policyDelta"] = (policyDelta).toJson(); 836 _json["policyDelta"] = (policyDelta).toJson();
837 } 837 }
838 return _json; 838 return _json;
839 } 839 }
840 } 840 }
841 841
842 /** Associates `members` with a `role`. */ 842 /** Associates `members` with a `role`. */
843 class Binding { 843 class Binding {
844 /** 844 /**
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 877
878 Binding.fromJson(core.Map _json) { 878 Binding.fromJson(core.Map _json) {
879 if (_json.containsKey("members")) { 879 if (_json.containsKey("members")) {
880 members = _json["members"]; 880 members = _json["members"];
881 } 881 }
882 if (_json.containsKey("role")) { 882 if (_json.containsKey("role")) {
883 role = _json["role"]; 883 role = _json["role"];
884 } 884 }
885 } 885 }
886 886
887 core.Map toJson() { 887 core.Map<core.String, core.Object> toJson() {
888 var _json = new core.Map(); 888 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
889 if (members != null) { 889 if (members != null) {
890 _json["members"] = members; 890 _json["members"] = members;
891 } 891 }
892 if (role != null) { 892 if (role != null) {
893 _json["role"] = role; 893 _json["role"] = role;
894 } 894 }
895 return _json; 895 return _json;
896 } 896 }
897 } 897 }
898 898
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 action = _json["action"]; 930 action = _json["action"];
931 } 931 }
932 if (_json.containsKey("member")) { 932 if (_json.containsKey("member")) {
933 member = _json["member"]; 933 member = _json["member"];
934 } 934 }
935 if (_json.containsKey("role")) { 935 if (_json.containsKey("role")) {
936 role = _json["role"]; 936 role = _json["role"];
937 } 937 }
938 } 938 }
939 939
940 core.Map toJson() { 940 core.Map<core.String, core.Object> toJson() {
941 var _json = new core.Map(); 941 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
942 if (action != null) { 942 if (action != null) {
943 _json["action"] = action; 943 _json["action"] = action;
944 } 944 }
945 if (member != null) { 945 if (member != null) {
946 _json["member"] = member; 946 _json["member"] = member;
947 } 947 }
948 if (role != null) { 948 if (role != null) {
949 _json["role"] = role; 949 _json["role"] = role;
950 } 950 }
951 return _json; 951 return _json;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 includePublicKeyData = _json["includePublicKeyData"]; 985 includePublicKeyData = _json["includePublicKeyData"];
986 } 986 }
987 if (_json.containsKey("keyAlgorithm")) { 987 if (_json.containsKey("keyAlgorithm")) {
988 keyAlgorithm = _json["keyAlgorithm"]; 988 keyAlgorithm = _json["keyAlgorithm"];
989 } 989 }
990 if (_json.containsKey("privateKeyType")) { 990 if (_json.containsKey("privateKeyType")) {
991 privateKeyType = _json["privateKeyType"]; 991 privateKeyType = _json["privateKeyType"];
992 } 992 }
993 } 993 }
994 994
995 core.Map toJson() { 995 core.Map<core.String, core.Object> toJson() {
996 var _json = new core.Map(); 996 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
997 if (includePublicKeyData != null) { 997 if (includePublicKeyData != null) {
998 _json["includePublicKeyData"] = includePublicKeyData; 998 _json["includePublicKeyData"] = includePublicKeyData;
999 } 999 }
1000 if (keyAlgorithm != null) { 1000 if (keyAlgorithm != null) {
1001 _json["keyAlgorithm"] = keyAlgorithm; 1001 _json["keyAlgorithm"] = keyAlgorithm;
1002 } 1002 }
1003 if (privateKeyType != null) { 1003 if (privateKeyType != null) {
1004 _json["privateKeyType"] = privateKeyType; 1004 _json["privateKeyType"] = privateKeyType;
1005 } 1005 }
1006 return _json; 1006 return _json;
(...skipping 20 matching lines...) Expand all
1027 1027
1028 CreateServiceAccountRequest.fromJson(core.Map _json) { 1028 CreateServiceAccountRequest.fromJson(core.Map _json) {
1029 if (_json.containsKey("accountId")) { 1029 if (_json.containsKey("accountId")) {
1030 accountId = _json["accountId"]; 1030 accountId = _json["accountId"];
1031 } 1031 }
1032 if (_json.containsKey("serviceAccount")) { 1032 if (_json.containsKey("serviceAccount")) {
1033 serviceAccount = new ServiceAccount.fromJson(_json["serviceAccount"]); 1033 serviceAccount = new ServiceAccount.fromJson(_json["serviceAccount"]);
1034 } 1034 }
1035 } 1035 }
1036 1036
1037 core.Map toJson() { 1037 core.Map<core.String, core.Object> toJson() {
1038 var _json = new core.Map(); 1038 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1039 if (accountId != null) { 1039 if (accountId != null) {
1040 _json["accountId"] = accountId; 1040 _json["accountId"] = accountId;
1041 } 1041 }
1042 if (serviceAccount != null) { 1042 if (serviceAccount != null) {
1043 _json["serviceAccount"] = (serviceAccount).toJson(); 1043 _json["serviceAccount"] = (serviceAccount).toJson();
1044 } 1044 }
1045 return _json; 1045 return _json;
1046 } 1046 }
1047 } 1047 }
1048 1048
1049 /** 1049 /**
1050 * A generic empty message that you can re-use to avoid defining duplicated 1050 * A generic empty message that you can re-use to avoid defining duplicated
1051 * empty messages in your APIs. A typical example is to use it as the request 1051 * empty messages in your APIs. A typical example is to use it as the request
1052 * or the response type of an API method. For instance: 1052 * or the response type of an API method. For instance:
1053 * 1053 *
1054 * service Foo { 1054 * service Foo {
1055 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 1055 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1056 * } 1056 * }
1057 * 1057 *
1058 * The JSON representation for `Empty` is empty JSON object `{}`. 1058 * The JSON representation for `Empty` is empty JSON object `{}`.
1059 */ 1059 */
1060 class Empty { 1060 class Empty {
1061 1061
1062 Empty(); 1062 Empty();
1063 1063
1064 Empty.fromJson(core.Map _json) { 1064 Empty.fromJson(core.Map _json) {
1065 } 1065 }
1066 1066
1067 core.Map toJson() { 1067 core.Map<core.String, core.Object> toJson() {
1068 var _json = new core.Map(); 1068 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1069 return _json; 1069 return _json;
1070 } 1070 }
1071 } 1071 }
1072 1072
1073 /** The service account keys list response. */ 1073 /** The service account keys list response. */
1074 class ListServiceAccountKeysResponse { 1074 class ListServiceAccountKeysResponse {
1075 /** The public keys for the service account. */ 1075 /** The public keys for the service account. */
1076 core.List<ServiceAccountKey> keys; 1076 core.List<ServiceAccountKey> keys;
1077 1077
1078 ListServiceAccountKeysResponse(); 1078 ListServiceAccountKeysResponse();
1079 1079
1080 ListServiceAccountKeysResponse.fromJson(core.Map _json) { 1080 ListServiceAccountKeysResponse.fromJson(core.Map _json) {
1081 if (_json.containsKey("keys")) { 1081 if (_json.containsKey("keys")) {
1082 keys = _json["keys"].map((value) => new ServiceAccountKey.fromJson(value)) .toList(); 1082 keys = _json["keys"].map((value) => new ServiceAccountKey.fromJson(value)) .toList();
1083 } 1083 }
1084 } 1084 }
1085 1085
1086 core.Map toJson() { 1086 core.Map<core.String, core.Object> toJson() {
1087 var _json = new core.Map(); 1087 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1088 if (keys != null) { 1088 if (keys != null) {
1089 _json["keys"] = keys.map((value) => (value).toJson()).toList(); 1089 _json["keys"] = keys.map((value) => (value).toJson()).toList();
1090 } 1090 }
1091 return _json; 1091 return _json;
1092 } 1092 }
1093 } 1093 }
1094 1094
1095 /** The service account list response. */ 1095 /** The service account list response. */
1096 class ListServiceAccountsResponse { 1096 class ListServiceAccountsResponse {
1097 /** The list of matching service accounts. */ 1097 /** The list of matching service accounts. */
1098 core.List<ServiceAccount> accounts; 1098 core.List<ServiceAccount> accounts;
1099 /** 1099 /**
1100 * To retrieve the next page of results, set 1100 * To retrieve the next page of results, set
1101 * ListServiceAccountsRequest.page_token 1101 * ListServiceAccountsRequest.page_token
1102 * to this value. 1102 * to this value.
1103 */ 1103 */
1104 core.String nextPageToken; 1104 core.String nextPageToken;
1105 1105
1106 ListServiceAccountsResponse(); 1106 ListServiceAccountsResponse();
1107 1107
1108 ListServiceAccountsResponse.fromJson(core.Map _json) { 1108 ListServiceAccountsResponse.fromJson(core.Map _json) {
1109 if (_json.containsKey("accounts")) { 1109 if (_json.containsKey("accounts")) {
1110 accounts = _json["accounts"].map((value) => new ServiceAccount.fromJson(va lue)).toList(); 1110 accounts = _json["accounts"].map((value) => new ServiceAccount.fromJson(va lue)).toList();
1111 } 1111 }
1112 if (_json.containsKey("nextPageToken")) { 1112 if (_json.containsKey("nextPageToken")) {
1113 nextPageToken = _json["nextPageToken"]; 1113 nextPageToken = _json["nextPageToken"];
1114 } 1114 }
1115 } 1115 }
1116 1116
1117 core.Map toJson() { 1117 core.Map<core.String, core.Object> toJson() {
1118 var _json = new core.Map(); 1118 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1119 if (accounts != null) { 1119 if (accounts != null) {
1120 _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); 1120 _json["accounts"] = accounts.map((value) => (value).toJson()).toList();
1121 } 1121 }
1122 if (nextPageToken != null) { 1122 if (nextPageToken != null) {
1123 _json["nextPageToken"] = nextPageToken; 1123 _json["nextPageToken"] = nextPageToken;
1124 } 1124 }
1125 return _json; 1125 return _json;
1126 } 1126 }
1127 } 1127 }
1128 1128
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList(); 1196 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList();
1197 } 1197 }
1198 if (_json.containsKey("etag")) { 1198 if (_json.containsKey("etag")) {
1199 etag = _json["etag"]; 1199 etag = _json["etag"];
1200 } 1200 }
1201 if (_json.containsKey("version")) { 1201 if (_json.containsKey("version")) {
1202 version = _json["version"]; 1202 version = _json["version"];
1203 } 1203 }
1204 } 1204 }
1205 1205
1206 core.Map toJson() { 1206 core.Map<core.String, core.Object> toJson() {
1207 var _json = new core.Map(); 1207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1208 if (bindings != null) { 1208 if (bindings != null) {
1209 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 1209 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
1210 } 1210 }
1211 if (etag != null) { 1211 if (etag != null) {
1212 _json["etag"] = etag; 1212 _json["etag"] = etag;
1213 } 1213 }
1214 if (version != null) { 1214 if (version != null) {
1215 _json["version"] = version; 1215 _json["version"] = version;
1216 } 1216 }
1217 return _json; 1217 return _json;
1218 } 1218 }
1219 } 1219 }
1220 1220
1221 /** The difference delta between two policies. */ 1221 /** The difference delta between two policies. */
1222 class PolicyDelta { 1222 class PolicyDelta {
1223 /** The delta for Bindings between two policies. */ 1223 /** The delta for Bindings between two policies. */
1224 core.List<BindingDelta> bindingDeltas; 1224 core.List<BindingDelta> bindingDeltas;
1225 1225
1226 PolicyDelta(); 1226 PolicyDelta();
1227 1227
1228 PolicyDelta.fromJson(core.Map _json) { 1228 PolicyDelta.fromJson(core.Map _json) {
1229 if (_json.containsKey("bindingDeltas")) { 1229 if (_json.containsKey("bindingDeltas")) {
1230 bindingDeltas = _json["bindingDeltas"].map((value) => new BindingDelta.fro mJson(value)).toList(); 1230 bindingDeltas = _json["bindingDeltas"].map((value) => new BindingDelta.fro mJson(value)).toList();
1231 } 1231 }
1232 } 1232 }
1233 1233
1234 core.Map toJson() { 1234 core.Map<core.String, core.Object> toJson() {
1235 var _json = new core.Map(); 1235 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1236 if (bindingDeltas != null) { 1236 if (bindingDeltas != null) {
1237 _json["bindingDeltas"] = bindingDeltas.map((value) => (value).toJson()).to List(); 1237 _json["bindingDeltas"] = bindingDeltas.map((value) => (value).toJson()).to List();
1238 } 1238 }
1239 return _json; 1239 return _json;
1240 } 1240 }
1241 } 1241 }
1242 1242
1243 /** The grantable role query request. */ 1243 /** The grantable role query request. */
1244 class QueryGrantableRolesRequest { 1244 class QueryGrantableRolesRequest {
1245 /** 1245 /**
(...skipping 19 matching lines...) Expand all
1265 fullResourceName = _json["fullResourceName"]; 1265 fullResourceName = _json["fullResourceName"];
1266 } 1266 }
1267 if (_json.containsKey("pageSize")) { 1267 if (_json.containsKey("pageSize")) {
1268 pageSize = _json["pageSize"]; 1268 pageSize = _json["pageSize"];
1269 } 1269 }
1270 if (_json.containsKey("pageToken")) { 1270 if (_json.containsKey("pageToken")) {
1271 pageToken = _json["pageToken"]; 1271 pageToken = _json["pageToken"];
1272 } 1272 }
1273 } 1273 }
1274 1274
1275 core.Map toJson() { 1275 core.Map<core.String, core.Object> toJson() {
1276 var _json = new core.Map(); 1276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1277 if (fullResourceName != null) { 1277 if (fullResourceName != null) {
1278 _json["fullResourceName"] = fullResourceName; 1278 _json["fullResourceName"] = fullResourceName;
1279 } 1279 }
1280 if (pageSize != null) { 1280 if (pageSize != null) {
1281 _json["pageSize"] = pageSize; 1281 _json["pageSize"] = pageSize;
1282 } 1282 }
1283 if (pageToken != null) { 1283 if (pageToken != null) {
1284 _json["pageToken"] = pageToken; 1284 _json["pageToken"] = pageToken;
1285 } 1285 }
1286 return _json; 1286 return _json;
(...skipping 14 matching lines...) Expand all
1301 1301
1302 QueryGrantableRolesResponse.fromJson(core.Map _json) { 1302 QueryGrantableRolesResponse.fromJson(core.Map _json) {
1303 if (_json.containsKey("nextPageToken")) { 1303 if (_json.containsKey("nextPageToken")) {
1304 nextPageToken = _json["nextPageToken"]; 1304 nextPageToken = _json["nextPageToken"];
1305 } 1305 }
1306 if (_json.containsKey("roles")) { 1306 if (_json.containsKey("roles")) {
1307 roles = _json["roles"].map((value) => new Role.fromJson(value)).toList(); 1307 roles = _json["roles"].map((value) => new Role.fromJson(value)).toList();
1308 } 1308 }
1309 } 1309 }
1310 1310
1311 core.Map toJson() { 1311 core.Map<core.String, core.Object> toJson() {
1312 var _json = new core.Map(); 1312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1313 if (nextPageToken != null) { 1313 if (nextPageToken != null) {
1314 _json["nextPageToken"] = nextPageToken; 1314 _json["nextPageToken"] = nextPageToken;
1315 } 1315 }
1316 if (roles != null) { 1316 if (roles != null) {
1317 _json["roles"] = roles.map((value) => (value).toJson()).toList(); 1317 _json["roles"] = roles.map((value) => (value).toJson()).toList();
1318 } 1318 }
1319 return _json; 1319 return _json;
1320 } 1320 }
1321 } 1321 }
1322 1322
(...skipping 24 matching lines...) Expand all
1347 description = _json["description"]; 1347 description = _json["description"];
1348 } 1348 }
1349 if (_json.containsKey("name")) { 1349 if (_json.containsKey("name")) {
1350 name = _json["name"]; 1350 name = _json["name"];
1351 } 1351 }
1352 if (_json.containsKey("title")) { 1352 if (_json.containsKey("title")) {
1353 title = _json["title"]; 1353 title = _json["title"];
1354 } 1354 }
1355 } 1355 }
1356 1356
1357 core.Map toJson() { 1357 core.Map<core.String, core.Object> toJson() {
1358 var _json = new core.Map(); 1358 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1359 if (description != null) { 1359 if (description != null) {
1360 _json["description"] = description; 1360 _json["description"] = description;
1361 } 1361 }
1362 if (name != null) { 1362 if (name != null) {
1363 _json["name"] = name; 1363 _json["name"] = name;
1364 } 1364 }
1365 if (title != null) { 1365 if (title != null) {
1366 _json["title"] = title; 1366 _json["title"] = title;
1367 } 1367 }
1368 return _json; 1368 return _json;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 oauth2ClientId = _json["oauth2ClientId"]; 1447 oauth2ClientId = _json["oauth2ClientId"];
1448 } 1448 }
1449 if (_json.containsKey("projectId")) { 1449 if (_json.containsKey("projectId")) {
1450 projectId = _json["projectId"]; 1450 projectId = _json["projectId"];
1451 } 1451 }
1452 if (_json.containsKey("uniqueId")) { 1452 if (_json.containsKey("uniqueId")) {
1453 uniqueId = _json["uniqueId"]; 1453 uniqueId = _json["uniqueId"];
1454 } 1454 }
1455 } 1455 }
1456 1456
1457 core.Map toJson() { 1457 core.Map<core.String, core.Object> toJson() {
1458 var _json = new core.Map(); 1458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1459 if (displayName != null) { 1459 if (displayName != null) {
1460 _json["displayName"] = displayName; 1460 _json["displayName"] = displayName;
1461 } 1461 }
1462 if (email != null) { 1462 if (email != null) {
1463 _json["email"] = email; 1463 _json["email"] = email;
1464 } 1464 }
1465 if (etag != null) { 1465 if (etag != null) {
1466 _json["etag"] = etag; 1466 _json["etag"] = etag;
1467 } 1467 }
1468 if (name != null) { 1468 if (name != null) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 publicKeyData = _json["publicKeyData"]; 1576 publicKeyData = _json["publicKeyData"];
1577 } 1577 }
1578 if (_json.containsKey("validAfterTime")) { 1578 if (_json.containsKey("validAfterTime")) {
1579 validAfterTime = _json["validAfterTime"]; 1579 validAfterTime = _json["validAfterTime"];
1580 } 1580 }
1581 if (_json.containsKey("validBeforeTime")) { 1581 if (_json.containsKey("validBeforeTime")) {
1582 validBeforeTime = _json["validBeforeTime"]; 1582 validBeforeTime = _json["validBeforeTime"];
1583 } 1583 }
1584 } 1584 }
1585 1585
1586 core.Map toJson() { 1586 core.Map<core.String, core.Object> toJson() {
1587 var _json = new core.Map(); 1587 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1588 if (keyAlgorithm != null) { 1588 if (keyAlgorithm != null) {
1589 _json["keyAlgorithm"] = keyAlgorithm; 1589 _json["keyAlgorithm"] = keyAlgorithm;
1590 } 1590 }
1591 if (name != null) { 1591 if (name != null) {
1592 _json["name"] = name; 1592 _json["name"] = name;
1593 } 1593 }
1594 if (privateKeyData != null) { 1594 if (privateKeyData != null) {
1595 _json["privateKeyData"] = privateKeyData; 1595 _json["privateKeyData"] = privateKeyData;
1596 } 1596 }
1597 if (privateKeyType != null) { 1597 if (privateKeyType != null) {
(...skipping 23 matching lines...) Expand all
1621 Policy policy; 1621 Policy policy;
1622 1622
1623 SetIamPolicyRequest(); 1623 SetIamPolicyRequest();
1624 1624
1625 SetIamPolicyRequest.fromJson(core.Map _json) { 1625 SetIamPolicyRequest.fromJson(core.Map _json) {
1626 if (_json.containsKey("policy")) { 1626 if (_json.containsKey("policy")) {
1627 policy = new Policy.fromJson(_json["policy"]); 1627 policy = new Policy.fromJson(_json["policy"]);
1628 } 1628 }
1629 } 1629 }
1630 1630
1631 core.Map toJson() { 1631 core.Map<core.String, core.Object> toJson() {
1632 var _json = new core.Map(); 1632 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1633 if (policy != null) { 1633 if (policy != null) {
1634 _json["policy"] = (policy).toJson(); 1634 _json["policy"] = (policy).toJson();
1635 } 1635 }
1636 return _json; 1636 return _json;
1637 } 1637 }
1638 } 1638 }
1639 1639
1640 /** The service account sign blob request. */ 1640 /** The service account sign blob request. */
1641 class SignBlobRequest { 1641 class SignBlobRequest {
1642 /** The bytes to sign. */ 1642 /** The bytes to sign. */
1643 core.String bytesToSign; 1643 core.String bytesToSign;
1644 core.List<core.int> get bytesToSignAsBytes { 1644 core.List<core.int> get bytesToSignAsBytes {
1645 return convert.BASE64.decode(bytesToSign); 1645 return convert.BASE64.decode(bytesToSign);
1646 } 1646 }
1647 1647
1648 void set bytesToSignAsBytes(core.List<core.int> _bytes) { 1648 void set bytesToSignAsBytes(core.List<core.int> _bytes) {
1649 bytesToSign = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 1649 bytesToSign = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
1650 } 1650 }
1651 1651
1652 SignBlobRequest(); 1652 SignBlobRequest();
1653 1653
1654 SignBlobRequest.fromJson(core.Map _json) { 1654 SignBlobRequest.fromJson(core.Map _json) {
1655 if (_json.containsKey("bytesToSign")) { 1655 if (_json.containsKey("bytesToSign")) {
1656 bytesToSign = _json["bytesToSign"]; 1656 bytesToSign = _json["bytesToSign"];
1657 } 1657 }
1658 } 1658 }
1659 1659
1660 core.Map toJson() { 1660 core.Map<core.String, core.Object> toJson() {
1661 var _json = new core.Map(); 1661 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1662 if (bytesToSign != null) { 1662 if (bytesToSign != null) {
1663 _json["bytesToSign"] = bytesToSign; 1663 _json["bytesToSign"] = bytesToSign;
1664 } 1664 }
1665 return _json; 1665 return _json;
1666 } 1666 }
1667 } 1667 }
1668 1668
1669 /** The service account sign blob response. */ 1669 /** The service account sign blob response. */
1670 class SignBlobResponse { 1670 class SignBlobResponse {
1671 /** The id of the key used to sign the blob. */ 1671 /** The id of the key used to sign the blob. */
(...skipping 12 matching lines...) Expand all
1684 1684
1685 SignBlobResponse.fromJson(core.Map _json) { 1685 SignBlobResponse.fromJson(core.Map _json) {
1686 if (_json.containsKey("keyId")) { 1686 if (_json.containsKey("keyId")) {
1687 keyId = _json["keyId"]; 1687 keyId = _json["keyId"];
1688 } 1688 }
1689 if (_json.containsKey("signature")) { 1689 if (_json.containsKey("signature")) {
1690 signature = _json["signature"]; 1690 signature = _json["signature"];
1691 } 1691 }
1692 } 1692 }
1693 1693
1694 core.Map toJson() { 1694 core.Map<core.String, core.Object> toJson() {
1695 var _json = new core.Map(); 1695 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1696 if (keyId != null) { 1696 if (keyId != null) {
1697 _json["keyId"] = keyId; 1697 _json["keyId"] = keyId;
1698 } 1698 }
1699 if (signature != null) { 1699 if (signature != null) {
1700 _json["signature"] = signature; 1700 _json["signature"] = signature;
1701 } 1701 }
1702 return _json; 1702 return _json;
1703 } 1703 }
1704 } 1704 }
1705 1705
1706 /** The service account sign JWT request. */ 1706 /** The service account sign JWT request. */
1707 class SignJwtRequest { 1707 class SignJwtRequest {
1708 /** The JWT payload to sign, a JSON JWT Claim set. */ 1708 /** The JWT payload to sign, a JSON JWT Claim set. */
1709 core.String payload; 1709 core.String payload;
1710 1710
1711 SignJwtRequest(); 1711 SignJwtRequest();
1712 1712
1713 SignJwtRequest.fromJson(core.Map _json) { 1713 SignJwtRequest.fromJson(core.Map _json) {
1714 if (_json.containsKey("payload")) { 1714 if (_json.containsKey("payload")) {
1715 payload = _json["payload"]; 1715 payload = _json["payload"];
1716 } 1716 }
1717 } 1717 }
1718 1718
1719 core.Map toJson() { 1719 core.Map<core.String, core.Object> toJson() {
1720 var _json = new core.Map(); 1720 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1721 if (payload != null) { 1721 if (payload != null) {
1722 _json["payload"] = payload; 1722 _json["payload"] = payload;
1723 } 1723 }
1724 return _json; 1724 return _json;
1725 } 1725 }
1726 } 1726 }
1727 1727
1728 /** The service account sign JWT response. */ 1728 /** The service account sign JWT response. */
1729 class SignJwtResponse { 1729 class SignJwtResponse {
1730 /** The id of the key used to sign the JWT. */ 1730 /** The id of the key used to sign the JWT. */
1731 core.String keyId; 1731 core.String keyId;
1732 /** The signed JWT. */ 1732 /** The signed JWT. */
1733 core.String signedJwt; 1733 core.String signedJwt;
1734 1734
1735 SignJwtResponse(); 1735 SignJwtResponse();
1736 1736
1737 SignJwtResponse.fromJson(core.Map _json) { 1737 SignJwtResponse.fromJson(core.Map _json) {
1738 if (_json.containsKey("keyId")) { 1738 if (_json.containsKey("keyId")) {
1739 keyId = _json["keyId"]; 1739 keyId = _json["keyId"];
1740 } 1740 }
1741 if (_json.containsKey("signedJwt")) { 1741 if (_json.containsKey("signedJwt")) {
1742 signedJwt = _json["signedJwt"]; 1742 signedJwt = _json["signedJwt"];
1743 } 1743 }
1744 } 1744 }
1745 1745
1746 core.Map toJson() { 1746 core.Map<core.String, core.Object> toJson() {
1747 var _json = new core.Map(); 1747 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1748 if (keyId != null) { 1748 if (keyId != null) {
1749 _json["keyId"] = keyId; 1749 _json["keyId"] = keyId;
1750 } 1750 }
1751 if (signedJwt != null) { 1751 if (signedJwt != null) {
1752 _json["signedJwt"] = signedJwt; 1752 _json["signedJwt"] = signedJwt;
1753 } 1753 }
1754 return _json; 1754 return _json;
1755 } 1755 }
1756 } 1756 }
1757 1757
1758 /** Request message for `TestIamPermissions` method. */ 1758 /** Request message for `TestIamPermissions` method. */
1759 class TestIamPermissionsRequest { 1759 class TestIamPermissionsRequest {
1760 /** 1760 /**
1761 * The set of permissions to check for the `resource`. Permissions with 1761 * The set of permissions to check for the `resource`. Permissions with
1762 * wildcards (such as '*' or 'storage.*') are not allowed. For more 1762 * wildcards (such as '*' or 'storage.*') are not allowed. For more
1763 * information see 1763 * information see
1764 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 1764 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1765 */ 1765 */
1766 core.List<core.String> permissions; 1766 core.List<core.String> permissions;
1767 1767
1768 TestIamPermissionsRequest(); 1768 TestIamPermissionsRequest();
1769 1769
1770 TestIamPermissionsRequest.fromJson(core.Map _json) { 1770 TestIamPermissionsRequest.fromJson(core.Map _json) {
1771 if (_json.containsKey("permissions")) { 1771 if (_json.containsKey("permissions")) {
1772 permissions = _json["permissions"]; 1772 permissions = _json["permissions"];
1773 } 1773 }
1774 } 1774 }
1775 1775
1776 core.Map toJson() { 1776 core.Map<core.String, core.Object> toJson() {
1777 var _json = new core.Map(); 1777 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1778 if (permissions != null) { 1778 if (permissions != null) {
1779 _json["permissions"] = permissions; 1779 _json["permissions"] = permissions;
1780 } 1780 }
1781 return _json; 1781 return _json;
1782 } 1782 }
1783 } 1783 }
1784 1784
1785 /** Response message for `TestIamPermissions` method. */ 1785 /** Response message for `TestIamPermissions` method. */
1786 class TestIamPermissionsResponse { 1786 class TestIamPermissionsResponse {
1787 /** 1787 /**
1788 * A subset of `TestPermissionsRequest.permissions` that the caller is 1788 * A subset of `TestPermissionsRequest.permissions` that the caller is
1789 * allowed. 1789 * allowed.
1790 */ 1790 */
1791 core.List<core.String> permissions; 1791 core.List<core.String> permissions;
1792 1792
1793 TestIamPermissionsResponse(); 1793 TestIamPermissionsResponse();
1794 1794
1795 TestIamPermissionsResponse.fromJson(core.Map _json) { 1795 TestIamPermissionsResponse.fromJson(core.Map _json) {
1796 if (_json.containsKey("permissions")) { 1796 if (_json.containsKey("permissions")) {
1797 permissions = _json["permissions"]; 1797 permissions = _json["permissions"];
1798 } 1798 }
1799 } 1799 }
1800 1800
1801 core.Map toJson() { 1801 core.Map<core.String, core.Object> toJson() {
1802 var _json = new core.Map(); 1802 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1803 if (permissions != null) { 1803 if (permissions != null) {
1804 _json["permissions"] = permissions; 1804 _json["permissions"] = permissions;
1805 } 1805 }
1806 return _json; 1806 return _json;
1807 } 1807 }
1808 } 1808 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/groupssettings/v1.dart ('k') | generated/googleapis/lib/identitytoolkit/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698