Skip to content

[I] SdkContext

Extends

Type Parameters

Type ParameterDefault type
TOptions extends objectRecord<string, any>
TServiceOperation extends SdkServiceOperationSdkHttpOperation

Properties

PropertyTypeInherited from
__clientToApiVersionClientDefaultValueMap<Interface | Namespace, undefined | string>TCGCContext.__clientToApiVersionClientDefaultValue
__clientToParametersMap<Interface | Namespace, SdkParameter[]>TCGCContext.__clientToParameters
__generatedNames?Map<Model | Union | TspLiteralType, string>TCGCContext.__generatedNames
__httpOperationCacheMap<Operation, HttpOperation>TCGCContext.__httpOperationCache
__httpOperationExamples?Map<HttpOperation, SdkHttpOperationExample[]>TCGCContext.__httpOperationExamples
__knownScalars?Record<string, SdkBuiltInKinds>TCGCContext.__knownScalars
__modelPropertyCacheMap<ModelProperty, SdkModelPropertyType>TCGCContext.__modelPropertyCache
__mutatedGlobalNamespace?NamespaceTCGCContext.__mutatedGlobalNamespace
__pagedResultSetSet<SdkType>TCGCContext.__pagedResultSet
__rawClients?SdkClient[]TCGCContext.__rawClients
__referencedTypeCacheMap<Type, | SdkNullableType | SdkEnumType | SdkModelType | SdkUnionType<SdkType>>TCGCContext.__referencedTypeCache
__tspTypeToApiVersionsMap<Type, string[]>TCGCContext.__tspTypeToApiVersions
apiVersion?stringTCGCContext.apiVersion
arm?booleanTCGCContext.arm
decoratorsAllowList?string[]TCGCContext.decoratorsAllowList
diagnosticsreadonly Diagnostic[]TCGCContext.diagnostics
disableUsageAccessPropagationToBasebooleanTCGCContext.disableUsageAccessPropagationToBase
emitContextEmitContext<TOptions>-
emitterNamestringTCGCContext.emitterName
examplesDir?stringTCGCContext.examplesDir
flattenUnionAsEnum?booleanTCGCContext.flattenUnionAsEnum
generateConvenienceMethods?booleanTCGCContext.generateConvenienceMethods
generateProtocolMethods?booleanTCGCContext.generateProtocolMethods
license?objectTCGCContext.license
license.company?string-
license.description?string-
license.header?string-
license.link?string-
license.namestring-
namespaceFlag?stringTCGCContext.namespaceFlag
previewStringRegexRegExpTCGCContext.previewStringRegex
programProgramTCGCContext.program
sdkPackageSdkPackage<TServiceOperation>-

Methods

getApiVersionsForType()

getApiVersionsForType(type): string[]

Parameters

ParameterType
typeType

Returns

string[]

Inherited from

TCGCContext.getApiVersionsForType


getMutatedGlobalNamespace()

getMutatedGlobalNamespace(): Namespace

Returns

Namespace

Inherited from

TCGCContext.getMutatedGlobalNamespace


setApiVersionsForType()

setApiVersionsForType(type, apiVersions): void

Parameters

ParameterType
typeType
apiVersionsstring[]

Returns

void

Inherited from

TCGCContext.setApiVersionsForType