@@ -12,6 +12,7 @@ import (
1212 "github.com/cloudflare/cloudflare-go/v4/internal/apijson"
1313 "github.com/cloudflare/cloudflare-go/v4/internal/param"
1414 "github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
15+ "github.com/cloudflare/cloudflare-go/v4/ips"
1516 "github.com/cloudflare/cloudflare-go/v4/option"
1617 "github.com/cloudflare/cloudflare-go/v4/packages/pagination"
1718)
@@ -231,7 +232,7 @@ type AddressMapNewResponse struct {
231232 // with IP addresses on an Address Map until the map is enabled.
232233 Enabled bool `json:"enabled,nullable"`
233234 // The set of IPs on the Address Map.
234- IPs [] AddressMapNewResponseIP `json:"ips"`
235+ IPs ips. IPs `json:"ips"`
235236 // Zones and Accounts which will be assigned IPs on this Address Map. A zone
236237 // membership will take priority over an account membership.
237238 Memberships []AddressMapNewResponseMembership `json:"memberships"`
@@ -264,30 +265,6 @@ func (r addressMapNewResponseJSON) RawJSON() string {
264265 return r .raw
265266}
266267
267- type AddressMapNewResponseIP struct {
268- CreatedAt time.Time `json:"created_at" format:"date-time"`
269- // An IPv4 or IPv6 address.
270- IP string `json:"ip"`
271- JSON addressMapNewResponseIPJSON `json:"-"`
272- }
273-
274- // addressMapNewResponseIPJSON contains the JSON metadata for the struct
275- // [AddressMapNewResponseIP]
276- type addressMapNewResponseIPJSON struct {
277- CreatedAt apijson.Field
278- IP apijson.Field
279- raw string
280- ExtraFields map [string ]apijson.Field
281- }
282-
283- func (r * AddressMapNewResponseIP ) UnmarshalJSON (data []byte ) (err error ) {
284- return apijson .UnmarshalRoot (data , r )
285- }
286-
287- func (r addressMapNewResponseIPJSON ) RawJSON () string {
288- return r .raw
289- }
290-
291268type AddressMapNewResponseMembership struct {
292269 // Controls whether the membership can be deleted via the API or not.
293270 CanDelete bool `json:"can_delete"`
@@ -511,7 +488,7 @@ type AddressMapGetResponse struct {
511488 // with IP addresses on an Address Map until the map is enabled.
512489 Enabled bool `json:"enabled,nullable"`
513490 // The set of IPs on the Address Map.
514- IPs [] AddressMapGetResponseIP `json:"ips"`
491+ IPs ips. IPs `json:"ips"`
515492 // Zones and Accounts which will be assigned IPs on this Address Map. A zone
516493 // membership will take priority over an account membership.
517494 Memberships []AddressMapGetResponseMembership `json:"memberships"`
@@ -544,30 +521,6 @@ func (r addressMapGetResponseJSON) RawJSON() string {
544521 return r .raw
545522}
546523
547- type AddressMapGetResponseIP struct {
548- CreatedAt time.Time `json:"created_at" format:"date-time"`
549- // An IPv4 or IPv6 address.
550- IP string `json:"ip"`
551- JSON addressMapGetResponseIPJSON `json:"-"`
552- }
553-
554- // addressMapGetResponseIPJSON contains the JSON metadata for the struct
555- // [AddressMapGetResponseIP]
556- type addressMapGetResponseIPJSON struct {
557- CreatedAt apijson.Field
558- IP apijson.Field
559- raw string
560- ExtraFields map [string ]apijson.Field
561- }
562-
563- func (r * AddressMapGetResponseIP ) UnmarshalJSON (data []byte ) (err error ) {
564- return apijson .UnmarshalRoot (data , r )
565- }
566-
567- func (r addressMapGetResponseIPJSON ) RawJSON () string {
568- return r .raw
569- }
570-
571524type AddressMapGetResponseMembership struct {
572525 // Controls whether the membership can be deleted via the API or not.
573526 CanDelete bool `json:"can_delete"`
0 commit comments