// Validate that a test event for a Sink was received.
Validate that a test event for a Sink was received.
// Validate that a test event for a Sink was received .
func (c *DefaultApiService) CreateSinkValidate(Sid string, params *CreateSinkValidateParams) (*EventsV1SinkSinkValidate, error) {
	path := "/v1/Sinks/{Sid}/Validate"
	path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.TestId != nil {
		data.Set("TestId", *params.TestId)
	}
	resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &EventsV1SinkSinkValidate{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) CreateSinkValidate ( Sid string , params * CreateSinkValidateParams ) ( * EventsV1SinkSinkValidate , error ) { path := " " path = strings . Replace ( path , " " + " " + " " , Sid , - 1 ) data := url . Values { } headers := make ( map [ string ] interface { } ) if params != nil && params . TestId != nil { data . Set ( " " , * params . TestId ) } resp , err := c . requestHandler . Post ( c . baseURL + path , data , headers ) if err != nil { return nil , err } defer resp . Body . Close ( ) ps := & EventsV1SinkSinkValidate { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Validate that a test event for a Sink was received.
Validate that a test event for a Sink was received .