Skip to content

Commit

Permalink
don't omit on empty for 0 percent (#67)
Browse files Browse the repository at this point in the history
* don't omit on empty for 0 percent

* updated fix to differentiate between not provided and 0
  • Loading branch information
Aftab-tech authored Dec 4, 2024
1 parent 9c89950 commit 7a639e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2956,7 +2956,7 @@ func (sc *Client) DeleteEdgeDeployment(corpName, siteName string) error {

type CreateOrUpdateEdgeDeploymentServiceBody struct {
ActivateVersion *bool `json:"activateVersion,omitempty"` // Activate Fastly VCL service after clone
PercentEnabled int `json:"percentEnabled,omitempty"` // Percentage of traffic to send to NGWAF@Edge
PercentEnabled *int `json:"percentEnabled,omitempty"` // Percentage of traffic to send to NGWAF@Edge
CustomClientIP *bool `json:"customClientIP,omitempty"` // enable to prevent Fastly-Client-IP from being overwritten by the NGWAF@Edge
}

Expand Down

0 comments on commit 7a639e9

Please sign in to comment.