@@ -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
13411344type 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+
14151428type RecordWeightedConfig struct {
14161429 WeightedIPs []* RecordWeightedConfigWeightedIP `json:"weighted_ips"`
14171430}
0 commit comments