| Index: generated/googleapis_beta/lib/datastore/v1beta2.dart
|
| diff --git a/generated/googleapis_beta/lib/datastore/v1beta2.dart b/generated/googleapis_beta/lib/datastore/v1beta2.dart
|
| index 721f2d5bdeec9d3c494cd3a23003cdebdbbb6a70..bed49b9e7b58bb6c0f718b05bc30d1fb0d61974b 100644
|
| --- a/generated/googleapis_beta/lib/datastore/v1beta2.dart
|
| +++ b/generated/googleapis_beta/lib/datastore/v1beta2.dart
|
| @@ -7,7 +7,6 @@ import 'dart:async' as async;
|
| import 'dart:convert' as convert;
|
|
|
| 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
|
| @@ -403,11 +402,11 @@ class BeginTransactionResponse {
|
| /** The transaction identifier (always present). */
|
| core.String transaction;
|
| core.List<core.int> get transactionAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(transaction);
|
| + return convert.BASE64.decode(transaction);
|
| }
|
|
|
| void set transactionAsBytes(core.List<core.int> _bytes) {
|
| - transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
|
|
| BeginTransactionResponse();
|
| @@ -450,11 +449,11 @@ class CommitRequest {
|
| */
|
| core.String transaction;
|
| core.List<core.int> get transactionAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(transaction);
|
| + return convert.BASE64.decode(transaction);
|
| }
|
|
|
| void set transactionAsBytes(core.List<core.int> _bytes) {
|
| - transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
|
|
| CommitRequest();
|
| @@ -706,11 +705,11 @@ class GqlQuery {
|
| class GqlQueryArg {
|
| core.String cursor;
|
| core.List<core.int> get cursorAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(cursor);
|
| + return convert.BASE64.decode(cursor);
|
| }
|
|
|
| void set cursorAsBytes(core.List<core.int> _bytes) {
|
| - cursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + cursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| /**
|
| * Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex "__.*__".
|
| @@ -1097,11 +1096,11 @@ class Property {
|
| */
|
| core.String blobValue;
|
| core.List<core.int> get blobValueAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(blobValue);
|
| + return convert.BASE64.decode(blobValue);
|
| }
|
|
|
| void set blobValueAsBytes(core.List<core.int> _bytes) {
|
| - blobValue = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + blobValue = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| /** A boolean value. */
|
| core.bool booleanValue;
|
| @@ -1377,11 +1376,11 @@ class Query {
|
| */
|
| core.String endCursor;
|
| core.List<core.int> get endCursorAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(endCursor);
|
| + return convert.BASE64.decode(endCursor);
|
| }
|
|
|
| void set endCursorAsBytes(core.List<core.int> _bytes) {
|
| - endCursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + endCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| /** The filter to apply (optional). */
|
| Filter filter;
|
| @@ -1414,11 +1413,11 @@ class Query {
|
| */
|
| core.String startCursor;
|
| core.List<core.int> get startCursorAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(startCursor);
|
| + return convert.BASE64.decode(startCursor);
|
| }
|
|
|
| void set startCursorAsBytes(core.List<core.int> _bytes) {
|
| - startCursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + startCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
|
|
| Query();
|
| @@ -1495,11 +1494,11 @@ class QueryResultBatch {
|
| */
|
| core.String endCursor;
|
| core.List<core.int> get endCursorAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(endCursor);
|
| + return convert.BASE64.decode(endCursor);
|
| }
|
|
|
| void set endCursorAsBytes(core.List<core.int> _bytes) {
|
| - endCursor = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + endCursor = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| /**
|
| * The result type for every entity in entityResults. full for full entities,
|
| @@ -1581,11 +1580,11 @@ class ReadOptions {
|
| /** The transaction to use. Optional. */
|
| core.String transaction;
|
| core.List<core.int> get transactionAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(transaction);
|
| + return convert.BASE64.decode(transaction);
|
| }
|
|
|
| void set transactionAsBytes(core.List<core.int> _bytes) {
|
| - transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
|
|
| ReadOptions();
|
| @@ -1639,11 +1638,11 @@ class RollbackRequest {
|
| /** The transaction identifier, returned by a call to beginTransaction. */
|
| core.String transaction;
|
| core.List<core.int> get transactionAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(transaction);
|
| + return convert.BASE64.decode(transaction);
|
| }
|
|
|
| void set transactionAsBytes(core.List<core.int> _bytes) {
|
| - transaction = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
|
|
| RollbackRequest();
|
| @@ -1782,11 +1781,11 @@ class Value {
|
| */
|
| core.String blobValue;
|
| core.List<core.int> get blobValueAsBytes {
|
| - return crypto.CryptoUtils.base64StringToBytes(blobValue);
|
| + return convert.BASE64.decode(blobValue);
|
| }
|
|
|
| void set blobValueAsBytes(core.List<core.int> _bytes) {
|
| - blobValue = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
|
| + blobValue = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| /** A boolean value. */
|
| core.bool booleanValue;
|
|
|