sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/roleassignments/mock_roleassignments/roleassignments_mock.go (about)

     1  /*
     2  Copyright The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Code generated by MockGen. DO NOT EDIT.
    18  // Source: ../roleassignments.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination roleassignments_mock.go -package mock_roleassignments -source ../roleassignments.go RoleAssignmentScope
    23  //
    24  
    25  // Package mock_roleassignments is a generated GoMock package.
    26  package mock_roleassignments
    27  
    28  import (
    29  	reflect "reflect"
    30  	time "time"
    31  
    32  	azcore "github.com/Azure/azure-sdk-for-go/sdk/azcore"
    33  	gomock "go.uber.org/mock/gomock"
    34  	v1beta1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
    35  	azure "sigs.k8s.io/cluster-api-provider-azure/azure"
    36  	v1beta10 "sigs.k8s.io/cluster-api/api/v1beta1"
    37  )
    38  
    39  // MockRoleAssignmentScope is a mock of RoleAssignmentScope interface.
    40  type MockRoleAssignmentScope struct {
    41  	ctrl     *gomock.Controller
    42  	recorder *MockRoleAssignmentScopeMockRecorder
    43  }
    44  
    45  // MockRoleAssignmentScopeMockRecorder is the mock recorder for MockRoleAssignmentScope.
    46  type MockRoleAssignmentScopeMockRecorder struct {
    47  	mock *MockRoleAssignmentScope
    48  }
    49  
    50  // NewMockRoleAssignmentScope creates a new mock instance.
    51  func NewMockRoleAssignmentScope(ctrl *gomock.Controller) *MockRoleAssignmentScope {
    52  	mock := &MockRoleAssignmentScope{ctrl: ctrl}
    53  	mock.recorder = &MockRoleAssignmentScopeMockRecorder{mock}
    54  	return mock
    55  }
    56  
    57  // EXPECT returns an object that allows the caller to indicate expected use.
    58  func (m *MockRoleAssignmentScope) EXPECT() *MockRoleAssignmentScopeMockRecorder {
    59  	return m.recorder
    60  }
    61  
    62  // BaseURI mocks base method.
    63  func (m *MockRoleAssignmentScope) BaseURI() string {
    64  	m.ctrl.T.Helper()
    65  	ret := m.ctrl.Call(m, "BaseURI")
    66  	ret0, _ := ret[0].(string)
    67  	return ret0
    68  }
    69  
    70  // BaseURI indicates an expected call of BaseURI.
    71  func (mr *MockRoleAssignmentScopeMockRecorder) BaseURI() *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseURI", reflect.TypeOf((*MockRoleAssignmentScope)(nil).BaseURI))
    74  }
    75  
    76  // ClientID mocks base method.
    77  func (m *MockRoleAssignmentScope) ClientID() string {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "ClientID")
    80  	ret0, _ := ret[0].(string)
    81  	return ret0
    82  }
    83  
    84  // ClientID indicates an expected call of ClientID.
    85  func (mr *MockRoleAssignmentScopeMockRecorder) ClientID() *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientID", reflect.TypeOf((*MockRoleAssignmentScope)(nil).ClientID))
    88  }
    89  
    90  // ClientSecret mocks base method.
    91  func (m *MockRoleAssignmentScope) ClientSecret() string {
    92  	m.ctrl.T.Helper()
    93  	ret := m.ctrl.Call(m, "ClientSecret")
    94  	ret0, _ := ret[0].(string)
    95  	return ret0
    96  }
    97  
    98  // ClientSecret indicates an expected call of ClientSecret.
    99  func (mr *MockRoleAssignmentScopeMockRecorder) ClientSecret() *gomock.Call {
   100  	mr.mock.ctrl.T.Helper()
   101  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientSecret", reflect.TypeOf((*MockRoleAssignmentScope)(nil).ClientSecret))
   102  }
   103  
   104  // CloudEnvironment mocks base method.
   105  func (m *MockRoleAssignmentScope) CloudEnvironment() string {
   106  	m.ctrl.T.Helper()
   107  	ret := m.ctrl.Call(m, "CloudEnvironment")
   108  	ret0, _ := ret[0].(string)
   109  	return ret0
   110  }
   111  
   112  // CloudEnvironment indicates an expected call of CloudEnvironment.
   113  func (mr *MockRoleAssignmentScopeMockRecorder) CloudEnvironment() *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudEnvironment", reflect.TypeOf((*MockRoleAssignmentScope)(nil).CloudEnvironment))
   116  }
   117  
   118  // DefaultedAzureCallTimeout mocks base method.
   119  func (m *MockRoleAssignmentScope) DefaultedAzureCallTimeout() time.Duration {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "DefaultedAzureCallTimeout")
   122  	ret0, _ := ret[0].(time.Duration)
   123  	return ret0
   124  }
   125  
   126  // DefaultedAzureCallTimeout indicates an expected call of DefaultedAzureCallTimeout.
   127  func (mr *MockRoleAssignmentScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockRoleAssignmentScope)(nil).DefaultedAzureCallTimeout))
   130  }
   131  
   132  // DefaultedAzureServiceReconcileTimeout mocks base method.
   133  func (m *MockRoleAssignmentScope) DefaultedAzureServiceReconcileTimeout() time.Duration {
   134  	m.ctrl.T.Helper()
   135  	ret := m.ctrl.Call(m, "DefaultedAzureServiceReconcileTimeout")
   136  	ret0, _ := ret[0].(time.Duration)
   137  	return ret0
   138  }
   139  
   140  // DefaultedAzureServiceReconcileTimeout indicates an expected call of DefaultedAzureServiceReconcileTimeout.
   141  func (mr *MockRoleAssignmentScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call {
   142  	mr.mock.ctrl.T.Helper()
   143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockRoleAssignmentScope)(nil).DefaultedAzureServiceReconcileTimeout))
   144  }
   145  
   146  // DefaultedReconcilerRequeue mocks base method.
   147  func (m *MockRoleAssignmentScope) DefaultedReconcilerRequeue() time.Duration {
   148  	m.ctrl.T.Helper()
   149  	ret := m.ctrl.Call(m, "DefaultedReconcilerRequeue")
   150  	ret0, _ := ret[0].(time.Duration)
   151  	return ret0
   152  }
   153  
   154  // DefaultedReconcilerRequeue indicates an expected call of DefaultedReconcilerRequeue.
   155  func (mr *MockRoleAssignmentScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call {
   156  	mr.mock.ctrl.T.Helper()
   157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockRoleAssignmentScope)(nil).DefaultedReconcilerRequeue))
   158  }
   159  
   160  // DeleteLongRunningOperationState mocks base method.
   161  func (m *MockRoleAssignmentScope) DeleteLongRunningOperationState(arg0, arg1, arg2 string) {
   162  	m.ctrl.T.Helper()
   163  	m.ctrl.Call(m, "DeleteLongRunningOperationState", arg0, arg1, arg2)
   164  }
   165  
   166  // DeleteLongRunningOperationState indicates an expected call of DeleteLongRunningOperationState.
   167  func (mr *MockRoleAssignmentScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   168  	mr.mock.ctrl.T.Helper()
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockRoleAssignmentScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2)
   170  }
   171  
   172  // GetLongRunningOperationState mocks base method.
   173  func (m *MockRoleAssignmentScope) GetLongRunningOperationState(arg0, arg1, arg2 string) *v1beta1.Future {
   174  	m.ctrl.T.Helper()
   175  	ret := m.ctrl.Call(m, "GetLongRunningOperationState", arg0, arg1, arg2)
   176  	ret0, _ := ret[0].(*v1beta1.Future)
   177  	return ret0
   178  }
   179  
   180  // GetLongRunningOperationState indicates an expected call of GetLongRunningOperationState.
   181  func (mr *MockRoleAssignmentScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   182  	mr.mock.ctrl.T.Helper()
   183  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockRoleAssignmentScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2)
   184  }
   185  
   186  // HasSystemAssignedIdentity mocks base method.
   187  func (m *MockRoleAssignmentScope) HasSystemAssignedIdentity() bool {
   188  	m.ctrl.T.Helper()
   189  	ret := m.ctrl.Call(m, "HasSystemAssignedIdentity")
   190  	ret0, _ := ret[0].(bool)
   191  	return ret0
   192  }
   193  
   194  // HasSystemAssignedIdentity indicates an expected call of HasSystemAssignedIdentity.
   195  func (mr *MockRoleAssignmentScopeMockRecorder) HasSystemAssignedIdentity() *gomock.Call {
   196  	mr.mock.ctrl.T.Helper()
   197  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasSystemAssignedIdentity", reflect.TypeOf((*MockRoleAssignmentScope)(nil).HasSystemAssignedIdentity))
   198  }
   199  
   200  // HashKey mocks base method.
   201  func (m *MockRoleAssignmentScope) HashKey() string {
   202  	m.ctrl.T.Helper()
   203  	ret := m.ctrl.Call(m, "HashKey")
   204  	ret0, _ := ret[0].(string)
   205  	return ret0
   206  }
   207  
   208  // HashKey indicates an expected call of HashKey.
   209  func (mr *MockRoleAssignmentScopeMockRecorder) HashKey() *gomock.Call {
   210  	mr.mock.ctrl.T.Helper()
   211  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HashKey", reflect.TypeOf((*MockRoleAssignmentScope)(nil).HashKey))
   212  }
   213  
   214  // Name mocks base method.
   215  func (m *MockRoleAssignmentScope) Name() string {
   216  	m.ctrl.T.Helper()
   217  	ret := m.ctrl.Call(m, "Name")
   218  	ret0, _ := ret[0].(string)
   219  	return ret0
   220  }
   221  
   222  // Name indicates an expected call of Name.
   223  func (mr *MockRoleAssignmentScopeMockRecorder) Name() *gomock.Call {
   224  	mr.mock.ctrl.T.Helper()
   225  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockRoleAssignmentScope)(nil).Name))
   226  }
   227  
   228  // ResourceGroup mocks base method.
   229  func (m *MockRoleAssignmentScope) ResourceGroup() string {
   230  	m.ctrl.T.Helper()
   231  	ret := m.ctrl.Call(m, "ResourceGroup")
   232  	ret0, _ := ret[0].(string)
   233  	return ret0
   234  }
   235  
   236  // ResourceGroup indicates an expected call of ResourceGroup.
   237  func (mr *MockRoleAssignmentScopeMockRecorder) ResourceGroup() *gomock.Call {
   238  	mr.mock.ctrl.T.Helper()
   239  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResourceGroup", reflect.TypeOf((*MockRoleAssignmentScope)(nil).ResourceGroup))
   240  }
   241  
   242  // RoleAssignmentResourceType mocks base method.
   243  func (m *MockRoleAssignmentScope) RoleAssignmentResourceType() string {
   244  	m.ctrl.T.Helper()
   245  	ret := m.ctrl.Call(m, "RoleAssignmentResourceType")
   246  	ret0, _ := ret[0].(string)
   247  	return ret0
   248  }
   249  
   250  // RoleAssignmentResourceType indicates an expected call of RoleAssignmentResourceType.
   251  func (mr *MockRoleAssignmentScopeMockRecorder) RoleAssignmentResourceType() *gomock.Call {
   252  	mr.mock.ctrl.T.Helper()
   253  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoleAssignmentResourceType", reflect.TypeOf((*MockRoleAssignmentScope)(nil).RoleAssignmentResourceType))
   254  }
   255  
   256  // RoleAssignmentSpecs mocks base method.
   257  func (m *MockRoleAssignmentScope) RoleAssignmentSpecs(principalID *string) []azure.ResourceSpecGetter {
   258  	m.ctrl.T.Helper()
   259  	ret := m.ctrl.Call(m, "RoleAssignmentSpecs", principalID)
   260  	ret0, _ := ret[0].([]azure.ResourceSpecGetter)
   261  	return ret0
   262  }
   263  
   264  // RoleAssignmentSpecs indicates an expected call of RoleAssignmentSpecs.
   265  func (mr *MockRoleAssignmentScopeMockRecorder) RoleAssignmentSpecs(principalID any) *gomock.Call {
   266  	mr.mock.ctrl.T.Helper()
   267  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoleAssignmentSpecs", reflect.TypeOf((*MockRoleAssignmentScope)(nil).RoleAssignmentSpecs), principalID)
   268  }
   269  
   270  // SetLongRunningOperationState mocks base method.
   271  func (m *MockRoleAssignmentScope) SetLongRunningOperationState(arg0 *v1beta1.Future) {
   272  	m.ctrl.T.Helper()
   273  	m.ctrl.Call(m, "SetLongRunningOperationState", arg0)
   274  }
   275  
   276  // SetLongRunningOperationState indicates an expected call of SetLongRunningOperationState.
   277  func (mr *MockRoleAssignmentScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call {
   278  	mr.mock.ctrl.T.Helper()
   279  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockRoleAssignmentScope)(nil).SetLongRunningOperationState), arg0)
   280  }
   281  
   282  // SubscriptionID mocks base method.
   283  func (m *MockRoleAssignmentScope) SubscriptionID() string {
   284  	m.ctrl.T.Helper()
   285  	ret := m.ctrl.Call(m, "SubscriptionID")
   286  	ret0, _ := ret[0].(string)
   287  	return ret0
   288  }
   289  
   290  // SubscriptionID indicates an expected call of SubscriptionID.
   291  func (mr *MockRoleAssignmentScopeMockRecorder) SubscriptionID() *gomock.Call {
   292  	mr.mock.ctrl.T.Helper()
   293  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscriptionID", reflect.TypeOf((*MockRoleAssignmentScope)(nil).SubscriptionID))
   294  }
   295  
   296  // TenantID mocks base method.
   297  func (m *MockRoleAssignmentScope) TenantID() string {
   298  	m.ctrl.T.Helper()
   299  	ret := m.ctrl.Call(m, "TenantID")
   300  	ret0, _ := ret[0].(string)
   301  	return ret0
   302  }
   303  
   304  // TenantID indicates an expected call of TenantID.
   305  func (mr *MockRoleAssignmentScopeMockRecorder) TenantID() *gomock.Call {
   306  	mr.mock.ctrl.T.Helper()
   307  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TenantID", reflect.TypeOf((*MockRoleAssignmentScope)(nil).TenantID))
   308  }
   309  
   310  // Token mocks base method.
   311  func (m *MockRoleAssignmentScope) Token() azcore.TokenCredential {
   312  	m.ctrl.T.Helper()
   313  	ret := m.ctrl.Call(m, "Token")
   314  	ret0, _ := ret[0].(azcore.TokenCredential)
   315  	return ret0
   316  }
   317  
   318  // Token indicates an expected call of Token.
   319  func (mr *MockRoleAssignmentScopeMockRecorder) Token() *gomock.Call {
   320  	mr.mock.ctrl.T.Helper()
   321  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Token", reflect.TypeOf((*MockRoleAssignmentScope)(nil).Token))
   322  }
   323  
   324  // UpdateDeleteStatus mocks base method.
   325  func (m *MockRoleAssignmentScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   326  	m.ctrl.T.Helper()
   327  	m.ctrl.Call(m, "UpdateDeleteStatus", arg0, arg1, arg2)
   328  }
   329  
   330  // UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus.
   331  func (mr *MockRoleAssignmentScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call {
   332  	mr.mock.ctrl.T.Helper()
   333  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockRoleAssignmentScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2)
   334  }
   335  
   336  // UpdatePatchStatus mocks base method.
   337  func (m *MockRoleAssignmentScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   338  	m.ctrl.T.Helper()
   339  	m.ctrl.Call(m, "UpdatePatchStatus", arg0, arg1, arg2)
   340  }
   341  
   342  // UpdatePatchStatus indicates an expected call of UpdatePatchStatus.
   343  func (mr *MockRoleAssignmentScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call {
   344  	mr.mock.ctrl.T.Helper()
   345  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockRoleAssignmentScope)(nil).UpdatePatchStatus), arg0, arg1, arg2)
   346  }
   347  
   348  // UpdatePutStatus mocks base method.
   349  func (m *MockRoleAssignmentScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   350  	m.ctrl.T.Helper()
   351  	m.ctrl.Call(m, "UpdatePutStatus", arg0, arg1, arg2)
   352  }
   353  
   354  // UpdatePutStatus indicates an expected call of UpdatePutStatus.
   355  func (mr *MockRoleAssignmentScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call {
   356  	mr.mock.ctrl.T.Helper()
   357  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockRoleAssignmentScope)(nil).UpdatePutStatus), arg0, arg1, arg2)
   358  }