Skip to content

Commit

Permalink
Make healthcheck a pointer to avoid empty json objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cehrig committed Feb 2, 2022
1 parent 4b594b2 commit a762b85
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions magic_transit_gre_tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ const (

// MagicTransitGRETunnel contains information about a GRE tunnel.
type MagicTransitGRETunnel struct {
ID string `json:"id,omitempty"`
CreatedOn *time.Time `json:"created_on,omitempty"`
ModifiedOn *time.Time `json:"modified_on,omitempty"`
Name string `json:"name"`
CustomerGREEndpoint string `json:"customer_gre_endpoint"`
CloudflareGREEndpoint string `json:"cloudflare_gre_endpoint"`
InterfaceAddress string `json:"interface_address"`
Description string `json:"description,omitempty"`
TTL uint8 `json:"ttl,omitempty"`
MTU uint16 `json:"mtu,omitempty"`
HealthCheck MagicTransitGRETunnelHealthcheck `json:"health_check"`
ID string `json:"id,omitempty"`
CreatedOn *time.Time `json:"created_on,omitempty"`
ModifiedOn *time.Time `json:"modified_on,omitempty"`
Name string `json:"name"`
CustomerGREEndpoint string `json:"customer_gre_endpoint"`
CloudflareGREEndpoint string `json:"cloudflare_gre_endpoint"`
InterfaceAddress string `json:"interface_address"`
Description string `json:"description,omitempty"`
TTL uint8 `json:"ttl,omitempty"`
MTU uint16 `json:"mtu,omitempty"`
HealthCheck *MagicTransitGRETunnelHealthcheck `json:"health_check,omitempty"`
}

// MagicTransitGRETunnelHealthcheck contains information about a GRE tunnel health check.
type MagicTransitGRETunnelHealthcheck struct {
Enabled bool `json:"enabled,omitempty"`
Enabled bool `json:"enabled"`
Target string `json:"target,omitempty"`
Type string `json:"type,omitempty"`
}
Expand Down

0 comments on commit a762b85

Please sign in to comment.