Skip to main content

WithResourceVersion

Gets a new context with the resource version set.

def WithResourceVersion(
ctx: context.Context,
resourceVersion: string
) - > context.Context

Gets a new context with the resource version set.

Parameters

NameTypeDescription
ctxcontext.ContextThe parent context to which the resource version will be added.
resourceVersionstringThe resource version string to associate with the context.

Returns

TypeDescription
context.ContextA new context with the specified resource version.