// WithPetID adds the petID to the pet get params
500825
func (o *PetGetParams) WithPetID(petID int64) *PetGetParams {
	o.SetPetID(petID)
	return o
}
883238
func (o *Oauth2TokenParams) WithClientID(clientID *string) *Oauth2TokenParams {
	o.SetClientID(clientID)
	return o
}
120080
func (api *DiskAPI) WithServerID(id int64) *DiskAPI {
	api.FilterBy("Server.ID", id)
	return api
}
425904
func (o *GetEndpointIDHealthzOK) WithPayload(payload *models.EndpointHealth) *GetEndpointIDHealthzOK {
	o.Payload = payload
	return o
}
1221106
func (o *DeleteTaskParams) WithID(id int64) *DeleteTaskParams {
	o.SetID(id)
	return o
}
319082
func (o *PutEndpointIDParams) WithID(id string) *PutEndpointIDParams {
	o.SetID(id)
	return o
}
532262
func (o *GetIDDefault) WithPayload(payload *models.Error) *GetIDDefault {
	o.Payload = payload
	return o
}
500574
func (o *DeleteLookupsIDParams) WithID(id string) *DeleteLookupsIDParams {
	o.ID = id
	return o
}
172005
func (o *GetIDUnauthorized) WithPayload(payload *models.Error) *GetIDUnauthorized {
	o.Payload = payload
	return o
}
79762
func (o *GetEndpointIDLogOK) WithPayload(payload models.EndpointStatusLog) *GetEndpointIDLogOK {
	o.Payload = payload
	return o
}
1134643
func (a *Client) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error) {

	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "PetDelete",
		Method:             "DELETE",
		PathPattern:        "/pet/{petId}",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &PetDeleteReader{formats: a.formats},
		AuthInfo:           a.authInfo,
		Context:            ctx,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	return result.(*PetDeleteNoContent), nil

}
1195875
func (o *ListTasksParams) WithSinceID(sinceID *int64) *ListTasksParams {
	o.SetSinceID(sinceID)
	return o
}
435961
func (o *PetListParams) WithTimeout(timeout time.Duration) *PetListParams {
	o.SetTimeout(timeout)
	return o
}
421369
func (o *UpdatePetWithFormParams) bindPetID(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}

	// Required: true
	// Parameter is provided by construction from the route

	o.PetID = raw

	return nil
}
1367517
func (o *PetListParams) WithStatus(status []string) *PetListParams {
	o.SetStatus(status)
	return o
}
1216135
func (o *GetEndpointIDHealthzParams) WithID(id string) *GetEndpointIDHealthzParams {
	o.SetID(id)
	return o
}
646674
func (o *PetUploadImageParams) WithPetID(petID int64) *PetUploadImageParams {
	o.SetPetID(petID)
	return o
}