Skip to content

Commit 4349ae4

Browse files
committed
Include Agent pool in Stack relationships, add agent pool to stack create/update options
1 parent d4d0527 commit 4349ae4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stack.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ type Stack struct {
9797
UpdatedAt time.Time `jsonapi:"attr,updated-at,iso8601"`
9898

9999
// Relationships
100+
AgentPool *AgentPool `jsonapi:"relation,agent-pool"`
100101
Project *Project `jsonapi:"relation,project"`
101102
LatestStackConfiguration *StackConfiguration `jsonapi:"relation,latest-stack-configuration"`
102103
}
@@ -189,13 +190,15 @@ type StackCreateOptions struct {
189190
Description *string `jsonapi:"attr,description,omitempty"`
190191
VCSRepo *StackVCSRepoOptions `jsonapi:"attr,vcs-repo"`
191192
Project *Project `jsonapi:"relation,project"`
193+
AgentPool *AgentPool `jsonapi:"relation,agent-pool"`
192194
}
193195

194196
// StackUpdateOptions represents the options for updating a stack.
195197
type StackUpdateOptions struct {
196198
Name *string `jsonapi:"attr,name,omitempty"`
197199
Description *string `jsonapi:"attr,description,omitempty"`
198200
VCSRepo *StackVCSRepoOptions `jsonapi:"attr,vcs-repo"`
201+
AgentPool *AgentPool `jsonapi:"relation,agent-pool"`
199202
}
200203

201204
// WaitForStatusResult is the data structure that is sent over the channel

0 commit comments

Comments
 (0)