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.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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 /** The grantable role query request. */ | 1235 /** The grantable role query request. */ |
1236 class QueryGrantableRolesRequest { | 1236 class QueryGrantableRolesRequest { |
1237 /** | 1237 /** |
1238 * Required. The full resource name to query from the list of grantable roles. | 1238 * Required. The full resource name to query from the list of grantable roles. |
1239 * | 1239 * |
1240 * The name follows the Google Cloud Platform resource format. | 1240 * The name follows the Google Cloud Platform resource format. |
1241 * For example, a Cloud Platform project with id `my-project` will be named | 1241 * For example, a Cloud Platform project with id `my-project` will be named |
1242 * `//cloudresourcemanager.googleapis.com/projects/my-project`. | 1242 * `//cloudresourcemanager.googleapis.com/projects/my-project`. |
1243 */ | 1243 */ |
1244 core.String fullResourceName; | 1244 core.String fullResourceName; |
| 1245 /** Optional limit on the number of roles to include in the response. */ |
| 1246 core.int pageSize; |
| 1247 /** |
| 1248 * Optional pagination token returned in an earlier |
| 1249 * QueryGrantableRolesResponse. |
| 1250 */ |
| 1251 core.String pageToken; |
1245 | 1252 |
1246 QueryGrantableRolesRequest(); | 1253 QueryGrantableRolesRequest(); |
1247 | 1254 |
1248 QueryGrantableRolesRequest.fromJson(core.Map _json) { | 1255 QueryGrantableRolesRequest.fromJson(core.Map _json) { |
1249 if (_json.containsKey("fullResourceName")) { | 1256 if (_json.containsKey("fullResourceName")) { |
1250 fullResourceName = _json["fullResourceName"]; | 1257 fullResourceName = _json["fullResourceName"]; |
1251 } | 1258 } |
| 1259 if (_json.containsKey("pageSize")) { |
| 1260 pageSize = _json["pageSize"]; |
| 1261 } |
| 1262 if (_json.containsKey("pageToken")) { |
| 1263 pageToken = _json["pageToken"]; |
| 1264 } |
1252 } | 1265 } |
1253 | 1266 |
1254 core.Map toJson() { | 1267 core.Map toJson() { |
1255 var _json = new core.Map(); | 1268 var _json = new core.Map(); |
1256 if (fullResourceName != null) { | 1269 if (fullResourceName != null) { |
1257 _json["fullResourceName"] = fullResourceName; | 1270 _json["fullResourceName"] = fullResourceName; |
1258 } | 1271 } |
| 1272 if (pageSize != null) { |
| 1273 _json["pageSize"] = pageSize; |
| 1274 } |
| 1275 if (pageToken != null) { |
| 1276 _json["pageToken"] = pageToken; |
| 1277 } |
1259 return _json; | 1278 return _json; |
1260 } | 1279 } |
1261 } | 1280 } |
1262 | 1281 |
1263 /** The grantable role query response. */ | 1282 /** The grantable role query response. */ |
1264 class QueryGrantableRolesResponse { | 1283 class QueryGrantableRolesResponse { |
| 1284 /** |
| 1285 * To retrieve the next page of results, set |
| 1286 * `QueryGrantableRolesRequest.page_token` to this value. |
| 1287 */ |
| 1288 core.String nextPageToken; |
1265 /** The list of matching roles. */ | 1289 /** The list of matching roles. */ |
1266 core.List<Role> roles; | 1290 core.List<Role> roles; |
1267 | 1291 |
1268 QueryGrantableRolesResponse(); | 1292 QueryGrantableRolesResponse(); |
1269 | 1293 |
1270 QueryGrantableRolesResponse.fromJson(core.Map _json) { | 1294 QueryGrantableRolesResponse.fromJson(core.Map _json) { |
| 1295 if (_json.containsKey("nextPageToken")) { |
| 1296 nextPageToken = _json["nextPageToken"]; |
| 1297 } |
1271 if (_json.containsKey("roles")) { | 1298 if (_json.containsKey("roles")) { |
1272 roles = _json["roles"].map((value) => new Role.fromJson(value)).toList(); | 1299 roles = _json["roles"].map((value) => new Role.fromJson(value)).toList(); |
1273 } | 1300 } |
1274 } | 1301 } |
1275 | 1302 |
1276 core.Map toJson() { | 1303 core.Map toJson() { |
1277 var _json = new core.Map(); | 1304 var _json = new core.Map(); |
| 1305 if (nextPageToken != null) { |
| 1306 _json["nextPageToken"] = nextPageToken; |
| 1307 } |
1278 if (roles != null) { | 1308 if (roles != null) { |
1279 _json["roles"] = roles.map((value) => (value).toJson()).toList(); | 1309 _json["roles"] = roles.map((value) => (value).toJson()).toList(); |
1280 } | 1310 } |
1281 return _json; | 1311 return _json; |
1282 } | 1312 } |
1283 } | 1313 } |
1284 | 1314 |
1285 /** A role in the Identity and Access Management API. */ | 1315 /** A role in the Identity and Access Management API. */ |
1286 class Role { | 1316 class Role { |
1287 /** Optional. A human-readable description for the role. */ | 1317 /** Optional. A human-readable description for the role. */ |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1761 } | 1791 } |
1762 | 1792 |
1763 core.Map toJson() { | 1793 core.Map toJson() { |
1764 var _json = new core.Map(); | 1794 var _json = new core.Map(); |
1765 if (permissions != null) { | 1795 if (permissions != null) { |
1766 _json["permissions"] = permissions; | 1796 _json["permissions"] = permissions; |
1767 } | 1797 } |
1768 return _json; | 1798 return _json; |
1769 } | 1799 } |
1770 } | 1800 } |
OLD | NEW |