[I] SdkContext
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
TOptions extends object | Record<string, any> |
TServiceOperation extends SdkServiceOperation | SdkHttpOperation |
Properties
| Property | Type | Inherited from |
|---|---|---|
__clientToApiVersionClientDefaultValue | Map<Interface | Namespace, undefined | string> | TCGCContext.__clientToApiVersionClientDefaultValue |
__clientToParameters | Map<Interface | Namespace, SdkParameter[]> | TCGCContext.__clientToParameters |
__generatedNames | Map<Type, 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> | TCGCContext.__modelPropertyCache |
__mutatedGlobalNamespace? | Namespace | TCGCContext.__mutatedGlobalNamespace |
__packageVersions? | string[] | TCGCContext.__packageVersions |
__pagedResultSet | Set<SdkType> | TCGCContext.__pagedResultSet |
__rawClients? | SdkClient[] | TCGCContext.__rawClients |
__referencedTypeCache | Map<Type, | SdkModelType | SdkEnumType | SdkNullableType | 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 |
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
getPackageVersions()
getPackageVersions(): string[]Returns
string[]
Inherited from
TCGCContext.getPackageVersions
setApiVersionsForType()
setApiVersionsForType(type, apiVersions): voidParameters
| Parameter | Type |
|---|---|
type | Type |
apiVersions | string[] |
Returns
void