/
variable_set_mocks.go
168 lines (143 loc) · 6.86 KB
/
variable_set_mocks.go
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
// Code generated by MockGen. DO NOT EDIT.
// Source: variable_set.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
tfe "github.com/hashicorp/go-tfe"
)
// 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
}
// 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 interface{}) *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 interface{}) *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 interface{}) *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 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockVariableSets)(nil).List), ctx, organization, 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 interface{}) *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 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockVariableSets)(nil).Read), 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 interface{}) *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 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockVariableSets)(nil).Update), 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 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkspaces", reflect.TypeOf((*MockVariableSets)(nil).UpdateWorkspaces), ctx, variableSetID, options)
}