github.com/openshift/installer@v1.4.17/pkg/asset/installconfig/powervs/mock/powervsclient_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  	dnssvcsv1 "github.com/IBM/networking-go-sdk/dnssvcsv1"
    12  	iamidentityv1 "github.com/IBM/platform-services-go-sdk/iamidentityv1"
    13  	resourcemanagerv2 "github.com/IBM/platform-services-go-sdk/resourcemanagerv2"
    14  	vpcv1 "github.com/IBM/vpc-go-sdk/vpcv1"
    15  	gomock "github.com/golang/mock/gomock"
    16  	powervs "github.com/openshift/installer/pkg/asset/installconfig/powervs"
    17  	types "github.com/openshift/installer/pkg/types"
    18  )
    19  
    20  // MockAPI is a mock of API interface.
    21  type MockAPI struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockAPIMockRecorder
    24  }
    25  
    26  // MockAPIMockRecorder is the mock recorder for MockAPI.
    27  type MockAPIMockRecorder struct {
    28  	mock *MockAPI
    29  }
    30  
    31  // NewMockAPI creates a new mock instance.
    32  func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
    33  	mock := &MockAPI{ctrl: ctrl}
    34  	mock.recorder = &MockAPIMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // AddIPToLoadBalancerPool mocks base method.
    44  func (m *MockAPI) AddIPToLoadBalancerPool(ctx context.Context, lbID, poolName string, port int64, ip string) error {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "AddIPToLoadBalancerPool", ctx, lbID, poolName, port, ip)
    47  	ret0, _ := ret[0].(error)
    48  	return ret0
    49  }
    50  
    51  // AddIPToLoadBalancerPool indicates an expected call of AddIPToLoadBalancerPool.
    52  func (mr *MockAPIMockRecorder) AddIPToLoadBalancerPool(ctx, lbID, poolName, port, ip interface{}) *gomock.Call {
    53  	mr.mock.ctrl.T.Helper()
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddIPToLoadBalancerPool", reflect.TypeOf((*MockAPI)(nil).AddIPToLoadBalancerPool), ctx, lbID, poolName, port, ip)
    55  }
    56  
    57  // AddSecurityGroupRule mocks base method.
    58  func (m *MockAPI) AddSecurityGroupRule(ctx context.Context, securityGroupID string, rule *vpcv1.SecurityGroupRulePrototype) error {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "AddSecurityGroupRule", ctx, securityGroupID, rule)
    61  	ret0, _ := ret[0].(error)
    62  	return ret0
    63  }
    64  
    65  // AddSecurityGroupRule indicates an expected call of AddSecurityGroupRule.
    66  func (mr *MockAPIMockRecorder) AddSecurityGroupRule(ctx, securityGroupID, rule interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSecurityGroupRule", reflect.TypeOf((*MockAPI)(nil).AddSecurityGroupRule), ctx, securityGroupID, rule)
    69  }
    70  
    71  // AddVPCToPermittedNetworks mocks base method.
    72  func (m *MockAPI) AddVPCToPermittedNetworks(ctx context.Context, vpcCRN, dnsID, dnsZone string) error {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "AddVPCToPermittedNetworks", ctx, vpcCRN, dnsID, dnsZone)
    75  	ret0, _ := ret[0].(error)
    76  	return ret0
    77  }
    78  
    79  // AddVPCToPermittedNetworks indicates an expected call of AddVPCToPermittedNetworks.
    80  func (mr *MockAPIMockRecorder) AddVPCToPermittedNetworks(ctx, vpcCRN, dnsID, dnsZone interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddVPCToPermittedNetworks", reflect.TypeOf((*MockAPI)(nil).AddVPCToPermittedNetworks), ctx, vpcCRN, dnsID, dnsZone)
    83  }
    84  
    85  // CreateDNSCustomResolver mocks base method.
    86  func (m *MockAPI) CreateDNSCustomResolver(ctx context.Context, name, dnsID, vpcID string) (*dnssvcsv1.CustomResolver, error) {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "CreateDNSCustomResolver", ctx, name, dnsID, vpcID)
    89  	ret0, _ := ret[0].(*dnssvcsv1.CustomResolver)
    90  	ret1, _ := ret[1].(error)
    91  	return ret0, ret1
    92  }
    93  
    94  // CreateDNSCustomResolver indicates an expected call of CreateDNSCustomResolver.
    95  func (mr *MockAPIMockRecorder) CreateDNSCustomResolver(ctx, name, dnsID, vpcID interface{}) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDNSCustomResolver", reflect.TypeOf((*MockAPI)(nil).CreateDNSCustomResolver), ctx, name, dnsID, vpcID)
    98  }
    99  
   100  // CreateDNSRecord mocks base method.
   101  func (m *MockAPI) CreateDNSRecord(ctx context.Context, publish types.PublishingStrategy, crnstr, baseDomain, hostname, cname string) error {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "CreateDNSRecord", ctx, publish, crnstr, baseDomain, hostname, cname)
   104  	ret0, _ := ret[0].(error)
   105  	return ret0
   106  }
   107  
   108  // CreateDNSRecord indicates an expected call of CreateDNSRecord.
   109  func (mr *MockAPIMockRecorder) CreateDNSRecord(ctx, publish, crnstr, baseDomain, hostname, cname interface{}) *gomock.Call {
   110  	mr.mock.ctrl.T.Helper()
   111  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDNSRecord", reflect.TypeOf((*MockAPI)(nil).CreateDNSRecord), ctx, publish, crnstr, baseDomain, hostname, cname)
   112  }
   113  
   114  // CreateSSHKey mocks base method.
   115  func (m *MockAPI) CreateSSHKey(ctx context.Context, serviceInstance, zone, sshKeyName, sshKey string) error {
   116  	m.ctrl.T.Helper()
   117  	ret := m.ctrl.Call(m, "CreateSSHKey", ctx, serviceInstance, zone, sshKeyName, sshKey)
   118  	ret0, _ := ret[0].(error)
   119  	return ret0
   120  }
   121  
   122  // CreateSSHKey indicates an expected call of CreateSSHKey.
   123  func (mr *MockAPIMockRecorder) CreateSSHKey(ctx, serviceInstance, zone, sshKeyName, sshKey interface{}) *gomock.Call {
   124  	mr.mock.ctrl.T.Helper()
   125  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSSHKey", reflect.TypeOf((*MockAPI)(nil).CreateSSHKey), ctx, serviceInstance, zone, sshKeyName, sshKey)
   126  }
   127  
   128  // EnableDNSCustomResolver mocks base method.
   129  func (m *MockAPI) EnableDNSCustomResolver(ctx context.Context, dnsID, resolverID string) (*dnssvcsv1.CustomResolver, error) {
   130  	m.ctrl.T.Helper()
   131  	ret := m.ctrl.Call(m, "EnableDNSCustomResolver", ctx, dnsID, resolverID)
   132  	ret0, _ := ret[0].(*dnssvcsv1.CustomResolver)
   133  	ret1, _ := ret[1].(error)
   134  	return ret0, ret1
   135  }
   136  
   137  // EnableDNSCustomResolver indicates an expected call of EnableDNSCustomResolver.
   138  func (mr *MockAPIMockRecorder) EnableDNSCustomResolver(ctx, dnsID, resolverID interface{}) *gomock.Call {
   139  	mr.mock.ctrl.T.Helper()
   140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableDNSCustomResolver", reflect.TypeOf((*MockAPI)(nil).EnableDNSCustomResolver), ctx, dnsID, resolverID)
   141  }
   142  
   143  // GetAPIKey mocks base method.
   144  func (m *MockAPI) GetAPIKey() string {
   145  	m.ctrl.T.Helper()
   146  	ret := m.ctrl.Call(m, "GetAPIKey")
   147  	ret0, _ := ret[0].(string)
   148  	return ret0
   149  }
   150  
   151  // GetAPIKey indicates an expected call of GetAPIKey.
   152  func (mr *MockAPIMockRecorder) GetAPIKey() *gomock.Call {
   153  	mr.mock.ctrl.T.Helper()
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAPIKey", reflect.TypeOf((*MockAPI)(nil).GetAPIKey))
   155  }
   156  
   157  // GetAttachedTransitGateway mocks base method.
   158  func (m *MockAPI) GetAttachedTransitGateway(ctx context.Context, svcInsID string) (string, error) {
   159  	m.ctrl.T.Helper()
   160  	ret := m.ctrl.Call(m, "GetAttachedTransitGateway", ctx, svcInsID)
   161  	ret0, _ := ret[0].(string)
   162  	ret1, _ := ret[1].(error)
   163  	return ret0, ret1
   164  }
   165  
   166  // GetAttachedTransitGateway indicates an expected call of GetAttachedTransitGateway.
   167  func (mr *MockAPIMockRecorder) GetAttachedTransitGateway(ctx, svcInsID interface{}) *gomock.Call {
   168  	mr.mock.ctrl.T.Helper()
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachedTransitGateway", reflect.TypeOf((*MockAPI)(nil).GetAttachedTransitGateway), ctx, svcInsID)
   170  }
   171  
   172  // GetAuthenticatorAPIKeyDetails mocks base method.
   173  func (m *MockAPI) GetAuthenticatorAPIKeyDetails(ctx context.Context) (*iamidentityv1.APIKey, error) {
   174  	m.ctrl.T.Helper()
   175  	ret := m.ctrl.Call(m, "GetAuthenticatorAPIKeyDetails", ctx)
   176  	ret0, _ := ret[0].(*iamidentityv1.APIKey)
   177  	ret1, _ := ret[1].(error)
   178  	return ret0, ret1
   179  }
   180  
   181  // GetAuthenticatorAPIKeyDetails indicates an expected call of GetAuthenticatorAPIKeyDetails.
   182  func (mr *MockAPIMockRecorder) GetAuthenticatorAPIKeyDetails(ctx interface{}) *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthenticatorAPIKeyDetails", reflect.TypeOf((*MockAPI)(nil).GetAuthenticatorAPIKeyDetails), ctx)
   185  }
   186  
   187  // GetDNSCustomResolverIP mocks base method.
   188  func (m *MockAPI) GetDNSCustomResolverIP(ctx context.Context, dnsID, vpcID string) (string, error) {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "GetDNSCustomResolverIP", ctx, dnsID, vpcID)
   191  	ret0, _ := ret[0].(string)
   192  	ret1, _ := ret[1].(error)
   193  	return ret0, ret1
   194  }
   195  
   196  // GetDNSCustomResolverIP indicates an expected call of GetDNSCustomResolverIP.
   197  func (mr *MockAPIMockRecorder) GetDNSCustomResolverIP(ctx, dnsID, vpcID interface{}) *gomock.Call {
   198  	mr.mock.ctrl.T.Helper()
   199  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSCustomResolverIP", reflect.TypeOf((*MockAPI)(nil).GetDNSCustomResolverIP), ctx, dnsID, vpcID)
   200  }
   201  
   202  // GetDNSInstancePermittedNetworks mocks base method.
   203  func (m *MockAPI) GetDNSInstancePermittedNetworks(ctx context.Context, dnsID, dnsZone string) ([]string, error) {
   204  	m.ctrl.T.Helper()
   205  	ret := m.ctrl.Call(m, "GetDNSInstancePermittedNetworks", ctx, dnsID, dnsZone)
   206  	ret0, _ := ret[0].([]string)
   207  	ret1, _ := ret[1].(error)
   208  	return ret0, ret1
   209  }
   210  
   211  // GetDNSInstancePermittedNetworks indicates an expected call of GetDNSInstancePermittedNetworks.
   212  func (mr *MockAPIMockRecorder) GetDNSInstancePermittedNetworks(ctx, dnsID, dnsZone interface{}) *gomock.Call {
   213  	mr.mock.ctrl.T.Helper()
   214  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSInstancePermittedNetworks", reflect.TypeOf((*MockAPI)(nil).GetDNSInstancePermittedNetworks), ctx, dnsID, dnsZone)
   215  }
   216  
   217  // GetDNSRecordsByName mocks base method.
   218  func (m *MockAPI) GetDNSRecordsByName(ctx context.Context, crnstr, zoneID, recordName string, publish types.PublishingStrategy) ([]powervs.DNSRecordResponse, error) {
   219  	m.ctrl.T.Helper()
   220  	ret := m.ctrl.Call(m, "GetDNSRecordsByName", ctx, crnstr, zoneID, recordName, publish)
   221  	ret0, _ := ret[0].([]powervs.DNSRecordResponse)
   222  	ret1, _ := ret[1].(error)
   223  	return ret0, ret1
   224  }
   225  
   226  // GetDNSRecordsByName indicates an expected call of GetDNSRecordsByName.
   227  func (mr *MockAPIMockRecorder) GetDNSRecordsByName(ctx, crnstr, zoneID, recordName, publish interface{}) *gomock.Call {
   228  	mr.mock.ctrl.T.Helper()
   229  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSRecordsByName", reflect.TypeOf((*MockAPI)(nil).GetDNSRecordsByName), ctx, crnstr, zoneID, recordName, publish)
   230  }
   231  
   232  // GetDNSZoneIDByName mocks base method.
   233  func (m *MockAPI) GetDNSZoneIDByName(ctx context.Context, name string, publish types.PublishingStrategy) (string, error) {
   234  	m.ctrl.T.Helper()
   235  	ret := m.ctrl.Call(m, "GetDNSZoneIDByName", ctx, name, publish)
   236  	ret0, _ := ret[0].(string)
   237  	ret1, _ := ret[1].(error)
   238  	return ret0, ret1
   239  }
   240  
   241  // GetDNSZoneIDByName indicates an expected call of GetDNSZoneIDByName.
   242  func (mr *MockAPIMockRecorder) GetDNSZoneIDByName(ctx, name, publish interface{}) *gomock.Call {
   243  	mr.mock.ctrl.T.Helper()
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSZoneIDByName", reflect.TypeOf((*MockAPI)(nil).GetDNSZoneIDByName), ctx, name, publish)
   245  }
   246  
   247  // GetDNSZones mocks base method.
   248  func (m *MockAPI) GetDNSZones(ctx context.Context, publish types.PublishingStrategy) ([]powervs.DNSZoneResponse, error) {
   249  	m.ctrl.T.Helper()
   250  	ret := m.ctrl.Call(m, "GetDNSZones", ctx, publish)
   251  	ret0, _ := ret[0].([]powervs.DNSZoneResponse)
   252  	ret1, _ := ret[1].(error)
   253  	return ret0, ret1
   254  }
   255  
   256  // GetDNSZones indicates an expected call of GetDNSZones.
   257  func (mr *MockAPIMockRecorder) GetDNSZones(ctx, publish interface{}) *gomock.Call {
   258  	mr.mock.ctrl.T.Helper()
   259  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSZones", reflect.TypeOf((*MockAPI)(nil).GetDNSZones), ctx, publish)
   260  }
   261  
   262  // GetDatacenterCapabilities mocks base method.
   263  func (m *MockAPI) GetDatacenterCapabilities(ctx context.Context, region string) (map[string]bool, error) {
   264  	m.ctrl.T.Helper()
   265  	ret := m.ctrl.Call(m, "GetDatacenterCapabilities", ctx, region)
   266  	ret0, _ := ret[0].(map[string]bool)
   267  	ret1, _ := ret[1].(error)
   268  	return ret0, ret1
   269  }
   270  
   271  // GetDatacenterCapabilities indicates an expected call of GetDatacenterCapabilities.
   272  func (mr *MockAPIMockRecorder) GetDatacenterCapabilities(ctx, region interface{}) *gomock.Call {
   273  	mr.mock.ctrl.T.Helper()
   274  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatacenterCapabilities", reflect.TypeOf((*MockAPI)(nil).GetDatacenterCapabilities), ctx, region)
   275  }
   276  
   277  // GetPublicGatewayByVPC mocks base method.
   278  func (m *MockAPI) GetPublicGatewayByVPC(ctx context.Context, vpcName string) (*vpcv1.PublicGateway, error) {
   279  	m.ctrl.T.Helper()
   280  	ret := m.ctrl.Call(m, "GetPublicGatewayByVPC", ctx, vpcName)
   281  	ret0, _ := ret[0].(*vpcv1.PublicGateway)
   282  	ret1, _ := ret[1].(error)
   283  	return ret0, ret1
   284  }
   285  
   286  // GetPublicGatewayByVPC indicates an expected call of GetPublicGatewayByVPC.
   287  func (mr *MockAPIMockRecorder) GetPublicGatewayByVPC(ctx, vpcName interface{}) *gomock.Call {
   288  	mr.mock.ctrl.T.Helper()
   289  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicGatewayByVPC", reflect.TypeOf((*MockAPI)(nil).GetPublicGatewayByVPC), ctx, vpcName)
   290  }
   291  
   292  // GetSubnetByName mocks base method.
   293  func (m *MockAPI) GetSubnetByName(ctx context.Context, subnetName, region string) (*vpcv1.Subnet, error) {
   294  	m.ctrl.T.Helper()
   295  	ret := m.ctrl.Call(m, "GetSubnetByName", ctx, subnetName, region)
   296  	ret0, _ := ret[0].(*vpcv1.Subnet)
   297  	ret1, _ := ret[1].(error)
   298  	return ret0, ret1
   299  }
   300  
   301  // GetSubnetByName indicates an expected call of GetSubnetByName.
   302  func (mr *MockAPIMockRecorder) GetSubnetByName(ctx, subnetName, region interface{}) *gomock.Call {
   303  	mr.mock.ctrl.T.Helper()
   304  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubnetByName", reflect.TypeOf((*MockAPI)(nil).GetSubnetByName), ctx, subnetName, region)
   305  }
   306  
   307  // GetTGConnectionVPC mocks base method.
   308  func (m *MockAPI) GetTGConnectionVPC(ctx context.Context, gatewayID, vpcSubnetID string) (string, error) {
   309  	m.ctrl.T.Helper()
   310  	ret := m.ctrl.Call(m, "GetTGConnectionVPC", ctx, gatewayID, vpcSubnetID)
   311  	ret0, _ := ret[0].(string)
   312  	ret1, _ := ret[1].(error)
   313  	return ret0, ret1
   314  }
   315  
   316  // GetTGConnectionVPC indicates an expected call of GetTGConnectionVPC.
   317  func (mr *MockAPIMockRecorder) GetTGConnectionVPC(ctx, gatewayID, vpcSubnetID interface{}) *gomock.Call {
   318  	mr.mock.ctrl.T.Helper()
   319  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTGConnectionVPC", reflect.TypeOf((*MockAPI)(nil).GetTGConnectionVPC), ctx, gatewayID, vpcSubnetID)
   320  }
   321  
   322  // GetVPCByName mocks base method.
   323  func (m *MockAPI) GetVPCByName(ctx context.Context, vpcName string) (*vpcv1.VPC, error) {
   324  	m.ctrl.T.Helper()
   325  	ret := m.ctrl.Call(m, "GetVPCByName", ctx, vpcName)
   326  	ret0, _ := ret[0].(*vpcv1.VPC)
   327  	ret1, _ := ret[1].(error)
   328  	return ret0, ret1
   329  }
   330  
   331  // GetVPCByName indicates an expected call of GetVPCByName.
   332  func (mr *MockAPIMockRecorder) GetVPCByName(ctx, vpcName interface{}) *gomock.Call {
   333  	mr.mock.ctrl.T.Helper()
   334  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVPCByName", reflect.TypeOf((*MockAPI)(nil).GetVPCByName), ctx, vpcName)
   335  }
   336  
   337  // GetVPCSubnets mocks base method.
   338  func (m *MockAPI) GetVPCSubnets(ctx context.Context, vpcID string) ([]vpcv1.Subnet, error) {
   339  	m.ctrl.T.Helper()
   340  	ret := m.ctrl.Call(m, "GetVPCSubnets", ctx, vpcID)
   341  	ret0, _ := ret[0].([]vpcv1.Subnet)
   342  	ret1, _ := ret[1].(error)
   343  	return ret0, ret1
   344  }
   345  
   346  // GetVPCSubnets indicates an expected call of GetVPCSubnets.
   347  func (mr *MockAPIMockRecorder) GetVPCSubnets(ctx, vpcID interface{}) *gomock.Call {
   348  	mr.mock.ctrl.T.Helper()
   349  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVPCSubnets", reflect.TypeOf((*MockAPI)(nil).GetVPCSubnets), ctx, vpcID)
   350  }
   351  
   352  // GetVPCs mocks base method.
   353  func (m *MockAPI) GetVPCs(ctx context.Context, region string) ([]vpcv1.VPC, error) {
   354  	m.ctrl.T.Helper()
   355  	ret := m.ctrl.Call(m, "GetVPCs", ctx, region)
   356  	ret0, _ := ret[0].([]vpcv1.VPC)
   357  	ret1, _ := ret[1].(error)
   358  	return ret0, ret1
   359  }
   360  
   361  // GetVPCs indicates an expected call of GetVPCs.
   362  func (mr *MockAPIMockRecorder) GetVPCs(ctx, region interface{}) *gomock.Call {
   363  	mr.mock.ctrl.T.Helper()
   364  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVPCs", reflect.TypeOf((*MockAPI)(nil).GetVPCs), ctx, region)
   365  }
   366  
   367  // ListResourceGroups mocks base method.
   368  func (m *MockAPI) ListResourceGroups(ctx context.Context) (*resourcemanagerv2.ResourceGroupList, error) {
   369  	m.ctrl.T.Helper()
   370  	ret := m.ctrl.Call(m, "ListResourceGroups", ctx)
   371  	ret0, _ := ret[0].(*resourcemanagerv2.ResourceGroupList)
   372  	ret1, _ := ret[1].(error)
   373  	return ret0, ret1
   374  }
   375  
   376  // ListResourceGroups indicates an expected call of ListResourceGroups.
   377  func (mr *MockAPIMockRecorder) ListResourceGroups(ctx interface{}) *gomock.Call {
   378  	mr.mock.ctrl.T.Helper()
   379  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceGroups", reflect.TypeOf((*MockAPI)(nil).ListResourceGroups), ctx)
   380  }
   381  
   382  // ListSecurityGroupRules mocks base method.
   383  func (m *MockAPI) ListSecurityGroupRules(ctx context.Context, securityGroupID string) (*vpcv1.SecurityGroupRuleCollection, error) {
   384  	m.ctrl.T.Helper()
   385  	ret := m.ctrl.Call(m, "ListSecurityGroupRules", ctx, securityGroupID)
   386  	ret0, _ := ret[0].(*vpcv1.SecurityGroupRuleCollection)
   387  	ret1, _ := ret[1].(error)
   388  	return ret0, ret1
   389  }
   390  
   391  // ListSecurityGroupRules indicates an expected call of ListSecurityGroupRules.
   392  func (mr *MockAPIMockRecorder) ListSecurityGroupRules(ctx, securityGroupID interface{}) *gomock.Call {
   393  	mr.mock.ctrl.T.Helper()
   394  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecurityGroupRules", reflect.TypeOf((*MockAPI)(nil).ListSecurityGroupRules), ctx, securityGroupID)
   395  }
   396  
   397  // ListServiceInstances mocks base method.
   398  func (m *MockAPI) ListServiceInstances(ctx context.Context) ([]string, error) {
   399  	m.ctrl.T.Helper()
   400  	ret := m.ctrl.Call(m, "ListServiceInstances", ctx)
   401  	ret0, _ := ret[0].([]string)
   402  	ret1, _ := ret[1].(error)
   403  	return ret0, ret1
   404  }
   405  
   406  // ListServiceInstances indicates an expected call of ListServiceInstances.
   407  func (mr *MockAPIMockRecorder) ListServiceInstances(ctx interface{}) *gomock.Call {
   408  	mr.mock.ctrl.T.Helper()
   409  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceInstances", reflect.TypeOf((*MockAPI)(nil).ListServiceInstances), ctx)
   410  }
   411  
   412  // ServiceInstanceGUIDToName mocks base method.
   413  func (m *MockAPI) ServiceInstanceGUIDToName(ctx context.Context, id string) (string, error) {
   414  	m.ctrl.T.Helper()
   415  	ret := m.ctrl.Call(m, "ServiceInstanceGUIDToName", ctx, id)
   416  	ret0, _ := ret[0].(string)
   417  	ret1, _ := ret[1].(error)
   418  	return ret0, ret1
   419  }
   420  
   421  // ServiceInstanceGUIDToName indicates an expected call of ServiceInstanceGUIDToName.
   422  func (mr *MockAPIMockRecorder) ServiceInstanceGUIDToName(ctx, id interface{}) *gomock.Call {
   423  	mr.mock.ctrl.T.Helper()
   424  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceInstanceGUIDToName", reflect.TypeOf((*MockAPI)(nil).ServiceInstanceGUIDToName), ctx, id)
   425  }
   426  
   427  // ServiceInstanceNameToGUID mocks base method.
   428  func (m *MockAPI) ServiceInstanceNameToGUID(ctx context.Context, name string) (string, error) {
   429  	m.ctrl.T.Helper()
   430  	ret := m.ctrl.Call(m, "ServiceInstanceNameToGUID", ctx, name)
   431  	ret0, _ := ret[0].(string)
   432  	ret1, _ := ret[1].(error)
   433  	return ret0, ret1
   434  }
   435  
   436  // ServiceInstanceNameToGUID indicates an expected call of ServiceInstanceNameToGUID.
   437  func (mr *MockAPIMockRecorder) ServiceInstanceNameToGUID(ctx, name interface{}) *gomock.Call {
   438  	mr.mock.ctrl.T.Helper()
   439  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceInstanceNameToGUID", reflect.TypeOf((*MockAPI)(nil).ServiceInstanceNameToGUID), ctx, name)
   440  }
   441  
   442  // SetVPCServiceURLForRegion mocks base method.
   443  func (m *MockAPI) SetVPCServiceURLForRegion(ctx context.Context, region string) error {
   444  	m.ctrl.T.Helper()
   445  	ret := m.ctrl.Call(m, "SetVPCServiceURLForRegion", ctx, region)
   446  	ret0, _ := ret[0].(error)
   447  	return ret0
   448  }
   449  
   450  // SetVPCServiceURLForRegion indicates an expected call of SetVPCServiceURLForRegion.
   451  func (mr *MockAPIMockRecorder) SetVPCServiceURLForRegion(ctx, region interface{}) *gomock.Call {
   452  	mr.mock.ctrl.T.Helper()
   453  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVPCServiceURLForRegion", reflect.TypeOf((*MockAPI)(nil).SetVPCServiceURLForRegion), ctx, region)
   454  }