blob: a672212c882f7ce3f7cf9f09fa05f505e94469d4 [file] [log] [blame]
// Mocks generated by Mockito 5.4.1 from annotations
// in metrics_center/test/gcs_lock_test.dart.
// Do not manually edit this file.
// @dart=2.19
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i6;
import 'dart:convert' as _i7;
import 'dart:typed_data' as _i8;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as _i9;
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;
// 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: 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 _FakeBucketAccessControlsResource_3 extends _i1.SmartFake
implements _i4.BucketAccessControlsResource {
_FakeBucketAccessControlsResource_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeBucketsResource_4 extends _i1.SmartFake
implements _i4.BucketsResource {
_FakeBucketsResource_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeChannelsResource_5 extends _i1.SmartFake
implements _i4.ChannelsResource {
_FakeChannelsResource_5(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeDefaultObjectAccessControlsResource_6 extends _i1.SmartFake
implements _i4.DefaultObjectAccessControlsResource {
_FakeDefaultObjectAccessControlsResource_6(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeNotificationsResource_7 extends _i1.SmartFake
implements _i4.NotificationsResource {
_FakeNotificationsResource_7(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjectAccessControlsResource_8 extends _i1.SmartFake
implements _i4.ObjectAccessControlsResource {
_FakeObjectAccessControlsResource_8(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjectsResource_9 extends _i1.SmartFake
implements _i4.ObjectsResource {
_FakeObjectsResource_9(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeProjectsResource_10 extends _i1.SmartFake
implements _i4.ProjectsResource {
_FakeProjectsResource_10(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObject_11 extends _i1.SmartFake implements _i4.Object {
_FakeObject_11(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObject_12 extends _i1.SmartFake implements Object {
_FakeObject_12(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePolicy_13 extends _i1.SmartFake implements _i4.Policy {
_FakePolicy_13(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjects_14 extends _i1.SmartFake implements _i4.Objects {
_FakeObjects_14(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRewriteResponse_15 extends _i1.SmartFake
implements _i4.RewriteResponse {
_FakeRewriteResponse_15(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeTestIamPermissionsResponse_16 extends _i1.SmartFake
implements _i4.TestIamPermissionsResponse {
_FakeTestIamPermissionsResponse_16(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeChannel_17 extends _i1.SmartFake implements _i4.Channel {
_FakeChannel_17(
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(''),
) as _i6.Future<String>);
@override
_i6.Future<_i8.Uint8List> readBytes(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#readBytes,
[url],
{#headers: headers},
),
returnValue: _i6.Future<_i8.Uint8List>.value(_i8.Uint8List(0)),
) as _i6.Future<_i8.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.BucketAccessControlsResource get bucketAccessControls =>
(super.noSuchMethod(
Invocation.getter(#bucketAccessControls),
returnValue: _FakeBucketAccessControlsResource_3(
this,
Invocation.getter(#bucketAccessControls),
),
) as _i4.BucketAccessControlsResource);
@override
_i4.BucketsResource get buckets => (super.noSuchMethod(
Invocation.getter(#buckets),
returnValue: _FakeBucketsResource_4(
this,
Invocation.getter(#buckets),
),
) as _i4.BucketsResource);
@override
_i4.ChannelsResource get channels => (super.noSuchMethod(
Invocation.getter(#channels),
returnValue: _FakeChannelsResource_5(
this,
Invocation.getter(#channels),
),
) as _i4.ChannelsResource);
@override
_i4.DefaultObjectAccessControlsResource get defaultObjectAccessControls =>
(super.noSuchMethod(
Invocation.getter(#defaultObjectAccessControls),
returnValue: _FakeDefaultObjectAccessControlsResource_6(
this,
Invocation.getter(#defaultObjectAccessControls),
),
) as _i4.DefaultObjectAccessControlsResource);
@override
_i4.NotificationsResource get notifications => (super.noSuchMethod(
Invocation.getter(#notifications),
returnValue: _FakeNotificationsResource_7(
this,
Invocation.getter(#notifications),
),
) as _i4.NotificationsResource);
@override
_i4.ObjectAccessControlsResource get objectAccessControls =>
(super.noSuchMethod(
Invocation.getter(#objectAccessControls),
returnValue: _FakeObjectAccessControlsResource_8(
this,
Invocation.getter(#objectAccessControls),
),
) as _i4.ObjectAccessControlsResource);
@override
_i4.ObjectsResource get objects => (super.noSuchMethod(
Invocation.getter(#objects),
returnValue: _FakeObjectsResource_9(
this,
Invocation.getter(#objects),
),
) as _i4.ObjectsResource);
@override
_i4.ProjectsResource get projects => (super.noSuchMethod(
Invocation.getter(#projects),
returnValue: _FakeProjectsResource_10(
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.Object> compose(
_i4.ComposeRequest? request,
String? destinationBucket,
String? destinationObject, {
String? destinationPredefinedAcl,
String? ifGenerationMatch,
String? ifMetagenerationMatch,
String? kmsKeyName,
String? provisionalUserProject,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#compose,
[
request,
destinationBucket,
destinationObject,
],
{
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#kmsKeyName: kmsKeyName,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#compose,
[
request,
destinationBucket,
destinationObject,
],
{
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#kmsKeyName: kmsKeyName,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#compose,
[
request,
destinationBucket,
destinationObject,
],
{
#destinationPredefinedAcl: destinationPredefinedAcl,
#ifGenerationMatch: ifGenerationMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#kmsKeyName: kmsKeyName,
#provisionalUserProject: provisionalUserProject,
#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? provisionalUserProject,
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,
#provisionalUserProject: provisionalUserProject,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_11(
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,
#provisionalUserProject: provisionalUserProject,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_11(
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,
#provisionalUserProject: provisionalUserProject,
#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? provisionalUserProject,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#delete,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#provisionalUserProject: provisionalUserProject,
#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,
String? provisionalUserProject,
String? userProject,
String? $fields,
_i9.DownloadOptions? downloadOptions = _i9.DownloadOptions.metadata,
}) =>
(super.noSuchMethod(
Invocation.method(
#get,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
#downloadOptions: downloadOptions,
},
),
returnValue: _i6.Future<Object>.value(_FakeObject_12(
this,
Invocation.method(
#get,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
#downloadOptions: downloadOptions,
},
),
)),
returnValueForMissingStub: _i6.Future<Object>.value(_FakeObject_12(
this,
Invocation.method(
#get,
[
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
#downloadOptions: downloadOptions,
},
),
)),
) as _i6.Future<Object>);
@override
_i6.Future<_i4.Policy> getIamPolicy(
String? bucket,
String? object, {
String? generation,
String? provisionalUserProject,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#getIamPolicy,
[
bucket,
object,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Policy>.value(_FakePolicy_13(
this,
Invocation.method(
#getIamPolicy,
[
bucket,
object,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Policy>.value(_FakePolicy_13(
this,
Invocation.method(
#getIamPolicy,
[
bucket,
object,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#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? provisionalUserProject,
String? userProject,
String? $fields,
_i9.UploadOptions? uploadOptions = _i9.UploadOptions.defaultOptions,
_i9.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,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
#uploadOptions: uploadOptions,
#uploadMedia: uploadMedia,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#insert,
[
request,
bucket,
],
{
#contentEncoding: contentEncoding,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#kmsKeyName: kmsKeyName,
#name: name,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
#uploadOptions: uploadOptions,
#uploadMedia: uploadMedia,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#insert,
[
request,
bucket,
],
{
#contentEncoding: contentEncoding,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#kmsKeyName: kmsKeyName,
#name: name,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#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? includeTrailingDelimiter,
int? maxResults,
String? pageToken,
String? prefix,
String? projection,
String? provisionalUserProject,
String? startOffset,
String? userProject,
bool? versions,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#list,
[bucket],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Objects>.value(_FakeObjects_14(
this,
Invocation.method(
#list,
[bucket],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.Objects>.value(_FakeObjects_14(
this,
Invocation.method(
#list,
[bucket],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#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,
String? predefinedAcl,
String? projection,
String? provisionalUserProject,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#patch,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#patch,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#patch,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#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? provisionalUserProject,
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,
#provisionalUserProject: provisionalUserProject,
#rewriteToken: rewriteToken,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue:
_i6.Future<_i4.RewriteResponse>.value(_FakeRewriteResponse_15(
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,
#provisionalUserProject: provisionalUserProject,
#rewriteToken: rewriteToken,
#sourceGeneration: sourceGeneration,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.RewriteResponse>.value(_FakeRewriteResponse_15(
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,
#provisionalUserProject: provisionalUserProject,
#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? provisionalUserProject,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#setIamPolicy,
[
request,
bucket,
object,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Policy>.value(_FakePolicy_13(
this,
Invocation.method(
#setIamPolicy,
[
request,
bucket,
object,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Policy>.value(_FakePolicy_13(
this,
Invocation.method(
#setIamPolicy,
[
request,
bucket,
object,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#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? provisionalUserProject,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#testIamPermissions,
[
bucket,
object,
permissions,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.TestIamPermissionsResponse>.value(
_FakeTestIamPermissionsResponse_16(
this,
Invocation.method(
#testIamPermissions,
[
bucket,
object,
permissions,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.TestIamPermissionsResponse>.value(
_FakeTestIamPermissionsResponse_16(
this,
Invocation.method(
#testIamPermissions,
[
bucket,
object,
permissions,
],
{
#generation: generation,
#provisionalUserProject: provisionalUserProject,
#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,
String? predefinedAcl,
String? projection,
String? provisionalUserProject,
String? userProject,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#update,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#update,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#userProject: userProject,
#$fields: $fields,
},
),
)),
returnValueForMissingStub: _i6.Future<_i4.Object>.value(_FakeObject_11(
this,
Invocation.method(
#update,
[
request,
bucket,
object,
],
{
#generation: generation,
#ifGenerationMatch: ifGenerationMatch,
#ifGenerationNotMatch: ifGenerationNotMatch,
#ifMetagenerationMatch: ifMetagenerationMatch,
#ifMetagenerationNotMatch: ifMetagenerationNotMatch,
#predefinedAcl: predefinedAcl,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#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? provisionalUserProject,
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,
#provisionalUserProject: provisionalUserProject,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
returnValue: _i6.Future<_i4.Channel>.value(_FakeChannel_17(
this,
Invocation.method(
#watchAll,
[
request,
bucket,
],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
)),
returnValueForMissingStub:
_i6.Future<_i4.Channel>.value(_FakeChannel_17(
this,
Invocation.method(
#watchAll,
[
request,
bucket,
],
{
#delimiter: delimiter,
#endOffset: endOffset,
#includeTrailingDelimiter: includeTrailingDelimiter,
#maxResults: maxResults,
#pageToken: pageToken,
#prefix: prefix,
#projection: projection,
#provisionalUserProject: provisionalUserProject,
#startOffset: startOffset,
#userProject: userProject,
#versions: versions,
#$fields: $fields,
},
),
)),
) as _i6.Future<_i4.Channel>);
}