feat: invokable scripts (#387)

* basic list, create, and invoke working

* all commands working

* added support for create script body from file and invoke params from file

* linter cleanup

* update defaults to existing parameters if not provided

* updated generated mock files, added mock files for scripts, added basic script create test

* added mock script list

* cleanup pass, fixed not using params in list call

* added update mock test

* fixed mock tests requiring go 1.18

* updated openapi, integrated overrides upstream, added new override to fix codegen bug

* added nil check

* fixed routes
This commit is contained in:
Andrew Depke
2022-06-22 14:08:55 -06:00
committed by GitHub
parent a68106ee88
commit 760f07ed9e
31 changed files with 3207 additions and 337 deletions

View File

@ -170,31 +170,3 @@ func (mr *MockBackupApiMockRecorder) GetBackupShardIdExecuteWithHttpInfo(arg0 in
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBackupShardIdExecuteWithHttpInfo", reflect.TypeOf((*MockBackupApi)(nil).GetBackupShardIdExecuteWithHttpInfo), arg0)
}
// OnlyCloud mocks base method.
func (m *MockBackupApi) OnlyCloud() api.BackupApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyCloud")
ret0, _ := ret[0].(api.BackupApi)
return ret0
}
// OnlyCloud indicates an expected call of OnlyCloud.
func (mr *MockBackupApiMockRecorder) OnlyCloud() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyCloud", reflect.TypeOf((*MockBackupApi)(nil).OnlyCloud))
}
// OnlyOSS mocks base method.
func (m *MockBackupApi) OnlyOSS() api.BackupApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyOSS")
ret0, _ := ret[0].(api.BackupApi)
return ret0
}
// OnlyOSS indicates an expected call of OnlyOSS.
func (mr *MockBackupApiMockRecorder) OnlyOSS() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyOSS", reflect.TypeOf((*MockBackupApi)(nil).OnlyOSS))
}