Type Alias GCSServiceMethod<O, R, AllowUnauthenticated>

GCSServiceMethod: (
    configuration: AllowUnauthenticated extends false
        ? GCSConfiguration
        : UnauthenticatedGCSConfiguration,
    methodOptions?: O & {
        headers?: BaseServiceMethodOptions["headers"];
        query?: BaseServiceMethodOptions["query"];
    },
    sdkOptions?: SDKOptions,
) => ReturnType<ServiceMethod<O, R>>

The GCSServiceMethod type is similar to the core ServiceMethod type, but the first parameter is always a GCSConfiguration object.

Type Parameters

  • O extends ServiceMethodOptions
  • R extends Response = Response
  • AllowUnauthenticated extends Boolean = false

Type declaration