github.com/openshift/installer@v1.4.17/pkg/asset/installconfig/gcp/mock/gcpclient_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  	gomock "github.com/golang/mock/gomock"
    12  	google "golang.org/x/oauth2/google"
    13  	cloudresourcemanager "google.golang.org/api/cloudresourcemanager/v3"
    14  	compute "google.golang.org/api/compute/v1"
    15  	dns "google.golang.org/api/dns/v1"
    16  	sets "k8s.io/apimachinery/pkg/util/sets"
    17  )
    18  
    19  // MockAPI is a mock of API interface.
    20  type MockAPI struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockAPIMockRecorder
    23  }
    24  
    25  // MockAPIMockRecorder is the mock recorder for MockAPI.
    26  type MockAPIMockRecorder struct {
    27  	mock *MockAPI
    28  }
    29  
    30  // NewMockAPI creates a new mock instance.
    31  func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
    32  	mock := &MockAPI{ctrl: ctrl}
    33  	mock.recorder = &MockAPIMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // GetCredentials mocks base method.
    43  func (m *MockAPI) GetCredentials() *google.Credentials {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "GetCredentials")
    46  	ret0, _ := ret[0].(*google.Credentials)
    47  	return ret0
    48  }
    49  
    50  // GetCredentials indicates an expected call of GetCredentials.
    51  func (mr *MockAPIMockRecorder) GetCredentials() *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredentials", reflect.TypeOf((*MockAPI)(nil).GetCredentials))
    54  }
    55  
    56  // GetDNSZone mocks base method.
    57  func (m *MockAPI) GetDNSZone(ctx context.Context, project, baseDomain string, isPublic bool) (*dns.ManagedZone, error) {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "GetDNSZone", ctx, project, baseDomain, isPublic)
    60  	ret0, _ := ret[0].(*dns.ManagedZone)
    61  	ret1, _ := ret[1].(error)
    62  	return ret0, ret1
    63  }
    64  
    65  // GetDNSZone indicates an expected call of GetDNSZone.
    66  func (mr *MockAPIMockRecorder) GetDNSZone(ctx, project, baseDomain, isPublic interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSZone", reflect.TypeOf((*MockAPI)(nil).GetDNSZone), ctx, project, baseDomain, isPublic)
    69  }
    70  
    71  // GetDNSZoneByName mocks base method.
    72  func (m *MockAPI) GetDNSZoneByName(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error) {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "GetDNSZoneByName", ctx, project, zoneName)
    75  	ret0, _ := ret[0].(*dns.ManagedZone)
    76  	ret1, _ := ret[1].(error)
    77  	return ret0, ret1
    78  }
    79  
    80  // GetDNSZoneByName indicates an expected call of GetDNSZoneByName.
    81  func (mr *MockAPIMockRecorder) GetDNSZoneByName(ctx, project, zoneName interface{}) *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSZoneByName", reflect.TypeOf((*MockAPI)(nil).GetDNSZoneByName), ctx, project, zoneName)
    84  }
    85  
    86  // GetEnabledServices mocks base method.
    87  func (m *MockAPI) GetEnabledServices(ctx context.Context, project string) ([]string, error) {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "GetEnabledServices", ctx, project)
    90  	ret0, _ := ret[0].([]string)
    91  	ret1, _ := ret[1].(error)
    92  	return ret0, ret1
    93  }
    94  
    95  // GetEnabledServices indicates an expected call of GetEnabledServices.
    96  func (mr *MockAPIMockRecorder) GetEnabledServices(ctx, project interface{}) *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnabledServices", reflect.TypeOf((*MockAPI)(nil).GetEnabledServices), ctx, project)
    99  }
   100  
   101  // GetImage mocks base method.
   102  func (m *MockAPI) GetImage(ctx context.Context, name, project string) (*compute.Image, error) {
   103  	m.ctrl.T.Helper()
   104  	ret := m.ctrl.Call(m, "GetImage", ctx, name, project)
   105  	ret0, _ := ret[0].(*compute.Image)
   106  	ret1, _ := ret[1].(error)
   107  	return ret0, ret1
   108  }
   109  
   110  // GetImage indicates an expected call of GetImage.
   111  func (mr *MockAPIMockRecorder) GetImage(ctx, name, project interface{}) *gomock.Call {
   112  	mr.mock.ctrl.T.Helper()
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetImage", reflect.TypeOf((*MockAPI)(nil).GetImage), ctx, name, project)
   114  }
   115  
   116  // GetMachineType mocks base method.
   117  func (m *MockAPI) GetMachineType(ctx context.Context, project, zone, machineType string) (*compute.MachineType, error) {
   118  	m.ctrl.T.Helper()
   119  	ret := m.ctrl.Call(m, "GetMachineType", ctx, project, zone, machineType)
   120  	ret0, _ := ret[0].(*compute.MachineType)
   121  	ret1, _ := ret[1].(error)
   122  	return ret0, ret1
   123  }
   124  
   125  // GetMachineType indicates an expected call of GetMachineType.
   126  func (mr *MockAPIMockRecorder) GetMachineType(ctx, project, zone, machineType interface{}) *gomock.Call {
   127  	mr.mock.ctrl.T.Helper()
   128  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMachineType", reflect.TypeOf((*MockAPI)(nil).GetMachineType), ctx, project, zone, machineType)
   129  }
   130  
   131  // GetMachineTypeWithZones mocks base method.
   132  func (m *MockAPI) GetMachineTypeWithZones(ctx context.Context, project, region, machineType string) (*compute.MachineType, sets.Set[string], error) {
   133  	m.ctrl.T.Helper()
   134  	ret := m.ctrl.Call(m, "GetMachineTypeWithZones", ctx, project, region, machineType)
   135  	ret0, _ := ret[0].(*compute.MachineType)
   136  	ret1, _ := ret[1].(sets.Set[string])
   137  	ret2, _ := ret[2].(error)
   138  	return ret0, ret1, ret2
   139  }
   140  
   141  // GetMachineTypeWithZones indicates an expected call of GetMachineTypeWithZones.
   142  func (mr *MockAPIMockRecorder) GetMachineTypeWithZones(ctx, project, region, machineType interface{}) *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMachineTypeWithZones", reflect.TypeOf((*MockAPI)(nil).GetMachineTypeWithZones), ctx, project, region, machineType)
   145  }
   146  
   147  // GetNamespacedTagValue mocks base method.
   148  func (m *MockAPI) GetNamespacedTagValue(ctx context.Context, tagNamespacedName string) (*cloudresourcemanager.TagValue, error) {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "GetNamespacedTagValue", ctx, tagNamespacedName)
   151  	ret0, _ := ret[0].(*cloudresourcemanager.TagValue)
   152  	ret1, _ := ret[1].(error)
   153  	return ret0, ret1
   154  }
   155  
   156  // GetNamespacedTagValue indicates an expected call of GetNamespacedTagValue.
   157  func (mr *MockAPIMockRecorder) GetNamespacedTagValue(ctx, tagNamespacedName interface{}) *gomock.Call {
   158  	mr.mock.ctrl.T.Helper()
   159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespacedTagValue", reflect.TypeOf((*MockAPI)(nil).GetNamespacedTagValue), ctx, tagNamespacedName)
   160  }
   161  
   162  // GetNetwork mocks base method.
   163  func (m *MockAPI) GetNetwork(ctx context.Context, network, project string) (*compute.Network, error) {
   164  	m.ctrl.T.Helper()
   165  	ret := m.ctrl.Call(m, "GetNetwork", ctx, network, project)
   166  	ret0, _ := ret[0].(*compute.Network)
   167  	ret1, _ := ret[1].(error)
   168  	return ret0, ret1
   169  }
   170  
   171  // GetNetwork indicates an expected call of GetNetwork.
   172  func (mr *MockAPIMockRecorder) GetNetwork(ctx, network, project interface{}) *gomock.Call {
   173  	mr.mock.ctrl.T.Helper()
   174  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNetwork", reflect.TypeOf((*MockAPI)(nil).GetNetwork), ctx, network, project)
   175  }
   176  
   177  // GetProjectByID mocks base method.
   178  func (m *MockAPI) GetProjectByID(ctx context.Context, project string) (*cloudresourcemanager.Project, error) {
   179  	m.ctrl.T.Helper()
   180  	ret := m.ctrl.Call(m, "GetProjectByID", ctx, project)
   181  	ret0, _ := ret[0].(*cloudresourcemanager.Project)
   182  	ret1, _ := ret[1].(error)
   183  	return ret0, ret1
   184  }
   185  
   186  // GetProjectByID indicates an expected call of GetProjectByID.
   187  func (mr *MockAPIMockRecorder) GetProjectByID(ctx, project interface{}) *gomock.Call {
   188  	mr.mock.ctrl.T.Helper()
   189  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectByID", reflect.TypeOf((*MockAPI)(nil).GetProjectByID), ctx, project)
   190  }
   191  
   192  // GetProjectPermissions mocks base method.
   193  func (m *MockAPI) GetProjectPermissions(ctx context.Context, project string, permissions []string) (sets.Set[string], error) {
   194  	m.ctrl.T.Helper()
   195  	ret := m.ctrl.Call(m, "GetProjectPermissions", ctx, project, permissions)
   196  	ret0, _ := ret[0].(sets.Set[string])
   197  	ret1, _ := ret[1].(error)
   198  	return ret0, ret1
   199  }
   200  
   201  // GetProjectPermissions indicates an expected call of GetProjectPermissions.
   202  func (mr *MockAPIMockRecorder) GetProjectPermissions(ctx, project, permissions interface{}) *gomock.Call {
   203  	mr.mock.ctrl.T.Helper()
   204  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectPermissions", reflect.TypeOf((*MockAPI)(nil).GetProjectPermissions), ctx, project, permissions)
   205  }
   206  
   207  // GetProjectTags mocks base method.
   208  func (m *MockAPI) GetProjectTags(ctx context.Context, projectID string) (sets.Set[string], error) {
   209  	m.ctrl.T.Helper()
   210  	ret := m.ctrl.Call(m, "GetProjectTags", ctx, projectID)
   211  	ret0, _ := ret[0].(sets.Set[string])
   212  	ret1, _ := ret[1].(error)
   213  	return ret0, ret1
   214  }
   215  
   216  // GetProjectTags indicates an expected call of GetProjectTags.
   217  func (mr *MockAPIMockRecorder) GetProjectTags(ctx, projectID interface{}) *gomock.Call {
   218  	mr.mock.ctrl.T.Helper()
   219  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectTags", reflect.TypeOf((*MockAPI)(nil).GetProjectTags), ctx, projectID)
   220  }
   221  
   222  // GetProjects mocks base method.
   223  func (m *MockAPI) GetProjects(ctx context.Context) (map[string]string, error) {
   224  	m.ctrl.T.Helper()
   225  	ret := m.ctrl.Call(m, "GetProjects", ctx)
   226  	ret0, _ := ret[0].(map[string]string)
   227  	ret1, _ := ret[1].(error)
   228  	return ret0, ret1
   229  }
   230  
   231  // GetProjects indicates an expected call of GetProjects.
   232  func (mr *MockAPIMockRecorder) GetProjects(ctx interface{}) *gomock.Call {
   233  	mr.mock.ctrl.T.Helper()
   234  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjects", reflect.TypeOf((*MockAPI)(nil).GetProjects), ctx)
   235  }
   236  
   237  // GetPublicDomains mocks base method.
   238  func (m *MockAPI) GetPublicDomains(ctx context.Context, project string) ([]string, error) {
   239  	m.ctrl.T.Helper()
   240  	ret := m.ctrl.Call(m, "GetPublicDomains", ctx, project)
   241  	ret0, _ := ret[0].([]string)
   242  	ret1, _ := ret[1].(error)
   243  	return ret0, ret1
   244  }
   245  
   246  // GetPublicDomains indicates an expected call of GetPublicDomains.
   247  func (mr *MockAPIMockRecorder) GetPublicDomains(ctx, project interface{}) *gomock.Call {
   248  	mr.mock.ctrl.T.Helper()
   249  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicDomains", reflect.TypeOf((*MockAPI)(nil).GetPublicDomains), ctx, project)
   250  }
   251  
   252  // GetRecordSets mocks base method.
   253  func (m *MockAPI) GetRecordSets(ctx context.Context, project, zone string) ([]*dns.ResourceRecordSet, error) {
   254  	m.ctrl.T.Helper()
   255  	ret := m.ctrl.Call(m, "GetRecordSets", ctx, project, zone)
   256  	ret0, _ := ret[0].([]*dns.ResourceRecordSet)
   257  	ret1, _ := ret[1].(error)
   258  	return ret0, ret1
   259  }
   260  
   261  // GetRecordSets indicates an expected call of GetRecordSets.
   262  func (mr *MockAPIMockRecorder) GetRecordSets(ctx, project, zone interface{}) *gomock.Call {
   263  	mr.mock.ctrl.T.Helper()
   264  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRecordSets", reflect.TypeOf((*MockAPI)(nil).GetRecordSets), ctx, project, zone)
   265  }
   266  
   267  // GetRegions mocks base method.
   268  func (m *MockAPI) GetRegions(ctx context.Context, project string) ([]string, error) {
   269  	m.ctrl.T.Helper()
   270  	ret := m.ctrl.Call(m, "GetRegions", ctx, project)
   271  	ret0, _ := ret[0].([]string)
   272  	ret1, _ := ret[1].(error)
   273  	return ret0, ret1
   274  }
   275  
   276  // GetRegions indicates an expected call of GetRegions.
   277  func (mr *MockAPIMockRecorder) GetRegions(ctx, project interface{}) *gomock.Call {
   278  	mr.mock.ctrl.T.Helper()
   279  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegions", reflect.TypeOf((*MockAPI)(nil).GetRegions), ctx, project)
   280  }
   281  
   282  // GetServiceAccount mocks base method.
   283  func (m *MockAPI) GetServiceAccount(ctx context.Context, project, serviceAccount string) (string, error) {
   284  	m.ctrl.T.Helper()
   285  	ret := m.ctrl.Call(m, "GetServiceAccount", ctx, project, serviceAccount)
   286  	ret0, _ := ret[0].(string)
   287  	ret1, _ := ret[1].(error)
   288  	return ret0, ret1
   289  }
   290  
   291  // GetServiceAccount indicates an expected call of GetServiceAccount.
   292  func (mr *MockAPIMockRecorder) GetServiceAccount(ctx, project, serviceAccount interface{}) *gomock.Call {
   293  	mr.mock.ctrl.T.Helper()
   294  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAccount", reflect.TypeOf((*MockAPI)(nil).GetServiceAccount), ctx, project, serviceAccount)
   295  }
   296  
   297  // GetSubnetworks mocks base method.
   298  func (m *MockAPI) GetSubnetworks(ctx context.Context, network, project, region string) ([]*compute.Subnetwork, error) {
   299  	m.ctrl.T.Helper()
   300  	ret := m.ctrl.Call(m, "GetSubnetworks", ctx, network, project, region)
   301  	ret0, _ := ret[0].([]*compute.Subnetwork)
   302  	ret1, _ := ret[1].(error)
   303  	return ret0, ret1
   304  }
   305  
   306  // GetSubnetworks indicates an expected call of GetSubnetworks.
   307  func (mr *MockAPIMockRecorder) GetSubnetworks(ctx, network, project, region interface{}) *gomock.Call {
   308  	mr.mock.ctrl.T.Helper()
   309  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubnetworks", reflect.TypeOf((*MockAPI)(nil).GetSubnetworks), ctx, network, project, region)
   310  }
   311  
   312  // GetZones mocks base method.
   313  func (m *MockAPI) GetZones(ctx context.Context, project, filter string) ([]*compute.Zone, error) {
   314  	m.ctrl.T.Helper()
   315  	ret := m.ctrl.Call(m, "GetZones", ctx, project, filter)
   316  	ret0, _ := ret[0].([]*compute.Zone)
   317  	ret1, _ := ret[1].(error)
   318  	return ret0, ret1
   319  }
   320  
   321  // GetZones indicates an expected call of GetZones.
   322  func (mr *MockAPIMockRecorder) GetZones(ctx, project, filter interface{}) *gomock.Call {
   323  	mr.mock.ctrl.T.Helper()
   324  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetZones", reflect.TypeOf((*MockAPI)(nil).GetZones), ctx, project, filter)
   325  }
   326  
   327  // ValidateServiceAccountHasPermissions mocks base method.
   328  func (m *MockAPI) ValidateServiceAccountHasPermissions(ctx context.Context, project string, permissions []string) (bool, error) {
   329  	m.ctrl.T.Helper()
   330  	ret := m.ctrl.Call(m, "ValidateServiceAccountHasPermissions", ctx, project, permissions)
   331  	ret0, _ := ret[0].(bool)
   332  	ret1, _ := ret[1].(error)
   333  	return ret0, ret1
   334  }
   335  
   336  // ValidateServiceAccountHasPermissions indicates an expected call of ValidateServiceAccountHasPermissions.
   337  func (mr *MockAPIMockRecorder) ValidateServiceAccountHasPermissions(ctx, project, permissions interface{}) *gomock.Call {
   338  	mr.mock.ctrl.T.Helper()
   339  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateServiceAccountHasPermissions", reflect.TypeOf((*MockAPI)(nil).ValidateServiceAccountHasPermissions), ctx, project, permissions)
   340  }