sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/resourcehealth/mock_resourcehealth/resourcehealth_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: ../resourcehealth.go 19 // 20 // Generated by this command: 21 // 22 // mockgen -destination resourcehealth_mock.go -package mock_resourcehealth -source ../resourcehealth.go ResourceHealthScope,AvailabilityStatusFilterer 23 // 24 25 // Package mock_resourcehealth is a generated GoMock package. 26 package mock_resourcehealth 27 28 import ( 29 reflect "reflect" 30 31 azcore "github.com/Azure/azure-sdk-for-go/sdk/azcore" 32 gomock "go.uber.org/mock/gomock" 33 v1beta1 "sigs.k8s.io/cluster-api/api/v1beta1" 34 conditions "sigs.k8s.io/cluster-api/util/conditions" 35 ) 36 37 // MockResourceHealthScope is a mock of ResourceHealthScope interface. 38 type MockResourceHealthScope struct { 39 ctrl *gomock.Controller 40 recorder *MockResourceHealthScopeMockRecorder 41 } 42 43 // MockResourceHealthScopeMockRecorder is the mock recorder for MockResourceHealthScope. 44 type MockResourceHealthScopeMockRecorder struct { 45 mock *MockResourceHealthScope 46 } 47 48 // NewMockResourceHealthScope creates a new mock instance. 49 func NewMockResourceHealthScope(ctrl *gomock.Controller) *MockResourceHealthScope { 50 mock := &MockResourceHealthScope{ctrl: ctrl} 51 mock.recorder = &MockResourceHealthScopeMockRecorder{mock} 52 return mock 53 } 54 55 // EXPECT returns an object that allows the caller to indicate expected use. 56 func (m *MockResourceHealthScope) EXPECT() *MockResourceHealthScopeMockRecorder { 57 return m.recorder 58 } 59 60 // AvailabilityStatusResource mocks base method. 61 func (m *MockResourceHealthScope) AvailabilityStatusResource() conditions.Setter { 62 m.ctrl.T.Helper() 63 ret := m.ctrl.Call(m, "AvailabilityStatusResource") 64 ret0, _ := ret[0].(conditions.Setter) 65 return ret0 66 } 67 68 // AvailabilityStatusResource indicates an expected call of AvailabilityStatusResource. 69 func (mr *MockResourceHealthScopeMockRecorder) AvailabilityStatusResource() *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailabilityStatusResource", reflect.TypeOf((*MockResourceHealthScope)(nil).AvailabilityStatusResource)) 72 } 73 74 // AvailabilityStatusResourceURI mocks base method. 75 func (m *MockResourceHealthScope) AvailabilityStatusResourceURI() string { 76 m.ctrl.T.Helper() 77 ret := m.ctrl.Call(m, "AvailabilityStatusResourceURI") 78 ret0, _ := ret[0].(string) 79 return ret0 80 } 81 82 // AvailabilityStatusResourceURI indicates an expected call of AvailabilityStatusResourceURI. 83 func (mr *MockResourceHealthScopeMockRecorder) AvailabilityStatusResourceURI() *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailabilityStatusResourceURI", reflect.TypeOf((*MockResourceHealthScope)(nil).AvailabilityStatusResourceURI)) 86 } 87 88 // BaseURI mocks base method. 89 func (m *MockResourceHealthScope) BaseURI() string { 90 m.ctrl.T.Helper() 91 ret := m.ctrl.Call(m, "BaseURI") 92 ret0, _ := ret[0].(string) 93 return ret0 94 } 95 96 // BaseURI indicates an expected call of BaseURI. 97 func (mr *MockResourceHealthScopeMockRecorder) BaseURI() *gomock.Call { 98 mr.mock.ctrl.T.Helper() 99 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseURI", reflect.TypeOf((*MockResourceHealthScope)(nil).BaseURI)) 100 } 101 102 // ClientID mocks base method. 103 func (m *MockResourceHealthScope) ClientID() string { 104 m.ctrl.T.Helper() 105 ret := m.ctrl.Call(m, "ClientID") 106 ret0, _ := ret[0].(string) 107 return ret0 108 } 109 110 // ClientID indicates an expected call of ClientID. 111 func (mr *MockResourceHealthScopeMockRecorder) ClientID() *gomock.Call { 112 mr.mock.ctrl.T.Helper() 113 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientID", reflect.TypeOf((*MockResourceHealthScope)(nil).ClientID)) 114 } 115 116 // ClientSecret mocks base method. 117 func (m *MockResourceHealthScope) ClientSecret() string { 118 m.ctrl.T.Helper() 119 ret := m.ctrl.Call(m, "ClientSecret") 120 ret0, _ := ret[0].(string) 121 return ret0 122 } 123 124 // ClientSecret indicates an expected call of ClientSecret. 125 func (mr *MockResourceHealthScopeMockRecorder) ClientSecret() *gomock.Call { 126 mr.mock.ctrl.T.Helper() 127 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientSecret", reflect.TypeOf((*MockResourceHealthScope)(nil).ClientSecret)) 128 } 129 130 // CloudEnvironment mocks base method. 131 func (m *MockResourceHealthScope) CloudEnvironment() string { 132 m.ctrl.T.Helper() 133 ret := m.ctrl.Call(m, "CloudEnvironment") 134 ret0, _ := ret[0].(string) 135 return ret0 136 } 137 138 // CloudEnvironment indicates an expected call of CloudEnvironment. 139 func (mr *MockResourceHealthScopeMockRecorder) CloudEnvironment() *gomock.Call { 140 mr.mock.ctrl.T.Helper() 141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudEnvironment", reflect.TypeOf((*MockResourceHealthScope)(nil).CloudEnvironment)) 142 } 143 144 // HashKey mocks base method. 145 func (m *MockResourceHealthScope) HashKey() string { 146 m.ctrl.T.Helper() 147 ret := m.ctrl.Call(m, "HashKey") 148 ret0, _ := ret[0].(string) 149 return ret0 150 } 151 152 // HashKey indicates an expected call of HashKey. 153 func (mr *MockResourceHealthScopeMockRecorder) HashKey() *gomock.Call { 154 mr.mock.ctrl.T.Helper() 155 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HashKey", reflect.TypeOf((*MockResourceHealthScope)(nil).HashKey)) 156 } 157 158 // SubscriptionID mocks base method. 159 func (m *MockResourceHealthScope) SubscriptionID() string { 160 m.ctrl.T.Helper() 161 ret := m.ctrl.Call(m, "SubscriptionID") 162 ret0, _ := ret[0].(string) 163 return ret0 164 } 165 166 // SubscriptionID indicates an expected call of SubscriptionID. 167 func (mr *MockResourceHealthScopeMockRecorder) SubscriptionID() *gomock.Call { 168 mr.mock.ctrl.T.Helper() 169 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscriptionID", reflect.TypeOf((*MockResourceHealthScope)(nil).SubscriptionID)) 170 } 171 172 // TenantID mocks base method. 173 func (m *MockResourceHealthScope) TenantID() string { 174 m.ctrl.T.Helper() 175 ret := m.ctrl.Call(m, "TenantID") 176 ret0, _ := ret[0].(string) 177 return ret0 178 } 179 180 // TenantID indicates an expected call of TenantID. 181 func (mr *MockResourceHealthScopeMockRecorder) TenantID() *gomock.Call { 182 mr.mock.ctrl.T.Helper() 183 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TenantID", reflect.TypeOf((*MockResourceHealthScope)(nil).TenantID)) 184 } 185 186 // Token mocks base method. 187 func (m *MockResourceHealthScope) Token() azcore.TokenCredential { 188 m.ctrl.T.Helper() 189 ret := m.ctrl.Call(m, "Token") 190 ret0, _ := ret[0].(azcore.TokenCredential) 191 return ret0 192 } 193 194 // Token indicates an expected call of Token. 195 func (mr *MockResourceHealthScopeMockRecorder) Token() *gomock.Call { 196 mr.mock.ctrl.T.Helper() 197 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Token", reflect.TypeOf((*MockResourceHealthScope)(nil).Token)) 198 } 199 200 // MockAvailabilityStatusFilterer is a mock of AvailabilityStatusFilterer interface. 201 type MockAvailabilityStatusFilterer struct { 202 ctrl *gomock.Controller 203 recorder *MockAvailabilityStatusFiltererMockRecorder 204 } 205 206 // MockAvailabilityStatusFiltererMockRecorder is the mock recorder for MockAvailabilityStatusFilterer. 207 type MockAvailabilityStatusFiltererMockRecorder struct { 208 mock *MockAvailabilityStatusFilterer 209 } 210 211 // NewMockAvailabilityStatusFilterer creates a new mock instance. 212 func NewMockAvailabilityStatusFilterer(ctrl *gomock.Controller) *MockAvailabilityStatusFilterer { 213 mock := &MockAvailabilityStatusFilterer{ctrl: ctrl} 214 mock.recorder = &MockAvailabilityStatusFiltererMockRecorder{mock} 215 return mock 216 } 217 218 // EXPECT returns an object that allows the caller to indicate expected use. 219 func (m *MockAvailabilityStatusFilterer) EXPECT() *MockAvailabilityStatusFiltererMockRecorder { 220 return m.recorder 221 } 222 223 // AvailabilityStatusFilter mocks base method. 224 func (m *MockAvailabilityStatusFilterer) AvailabilityStatusFilter(cond *v1beta1.Condition) *v1beta1.Condition { 225 m.ctrl.T.Helper() 226 ret := m.ctrl.Call(m, "AvailabilityStatusFilter", cond) 227 ret0, _ := ret[0].(*v1beta1.Condition) 228 return ret0 229 } 230 231 // AvailabilityStatusFilter indicates an expected call of AvailabilityStatusFilter. 232 func (mr *MockAvailabilityStatusFiltererMockRecorder) AvailabilityStatusFilter(cond any) *gomock.Call { 233 mr.mock.ctrl.T.Helper() 234 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailabilityStatusFilter", reflect.TypeOf((*MockAvailabilityStatusFilterer)(nil).AvailabilityStatusFilter), cond) 235 }