| Index: generated/googleapis/lib/drive/v2.dart
|
| diff --git a/generated/googleapis/lib/drive/v2.dart b/generated/googleapis/lib/drive/v2.dart
|
| index 5bf92e9f751a258cecfc9b01216400ae498c6850..4a0f3ca8e2f0228d0fa67b53a006b4962c55ba29 100644
|
| --- a/generated/googleapis/lib/drive/v2.dart
|
| +++ b/generated/googleapis/lib/drive/v2.dart
|
| @@ -7,7 +7,6 @@ import 'dart:async' as async;
|
| import 'dart:convert' as convert_1;
|
|
|
| import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
|
| -import 'package:crypto/crypto.dart' as crypto;
|
| import 'package:http/http.dart' as http;
|
|
|
| export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| @@ -2434,6 +2433,8 @@ class PermissionsResourceApi {
|
| *
|
| * [permissionId] - The ID for the permission.
|
| *
|
| + * [removeExpiration] - Whether to remove the expiration date.
|
| + *
|
| * [transferOwnership] - Whether changing a role to 'owner' downgrades the
|
| * current owners to writers. Does nothing if the specified role is not
|
| * 'owner'.
|
| @@ -2446,7 +2447,7 @@ class PermissionsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Permission> patch(Permission request, core.String fileId, core.String permissionId, {core.bool transferOwnership}) {
|
| + async.Future<Permission> patch(Permission request, core.String fileId, core.String permissionId, {core.bool removeExpiration, core.bool transferOwnership}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2463,6 +2464,9 @@ class PermissionsResourceApi {
|
| if (permissionId == null) {
|
| throw new core.ArgumentError("Parameter permissionId is required.");
|
| }
|
| + if (removeExpiration != null) {
|
| + _queryParams["removeExpiration"] = ["${removeExpiration}"];
|
| + }
|
| if (transferOwnership != null) {
|
| _queryParams["transferOwnership"] = ["${transferOwnership}"];
|
| }
|
| @@ -2490,6 +2494,8 @@ class PermissionsResourceApi {
|
| *
|
| * [permissionId] - The ID for the permission.
|
| *
|
| + * [removeExpiration] - Whether to remove the expiration date.
|
| + *
|
| * [transferOwnership] - Whether changing a role to 'owner' downgrades the
|
| * current owners to writers. Does nothing if the specified role is not
|
| * 'owner'.
|
| @@ -2502,7 +2508,7 @@ class PermissionsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<Permission> update(Permission request, core.String fileId, core.String permissionId, {core.bool transferOwnership}) {
|
| + async.Future<Permission> update(Permission request, core.String fileId, core.String permissionId, {core.bool removeExpiration, core.bool transferOwnership}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2519,6 +2525,9 @@ class PermissionsResourceApi {
|
| if (permissionId == null) {
|
| throw new core.ArgumentError("Parameter permissionId is required.");
|
| }
|
| + if (removeExpiration != null) {
|
| + _queryParams["removeExpiration"] = ["${removeExpiration}"];
|
| + }
|
| if (transferOwnership != null) {
|
| _queryParams["transferOwnership"] = ["${transferOwnership}"];
|
| }
|
| @@ -5371,11 +5380,11 @@ class FileThumbnail {
|
| */
|
| core.String image;
|
| core.List<core.int> get imageAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(image);
|
| + return convert_1.BASE64.decode(image);
|
| }
|
|
|
| void set imageAsBytes(core.List<core.int> _bytes) {
|
| - image = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + image = convert_1.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| /** The MIME type of the thumbnail. */
|
| core.String mimeType;
|
| @@ -6229,6 +6238,8 @@ class Permission {
|
| core.String emailAddress;
|
| /** The ETag of the permission. */
|
| core.String etag;
|
| + /** The time at which this permission will expire (RFC 3339 date-time). */
|
| + core.DateTime expirationDate;
|
| /**
|
| * The ID of the user this permission refers to, and identical to the
|
| * permissionId in the About and Files resources. When making a
|
| @@ -6287,6 +6298,9 @@ class Permission {
|
| if (_json.containsKey("etag")) {
|
| etag = _json["etag"];
|
| }
|
| + if (_json.containsKey("expirationDate")) {
|
| + expirationDate = core.DateTime.parse(_json["expirationDate"]);
|
| + }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| }
|
| @@ -6333,6 +6347,9 @@ class Permission {
|
| if (etag != null) {
|
| _json["etag"] = etag;
|
| }
|
| + if (expirationDate != null) {
|
| + _json["expirationDate"] = (expirationDate).toIso8601String();
|
| + }
|
| if (id != null) {
|
| _json["id"] = id;
|
| }
|
|
|