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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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.storage.v1; 3 library googleapis.storage.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 22 matching lines...) Expand all
33 /** Manage your data in Google Cloud Storage */ 33 /** Manage your data in Google Cloud Storage */
34 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst orage.read_write"; 34 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst orage.read_write";
35 35
36 36
37 final commons.ApiRequester _requester; 37 final commons.ApiRequester _requester;
38 38
39 BucketAccessControlsResourceApi get bucketAccessControls => new BucketAccessCo ntrolsResourceApi(_requester); 39 BucketAccessControlsResourceApi get bucketAccessControls => new BucketAccessCo ntrolsResourceApi(_requester);
40 BucketsResourceApi get buckets => new BucketsResourceApi(_requester); 40 BucketsResourceApi get buckets => new BucketsResourceApi(_requester);
41 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); 41 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester);
42 DefaultObjectAccessControlsResourceApi get defaultObjectAccessControls => new DefaultObjectAccessControlsResourceApi(_requester); 42 DefaultObjectAccessControlsResourceApi get defaultObjectAccessControls => new DefaultObjectAccessControlsResourceApi(_requester);
43 NotificationsResourceApi get notifications => new NotificationsResourceApi(_re quester);
43 ObjectAccessControlsResourceApi get objectAccessControls => new ObjectAccessCo ntrolsResourceApi(_requester); 44 ObjectAccessControlsResourceApi get objectAccessControls => new ObjectAccessCo ntrolsResourceApi(_requester);
44 ObjectsResourceApi get objects => new ObjectsResourceApi(_requester); 45 ObjectsResourceApi get objects => new ObjectsResourceApi(_requester);
46 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
45 47
46 StorageApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "storage/v1/"}) : 48 StorageApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "storage/v1/"}) :
47 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 49 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
48 } 50 }
49 51
50 52
51 class BucketAccessControlsResourceApi { 53 class BucketAccessControlsResourceApi {
52 final commons.ApiRequester _requester; 54 final commons.ApiRequester _requester;
53 55
54 BucketAccessControlsResourceApi(commons.ApiRequester client) : 56 BucketAccessControlsResourceApi(commons.ApiRequester client) :
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 queryParams: _queryParams, 1284 queryParams: _queryParams,
1283 uploadOptions: _uploadOptions, 1285 uploadOptions: _uploadOptions,
1284 uploadMedia: _uploadMedia, 1286 uploadMedia: _uploadMedia,
1285 downloadOptions: _downloadOptions); 1287 downloadOptions: _downloadOptions);
1286 return _response.then((data) => new ObjectAccessControl.fromJson(data)); 1288 return _response.then((data) => new ObjectAccessControl.fromJson(data));
1287 } 1289 }
1288 1290
1289 } 1291 }
1290 1292
1291 1293
1294 class NotificationsResourceApi {
1295 final commons.ApiRequester _requester;
1296
1297 NotificationsResourceApi(commons.ApiRequester client) :
1298 _requester = client;
1299
1300 /**
1301 * Permanently deletes a notification subscription.
1302 *
1303 * Request parameters:
1304 *
1305 * [bucket] - The parent bucket of the notification.
1306 *
1307 * [notification] - ID of the notification to delete.
1308 *
1309 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1310 * error.
1311 *
1312 * If the used [http.Client] completes with an error when making a REST call,
1313 * this method will complete with the same error.
1314 */
1315 async.Future delete(core.String bucket, core.String notification) {
1316 var _url = null;
1317 var _queryParams = new core.Map();
1318 var _uploadMedia = null;
1319 var _uploadOptions = null;
1320 var _downloadOptions = commons.DownloadOptions.Metadata;
1321 var _body = null;
1322
1323 if (bucket == null) {
1324 throw new core.ArgumentError("Parameter bucket is required.");
1325 }
1326 if (notification == null) {
1327 throw new core.ArgumentError("Parameter notification is required.");
1328 }
1329
1330 _downloadOptions = null;
1331
1332 _url = 'b/' + commons.Escaper.ecapeVariable('$bucket') + '/notificationConfi gs/' + commons.Escaper.ecapeVariable('$notification');
1333
1334 var _response = _requester.request(_url,
1335 "DELETE",
1336 body: _body,
1337 queryParams: _queryParams,
1338 uploadOptions: _uploadOptions,
1339 uploadMedia: _uploadMedia,
1340 downloadOptions: _downloadOptions);
1341 return _response.then((data) => null);
1342 }
1343
1344 /**
1345 * View a notification configuration.
1346 *
1347 * Request parameters:
1348 *
1349 * [bucket] - The parent bucket of the notification.
1350 *
1351 * [notification] - Notification ID
1352 *
1353 * Completes with a [Notification].
1354 *
1355 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1356 * error.
1357 *
1358 * If the used [http.Client] completes with an error when making a REST call,
1359 * this method will complete with the same error.
1360 */
1361 async.Future<Notification> get(core.String bucket, core.String notification) {
1362 var _url = null;
1363 var _queryParams = new core.Map();
1364 var _uploadMedia = null;
1365 var _uploadOptions = null;
1366 var _downloadOptions = commons.DownloadOptions.Metadata;
1367 var _body = null;
1368
1369 if (bucket == null) {
1370 throw new core.ArgumentError("Parameter bucket is required.");
1371 }
1372 if (notification == null) {
1373 throw new core.ArgumentError("Parameter notification is required.");
1374 }
1375
1376 _url = 'b/' + commons.Escaper.ecapeVariable('$bucket') + '/notificationConfi gs/' + commons.Escaper.ecapeVariable('$notification');
1377
1378 var _response = _requester.request(_url,
1379 "GET",
1380 body: _body,
1381 queryParams: _queryParams,
1382 uploadOptions: _uploadOptions,
1383 uploadMedia: _uploadMedia,
1384 downloadOptions: _downloadOptions);
1385 return _response.then((data) => new Notification.fromJson(data));
1386 }
1387
1388 /**
1389 * Creates a notification subscription for a given bucket.
1390 *
1391 * [request] - The metadata request object.
1392 *
1393 * Request parameters:
1394 *
1395 * [bucket] - The parent bucket of the notification.
1396 *
1397 * Completes with a [Notification].
1398 *
1399 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1400 * error.
1401 *
1402 * If the used [http.Client] completes with an error when making a REST call,
1403 * this method will complete with the same error.
1404 */
1405 async.Future<Notification> insert(Notification request, core.String bucket) {
1406 var _url = null;
1407 var _queryParams = new core.Map();
1408 var _uploadMedia = null;
1409 var _uploadOptions = null;
1410 var _downloadOptions = commons.DownloadOptions.Metadata;
1411 var _body = null;
1412
1413 if (request != null) {
1414 _body = convert.JSON.encode((request).toJson());
1415 }
1416 if (bucket == null) {
1417 throw new core.ArgumentError("Parameter bucket is required.");
1418 }
1419
1420 _url = 'b/' + commons.Escaper.ecapeVariable('$bucket') + '/notificationConfi gs';
1421
1422 var _response = _requester.request(_url,
1423 "POST",
1424 body: _body,
1425 queryParams: _queryParams,
1426 uploadOptions: _uploadOptions,
1427 uploadMedia: _uploadMedia,
1428 downloadOptions: _downloadOptions);
1429 return _response.then((data) => new Notification.fromJson(data));
1430 }
1431
1432 /**
1433 * Retrieves a list of notification subscriptions for a given bucket.
1434 *
1435 * Request parameters:
1436 *
1437 * [bucket] - Name of a GCS bucket.
1438 *
1439 * Completes with a [Notifications].
1440 *
1441 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1442 * error.
1443 *
1444 * If the used [http.Client] completes with an error when making a REST call,
1445 * this method will complete with the same error.
1446 */
1447 async.Future<Notifications> list(core.String bucket) {
1448 var _url = null;
1449 var _queryParams = new core.Map();
1450 var _uploadMedia = null;
1451 var _uploadOptions = null;
1452 var _downloadOptions = commons.DownloadOptions.Metadata;
1453 var _body = null;
1454
1455 if (bucket == null) {
1456 throw new core.ArgumentError("Parameter bucket is required.");
1457 }
1458
1459 _url = 'b/' + commons.Escaper.ecapeVariable('$bucket') + '/notificationConfi gs';
1460
1461 var _response = _requester.request(_url,
1462 "GET",
1463 body: _body,
1464 queryParams: _queryParams,
1465 uploadOptions: _uploadOptions,
1466 uploadMedia: _uploadMedia,
1467 downloadOptions: _downloadOptions);
1468 return _response.then((data) => new Notifications.fromJson(data));
1469 }
1470
1471 }
1472
1473
1292 class ObjectAccessControlsResourceApi { 1474 class ObjectAccessControlsResourceApi {
1293 final commons.ApiRequester _requester; 1475 final commons.ApiRequester _requester;
1294 1476
1295 ObjectAccessControlsResourceApi(commons.ApiRequester client) : 1477 ObjectAccessControlsResourceApi(commons.ApiRequester client) :
1296 _requester = client; 1478 _requester = client;
1297 1479
1298 /** 1480 /**
1299 * Permanently deletes the ACL entry for the specified entity on the specified 1481 * Permanently deletes the ACL entry for the specified entity on the specified
1300 * object. 1482 * object.
1301 * 1483 *
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
2950 queryParams: _queryParams, 3132 queryParams: _queryParams,
2951 uploadOptions: _uploadOptions, 3133 uploadOptions: _uploadOptions,
2952 uploadMedia: _uploadMedia, 3134 uploadMedia: _uploadMedia,
2953 downloadOptions: _downloadOptions); 3135 downloadOptions: _downloadOptions);
2954 return _response.then((data) => new Channel.fromJson(data)); 3136 return _response.then((data) => new Channel.fromJson(data));
2955 } 3137 }
2956 3138
2957 } 3139 }
2958 3140
2959 3141
3142 class ProjectsResourceApi {
3143 final commons.ApiRequester _requester;
3144
3145 ProjectsServiceAccountResourceApi get serviceAccount => new ProjectsServiceAcc ountResourceApi(_requester);
3146
3147 ProjectsResourceApi(commons.ApiRequester client) :
3148 _requester = client;
3149 }
3150
3151
3152 class ProjectsServiceAccountResourceApi {
3153 final commons.ApiRequester _requester;
3154
3155 ProjectsServiceAccountResourceApi(commons.ApiRequester client) :
3156 _requester = client;
3157
3158 /**
3159 * Get the email address of this project's GCS service account.
3160 *
3161 * Request parameters:
3162 *
3163 * [projectId] - Project ID
3164 *
3165 * Completes with a [ServiceAccount].
3166 *
3167 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3168 * error.
3169 *
3170 * If the used [http.Client] completes with an error when making a REST call,
3171 * this method will complete with the same error.
3172 */
3173 async.Future<ServiceAccount> get(core.String projectId) {
3174 var _url = null;
3175 var _queryParams = new core.Map();
3176 var _uploadMedia = null;
3177 var _uploadOptions = null;
3178 var _downloadOptions = commons.DownloadOptions.Metadata;
3179 var _body = null;
3180
3181 if (projectId == null) {
3182 throw new core.ArgumentError("Parameter projectId is required.");
3183 }
3184
3185 _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/service Account';
3186
3187 var _response = _requester.request(_url,
3188 "GET",
3189 body: _body,
3190 queryParams: _queryParams,
3191 uploadOptions: _uploadOptions,
3192 uploadMedia: _uploadMedia,
3193 downloadOptions: _downloadOptions);
3194 return _response.then((data) => new ServiceAccount.fromJson(data));
3195 }
3196
3197 }
3198
3199
2960 3200
2961 class BucketCors { 3201 class BucketCors {
2962 /** 3202 /**
2963 * The value, in seconds, to return in the Access-Control-Max-Age header used 3203 * The value, in seconds, to return in the Access-Control-Max-Age header used
2964 * in preflight responses. 3204 * in preflight responses.
2965 */ 3205 */
2966 core.int maxAgeSeconds; 3206 core.int maxAgeSeconds;
2967 /** 3207 /**
2968 * The list of HTTP methods on which to include CORS response headers, (GET, 3208 * The list of HTTP methods on which to include CORS response headers, (GET,
2969 * OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and 3209 * OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
3323 core.List<ObjectAccessControl> defaultObjectAcl; 3563 core.List<ObjectAccessControl> defaultObjectAcl;
3324 /** HTTP 1.1 Entity tag for the bucket. */ 3564 /** HTTP 1.1 Entity tag for the bucket. */
3325 core.String etag; 3565 core.String etag;
3326 /** 3566 /**
3327 * The ID of the bucket. For buckets, the id and name properities are the 3567 * The ID of the bucket. For buckets, the id and name properities are the
3328 * same. 3568 * same.
3329 */ 3569 */
3330 core.String id; 3570 core.String id;
3331 /** The kind of item this is. For buckets, this is always storage#bucket. */ 3571 /** The kind of item this is. For buckets, this is always storage#bucket. */
3332 core.String kind; 3572 core.String kind;
3573 /** User-provided labels, in key/value pairs. */
3574 core.Map<core.String, core.String> labels;
3333 /** 3575 /**
3334 * The bucket's lifecycle configuration. See lifecycle management for more 3576 * The bucket's lifecycle configuration. See lifecycle management for more
3335 * information. 3577 * information.
3336 */ 3578 */
3337 BucketLifecycle lifecycle; 3579 BucketLifecycle lifecycle;
3338 /** 3580 /**
3339 * The location of the bucket. Object data for objects in the bucket resides 3581 * The location of the bucket. Object data for objects in the bucket resides
3340 * in physical storage within this region. Defaults to US. See the developer's 3582 * in physical storage within this region. Defaults to US. See the developer's
3341 * guide for the authoritative list. 3583 * guide for the authoritative list.
3342 */ 3584 */
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
3395 } 3637 }
3396 if (_json.containsKey("etag")) { 3638 if (_json.containsKey("etag")) {
3397 etag = _json["etag"]; 3639 etag = _json["etag"];
3398 } 3640 }
3399 if (_json.containsKey("id")) { 3641 if (_json.containsKey("id")) {
3400 id = _json["id"]; 3642 id = _json["id"];
3401 } 3643 }
3402 if (_json.containsKey("kind")) { 3644 if (_json.containsKey("kind")) {
3403 kind = _json["kind"]; 3645 kind = _json["kind"];
3404 } 3646 }
3647 if (_json.containsKey("labels")) {
3648 labels = _json["labels"];
3649 }
3405 if (_json.containsKey("lifecycle")) { 3650 if (_json.containsKey("lifecycle")) {
3406 lifecycle = new BucketLifecycle.fromJson(_json["lifecycle"]); 3651 lifecycle = new BucketLifecycle.fromJson(_json["lifecycle"]);
3407 } 3652 }
3408 if (_json.containsKey("location")) { 3653 if (_json.containsKey("location")) {
3409 location = _json["location"]; 3654 location = _json["location"];
3410 } 3655 }
3411 if (_json.containsKey("logging")) { 3656 if (_json.containsKey("logging")) {
3412 logging = new BucketLogging.fromJson(_json["logging"]); 3657 logging = new BucketLogging.fromJson(_json["logging"]);
3413 } 3658 }
3414 if (_json.containsKey("metageneration")) { 3659 if (_json.containsKey("metageneration")) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
3456 } 3701 }
3457 if (etag != null) { 3702 if (etag != null) {
3458 _json["etag"] = etag; 3703 _json["etag"] = etag;
3459 } 3704 }
3460 if (id != null) { 3705 if (id != null) {
3461 _json["id"] = id; 3706 _json["id"] = id;
3462 } 3707 }
3463 if (kind != null) { 3708 if (kind != null) {
3464 _json["kind"] = kind; 3709 _json["kind"] = kind;
3465 } 3710 }
3711 if (labels != null) {
3712 _json["labels"] = labels;
3713 }
3466 if (lifecycle != null) { 3714 if (lifecycle != null) {
3467 _json["lifecycle"] = (lifecycle).toJson(); 3715 _json["lifecycle"] = (lifecycle).toJson();
3468 } 3716 }
3469 if (location != null) { 3717 if (location != null) {
3470 _json["location"] = location; 3718 _json["location"] = location;
3471 } 3719 }
3472 if (logging != null) { 3720 if (logging != null) {
3473 _json["logging"] = (logging).toJson(); 3721 _json["logging"] = (logging).toJson();
3474 } 3722 }
3475 if (metageneration != null) { 3723 if (metageneration != null) {
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
3938 if (kind != null) { 4186 if (kind != null) {
3939 _json["kind"] = kind; 4187 _json["kind"] = kind;
3940 } 4188 }
3941 if (sourceObjects != null) { 4189 if (sourceObjects != null) {
3942 _json["sourceObjects"] = sourceObjects.map((value) => (value).toJson()).to List(); 4190 _json["sourceObjects"] = sourceObjects.map((value) => (value).toJson()).to List();
3943 } 4191 }
3944 return _json; 4192 return _json;
3945 } 4193 }
3946 } 4194 }
3947 4195
4196 /** A subscription to receive Google PubSub notifications. */
4197 class Notification {
4198 /**
4199 * An optional list of additional attributes to attach to each Cloud PubSub
4200 * message published for this notification subscription.
4201 */
4202 core.Map<core.String, core.String> customAttributes;
4203 /** HTTP 1.1 Entity tag for this subscription notification. */
4204 core.String etag;
4205 /**
4206 * If present, only send notifications about listed event types. If empty,
4207 * sent notifications for all event types.
4208 */
4209 core.List<core.String> eventTypes;
4210 /** The ID of the notification. */
4211 core.String id;
4212 /**
4213 * The kind of item this is. For notifications, this is always
4214 * storage#notification.
4215 */
4216 core.String kind;
4217 /**
4218 * If present, only apply this notification configuration to object names that
4219 * begin with this prefix.
4220 */
4221 core.String objectNamePrefix;
4222 /** The desired content of the Payload. */
4223 core.String payloadFormat;
4224 /** The canonical URL of this notification. */
4225 core.String selfLink;
4226 /**
4227 * The Cloud PubSub topic to which this subscription publishes. Formatted as:
4228 * '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'
4229 */
4230 core.String topic;
4231
4232 Notification();
4233
4234 Notification.fromJson(core.Map _json) {
4235 if (_json.containsKey("custom_attributes")) {
4236 customAttributes = _json["custom_attributes"];
4237 }
4238 if (_json.containsKey("etag")) {
4239 etag = _json["etag"];
4240 }
4241 if (_json.containsKey("event_types")) {
4242 eventTypes = _json["event_types"];
4243 }
4244 if (_json.containsKey("id")) {
4245 id = _json["id"];
4246 }
4247 if (_json.containsKey("kind")) {
4248 kind = _json["kind"];
4249 }
4250 if (_json.containsKey("object_name_prefix")) {
4251 objectNamePrefix = _json["object_name_prefix"];
4252 }
4253 if (_json.containsKey("payload_format")) {
4254 payloadFormat = _json["payload_format"];
4255 }
4256 if (_json.containsKey("selfLink")) {
4257 selfLink = _json["selfLink"];
4258 }
4259 if (_json.containsKey("topic")) {
4260 topic = _json["topic"];
4261 }
4262 }
4263
4264 core.Map toJson() {
4265 var _json = new core.Map();
4266 if (customAttributes != null) {
4267 _json["custom_attributes"] = customAttributes;
4268 }
4269 if (etag != null) {
4270 _json["etag"] = etag;
4271 }
4272 if (eventTypes != null) {
4273 _json["event_types"] = eventTypes;
4274 }
4275 if (id != null) {
4276 _json["id"] = id;
4277 }
4278 if (kind != null) {
4279 _json["kind"] = kind;
4280 }
4281 if (objectNamePrefix != null) {
4282 _json["object_name_prefix"] = objectNamePrefix;
4283 }
4284 if (payloadFormat != null) {
4285 _json["payload_format"] = payloadFormat;
4286 }
4287 if (selfLink != null) {
4288 _json["selfLink"] = selfLink;
4289 }
4290 if (topic != null) {
4291 _json["topic"] = topic;
4292 }
4293 return _json;
4294 }
4295 }
4296
4297 /** A list of notification subscriptions. */
4298 class Notifications {
4299 /** The list of items. */
4300 core.List<Notification> items;
4301 /**
4302 * The kind of item this is. For lists of notifications, this is always
4303 * storage#notifications.
4304 */
4305 core.String kind;
4306
4307 Notifications();
4308
4309 Notifications.fromJson(core.Map _json) {
4310 if (_json.containsKey("items")) {
4311 items = _json["items"].map((value) => new Notification.fromJson(value)).to List();
4312 }
4313 if (_json.containsKey("kind")) {
4314 kind = _json["kind"];
4315 }
4316 }
4317
4318 core.Map toJson() {
4319 var _json = new core.Map();
4320 if (items != null) {
4321 _json["items"] = items.map((value) => (value).toJson()).toList();
4322 }
4323 if (kind != null) {
4324 _json["kind"] = kind;
4325 }
4326 return _json;
4327 }
4328 }
4329
3948 /** 4330 /**
3949 * Metadata of customer-supplied encryption key, if the object is encrypted by 4331 * Metadata of customer-supplied encryption key, if the object is encrypted by
3950 * such a key. 4332 * such a key.
3951 */ 4333 */
3952 class ObjectCustomerEncryption { 4334 class ObjectCustomerEncryption {
3953 /** The encryption algorithm. */ 4335 /** The encryption algorithm. */
3954 core.String encryptionAlgorithm; 4336 core.String encryptionAlgorithm;
3955 /** SHA256 hash value of the encryption key. */ 4337 /** SHA256 hash value of the encryption key. */
3956 core.String keySha256; 4338 core.String keySha256;
3957 4339
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
4740 if (rewriteToken != null) { 5122 if (rewriteToken != null) {
4741 _json["rewriteToken"] = rewriteToken; 5123 _json["rewriteToken"] = rewriteToken;
4742 } 5124 }
4743 if (totalBytesRewritten != null) { 5125 if (totalBytesRewritten != null) {
4744 _json["totalBytesRewritten"] = totalBytesRewritten; 5126 _json["totalBytesRewritten"] = totalBytesRewritten;
4745 } 5127 }
4746 return _json; 5128 return _json;
4747 } 5129 }
4748 } 5130 }
4749 5131
5132 /** A subscription to receive Google PubSub notifications. */
5133 class ServiceAccount {
5134 /** The ID of the notification. */
5135 core.String emailAddress;
5136 /**
5137 * The kind of item this is. For notifications, this is always
5138 * storage#notification.
5139 */
5140 core.String kind;
5141
5142 ServiceAccount();
5143
5144 ServiceAccount.fromJson(core.Map _json) {
5145 if (_json.containsKey("email_address")) {
5146 emailAddress = _json["email_address"];
5147 }
5148 if (_json.containsKey("kind")) {
5149 kind = _json["kind"];
5150 }
5151 }
5152
5153 core.Map toJson() {
5154 var _json = new core.Map();
5155 if (emailAddress != null) {
5156 _json["email_address"] = emailAddress;
5157 }
5158 if (kind != null) {
5159 _json["kind"] = kind;
5160 }
5161 return _json;
5162 }
5163 }
5164
4750 /** A storage.(buckets|objects).testIamPermissions response. */ 5165 /** A storage.(buckets|objects).testIamPermissions response. */
4751 class TestIamPermissionsResponse { 5166 class TestIamPermissionsResponse {
4752 /** The kind of item this is. */ 5167 /** The kind of item this is. */
4753 core.String kind; 5168 core.String kind;
4754 /** 5169 /**
4755 * The permissions held by the caller. Permissions are always of the format 5170 * The permissions held by the caller. Permissions are always of the format
4756 * storage.resource.capability, where resource is one of buckets or objects. 5171 * storage.resource.capability, where resource is one of buckets or objects.
4757 * The supported permissions are as follows: 5172 * The supported permissions are as follows:
4758 * - storage.buckets.delete — Delete bucket. 5173 * - storage.buckets.delete — Delete bucket.
4759 * - storage.buckets.get — Read bucket metadata. 5174 * - storage.buckets.get — Read bucket metadata.
(...skipping 27 matching lines...) Expand all
4787 var _json = new core.Map(); 5202 var _json = new core.Map();
4788 if (kind != null) { 5203 if (kind != null) {
4789 _json["kind"] = kind; 5204 _json["kind"] = kind;
4790 } 5205 }
4791 if (permissions != null) { 5206 if (permissions != null) {
4792 _json["permissions"] = permissions; 5207 _json["permissions"] = permissions;
4793 } 5208 }
4794 return _json; 5209 return _json;
4795 } 5210 }
4796 } 5211 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/spanner/v1.dart ('k') | generated/googleapis/lib/storagetransfer/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698