Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes out-of-scope fields from Connect API request #206

Merged
merged 8 commits into from
Oct 10, 2023
38 changes: 19 additions & 19 deletions internal/state/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ type ConnectDeployment struct {
}

type ConnectContent struct {
Name types.ContentName `json:"name,omitempty"`
Name types.ContentName `json:"name"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
AccessType string `json:"access_type,omitempty"`
ConnectionTimeout types.NullInt32 `json:"connection_timeout"`
ReadTimeout types.NullInt32 `json:"read_timeout"`
InitTimeout types.NullInt32 `json:"init_timeout"`
IdleTimeout types.NullInt32 `json:"idle_timeout"`
MaxProcesses types.NullInt32 `json:"max_processes"`
MinProcesses types.NullInt32 `json:"min_processes"`
MaxConnsPerProcess types.NullInt32 `json:"max_conns_per_process" kong:"name='max-connections'"`
LoadFactor types.NullFloat64 `json:"load_factor"`
RunAs string `json:"run_as,omitempty"`
RunAsCurrentUser types.NullBool `json:"run_as_current_user"`
MemoryRequest types.NullInt64 `json:"memory_request"`
MemoryLimit types.NullInt64 `json:"memory_limit"`
CPURequest types.NullFloat64 `json:"cpu_request"`
CPULimit types.NullFloat64 `json:"cpu_limit"`
ServiceAccountName string `json:"service_account_name,omitempty"`
DefaultImageName string `json:"default_image_name,omitempty"`
Description string `json:"description"`
AccessType string
ConnectionTimeout types.NullInt32
ReadTimeout types.NullInt32
InitTimeout types.NullInt32
IdleTimeout types.NullInt32
MaxProcesses types.NullInt32
MinProcesses types.NullInt32
MaxConnsPerProcess types.NullInt32
LoadFactor types.NullFloat64
RunAs string
RunAsCurrentUser types.NullBool
MemoryRequest types.NullInt64
MemoryLimit types.NullInt64
CPURequest types.NullFloat64
CPULimit types.NullFloat64
ServiceAccountName string
DefaultImageName string
}

func (d *ConnectDeployment) Merge(other *ConnectDeployment) {
Expand Down