// UpdateWithContext updates a service
343613
func (s *ServicesService) UpdateWithContext(ctx context.Context, idOrName string, svc *Service) (*Service, *http.Response, error) {
	return s.update(ctx, idOrName, svc, "update")
}
8481
func (o *DestroyOneParams) WithContext(ctx context.Context) *DestroyOneParams {
	o.SetContext(ctx)
	return o
}
702463
func (tx *Tx) UpdateContext(ctx context.Context, list ...interface{}) (int64, error) {
	return updateObjects(ctx, tx.DB, tx, list)
}
1041165
func (c *Ctx) WithContext(ctx context.Context) {
	c.request = c.request.WithContext(ctx)
}
1069828
func WithContext(ctx context.Context) func(*Client) error {
	return func(c *Client) error {
		c.Ctx = ctx
		return nil
	}
}
897358
func (o *GetStatusParams) WithContext(ctx context.Context) *GetStatusParams {
	o.SetContext(ctx)
	return o
}
633108
func (c *CustomersService) UpdateWithContext(ctx context.Context, idOrUsername string, customer *Customer) (*Customer, *http.Response, error) {
	resource, _ := url.Parse(customersResourcePath)
	resource.Path = path.Join(resource.Path, idOrUsername)

	req, err := c.client.NewRequest(ctx, http.MethodPatch, resource, customer)

	if err != nil {
		return nil, nil, err
	}

	root := new(Customer)

	res, err := c.client.Do(req, root)

	if err != nil {
		return nil, res, err
	}

	return root, res, nil
}
357768
func (o *PatchPrefilterParams) WithContext(ctx context.Context) *PatchPrefilterParams {
	o.SetContext(ctx)
	return o
}
1177945
func (o *UpdateJSONWebKeyParams) WithContext(ctx context.Context) *UpdateJSONWebKeyParams {
	o.SetContext(ctx)
	return o
}
273504
func (n *Nats) updateContext(data PayloadWithContext, requestType RequestType, deadline *time.Time) {
	var ctx *NatsContext

	if data.GetContext() == nil {
		data.SetContext(&NatsContext{})
	}

	ctx = data.GetContext()

	if len(ctx.GetTraceId()) == 0 {
		newId := uuid.NewUUID().String()
		ctx.TraceId = &newId
	}
	now := time.Now()
	nowSecs := now.Unix()
	nowNanos := int32(now.Nanosecond())
	newTrail := &NatsContext_Trail{AppName: &(n.Opts.Name), PutType: &requestType, Time: &nowSecs, TimeNanos: &nowNanos}

	if deadline != nil {
		deadSecs := deadline.Unix()
		deadNanos := int32(deadline.Nanosecond())
		newTrail.Deadline = &deadSecs
		newTrail.DeadlineNanos = &deadNanos
	}
	ctx.Trail = append(ctx.Trail, newTrail)

}
773226
func (o *FlushInactiveOAuth2TokensParams) WithContext(ctx context.Context) *FlushInactiveOAuth2TokensParams {
	o.SetContext(ctx)
	return o
}
740575
func (builder *UpdateGSetCommandBuilder) WithContext(context []byte) *UpdateGSetCommandBuilder {
	builder.protobuf.Context = context
	return builder
}
325546
func (o *PutPolicyParams) WithContext(ctx context.Context) *PutPolicyParams {
	o.SetContext(ctx)
	return o
}
573681
func (o *GetVersionParams) WithContext(ctx context.Context) *GetVersionParams {
	o.SetContext(ctx)
	return o
}
89674
func (call *PushMessageCall) WithContext(ctx context.Context) *PushMessageCall {
	call.ctx = ctx
	return call
}
864327
func (call *AddLIFFCall) WithContext(ctx context.Context) *AddLIFFCall {
	call.ctx = ctx
	return call
}
103227
func WithContext(ctx context.Context) FeatureOption {
	return func(opts *featureOption) {
		opts.ctx = &ctx
	}
}