[I] SdkContext
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TOptions extends object | Record<string, any> |
TServiceOperation extends SdkServiceOperation | SdkHttpOperation |
Properties
Section titled “Properties”| Property | Type | Inherited from |
|---|---|---|
__arrayDictionaryCache | Map<Type, | SdkArrayType | SdkDictionaryType> | TCGCContext.__arrayDictionaryCache |
__clientApiVersionDefaultValueCache | Map<SdkClient | SdkOperationGroup, string | undefined> | TCGCContext.__clientApiVersionDefaultValueCache |
__clientParametersCache | Map<SdkClient | SdkOperationGroup, SdkMethodParameter[]> | TCGCContext.__clientParametersCache |
__clientToOperationsCache? | Map<SdkClient | SdkOperationGroup, Operation[]> | TCGCContext.__clientToOperationsCache |
__externalPackageToVersions? | Map<string, string> | TCGCContext.__externalPackageToVersions |
__generatedNames | Map<Type, string> | TCGCContext.__generatedNames |
__httpOperationCache | Map<Operation, HttpOperation> | TCGCContext.__httpOperationCache |
__httpOperationExamples | Map<HttpOperation, SdkHttpOperationExample[]> | TCGCContext.__httpOperationExamples |
__knownScalars? | Record<string, SdkBuiltInKinds> | TCGCContext.__knownScalars |
__methodParameterCache | Map<ModelProperty, SdkMethodParameter> | TCGCContext.__methodParameterCache |
__modelPropertyCache | Map<ModelProperty, SdkModelPropertyType> | TCGCContext.__modelPropertyCache |
__mutatedGlobalNamespace? | Namespace | TCGCContext.__mutatedGlobalNamespace |
__operationToClientCache? | Map<Operation, SdkClient | SdkOperationGroup> | TCGCContext.__operationToClientCache |
__packageVersionEnum? | Enum | TCGCContext.__packageVersionEnum |
__packageVersions? | string[] | TCGCContext.__packageVersions |
__pagedResultSet | Set<SdkType> | TCGCContext.__pagedResultSet |
__rawClientsOperationGroupsCache? | Map<string | Interface | Namespace, SdkClient | SdkOperationGroup> | TCGCContext.__rawClientsOperationGroupsCache |
__referencedTypeCache | Map<Type, | SdkModelType | SdkEnumType | SdkNullableType | SdkUnionType<SdkType>> | TCGCContext.__referencedTypeCache |
__responseHeaderCache | Map<ModelProperty, SdkServiceResponseHeader> | TCGCContext.__responseHeaderCache |
__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 |
enableLegacyHierarchyBuilding? | boolean | TCGCContext.enableLegacyHierarchyBuilding |
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
Section titled “Methods”getApiVersionsForType()
Section titled “getApiVersionsForType()”getApiVersionsForType(type): string[];Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | Type |
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”TCGCContext.getApiVersionsForType
getClientForOperation()
Section titled “getClientForOperation()”getClientForOperation(operation): SdkClient | SdkOperationGroup;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
operation | Operation |
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”TCGCContext.getClientForOperation
getClientOrOperationGroup()
Section titled “getClientOrOperationGroup()”getClientOrOperationGroup(type): | SdkClient | SdkOperationGroup | undefined;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | Interface | Namespace |
Returns
Section titled “Returns”| SdkClient
| SdkOperationGroup
| undefined
Inherited from
Section titled “Inherited from”TCGCContext.getClientOrOperationGroup
getClients()
Section titled “getClients()”getClients(): SdkClient[];Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”getMutatedGlobalNamespace()
Section titled “getMutatedGlobalNamespace()”getMutatedGlobalNamespace(): Namespace;Returns
Section titled “Returns”Namespace
Inherited from
Section titled “Inherited from”TCGCContext.getMutatedGlobalNamespace
getOperationsForClient()
Section titled “getOperationsForClient()”getOperationsForClient(client): Operation[];Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
client | SdkClient | SdkOperationGroup |
Returns
Section titled “Returns”Operation[]
Inherited from
Section titled “Inherited from”TCGCContext.getOperationsForClient
getPackageVersionEnum()
Section titled “getPackageVersionEnum()”getPackageVersionEnum(): Enum | undefined;Returns
Section titled “Returns”Enum | undefined
Inherited from
Section titled “Inherited from”TCGCContext.getPackageVersionEnum
getPackageVersions()
Section titled “getPackageVersions()”getPackageVersions(): string[];Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”TCGCContext.getPackageVersions
setApiVersionsForType()
Section titled “setApiVersionsForType()”setApiVersionsForType(type, apiVersions): void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | Type |
apiVersions | string[] |
Returns
Section titled “Returns”void