blob: d013ac823f25c86b9fb94a3b626c45f80822545c [file] [log] [blame] [edit]
// Mocks generated by Mockito 5.4.4 from annotations
// in metrics_center/test/gcs_lock_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i6;
import 'dart:convert' as _i7;
import 'dart:typed_data' as _i9;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as _i10;
import 'package:googleapis/storage/v1.dart' as _i4;
import 'package:googleapis_auth/src/access_credentials.dart' as _i2;
import 'package:googleapis_auth/src/auth_client.dart' as _i5;
import 'package:http/http.dart' as _i3;
import 'package:mockito/mockito.dart' as _i1;
import 'package:mockito/src/dummies.dart' as _i8;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
class _FakeAccessCredentials_0 extends _i1.SmartFake
implements _i2.AccessCredentials {
_FakeAccessCredentials_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeResponse_1 extends _i1.SmartFake implements _i3.Response {
_FakeResponse_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeStreamedResponse_2 extends _i1.SmartFake
implements _i3.StreamedResponse {
_FakeStreamedResponse_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeAnywhereCacheResource_3 extends _i1.SmartFake
implements _i4.AnywhereCacheResource {
_FakeAnywhereCacheResource_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeBucketAccessControlsResource_4 extends _i1.SmartFake
implements _i4.BucketAccessControlsResource {
_FakeBucketAccessControlsResource_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeBucketsResource_5 extends _i1.SmartFake
implements _i4.BucketsResource {
_FakeBucketsResource_5(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeChannelsResource_6 extends _i1.SmartFake
implements _i4.ChannelsResource {
_FakeChannelsResource_6(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeDefaultObjectAccessControlsResource_7 extends _i1.SmartFake
implements _i4.DefaultObjectAccessControlsResource {
_FakeDefaultObjectAccessControlsResource_7(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeManagedFoldersResource_8 extends _i1.SmartFake
implements _i4.ManagedFoldersResource {
_FakeManagedFoldersResource_8(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeNotificationsResource_9 extends _i1.SmartFake
implements _i4.NotificationsResource {
_FakeNotificationsResource_9(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjectAccessControlsResource_10 extends _i1.SmartFake
implements _i4.ObjectAccessControlsResource {
_FakeObjectAccessControlsResource_10(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjectsResource_11 extends _i1.SmartFake
implements _i4.ObjectsResource {
_FakeObjectsResource_11(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeOperationsResource_12 extends _i1.SmartFake
implements _i4.OperationsResource {
_FakeOperationsResource_12(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeProjectsResource_13 extends _i1.SmartFake
implements _i4.ProjectsResource {
_FakeProjectsResource_13(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGoogleLongrunningOperation_14 extends _i1.SmartFake
implements _i4.GoogleLongrunningOperation {
_FakeGoogleLongrunningOperation_14(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObject_15 extends _i1.SmartFake implements _i4.Object {
_FakeObject_15(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObject_16 extends _i1.SmartFake implements Object {
_FakeObject_16(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePolicy_17 extends _i1.SmartFake implements _i4.Policy {
_FakePolicy_17(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjects_18 extends _i1.SmartFake implements _i4.Objects {
_FakeObjects_18(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRewriteResponse_19 extends _i1.SmartFake
implements _i4.RewriteResponse {
_FakeRewriteResponse_19(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeTestIamPermissionsResponse_20 extends _i1.SmartFake
implements _i4.TestIamPermissionsResponse {
_FakeTestIamPermissionsResponse_20(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeChannel_21 extends _i1.SmartFake implements _i4.Channel {
_FakeChannel_21(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [AuthClient].
///
/// See the documentation for Mockito's code generation for more information.
class MockAuthClient extends _i1.Mock implements _i5.AuthClient {
MockAuthClient() {
_i1.throwOnMissingStub(this);
}
@override
_i2.AccessCredentials get credentials => (super.noSuchMethod(
Invocation.getter(#credentials),
returnValue: _FakeAccessCredentials_0(
this,
Invocation.getter(#credentials),
),
) as _i2.AccessCredentials);
@override
_i6.Future<_i3.Response> head(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#head,
[url],
{#headers: headers},
),
returnValue: _i6.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#head,
[url],
{#headers: headers},
),
)),
) as _i6.Future<_i3.Response>);
@override
_i6.Future<_i3.Response> get(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#get,
[url],
{#headers: headers},
),
returnValue: _i6.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#get,
[url],
{#headers: headers},
),
)),
) as _i6.Future<_i3.Response>);
@override
_i6.Future<_i3.Response> post(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i7.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#post,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i6.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#post,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i6.Future<_i3.Response>);
@override
_i6.Future<_i3.Response> put(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i7.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#put,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i6.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#put,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i6.Future<_i3.Response>);
@override
_i6.Future<_i3.Response> patch(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i7.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#patch,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i6.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#patch,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i6.Future<_i3.Response>);
@override
_i6.Future<_i3.Response> delete(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i7.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#delete,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i6.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#delete,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i6.Future<_i3.Response>);
@override
_i6.Future<String> read(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#read,
[url],
{#headers: headers},
),
returnValue: _i6.Future<String>.value(_i8.dummyValue<String>(
this,
Invocation.method(
#read,
[url],
{#headers: headers},
),
)),
) as _i6.Future<String>);
@override
_i6.Future<_i9.Uint8List> readBytes(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#readBytes,
[url],
{#headers: headers},
),
returnValue: _i6.Future<_i9.Uint8List>.value(_i9.Uint8List(0)),
) as _i6.Future<_i9.Uint8List>);
@override
_i6.Future<_i3.StreamedResponse> send(_i3.BaseRequest? request) =>
(super.noSuchMethod(
Invocation.method(
#send,
[request],
),
returnValue:
_i6.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2(
this,
Invocation.method(
#send,
[request],
),
)),
) as _i6.Future<_i3.StreamedResponse>);
@override
void close() => super.noSuchMethod(
Invocation.method(
#close,
[],
),
returnValueForMissingStub: null,
);
}
/// A class which mocks [StorageApi].
///
/// See the documentation for Mockito's code generation for more information.
class MockStorageApi extends _i1.Mock implements _i4.StorageApi {
MockStorageApi() {
_i1.throwOnMissingStub(this);
}
@override
_i4.AnywhereCacheResource get anywhereCache => (super.noSuchMethod(
Invocation.getter(#anywhereCache),
returnValue: _FakeAnywhereCacheResource_3(
this,
Invocation.getter(#anywhereCache),
),
) as _i4.AnywhereCacheResource);
@override
_i4.BucketAccessControlsResource get bucketAccessControls =>
(super.noSuchMethod(
Invocation.getter(#bucketAccessControls),
returnValue: _FakeBucketAccessControlsResource_4(
this,
Invocation.getter(#bucketAccessControls),
),
) as _i4.BucketAccessControlsResource);
@override
_i4.BucketsResource get buckets => (super.noSuchMethod(
Invocation.getter(#buckets),
returnValue: _FakeBucketsResource_5(
this,
Invocation.getter(#buckets),
),
) as _i4.BucketsResource);
@override
_i4.ChannelsResource get channels => (super.noSuchMethod(
Invocation.getter(#channels),
returnValue: _FakeChannelsResource_6(
this,
Invocation.getter(#channels),
),
) as _i4.ChannelsResource);
@override
_i4.DefaultObjectAccessControlsResource get defaultObjectAccessControls =>
(super.noSuchMethod(
Invocation.getter(#defaultObjectAccessControls),
returnValue: _FakeDefaultObjectAccessControlsResource_7(
this,
Invocation.getter(#defaultObjectAccessControls),
),
) as _i4.DefaultObjectAccessControlsResource);
@override
_i4.ManagedFoldersResource get managedFolders => (super.noSuchMethod(
Invocation.getter(#managedFolders),
returnValue: _FakeManagedFoldersResource_8(
this,
Invocation.getter(#managedFolders),
),
) as _i4.ManagedFoldersResource);
@override
_i4.NotificationsResource get notifications => (super.noSuchMethod(
Invocation.getter(#notifications),
returnValue: _FakeNotificationsResource_9(
this,
Invocation.getter(#notifications),
),
) as _i4.NotificationsResource);
@override
_i4.ObjectAccessControlsResource get objectAccessControls =>
(super.noSuchMethod(
Invocation.getter(#objectAccessControls),
returnValue: _FakeObjectAccessControlsResource_10(
this,
Invocation.getter(#objectAccessControls),
),
) as _i4.ObjectAccessControlsResource);
@override
_i4.ObjectsResource get objects => (super.noSuchMethod(
Invocation.getter(#objects),
returnValue: _FakeObjectsResource_11(
this,
Invocation.getter(#objects),
),
) as _i4.ObjectsResource);
@override
_i4.OperationsResource get operations => (super.noSuchMethod(
Invocation.getter(#operations),
returnValue: _FakeOperationsResource_12(
this,
Invocation.getter(#operations),
),
) as _i4.OperationsResource);
@override
_i4.ProjectsResource get projects => (super.noSuchMethod(
Invocation.getter(#projects),
returnValue: _FakeProjectsResource_13(
this,
Invocation.getter(#projects),
),
) as _i4.ProjectsResource);
}
/// A class which mocks [ObjectsResource].
///
/// See the documentation for Mockito's code generation for more information.
class MockObjectsResource extends _i1.Mock implements _i4.ObjectsResource {
@override
_i6.Future<_i4.GoogleLongrunningOperation> bulkRestore(
_i4.BulkRestoreObjectsRequest? request,
String? bucket, {
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#bulkRestore,
[
request,
bucket,
],
{#$fields: $fields},
),
returnValue: _i6.Future<_i4.GoogleLongrunningOperation>.value(
_FakeGoogleLongrunningOperation_14(
this,
Invocation.method(
#bulkRestore,
[
request,
bucket,
],
{#$fields: $fields},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.GoogleLongrunningOperation>.value(
_FakeGoogleLongrunningOperation_14(
this,
Invocation.method(
#bulkRestore,
[
request,
bucket,
],
{#$fields: $fields},
),
)),
) as _i6.Future<_i4.GoogleLongrunningOperation>);
@override
_i6.Future<_i4.Object> compose(
_i4.ComposeRequest? request,
String? destinationBucket,
String? destinationObject, {
String? destinationPredefinedAcl,
String? ifGenerationMatch,
String? ifMetagenerationMatch,
String? kmsKeyName,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#compose,
[
request,
destinationBucket,
destinationObject,
],
{
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#kmsKeyName: kmsKeyName,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#compose,
[
request,
destinationBucket,
destinationObject,
],
{
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#kmsKeyName: kmsKeyName,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#compose,
[
request,
destinationBucket,
destinationObject,
],
{
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#kmsKeyName: kmsKeyName,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Object>);
@override
_i6.Future<_i4.Object> copy(
_i4.Object? request,
String? sourceBucket,
String? sourceObject,
String? destinationBucket,
String? destinationObject, {
String? destinationKmsKeyName,
String? destinationPredefinedAcl,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
String? ifSourceGenerationMatch,
String? ifSourceGenerationNotMatch,
String? ifSourceMetagenerationMatch,
String? ifSourceMetagenerationNotMatch,
String? projection,
String? sourceGeneration,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#copy,
[
request,
sourceBucket,
sourceObject,
destinationBucket,
destinationObject,
],
{
#destinationKmsKeyName: destinationKmsKeyName,
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#ifSourceGenerationMatch: ifSourceGenerationMatch,
#ifSourceGenerationNotMatch: ifSourceGenerationNotMatch,
#ifSourceMetagenerationMatch: ifSourceMetagenerationMatch,
#ifSourceMetagenerationNotMatch: ifSourceMetagenerationNotMatch,
#projection: projection,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#copy,
[
request,
sourceBucket,
sourceObject,
destinationBucket,
destinationObject,
],
{
#destinationKmsKeyName: destinationKmsKeyName,
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#ifSourceGenerationMatch: ifSourceGenerationMatch,
#ifSourceGenerationNotMatch: ifSourceGenerationNotMatch,
#ifSourceMetagenerationMatch: ifSourceMetagenerationMatch,
#ifSourceMetagenerationNotMatch: ifSourceMetagenerationNotMatch,
#projection: projection,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#copy,
[
request,
sourceBucket,
sourceObject,
destinationBucket,
destinationObject,
],
{
#destinationKmsKeyName: destinationKmsKeyName,
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#ifSourceGenerationMatch: ifSourceGenerationMatch,
#ifSourceGenerationNotMatch: ifSourceGenerationNotMatch,
#ifSourceMetagenerationMatch: ifSourceMetagenerationMatch,
#ifSourceMetagenerationNotMatch: ifSourceMetagenerationNotMatch,
#projection: projection,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Object>);
@override
_i6.Future<void> delete(
String? bucket,
String? object, {
String? generation,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#delete,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i6.Future<Object> get(
String? bucket,
String? object, {
String? generation,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
String? projection,
bool? softDeleted,
String? userProject,
String? $fields,
_i10.DownloadOptions? downloadOptions = _i10.DownloadOptions.metadata,
}) =>
(super.noSuchMethod(
Invocation.method(
#get,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#softDeleted: softDeleted,
#userProject: userProject,
#$fields: $fields,
#downloadOptions: downloadOptions,
},
),
returnValue: _i6.Future<Object>.value(_FakeObject_16(
this,
Invocation.method(
#get,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#softDeleted: softDeleted,
#userProject: userProject,
#$fields: $fields,
#downloadOptions: downloadOptions,
},
),
)),
returnValueForMissingStub: _i6.Future<Object>.value(_FakeObject_16(
this,
Invocation.method(
#get,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#softDeleted: softDeleted,
#userProject: userProject,
#$fields: $fields,
#downloadOptions: downloadOptions,
},
),
)),
) as _i6.Future<Object>);
@override
_i6.Future<_i4.Policy> getIamPolicy(
String? bucket,
String? object, {
String? generation,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#getIamPolicy,
[
bucket,
object,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Policy>.value(_FakePolicy_17(
this,
Invocation.method(
#getIamPolicy,
[
bucket,
object,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Policy>.value(_FakePolicy_17(
this,
Invocation.method(
#getIamPolicy,
[
bucket,
object,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Policy>);
@override
_i6.Future<_i4.Object> insert(
_i4.Object? request,
String? bucket, {
String? contentEncoding,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
String? kmsKeyName,
String? name,
String? predefinedAcl,
String? projection,
String? userProject,
String? $fields,
_i10.UploadOptions? uploadOptions = _i10.UploadOptions.defaultOptions,
_i10.Media? uploadMedia,
}) =>
(super.noSuchMethod(
Invocation.method(
#insert,
[
request,
bucket,
],
{
#contentEncoding: contentEncoding,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#kmsKeyName: kmsKeyName,
#name: name,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
#uploadOptions: uploadOptions,
#uploadMedia: uploadMedia,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#insert,
[
request,
bucket,
],
{
#contentEncoding: contentEncoding,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#kmsKeyName: kmsKeyName,
#name: name,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
#uploadOptions: uploadOptions,
#uploadMedia: uploadMedia,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#insert,
[
request,
bucket,
],
{
#contentEncoding: contentEncoding,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#kmsKeyName: kmsKeyName,
#name: name,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
#uploadOptions: uploadOptions,
#uploadMedia: uploadMedia,
},
),
)),
) as _i6.Future<_i4.Object>);
@override
_i6.Future<_i4.Objects> list(
String? bucket, {
String? delimiter,
String? endOffset,
bool? includeFoldersAsPrefixes,
bool? includeTrailingDelimiter,
String? matchGlob,
int? maxResults,
String? pageToken,
String? prefix,
String? projection,
bool? softDeleted,
String? startOffset,
String? userProject,
bool? versions,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#list,
[bucket],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeFoldersAsPrefixes: includeFoldersAsPrefixes,
#includeTrailingDelimiter: includeTrailingDelimiter,
#matchGlob: matchGlob,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#softDeleted: softDeleted,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Objects>.value(_FakeObjects_18(
this,
Invocation.method(
#list,
[bucket],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeFoldersAsPrefixes: includeFoldersAsPrefixes,
#includeTrailingDelimiter: includeTrailingDelimiter,
#matchGlob: matchGlob,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#softDeleted: softDeleted,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.Objects>.value(_FakeObjects_18(
this,
Invocation.method(
#list,
[bucket],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeFoldersAsPrefixes: includeFoldersAsPrefixes,
#includeTrailingDelimiter: includeTrailingDelimiter,
#matchGlob: matchGlob,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#softDeleted: softDeleted,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Objects>);
@override
_i6.Future<_i4.Object> patch(
_i4.Object? request,
String? bucket,
String? object, {
String? generation,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
bool? overrideUnlockedRetention,
String? predefinedAcl,
String? projection,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#patch,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#overrideUnlockedRetention: overrideUnlockedRetention,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#patch,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#overrideUnlockedRetention: overrideUnlockedRetention,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#patch,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#overrideUnlockedRetention: overrideUnlockedRetention,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Object>);
@override
_i6.Future<_i4.Object> restore(
_i4.Object? request,
String? bucket,
String? object,
String? generation, {
bool? copySourceAcl,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
String? projection,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#restore,
[
request,
bucket,
object,
generation,
],
{
#copySourceAcl: copySourceAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#restore,
[
request,
bucket,
object,
generation,
],
{
#copySourceAcl: copySourceAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#restore,
[
request,
bucket,
object,
generation,
],
{
#copySourceAcl: copySourceAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Object>);
@override
_i6.Future<_i4.RewriteResponse> rewrite(
_i4.Object? request,
String? sourceBucket,
String? sourceObject,
String? destinationBucket,
String? destinationObject, {
String? destinationKmsKeyName,
String? destinationPredefinedAcl,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
String? ifSourceGenerationMatch,
String? ifSourceGenerationNotMatch,
String? ifSourceMetagenerationMatch,
String? ifSourceMetagenerationNotMatch,
String? maxBytesRewrittenPerCall,
String? projection,
String? rewriteToken,
String? sourceGeneration,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#rewrite,
[
request,
sourceBucket,
sourceObject,
destinationBucket,
destinationObject,
],
{
#destinationKmsKeyName: destinationKmsKeyName,
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#ifSourceGenerationMatch: ifSourceGenerationMatch,
#ifSourceGenerationNotMatch: ifSourceGenerationNotMatch,
#ifSourceMetagenerationMatch: ifSourceMetagenerationMatch,
#ifSourceMetagenerationNotMatch: ifSourceMetagenerationNotMatch,
#maxBytesRewrittenPerCall: maxBytesRewrittenPerCall,
#projection: projection,
#rewriteToken: rewriteToken,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue:
_i6.Future<_i4.RewriteResponse>.value(_FakeRewriteResponse_19(
this,
Invocation.method(
#rewrite,
[
request,
sourceBucket,
sourceObject,
destinationBucket,
destinationObject,
],
{
#destinationKmsKeyName: destinationKmsKeyName,
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#ifSourceGenerationMatch: ifSourceGenerationMatch,
#ifSourceGenerationNotMatch: ifSourceGenerationNotMatch,
#ifSourceMetagenerationMatch: ifSourceMetagenerationMatch,
#ifSourceMetagenerationNotMatch: ifSourceMetagenerationNotMatch,
#maxBytesRewrittenPerCall: maxBytesRewrittenPerCall,
#projection: projection,
#rewriteToken: rewriteToken,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.RewriteResponse>.value(_FakeRewriteResponse_19(
this,
Invocation.method(
#rewrite,
[
request,
sourceBucket,
sourceObject,
destinationBucket,
destinationObject,
],
{
#destinationKmsKeyName: destinationKmsKeyName,
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#ifSourceGenerationMatch: ifSourceGenerationMatch,
#ifSourceGenerationNotMatch: ifSourceGenerationNotMatch,
#ifSourceMetagenerationMatch: ifSourceMetagenerationMatch,
#ifSourceMetagenerationNotMatch: ifSourceMetagenerationNotMatch,
#maxBytesRewrittenPerCall: maxBytesRewrittenPerCall,
#projection: projection,
#rewriteToken: rewriteToken,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.RewriteResponse>);
@override
_i6.Future<_i4.Policy> setIamPolicy(
_i4.Policy? request,
String? bucket,
String? object, {
String? generation,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#setIamPolicy,
[
request,
bucket,
object,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Policy>.value(_FakePolicy_17(
this,
Invocation.method(
#setIamPolicy,
[
request,
bucket,
object,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Policy>.value(_FakePolicy_17(
this,
Invocation.method(
#setIamPolicy,
[
request,
bucket,
object,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Policy>);
@override
_i6.Future<_i4.TestIamPermissionsResponse> testIamPermissions(
String? bucket,
String? object,
List<String>? permissions, {
String? generation,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#testIamPermissions,
[
bucket,
object,
permissions,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.TestIamPermissionsResponse>.value(
_FakeTestIamPermissionsResponse_20(
this,
Invocation.method(
#testIamPermissions,
[
bucket,
object,
permissions,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.TestIamPermissionsResponse>.value(
_FakeTestIamPermissionsResponse_20(
this,
Invocation.method(
#testIamPermissions,
[
bucket,
object,
permissions,
],
{
#generation: generation,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.TestIamPermissionsResponse>);
@override
_i6.Future<_i4.Object> update(
_i4.Object? request,
String? bucket,
String? object, {
String? generation,
String? ifGenerationMatch,
String? ifGenerationNotMatch,
String? ifMetagenerationMatch,
String? ifMetagenerationNotMatch,
bool? overrideUnlockedRetention,
String? predefinedAcl,
String? projection,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#update,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#overrideUnlockedRetention: overrideUnlockedRetention,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#update,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#overrideUnlockedRetention: overrideUnlockedRetention,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_15(
this,
Invocation.method(
#update,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#overrideUnlockedRetention: overrideUnlockedRetention,
#predefinedAcl: predefinedAcl,
#projection: projection,
#userProject: userProject,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Object>);
@override
_i6.Future<_i4.Channel> watchAll(
_i4.Channel? request,
String? bucket, {
String? delimiter,
String? endOffset,
bool? includeTrailingDelimiter,
int? maxResults,
String? pageToken,
String? prefix,
String? projection,
String? startOffset,
String? userProject,
bool? versions,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#watchAll,
[
request,
bucket,
],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Channel>.value(_FakeChannel_21(
this,
Invocation.method(
#watchAll,
[
request,
bucket,
],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.Channel>.value(_FakeChannel_21(
this,
Invocation.method(
#watchAll,
[
request,
bucket,
],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Channel>);
}