[I] SdkContext
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
TOptions extends object | Record<string, any> |
TServiceOperation extends SdkServiceOperation | SdkHttpOperation |
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
__clientToApiVersionClientDefaultValue | Map<Interface | Namespace, undefined | string> | - | TCGCContext.__clientToApiVersionClientDefaultValue |
__clientToParameters | Map<Interface | Namespace, SdkParameter<SdkType>[]> | - | TCGCContext.__clientToParameters |
__generatedNames? | Map<Model | Union | TspLiteralType, string> | - | TCGCContext.__generatedNames |
__httpOperationCache | Map<Operation, HttpOperation> | - | TCGCContext.__httpOperationCache |
__httpOperationExamples? | Map<HttpOperation, SdkHttpOperationExample[]> | - | TCGCContext.__httpOperationExamples |
__knownScalars? | Record<string, SdkBuiltInKinds> | - | TCGCContext.__knownScalars |
__modelPropertyCache | Map<ModelProperty, SdkModelPropertyType<SdkType>> | - | TCGCContext.__modelPropertyCache |
__mutatedGlobalNamespace? | Namespace | - | TCGCContext.__mutatedGlobalNamespace |
__pagedResultSet | Set<SdkType> | - | TCGCContext.__pagedResultSet |
__rawClients? | SdkClient[] | - | TCGCContext.__rawClients |
__referencedTypeCache | Map<Type, | SdkNullableType | SdkEnumType | SdkModelType | SdkUnionType<SdkType>> | - | TCGCContext.__referencedTypeCache |
__tspTypeToApiVersions | Map<Type, string[]> | - | TCGCContext.__tspTypeToApiVersions |
apiVersion? | string | - | TCGCContext.apiVersion |
arm? | boolean | - | TCGCContext.arm |
decoratorsAllowList? | string[] | - | TCGCContext.decoratorsAllowList |
diagnostics | readonly Diagnostic[] | - | TCGCContext.diagnostics |
disableUsageAccessPropagationToBase | boolean | - | TCGCContext.disableUsageAccessPropagationToBase |
emitContext | EmitContext<TOptions> | - | - |
emitterName | string | - | TCGCContext.emitterName |
examplesDir? | string | - | TCGCContext.examplesDir |
flattenUnionAsEnum? | boolean | - | TCGCContext.flattenUnionAsEnum |
generateConvenienceMethods? | boolean | - | TCGCContext.generateConvenienceMethods |
generateProtocolMethods? | boolean | - | TCGCContext.generateProtocolMethods |
license? | object | - | TCGCContext.license |
license.company? | string | - | - |
license.description? | string | - | - |
license.header? | string | - | - |
license.link? | string | - | - |
license.name | string | - | - |
namespaceFlag? | string | - | TCGCContext.namespaceFlag |
packageName? | string | Deprecated Use namespaceFlag instead. | TCGCContext.packageName |
previewStringRegex | RegExp | - | TCGCContext.previewStringRegex |
program | Program | - | TCGCContext.program |
sdkPackage | SdkPackage<TServiceOperation> | - | - |
Methods
getApiVersionsForType()
getApiVersionsForType(type): string[]Parameters
| Parameter | Type |
|---|---|
type | Type |
Returns
string[]
Inherited from
TCGCContext.getApiVersionsForType
getMutatedGlobalNamespace()
getMutatedGlobalNamespace(): NamespaceReturns
Namespace
Inherited from
TCGCContext.getMutatedGlobalNamespace
setApiVersionsForType()
setApiVersionsForType(type, apiVersions): voidParameters
| Parameter | Type |
|---|---|
type | Type |
apiVersions | string[] |
Returns
void