-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathvariable_set_mocks.go
More file actions
259 lines (222 loc) · 10.9 KB
/
variable_set_mocks.go
File metadata and controls
259 lines (222 loc) · 10.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
// Code generated by MockGen. DO NOT EDIT.
// Source: variable_set.go
//
// Generated by this command:
//
// mockgen -source=variable_set.go -destination=mocks/variable_set_mocks.go -package=mocks
//
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
tfe "github.com/hashicorp/go-tfe"
gomock "go.uber.org/mock/gomock"
)
// MockVariableSets is a mock of VariableSets interface.
type MockVariableSets struct {
ctrl *gomock.Controller
recorder *MockVariableSetsMockRecorder
}
// MockVariableSetsMockRecorder is the mock recorder for MockVariableSets.
type MockVariableSetsMockRecorder struct {
mock *MockVariableSets
}
// NewMockVariableSets creates a new mock instance.
func NewMockVariableSets(ctrl *gomock.Controller) *MockVariableSets {
mock := &MockVariableSets{ctrl: ctrl}
mock.recorder = &MockVariableSetsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockVariableSets) EXPECT() *MockVariableSetsMockRecorder {
return m.recorder
}
// ApplyToProjects mocks base method.
func (m *MockVariableSets) ApplyToProjects(ctx context.Context, variableSetID string, options tfe.VariableSetApplyToProjectsOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ApplyToProjects", ctx, variableSetID, options)
ret0, _ := ret[0].(error)
return ret0
}
// ApplyToProjects indicates an expected call of ApplyToProjects.
func (mr *MockVariableSetsMockRecorder) ApplyToProjects(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyToProjects", reflect.TypeOf((*MockVariableSets)(nil).ApplyToProjects), ctx, variableSetID, options)
}
// ApplyToStacks mocks base method.
func (m *MockVariableSets) ApplyToStacks(ctx context.Context, variableSetID string, options *tfe.VariableSetApplyToStacksOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ApplyToStacks", ctx, variableSetID, options)
ret0, _ := ret[0].(error)
return ret0
}
// ApplyToStacks indicates an expected call of ApplyToStacks.
func (mr *MockVariableSetsMockRecorder) ApplyToStacks(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyToStacks", reflect.TypeOf((*MockVariableSets)(nil).ApplyToStacks), ctx, variableSetID, options)
}
// ApplyToWorkspaces mocks base method.
func (m *MockVariableSets) ApplyToWorkspaces(ctx context.Context, variableSetID string, options *tfe.VariableSetApplyToWorkspacesOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ApplyToWorkspaces", ctx, variableSetID, options)
ret0, _ := ret[0].(error)
return ret0
}
// ApplyToWorkspaces indicates an expected call of ApplyToWorkspaces.
func (mr *MockVariableSetsMockRecorder) ApplyToWorkspaces(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyToWorkspaces", reflect.TypeOf((*MockVariableSets)(nil).ApplyToWorkspaces), ctx, variableSetID, options)
}
// Create mocks base method.
func (m *MockVariableSets) Create(ctx context.Context, organization string, options *tfe.VariableSetCreateOptions) (*tfe.VariableSet, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", ctx, organization, options)
ret0, _ := ret[0].(*tfe.VariableSet)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create.
func (mr *MockVariableSetsMockRecorder) Create(ctx, organization, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockVariableSets)(nil).Create), ctx, organization, options)
}
// Delete mocks base method.
func (m *MockVariableSets) Delete(ctx context.Context, variableSetID string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", ctx, variableSetID)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete.
func (mr *MockVariableSetsMockRecorder) Delete(ctx, variableSetID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockVariableSets)(nil).Delete), ctx, variableSetID)
}
// List mocks base method.
func (m *MockVariableSets) List(ctx context.Context, organization string, options *tfe.VariableSetListOptions) (*tfe.VariableSetList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", ctx, organization, options)
ret0, _ := ret[0].(*tfe.VariableSetList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List.
func (mr *MockVariableSetsMockRecorder) List(ctx, organization, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockVariableSets)(nil).List), ctx, organization, options)
}
// ListForProject mocks base method.
func (m *MockVariableSets) ListForProject(ctx context.Context, projectID string, options *tfe.VariableSetListOptions) (*tfe.VariableSetList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListForProject", ctx, projectID, options)
ret0, _ := ret[0].(*tfe.VariableSetList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListForProject indicates an expected call of ListForProject.
func (mr *MockVariableSetsMockRecorder) ListForProject(ctx, projectID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListForProject", reflect.TypeOf((*MockVariableSets)(nil).ListForProject), ctx, projectID, options)
}
// ListForWorkspace mocks base method.
func (m *MockVariableSets) ListForWorkspace(ctx context.Context, workspaceID string, options *tfe.VariableSetListOptions) (*tfe.VariableSetList, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListForWorkspace", ctx, workspaceID, options)
ret0, _ := ret[0].(*tfe.VariableSetList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListForWorkspace indicates an expected call of ListForWorkspace.
func (mr *MockVariableSetsMockRecorder) ListForWorkspace(ctx, workspaceID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListForWorkspace", reflect.TypeOf((*MockVariableSets)(nil).ListForWorkspace), ctx, workspaceID, options)
}
// Read mocks base method.
func (m *MockVariableSets) Read(ctx context.Context, variableSetID string, options *tfe.VariableSetReadOptions) (*tfe.VariableSet, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Read", ctx, variableSetID, options)
ret0, _ := ret[0].(*tfe.VariableSet)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Read indicates an expected call of Read.
func (mr *MockVariableSetsMockRecorder) Read(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockVariableSets)(nil).Read), ctx, variableSetID, options)
}
// RemoveFromProjects mocks base method.
func (m *MockVariableSets) RemoveFromProjects(ctx context.Context, variableSetID string, options tfe.VariableSetRemoveFromProjectsOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveFromProjects", ctx, variableSetID, options)
ret0, _ := ret[0].(error)
return ret0
}
// RemoveFromProjects indicates an expected call of RemoveFromProjects.
func (mr *MockVariableSetsMockRecorder) RemoveFromProjects(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveFromProjects", reflect.TypeOf((*MockVariableSets)(nil).RemoveFromProjects), ctx, variableSetID, options)
}
// RemoveFromStacks mocks base method.
func (m *MockVariableSets) RemoveFromStacks(ctx context.Context, variableSetID string, options *tfe.VariableSetRemoveFromStacksOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveFromStacks", ctx, variableSetID, options)
ret0, _ := ret[0].(error)
return ret0
}
// RemoveFromStacks indicates an expected call of RemoveFromStacks.
func (mr *MockVariableSetsMockRecorder) RemoveFromStacks(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveFromStacks", reflect.TypeOf((*MockVariableSets)(nil).RemoveFromStacks), ctx, variableSetID, options)
}
// RemoveFromWorkspaces mocks base method.
func (m *MockVariableSets) RemoveFromWorkspaces(ctx context.Context, variableSetID string, options *tfe.VariableSetRemoveFromWorkspacesOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveFromWorkspaces", ctx, variableSetID, options)
ret0, _ := ret[0].(error)
return ret0
}
// RemoveFromWorkspaces indicates an expected call of RemoveFromWorkspaces.
func (mr *MockVariableSetsMockRecorder) RemoveFromWorkspaces(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveFromWorkspaces", reflect.TypeOf((*MockVariableSets)(nil).RemoveFromWorkspaces), ctx, variableSetID, options)
}
// Update mocks base method.
func (m *MockVariableSets) Update(ctx context.Context, variableSetID string, options *tfe.VariableSetUpdateOptions) (*tfe.VariableSet, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", ctx, variableSetID, options)
ret0, _ := ret[0].(*tfe.VariableSet)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Update indicates an expected call of Update.
func (mr *MockVariableSetsMockRecorder) Update(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockVariableSets)(nil).Update), ctx, variableSetID, options)
}
// UpdateStacks mocks base method.
func (m *MockVariableSets) UpdateStacks(ctx context.Context, variableSetID string, options *tfe.VariableSetUpdateStacksOptions) (*tfe.VariableSet, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateStacks", ctx, variableSetID, options)
ret0, _ := ret[0].(*tfe.VariableSet)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateStacks indicates an expected call of UpdateStacks.
func (mr *MockVariableSetsMockRecorder) UpdateStacks(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStacks", reflect.TypeOf((*MockVariableSets)(nil).UpdateStacks), ctx, variableSetID, options)
}
// UpdateWorkspaces mocks base method.
func (m *MockVariableSets) UpdateWorkspaces(ctx context.Context, variableSetID string, options *tfe.VariableSetUpdateWorkspacesOptions) (*tfe.VariableSet, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateWorkspaces", ctx, variableSetID, options)
ret0, _ := ret[0].(*tfe.VariableSet)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateWorkspaces indicates an expected call of UpdateWorkspaces.
func (mr *MockVariableSetsMockRecorder) UpdateWorkspaces(ctx, variableSetID, options any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkspaces", reflect.TypeOf((*MockVariableSets)(nil).UpdateWorkspaces), ctx, variableSetID, options)
}