Skip to content

Commit b653c34

Browse files
feat(domain): add record ViewConfig (#317)
1 parent 4046540 commit b653c34

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

api/domain/v2alpha2/domain_sdk.go

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,14 +1328,17 @@ type Record struct {
13281328

13291329
Comment *string `json:"comment"`
13301330

1331-
// Precisely one of GeoIPConfig, ServiceUpConfig, WeightedConfig must be set.
1331+
// Precisely one of GeoIPConfig, ServiceUpConfig, ViewConfig, WeightedConfig must be set.
13321332
GeoIPConfig *RecordGeoIPConfig `json:"geo_ip_config,omitempty"`
13331333

1334-
// Precisely one of GeoIPConfig, ServiceUpConfig, WeightedConfig must be set.
1334+
// Precisely one of GeoIPConfig, ServiceUpConfig, ViewConfig, WeightedConfig must be set.
13351335
ServiceUpConfig *RecordServiceUPConfig `json:"service_up_config,omitempty"`
13361336

1337-
// Precisely one of GeoIPConfig, ServiceUpConfig, WeightedConfig must be set.
1337+
// Precisely one of GeoIPConfig, ServiceUpConfig, ViewConfig, WeightedConfig must be set.
13381338
WeightedConfig *RecordWeightedConfig `json:"weighted_config,omitempty"`
1339+
1340+
// Precisely one of GeoIPConfig, ServiceUpConfig, ViewConfig, WeightedConfig must be set.
1341+
ViewConfig *RecordViewConfig `json:"view_config,omitempty"`
13391342
}
13401343

13411344
type RecordChange struct {
@@ -1412,6 +1415,16 @@ type RecordServiceUPConfig struct {
14121415
Strategy RecordServiceUPConfigStrategy `json:"strategy"`
14131416
}
14141417

1418+
type RecordViewConfig struct {
1419+
Views []*RecordViewConfigView `json:"views"`
1420+
}
1421+
1422+
type RecordViewConfigView struct {
1423+
Subnet string `json:"subnet"`
1424+
1425+
Data string `json:"data"`
1426+
}
1427+
14151428
type RecordWeightedConfig struct {
14161429
WeightedIPs []*RecordWeightedConfigWeightedIP `json:"weighted_ips"`
14171430
}

0 commit comments

Comments
 (0)