github.com/openshift/installer@v1.4.17/pkg/asset/installconfig/azure/mock/azureclient_generated.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./client.go 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 resources "github.com/Azure/azure-sdk-for-go/profiles/2018-03-01/resources/mgmt/resources" 12 subscriptions "github.com/Azure/azure-sdk-for-go/profiles/2018-03-01/resources/mgmt/subscriptions" 13 network "github.com/Azure/azure-sdk-for-go/profiles/2020-09-01/network/mgmt/network" 14 compute "github.com/Azure/azure-sdk-for-go/profiles/latest/compute/mgmt/compute" 15 gomock "github.com/golang/mock/gomock" 16 ) 17 18 // MockAPI is a mock of API interface. 19 type MockAPI struct { 20 ctrl *gomock.Controller 21 recorder *MockAPIMockRecorder 22 } 23 24 // MockAPIMockRecorder is the mock recorder for MockAPI. 25 type MockAPIMockRecorder struct { 26 mock *MockAPI 27 } 28 29 // NewMockAPI creates a new mock instance. 30 func NewMockAPI(ctrl *gomock.Controller) *MockAPI { 31 mock := &MockAPI{ctrl: ctrl} 32 mock.recorder = &MockAPIMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockAPI) EXPECT() *MockAPIMockRecorder { 38 return m.recorder 39 } 40 41 // AreMarketplaceImageTermsAccepted mocks base method. 42 func (m *MockAPI) AreMarketplaceImageTermsAccepted(ctx context.Context, publisher, offer, sku string) (bool, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "AreMarketplaceImageTermsAccepted", ctx, publisher, offer, sku) 45 ret0, _ := ret[0].(bool) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // AreMarketplaceImageTermsAccepted indicates an expected call of AreMarketplaceImageTermsAccepted. 51 func (mr *MockAPIMockRecorder) AreMarketplaceImageTermsAccepted(ctx, publisher, offer, sku interface{}) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AreMarketplaceImageTermsAccepted", reflect.TypeOf((*MockAPI)(nil).AreMarketplaceImageTermsAccepted), ctx, publisher, offer, sku) 54 } 55 56 // GetAvailabilityZones mocks base method. 57 func (m *MockAPI) GetAvailabilityZones(ctx context.Context, region, instanceType string) ([]string, error) { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "GetAvailabilityZones", ctx, region, instanceType) 60 ret0, _ := ret[0].([]string) 61 ret1, _ := ret[1].(error) 62 return ret0, ret1 63 } 64 65 // GetAvailabilityZones indicates an expected call of GetAvailabilityZones. 66 func (mr *MockAPIMockRecorder) GetAvailabilityZones(ctx, region, instanceType interface{}) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAvailabilityZones", reflect.TypeOf((*MockAPI)(nil).GetAvailabilityZones), ctx, region, instanceType) 69 } 70 71 // GetComputeSubnet mocks base method. 72 func (m *MockAPI) GetComputeSubnet(ctx context.Context, resourceGroupName, virtualNetwork, subnet string) (*network.Subnet, error) { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "GetComputeSubnet", ctx, resourceGroupName, virtualNetwork, subnet) 75 ret0, _ := ret[0].(*network.Subnet) 76 ret1, _ := ret[1].(error) 77 return ret0, ret1 78 } 79 80 // GetComputeSubnet indicates an expected call of GetComputeSubnet. 81 func (mr *MockAPIMockRecorder) GetComputeSubnet(ctx, resourceGroupName, virtualNetwork, subnet interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComputeSubnet", reflect.TypeOf((*MockAPI)(nil).GetComputeSubnet), ctx, resourceGroupName, virtualNetwork, subnet) 84 } 85 86 // GetControlPlaneSubnet mocks base method. 87 func (m *MockAPI) GetControlPlaneSubnet(ctx context.Context, resourceGroupName, virtualNetwork, subnet string) (*network.Subnet, error) { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "GetControlPlaneSubnet", ctx, resourceGroupName, virtualNetwork, subnet) 90 ret0, _ := ret[0].(*network.Subnet) 91 ret1, _ := ret[1].(error) 92 return ret0, ret1 93 } 94 95 // GetControlPlaneSubnet indicates an expected call of GetControlPlaneSubnet. 96 func (mr *MockAPIMockRecorder) GetControlPlaneSubnet(ctx, resourceGroupName, virtualNetwork, subnet interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetControlPlaneSubnet", reflect.TypeOf((*MockAPI)(nil).GetControlPlaneSubnet), ctx, resourceGroupName, virtualNetwork, subnet) 99 } 100 101 // GetDiskEncryptionSet mocks base method. 102 func (m *MockAPI) GetDiskEncryptionSet(ctx context.Context, subscriptionID, groupName, diskEncryptionSetName string) (*compute.DiskEncryptionSet, error) { 103 m.ctrl.T.Helper() 104 ret := m.ctrl.Call(m, "GetDiskEncryptionSet", ctx, subscriptionID, groupName, diskEncryptionSetName) 105 ret0, _ := ret[0].(*compute.DiskEncryptionSet) 106 ret1, _ := ret[1].(error) 107 return ret0, ret1 108 } 109 110 // GetDiskEncryptionSet indicates an expected call of GetDiskEncryptionSet. 111 func (mr *MockAPIMockRecorder) GetDiskEncryptionSet(ctx, subscriptionID, groupName, diskEncryptionSetName interface{}) *gomock.Call { 112 mr.mock.ctrl.T.Helper() 113 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDiskEncryptionSet", reflect.TypeOf((*MockAPI)(nil).GetDiskEncryptionSet), ctx, subscriptionID, groupName, diskEncryptionSetName) 114 } 115 116 // GetDiskSkus mocks base method. 117 func (m *MockAPI) GetDiskSkus(ctx context.Context, region string) ([]compute.ResourceSku, error) { 118 m.ctrl.T.Helper() 119 ret := m.ctrl.Call(m, "GetDiskSkus", ctx, region) 120 ret0, _ := ret[0].([]compute.ResourceSku) 121 ret1, _ := ret[1].(error) 122 return ret0, ret1 123 } 124 125 // GetDiskSkus indicates an expected call of GetDiskSkus. 126 func (mr *MockAPIMockRecorder) GetDiskSkus(ctx, region interface{}) *gomock.Call { 127 mr.mock.ctrl.T.Helper() 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDiskSkus", reflect.TypeOf((*MockAPI)(nil).GetDiskSkus), ctx, region) 129 } 130 131 // GetGroup mocks base method. 132 func (m *MockAPI) GetGroup(ctx context.Context, groupName string) (*resources.Group, error) { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "GetGroup", ctx, groupName) 135 ret0, _ := ret[0].(*resources.Group) 136 ret1, _ := ret[1].(error) 137 return ret0, ret1 138 } 139 140 // GetGroup indicates an expected call of GetGroup. 141 func (mr *MockAPIMockRecorder) GetGroup(ctx, groupName interface{}) *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockAPI)(nil).GetGroup), ctx, groupName) 144 } 145 146 // GetHyperVGenerationVersion mocks base method. 147 func (m *MockAPI) GetHyperVGenerationVersion(ctx context.Context, instanceType, region, imageHyperVGen string) (string, error) { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "GetHyperVGenerationVersion", ctx, instanceType, region, imageHyperVGen) 150 ret0, _ := ret[0].(string) 151 ret1, _ := ret[1].(error) 152 return ret0, ret1 153 } 154 155 // GetHyperVGenerationVersion indicates an expected call of GetHyperVGenerationVersion. 156 func (mr *MockAPIMockRecorder) GetHyperVGenerationVersion(ctx, instanceType, region, imageHyperVGen interface{}) *gomock.Call { 157 mr.mock.ctrl.T.Helper() 158 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHyperVGenerationVersion", reflect.TypeOf((*MockAPI)(nil).GetHyperVGenerationVersion), ctx, instanceType, region, imageHyperVGen) 159 } 160 161 // GetLocationInfo mocks base method. 162 func (m *MockAPI) GetLocationInfo(ctx context.Context, region, instanceType string) (*compute.ResourceSkuLocationInfo, error) { 163 m.ctrl.T.Helper() 164 ret := m.ctrl.Call(m, "GetLocationInfo", ctx, region, instanceType) 165 ret0, _ := ret[0].(*compute.ResourceSkuLocationInfo) 166 ret1, _ := ret[1].(error) 167 return ret0, ret1 168 } 169 170 // GetLocationInfo indicates an expected call of GetLocationInfo. 171 func (mr *MockAPIMockRecorder) GetLocationInfo(ctx, region, instanceType interface{}) *gomock.Call { 172 mr.mock.ctrl.T.Helper() 173 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLocationInfo", reflect.TypeOf((*MockAPI)(nil).GetLocationInfo), ctx, region, instanceType) 174 } 175 176 // GetMarketplaceImage mocks base method. 177 func (m *MockAPI) GetMarketplaceImage(ctx context.Context, region, publisher, offer, sku, version string) (compute.VirtualMachineImage, error) { 178 m.ctrl.T.Helper() 179 ret := m.ctrl.Call(m, "GetMarketplaceImage", ctx, region, publisher, offer, sku, version) 180 ret0, _ := ret[0].(compute.VirtualMachineImage) 181 ret1, _ := ret[1].(error) 182 return ret0, ret1 183 } 184 185 // GetMarketplaceImage indicates an expected call of GetMarketplaceImage. 186 func (mr *MockAPIMockRecorder) GetMarketplaceImage(ctx, region, publisher, offer, sku, version interface{}) *gomock.Call { 187 mr.mock.ctrl.T.Helper() 188 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMarketplaceImage", reflect.TypeOf((*MockAPI)(nil).GetMarketplaceImage), ctx, region, publisher, offer, sku, version) 189 } 190 191 // GetResourcesProvider mocks base method. 192 func (m *MockAPI) GetResourcesProvider(ctx context.Context, resourceProviderNamespace string) (*resources.Provider, error) { 193 m.ctrl.T.Helper() 194 ret := m.ctrl.Call(m, "GetResourcesProvider", ctx, resourceProviderNamespace) 195 ret0, _ := ret[0].(*resources.Provider) 196 ret1, _ := ret[1].(error) 197 return ret0, ret1 198 } 199 200 // GetResourcesProvider indicates an expected call of GetResourcesProvider. 201 func (mr *MockAPIMockRecorder) GetResourcesProvider(ctx, resourceProviderNamespace interface{}) *gomock.Call { 202 mr.mock.ctrl.T.Helper() 203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcesProvider", reflect.TypeOf((*MockAPI)(nil).GetResourcesProvider), ctx, resourceProviderNamespace) 204 } 205 206 // GetStorageEndpointSuffix mocks base method. 207 func (m *MockAPI) GetStorageEndpointSuffix(ctx context.Context) (string, error) { 208 m.ctrl.T.Helper() 209 ret := m.ctrl.Call(m, "GetStorageEndpointSuffix", ctx) 210 ret0, _ := ret[0].(string) 211 ret1, _ := ret[1].(error) 212 return ret0, ret1 213 } 214 215 // GetStorageEndpointSuffix indicates an expected call of GetStorageEndpointSuffix. 216 func (mr *MockAPIMockRecorder) GetStorageEndpointSuffix(ctx interface{}) *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStorageEndpointSuffix", reflect.TypeOf((*MockAPI)(nil).GetStorageEndpointSuffix), ctx) 219 } 220 221 // GetVMCapabilities mocks base method. 222 func (m *MockAPI) GetVMCapabilities(ctx context.Context, instanceType, region string) (map[string]string, error) { 223 m.ctrl.T.Helper() 224 ret := m.ctrl.Call(m, "GetVMCapabilities", ctx, instanceType, region) 225 ret0, _ := ret[0].(map[string]string) 226 ret1, _ := ret[1].(error) 227 return ret0, ret1 228 } 229 230 // GetVMCapabilities indicates an expected call of GetVMCapabilities. 231 func (mr *MockAPIMockRecorder) GetVMCapabilities(ctx, instanceType, region interface{}) *gomock.Call { 232 mr.mock.ctrl.T.Helper() 233 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVMCapabilities", reflect.TypeOf((*MockAPI)(nil).GetVMCapabilities), ctx, instanceType, region) 234 } 235 236 // GetVirtualMachineFamily mocks base method. 237 func (m *MockAPI) GetVirtualMachineFamily(ctx context.Context, name, region string) (string, error) { 238 m.ctrl.T.Helper() 239 ret := m.ctrl.Call(m, "GetVirtualMachineFamily", ctx, name, region) 240 ret0, _ := ret[0].(string) 241 ret1, _ := ret[1].(error) 242 return ret0, ret1 243 } 244 245 // GetVirtualMachineFamily indicates an expected call of GetVirtualMachineFamily. 246 func (mr *MockAPIMockRecorder) GetVirtualMachineFamily(ctx, name, region interface{}) *gomock.Call { 247 mr.mock.ctrl.T.Helper() 248 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualMachineFamily", reflect.TypeOf((*MockAPI)(nil).GetVirtualMachineFamily), ctx, name, region) 249 } 250 251 // GetVirtualMachineSku mocks base method. 252 func (m *MockAPI) GetVirtualMachineSku(ctx context.Context, name, region string) (*compute.ResourceSku, error) { 253 m.ctrl.T.Helper() 254 ret := m.ctrl.Call(m, "GetVirtualMachineSku", ctx, name, region) 255 ret0, _ := ret[0].(*compute.ResourceSku) 256 ret1, _ := ret[1].(error) 257 return ret0, ret1 258 } 259 260 // GetVirtualMachineSku indicates an expected call of GetVirtualMachineSku. 261 func (mr *MockAPIMockRecorder) GetVirtualMachineSku(ctx, name, region interface{}) *gomock.Call { 262 mr.mock.ctrl.T.Helper() 263 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualMachineSku", reflect.TypeOf((*MockAPI)(nil).GetVirtualMachineSku), ctx, name, region) 264 } 265 266 // GetVirtualNetwork mocks base method. 267 func (m *MockAPI) GetVirtualNetwork(ctx context.Context, resourceGroupName, virtualNetwork string) (*network.VirtualNetwork, error) { 268 m.ctrl.T.Helper() 269 ret := m.ctrl.Call(m, "GetVirtualNetwork", ctx, resourceGroupName, virtualNetwork) 270 ret0, _ := ret[0].(*network.VirtualNetwork) 271 ret1, _ := ret[1].(error) 272 return ret0, ret1 273 } 274 275 // GetVirtualNetwork indicates an expected call of GetVirtualNetwork. 276 func (mr *MockAPIMockRecorder) GetVirtualNetwork(ctx, resourceGroupName, virtualNetwork interface{}) *gomock.Call { 277 mr.mock.ctrl.T.Helper() 278 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualNetwork", reflect.TypeOf((*MockAPI)(nil).GetVirtualNetwork), ctx, resourceGroupName, virtualNetwork) 279 } 280 281 // ListLocations mocks base method. 282 func (m *MockAPI) ListLocations(ctx context.Context) (*[]subscriptions.Location, error) { 283 m.ctrl.T.Helper() 284 ret := m.ctrl.Call(m, "ListLocations", ctx) 285 ret0, _ := ret[0].(*[]subscriptions.Location) 286 ret1, _ := ret[1].(error) 287 return ret0, ret1 288 } 289 290 // ListLocations indicates an expected call of ListLocations. 291 func (mr *MockAPIMockRecorder) ListLocations(ctx interface{}) *gomock.Call { 292 mr.mock.ctrl.T.Helper() 293 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLocations", reflect.TypeOf((*MockAPI)(nil).ListLocations), ctx) 294 } 295 296 // ListResourceIDsByGroup mocks base method. 297 func (m *MockAPI) ListResourceIDsByGroup(ctx context.Context, groupName string) ([]string, error) { 298 m.ctrl.T.Helper() 299 ret := m.ctrl.Call(m, "ListResourceIDsByGroup", ctx, groupName) 300 ret0, _ := ret[0].([]string) 301 ret1, _ := ret[1].(error) 302 return ret0, ret1 303 } 304 305 // ListResourceIDsByGroup indicates an expected call of ListResourceIDsByGroup. 306 func (mr *MockAPIMockRecorder) ListResourceIDsByGroup(ctx, groupName interface{}) *gomock.Call { 307 mr.mock.ctrl.T.Helper() 308 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceIDsByGroup", reflect.TypeOf((*MockAPI)(nil).ListResourceIDsByGroup), ctx, groupName) 309 }