diff --git a/pkg/azclient/accountclient/mock_accountclient/interface.go b/pkg/azclient/accountclient/mock_accountclient/interface.go index 3b05c8f5d7..2b1f72efce 100644 --- a/pkg/azclient/accountclient/mock_accountclient/interface.go +++ b/pkg/azclient/accountclient/mock_accountclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/availabilitysetclient/mock_availabilitysetclient/interface.go b/pkg/azclient/availabilitysetclient/mock_availabilitysetclient/interface.go index 02ed209910..27c4cc0945 100644 --- a/pkg/azclient/availabilitysetclient/mock_availabilitysetclient/interface.go +++ b/pkg/azclient/availabilitysetclient/mock_availabilitysetclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/blobcontainerclient/mock_blobcontainerclient/interface.go b/pkg/azclient/blobcontainerclient/mock_blobcontainerclient/interface.go index caa9c9420f..46e1a24813 100644 --- a/pkg/azclient/blobcontainerclient/mock_blobcontainerclient/interface.go +++ b/pkg/azclient/blobcontainerclient/mock_blobcontainerclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/blobservicepropertiesclient/mock_blobservicepropertiesclient/interface.go b/pkg/azclient/blobservicepropertiesclient/mock_blobservicepropertiesclient/interface.go index 78f7b7eb21..2668e14f62 100644 --- a/pkg/azclient/blobservicepropertiesclient/mock_blobservicepropertiesclient/interface.go +++ b/pkg/azclient/blobservicepropertiesclient/mock_blobservicepropertiesclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/deploymentclient/mock_deploymentclient/interface.go b/pkg/azclient/deploymentclient/mock_deploymentclient/interface.go index a9b7a161d9..1620aa85e7 100644 --- a/pkg/azclient/deploymentclient/mock_deploymentclient/interface.go +++ b/pkg/azclient/deploymentclient/mock_deploymentclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/diskclient/mock_diskclient/interface.go b/pkg/azclient/diskclient/mock_diskclient/interface.go index 41b3e2f627..caa92ad896 100644 --- a/pkg/azclient/diskclient/mock_diskclient/interface.go +++ b/pkg/azclient/diskclient/mock_diskclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/fileservicepropertiesclient/mock_fileservicepropertiesclient/interface.go b/pkg/azclient/fileservicepropertiesclient/mock_fileservicepropertiesclient/interface.go index 29b9b49ea5..7b811a9735 100644 --- a/pkg/azclient/fileservicepropertiesclient/mock_fileservicepropertiesclient/interface.go +++ b/pkg/azclient/fileservicepropertiesclient/mock_fileservicepropertiesclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/fileshareclient/mock_fileshareclient/interface.go b/pkg/azclient/fileshareclient/mock_fileshareclient/interface.go index 00f6bf3092..0f9e7d4d04 100644 --- a/pkg/azclient/fileshareclient/mock_fileshareclient/interface.go +++ b/pkg/azclient/fileshareclient/mock_fileshareclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/identityclient/mock_identityclient/interface.go b/pkg/azclient/identityclient/mock_identityclient/interface.go index f5944d3856..471d9ea3a1 100644 --- a/pkg/azclient/identityclient/mock_identityclient/interface.go +++ b/pkg/azclient/identityclient/mock_identityclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/interfaceclient/mock_interfaceclient/interface.go b/pkg/azclient/interfaceclient/mock_interfaceclient/interface.go index 087f3ba05b..4c6fbb67fc 100644 --- a/pkg/azclient/interfaceclient/mock_interfaceclient/interface.go +++ b/pkg/azclient/interfaceclient/mock_interfaceclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/ipgroupclient/mock_ipgroupclient/interface.go b/pkg/azclient/ipgroupclient/mock_ipgroupclient/interface.go index 832d20ce25..1310db03e7 100644 --- a/pkg/azclient/ipgroupclient/mock_ipgroupclient/interface.go +++ b/pkg/azclient/ipgroupclient/mock_ipgroupclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/loadbalancerclient/mock_loadbalancerclient/interface.go b/pkg/azclient/loadbalancerclient/mock_loadbalancerclient/interface.go index 0ab20162aa..fa1330fcd2 100644 --- a/pkg/azclient/loadbalancerclient/mock_loadbalancerclient/interface.go +++ b/pkg/azclient/loadbalancerclient/mock_loadbalancerclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/managedclusterclient/mock_managedclusterclient/interface.go b/pkg/azclient/managedclusterclient/mock_managedclusterclient/interface.go index 5d44a9f04c..35c78ad201 100644 --- a/pkg/azclient/managedclusterclient/mock_managedclusterclient/interface.go +++ b/pkg/azclient/managedclusterclient/mock_managedclusterclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/mock_azclient/interface.go b/pkg/azclient/mock_azclient/interface.go index 481e34877f..d9f82a5da3 100644 --- a/pkg/azclient/mock_azclient/interface.go +++ b/pkg/azclient/mock_azclient/interface.go @@ -70,6 +70,7 @@ import ( type MockClientFactory struct { ctrl *gomock.Controller recorder *MockClientFactoryMockRecorder + isgomock struct{} } // MockClientFactoryMockRecorder is the mock recorder for MockClientFactory. @@ -104,18 +105,18 @@ func (mr *MockClientFactoryMockRecorder) GetAccountClient() *gomock.Call { } // GetAccountClientForSub mocks base method. -func (m *MockClientFactory) GetAccountClientForSub(arg0 string) (accountclient.Interface, error) { +func (m *MockClientFactory) GetAccountClientForSub(subscriptionID string) (accountclient.Interface, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetAccountClientForSub", arg0) + ret := m.ctrl.Call(m, "GetAccountClientForSub", subscriptionID) ret0, _ := ret[0].(accountclient.Interface) ret1, _ := ret[1].(error) return ret0, ret1 } // GetAccountClientForSub indicates an expected call of GetAccountClientForSub. -func (mr *MockClientFactoryMockRecorder) GetAccountClientForSub(arg0 any) *gomock.Call { +func (mr *MockClientFactoryMockRecorder) GetAccountClientForSub(subscriptionID any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetAccountClientForSub), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetAccountClientForSub), subscriptionID) } // GetAvailabilitySetClient mocks base method. @@ -147,18 +148,18 @@ func (mr *MockClientFactoryMockRecorder) GetBlobContainerClient() *gomock.Call { } // GetBlobContainerClientForSub mocks base method. -func (m *MockClientFactory) GetBlobContainerClientForSub(arg0 string) (blobcontainerclient.Interface, error) { +func (m *MockClientFactory) GetBlobContainerClientForSub(subscriptionID string) (blobcontainerclient.Interface, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetBlobContainerClientForSub", arg0) + ret := m.ctrl.Call(m, "GetBlobContainerClientForSub", subscriptionID) ret0, _ := ret[0].(blobcontainerclient.Interface) ret1, _ := ret[1].(error) return ret0, ret1 } // GetBlobContainerClientForSub indicates an expected call of GetBlobContainerClientForSub. -func (mr *MockClientFactoryMockRecorder) GetBlobContainerClientForSub(arg0 any) *gomock.Call { +func (mr *MockClientFactoryMockRecorder) GetBlobContainerClientForSub(subscriptionID any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlobContainerClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetBlobContainerClientForSub), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlobContainerClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetBlobContainerClientForSub), subscriptionID) } // GetBlobServicePropertiesClient mocks base method. @@ -176,18 +177,18 @@ func (mr *MockClientFactoryMockRecorder) GetBlobServicePropertiesClient() *gomoc } // GetBlobServicePropertiesClientForSub mocks base method. -func (m *MockClientFactory) GetBlobServicePropertiesClientForSub(arg0 string) (blobservicepropertiesclient.Interface, error) { +func (m *MockClientFactory) GetBlobServicePropertiesClientForSub(subscriptionID string) (blobservicepropertiesclient.Interface, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetBlobServicePropertiesClientForSub", arg0) + ret := m.ctrl.Call(m, "GetBlobServicePropertiesClientForSub", subscriptionID) ret0, _ := ret[0].(blobservicepropertiesclient.Interface) ret1, _ := ret[1].(error) return ret0, ret1 } // GetBlobServicePropertiesClientForSub indicates an expected call of GetBlobServicePropertiesClientForSub. -func (mr *MockClientFactoryMockRecorder) GetBlobServicePropertiesClientForSub(arg0 any) *gomock.Call { +func (mr *MockClientFactoryMockRecorder) GetBlobServicePropertiesClientForSub(subscriptionID any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlobServicePropertiesClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetBlobServicePropertiesClientForSub), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlobServicePropertiesClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetBlobServicePropertiesClientForSub), subscriptionID) } // GetDeploymentClient mocks base method. @@ -219,18 +220,18 @@ func (mr *MockClientFactoryMockRecorder) GetDiskClient() *gomock.Call { } // GetDiskClientForSub mocks base method. -func (m *MockClientFactory) GetDiskClientForSub(arg0 string) (diskclient.Interface, error) { +func (m *MockClientFactory) GetDiskClientForSub(subscriptionID string) (diskclient.Interface, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetDiskClientForSub", arg0) + ret := m.ctrl.Call(m, "GetDiskClientForSub", subscriptionID) ret0, _ := ret[0].(diskclient.Interface) ret1, _ := ret[1].(error) return ret0, ret1 } // GetDiskClientForSub indicates an expected call of GetDiskClientForSub. -func (mr *MockClientFactoryMockRecorder) GetDiskClientForSub(arg0 any) *gomock.Call { +func (mr *MockClientFactoryMockRecorder) GetDiskClientForSub(subscriptionID any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDiskClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetDiskClientForSub), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDiskClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetDiskClientForSub), subscriptionID) } // GetFileServicePropertiesClient mocks base method. @@ -248,18 +249,18 @@ func (mr *MockClientFactoryMockRecorder) GetFileServicePropertiesClient() *gomoc } // GetFileServicePropertiesClientForSub mocks base method. -func (m *MockClientFactory) GetFileServicePropertiesClientForSub(arg0 string) (fileservicepropertiesclient.Interface, error) { +func (m *MockClientFactory) GetFileServicePropertiesClientForSub(subscriptionID string) (fileservicepropertiesclient.Interface, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetFileServicePropertiesClientForSub", arg0) + ret := m.ctrl.Call(m, "GetFileServicePropertiesClientForSub", subscriptionID) ret0, _ := ret[0].(fileservicepropertiesclient.Interface) ret1, _ := ret[1].(error) return ret0, ret1 } // GetFileServicePropertiesClientForSub indicates an expected call of GetFileServicePropertiesClientForSub. -func (mr *MockClientFactoryMockRecorder) GetFileServicePropertiesClientForSub(arg0 any) *gomock.Call { +func (mr *MockClientFactoryMockRecorder) GetFileServicePropertiesClientForSub(subscriptionID any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFileServicePropertiesClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetFileServicePropertiesClientForSub), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFileServicePropertiesClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetFileServicePropertiesClientForSub), subscriptionID) } // GetFileShareClient mocks base method. @@ -277,18 +278,18 @@ func (mr *MockClientFactoryMockRecorder) GetFileShareClient() *gomock.Call { } // GetFileShareClientForSub mocks base method. -func (m *MockClientFactory) GetFileShareClientForSub(arg0 string) (fileshareclient.Interface, error) { +func (m *MockClientFactory) GetFileShareClientForSub(subscriptionID string) (fileshareclient.Interface, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetFileShareClientForSub", arg0) + ret := m.ctrl.Call(m, "GetFileShareClientForSub", subscriptionID) ret0, _ := ret[0].(fileshareclient.Interface) ret1, _ := ret[1].(error) return ret0, ret1 } // GetFileShareClientForSub indicates an expected call of GetFileShareClientForSub. -func (mr *MockClientFactoryMockRecorder) GetFileShareClientForSub(arg0 any) *gomock.Call { +func (mr *MockClientFactoryMockRecorder) GetFileShareClientForSub(subscriptionID any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFileShareClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetFileShareClientForSub), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFileShareClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetFileShareClientForSub), subscriptionID) } // GetIPGroupClient mocks base method. @@ -558,18 +559,18 @@ func (mr *MockClientFactoryMockRecorder) GetSnapshotClient() *gomock.Call { } // GetSnapshotClientForSub mocks base method. -func (m *MockClientFactory) GetSnapshotClientForSub(arg0 string) (snapshotclient.Interface, error) { +func (m *MockClientFactory) GetSnapshotClientForSub(subscriptionID string) (snapshotclient.Interface, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetSnapshotClientForSub", arg0) + ret := m.ctrl.Call(m, "GetSnapshotClientForSub", subscriptionID) ret0, _ := ret[0].(snapshotclient.Interface) ret1, _ := ret[1].(error) return ret0, ret1 } // GetSnapshotClientForSub indicates an expected call of GetSnapshotClientForSub. -func (mr *MockClientFactoryMockRecorder) GetSnapshotClientForSub(arg0 any) *gomock.Call { +func (mr *MockClientFactoryMockRecorder) GetSnapshotClientForSub(subscriptionID any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSnapshotClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetSnapshotClientForSub), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSnapshotClientForSub", reflect.TypeOf((*MockClientFactory)(nil).GetSnapshotClientForSub), subscriptionID) } // GetSubnetClient mocks base method. diff --git a/pkg/azclient/privateendpointclient/mock_privateendpointclient/interface.go b/pkg/azclient/privateendpointclient/mock_privateendpointclient/interface.go index f6238c165f..b255b0cf45 100644 --- a/pkg/azclient/privateendpointclient/mock_privateendpointclient/interface.go +++ b/pkg/azclient/privateendpointclient/mock_privateendpointclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/privatelinkserviceclient/custom.go b/pkg/azclient/privatelinkserviceclient/custom.go new file mode 100644 index 0000000000..0bb297cf14 --- /dev/null +++ b/pkg/azclient/privatelinkserviceclient/custom.go @@ -0,0 +1,41 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package privatelinkserviceclient + +import ( + "context" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + + "sigs.k8s.io/cloud-provider-azure/pkg/azclient/metrics" + "sigs.k8s.io/cloud-provider-azure/pkg/azclient/utils" +) + +const DeletePEConnectionOperationName = "PrivateLinkServicesClient.DeletePrivateEndpointConnection" + +func (client *Client) DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) (err error) { + metricsCtx := metrics.BeginARMRequest(client.subscriptionID, resourceGroupName, "PrivateLinkService", "deletePrivateEndpointConnection") + defer func() { metricsCtx.Observe(ctx, err) }() + ctx, endSpan := runtime.StartSpan(ctx, DeletePEConnectionOperationName, client.tracer, nil) + defer endSpan(err) + + _, err = utils.NewPollerWrapper( + client.BeginDeletePrivateEndpointConnection(ctx, resourceGroupName, serviceName, peConnectionName, nil), + ).WaitforPollerResp(ctx) + + return err +} diff --git a/pkg/azclient/privatelinkserviceclient/interface.go b/pkg/azclient/privatelinkserviceclient/interface.go index e3684332fa..0ffc6b21a5 100644 --- a/pkg/azclient/privatelinkserviceclient/interface.go +++ b/pkg/azclient/privatelinkserviceclient/interface.go @@ -18,6 +18,8 @@ limitations under the License. package privatelinkserviceclient import ( + "context" + armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6" "sigs.k8s.io/cloud-provider-azure/pkg/azclient/utils" @@ -29,4 +31,5 @@ type Interface interface { utils.CreateOrUpdateFunc[armnetwork.PrivateLinkService] utils.DeleteFunc[armnetwork.PrivateLinkService] utils.ListFunc[armnetwork.PrivateLinkService] + DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, serviceName string, peConnectionName string) error } diff --git a/pkg/azclient/privatelinkserviceclient/mock_privatelinkserviceclient/interface.go b/pkg/azclient/privatelinkserviceclient/mock_privatelinkserviceclient/interface.go index e332215d8e..630b2663e9 100644 --- a/pkg/azclient/privatelinkserviceclient/mock_privatelinkserviceclient/interface.go +++ b/pkg/azclient/privatelinkserviceclient/mock_privatelinkserviceclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. @@ -85,6 +86,20 @@ func (mr *MockInterfaceMockRecorder) Delete(ctx, resourceGroupName, resourceName return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockInterface)(nil).Delete), ctx, resourceGroupName, resourceName) } +// DeletePrivateEndpointConnection mocks base method. +func (m *MockInterface) DeletePrivateEndpointConnection(ctx context.Context, resourceGroupName, serviceName, peConnectionName string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePrivateEndpointConnection", ctx, resourceGroupName, serviceName, peConnectionName) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeletePrivateEndpointConnection indicates an expected call of DeletePrivateEndpointConnection. +func (mr *MockInterfaceMockRecorder) DeletePrivateEndpointConnection(ctx, resourceGroupName, serviceName, peConnectionName any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePrivateEndpointConnection", reflect.TypeOf((*MockInterface)(nil).DeletePrivateEndpointConnection), ctx, resourceGroupName, serviceName, peConnectionName) +} + // Get mocks base method. func (m *MockInterface) Get(ctx context.Context, resourceGroupName, resourceName string, expand *string) (*armnetwork.PrivateLinkService, error) { m.ctrl.T.Helper() diff --git a/pkg/azclient/privatezoneclient/mock_privatezoneclient/interface.go b/pkg/azclient/privatezoneclient/mock_privatezoneclient/interface.go index 1884c0339d..b90d7bdb86 100644 --- a/pkg/azclient/privatezoneclient/mock_privatezoneclient/interface.go +++ b/pkg/azclient/privatezoneclient/mock_privatezoneclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/providerclient/mock_providerclient/interface.go b/pkg/azclient/providerclient/mock_providerclient/interface.go index 0fe5952a46..969ec4b8ec 100644 --- a/pkg/azclient/providerclient/mock_providerclient/interface.go +++ b/pkg/azclient/providerclient/mock_providerclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/publicipaddressclient/mock_publicipaddressclient/interface.go b/pkg/azclient/publicipaddressclient/mock_publicipaddressclient/interface.go index d29e87c006..f83b764537 100644 --- a/pkg/azclient/publicipaddressclient/mock_publicipaddressclient/interface.go +++ b/pkg/azclient/publicipaddressclient/mock_publicipaddressclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/publicipprefixclient/mock_publicipprefixclient/interface.go b/pkg/azclient/publicipprefixclient/mock_publicipprefixclient/interface.go index 96f6cecc7d..49e499c705 100644 --- a/pkg/azclient/publicipprefixclient/mock_publicipprefixclient/interface.go +++ b/pkg/azclient/publicipprefixclient/mock_publicipprefixclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/registryclient/mock_registryclient/interface.go b/pkg/azclient/registryclient/mock_registryclient/interface.go index 0b0ce27b77..9f69d66474 100644 --- a/pkg/azclient/registryclient/mock_registryclient/interface.go +++ b/pkg/azclient/registryclient/mock_registryclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/resourcegroupclient/mock_resourcegroupclient/interface.go b/pkg/azclient/resourcegroupclient/mock_resourcegroupclient/interface.go index e171a6868e..1170633acc 100644 --- a/pkg/azclient/resourcegroupclient/mock_resourcegroupclient/interface.go +++ b/pkg/azclient/resourcegroupclient/mock_resourcegroupclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/roleassignmentclient/mock_roleassignmentclient/interface.go b/pkg/azclient/roleassignmentclient/mock_roleassignmentclient/interface.go index 41b8ea1243..257669e59f 100644 --- a/pkg/azclient/roleassignmentclient/mock_roleassignmentclient/interface.go +++ b/pkg/azclient/roleassignmentclient/mock_roleassignmentclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/roledefinitionclient/mock_roledefinitionclient/interface.go b/pkg/azclient/roledefinitionclient/mock_roledefinitionclient/interface.go index e921984595..25a3980699 100644 --- a/pkg/azclient/roledefinitionclient/mock_roledefinitionclient/interface.go +++ b/pkg/azclient/roledefinitionclient/mock_roledefinitionclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/routetableclient/mock_routetableclient/interface.go b/pkg/azclient/routetableclient/mock_routetableclient/interface.go index 086ccc357a..ef6fedb428 100644 --- a/pkg/azclient/routetableclient/mock_routetableclient/interface.go +++ b/pkg/azclient/routetableclient/mock_routetableclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/secretclient/mock_secretclient/interface.go b/pkg/azclient/secretclient/mock_secretclient/interface.go index 25ec7f0840..2f120b3be3 100644 --- a/pkg/azclient/secretclient/mock_secretclient/interface.go +++ b/pkg/azclient/secretclient/mock_secretclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/securitygroupclient/mock_securitygroupclient/interface.go b/pkg/azclient/securitygroupclient/mock_securitygroupclient/interface.go index 3766287ee1..466a774b7d 100644 --- a/pkg/azclient/securitygroupclient/mock_securitygroupclient/interface.go +++ b/pkg/azclient/securitygroupclient/mock_securitygroupclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/snapshotclient/mock_snapshotclient/interface.go b/pkg/azclient/snapshotclient/mock_snapshotclient/interface.go index 36c1e6a6f8..75678c12cb 100644 --- a/pkg/azclient/snapshotclient/mock_snapshotclient/interface.go +++ b/pkg/azclient/snapshotclient/mock_snapshotclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/sshpublickeyresourceclient/mock_sshpublickeyresourceclient/interface.go b/pkg/azclient/sshpublickeyresourceclient/mock_sshpublickeyresourceclient/interface.go index b378c11afb..f62225bcd9 100644 --- a/pkg/azclient/sshpublickeyresourceclient/mock_sshpublickeyresourceclient/interface.go +++ b/pkg/azclient/sshpublickeyresourceclient/mock_sshpublickeyresourceclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/subnetclient/mock_subnetclient/interface.go b/pkg/azclient/subnetclient/mock_subnetclient/interface.go index c004295a42..382b6b4f86 100644 --- a/pkg/azclient/subnetclient/mock_subnetclient/interface.go +++ b/pkg/azclient/subnetclient/mock_subnetclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/vaultclient/mock_vaultclient/interface.go b/pkg/azclient/vaultclient/mock_vaultclient/interface.go index 5e2a98372e..6bae2094a2 100644 --- a/pkg/azclient/vaultclient/mock_vaultclient/interface.go +++ b/pkg/azclient/vaultclient/mock_vaultclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/virtualmachineclient/mock_virtualmachineclient/interface.go b/pkg/azclient/virtualmachineclient/mock_virtualmachineclient/interface.go index cf00a744dd..ee3625115b 100644 --- a/pkg/azclient/virtualmachineclient/mock_virtualmachineclient/interface.go +++ b/pkg/azclient/virtualmachineclient/mock_virtualmachineclient/interface.go @@ -38,6 +38,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/virtualmachinescalesetclient/mock_virtualmachinescalesetclient/interface.go b/pkg/azclient/virtualmachinescalesetclient/mock_virtualmachinescalesetclient/interface.go index 3158b07c17..74cc15a33e 100644 --- a/pkg/azclient/virtualmachinescalesetclient/mock_virtualmachinescalesetclient/interface.go +++ b/pkg/azclient/virtualmachinescalesetclient/mock_virtualmachinescalesetclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/virtualmachinescalesetvmclient/mock_virtualmachinescalesetvmclient/interface.go b/pkg/azclient/virtualmachinescalesetvmclient/mock_virtualmachinescalesetvmclient/interface.go index f68ac9a635..8dc196881f 100644 --- a/pkg/azclient/virtualmachinescalesetvmclient/mock_virtualmachinescalesetvmclient/interface.go +++ b/pkg/azclient/virtualmachinescalesetvmclient/mock_virtualmachinescalesetvmclient/interface.go @@ -38,6 +38,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/virtualnetworkclient/mock_virtualnetworkclient/interface.go b/pkg/azclient/virtualnetworkclient/mock_virtualnetworkclient/interface.go index 3c173e56be..ecb2f44e75 100644 --- a/pkg/azclient/virtualnetworkclient/mock_virtualnetworkclient/interface.go +++ b/pkg/azclient/virtualnetworkclient/mock_virtualnetworkclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface. diff --git a/pkg/azclient/virtualnetworklinkclient/mock_virtualnetworklinkclient/interface.go b/pkg/azclient/virtualnetworklinkclient/mock_virtualnetworklinkclient/interface.go index 2f31bf2713..3636460528 100644 --- a/pkg/azclient/virtualnetworklinkclient/mock_virtualnetworklinkclient/interface.go +++ b/pkg/azclient/virtualnetworklinkclient/mock_virtualnetworklinkclient/interface.go @@ -37,6 +37,7 @@ import ( type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder + isgomock struct{} } // MockInterfaceMockRecorder is the mock recorder for MockInterface.