Skip to content

Commit 78ab4ea

Browse files
chore: add support for deleting a fleet
1 parent fffeb5b commit 78ab4ea

File tree

2 files changed

+54
-38
lines changed

2 files changed

+54
-38
lines changed

pkg/fleetcontrol/fleetcontrol_api.go

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/fleetcontrol/types.go

Lines changed: 15 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4207,43 +4207,6 @@ type EntityManagementActorStitchedFields struct {
42074207
EntitySearch EntityManagementEntitySearchResult `json:"entitySearch,omitempty"`
42084208
}
42094209

4210-
// UnmarshalJSON custom unmarshaler for EntityManagementActorStitchedFields
4211-
func (x *EntityManagementActorStitchedFields) UnmarshalJSON(b []byte) error {
4212-
var objMap map[string]*json.RawMessage
4213-
err := json.Unmarshal(b, &objMap)
4214-
if err != nil {
4215-
return err
4216-
}
4217-
4218-
for k, v := range objMap {
4219-
if v == nil {
4220-
continue
4221-
}
4222-
4223-
switch k {
4224-
case "entity":
4225-
if v == nil {
4226-
continue
4227-
}
4228-
xxx, err := UnmarshalEntityManagementEntityInterface(*v)
4229-
if err != nil {
4230-
return err
4231-
}
4232-
4233-
if xxx != nil {
4234-
x.Entity = *xxx
4235-
}
4236-
case "entitySearch":
4237-
err = json.Unmarshal(*v, &x.EntitySearch)
4238-
if err != nil {
4239-
return err
4240-
}
4241-
}
4242-
}
4243-
4244-
return nil
4245-
}
4246-
42474210
// EntityManagementAgentConfigurationEntity - A configuration that can contain multiple immutable versions and can be deployed to a fleet
42484211
type EntityManagementAgentConfigurationEntity struct {
42494212
// The agentType
@@ -4296,6 +4259,16 @@ type EntityManagementAgentConfigurationVersionEntity struct {
42964259

42974260
func (x *EntityManagementAgentConfigurationVersionEntity) ImplementsEntityManagementEntity() {}
42984261

4262+
// EntityManagementAgentToDeploy - Agent to deploy in a fleet deployment
4263+
type EntityManagementAgentToDeploy struct {
4264+
// Agent type
4265+
AgentType string `json:"agentType"`
4266+
// Configuration version list for this agent
4267+
ConfigurationVersionList []EntityManagementDeploymentAgentConfigurationVersion `json:"configurationVersionList"`
4268+
// Agent version
4269+
Version string `json:"version"`
4270+
}
4271+
42994272
// EntityManagementAiAgentEntity - Agent configuration for agentic-platform
43004273
type EntityManagementAiAgentEntity struct {
43014274
// list of worker agents available to the planner agent in a multi-agent setup, ignore this for a single agent setup
@@ -4793,6 +4766,8 @@ type EntityManagementFleetDeployment struct {
47934766

47944767
// EntityManagementFleetDeploymentEntity - A set of configurations that can be deployed to a fleet
47954768
type EntityManagementFleetDeploymentEntity struct {
4769+
// Agents to deploy
4770+
Agents []EntityManagementAgentToDeploy `json:"agents"`
47964771
// A list of configurations included in this deployment
47974772
ConfigurationVersionList []EntityManagementDeploymentAgentConfigurationVersion `json:"configurationVersionList,omitempty"`
47984773
// Deprecated - Replaced by configurationVersionList
@@ -6085,7 +6060,9 @@ type FleetControlDeployResult struct {
60856060

60866061
// FleetControlFleetDeploymentCreateInput - Fleet deployment create input
60876062
type FleetControlFleetDeploymentCreateInput struct {
6088-
// Fleet deployment configuration version list
6063+
// Agents configurations
6064+
Agents []FleetControlAgentInput `json:"agents,omitempty"`
6065+
// Fleet deployment configuration version list - DEPRECATED
60896066
ConfigurationVersionList []FleetControlConfigurationVersionListInput `json:"configurationVersionList,omitempty"`
60906067
// Fleet deployment description
60916068
Description string `json:"description,omitempty"`

0 commit comments

Comments
 (0)