Skip to content

Commit a2809cc

Browse files
committed
add cluster_id to create/update input for l4/l7
1 parent e33e2f8 commit a2809cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ type L4UpstreamZoneInput struct {
648648
type L4LoadBalancerUpdateInput struct {
649649
Name *string `json:"name,omitempty"`
650650
StoreLogs *bool `json:"store_logs,omitempty"`
651+
ClusterID string `json:"cluster_id,omitempty"`
651652
VHostZones []L4VHostZoneInput `json:"vhost_zones,omitempty"`
652653
UpstreamZones []L4UpstreamZoneInput `json:"upstream_zones,omitempty"`
653654
}
@@ -657,6 +658,7 @@ type L4LoadBalancerCreateInput struct {
657658
Name string `json:"name"`
658659
LocationID int64 `json:"location_id"`
659660
StoreLogs *bool `json:"store_logs,omitempty"`
661+
ClusterID string `json:"cluster_id,omitempty"`
660662
VHostZones []L4VHostZoneInput `json:"vhost_zones"`
661663
UpstreamZones []L4UpstreamZoneInput `json:"upstream_zones"`
662664
}
@@ -738,6 +740,7 @@ type L7LoadBalancerUpdateInput struct {
738740
Geoip *bool `json:"geoip,omitempty"`
739741
NewExternalIpsCount *int `json:"new_external_ips_count,omitempty"`
740742
DeleteExternalIps []string `json:"delete_external_ips,omitempty"`
743+
ClusterID string `json:"cluster_id,omitempty"`
741744
VHostZones []L7VHostZoneInput `json:"vhost_zones,omitempty"`
742745
UpstreamZones []L7UpstreamZoneInput `json:"upstream_zones,omitempty"`
743746
}
@@ -749,6 +752,7 @@ type L7LoadBalancerCreateInput struct {
749752
StoreLogs *bool `json:"store_logs,omitempty"`
750753
StoreLogsRegionID *int `json:"store_logs_region_id,,omitempty"`
751754
Geoip *bool `json:"geoip,omitempty"`
755+
ClusterID string `json:"cluster_id,omitempty"`
752756
VHostZones []L7VHostZoneInput `json:"vhost_zones"`
753757
UpstreamZones []L7UpstreamZoneInput `json:"upstream_zones"`
754758
}

0 commit comments

Comments
 (0)