Skip to content

[I] SdkContext

Type ParameterDefault type
TOptions extends objectRecord<string, any>
TServiceOperation extends SdkServiceOperationSdkHttpOperation
PropertyTypeInherited from
__arrayDictionaryCacheMap<Type, | SdkArrayType | SdkDictionaryType>TCGCContext.__arrayDictionaryCache
__clientToApiVersionClientDefaultValueMap<Interface | Namespace, undefined | string>TCGCContext.__clientToApiVersionClientDefaultValue
__clientToParametersMap<Interface | Namespace, SdkParameter[]>TCGCContext.__clientToParameters
__generatedNamesMap<Type, string>TCGCContext.__generatedNames
__httpOperationCacheMap<Operation, HttpOperation>TCGCContext.__httpOperationCache
__httpOperationExamplesMap<HttpOperation, SdkHttpOperationExample[]>TCGCContext.__httpOperationExamples
__knownScalars?Record<string, SdkBuiltInKinds>TCGCContext.__knownScalars
__modelPropertyCacheMap<ModelProperty, SdkModelPropertyType>TCGCContext.__modelPropertyCache
__mutatedGlobalNamespace?NamespaceTCGCContext.__mutatedGlobalNamespace
__packageVersionEnum?EnumTCGCContext.__packageVersionEnum
__packageVersions?string[]TCGCContext.__packageVersions
__pagedResultSetSet<SdkType>TCGCContext.__pagedResultSet
__rawClients?SdkClient[]TCGCContext.__rawClients
__referencedTypeCacheMap<Type, | SdkModelType | SdkEnumType | SdkNullableType | 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>-
getApiVersionsForType(type): string[];
ParameterType
typeType

string[]

TCGCContext.getApiVersionsForType


getMutatedGlobalNamespace(): Namespace;

Namespace

TCGCContext.getMutatedGlobalNamespace


getPackageVersionEnum(): undefined | Enum;

undefined | Enum

TCGCContext.getPackageVersionEnum


getPackageVersions(): string[];

string[]

TCGCContext.getPackageVersions


setApiVersionsForType(type, apiVersions): void;
ParameterType
typeType
apiVersionsstring[]

void

TCGCContext.setApiVersionsForType