github.com/openshift/installer@v1.4.17/pkg/asset/installconfig/ibmcloud/mock/ibmcloudclient_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  	dnsrecordsv1 "github.com/IBM/networking-go-sdk/dnsrecordsv1"
    12  	iamidentityv1 "github.com/IBM/platform-services-go-sdk/iamidentityv1"
    13  	resourcecontrollerv2 "github.com/IBM/platform-services-go-sdk/resourcecontrollerv2"
    14  	resourcemanagerv2 "github.com/IBM/platform-services-go-sdk/resourcemanagerv2"
    15  	vpcv1 "github.com/IBM/vpc-go-sdk/vpcv1"
    16  	gomock "github.com/golang/mock/gomock"
    17  	responses "github.com/openshift/installer/pkg/asset/installconfig/ibmcloud/responses"
    18  	types "github.com/openshift/installer/pkg/types"
    19  )
    20  
    21  // MockAPI is a mock of API interface.
    22  type MockAPI struct {
    23  	ctrl     *gomock.Controller
    24  	recorder *MockAPIMockRecorder
    25  }
    26  
    27  // MockAPIMockRecorder is the mock recorder for MockAPI.
    28  type MockAPIMockRecorder struct {
    29  	mock *MockAPI
    30  }
    31  
    32  // NewMockAPI creates a new mock instance.
    33  func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
    34  	mock := &MockAPI{ctrl: ctrl}
    35  	mock.recorder = &MockAPIMockRecorder{mock}
    36  	return mock
    37  }
    38  
    39  // EXPECT returns an object that allows the caller to indicate expected use.
    40  func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
    41  	return m.recorder
    42  }
    43  
    44  // GetAPIKey mocks base method.
    45  func (m *MockAPI) GetAPIKey() string {
    46  	m.ctrl.T.Helper()
    47  	ret := m.ctrl.Call(m, "GetAPIKey")
    48  	ret0, _ := ret[0].(string)
    49  	return ret0
    50  }
    51  
    52  // GetAPIKey indicates an expected call of GetAPIKey.
    53  func (mr *MockAPIMockRecorder) GetAPIKey() *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAPIKey", reflect.TypeOf((*MockAPI)(nil).GetAPIKey))
    56  }
    57  
    58  // GetAuthenticatorAPIKeyDetails mocks base method.
    59  func (m *MockAPI) GetAuthenticatorAPIKeyDetails(ctx context.Context) (*iamidentityv1.APIKey, error) {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "GetAuthenticatorAPIKeyDetails", ctx)
    62  	ret0, _ := ret[0].(*iamidentityv1.APIKey)
    63  	ret1, _ := ret[1].(error)
    64  	return ret0, ret1
    65  }
    66  
    67  // GetAuthenticatorAPIKeyDetails indicates an expected call of GetAuthenticatorAPIKeyDetails.
    68  func (mr *MockAPIMockRecorder) GetAuthenticatorAPIKeyDetails(ctx interface{}) *gomock.Call {
    69  	mr.mock.ctrl.T.Helper()
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthenticatorAPIKeyDetails", reflect.TypeOf((*MockAPI)(nil).GetAuthenticatorAPIKeyDetails), ctx)
    71  }
    72  
    73  // GetCISInstance mocks base method.
    74  func (m *MockAPI) GetCISInstance(ctx context.Context, crnstr string) (*resourcecontrollerv2.ResourceInstance, error) {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "GetCISInstance", ctx, crnstr)
    77  	ret0, _ := ret[0].(*resourcecontrollerv2.ResourceInstance)
    78  	ret1, _ := ret[1].(error)
    79  	return ret0, ret1
    80  }
    81  
    82  // GetCISInstance indicates an expected call of GetCISInstance.
    83  func (mr *MockAPIMockRecorder) GetCISInstance(ctx, crnstr interface{}) *gomock.Call {
    84  	mr.mock.ctrl.T.Helper()
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCISInstance", reflect.TypeOf((*MockAPI)(nil).GetCISInstance), ctx, crnstr)
    86  }
    87  
    88  // GetDNSInstance mocks base method.
    89  func (m *MockAPI) GetDNSInstance(ctx context.Context, crnstr string) (*resourcecontrollerv2.ResourceInstance, error) {
    90  	m.ctrl.T.Helper()
    91  	ret := m.ctrl.Call(m, "GetDNSInstance", ctx, crnstr)
    92  	ret0, _ := ret[0].(*resourcecontrollerv2.ResourceInstance)
    93  	ret1, _ := ret[1].(error)
    94  	return ret0, ret1
    95  }
    96  
    97  // GetDNSInstance indicates an expected call of GetDNSInstance.
    98  func (mr *MockAPIMockRecorder) GetDNSInstance(ctx, crnstr interface{}) *gomock.Call {
    99  	mr.mock.ctrl.T.Helper()
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSInstance", reflect.TypeOf((*MockAPI)(nil).GetDNSInstance), ctx, crnstr)
   101  }
   102  
   103  // GetDNSInstancePermittedNetworks mocks base method.
   104  func (m *MockAPI) GetDNSInstancePermittedNetworks(ctx context.Context, dnsID, dnsZone string) ([]string, error) {
   105  	m.ctrl.T.Helper()
   106  	ret := m.ctrl.Call(m, "GetDNSInstancePermittedNetworks", ctx, dnsID, dnsZone)
   107  	ret0, _ := ret[0].([]string)
   108  	ret1, _ := ret[1].(error)
   109  	return ret0, ret1
   110  }
   111  
   112  // GetDNSInstancePermittedNetworks indicates an expected call of GetDNSInstancePermittedNetworks.
   113  func (mr *MockAPIMockRecorder) GetDNSInstancePermittedNetworks(ctx, dnsID, dnsZone interface{}) *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSInstancePermittedNetworks", reflect.TypeOf((*MockAPI)(nil).GetDNSInstancePermittedNetworks), ctx, dnsID, dnsZone)
   116  }
   117  
   118  // GetDNSRecordsByName mocks base method.
   119  func (m *MockAPI) GetDNSRecordsByName(ctx context.Context, crnstr, zoneID, recordName string) ([]dnsrecordsv1.DnsrecordDetails, error) {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "GetDNSRecordsByName", ctx, crnstr, zoneID, recordName)
   122  	ret0, _ := ret[0].([]dnsrecordsv1.DnsrecordDetails)
   123  	ret1, _ := ret[1].(error)
   124  	return ret0, ret1
   125  }
   126  
   127  // GetDNSRecordsByName indicates an expected call of GetDNSRecordsByName.
   128  func (mr *MockAPIMockRecorder) GetDNSRecordsByName(ctx, crnstr, zoneID, recordName interface{}) *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSRecordsByName", reflect.TypeOf((*MockAPI)(nil).GetDNSRecordsByName), ctx, crnstr, zoneID, recordName)
   131  }
   132  
   133  // GetDNSZoneIDByName mocks base method.
   134  func (m *MockAPI) GetDNSZoneIDByName(ctx context.Context, name string, publish types.PublishingStrategy) (string, error) {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "GetDNSZoneIDByName", ctx, name, publish)
   137  	ret0, _ := ret[0].(string)
   138  	ret1, _ := ret[1].(error)
   139  	return ret0, ret1
   140  }
   141  
   142  // GetDNSZoneIDByName indicates an expected call of GetDNSZoneIDByName.
   143  func (mr *MockAPIMockRecorder) GetDNSZoneIDByName(ctx, name, publish interface{}) *gomock.Call {
   144  	mr.mock.ctrl.T.Helper()
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSZoneIDByName", reflect.TypeOf((*MockAPI)(nil).GetDNSZoneIDByName), ctx, name, publish)
   146  }
   147  
   148  // GetDNSZones mocks base method.
   149  func (m *MockAPI) GetDNSZones(ctx context.Context, publish types.PublishingStrategy) ([]responses.DNSZoneResponse, error) {
   150  	m.ctrl.T.Helper()
   151  	ret := m.ctrl.Call(m, "GetDNSZones", ctx, publish)
   152  	ret0, _ := ret[0].([]responses.DNSZoneResponse)
   153  	ret1, _ := ret[1].(error)
   154  	return ret0, ret1
   155  }
   156  
   157  // GetDNSZones indicates an expected call of GetDNSZones.
   158  func (mr *MockAPIMockRecorder) GetDNSZones(ctx, publish interface{}) *gomock.Call {
   159  	mr.mock.ctrl.T.Helper()
   160  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSZones", reflect.TypeOf((*MockAPI)(nil).GetDNSZones), ctx, publish)
   161  }
   162  
   163  // GetDedicatedHostByName mocks base method.
   164  func (m *MockAPI) GetDedicatedHostByName(ctx context.Context, name, region string) (*vpcv1.DedicatedHost, error) {
   165  	m.ctrl.T.Helper()
   166  	ret := m.ctrl.Call(m, "GetDedicatedHostByName", ctx, name, region)
   167  	ret0, _ := ret[0].(*vpcv1.DedicatedHost)
   168  	ret1, _ := ret[1].(error)
   169  	return ret0, ret1
   170  }
   171  
   172  // GetDedicatedHostByName indicates an expected call of GetDedicatedHostByName.
   173  func (mr *MockAPIMockRecorder) GetDedicatedHostByName(ctx, name, region interface{}) *gomock.Call {
   174  	mr.mock.ctrl.T.Helper()
   175  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDedicatedHostByName", reflect.TypeOf((*MockAPI)(nil).GetDedicatedHostByName), ctx, name, region)
   176  }
   177  
   178  // GetDedicatedHostProfiles mocks base method.
   179  func (m *MockAPI) GetDedicatedHostProfiles(ctx context.Context, region string) ([]vpcv1.DedicatedHostProfile, error) {
   180  	m.ctrl.T.Helper()
   181  	ret := m.ctrl.Call(m, "GetDedicatedHostProfiles", ctx, region)
   182  	ret0, _ := ret[0].([]vpcv1.DedicatedHostProfile)
   183  	ret1, _ := ret[1].(error)
   184  	return ret0, ret1
   185  }
   186  
   187  // GetDedicatedHostProfiles indicates an expected call of GetDedicatedHostProfiles.
   188  func (mr *MockAPIMockRecorder) GetDedicatedHostProfiles(ctx, region interface{}) *gomock.Call {
   189  	mr.mock.ctrl.T.Helper()
   190  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDedicatedHostProfiles", reflect.TypeOf((*MockAPI)(nil).GetDedicatedHostProfiles), ctx, region)
   191  }
   192  
   193  // GetEncryptionKey mocks base method.
   194  func (m *MockAPI) GetEncryptionKey(ctx context.Context, keyCRN string) (*responses.EncryptionKeyResponse, error) {
   195  	m.ctrl.T.Helper()
   196  	ret := m.ctrl.Call(m, "GetEncryptionKey", ctx, keyCRN)
   197  	ret0, _ := ret[0].(*responses.EncryptionKeyResponse)
   198  	ret1, _ := ret[1].(error)
   199  	return ret0, ret1
   200  }
   201  
   202  // GetEncryptionKey indicates an expected call of GetEncryptionKey.
   203  func (mr *MockAPIMockRecorder) GetEncryptionKey(ctx, keyCRN interface{}) *gomock.Call {
   204  	mr.mock.ctrl.T.Helper()
   205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEncryptionKey", reflect.TypeOf((*MockAPI)(nil).GetEncryptionKey), ctx, keyCRN)
   206  }
   207  
   208  // GetResourceGroup mocks base method.
   209  func (m *MockAPI) GetResourceGroup(ctx context.Context, nameOrID string) (*resourcemanagerv2.ResourceGroup, error) {
   210  	m.ctrl.T.Helper()
   211  	ret := m.ctrl.Call(m, "GetResourceGroup", ctx, nameOrID)
   212  	ret0, _ := ret[0].(*resourcemanagerv2.ResourceGroup)
   213  	ret1, _ := ret[1].(error)
   214  	return ret0, ret1
   215  }
   216  
   217  // GetResourceGroup indicates an expected call of GetResourceGroup.
   218  func (mr *MockAPIMockRecorder) GetResourceGroup(ctx, nameOrID interface{}) *gomock.Call {
   219  	mr.mock.ctrl.T.Helper()
   220  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourceGroup", reflect.TypeOf((*MockAPI)(nil).GetResourceGroup), ctx, nameOrID)
   221  }
   222  
   223  // GetResourceGroups mocks base method.
   224  func (m *MockAPI) GetResourceGroups(ctx context.Context) ([]resourcemanagerv2.ResourceGroup, error) {
   225  	m.ctrl.T.Helper()
   226  	ret := m.ctrl.Call(m, "GetResourceGroups", ctx)
   227  	ret0, _ := ret[0].([]resourcemanagerv2.ResourceGroup)
   228  	ret1, _ := ret[1].(error)
   229  	return ret0, ret1
   230  }
   231  
   232  // GetResourceGroups indicates an expected call of GetResourceGroups.
   233  func (mr *MockAPIMockRecorder) GetResourceGroups(ctx interface{}) *gomock.Call {
   234  	mr.mock.ctrl.T.Helper()
   235  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourceGroups", reflect.TypeOf((*MockAPI)(nil).GetResourceGroups), ctx)
   236  }
   237  
   238  // GetSubnet mocks base method.
   239  func (m *MockAPI) GetSubnet(ctx context.Context, subnetID string) (*vpcv1.Subnet, error) {
   240  	m.ctrl.T.Helper()
   241  	ret := m.ctrl.Call(m, "GetSubnet", ctx, subnetID)
   242  	ret0, _ := ret[0].(*vpcv1.Subnet)
   243  	ret1, _ := ret[1].(error)
   244  	return ret0, ret1
   245  }
   246  
   247  // GetSubnet indicates an expected call of GetSubnet.
   248  func (mr *MockAPIMockRecorder) GetSubnet(ctx, subnetID interface{}) *gomock.Call {
   249  	mr.mock.ctrl.T.Helper()
   250  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubnet", reflect.TypeOf((*MockAPI)(nil).GetSubnet), ctx, subnetID)
   251  }
   252  
   253  // GetSubnetByName mocks base method.
   254  func (m *MockAPI) GetSubnetByName(ctx context.Context, subnetName, region string) (*vpcv1.Subnet, error) {
   255  	m.ctrl.T.Helper()
   256  	ret := m.ctrl.Call(m, "GetSubnetByName", ctx, subnetName, region)
   257  	ret0, _ := ret[0].(*vpcv1.Subnet)
   258  	ret1, _ := ret[1].(error)
   259  	return ret0, ret1
   260  }
   261  
   262  // GetSubnetByName indicates an expected call of GetSubnetByName.
   263  func (mr *MockAPIMockRecorder) GetSubnetByName(ctx, subnetName, region interface{}) *gomock.Call {
   264  	mr.mock.ctrl.T.Helper()
   265  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubnetByName", reflect.TypeOf((*MockAPI)(nil).GetSubnetByName), ctx, subnetName, region)
   266  }
   267  
   268  // GetVPC mocks base method.
   269  func (m *MockAPI) GetVPC(ctx context.Context, vpcID string) (*vpcv1.VPC, error) {
   270  	m.ctrl.T.Helper()
   271  	ret := m.ctrl.Call(m, "GetVPC", ctx, vpcID)
   272  	ret0, _ := ret[0].(*vpcv1.VPC)
   273  	ret1, _ := ret[1].(error)
   274  	return ret0, ret1
   275  }
   276  
   277  // GetVPC indicates an expected call of GetVPC.
   278  func (mr *MockAPIMockRecorder) GetVPC(ctx, vpcID interface{}) *gomock.Call {
   279  	mr.mock.ctrl.T.Helper()
   280  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVPC", reflect.TypeOf((*MockAPI)(nil).GetVPC), ctx, vpcID)
   281  }
   282  
   283  // GetVPCByName mocks base method.
   284  func (m *MockAPI) GetVPCByName(ctx context.Context, vpcName string) (*vpcv1.VPC, error) {
   285  	m.ctrl.T.Helper()
   286  	ret := m.ctrl.Call(m, "GetVPCByName", ctx, vpcName)
   287  	ret0, _ := ret[0].(*vpcv1.VPC)
   288  	ret1, _ := ret[1].(error)
   289  	return ret0, ret1
   290  }
   291  
   292  // GetVPCByName indicates an expected call of GetVPCByName.
   293  func (mr *MockAPIMockRecorder) GetVPCByName(ctx, vpcName interface{}) *gomock.Call {
   294  	mr.mock.ctrl.T.Helper()
   295  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVPCByName", reflect.TypeOf((*MockAPI)(nil).GetVPCByName), ctx, vpcName)
   296  }
   297  
   298  // GetVPCZonesForRegion mocks base method.
   299  func (m *MockAPI) GetVPCZonesForRegion(ctx context.Context, region string) ([]string, error) {
   300  	m.ctrl.T.Helper()
   301  	ret := m.ctrl.Call(m, "GetVPCZonesForRegion", ctx, region)
   302  	ret0, _ := ret[0].([]string)
   303  	ret1, _ := ret[1].(error)
   304  	return ret0, ret1
   305  }
   306  
   307  // GetVPCZonesForRegion indicates an expected call of GetVPCZonesForRegion.
   308  func (mr *MockAPIMockRecorder) GetVPCZonesForRegion(ctx, region interface{}) *gomock.Call {
   309  	mr.mock.ctrl.T.Helper()
   310  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVPCZonesForRegion", reflect.TypeOf((*MockAPI)(nil).GetVPCZonesForRegion), ctx, region)
   311  }
   312  
   313  // GetVPCs mocks base method.
   314  func (m *MockAPI) GetVPCs(ctx context.Context, region string) ([]vpcv1.VPC, error) {
   315  	m.ctrl.T.Helper()
   316  	ret := m.ctrl.Call(m, "GetVPCs", ctx, region)
   317  	ret0, _ := ret[0].([]vpcv1.VPC)
   318  	ret1, _ := ret[1].(error)
   319  	return ret0, ret1
   320  }
   321  
   322  // GetVPCs indicates an expected call of GetVPCs.
   323  func (mr *MockAPIMockRecorder) GetVPCs(ctx, region interface{}) *gomock.Call {
   324  	mr.mock.ctrl.T.Helper()
   325  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVPCs", reflect.TypeOf((*MockAPI)(nil).GetVPCs), ctx, region)
   326  }
   327  
   328  // GetVSIProfiles mocks base method.
   329  func (m *MockAPI) GetVSIProfiles(ctx context.Context) ([]vpcv1.InstanceProfile, error) {
   330  	m.ctrl.T.Helper()
   331  	ret := m.ctrl.Call(m, "GetVSIProfiles", ctx)
   332  	ret0, _ := ret[0].([]vpcv1.InstanceProfile)
   333  	ret1, _ := ret[1].(error)
   334  	return ret0, ret1
   335  }
   336  
   337  // GetVSIProfiles indicates an expected call of GetVSIProfiles.
   338  func (mr *MockAPIMockRecorder) GetVSIProfiles(ctx interface{}) *gomock.Call {
   339  	mr.mock.ctrl.T.Helper()
   340  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVSIProfiles", reflect.TypeOf((*MockAPI)(nil).GetVSIProfiles), ctx)
   341  }
   342  
   343  // SetVPCServiceURLForRegion mocks base method.
   344  func (m *MockAPI) SetVPCServiceURLForRegion(ctx context.Context, region string) error {
   345  	m.ctrl.T.Helper()
   346  	ret := m.ctrl.Call(m, "SetVPCServiceURLForRegion", ctx, region)
   347  	ret0, _ := ret[0].(error)
   348  	return ret0
   349  }
   350  
   351  // SetVPCServiceURLForRegion indicates an expected call of SetVPCServiceURLForRegion.
   352  func (mr *MockAPIMockRecorder) SetVPCServiceURLForRegion(ctx, region interface{}) *gomock.Call {
   353  	mr.mock.ctrl.T.Helper()
   354  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVPCServiceURLForRegion", reflect.TypeOf((*MockAPI)(nil).SetVPCServiceURLForRegion), ctx, region)
   355  }