Skip to content
4 changes: 3 additions & 1 deletion NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### New Features and Improvements

- Upload of big files (> 5Gb) to UC Volumes using multipart chunking ([#621](https://github.com/databricks/databricks-sdk-go/pull/1621)).

### Bug Fixes

### Documentation
Expand All @@ -29,4 +31,4 @@
* Add `GpuXlarge` enum value for [serving.ServedModelInputWorkloadType](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/serving#ServedModelInputWorkloadType).
* Add `GpuXlarge` enum value for [serving.ServingModelWorkloadType](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/serving#ServingModelWorkloadType).
* [Breaking] Change `ListFeatures` method for [w.FeatureEngineering](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/ml#FeatureEngineeringAPI) workspace-level service with new required argument order.
* [Breaking] Remove `UnspecifiedResourceName` field for [postgres.RequestedResource](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#RequestedResource).
* [Breaking] Remove `UnspecifiedResourceName` field for [postgres.RequestedResource](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/postgres#RequestedResource).
55 changes: 55 additions & 0 deletions experimental/mocks/service/files/mock_files_upload.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Hand-written mock stubs for filesAPIUploadUtilities methods.
// These will be replaced by mockery-generated code on the next `make codegen`.

package files

import (
"context"
"io"

files "github.com/databricks/databricks-sdk-go/service/files"
)

// UploadWithChunking provides a mock function for the FilesInterface.
func (_m *MockFilesInterface) UploadWithChunking(ctx context.Context, filePath string, content io.ReadSeeker, contentLength int64, opts ...files.UploadOption) error {
_va := make([]any, len(opts))
for _i := range opts {
_va[_i] = opts[_i]
}
var _ca []any
_ca = append(_ca, ctx, filePath, content, contentLength)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
if len(ret) == 0 {
panic("no return value specified for UploadWithChunking")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, io.ReadSeeker, int64, ...files.UploadOption) error); ok {
r0 = rf(ctx, filePath, content, contentLength, opts...)
} else {
r0 = ret.Error(0)
}
return r0
}

// UploadFromFile provides a mock function for the FilesInterface.
func (_m *MockFilesInterface) UploadFromFile(ctx context.Context, filePath string, sourcePath string, opts ...files.UploadOption) error {
_va := make([]any, len(opts))
for _i := range opts {
_va[_i] = opts[_i]
}
var _ca []any
_ca = append(_ca, ctx, filePath, sourcePath)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
if len(ret) == 0 {
panic("no return value specified for UploadFromFile")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, string, ...files.UploadOption) error); ok {
r0 = rf(ctx, filePath, sourcePath, opts...)
} else {
r0 = ret.Error(0)
}
return r0
}
1 change: 1 addition & 0 deletions service/files/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading