Skip to content

add shared_cluster for LB inputs; update cluster_id to pointer #26

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

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions pkg/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ type LoadBalancer struct {
Status string `json:"status"`
ExternalAddresses []string `json:"external_addresses"`
LocationID int64 `json:"location_id"`
ClusterID string `json:"cluster_id"`
ClusterID *string `json:"cluster_id"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`
}
Expand All @@ -612,7 +612,7 @@ type L4LoadBalancer struct {
ExternalAddresses []string `json:"external_addresses"`
LocationID int64 `json:"location_id"`
StoreLogs bool `json:"store_logs"`
ClusterID string `json:"cluster_id"`
ClusterID *string `json:"cluster_id"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`
}
Expand Down Expand Up @@ -648,7 +648,8 @@ type L4UpstreamZoneInput struct {
type L4LoadBalancerUpdateInput struct {
Name *string `json:"name,omitempty"`
StoreLogs *bool `json:"store_logs,omitempty"`
ClusterID string `json:"cluster_id,omitempty"`
ClusterID *string `json:"cluster_id,omitempty"`
SharedCluster *bool `json:"shared_cluster,omitempty"`
VHostZones []L4VHostZoneInput `json:"vhost_zones,omitempty"`
UpstreamZones []L4UpstreamZoneInput `json:"upstream_zones,omitempty"`
}
Expand All @@ -658,7 +659,7 @@ type L4LoadBalancerCreateInput struct {
Name string `json:"name"`
LocationID int64 `json:"location_id"`
StoreLogs *bool `json:"store_logs,omitempty"`
ClusterID string `json:"cluster_id,omitempty"`
ClusterID *string `json:"cluster_id,omitempty"`
VHostZones []L4VHostZoneInput `json:"vhost_zones"`
UpstreamZones []L4UpstreamZoneInput `json:"upstream_zones"`
}
Expand All @@ -675,7 +676,7 @@ type L7LoadBalancer struct {
Geoip bool `json:"geoip"`
StoreLogs bool `json:"store_logs"`
StoreLogsRegionID int64 `json:"store_logs_region_id"`
ClusterID string `json:"cluster_id"`
ClusterID *string `json:"cluster_id"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`
}
Expand Down Expand Up @@ -740,7 +741,8 @@ type L7LoadBalancerUpdateInput struct {
Geoip *bool `json:"geoip,omitempty"`
NewExternalIpsCount *int `json:"new_external_ips_count,omitempty"`
DeleteExternalIps []string `json:"delete_external_ips,omitempty"`
ClusterID string `json:"cluster_id,omitempty"`
ClusterID *string `json:"cluster_id,omitempty"`
SharedCluster *bool `json:"shared_cluster,omitempty"`
VHostZones []L7VHostZoneInput `json:"vhost_zones,omitempty"`
UpstreamZones []L7UpstreamZoneInput `json:"upstream_zones,omitempty"`
}
Expand All @@ -752,7 +754,7 @@ type L7LoadBalancerCreateInput struct {
StoreLogs *bool `json:"store_logs,omitempty"`
StoreLogsRegionID *int `json:"store_logs_region_id,,omitempty"`
Geoip *bool `json:"geoip,omitempty"`
ClusterID string `json:"cluster_id,omitempty"`
ClusterID *string `json:"cluster_id,omitempty"`
VHostZones []L7VHostZoneInput `json:"vhost_zones"`
UpstreamZones []L7UpstreamZoneInput `json:"upstream_zones"`
}
Expand Down
Loading