diff --git a/.gitignore b/.gitignore index 1c2efdbb0..823bfdef7 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,6 @@ meta/ packages.txt requirements.txt sagemaker-batch-inference.py +testbin/ testbin/golangci-lint vendor/github.com/theupdateframework/notary/Dockerfile diff --git a/Makefile b/Makefile index a77494f1a..2a9db11c1 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ GIT_COMMIT_SHORT=$(shell git rev-parse --short HEAD) VERSION ?= SNAPSHOT-${GIT_COMMIT_SHORT} LDFLAGS_VERSION=-X github.com/astronomer/astro-cli/version.CurrVersion=${VERSION} -ENVTEST_ASSETS_DIR=$(shell pwd)/testbin CORE_OPENAPI_SPEC=../astro/apps/core/docs/public/public_v1alpha1.yaml @@ -12,6 +11,22 @@ GOLANGCI_LINT_VERSION ?=v1.50.1 PWD=$(shell pwd) +## Location to install dependencies to +ENVTEST_ASSETS_DIR=$(shell pwd)/testbin +$(ENVTEST_ASSETS_DIR): + mkdir -p $(ENVTEST_ASSETS_DIR) + +## Tool Binaries +MOCKERY ?= $(ENVTEST_ASSETS_DIR)/mockery + +## Tool versions +MOCKERY_VERSION ?= v2.32.0 + +.PHONY: kustomize +mockery: $(ENVTEST_ASSETS_DIR) + (test -s $(MOCKERY) && $(MOCKERY) --version | grep -i $(MOCKERY_VERSION)) || GOBIN=$(ENVTEST_ASSETS_DIR) go install github.com/vektra/mockery/v2@$(MOCKERY_VERSION) + + lint: @test -f ${ENVTEST_ASSETS_DIR}/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${ENVTEST_ASSETS_DIR} ${GOLANGCI_LINT_VERSION} ${ENVTEST_ASSETS_DIR}/golangci-lint version @@ -36,7 +51,7 @@ temp-astro: temp-astro-flow: ./astro flow init $(shell mktemp -d) -mock: mock_airflow mock_houston mock_astro mock_pkg mock_astro_core mock_airflow_api +mock: mockery mock_airflow mock_houston mock_astro mock_pkg mock_astro_core mock_airflow_api mock_houston: mockery --filename=ClientInterface.go --output=houston/mocks --dir=houston --outpkg=houston_mocks --name ClientInterface diff --git a/airflow-client/mocks/Client.go b/airflow-client/mocks/Client.go index d60aa5a63..f93ba9e76 100644 --- a/airflow-client/mocks/Client.go +++ b/airflow-client/mocks/Client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package airflow_mocks @@ -168,13 +168,12 @@ func (_m *Client) UpdateVariable(airflowURL string, variable airflowclient.Varia return r0 } -type mockConstructorTestingTNewClient interface { +// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewClient(t interface { mock.TestingT Cleanup(func()) -} - -// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewClient(t mockConstructorTestingTNewClient) *Client { +}) *Client { mock := &Client{} mock.Mock.Test(t) diff --git a/airflow/mocks/ContainerHandler.go b/airflow/mocks/ContainerHandler.go index 177a67c0b..1e1011191 100644 --- a/airflow/mocks/ContainerHandler.go +++ b/airflow/mocks/ContainerHandler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package mocks @@ -212,13 +212,12 @@ func (_m *ContainerHandler) Stop() error { return r0 } -type mockConstructorTestingTNewContainerHandler interface { +// NewContainerHandler creates a new instance of ContainerHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewContainerHandler(t interface { mock.TestingT Cleanup(func()) -} - -// NewContainerHandler creates a new instance of ContainerHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewContainerHandler(t mockConstructorTestingTNewContainerHandler) *ContainerHandler { +}) *ContainerHandler { mock := &ContainerHandler{} mock.Mock.Test(t) diff --git a/airflow/mocks/DockerCLIClient.go b/airflow/mocks/DockerCLIClient.go index e40729cdd..575b37133 100644 --- a/airflow/mocks/DockerCLIClient.go +++ b/airflow/mocks/DockerCLIClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package mocks @@ -2642,13 +2642,12 @@ func (_m *DockerCLIClient) VolumesPrune(ctx context.Context, pruneFilter filters return r0, r1 } -type mockConstructorTestingTNewDockerCLIClient interface { +// NewDockerCLIClient creates a new instance of DockerCLIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewDockerCLIClient(t interface { mock.TestingT Cleanup(func()) -} - -// NewDockerCLIClient creates a new instance of DockerCLIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewDockerCLIClient(t mockConstructorTestingTNewDockerCLIClient) *DockerCLIClient { +}) *DockerCLIClient { mock := &DockerCLIClient{} mock.Mock.Test(t) diff --git a/airflow/mocks/DockerComposeAPI.go b/airflow/mocks/DockerComposeAPI.go index 53c51c9df..71bf649bb 100644 --- a/airflow/mocks/DockerComposeAPI.go +++ b/airflow/mocks/DockerComposeAPI.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package mocks @@ -450,13 +450,12 @@ func (_m *DockerComposeAPI) Up(ctx context.Context, project *types.Project, opti return r0 } -type mockConstructorTestingTNewDockerComposeAPI interface { +// NewDockerComposeAPI creates a new instance of DockerComposeAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewDockerComposeAPI(t interface { mock.TestingT Cleanup(func()) -} - -// NewDockerComposeAPI creates a new instance of DockerComposeAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewDockerComposeAPI(t mockConstructorTestingTNewDockerComposeAPI) *DockerComposeAPI { +}) *DockerComposeAPI { mock := &DockerComposeAPI{} mock.Mock.Test(t) diff --git a/airflow/mocks/DockerRegistryAPI.go b/airflow/mocks/DockerRegistryAPI.go index 1b4c4ba04..1981b4798 100644 --- a/airflow/mocks/DockerRegistryAPI.go +++ b/airflow/mocks/DockerRegistryAPI.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package mocks @@ -2588,13 +2588,12 @@ func (_m *DockerRegistryAPI) VolumesPrune(ctx context.Context, pruneFilter filte return r0, r1 } -type mockConstructorTestingTNewDockerRegistryAPI interface { +// NewDockerRegistryAPI creates a new instance of DockerRegistryAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewDockerRegistryAPI(t interface { mock.TestingT Cleanup(func()) -} - -// NewDockerRegistryAPI creates a new instance of DockerRegistryAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewDockerRegistryAPI(t mockConstructorTestingTNewDockerRegistryAPI) *DockerRegistryAPI { +}) *DockerRegistryAPI { mock := &DockerRegistryAPI{} mock.Mock.Test(t) diff --git a/airflow/mocks/ImageHandler.go b/airflow/mocks/ImageHandler.go index 906dc1e9a..28ecd3922 100644 --- a/airflow/mocks/ImageHandler.go +++ b/airflow/mocks/ImageHandler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package mocks @@ -142,13 +142,12 @@ func (_m *ImageHandler) TagLocalImage(localImage string) error { return r0 } -type mockConstructorTestingTNewImageHandler interface { +// NewImageHandler creates a new instance of ImageHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewImageHandler(t interface { mock.TestingT Cleanup(func()) -} - -// NewImageHandler creates a new instance of ImageHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewImageHandler(t mockConstructorTestingTNewImageHandler) *ImageHandler { +}) *ImageHandler { mock := &ImageHandler{} mock.Mock.Test(t) diff --git a/airflow/mocks/RegistryHandler.go b/airflow/mocks/RegistryHandler.go index 15caacd7f..49eb516a9 100644 --- a/airflow/mocks/RegistryHandler.go +++ b/airflow/mocks/RegistryHandler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package mocks @@ -23,13 +23,12 @@ func (_m *RegistryHandler) Login(username string, token string) error { return r0 } -type mockConstructorTestingTNewRegistryHandler interface { +// NewRegistryHandler creates a new instance of RegistryHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewRegistryHandler(t interface { mock.TestingT Cleanup(func()) -} - -// NewRegistryHandler creates a new instance of RegistryHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewRegistryHandler(t mockConstructorTestingTNewRegistryHandler) *RegistryHandler { +}) *RegistryHandler { mock := &RegistryHandler{} mock.Mock.Test(t) diff --git a/astro-client-core/mocks/client.go b/astro-client-core/mocks/client.go index f4570ec98..4c2743611 100644 --- a/astro-client-core/mocks/client.go +++ b/astro-client-core/mocks/client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.14.0. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package astrocore_mocks @@ -29,6 +29,10 @@ func (_m *ClientWithResponsesInterface) AddTeamMembersWithBodyWithResponse(ctx c ret := _m.Called(_ca...) var r0 *astrocore.AddTeamMembersResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.AddTeamMembersResponse, error)); ok { + return rf(ctx, organizationId, teamId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.AddTeamMembersResponse); ok { r0 = rf(ctx, organizationId, teamId, contentType, body, reqEditors...) } else { @@ -37,7 +41,6 @@ func (_m *ClientWithResponsesInterface) AddTeamMembersWithBodyWithResponse(ctx c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, contentType, body, reqEditors...) } else { @@ -59,6 +62,10 @@ func (_m *ClientWithResponsesInterface) AddTeamMembersWithResponse(ctx context.C ret := _m.Called(_ca...) var r0 *astrocore.AddTeamMembersResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.AddTeamMembersRequest, ...astrocore.RequestEditorFn) (*astrocore.AddTeamMembersResponse, error)); ok { + return rf(ctx, organizationId, teamId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.AddTeamMembersRequest, ...astrocore.RequestEditorFn) *astrocore.AddTeamMembersResponse); ok { r0 = rf(ctx, organizationId, teamId, body, reqEditors...) } else { @@ -67,7 +74,6 @@ func (_m *ClientWithResponsesInterface) AddTeamMembersWithResponse(ctx context.C } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.AddTeamMembersRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, body, reqEditors...) } else { @@ -89,6 +95,10 @@ func (_m *ClientWithResponsesInterface) CreateAwsClusterWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.CreateAwsClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateAwsClusterResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateAwsClusterResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -97,7 +107,6 @@ func (_m *ClientWithResponsesInterface) CreateAwsClusterWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -119,6 +128,10 @@ func (_m *ClientWithResponsesInterface) CreateAwsClusterWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.CreateAwsClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateAwsClusterRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateAwsClusterResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateAwsClusterRequest, ...astrocore.RequestEditorFn) *astrocore.CreateAwsClusterResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -127,7 +140,6 @@ func (_m *ClientWithResponsesInterface) CreateAwsClusterWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateAwsClusterRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -149,6 +161,10 @@ func (_m *ClientWithResponsesInterface) CreateAzureClusterWithBodyWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.CreateAzureClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateAzureClusterResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateAzureClusterResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -157,7 +173,6 @@ func (_m *ClientWithResponsesInterface) CreateAzureClusterWithBodyWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -179,6 +194,10 @@ func (_m *ClientWithResponsesInterface) CreateAzureClusterWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.CreateAzureClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateAzureClusterRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateAzureClusterResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateAzureClusterRequest, ...astrocore.RequestEditorFn) *astrocore.CreateAzureClusterResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -187,7 +206,6 @@ func (_m *ClientWithResponsesInterface) CreateAzureClusterWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateAzureClusterRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -209,6 +227,10 @@ func (_m *ClientWithResponsesInterface) CreateGcpClusterWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.CreateGcpClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateGcpClusterResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateGcpClusterResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -217,7 +239,6 @@ func (_m *ClientWithResponsesInterface) CreateGcpClusterWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -239,6 +260,10 @@ func (_m *ClientWithResponsesInterface) CreateGcpClusterWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.CreateGcpClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateGcpClusterRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateGcpClusterResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateGcpClusterRequest, ...astrocore.RequestEditorFn) *astrocore.CreateGcpClusterResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -247,7 +272,6 @@ func (_m *ClientWithResponsesInterface) CreateGcpClusterWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateGcpClusterRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -269,6 +293,10 @@ func (_m *ClientWithResponsesInterface) CreateManagedDomainWithBodyWithResponse( ret := _m.Called(_ca...) var r0 *astrocore.CreateManagedDomainResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateManagedDomainResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateManagedDomainResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -277,7 +305,6 @@ func (_m *ClientWithResponsesInterface) CreateManagedDomainWithBodyWithResponse( } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -299,6 +326,10 @@ func (_m *ClientWithResponsesInterface) CreateManagedDomainWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.CreateManagedDomainResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateManagedDomainRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateManagedDomainResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateManagedDomainRequest, ...astrocore.RequestEditorFn) *astrocore.CreateManagedDomainResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -307,7 +338,6 @@ func (_m *ClientWithResponsesInterface) CreateManagedDomainWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateManagedDomainRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -329,6 +359,10 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationApiTokenWithBodyWithRe ret := _m.Called(_ca...) var r0 *astrocore.CreateOrganizationApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateOrganizationApiTokenResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateOrganizationApiTokenResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -337,7 +371,6 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationApiTokenWithBodyWithRe } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -359,6 +392,10 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationApiTokenWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.CreateOrganizationApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateOrganizationApiTokenRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateOrganizationApiTokenResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateOrganizationApiTokenRequest, ...astrocore.RequestEditorFn) *astrocore.CreateOrganizationApiTokenResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -367,7 +404,6 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationApiTokenWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateOrganizationApiTokenRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -389,6 +425,10 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationWithBodyWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.CreateOrganizationResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateOrganizationResponse, error)); ok { + return rf(ctx, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateOrganizationResponse); ok { r0 = rf(ctx, contentType, body, reqEditors...) } else { @@ -397,7 +437,6 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationWithBodyWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, contentType, body, reqEditors...) } else { @@ -419,6 +458,10 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.CreateOrganizationResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, astrocore.CreateOrganizationRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateOrganizationResponse, error)); ok { + return rf(ctx, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, astrocore.CreateOrganizationRequest, ...astrocore.RequestEditorFn) *astrocore.CreateOrganizationResponse); ok { r0 = rf(ctx, body, reqEditors...) } else { @@ -427,7 +470,6 @@ func (_m *ClientWithResponsesInterface) CreateOrganizationWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, astrocore.CreateOrganizationRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, body, reqEditors...) } else { @@ -449,6 +491,10 @@ func (_m *ClientWithResponsesInterface) CreateSsoConnectionWithBodyWithResponse( ret := _m.Called(_ca...) var r0 *astrocore.CreateSsoConnectionResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateSsoConnectionResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateSsoConnectionResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -457,7 +503,6 @@ func (_m *ClientWithResponsesInterface) CreateSsoConnectionWithBodyWithResponse( } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -479,6 +524,10 @@ func (_m *ClientWithResponsesInterface) CreateSsoConnectionWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.CreateSsoConnectionResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateSsoConnectionRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateSsoConnectionResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateSsoConnectionRequest, ...astrocore.RequestEditorFn) *astrocore.CreateSsoConnectionResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -487,7 +536,6 @@ func (_m *ClientWithResponsesInterface) CreateSsoConnectionWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateSsoConnectionRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -509,6 +557,10 @@ func (_m *ClientWithResponsesInterface) CreateTeamWithBodyWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.CreateTeamResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateTeamResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateTeamResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -517,7 +569,6 @@ func (_m *ClientWithResponsesInterface) CreateTeamWithBodyWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -539,6 +590,10 @@ func (_m *ClientWithResponsesInterface) CreateTeamWithResponse(ctx context.Conte ret := _m.Called(_ca...) var r0 *astrocore.CreateTeamResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateTeamRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateTeamResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateTeamRequest, ...astrocore.RequestEditorFn) *astrocore.CreateTeamResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -547,7 +602,6 @@ func (_m *ClientWithResponsesInterface) CreateTeamWithResponse(ctx context.Conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateTeamRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -569,6 +623,10 @@ func (_m *ClientWithResponsesInterface) CreateUserInviteWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.CreateUserInviteResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateUserInviteResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateUserInviteResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -577,7 +635,6 @@ func (_m *ClientWithResponsesInterface) CreateUserInviteWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -599,6 +656,10 @@ func (_m *ClientWithResponsesInterface) CreateUserInviteWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.CreateUserInviteResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateUserInviteRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateUserInviteResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateUserInviteRequest, ...astrocore.RequestEditorFn) *astrocore.CreateUserInviteResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -607,7 +668,6 @@ func (_m *ClientWithResponsesInterface) CreateUserInviteWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateUserInviteRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -629,6 +689,10 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceApiTokenWithBodyWithRespo ret := _m.Called(_ca...) var r0 *astrocore.CreateWorkspaceApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateWorkspaceApiTokenResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateWorkspaceApiTokenResponse); ok { r0 = rf(ctx, organizationId, workspaceId, contentType, body, reqEditors...) } else { @@ -637,7 +701,6 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceApiTokenWithBodyWithRespo } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, contentType, body, reqEditors...) } else { @@ -659,6 +722,10 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceApiTokenWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.CreateWorkspaceApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.CreateWorkspaceApiTokenRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateWorkspaceApiTokenResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.CreateWorkspaceApiTokenRequest, ...astrocore.RequestEditorFn) *astrocore.CreateWorkspaceApiTokenResponse); ok { r0 = rf(ctx, organizationId, workspaceId, body, reqEditors...) } else { @@ -667,7 +734,6 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceApiTokenWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.CreateWorkspaceApiTokenRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, body, reqEditors...) } else { @@ -689,6 +755,10 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.CreateWorkspaceResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.CreateWorkspaceResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.CreateWorkspaceResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -697,7 +767,6 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -719,6 +788,10 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceWithResponse(ctx context. ret := _m.Called(_ca...) var r0 *astrocore.CreateWorkspaceResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateWorkspaceRequest, ...astrocore.RequestEditorFn) (*astrocore.CreateWorkspaceResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.CreateWorkspaceRequest, ...astrocore.RequestEditorFn) *astrocore.CreateWorkspaceResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -727,7 +800,6 @@ func (_m *ClientWithResponsesInterface) CreateWorkspaceWithResponse(ctx context. } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.CreateWorkspaceRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -749,6 +821,10 @@ func (_m *ClientWithResponsesInterface) DeleteClusterWithResponse(ctx context.Co ret := _m.Called(_ca...) var r0 *astrocore.DeleteClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, reqEditors...) } else { @@ -757,7 +833,6 @@ func (_m *ClientWithResponsesInterface) DeleteClusterWithResponse(ctx context.Co } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, reqEditors...) } else { @@ -779,6 +854,10 @@ func (_m *ClientWithResponsesInterface) DeleteManagedDomainWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.DeleteManagedDomainResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteManagedDomainResponse, error)); ok { + return rf(ctx, organizationId, domainId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteManagedDomainResponse); ok { r0 = rf(ctx, organizationId, domainId, reqEditors...) } else { @@ -787,7 +866,6 @@ func (_m *ClientWithResponsesInterface) DeleteManagedDomainWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, domainId, reqEditors...) } else { @@ -809,6 +887,10 @@ func (_m *ClientWithResponsesInterface) DeleteOrgUserWithResponse(ctx context.Co ret := _m.Called(_ca...) var r0 *astrocore.DeleteOrgUserResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteOrgUserResponse, error)); ok { + return rf(ctx, organizationId, userId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteOrgUserResponse); ok { r0 = rf(ctx, organizationId, userId, reqEditors...) } else { @@ -817,7 +899,6 @@ func (_m *ClientWithResponsesInterface) DeleteOrgUserWithResponse(ctx context.Co } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, userId, reqEditors...) } else { @@ -839,6 +920,10 @@ func (_m *ClientWithResponsesInterface) DeleteOrganizationApiTokenWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.DeleteOrganizationApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteOrganizationApiTokenResponse, error)); ok { + return rf(ctx, organizationId, apiTokenId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteOrganizationApiTokenResponse); ok { r0 = rf(ctx, organizationId, apiTokenId, reqEditors...) } else { @@ -847,7 +932,6 @@ func (_m *ClientWithResponsesInterface) DeleteOrganizationApiTokenWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, apiTokenId, reqEditors...) } else { @@ -869,6 +953,10 @@ func (_m *ClientWithResponsesInterface) DeleteSsoBypassKeyWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.DeleteSsoBypassKeyResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteSsoBypassKeyResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.DeleteSsoBypassKeyResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -877,7 +965,6 @@ func (_m *ClientWithResponsesInterface) DeleteSsoBypassKeyWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -899,6 +986,10 @@ func (_m *ClientWithResponsesInterface) DeleteSsoConnectionWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.DeleteSsoConnectionResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteSsoConnectionResponse, error)); ok { + return rf(ctx, organizationId, connectionId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteSsoConnectionResponse); ok { r0 = rf(ctx, organizationId, connectionId, reqEditors...) } else { @@ -907,7 +998,6 @@ func (_m *ClientWithResponsesInterface) DeleteSsoConnectionWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, connectionId, reqEditors...) } else { @@ -929,6 +1019,10 @@ func (_m *ClientWithResponsesInterface) DeleteTeamWithResponse(ctx context.Conte ret := _m.Called(_ca...) var r0 *astrocore.DeleteTeamResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteTeamResponse, error)); ok { + return rf(ctx, organizationId, teamId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteTeamResponse); ok { r0 = rf(ctx, organizationId, teamId, reqEditors...) } else { @@ -937,7 +1031,6 @@ func (_m *ClientWithResponsesInterface) DeleteTeamWithResponse(ctx context.Conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, reqEditors...) } else { @@ -959,6 +1052,10 @@ func (_m *ClientWithResponsesInterface) DeleteUserInviteWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.DeleteUserInviteResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteUserInviteResponse, error)); ok { + return rf(ctx, organizationId, inviteId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteUserInviteResponse); ok { r0 = rf(ctx, organizationId, inviteId, reqEditors...) } else { @@ -967,7 +1064,6 @@ func (_m *ClientWithResponsesInterface) DeleteUserInviteWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, inviteId, reqEditors...) } else { @@ -989,6 +1085,10 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceApiTokenWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.DeleteWorkspaceApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteWorkspaceApiTokenResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteWorkspaceApiTokenResponse); ok { r0 = rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) } else { @@ -997,7 +1097,6 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceApiTokenWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) } else { @@ -1019,6 +1118,10 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceTeamWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.DeleteWorkspaceTeamResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteWorkspaceTeamResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, teamId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteWorkspaceTeamResponse); ok { r0 = rf(ctx, organizationId, workspaceId, teamId, reqEditors...) } else { @@ -1027,7 +1130,6 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceTeamWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, teamId, reqEditors...) } else { @@ -1049,6 +1151,10 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceUserWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.DeleteWorkspaceUserResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteWorkspaceUserResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, userId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteWorkspaceUserResponse); ok { r0 = rf(ctx, organizationId, workspaceId, userId, reqEditors...) } else { @@ -1057,7 +1163,6 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceUserWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, userId, reqEditors...) } else { @@ -1079,6 +1184,10 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceWithResponse(ctx context. ret := _m.Called(_ca...) var r0 *astrocore.DeleteWorkspaceResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.DeleteWorkspaceResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.DeleteWorkspaceResponse); ok { r0 = rf(ctx, organizationId, workspaceId, reqEditors...) } else { @@ -1087,7 +1196,6 @@ func (_m *ClientWithResponsesInterface) DeleteWorkspaceWithResponse(ctx context. } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, reqEditors...) } else { @@ -1109,6 +1217,10 @@ func (_m *ClientWithResponsesInterface) GetClusterOptionsWithResponse(ctx contex ret := _m.Called(_ca...) var r0 *astrocore.GetClusterOptionsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *astrocore.GetClusterOptionsParams, ...astrocore.RequestEditorFn) (*astrocore.GetClusterOptionsResponse, error)); ok { + return rf(ctx, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, *astrocore.GetClusterOptionsParams, ...astrocore.RequestEditorFn) *astrocore.GetClusterOptionsResponse); ok { r0 = rf(ctx, params, reqEditors...) } else { @@ -1117,7 +1229,6 @@ func (_m *ClientWithResponsesInterface) GetClusterOptionsWithResponse(ctx contex } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, *astrocore.GetClusterOptionsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, params, reqEditors...) } else { @@ -1139,6 +1250,10 @@ func (_m *ClientWithResponsesInterface) GetClusterWithResponse(ctx context.Conte ret := _m.Called(_ca...) var r0 *astrocore.GetClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.GetClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, reqEditors...) } else { @@ -1147,7 +1262,6 @@ func (_m *ClientWithResponsesInterface) GetClusterWithResponse(ctx context.Conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, reqEditors...) } else { @@ -1169,6 +1283,10 @@ func (_m *ClientWithResponsesInterface) GetCreditSummaryWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.GetCreditSummaryResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.GetCreditSummaryResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.GetCreditSummaryResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -1177,7 +1295,6 @@ func (_m *ClientWithResponsesInterface) GetCreditSummaryWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -1199,6 +1316,10 @@ func (_m *ClientWithResponsesInterface) GetDeploymentDagRunsWithResponse(ctx con ret := _m.Called(_ca...) var r0 *astrocore.GetDeploymentDagRunsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, *astrocore.GetDeploymentDagRunsParams, ...astrocore.RequestEditorFn) (*astrocore.GetDeploymentDagRunsResponse, error)); ok { + return rf(ctx, organizationId, deploymentId, dagId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, *astrocore.GetDeploymentDagRunsParams, ...astrocore.RequestEditorFn) *astrocore.GetDeploymentDagRunsResponse); ok { r0 = rf(ctx, organizationId, deploymentId, dagId, params, reqEditors...) } else { @@ -1207,7 +1328,6 @@ func (_m *ClientWithResponsesInterface) GetDeploymentDagRunsWithResponse(ctx con } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, *astrocore.GetDeploymentDagRunsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, deploymentId, dagId, params, reqEditors...) } else { @@ -1229,6 +1349,10 @@ func (_m *ClientWithResponsesInterface) GetDeploymentDagStructureWithResponse(ct ret := _m.Called(_ca...) var r0 *astrocore.GetDeploymentDagStructureResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetDeploymentDagStructureResponse, error)); ok { + return rf(ctx, organizationId, deploymentId, dagId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) *astrocore.GetDeploymentDagStructureResponse); ok { r0 = rf(ctx, organizationId, deploymentId, dagId, reqEditors...) } else { @@ -1237,7 +1361,6 @@ func (_m *ClientWithResponsesInterface) GetDeploymentDagStructureWithResponse(ct } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, deploymentId, dagId, reqEditors...) } else { @@ -1259,6 +1382,10 @@ func (_m *ClientWithResponsesInterface) GetDeploymentLogsWithResponse(ctx contex ret := _m.Called(_ca...) var r0 *astrocore.GetDeploymentLogsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.GetDeploymentLogsParams, ...astrocore.RequestEditorFn) (*astrocore.GetDeploymentLogsResponse, error)); ok { + return rf(ctx, organizationId, deploymentId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.GetDeploymentLogsParams, ...astrocore.RequestEditorFn) *astrocore.GetDeploymentLogsResponse); ok { r0 = rf(ctx, organizationId, deploymentId, params, reqEditors...) } else { @@ -1267,7 +1394,6 @@ func (_m *ClientWithResponsesInterface) GetDeploymentLogsWithResponse(ctx contex } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, *astrocore.GetDeploymentLogsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, deploymentId, params, reqEditors...) } else { @@ -1289,6 +1415,10 @@ func (_m *ClientWithResponsesInterface) GetDeploymentOptionsWithResponse(ctx con ret := _m.Called(_ca...) var r0 *astrocore.GetDeploymentOptionsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, ...astrocore.RequestEditorFn) (*astrocore.GetDeploymentOptionsResponse, error)); ok { + return rf(ctx, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, ...astrocore.RequestEditorFn) *astrocore.GetDeploymentOptionsResponse); ok { r0 = rf(ctx, reqEditors...) } else { @@ -1297,7 +1427,6 @@ func (_m *ClientWithResponsesInterface) GetDeploymentOptionsWithResponse(ctx con } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, reqEditors...) } else { @@ -1319,6 +1448,10 @@ func (_m *ClientWithResponsesInterface) GetDraftInvoiceWithResponse(ctx context. ret := _m.Called(_ca...) var r0 *astrocore.GetDraftInvoiceResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.GetDraftInvoiceResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.GetDraftInvoiceResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -1327,7 +1460,6 @@ func (_m *ClientWithResponsesInterface) GetDraftInvoiceWithResponse(ctx context. } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -1349,6 +1481,10 @@ func (_m *ClientWithResponsesInterface) GetManagedDomainWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.GetManagedDomainResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetManagedDomainResponse, error)); ok { + return rf(ctx, organizationId, domainId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.GetManagedDomainResponse); ok { r0 = rf(ctx, organizationId, domainId, reqEditors...) } else { @@ -1357,7 +1493,6 @@ func (_m *ClientWithResponsesInterface) GetManagedDomainWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, domainId, reqEditors...) } else { @@ -1379,6 +1514,10 @@ func (_m *ClientWithResponsesInterface) GetMetronomeDashboardWithResponse(ctx co ret := _m.Called(_ca...) var r0 *astrocore.GetMetronomeDashboardResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.GetMetronomeDashboardParamsType, *astrocore.GetMetronomeDashboardParams, ...astrocore.RequestEditorFn) (*astrocore.GetMetronomeDashboardResponse, error)); ok { + return rf(ctx, organizationId, pType, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.GetMetronomeDashboardParamsType, *astrocore.GetMetronomeDashboardParams, ...astrocore.RequestEditorFn) *astrocore.GetMetronomeDashboardResponse); ok { r0 = rf(ctx, organizationId, pType, params, reqEditors...) } else { @@ -1387,7 +1526,6 @@ func (_m *ClientWithResponsesInterface) GetMetronomeDashboardWithResponse(ctx co } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.GetMetronomeDashboardParamsType, *astrocore.GetMetronomeDashboardParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, pType, params, reqEditors...) } else { @@ -1409,6 +1547,10 @@ func (_m *ClientWithResponsesInterface) GetOrganizationApiTokenWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.GetOrganizationApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetOrganizationApiTokenResponse, error)); ok { + return rf(ctx, organizationId, apiTokenId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.GetOrganizationApiTokenResponse); ok { r0 = rf(ctx, organizationId, apiTokenId, reqEditors...) } else { @@ -1417,7 +1559,6 @@ func (_m *ClientWithResponsesInterface) GetOrganizationApiTokenWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, apiTokenId, reqEditors...) } else { @@ -1439,6 +1580,10 @@ func (_m *ClientWithResponsesInterface) GetOrganizationAuditLogsWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.GetOrganizationAuditLogsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.GetOrganizationAuditLogsParams, ...astrocore.RequestEditorFn) (*astrocore.GetOrganizationAuditLogsResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.GetOrganizationAuditLogsParams, ...astrocore.RequestEditorFn) *astrocore.GetOrganizationAuditLogsResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1447,7 +1592,6 @@ func (_m *ClientWithResponsesInterface) GetOrganizationAuditLogsWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.GetOrganizationAuditLogsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1469,6 +1613,10 @@ func (_m *ClientWithResponsesInterface) GetOrganizationWithResponse(ctx context. ret := _m.Called(_ca...) var r0 *astrocore.GetOrganizationResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.GetOrganizationParams, ...astrocore.RequestEditorFn) (*astrocore.GetOrganizationResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.GetOrganizationParams, ...astrocore.RequestEditorFn) *astrocore.GetOrganizationResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1477,7 +1625,6 @@ func (_m *ClientWithResponsesInterface) GetOrganizationWithResponse(ctx context. } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.GetOrganizationParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1499,6 +1646,10 @@ func (_m *ClientWithResponsesInterface) GetPaymentMethodWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.GetPaymentMethodResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.GetPaymentMethodResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.GetPaymentMethodResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -1507,7 +1658,6 @@ func (_m *ClientWithResponsesInterface) GetPaymentMethodWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -1529,6 +1679,10 @@ func (_m *ClientWithResponsesInterface) GetSelfUserWithResponse(ctx context.Cont ret := _m.Called(_ca...) var r0 *astrocore.GetSelfUserResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *astrocore.GetSelfUserParams, ...astrocore.RequestEditorFn) (*astrocore.GetSelfUserResponse, error)); ok { + return rf(ctx, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, *astrocore.GetSelfUserParams, ...astrocore.RequestEditorFn) *astrocore.GetSelfUserResponse); ok { r0 = rf(ctx, params, reqEditors...) } else { @@ -1537,7 +1691,6 @@ func (_m *ClientWithResponsesInterface) GetSelfUserWithResponse(ctx context.Cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, *astrocore.GetSelfUserParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, params, reqEditors...) } else { @@ -1559,6 +1712,10 @@ func (_m *ClientWithResponsesInterface) GetSharedClusterWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.GetSharedClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *astrocore.GetSharedClusterParams, ...astrocore.RequestEditorFn) (*astrocore.GetSharedClusterResponse, error)); ok { + return rf(ctx, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, *astrocore.GetSharedClusterParams, ...astrocore.RequestEditorFn) *astrocore.GetSharedClusterResponse); ok { r0 = rf(ctx, params, reqEditors...) } else { @@ -1567,7 +1724,6 @@ func (_m *ClientWithResponsesInterface) GetSharedClusterWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, *astrocore.GetSharedClusterParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, params, reqEditors...) } else { @@ -1589,6 +1745,10 @@ func (_m *ClientWithResponsesInterface) GetSsoBypassKeyWithResponse(ctx context. ret := _m.Called(_ca...) var r0 *astrocore.GetSsoBypassKeyResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.GetSsoBypassKeyResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.GetSsoBypassKeyResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -1597,7 +1757,6 @@ func (_m *ClientWithResponsesInterface) GetSsoBypassKeyWithResponse(ctx context. } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -1619,6 +1778,10 @@ func (_m *ClientWithResponsesInterface) GetSsoConnectionWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.GetSsoConnectionResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetSsoConnectionResponse, error)); ok { + return rf(ctx, organizationId, connectionId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.GetSsoConnectionResponse); ok { r0 = rf(ctx, organizationId, connectionId, reqEditors...) } else { @@ -1627,7 +1790,6 @@ func (_m *ClientWithResponsesInterface) GetSsoConnectionWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, connectionId, reqEditors...) } else { @@ -1649,6 +1811,10 @@ func (_m *ClientWithResponsesInterface) GetStripeClientSecretWithResponse(ctx co ret := _m.Called(_ca...) var r0 *astrocore.GetStripeClientSecretResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.GetStripeClientSecretParamsType, ...astrocore.RequestEditorFn) (*astrocore.GetStripeClientSecretResponse, error)); ok { + return rf(ctx, organizationId, pType, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.GetStripeClientSecretParamsType, ...astrocore.RequestEditorFn) *astrocore.GetStripeClientSecretResponse); ok { r0 = rf(ctx, organizationId, pType, reqEditors...) } else { @@ -1657,7 +1823,6 @@ func (_m *ClientWithResponsesInterface) GetStripeClientSecretWithResponse(ctx co } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.GetStripeClientSecretParamsType, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, pType, reqEditors...) } else { @@ -1679,6 +1844,10 @@ func (_m *ClientWithResponsesInterface) GetTeamWithResponse(ctx context.Context, ret := _m.Called(_ca...) var r0 *astrocore.GetTeamResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetTeamResponse, error)); ok { + return rf(ctx, organizationId, teamId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.GetTeamResponse); ok { r0 = rf(ctx, organizationId, teamId, reqEditors...) } else { @@ -1687,7 +1856,6 @@ func (_m *ClientWithResponsesInterface) GetTeamWithResponse(ctx context.Context, } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, reqEditors...) } else { @@ -1709,6 +1877,10 @@ func (_m *ClientWithResponsesInterface) GetUserInviteWithResponse(ctx context.Co ret := _m.Called(_ca...) var r0 *astrocore.GetUserInviteResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.GetUserInviteResponse, error)); ok { + return rf(ctx, inviteId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.GetUserInviteResponse); ok { r0 = rf(ctx, inviteId, reqEditors...) } else { @@ -1717,7 +1889,6 @@ func (_m *ClientWithResponsesInterface) GetUserInviteWithResponse(ctx context.Co } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, inviteId, reqEditors...) } else { @@ -1739,6 +1910,10 @@ func (_m *ClientWithResponsesInterface) GetUserWithResponse(ctx context.Context, ret := _m.Called(_ca...) var r0 *astrocore.GetUserResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetUserResponse, error)); ok { + return rf(ctx, organizationId, userId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.GetUserResponse); ok { r0 = rf(ctx, organizationId, userId, reqEditors...) } else { @@ -1747,7 +1922,6 @@ func (_m *ClientWithResponsesInterface) GetUserWithResponse(ctx context.Context, } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, userId, reqEditors...) } else { @@ -1769,6 +1943,10 @@ func (_m *ClientWithResponsesInterface) GetWorkspaceApiTokenWithResponse(ctx con ret := _m.Called(_ca...) var r0 *astrocore.GetWorkspaceApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetWorkspaceApiTokenResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) *astrocore.GetWorkspaceApiTokenResponse); ok { r0 = rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) } else { @@ -1777,7 +1955,6 @@ func (_m *ClientWithResponsesInterface) GetWorkspaceApiTokenWithResponse(ctx con } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) } else { @@ -1799,6 +1976,10 @@ func (_m *ClientWithResponsesInterface) GetWorkspaceWithResponse(ctx context.Con ret := _m.Called(_ca...) var r0 *astrocore.GetWorkspaceResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.GetWorkspaceResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.GetWorkspaceResponse); ok { r0 = rf(ctx, organizationId, workspaceId, reqEditors...) } else { @@ -1807,7 +1988,6 @@ func (_m *ClientWithResponsesInterface) GetWorkspaceWithResponse(ctx context.Con } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, reqEditors...) } else { @@ -1829,6 +2009,10 @@ func (_m *ClientWithResponsesInterface) ListClustersWithResponse(ctx context.Con ret := _m.Called(_ca...) var r0 *astrocore.ListClustersResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListClustersParams, ...astrocore.RequestEditorFn) (*astrocore.ListClustersResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListClustersParams, ...astrocore.RequestEditorFn) *astrocore.ListClustersResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1837,7 +2021,6 @@ func (_m *ClientWithResponsesInterface) ListClustersWithResponse(ctx context.Con } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.ListClustersParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1859,6 +2042,10 @@ func (_m *ClientWithResponsesInterface) ListDeploymentsWithResponse(ctx context. ret := _m.Called(_ca...) var r0 *astrocore.ListDeploymentsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListDeploymentsParams, ...astrocore.RequestEditorFn) (*astrocore.ListDeploymentsResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListDeploymentsParams, ...astrocore.RequestEditorFn) *astrocore.ListDeploymentsResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1867,7 +2054,6 @@ func (_m *ClientWithResponsesInterface) ListDeploymentsWithResponse(ctx context. } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.ListDeploymentsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1889,6 +2075,10 @@ func (_m *ClientWithResponsesInterface) ListManagedDomainsWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.ListManagedDomainsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.ListManagedDomainsResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.ListManagedDomainsResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -1897,7 +2087,6 @@ func (_m *ClientWithResponsesInterface) ListManagedDomainsWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -1919,6 +2108,10 @@ func (_m *ClientWithResponsesInterface) ListOrgUsersWithResponse(ctx context.Con ret := _m.Called(_ca...) var r0 *astrocore.ListOrgUsersResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListOrgUsersParams, ...astrocore.RequestEditorFn) (*astrocore.ListOrgUsersResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListOrgUsersParams, ...astrocore.RequestEditorFn) *astrocore.ListOrgUsersResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1927,7 +2120,6 @@ func (_m *ClientWithResponsesInterface) ListOrgUsersWithResponse(ctx context.Con } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.ListOrgUsersParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1949,6 +2141,10 @@ func (_m *ClientWithResponsesInterface) ListOrganizationApiTokensWithResponse(ct ret := _m.Called(_ca...) var r0 *astrocore.ListOrganizationApiTokensResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListOrganizationApiTokensParams, ...astrocore.RequestEditorFn) (*astrocore.ListOrganizationApiTokensResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListOrganizationApiTokensParams, ...astrocore.RequestEditorFn) *astrocore.ListOrganizationApiTokensResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1957,7 +2153,6 @@ func (_m *ClientWithResponsesInterface) ListOrganizationApiTokensWithResponse(ct } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.ListOrganizationApiTokensParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -1979,6 +2174,10 @@ func (_m *ClientWithResponsesInterface) ListOrganizationAuthIdsWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.ListOrganizationAuthIdsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *astrocore.ListOrganizationAuthIdsParams, ...astrocore.RequestEditorFn) (*astrocore.ListOrganizationAuthIdsResponse, error)); ok { + return rf(ctx, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, *astrocore.ListOrganizationAuthIdsParams, ...astrocore.RequestEditorFn) *astrocore.ListOrganizationAuthIdsResponse); ok { r0 = rf(ctx, params, reqEditors...) } else { @@ -1987,7 +2186,6 @@ func (_m *ClientWithResponsesInterface) ListOrganizationAuthIdsWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, *astrocore.ListOrganizationAuthIdsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, params, reqEditors...) } else { @@ -2009,6 +2207,10 @@ func (_m *ClientWithResponsesInterface) ListOrganizationTeamsWithResponse(ctx co ret := _m.Called(_ca...) var r0 *astrocore.ListOrganizationTeamsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListOrganizationTeamsParams, ...astrocore.RequestEditorFn) (*astrocore.ListOrganizationTeamsResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListOrganizationTeamsParams, ...astrocore.RequestEditorFn) *astrocore.ListOrganizationTeamsResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -2017,7 +2219,6 @@ func (_m *ClientWithResponsesInterface) ListOrganizationTeamsWithResponse(ctx co } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.ListOrganizationTeamsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -2039,6 +2240,10 @@ func (_m *ClientWithResponsesInterface) ListOrganizationsWithResponse(ctx contex ret := _m.Called(_ca...) var r0 *astrocore.ListOrganizationsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *astrocore.ListOrganizationsParams, ...astrocore.RequestEditorFn) (*astrocore.ListOrganizationsResponse, error)); ok { + return rf(ctx, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, *astrocore.ListOrganizationsParams, ...astrocore.RequestEditorFn) *astrocore.ListOrganizationsResponse); ok { r0 = rf(ctx, params, reqEditors...) } else { @@ -2047,7 +2252,6 @@ func (_m *ClientWithResponsesInterface) ListOrganizationsWithResponse(ctx contex } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, *astrocore.ListOrganizationsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, params, reqEditors...) } else { @@ -2069,6 +2273,10 @@ func (_m *ClientWithResponsesInterface) ListSsoConnectionsWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.ListSsoConnectionsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.ListSsoConnectionsResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.ListSsoConnectionsResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -2077,7 +2285,6 @@ func (_m *ClientWithResponsesInterface) ListSsoConnectionsWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -2099,6 +2306,10 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceApiTokensWithResponse(ctx c ret := _m.Called(_ca...) var r0 *astrocore.ListWorkspaceApiTokensResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceApiTokensParams, ...astrocore.RequestEditorFn) (*astrocore.ListWorkspaceApiTokensResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceApiTokensParams, ...astrocore.RequestEditorFn) *astrocore.ListWorkspaceApiTokensResponse); ok { r0 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2107,7 +2318,6 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceApiTokensWithResponse(ctx c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, *astrocore.ListWorkspaceApiTokensParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2129,6 +2339,10 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceDagFiltersWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.ListWorkspaceDagFiltersResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.ListWorkspaceDagFiltersResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.ListWorkspaceDagFiltersResponse); ok { r0 = rf(ctx, organizationId, workspaceId, reqEditors...) } else { @@ -2137,7 +2351,6 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceDagFiltersWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, reqEditors...) } else { @@ -2159,6 +2372,10 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceDagsWithResponse(ctx contex ret := _m.Called(_ca...) var r0 *astrocore.ListWorkspaceDagsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceDagsParams, ...astrocore.RequestEditorFn) (*astrocore.ListWorkspaceDagsResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceDagsParams, ...astrocore.RequestEditorFn) *astrocore.ListWorkspaceDagsResponse); ok { r0 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2167,7 +2384,6 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceDagsWithResponse(ctx contex } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, *astrocore.ListWorkspaceDagsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2189,6 +2405,10 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceTeamsWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.ListWorkspaceTeamsResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceTeamsParams, ...astrocore.RequestEditorFn) (*astrocore.ListWorkspaceTeamsResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceTeamsParams, ...astrocore.RequestEditorFn) *astrocore.ListWorkspaceTeamsResponse); ok { r0 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2197,7 +2417,6 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceTeamsWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, *astrocore.ListWorkspaceTeamsParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2219,6 +2438,10 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceUsersWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.ListWorkspaceUsersResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceUsersParams, ...astrocore.RequestEditorFn) (*astrocore.ListWorkspaceUsersResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, *astrocore.ListWorkspaceUsersParams, ...astrocore.RequestEditorFn) *astrocore.ListWorkspaceUsersResponse); ok { r0 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2227,7 +2450,6 @@ func (_m *ClientWithResponsesInterface) ListWorkspaceUsersWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, *astrocore.ListWorkspaceUsersParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, params, reqEditors...) } else { @@ -2249,6 +2471,10 @@ func (_m *ClientWithResponsesInterface) ListWorkspacesWithResponse(ctx context.C ret := _m.Called(_ca...) var r0 *astrocore.ListWorkspacesResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListWorkspacesParams, ...astrocore.RequestEditorFn) (*astrocore.ListWorkspacesResponse, error)); ok { + return rf(ctx, organizationId, params, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, *astrocore.ListWorkspacesParams, ...astrocore.RequestEditorFn) *astrocore.ListWorkspacesResponse); ok { r0 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -2257,7 +2483,6 @@ func (_m *ClientWithResponsesInterface) ListWorkspacesWithResponse(ctx context.C } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, *astrocore.ListWorkspacesParams, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, params, reqEditors...) } else { @@ -2279,6 +2504,10 @@ func (_m *ClientWithResponsesInterface) MutateOrgTeamRoleWithBodyWithResponse(ct ret := _m.Called(_ca...) var r0 *astrocore.MutateOrgTeamRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.MutateOrgTeamRoleResponse, error)); ok { + return rf(ctx, organizationId, teamId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.MutateOrgTeamRoleResponse); ok { r0 = rf(ctx, organizationId, teamId, contentType, body, reqEditors...) } else { @@ -2287,7 +2516,6 @@ func (_m *ClientWithResponsesInterface) MutateOrgTeamRoleWithBodyWithResponse(ct } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, contentType, body, reqEditors...) } else { @@ -2309,6 +2537,10 @@ func (_m *ClientWithResponsesInterface) MutateOrgTeamRoleWithResponse(ctx contex ret := _m.Called(_ca...) var r0 *astrocore.MutateOrgTeamRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.MutateOrgTeamRoleRequest, ...astrocore.RequestEditorFn) (*astrocore.MutateOrgTeamRoleResponse, error)); ok { + return rf(ctx, organizationId, teamId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.MutateOrgTeamRoleRequest, ...astrocore.RequestEditorFn) *astrocore.MutateOrgTeamRoleResponse); ok { r0 = rf(ctx, organizationId, teamId, body, reqEditors...) } else { @@ -2317,7 +2549,6 @@ func (_m *ClientWithResponsesInterface) MutateOrgTeamRoleWithResponse(ctx contex } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.MutateOrgTeamRoleRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, body, reqEditors...) } else { @@ -2339,6 +2570,10 @@ func (_m *ClientWithResponsesInterface) MutateOrgUserRoleWithBodyWithResponse(ct ret := _m.Called(_ca...) var r0 *astrocore.MutateOrgUserRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.MutateOrgUserRoleResponse, error)); ok { + return rf(ctx, organizationId, userId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.MutateOrgUserRoleResponse); ok { r0 = rf(ctx, organizationId, userId, contentType, body, reqEditors...) } else { @@ -2347,7 +2582,6 @@ func (_m *ClientWithResponsesInterface) MutateOrgUserRoleWithBodyWithResponse(ct } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, userId, contentType, body, reqEditors...) } else { @@ -2369,6 +2603,10 @@ func (_m *ClientWithResponsesInterface) MutateOrgUserRoleWithResponse(ctx contex ret := _m.Called(_ca...) var r0 *astrocore.MutateOrgUserRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.MutateOrgUserRoleRequest, ...astrocore.RequestEditorFn) (*astrocore.MutateOrgUserRoleResponse, error)); ok { + return rf(ctx, organizationId, userId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.MutateOrgUserRoleRequest, ...astrocore.RequestEditorFn) *astrocore.MutateOrgUserRoleResponse); ok { r0 = rf(ctx, organizationId, userId, body, reqEditors...) } else { @@ -2377,7 +2615,6 @@ func (_m *ClientWithResponsesInterface) MutateOrgUserRoleWithResponse(ctx contex } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.MutateOrgUserRoleRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, userId, body, reqEditors...) } else { @@ -2399,6 +2636,10 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceTeamRoleWithBodyWithRespo ret := _m.Called(_ca...) var r0 *astrocore.MutateWorkspaceTeamRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.MutateWorkspaceTeamRoleResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, teamId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.MutateWorkspaceTeamRoleResponse); ok { r0 = rf(ctx, organizationId, workspaceId, teamId, contentType, body, reqEditors...) } else { @@ -2407,7 +2648,6 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceTeamRoleWithBodyWithRespo } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, teamId, contentType, body, reqEditors...) } else { @@ -2429,6 +2669,10 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceTeamRoleWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.MutateWorkspaceTeamRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.MutateWorkspaceTeamRoleRequest, ...astrocore.RequestEditorFn) (*astrocore.MutateWorkspaceTeamRoleResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, teamId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.MutateWorkspaceTeamRoleRequest, ...astrocore.RequestEditorFn) *astrocore.MutateWorkspaceTeamRoleResponse); ok { r0 = rf(ctx, organizationId, workspaceId, teamId, body, reqEditors...) } else { @@ -2437,7 +2681,6 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceTeamRoleWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, astrocore.MutateWorkspaceTeamRoleRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, teamId, body, reqEditors...) } else { @@ -2459,6 +2702,10 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceUserRoleWithBodyWithRespo ret := _m.Called(_ca...) var r0 *astrocore.MutateWorkspaceUserRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.MutateWorkspaceUserRoleResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, userId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.MutateWorkspaceUserRoleResponse); ok { r0 = rf(ctx, organizationId, workspaceId, userId, contentType, body, reqEditors...) } else { @@ -2467,7 +2714,6 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceUserRoleWithBodyWithRespo } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, userId, contentType, body, reqEditors...) } else { @@ -2489,6 +2735,10 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceUserRoleWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.MutateWorkspaceUserRoleResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.MutateWorkspaceUserRoleRequest, ...astrocore.RequestEditorFn) (*astrocore.MutateWorkspaceUserRoleResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, userId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.MutateWorkspaceUserRoleRequest, ...astrocore.RequestEditorFn) *astrocore.MutateWorkspaceUserRoleResponse); ok { r0 = rf(ctx, organizationId, workspaceId, userId, body, reqEditors...) } else { @@ -2497,7 +2747,6 @@ func (_m *ClientWithResponsesInterface) MutateWorkspaceUserRoleWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, astrocore.MutateWorkspaceUserRoleRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, userId, body, reqEditors...) } else { @@ -2519,6 +2768,10 @@ func (_m *ClientWithResponsesInterface) RemoveTeamMemberWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.RemoveTeamMemberResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) (*astrocore.RemoveTeamMemberResponse, error)); ok { + return rf(ctx, organizationId, teamId, memberId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) *astrocore.RemoveTeamMemberResponse); ok { r0 = rf(ctx, organizationId, teamId, memberId, reqEditors...) } else { @@ -2527,7 +2780,6 @@ func (_m *ClientWithResponsesInterface) RemoveTeamMemberWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, memberId, reqEditors...) } else { @@ -2549,6 +2801,10 @@ func (_m *ClientWithResponsesInterface) RotateOrganizationApiTokenWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.RotateOrganizationApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.RotateOrganizationApiTokenResponse, error)); ok { + return rf(ctx, organizationId, apiTokenId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.RotateOrganizationApiTokenResponse); ok { r0 = rf(ctx, organizationId, apiTokenId, reqEditors...) } else { @@ -2557,7 +2813,6 @@ func (_m *ClientWithResponsesInterface) RotateOrganizationApiTokenWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, apiTokenId, reqEditors...) } else { @@ -2579,6 +2834,10 @@ func (_m *ClientWithResponsesInterface) RotateWorkspaceApiTokenWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.RotateWorkspaceApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) (*astrocore.RotateWorkspaceApiTokenResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) *astrocore.RotateWorkspaceApiTokenResponse); ok { r0 = rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) } else { @@ -2587,7 +2846,6 @@ func (_m *ClientWithResponsesInterface) RotateWorkspaceApiTokenWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, apiTokenId, reqEditors...) } else { @@ -2609,6 +2867,10 @@ func (_m *ClientWithResponsesInterface) UpdateAwsClusterWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.UpdateAwsClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateAwsClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateAwsClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) } else { @@ -2617,7 +2879,6 @@ func (_m *ClientWithResponsesInterface) UpdateAwsClusterWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) } else { @@ -2639,6 +2900,10 @@ func (_m *ClientWithResponsesInterface) UpdateAwsClusterWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.UpdateAwsClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateAwsClusterRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateAwsClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateAwsClusterRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateAwsClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, body, reqEditors...) } else { @@ -2647,7 +2912,6 @@ func (_m *ClientWithResponsesInterface) UpdateAwsClusterWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateAwsClusterRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, body, reqEditors...) } else { @@ -2669,6 +2933,10 @@ func (_m *ClientWithResponsesInterface) UpdateAzureClusterWithBodyWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.UpdateAzureClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateAzureClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateAzureClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) } else { @@ -2677,7 +2945,6 @@ func (_m *ClientWithResponsesInterface) UpdateAzureClusterWithBodyWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) } else { @@ -2699,6 +2966,10 @@ func (_m *ClientWithResponsesInterface) UpdateAzureClusterWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.UpdateAzureClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateAzureClusterRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateAzureClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateAzureClusterRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateAzureClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, body, reqEditors...) } else { @@ -2707,7 +2978,6 @@ func (_m *ClientWithResponsesInterface) UpdateAzureClusterWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateAzureClusterRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, body, reqEditors...) } else { @@ -2729,6 +2999,10 @@ func (_m *ClientWithResponsesInterface) UpdateDeploymentWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.UpdateDeploymentResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateDeploymentResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, deploymentId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateDeploymentResponse); ok { r0 = rf(ctx, organizationId, workspaceId, deploymentId, contentType, body, reqEditors...) } else { @@ -2737,7 +3011,6 @@ func (_m *ClientWithResponsesInterface) UpdateDeploymentWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, deploymentId, contentType, body, reqEditors...) } else { @@ -2759,6 +3032,10 @@ func (_m *ClientWithResponsesInterface) UpdateDeploymentWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.UpdateDeploymentResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.UpdateDeploymentRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateDeploymentResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, deploymentId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.UpdateDeploymentRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateDeploymentResponse); ok { r0 = rf(ctx, organizationId, workspaceId, deploymentId, body, reqEditors...) } else { @@ -2767,7 +3044,6 @@ func (_m *ClientWithResponsesInterface) UpdateDeploymentWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, astrocore.UpdateDeploymentRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, deploymentId, body, reqEditors...) } else { @@ -2789,6 +3065,10 @@ func (_m *ClientWithResponsesInterface) UpdateGcpClusterWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.UpdateGcpClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateGcpClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateGcpClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) } else { @@ -2797,7 +3077,6 @@ func (_m *ClientWithResponsesInterface) UpdateGcpClusterWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, contentType, body, reqEditors...) } else { @@ -2819,6 +3098,10 @@ func (_m *ClientWithResponsesInterface) UpdateGcpClusterWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.UpdateGcpClusterResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateGcpClusterRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateGcpClusterResponse, error)); ok { + return rf(ctx, organizationId, clusterId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateGcpClusterRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateGcpClusterResponse); ok { r0 = rf(ctx, organizationId, clusterId, body, reqEditors...) } else { @@ -2827,7 +3110,6 @@ func (_m *ClientWithResponsesInterface) UpdateGcpClusterWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateGcpClusterRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, clusterId, body, reqEditors...) } else { @@ -2849,6 +3131,10 @@ func (_m *ClientWithResponsesInterface) UpdateManagedDomainWithBodyWithResponse( ret := _m.Called(_ca...) var r0 *astrocore.UpdateManagedDomainResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateManagedDomainResponse, error)); ok { + return rf(ctx, organizationId, domainId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateManagedDomainResponse); ok { r0 = rf(ctx, organizationId, domainId, contentType, body, reqEditors...) } else { @@ -2857,7 +3143,6 @@ func (_m *ClientWithResponsesInterface) UpdateManagedDomainWithBodyWithResponse( } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, domainId, contentType, body, reqEditors...) } else { @@ -2879,6 +3164,10 @@ func (_m *ClientWithResponsesInterface) UpdateManagedDomainWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.UpdateManagedDomainResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateManagedDomainRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateManagedDomainResponse, error)); ok { + return rf(ctx, organizationId, domainId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateManagedDomainRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateManagedDomainResponse); ok { r0 = rf(ctx, organizationId, domainId, body, reqEditors...) } else { @@ -2887,7 +3176,6 @@ func (_m *ClientWithResponsesInterface) UpdateManagedDomainWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateManagedDomainRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, domainId, body, reqEditors...) } else { @@ -2909,6 +3197,10 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationApiTokenWithBodyWithRe ret := _m.Called(_ca...) var r0 *astrocore.UpdateOrganizationApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateOrganizationApiTokenResponse, error)); ok { + return rf(ctx, organizationId, apiTokenId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateOrganizationApiTokenResponse); ok { r0 = rf(ctx, organizationId, apiTokenId, contentType, body, reqEditors...) } else { @@ -2917,7 +3209,6 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationApiTokenWithBodyWithRe } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, apiTokenId, contentType, body, reqEditors...) } else { @@ -2939,6 +3230,10 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationApiTokenWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.UpdateOrganizationApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateOrganizationApiTokenRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateOrganizationApiTokenResponse, error)); ok { + return rf(ctx, organizationId, apiTokenId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateOrganizationApiTokenRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateOrganizationApiTokenResponse); ok { r0 = rf(ctx, organizationId, apiTokenId, body, reqEditors...) } else { @@ -2947,7 +3242,6 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationApiTokenWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateOrganizationApiTokenRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, apiTokenId, body, reqEditors...) } else { @@ -2969,6 +3263,10 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationWithBodyWithResponse(c ret := _m.Called(_ca...) var r0 *astrocore.UpdateOrganizationResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateOrganizationResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateOrganizationResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -2977,7 +3275,6 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationWithBodyWithResponse(c } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -2999,6 +3296,10 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.UpdateOrganizationResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.UpdateOrganizationRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateOrganizationResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.UpdateOrganizationRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateOrganizationResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -3007,7 +3308,6 @@ func (_m *ClientWithResponsesInterface) UpdateOrganizationWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.UpdateOrganizationRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -3029,6 +3329,10 @@ func (_m *ClientWithResponsesInterface) UpdateSelfUserInviteWithBodyWithResponse ret := _m.Called(_ca...) var r0 *astrocore.UpdateSelfUserInviteResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateSelfUserInviteResponse, error)); ok { + return rf(ctx, inviteId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateSelfUserInviteResponse); ok { r0 = rf(ctx, inviteId, contentType, body, reqEditors...) } else { @@ -3037,7 +3341,6 @@ func (_m *ClientWithResponsesInterface) UpdateSelfUserInviteWithBodyWithResponse } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, inviteId, contentType, body, reqEditors...) } else { @@ -3059,6 +3362,10 @@ func (_m *ClientWithResponsesInterface) UpdateSelfUserInviteWithResponse(ctx con ret := _m.Called(_ca...) var r0 *astrocore.UpdateSelfUserInviteResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.UpdateInviteRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateSelfUserInviteResponse, error)); ok { + return rf(ctx, inviteId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.UpdateInviteRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateSelfUserInviteResponse); ok { r0 = rf(ctx, inviteId, body, reqEditors...) } else { @@ -3067,7 +3374,6 @@ func (_m *ClientWithResponsesInterface) UpdateSelfUserInviteWithResponse(ctx con } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.UpdateInviteRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, inviteId, body, reqEditors...) } else { @@ -3089,6 +3395,10 @@ func (_m *ClientWithResponsesInterface) UpdateSsoConnectionWithBodyWithResponse( ret := _m.Called(_ca...) var r0 *astrocore.UpdateSsoConnectionResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateSsoConnectionResponse, error)); ok { + return rf(ctx, organizationId, connectionId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateSsoConnectionResponse); ok { r0 = rf(ctx, organizationId, connectionId, contentType, body, reqEditors...) } else { @@ -3097,7 +3407,6 @@ func (_m *ClientWithResponsesInterface) UpdateSsoConnectionWithBodyWithResponse( } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, connectionId, contentType, body, reqEditors...) } else { @@ -3119,6 +3428,10 @@ func (_m *ClientWithResponsesInterface) UpdateSsoConnectionWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.UpdateSsoConnectionResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateSsoConnectionRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateSsoConnectionResponse, error)); ok { + return rf(ctx, organizationId, connectionId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateSsoConnectionRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateSsoConnectionResponse); ok { r0 = rf(ctx, organizationId, connectionId, body, reqEditors...) } else { @@ -3127,7 +3440,6 @@ func (_m *ClientWithResponsesInterface) UpdateSsoConnectionWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateSsoConnectionRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, connectionId, body, reqEditors...) } else { @@ -3149,6 +3461,10 @@ func (_m *ClientWithResponsesInterface) UpdateTeamWithBodyWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.UpdateTeamResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateTeamResponse, error)); ok { + return rf(ctx, organizationId, teamId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateTeamResponse); ok { r0 = rf(ctx, organizationId, teamId, contentType, body, reqEditors...) } else { @@ -3157,7 +3473,6 @@ func (_m *ClientWithResponsesInterface) UpdateTeamWithBodyWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, contentType, body, reqEditors...) } else { @@ -3179,6 +3494,10 @@ func (_m *ClientWithResponsesInterface) UpdateTeamWithResponse(ctx context.Conte ret := _m.Called(_ca...) var r0 *astrocore.UpdateTeamResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateTeamRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateTeamResponse, error)); ok { + return rf(ctx, organizationId, teamId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateTeamRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateTeamResponse); ok { r0 = rf(ctx, organizationId, teamId, body, reqEditors...) } else { @@ -3187,7 +3506,6 @@ func (_m *ClientWithResponsesInterface) UpdateTeamWithResponse(ctx context.Conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateTeamRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, teamId, body, reqEditors...) } else { @@ -3209,6 +3527,10 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceApiTokenWithBodyWithRespo ret := _m.Called(_ca...) var r0 *astrocore.UpdateWorkspaceApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateWorkspaceApiTokenResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, apiTokenId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateWorkspaceApiTokenResponse); ok { r0 = rf(ctx, organizationId, workspaceId, apiTokenId, contentType, body, reqEditors...) } else { @@ -3217,7 +3539,6 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceApiTokenWithBodyWithRespo } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, apiTokenId, contentType, body, reqEditors...) } else { @@ -3239,6 +3560,10 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceApiTokenWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.UpdateWorkspaceApiTokenResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.UpdateWorkspaceApiTokenRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateWorkspaceApiTokenResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, apiTokenId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, astrocore.UpdateWorkspaceApiTokenRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateWorkspaceApiTokenResponse); ok { r0 = rf(ctx, organizationId, workspaceId, apiTokenId, body, reqEditors...) } else { @@ -3247,7 +3572,6 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceApiTokenWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, astrocore.UpdateWorkspaceApiTokenRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, apiTokenId, body, reqEditors...) } else { @@ -3269,6 +3593,10 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.UpdateWorkspaceResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.UpdateWorkspaceResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.UpdateWorkspaceResponse); ok { r0 = rf(ctx, organizationId, workspaceId, contentType, body, reqEditors...) } else { @@ -3277,7 +3605,6 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, contentType, body, reqEditors...) } else { @@ -3299,6 +3626,10 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceWithResponse(ctx context. ret := _m.Called(_ca...) var r0 *astrocore.UpdateWorkspaceResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateWorkspaceRequest, ...astrocore.RequestEditorFn) (*astrocore.UpdateWorkspaceResponse, error)); ok { + return rf(ctx, organizationId, workspaceId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, astrocore.UpdateWorkspaceRequest, ...astrocore.RequestEditorFn) *astrocore.UpdateWorkspaceResponse); ok { r0 = rf(ctx, organizationId, workspaceId, body, reqEditors...) } else { @@ -3307,7 +3638,6 @@ func (_m *ClientWithResponsesInterface) UpdateWorkspaceWithResponse(ctx context. } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, astrocore.UpdateWorkspaceRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, workspaceId, body, reqEditors...) } else { @@ -3329,6 +3659,10 @@ func (_m *ClientWithResponsesInterface) UpsertSsoBypassKeyWithResponse(ctx conte ret := _m.Called(_ca...) var r0 *astrocore.UpsertSsoBypassKeyResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) (*astrocore.UpsertSsoBypassKeyResponse, error)); ok { + return rf(ctx, organizationId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, ...astrocore.RequestEditorFn) *astrocore.UpsertSsoBypassKeyResponse); ok { r0 = rf(ctx, organizationId, reqEditors...) } else { @@ -3337,7 +3671,6 @@ func (_m *ClientWithResponsesInterface) UpsertSsoBypassKeyWithResponse(ctx conte } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, reqEditors...) } else { @@ -3359,6 +3692,10 @@ func (_m *ClientWithResponsesInterface) ValidateCreditCardPaymentWithBodyWithRes ret := _m.Called(_ca...) var r0 *astrocore.ValidateCreditCardPaymentResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.ValidateCreditCardPaymentResponse, error)); ok { + return rf(ctx, organizationId, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.ValidateCreditCardPaymentResponse); ok { r0 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -3367,7 +3704,6 @@ func (_m *ClientWithResponsesInterface) ValidateCreditCardPaymentWithBodyWithRes } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, contentType, body, reqEditors...) } else { @@ -3389,6 +3725,10 @@ func (_m *ClientWithResponsesInterface) ValidateCreditCardPaymentWithResponse(ct ret := _m.Called(_ca...) var r0 *astrocore.ValidateCreditCardPaymentResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.ValidateCreditCardPaymentRequest, ...astrocore.RequestEditorFn) (*astrocore.ValidateCreditCardPaymentResponse, error)); ok { + return rf(ctx, organizationId, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, astrocore.ValidateCreditCardPaymentRequest, ...astrocore.RequestEditorFn) *astrocore.ValidateCreditCardPaymentResponse); ok { r0 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -3397,7 +3737,6 @@ func (_m *ClientWithResponsesInterface) ValidateCreditCardPaymentWithResponse(ct } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, astrocore.ValidateCreditCardPaymentRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, body, reqEditors...) } else { @@ -3419,6 +3758,10 @@ func (_m *ClientWithResponsesInterface) ValidateSsoLoginWithBodyWithResponse(ctx ret := _m.Called(_ca...) var r0 *astrocore.ValidateSsoLoginResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...astrocore.RequestEditorFn) (*astrocore.ValidateSsoLoginResponse, error)); ok { + return rf(ctx, contentType, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...astrocore.RequestEditorFn) *astrocore.ValidateSsoLoginResponse); ok { r0 = rf(ctx, contentType, body, reqEditors...) } else { @@ -3427,7 +3770,6 @@ func (_m *ClientWithResponsesInterface) ValidateSsoLoginWithBodyWithResponse(ctx } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, contentType, body, reqEditors...) } else { @@ -3449,6 +3791,10 @@ func (_m *ClientWithResponsesInterface) ValidateSsoLoginWithResponse(ctx context ret := _m.Called(_ca...) var r0 *astrocore.ValidateSsoLoginResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, astrocore.ValidateSsoLoginRequest, ...astrocore.RequestEditorFn) (*astrocore.ValidateSsoLoginResponse, error)); ok { + return rf(ctx, body, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, astrocore.ValidateSsoLoginRequest, ...astrocore.RequestEditorFn) *astrocore.ValidateSsoLoginResponse); ok { r0 = rf(ctx, body, reqEditors...) } else { @@ -3457,7 +3803,6 @@ func (_m *ClientWithResponsesInterface) ValidateSsoLoginWithResponse(ctx context } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, astrocore.ValidateSsoLoginRequest, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, body, reqEditors...) } else { @@ -3479,6 +3824,10 @@ func (_m *ClientWithResponsesInterface) VerifyManagedDomainWithResponse(ctx cont ret := _m.Called(_ca...) var r0 *astrocore.VerifyManagedDomainResponse + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) (*astrocore.VerifyManagedDomainResponse, error)); ok { + return rf(ctx, organizationId, domainId, reqEditors...) + } if rf, ok := ret.Get(0).(func(context.Context, string, string, ...astrocore.RequestEditorFn) *astrocore.VerifyManagedDomainResponse); ok { r0 = rf(ctx, organizationId, domainId, reqEditors...) } else { @@ -3487,7 +3836,6 @@ func (_m *ClientWithResponsesInterface) VerifyManagedDomainWithResponse(ctx cont } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, string, ...astrocore.RequestEditorFn) error); ok { r1 = rf(ctx, organizationId, domainId, reqEditors...) } else { @@ -3497,13 +3845,12 @@ func (_m *ClientWithResponsesInterface) VerifyManagedDomainWithResponse(ctx cont return r0, r1 } -type mockConstructorTestingTNewClientWithResponsesInterface interface { +// NewClientWithResponsesInterface creates a new instance of ClientWithResponsesInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewClientWithResponsesInterface(t interface { mock.TestingT Cleanup(func()) -} - -// NewClientWithResponsesInterface creates a new instance of ClientWithResponsesInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewClientWithResponsesInterface(t mockConstructorTestingTNewClientWithResponsesInterface) *ClientWithResponsesInterface { +}) *ClientWithResponsesInterface { mock := &ClientWithResponsesInterface{} mock.Mock.Test(t) diff --git a/astro-client/mocks/Client.go b/astro-client/mocks/Client.go index 2908f7050..a11fb1d5d 100644 --- a/astro-client/mocks/Client.go +++ b/astro-client/mocks/Client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package astro_mocks @@ -385,13 +385,12 @@ func (_m *Client) UpdateDeployment(input *astro.UpdateDeploymentInput) (astro.De return r0, r1 } -type mockConstructorTestingTNewClient interface { +// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewClient(t interface { mock.TestingT Cleanup(func()) -} - -// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewClient(t mockConstructorTestingTNewClient) *Client { +}) *Client { mock := &Client{} mock.Mock.Test(t) diff --git a/houston/mocks/ClientInterface.go b/houston/mocks/ClientInterface.go index 03acfe3c5..2e39a38b0 100644 --- a/houston/mocks/ClientInterface.go +++ b/houston/mocks/ClientInterface.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package houston_mocks @@ -1428,13 +1428,12 @@ func (_m *ClientInterface) ValidateWorkspaceID(workspaceID string) (*houston.Wor return r0, r1 } -type mockConstructorTestingTNewClientInterface interface { +// NewClientInterface creates a new instance of ClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewClientInterface(t interface { mock.TestingT Cleanup(func()) -} - -// NewClientInterface creates a new instance of ClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewClientInterface(t mockConstructorTestingTNewClientInterface) *ClientInterface { +}) *ClientInterface { mock := &ClientInterface{} mock.Mock.Test(t) diff --git a/pkg/azure/mocks/Azure.go b/pkg/azure/mocks/Azure.go index d6bb35a5f..66853a879 100644 --- a/pkg/azure/mocks/Azure.go +++ b/pkg/azure/mocks/Azure.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.2. DO NOT EDIT. +// Code generated by mockery v2.32.0. DO NOT EDIT. package azure_mocks @@ -37,13 +37,12 @@ func (_m *Azure) Upload(sasLink string, dagFileReader io.Reader) (string, error) return r0, r1 } -type mockConstructorTestingTNewAzure interface { +// NewAzure creates a new instance of Azure. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewAzure(t interface { mock.TestingT Cleanup(func()) -} - -// NewAzure creates a new instance of Azure. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewAzure(t mockConstructorTestingTNewAzure) *Azure { +}) *Azure { mock := &Azure{} mock.Mock.Test(t)