func NewUpdate(securityPolicyID string, securityPolicyPayload *SecurityPolicy) *UpdateSecurityPolicyAPI {
	this := new(UpdateSecurityPolicyAPI)
	endpointURL := "/api/2.0/services/policy/securitypolicy/" + securityPolicyID
	this.BaseAPI = api.NewBaseAPI(http.MethodPut, endpointURL, securityPolicyPayload, new(string))
	return this
}
NewUpdate creates a new object of UpdateSecurityPolicyAPI
package securitypolicy
import (
	"github.com/sky-uk/gonsx/api"
	"net/http"
)
type UpdateSecurityPolicyAPI struct {
	*api.BaseAPI
}