// WithTimeout creates a Cmd with a context that times out after the specified
// duration.
480635
func WithTimeout(timeout time.Duration, prog string, args ...string) *Cmd {
	ctx, cancel := context.WithTimeout(context.Background(), timeout)
	cmd := CommandContext(ctx, prog, args...)
	cmd.cancelFn = cancel
	return cmd
}
182586
func (o *GetEndpointIDConfigParams) WithTimeout(timeout time.Duration) *GetEndpointIDConfigParams {
	o.SetTimeout(timeout)
	return o
}
1035128
func (o *PatchPrefilterParams) WithTimeout(timeout time.Duration) *PatchPrefilterParams {
	o.SetTimeout(timeout)
	return o
}
1215981
func (builder *UpdateGSetCommandBuilder) WithTimeout(timeout time.Duration) *UpdateGSetCommandBuilder {
	timeoutMilliseconds := uint32(timeout / time.Millisecond)
	builder.timeout = timeout
	builder.protobuf.Timeout = &timeoutMilliseconds
	return builder
}
935096
func (o *UpdateJSONWebKeySetParams) WithTimeout(timeout time.Duration) *UpdateJSONWebKeySetParams {
	o.SetTimeout(timeout)
	return o
}
292986
func (o *PutStatusProbeParams) WithTimeout(timeout time.Duration) *PutStatusProbeParams {
	o.SetTimeout(timeout)
	return o
}
679498
func (o *GetEndpointParams) WithTimeout(timeout time.Duration) *GetEndpointParams {
	o.SetTimeout(timeout)
	return o
}
1046518
func (o *GetConfigParams) WithTimeout(timeout time.Duration) *GetConfigParams {
	o.SetTimeout(timeout)
	return o
}
636396
func (o *ListTasksParams) WithTimeout(timeout time.Duration) *ListTasksParams {
	o.SetTimeout(timeout)
	return o
}
745245
func (o *RevokeOAuth2TokenParams) WithTimeout(timeout time.Duration) *RevokeOAuth2TokenParams {
	o.SetTimeout(timeout)
	return o
}
615994
func (o *DeleteJSONWebKeySetParams) WithTimeout(timeout time.Duration) *DeleteJSONWebKeySetParams {
	o.SetTimeout(timeout)
	return o
}
38024
func (o *PetCreateParams) WithTimeout(timeout time.Duration) *PetCreateParams {
	o.SetTimeout(timeout)
	return o
}
10878
func (o *UserinfoParams) WithTimeout(timeout time.Duration) *UserinfoParams {
	o.SetTimeout(timeout)
	return o
}
845316
func (o *OrderCreateParams) WithTimeout(timeout time.Duration) *OrderCreateParams {
	o.SetTimeout(timeout)
	return o
}
396131
func (o *PatchEndpointIDLabelsParams) WithTimeout(timeout time.Duration) *PatchEndpointIDLabelsParams {
	o.SetTimeout(timeout)
	return o
}
1246296
func WithTimeout(d time.Duration) DialOption {
	return newFuncDialOption(func(o *dialOptions) {
		o.timeout = d
	})
}
639182
func (o *IsInstanceAliveParams) WithTimeout(timeout time.Duration) *IsInstanceAliveParams {
	o.SetTimeout(timeout)
	return o
}